]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.2.1
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for linux nfs-utils 1.2.1.
4 #
5 # Report bugs to <linux-nfs@vger.kernel.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='linux nfs-utils'
747 PACKAGE_TARNAME='nfs-utils'
748 PACKAGE_VERSION='1.2.1'
749 PACKAGE_STRING='linux nfs-utils 1.2.1'
750 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
751
752 ac_default_prefix=/usr
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 #  include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 #  include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_unique_file="support/include/config.h.in"
790 ac_subst_vars='am__EXEEXT_FALSE
791 am__EXEEXT_TRUE
792 LTLIBOBJS
793 ACLOCAL_AMFLAGS
794 AM_CFLAGS
795 LDFLAGS_FOR_BUILD
796 CPPFLAGS_FOR_BUILD
797 CXXFLAGS_FOR_BUILD
798 CFLAGS_FOR_BUILD
799 LIBOBJS
800 ALLOCA
801 K5VERS
802 KRBLDFLAGS
803 KRBCFLAGS
804 KRBLIBS
805 KRBDIR
806 LIBBLKID
807 LIBBSD
808 LIBCRYPT
809 LIBSOCKET
810 RPCSECGSS_LIBS
811 RPCSECGSS_CFLAGS
812 GSSGLUE_LIBS
813 GSSGLUE_CFLAGS
814 PKG_CONFIG
815 LIBNSL
816 CC_FOR_BUILD
817 CXXCPP
818 OTOOL64
819 OTOOL
820 LIPO
821 NMEDIT
822 DSYMUTIL
823 lt_ECHO
824 RANLIB
825 AR
826 OBJDUMP
827 NM
828 ac_ct_DUMPBIN
829 DUMPBIN
830 LD
831 FGREP
832 SED
833 LIBTOOL
834 LN_S
835 am__fastdepCXX_FALSE
836 am__fastdepCXX_TRUE
837 CXXDEPMODE
838 ac_ct_CXX
839 CXXFLAGS
840 CXX
841 HAVE_TCP_WRAPPER
842 HAVE_LIBWRAP
843 LIBWRAP
844 EGREP
845 GREP
846 CPP
847 AM_CPPFLAGS
848 am__fastdepCC_FALSE
849 am__fastdepCC_TRUE
850 CCDEPMODE
851 AMDEPBACKSLASH
852 AMDEP_FALSE
853 AMDEP_TRUE
854 am__quote
855 am__include
856 DEPDIR
857 OBJEXT
858 EXEEXT
859 ac_ct_CC
860 CPPFLAGS
861 LDFLAGS
862 CFLAGS
863 CC
864 MOUNT_CONFIG_FALSE
865 MOUNT_CONFIG_TRUE
866 enable_mountconfig
867 mountfile
868 CONFIG_IPV6_FALSE
869 CONFIG_IPV6_TRUE
870 enable_ipv6
871 CONFIG_MOUNT_FALSE
872 CONFIG_MOUNT_TRUE
873 CONFIG_RPCGEN_FALSE
874 CONFIG_RPCGEN_TRUE
875 RPCGEN_PATH
876 kprefix
877 CONFIG_GSS_FALSE
878 CONFIG_GSS_TRUE
879 enable_gss
880 SVCGSSD
881 GSSD
882 CONFIG_NFSV4_FALSE
883 CONFIG_NFSV4_TRUE
884 enable_nfsv4
885 IDMAPD
886 enable_nfsv3
887 startstatd
888 statduser
889 statedir
890 RELEASE
891 MAINT
892 MAINTAINER_MODE_FALSE
893 MAINTAINER_MODE_TRUE
894 am__untar
895 am__tar
896 AMTAR
897 am__leading_dot
898 SET_MAKE
899 AWK
900 mkdir_p
901 MKDIR_P
902 INSTALL_STRIP_PROGRAM
903 STRIP
904 install_sh
905 MAKEINFO
906 AUTOHEADER
907 AUTOMAKE
908 AUTOCONF
909 ACLOCAL
910 VERSION
911 PACKAGE
912 CYGPATH_W
913 am__isrc
914 INSTALL_DATA
915 INSTALL_SCRIPT
916 INSTALL_PROGRAM
917 host_os
918 host_vendor
919 host_cpu
920 host
921 build_os
922 build_vendor
923 build_cpu
924 build
925 target_alias
926 host_alias
927 build_alias
928 LIBS
929 ECHO_T
930 ECHO_N
931 ECHO_C
932 DEFS
933 mandir
934 localedir
935 libdir
936 psdir
937 pdfdir
938 dvidir
939 htmldir
940 infodir
941 docdir
942 oldincludedir
943 includedir
944 localstatedir
945 sharedstatedir
946 sysconfdir
947 datadir
948 datarootdir
949 libexecdir
950 sbindir
951 bindir
952 program_transform_name
953 prefix
954 exec_prefix
955 PACKAGE_BUGREPORT
956 PACKAGE_STRING
957 PACKAGE_VERSION
958 PACKAGE_TARNAME
959 PACKAGE_NAME
960 PATH_SEPARATOR
961 SHELL'
962 ac_subst_files=''
963 ac_user_opts='
964 enable_option_checking
965 enable_maintainer_mode
966 with_release
967 with_statedir
968 with_statduser
969 with_start_statd
970 enable_nfsv3
971 enable_nfsv4
972 enable_gss
973 enable_kprefix
974 with_rpcgen
975 enable_uuid
976 enable_mount
977 enable_tirpc
978 enable_ipv6
979 enable_mountconfig
980 with_mountfile
981 with_tirpcinclude
982 enable_dependency_tracking
983 with_tcp_wrappers
984 enable_largefile
985 enable_shared
986 enable_static
987 with_pic
988 enable_fast_install
989 with_gnu_ld
990 enable_libtool_lock
991 with_krb5
992 '
993       ac_precious_vars='build_alias
994 host_alias
995 target_alias
996 CC
997 CFLAGS
998 LDFLAGS
999 LIBS
1000 CPPFLAGS
1001 CPP
1002 CXX
1003 CXXFLAGS
1004 CCC
1005 CXXCPP
1006 PKG_CONFIG
1007 GSSGLUE_CFLAGS
1008 GSSGLUE_LIBS
1009 RPCSECGSS_CFLAGS
1010 RPCSECGSS_LIBS'
1011
1012
1013 # Initialize some variables set by options.
1014 ac_init_help=
1015 ac_init_version=false
1016 ac_unrecognized_opts=
1017 ac_unrecognized_sep=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file=/dev/null
1021 exec_prefix=NONE
1022 no_create=
1023 no_recursion=
1024 prefix=NONE
1025 program_prefix=NONE
1026 program_suffix=NONE
1027 program_transform_name=s,x,x,
1028 silent=
1029 site=
1030 srcdir=
1031 verbose=
1032 x_includes=NONE
1033 x_libraries=NONE
1034
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir='${exec_prefix}/bin'
1042 sbindir='${exec_prefix}/sbin'
1043 libexecdir='${exec_prefix}/libexec'
1044 datarootdir='${prefix}/share'
1045 datadir='${datarootdir}'
1046 sysconfdir='${prefix}/etc'
1047 sharedstatedir='${prefix}/com'
1048 localstatedir='${prefix}/var'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1052 infodir='${datarootdir}/info'
1053 htmldir='${docdir}'
1054 dvidir='${docdir}'
1055 pdfdir='${docdir}'
1056 psdir='${docdir}'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1060
1061 ac_prev=
1062 ac_dashdash=
1063 for ac_option
1064 do
1065   # If the previous option needs an argument, assign it.
1066   if test -n "$ac_prev"; then
1067     eval $ac_prev=\$ac_option
1068     ac_prev=
1069     continue
1070   fi
1071
1072   case $ac_option in
1073   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1074   *)    ac_optarg=yes ;;
1075   esac
1076
1077   # Accept the important Cygnus configure options, so we can diagnose typos.
1078
1079   case $ac_dashdash$ac_option in
1080   --)
1081     ac_dashdash=yes ;;
1082
1083   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1084     ac_prev=bindir ;;
1085   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1086     bindir=$ac_optarg ;;
1087
1088   -build | --build | --buil | --bui | --bu)
1089     ac_prev=build_alias ;;
1090   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1091     build_alias=$ac_optarg ;;
1092
1093   -cache-file | --cache-file | --cache-fil | --cache-fi \
1094   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1095     ac_prev=cache_file ;;
1096   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1097   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1098     cache_file=$ac_optarg ;;
1099
1100   --config-cache | -C)
1101     cache_file=config.cache ;;
1102
1103   -datadir | --datadir | --datadi | --datad)
1104     ac_prev=datadir ;;
1105   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1106     datadir=$ac_optarg ;;
1107
1108   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1109   | --dataroo | --dataro | --datar)
1110     ac_prev=datarootdir ;;
1111   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1112   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1113     datarootdir=$ac_optarg ;;
1114
1115   -disable-* | --disable-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1120    { (exit 1); exit 1; }; }
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "enable_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval enable_$ac_useropt=no ;;
1131
1132   -docdir | --docdir | --docdi | --doc | --do)
1133     ac_prev=docdir ;;
1134   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135     docdir=$ac_optarg ;;
1136
1137   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1138     ac_prev=dvidir ;;
1139   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140     dvidir=$ac_optarg ;;
1141
1142   -enable-* | --enable-*)
1143     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1147    { (exit 1); exit 1; }; }
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval enable_$ac_useropt=\$ac_optarg ;;
1158
1159   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161   | --exec | --exe | --ex)
1162     ac_prev=exec_prefix ;;
1163   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165   | --exec=* | --exe=* | --ex=*)
1166     exec_prefix=$ac_optarg ;;
1167
1168   -gas | --gas | --ga | --g)
1169     # Obsolete; use --with-gas.
1170     with_gas=yes ;;
1171
1172   -help | --help | --hel | --he | -h)
1173     ac_init_help=long ;;
1174   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175     ac_init_help=recursive ;;
1176   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177     ac_init_help=short ;;
1178
1179   -host | --host | --hos | --ho)
1180     ac_prev=host_alias ;;
1181   -host=* | --host=* | --hos=* | --ho=*)
1182     host_alias=$ac_optarg ;;
1183
1184   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1185     ac_prev=htmldir ;;
1186   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1187   | --ht=*)
1188     htmldir=$ac_optarg ;;
1189
1190   -includedir | --includedir | --includedi | --included | --include \
1191   | --includ | --inclu | --incl | --inc)
1192     ac_prev=includedir ;;
1193   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194   | --includ=* | --inclu=* | --incl=* | --inc=*)
1195     includedir=$ac_optarg ;;
1196
1197   -infodir | --infodir | --infodi | --infod | --info | --inf)
1198     ac_prev=infodir ;;
1199   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200     infodir=$ac_optarg ;;
1201
1202   -libdir | --libdir | --libdi | --libd)
1203     ac_prev=libdir ;;
1204   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205     libdir=$ac_optarg ;;
1206
1207   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208   | --libexe | --libex | --libe)
1209     ac_prev=libexecdir ;;
1210   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211   | --libexe=* | --libex=* | --libe=*)
1212     libexecdir=$ac_optarg ;;
1213
1214   -localedir | --localedir | --localedi | --localed | --locale)
1215     ac_prev=localedir ;;
1216   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217     localedir=$ac_optarg ;;
1218
1219   -localstatedir | --localstatedir | --localstatedi | --localstated \
1220   | --localstate | --localstat | --localsta | --localst | --locals)
1221     ac_prev=localstatedir ;;
1222   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224     localstatedir=$ac_optarg ;;
1225
1226   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1227     ac_prev=mandir ;;
1228   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229     mandir=$ac_optarg ;;
1230
1231   -nfp | --nfp | --nf)
1232     # Obsolete; use --without-fp.
1233     with_fp=no ;;
1234
1235   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236   | --no-cr | --no-c | -n)
1237     no_create=yes ;;
1238
1239   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1241     no_recursion=yes ;;
1242
1243   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245   | --oldin | --oldi | --old | --ol | --o)
1246     ac_prev=oldincludedir ;;
1247   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250     oldincludedir=$ac_optarg ;;
1251
1252   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1253     ac_prev=prefix ;;
1254   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255     prefix=$ac_optarg ;;
1256
1257   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258   | --program-pre | --program-pr | --program-p)
1259     ac_prev=program_prefix ;;
1260   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262     program_prefix=$ac_optarg ;;
1263
1264   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265   | --program-suf | --program-su | --program-s)
1266     ac_prev=program_suffix ;;
1267   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269     program_suffix=$ac_optarg ;;
1270
1271   -program-transform-name | --program-transform-name \
1272   | --program-transform-nam | --program-transform-na \
1273   | --program-transform-n | --program-transform- \
1274   | --program-transform | --program-transfor \
1275   | --program-transfo | --program-transf \
1276   | --program-trans | --program-tran \
1277   | --progr-tra | --program-tr | --program-t)
1278     ac_prev=program_transform_name ;;
1279   -program-transform-name=* | --program-transform-name=* \
1280   | --program-transform-nam=* | --program-transform-na=* \
1281   | --program-transform-n=* | --program-transform-=* \
1282   | --program-transform=* | --program-transfor=* \
1283   | --program-transfo=* | --program-transf=* \
1284   | --program-trans=* | --program-tran=* \
1285   | --progr-tra=* | --program-tr=* | --program-t=*)
1286     program_transform_name=$ac_optarg ;;
1287
1288   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1289     ac_prev=pdfdir ;;
1290   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291     pdfdir=$ac_optarg ;;
1292
1293   -psdir | --psdir | --psdi | --psd | --ps)
1294     ac_prev=psdir ;;
1295   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1296     psdir=$ac_optarg ;;
1297
1298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299   | -silent | --silent | --silen | --sile | --sil)
1300     silent=yes ;;
1301
1302   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1303     ac_prev=sbindir ;;
1304   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1305   | --sbi=* | --sb=*)
1306     sbindir=$ac_optarg ;;
1307
1308   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1309   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1310   | --sharedst | --shareds | --shared | --share | --shar \
1311   | --sha | --sh)
1312     ac_prev=sharedstatedir ;;
1313   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1314   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1315   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1316   | --sha=* | --sh=*)
1317     sharedstatedir=$ac_optarg ;;
1318
1319   -site | --site | --sit)
1320     ac_prev=site ;;
1321   -site=* | --site=* | --sit=*)
1322     site=$ac_optarg ;;
1323
1324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1325     ac_prev=srcdir ;;
1326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1327     srcdir=$ac_optarg ;;
1328
1329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1330   | --syscon | --sysco | --sysc | --sys | --sy)
1331     ac_prev=sysconfdir ;;
1332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1334     sysconfdir=$ac_optarg ;;
1335
1336   -target | --target | --targe | --targ | --tar | --ta | --t)
1337     ac_prev=target_alias ;;
1338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1339     target_alias=$ac_optarg ;;
1340
1341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1342     verbose=yes ;;
1343
1344   -version | --version | --versio | --versi | --vers | -V)
1345     ac_init_version=: ;;
1346
1347   -with-* | --with-*)
1348     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1349     # Reject names that are not valid shell variable names.
1350     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1351       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1352    { (exit 1); exit 1; }; }
1353     ac_useropt_orig=$ac_useropt
1354     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355     case $ac_user_opts in
1356       *"
1357 "with_$ac_useropt"
1358 "*) ;;
1359       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360          ac_unrecognized_sep=', ';;
1361     esac
1362     eval with_$ac_useropt=\$ac_optarg ;;
1363
1364   -without-* | --without-*)
1365     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366     # Reject names that are not valid shell variable names.
1367     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1369    { (exit 1); exit 1; }; }
1370     ac_useropt_orig=$ac_useropt
1371     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372     case $ac_user_opts in
1373       *"
1374 "with_$ac_useropt"
1375 "*) ;;
1376       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1377          ac_unrecognized_sep=', ';;
1378     esac
1379     eval with_$ac_useropt=no ;;
1380
1381   --x)
1382     # Obsolete; use --with-x.
1383     with_x=yes ;;
1384
1385   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1386   | --x-incl | --x-inc | --x-in | --x-i)
1387     ac_prev=x_includes ;;
1388   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1389   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1390     x_includes=$ac_optarg ;;
1391
1392   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1393   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1394     ac_prev=x_libraries ;;
1395   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1396   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1397     x_libraries=$ac_optarg ;;
1398
1399   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1400 Try \`$0 --help' for more information." >&2
1401    { (exit 1); exit 1; }; }
1402     ;;
1403
1404   *=*)
1405     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1406     # Reject names that are not valid shell variable names.
1407     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1408       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1409    { (exit 1); exit 1; }; }
1410     eval $ac_envvar=\$ac_optarg
1411     export $ac_envvar ;;
1412
1413   *)
1414     # FIXME: should be removed in autoconf 3.0.
1415     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1416     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1418     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1419     ;;
1420
1421   esac
1422 done
1423
1424 if test -n "$ac_prev"; then
1425   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1426   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1427    { (exit 1); exit 1; }; }
1428 fi
1429
1430 if test -n "$ac_unrecognized_opts"; then
1431   case $enable_option_checking in
1432     no) ;;
1433     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1434    { (exit 1); exit 1; }; } ;;
1435     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1436   esac
1437 fi
1438
1439 # Check all directory arguments for consistency.
1440 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1441                 datadir sysconfdir sharedstatedir localstatedir includedir \
1442                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1443                 libdir localedir mandir
1444 do
1445   eval ac_val=\$$ac_var
1446   # Remove trailing slashes.
1447   case $ac_val in
1448     */ )
1449       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1450       eval $ac_var=\$ac_val;;
1451   esac
1452   # Be sure to have absolute directory names.
1453   case $ac_val in
1454     [\\/$]* | ?:[\\/]* )  continue;;
1455     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1456   esac
1457   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1458    { (exit 1); exit 1; }; }
1459 done
1460
1461 # There might be people who depend on the old broken behavior: `$host'
1462 # used to hold the argument of --host etc.
1463 # FIXME: To remove some day.
1464 build=$build_alias
1465 host=$host_alias
1466 target=$target_alias
1467
1468 # FIXME: To remove some day.
1469 if test "x$host_alias" != x; then
1470   if test "x$build_alias" = x; then
1471     cross_compiling=maybe
1472     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1473     If a cross compiler is detected then cross compile mode will be used." >&2
1474   elif test "x$build_alias" != "x$host_alias"; then
1475     cross_compiling=yes
1476   fi
1477 fi
1478
1479 ac_tool_prefix=
1480 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1481
1482 test "$silent" = yes && exec 6>/dev/null
1483
1484
1485 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1486 ac_ls_di=`ls -di .` &&
1487 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1488   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1489    { (exit 1); exit 1; }; }
1490 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1491   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1492    { (exit 1); exit 1; }; }
1493
1494
1495 # Find the source files, if location was not specified.
1496 if test -z "$srcdir"; then
1497   ac_srcdir_defaulted=yes
1498   # Try the directory containing this script, then the parent directory.
1499   ac_confdir=`$as_dirname -- "$as_myself" ||
1500 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1501          X"$as_myself" : 'X\(//\)[^/]' \| \
1502          X"$as_myself" : 'X\(//\)$' \| \
1503          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1504 $as_echo X"$as_myself" |
1505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)[^/].*/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\).*/{
1518             s//\1/
1519             q
1520           }
1521           s/.*/./; q'`
1522   srcdir=$ac_confdir
1523   if test ! -r "$srcdir/$ac_unique_file"; then
1524     srcdir=..
1525   fi
1526 else
1527   ac_srcdir_defaulted=no
1528 fi
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1530   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1531   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1532    { (exit 1); exit 1; }; }
1533 fi
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1537    { (exit 1); exit 1; }; }
1538         pwd)`
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541   srcdir=.
1542 fi
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1546 case $srcdir in
1547 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 esac
1549 for ac_var in $ac_precious_vars; do
1550   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1551   eval ac_env_${ac_var}_value=\$${ac_var}
1552   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1553   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554 done
1555
1556 #
1557 # Report the --help message.
1558 #
1559 if test "$ac_init_help" = "long"; then
1560   # Omit some internal or obsolete options to make the list less imposing.
1561   # This message is too long to be a string in the A/UX 3.1 sh.
1562   cat <<_ACEOF
1563 \`configure' configures linux nfs-utils 1.2.1 to adapt to many kinds of systems.
1564
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1566
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE.  See below for descriptions of some of the useful variables.
1569
1570 Defaults for the options are specified in brackets.
1571
1572 Configuration:
1573   -h, --help              display this help and exit
1574       --help=short        display options specific to this package
1575       --help=recursive    display the short help of all the included packages
1576   -V, --version           display version information and exit
1577   -q, --quiet, --silent   do not print \`checking...' messages
1578       --cache-file=FILE   cache test results in FILE [disabled]
1579   -C, --config-cache      alias for \`--cache-file=config.cache'
1580   -n, --no-create         do not create output files
1581       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1582
1583 Installation directories:
1584   --prefix=PREFIX         install architecture-independent files in PREFIX
1585                           [$ac_default_prefix]
1586   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1587                           [PREFIX]
1588
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1593
1594 For better control, use the options below.
1595
1596 Fine tuning of the installation directories:
1597   --bindir=DIR            user executables [EPREFIX/bin]
1598   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1599   --libexecdir=DIR        program executables [EPREFIX/libexec]
1600   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1601   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1602   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1603   --libdir=DIR            object code libraries [EPREFIX/lib]
1604   --includedir=DIR        C header files [PREFIX/include]
1605   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1606   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1607   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1608   --infodir=DIR           info documentation [DATAROOTDIR/info]
1609   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1610   --mandir=DIR            man documentation [DATAROOTDIR/man]
1611   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1612   --htmldir=DIR           html documentation [DOCDIR]
1613   --dvidir=DIR            dvi documentation [DOCDIR]
1614   --pdfdir=DIR            pdf documentation [DOCDIR]
1615   --psdir=DIR             ps documentation [DOCDIR]
1616 _ACEOF
1617
1618   cat <<\_ACEOF
1619
1620 Program names:
1621   --program-prefix=PREFIX            prepend PREFIX to installed program names
1622   --program-suffix=SUFFIX            append SUFFIX to installed program names
1623   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632   case $ac_init_help in
1633      short | recursive ) echo "Configuration of linux nfs-utils 1.2.1:";;
1634    esac
1635   cat <<\_ACEOF
1636
1637 Optional Features:
1638   --disable-option-checking  ignore unrecognized --enable/--with options
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --enable-maintainer-mode  enable make rules and dependencies not useful
1642                           (and sometimes confusing) to the casual installer
1643   --enable-nfsv3          enable support for NFSv3 [default=yes]
1644   --enable-nfsv4          enable support for NFSv4 [default=yes]
1645   --enable-gss            enable support for rpcsec_gss [default=yes]
1646   --enable-kprefix        install progs as rpc.knfsd etc
1647   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1648   --enable-mount          Create mount.nfs and don't use the util-linux
1649                           mount(8) functionality. [default=yes]
1650   --enable-tirpc          enable use of TI-RPC [default=yes]
1651   --enable-ipv6           enable support for IPv6 [default=no]
1652   --enable-mountconfig    enable mount to use a configuration file
1653   --disable-dependency-tracking  speeds up one-time build
1654   --enable-dependency-tracking   do not reject slow dependency extractors
1655   --disable-largefile     omit support for large files
1656   --enable-shared[=PKGS]  build shared libraries [default=yes]
1657   --enable-static[=PKGS]  build static libraries [default=yes]
1658   --enable-fast-install[=PKGS]
1659                           optimize for fast installation [default=yes]
1660   --disable-libtool-lock  avoid locking (might break parallel builds)
1661
1662 Optional Packages:
1663   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1664   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1665   --with-release=XXX      set release to XXX [1]
1666   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1667   --with-statduser=rpcuser
1668                           statd to run under [rpcuser or nobody]
1669   --with-start-statd=scriptname
1670                           When an nfs filesystems is mounted with locking, run
1671                           this script
1672   --with-rpcgen=internal  use internal rpcgen instead of system one
1673   --with-mountfile=filename
1674                           Using filename as the NFS mount options file
1675                           [/etc/nfsmounts.conf]
1676   --with-tirpcinclude=DIR use TI-RPC headers in DIR
1677   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1678                  (optionally in PATH)
1679   --with-pic              try to use only PIC/non-PIC objects [default=use
1680                           both]
1681   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1682   --with-krb5=DIR         use Kerberos v5 installation in DIR
1683
1684 Some influential environment variables:
1685   CC          C compiler command
1686   CFLAGS      C compiler flags
1687   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1688               nonstandard directory <lib dir>
1689   LIBS        libraries to pass to the linker, e.g. -l<library>
1690   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1691               you have headers in a nonstandard directory <include dir>
1692   CPP         C preprocessor
1693   CXX         C++ compiler command
1694   CXXFLAGS    C++ compiler flags
1695   CXXCPP      C++ preprocessor
1696   PKG_CONFIG  path to pkg-config utility
1697   GSSGLUE_CFLAGS
1698               C compiler flags for GSSGLUE, overriding pkg-config
1699   GSSGLUE_LIBS
1700               linker flags for GSSGLUE, overriding pkg-config
1701   RPCSECGSS_CFLAGS
1702               C compiler flags for RPCSECGSS, overriding pkg-config
1703   RPCSECGSS_LIBS
1704               linker flags for RPCSECGSS, overriding pkg-config
1705
1706 Use these variables to override the choices made by `configure' or to help
1707 it to find libraries and programs with nonstandard names/locations.
1708
1709 Report bugs to <linux-nfs@vger.kernel.org>.
1710 _ACEOF
1711 ac_status=$?
1712 fi
1713
1714 if test "$ac_init_help" = "recursive"; then
1715   # If there are subdirs, report their specific --help.
1716   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1717     test -d "$ac_dir" ||
1718       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1719       continue
1720     ac_builddir=.
1721
1722 case "$ac_dir" in
1723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *)
1725   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1726   # A ".." for each directory in $ac_dir_suffix.
1727   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1728   case $ac_top_builddir_sub in
1729   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1731   esac ;;
1732 esac
1733 ac_abs_top_builddir=$ac_pwd
1734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1735 # for backward compatibility:
1736 ac_top_builddir=$ac_top_build_prefix
1737
1738 case $srcdir in
1739   .)  # We are building in place.
1740     ac_srcdir=.
1741     ac_top_srcdir=$ac_top_builddir_sub
1742     ac_abs_top_srcdir=$ac_pwd ;;
1743   [\\/]* | ?:[\\/]* )  # Absolute name.
1744     ac_srcdir=$srcdir$ac_dir_suffix;
1745     ac_top_srcdir=$srcdir
1746     ac_abs_top_srcdir=$srcdir ;;
1747   *) # Relative name.
1748     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1749     ac_top_srcdir=$ac_top_build_prefix$srcdir
1750     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1751 esac
1752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1753
1754     cd "$ac_dir" || { ac_status=$?; continue; }
1755     # Check for guested configure.
1756     if test -f "$ac_srcdir/configure.gnu"; then
1757       echo &&
1758       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1759     elif test -f "$ac_srcdir/configure"; then
1760       echo &&
1761       $SHELL "$ac_srcdir/configure" --help=recursive
1762     else
1763       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1764     fi || ac_status=$?
1765     cd "$ac_pwd" || { ac_status=$?; break; }
1766   done
1767 fi
1768
1769 test -n "$ac_init_help" && exit $ac_status
1770 if $ac_init_version; then
1771   cat <<\_ACEOF
1772 linux nfs-utils configure 1.2.1
1773 generated by GNU Autoconf 2.63
1774
1775 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1776 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780   exit
1781 fi
1782 cat >config.log <<_ACEOF
1783 This file contains any messages produced by compilers while
1784 running configure, to aid debugging if configure makes a mistake.
1785
1786 It was created by linux nfs-utils $as_me 1.2.1, which was
1787 generated by GNU Autoconf 2.63.  Invocation command line was
1788
1789   $ $0 $@
1790
1791 _ACEOF
1792 exec 5>>config.log
1793 {
1794 cat <<_ASUNAME
1795 ## --------- ##
1796 ## Platform. ##
1797 ## --------- ##
1798
1799 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1800 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1801 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1802 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1803 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1804
1805 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1806 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1807
1808 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1809 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1810 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1811 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1812 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1813 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1814 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1815
1816 _ASUNAME
1817
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821   IFS=$as_save_IFS
1822   test -z "$as_dir" && as_dir=.
1823   $as_echo "PATH: $as_dir"
1824 done
1825 IFS=$as_save_IFS
1826
1827 } >&5
1828
1829 cat >&5 <<_ACEOF
1830
1831
1832 ## ----------- ##
1833 ## Core tests. ##
1834 ## ----------- ##
1835
1836 _ACEOF
1837
1838
1839 # Keep a trace of the command line.
1840 # Strip out --no-create and --no-recursion so they do not pile up.
1841 # Strip out --silent because we don't want to record it for future runs.
1842 # Also quote any args containing shell meta-characters.
1843 # Make two passes to allow for proper duplicate-argument suppression.
1844 ac_configure_args=
1845 ac_configure_args0=
1846 ac_configure_args1=
1847 ac_must_keep_next=false
1848 for ac_pass in 1 2
1849 do
1850   for ac_arg
1851   do
1852     case $ac_arg in
1853     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855     | -silent | --silent | --silen | --sile | --sil)
1856       continue ;;
1857     *\'*)
1858       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859     esac
1860     case $ac_pass in
1861     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1862     2)
1863       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1864       if test $ac_must_keep_next = true; then
1865         ac_must_keep_next=false # Got value, back to normal.
1866       else
1867         case $ac_arg in
1868           *=* | --config-cache | -C | -disable-* | --disable-* \
1869           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871           | -with-* | --with-* | -without-* | --without-* | --x)
1872             case "$ac_configure_args0 " in
1873               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1874             esac
1875             ;;
1876           -* ) ac_must_keep_next=true ;;
1877         esac
1878       fi
1879       ac_configure_args="$ac_configure_args '$ac_arg'"
1880       ;;
1881     esac
1882   done
1883 done
1884 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1885 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1886
1887 # When interrupted or exit'd, cleanup temporary files, and complete
1888 # config.log.  We remove comments because anyway the quotes in there
1889 # would cause problems or look ugly.
1890 # WARNING: Use '\'' to represent an apostrophe within the trap.
1891 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892 trap 'exit_status=$?
1893   # Save into config.log some information that might help in debugging.
1894   {
1895     echo
1896
1897     cat <<\_ASBOX
1898 ## ---------------- ##
1899 ## Cache variables. ##
1900 ## ---------------- ##
1901 _ASBOX
1902     echo
1903     # The following way of writing the cache mishandles newlines in values,
1904 (
1905   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1906     eval ac_val=\$$ac_var
1907     case $ac_val in #(
1908     *${as_nl}*)
1909       case $ac_var in #(
1910       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1911 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1912       esac
1913       case $ac_var in #(
1914       _ | IFS | as_nl) ;; #(
1915       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1916       *) $as_unset $ac_var ;;
1917       esac ;;
1918     esac
1919   done
1920   (set) 2>&1 |
1921     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1922     *${as_nl}ac_space=\ *)
1923       sed -n \
1924         "s/'\''/'\''\\\\'\'''\''/g;
1925           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1926       ;; #(
1927     *)
1928       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1929       ;;
1930     esac |
1931     sort
1932 )
1933     echo
1934
1935     cat <<\_ASBOX
1936 ## ----------------- ##
1937 ## Output variables. ##
1938 ## ----------------- ##
1939 _ASBOX
1940     echo
1941     for ac_var in $ac_subst_vars
1942     do
1943       eval ac_val=\$$ac_var
1944       case $ac_val in
1945       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946       esac
1947       $as_echo "$ac_var='\''$ac_val'\''"
1948     done | sort
1949     echo
1950
1951     if test -n "$ac_subst_files"; then
1952       cat <<\_ASBOX
1953 ## ------------------- ##
1954 ## File substitutions. ##
1955 ## ------------------- ##
1956 _ASBOX
1957       echo
1958       for ac_var in $ac_subst_files
1959       do
1960         eval ac_val=\$$ac_var
1961         case $ac_val in
1962         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1963         esac
1964         $as_echo "$ac_var='\''$ac_val'\''"
1965       done | sort
1966       echo
1967     fi
1968
1969     if test -s confdefs.h; then
1970       cat <<\_ASBOX
1971 ## ----------- ##
1972 ## confdefs.h. ##
1973 ## ----------- ##
1974 _ASBOX
1975       echo
1976       cat confdefs.h
1977       echo
1978     fi
1979     test "$ac_signal" != 0 &&
1980       $as_echo "$as_me: caught signal $ac_signal"
1981     $as_echo "$as_me: exit $exit_status"
1982   } >&5
1983   rm -f core *.core core.conftest.* &&
1984     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1985     exit $exit_status
1986 ' 0
1987 for ac_signal in 1 2 13 15; do
1988   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1989 done
1990 ac_signal=0
1991
1992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1993 rm -f -r conftest* confdefs.h
1994
1995 # Predefined preprocessor variables.
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_NAME "$PACKAGE_NAME"
1999 _ACEOF
2000
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2004 _ACEOF
2005
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2009 _ACEOF
2010
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2014 _ACEOF
2015
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019 _ACEOF
2020
2021
2022 # Let the site file select an alternate cache file if it wants to.
2023 # Prefer an explicitly selected file to automatically selected ones.
2024 ac_site_file1=NONE
2025 ac_site_file2=NONE
2026 if test -n "$CONFIG_SITE"; then
2027   ac_site_file1=$CONFIG_SITE
2028 elif test "x$prefix" != xNONE; then
2029   ac_site_file1=$prefix/share/config.site
2030   ac_site_file2=$prefix/etc/config.site
2031 else
2032   ac_site_file1=$ac_default_prefix/share/config.site
2033   ac_site_file2=$ac_default_prefix/etc/config.site
2034 fi
2035 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2036 do
2037   test "x$ac_site_file" = xNONE && continue
2038   if test -r "$ac_site_file"; then
2039     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2040 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2041     sed 's/^/| /' "$ac_site_file" >&5
2042     . "$ac_site_file"
2043   fi
2044 done
2045
2046 if test -r "$cache_file"; then
2047   # Some versions of bash will fail to source /dev/null (special
2048   # files actually), so we avoid doing that.
2049   if test -f "$cache_file"; then
2050     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2051 $as_echo "$as_me: loading cache $cache_file" >&6;}
2052     case $cache_file in
2053       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054       *)                      . "./$cache_file";;
2055     esac
2056   fi
2057 else
2058   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2059 $as_echo "$as_me: creating cache $cache_file" >&6;}
2060   >$cache_file
2061 fi
2062
2063 # Check that the precious variables saved in the cache have kept the same
2064 # value.
2065 ac_cache_corrupted=false
2066 for ac_var in $ac_precious_vars; do
2067   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2068   eval ac_new_set=\$ac_env_${ac_var}_set
2069   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2070   eval ac_new_val=\$ac_env_${ac_var}_value
2071   case $ac_old_set,$ac_new_set in
2072     set,)
2073       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2074 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2075       ac_cache_corrupted=: ;;
2076     ,set)
2077       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2078 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2079       ac_cache_corrupted=: ;;
2080     ,);;
2081     *)
2082       if test "x$ac_old_val" != "x$ac_new_val"; then
2083         # differences in whitespace do not lead to failure.
2084         ac_old_val_w=`echo x $ac_old_val`
2085         ac_new_val_w=`echo x $ac_new_val`
2086         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2087           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2088 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2089           ac_cache_corrupted=:
2090         else
2091           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2092 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2093           eval $ac_var=\$ac_old_val
2094         fi
2095         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2096 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2097         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2098 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2099       fi;;
2100   esac
2101   # Pass precious variables to config.status.
2102   if test "$ac_new_set" = set; then
2103     case $ac_new_val in
2104     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2105     *) ac_arg=$ac_var=$ac_new_val ;;
2106     esac
2107     case " $ac_configure_args " in
2108       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2109       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2110     esac
2111   fi
2112 done
2113 if $ac_cache_corrupted; then
2114   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2116   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2117 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2118   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2119 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147 ac_ext=c
2148 ac_cpp='$CPP $CPPFLAGS'
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152
2153
2154 ac_aux_dir=
2155 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2156   if test -f "$ac_dir/install-sh"; then
2157     ac_aux_dir=$ac_dir
2158     ac_install_sh="$ac_aux_dir/install-sh -c"
2159     break
2160   elif test -f "$ac_dir/install.sh"; then
2161     ac_aux_dir=$ac_dir
2162     ac_install_sh="$ac_aux_dir/install.sh -c"
2163     break
2164   elif test -f "$ac_dir/shtool"; then
2165     ac_aux_dir=$ac_dir
2166     ac_install_sh="$ac_aux_dir/shtool install -c"
2167     break
2168   fi
2169 done
2170 if test -z "$ac_aux_dir"; then
2171   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2172 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176 # These three variables are undocumented and unsupported,
2177 # and are intended to be withdrawn in a future Autoconf release.
2178 # They can cause serious problems if a builder's source tree is in a directory
2179 # whose full name contains unusual characters.
2180 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2181 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2182 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2183
2184
2185 # Make sure we can run config.sub.
2186 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2187   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2188 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2189    { (exit 1); exit 1; }; }
2190
2191 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2192 $as_echo_n "checking build system type... " >&6; }
2193 if test "${ac_cv_build+set}" = set; then
2194   $as_echo_n "(cached) " >&6
2195 else
2196   ac_build_alias=$build_alias
2197 test "x$ac_build_alias" = x &&
2198   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2199 test "x$ac_build_alias" = x &&
2200   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2201 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2202    { (exit 1); exit 1; }; }
2203 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2204   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2205 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2206    { (exit 1); exit 1; }; }
2207
2208 fi
2209 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2210 $as_echo "$ac_cv_build" >&6; }
2211 case $ac_cv_build in
2212 *-*-*) ;;
2213 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2214 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2215    { (exit 1); exit 1; }; };;
2216 esac
2217 build=$ac_cv_build
2218 ac_save_IFS=$IFS; IFS='-'
2219 set x $ac_cv_build
2220 shift
2221 build_cpu=$1
2222 build_vendor=$2
2223 shift; shift
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2226 build_os=$*
2227 IFS=$ac_save_IFS
2228 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2229
2230
2231 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2232 $as_echo_n "checking host system type... " >&6; }
2233 if test "${ac_cv_host+set}" = set; then
2234   $as_echo_n "(cached) " >&6
2235 else
2236   if test "x$host_alias" = x; then
2237   ac_cv_host=$ac_cv_build
2238 else
2239   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2240     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2241 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2242    { (exit 1); exit 1; }; }
2243 fi
2244
2245 fi
2246 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2247 $as_echo "$ac_cv_host" >&6; }
2248 case $ac_cv_host in
2249 *-*-*) ;;
2250 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2251 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2252    { (exit 1); exit 1; }; };;
2253 esac
2254 host=$ac_cv_host
2255 ac_save_IFS=$IFS; IFS='-'
2256 set x $ac_cv_host
2257 shift
2258 host_cpu=$1
2259 host_vendor=$2
2260 shift; shift
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2263 host_os=$*
2264 IFS=$ac_save_IFS
2265 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2266
2267
2268
2269 am__api_version='1.11'
2270
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 # Reject install programs that cannot install multiple files.
2285 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289   $as_echo_n "(cached) " >&6
2290 else
2291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   # Account for people who put trailing slashes in PATH elements.
2297 case $as_dir/ in
2298   ./ | .// | /cC/* | \
2299   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2301   /usr/ucb/* ) ;;
2302   *)
2303     # OSF1 and SCO ODT 3.0 have their own names for install.
2304     # Don't use installbsd from OSF since it installs stuff as root
2305     # by default.
2306     for ac_prog in ginstall scoinst install; do
2307       for ac_exec_ext in '' $ac_executable_extensions; do
2308         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309           if test $ac_prog = install &&
2310             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311             # AIX install.  It has an incompatible calling convention.
2312             :
2313           elif test $ac_prog = install &&
2314             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315             # program-specific install script used by HP pwplus--don't use.
2316             :
2317           else
2318             rm -rf conftest.one conftest.two conftest.dir
2319             echo one > conftest.one
2320             echo two > conftest.two
2321             mkdir conftest.dir
2322             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2323               test -s conftest.one && test -s conftest.two &&
2324               test -s conftest.dir/conftest.one &&
2325               test -s conftest.dir/conftest.two
2326             then
2327               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2328               break 3
2329             fi
2330           fi
2331         fi
2332       done
2333     done
2334     ;;
2335 esac
2336
2337 done
2338 IFS=$as_save_IFS
2339
2340 rm -rf conftest.one conftest.two conftest.dir
2341
2342 fi
2343   if test "${ac_cv_path_install+set}" = set; then
2344     INSTALL=$ac_cv_path_install
2345   else
2346     # As a last resort, use the slow shell script.  Don't cache a
2347     # value for INSTALL within a source directory, because that will
2348     # break other packages using the cache if that directory is
2349     # removed, or if the value is a relative name.
2350     INSTALL=$ac_install_sh
2351   fi
2352 fi
2353 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2354 $as_echo "$INSTALL" >&6; }
2355
2356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2357 # It thinks the first close brace ends the variable substitution.
2358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2359
2360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2361
2362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2363
2364 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2365 $as_echo_n "checking whether build environment is sane... " >&6; }
2366 # Just in case
2367 sleep 1
2368 echo timestamp > conftest.file
2369 # Reject unsafe characters in $srcdir or the absolute working directory
2370 # name.  Accept space and tab only in the latter.
2371 am_lf='
2372 '
2373 case `pwd` in
2374   *[\\\"\#\$\&\'\`$am_lf]*)
2375     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2376 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2377    { (exit 1); exit 1; }; };;
2378 esac
2379 case $srcdir in
2380   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2381     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2382 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2383    { (exit 1); exit 1; }; };;
2384 esac
2385
2386 # Do `set' in a subshell so we don't clobber the current shell's
2387 # arguments.  Must try -L first in case configure is actually a
2388 # symlink; some systems play weird games with the mod time of symlinks
2389 # (eg FreeBSD returns the mod time of the symlink's containing
2390 # directory).
2391 if (
2392    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2393    if test "$*" = "X"; then
2394       # -L didn't work.
2395       set X `ls -t "$srcdir/configure" conftest.file`
2396    fi
2397    rm -f conftest.file
2398    if test "$*" != "X $srcdir/configure conftest.file" \
2399       && test "$*" != "X conftest.file $srcdir/configure"; then
2400
2401       # If neither matched, then we have a broken ls.  This can happen
2402       # if, for instance, CONFIG_SHELL is bash and it inherits a
2403       # broken ls alias from the environment.  This has actually
2404       # happened.  Such a system could not be considered "sane".
2405       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2406 alias in your environment" >&5
2407 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2408 alias in your environment" >&2;}
2409    { (exit 1); exit 1; }; }
2410    fi
2411
2412    test "$2" = conftest.file
2413    )
2414 then
2415    # Ok.
2416    :
2417 else
2418    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2419 Check your system clock" >&5
2420 $as_echo "$as_me: error: newly created file is older than distributed files!
2421 Check your system clock" >&2;}
2422    { (exit 1); exit 1; }; }
2423 fi
2424 { $as_echo "$as_me:$LINENO: result: yes" >&5
2425 $as_echo "yes" >&6; }
2426 test "$program_prefix" != NONE &&
2427   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428 # Use a double $ so make ignores it.
2429 test "$program_suffix" != NONE &&
2430   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431 # Double any \ or $.
2432 # By default was `s,x,x', remove it if useless.
2433 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2435
2436 # expand $ac_aux_dir to an absolute path
2437 am_aux_dir=`cd $ac_aux_dir && pwd`
2438
2439 if test x"${MISSING+set}" != xset; then
2440   case $am_aux_dir in
2441   *\ * | *\     *)
2442     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2443   *)
2444     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2445   esac
2446 fi
2447 # Use eval to expand $SHELL
2448 if eval "$MISSING --run true"; then
2449   am_missing_run="$MISSING --run "
2450 else
2451   am_missing_run=
2452   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2453 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2454 fi
2455
2456 if test x"${install_sh}" != xset; then
2457   case $am_aux_dir in
2458   *\ * | *\     *)
2459     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2460   *)
2461     install_sh="\${SHELL} $am_aux_dir/install-sh"
2462   esac
2463 fi
2464
2465 # Installed binaries are usually stripped using `strip' when the user
2466 # run `make install-strip'.  However `strip' might not be the right
2467 # tool to use in cross-compilation environments, therefore Automake
2468 # will honor the `STRIP' environment variable to overrule this program.
2469 if test "$cross_compiling" != no; then
2470   if test -n "$ac_tool_prefix"; then
2471   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472 set dummy ${ac_tool_prefix}strip; ac_word=$2
2473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if test "${ac_cv_prog_STRIP+set}" = set; then
2476   $as_echo_n "(cached) " >&6
2477 else
2478   if test -n "$STRIP"; then
2479   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486   for ac_exec_ext in '' $ac_executable_extensions; do
2487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 STRIP=$ac_cv_prog_STRIP
2499 if test -n "$STRIP"; then
2500   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2501 $as_echo "$STRIP" >&6; }
2502 else
2503   { $as_echo "$as_me:$LINENO: result: no" >&5
2504 $as_echo "no" >&6; }
2505 fi
2506
2507
2508 fi
2509 if test -z "$ac_cv_prog_STRIP"; then
2510   ac_ct_STRIP=$STRIP
2511   # Extract the first word of "strip", so it can be a program name with args.
2512 set dummy strip; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516   $as_echo_n "(cached) " >&6
2517 else
2518   if test -n "$ac_ct_STRIP"; then
2519   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526   for ac_exec_ext in '' $ac_executable_extensions; do
2527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528     ac_cv_prog_ac_ct_STRIP="strip"
2529     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539 if test -n "$ac_ct_STRIP"; then
2540   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541 $as_echo "$ac_ct_STRIP" >&6; }
2542 else
2543   { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2545 fi
2546
2547   if test "x$ac_ct_STRIP" = x; then
2548     STRIP=":"
2549   else
2550     case $cross_compiling:$ac_tool_warned in
2551 yes:)
2552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554 ac_tool_warned=yes ;;
2555 esac
2556     STRIP=$ac_ct_STRIP
2557   fi
2558 else
2559   STRIP="$ac_cv_prog_STRIP"
2560 fi
2561
2562 fi
2563 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2564
2565 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2566 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2567 if test -z "$MKDIR_P"; then
2568   if test "${ac_cv_path_mkdir+set}" = set; then
2569   $as_echo_n "(cached) " >&6
2570 else
2571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_prog in mkdir gmkdir; do
2577          for ac_exec_ext in '' $ac_executable_extensions; do
2578            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2579            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2580              'mkdir (GNU coreutils) '* | \
2581              'mkdir (coreutils) '* | \
2582              'mkdir (fileutils) '4.1*)
2583                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2584                break 3;;
2585            esac
2586          done
2587        done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592
2593   if test "${ac_cv_path_mkdir+set}" = set; then
2594     MKDIR_P="$ac_cv_path_mkdir -p"
2595   else
2596     # As a last resort, use the slow shell script.  Don't cache a
2597     # value for MKDIR_P within a source directory, because that will
2598     # break other packages using the cache if that directory is
2599     # removed, or if the value is a relative name.
2600     test -d ./--version && rmdir ./--version
2601     MKDIR_P="$ac_install_sh -d"
2602   fi
2603 fi
2604 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2605 $as_echo "$MKDIR_P" >&6; }
2606
2607 mkdir_p="$MKDIR_P"
2608 case $mkdir_p in
2609   [\\/$]* | ?:[\\/]*) ;;
2610   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2611 esac
2612
2613 for ac_prog in gawk mawk nawk awk
2614 do
2615   # Extract the first word of "$ac_prog", so it can be a program name with args.
2616 set dummy $ac_prog; ac_word=$2
2617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if test "${ac_cv_prog_AWK+set}" = set; then
2620   $as_echo_n "(cached) " >&6
2621 else
2622   if test -n "$AWK"; then
2623   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630   for ac_exec_ext in '' $ac_executable_extensions; do
2631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632     ac_cv_prog_AWK="$ac_prog"
2633     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637 done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 AWK=$ac_cv_prog_AWK
2643 if test -n "$AWK"; then
2644   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2645 $as_echo "$AWK" >&6; }
2646 else
2647   { $as_echo "$as_me:$LINENO: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651
2652   test -n "$AWK" && break
2653 done
2654
2655 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2656 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2657 set x ${MAKE-make}
2658 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2659 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2660   $as_echo_n "(cached) " >&6
2661 else
2662   cat >conftest.make <<\_ACEOF
2663 SHELL = /bin/sh
2664 all:
2665         @echo '@@@%%%=$(MAKE)=@@@%%%'
2666 _ACEOF
2667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2668 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2669   *@@@%%%=?*=@@@%%%*)
2670     eval ac_cv_prog_make_${ac_make}_set=yes;;
2671   *)
2672     eval ac_cv_prog_make_${ac_make}_set=no;;
2673 esac
2674 rm -f conftest.make
2675 fi
2676 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2677   { $as_echo "$as_me:$LINENO: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679   SET_MAKE=
2680 else
2681   { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683   SET_MAKE="MAKE=${MAKE-make}"
2684 fi
2685
2686 rm -rf .tst 2>/dev/null
2687 mkdir .tst 2>/dev/null
2688 if test -d .tst; then
2689   am__leading_dot=.
2690 else
2691   am__leading_dot=_
2692 fi
2693 rmdir .tst 2>/dev/null
2694
2695 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2696   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2697   # is not polluted with repeated "-I."
2698   am__isrc=' -I$(srcdir)'
2699   # test to see if srcdir already configured
2700   if test -f $srcdir/config.status; then
2701     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2702 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2703    { (exit 1); exit 1; }; }
2704   fi
2705 fi
2706
2707 # test whether we have cygpath
2708 if test -z "$CYGPATH_W"; then
2709   if (cygpath --version) >/dev/null 2>/dev/null; then
2710     CYGPATH_W='cygpath -w'
2711   else
2712     CYGPATH_W=echo
2713   fi
2714 fi
2715
2716
2717 # Define the identity of the package.
2718  PACKAGE='nfs-utils'
2719  VERSION='1.2.1'
2720
2721
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE "$PACKAGE"
2724 _ACEOF
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define VERSION "$VERSION"
2729 _ACEOF
2730
2731 # Some tools Automake needs.
2732
2733 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2734
2735
2736 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2737
2738
2739 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2740
2741
2742 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2743
2744
2745 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2746
2747 # We need awk for the "check" target.  The system "awk" is bad on
2748 # some platforms.
2749 # Always define AMTAR for backward compatibility.
2750
2751 AMTAR=${AMTAR-"${am_missing_run}tar"}
2752
2753 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2754
2755
2756
2757
2758
2759
2760
2761
2762 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2763 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2764     # Check whether --enable-maintainer-mode was given.
2765 if test "${enable_maintainer_mode+set}" = set; then
2766   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2767 else
2768   USE_MAINTAINER_MODE=no
2769 fi
2770
2771   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2772 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2773    if test $USE_MAINTAINER_MODE = yes; then
2774   MAINTAINER_MODE_TRUE=
2775   MAINTAINER_MODE_FALSE='#'
2776 else
2777   MAINTAINER_MODE_TRUE='#'
2778   MAINTAINER_MODE_FALSE=
2779 fi
2780
2781   MAINT=$MAINTAINER_MODE_TRUE
2782
2783
2784
2785
2786 # Check whether --with-release was given.
2787 if test "${with_release+set}" = set; then
2788   withval=$with_release; RELEASE=$withval
2789 else
2790   RELEASE=1
2791 fi
2792
2793
2794
2795 # Check whether --with-statedir was given.
2796 if test "${with_statedir+set}" = set; then
2797   withval=$with_statedir; statedir=$withval
2798 else
2799   statedir=/var/lib/nfs
2800 fi
2801
2802
2803
2804 # Check whether --with-statduser was given.
2805 if test "${with_statduser+set}" = set; then
2806   withval=$with_statduser; statduser=$withval
2807 else
2808   if test "x$cross_compiling" = "xno"; then
2809                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2810                         statduser=rpcuser
2811                 else
2812                         statduser=nobody
2813                 fi
2814         else
2815                 statduser=nobody
2816         fi
2817 fi
2818
2819
2820
2821 # Check whether --with-start-statd was given.
2822 if test "${with_start_statd+set}" = set; then
2823   withval=$with_start_statd; startstatd=$withval
2824 else
2825   startstatd=/usr/sbin/start-statd
2826
2827 fi
2828
2829
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define START_STATD "$startstatd"
2833 _ACEOF
2834
2835 # Check whether --enable-nfsv3 was given.
2836 if test "${enable_nfsv3+set}" = set; then
2837   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2838 else
2839   enable_nfsv3=yes
2840 fi
2841
2842         if test "$enable_nfsv3" = yes; then
2843
2844 cat >>confdefs.h <<\_ACEOF
2845 #define NFS3_SUPPORTED 1
2846 _ACEOF
2847
2848         else
2849                 enable_nfsv3=
2850         fi
2851
2852 # Check whether --enable-nfsv4 was given.
2853 if test "${enable_nfsv4+set}" = set; then
2854   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2855 else
2856   enable_nfsv4=yes
2857 fi
2858
2859         if test "$enable_nfsv4" = yes; then
2860
2861 cat >>confdefs.h <<\_ACEOF
2862 #define NFS4_SUPPORTED 1
2863 _ACEOF
2864
2865                 IDMAPD=idmapd
2866         else
2867                 enable_nfsv4=
2868                 IDMAPD=
2869         fi
2870
2871
2872          if test "$enable_nfsv4" = "yes"; then
2873   CONFIG_NFSV4_TRUE=
2874   CONFIG_NFSV4_FALSE='#'
2875 else
2876   CONFIG_NFSV4_TRUE='#'
2877   CONFIG_NFSV4_FALSE=
2878 fi
2879
2880 # Check whether --enable-gss was given.
2881 if test "${enable_gss+set}" = set; then
2882   enableval=$enable_gss; enable_gss=$enableval
2883 else
2884   enable_gss=yes
2885 fi
2886
2887         if test "$enable_gss" = yes; then
2888
2889 cat >>confdefs.h <<\_ACEOF
2890 #define GSS_SUPPORTED 1
2891 _ACEOF
2892
2893                 GSSD=gssd
2894                 SVCGSSD=svcgssd
2895         else
2896                 enable_gss=
2897                 GSSD=
2898                 SVCGSSD=
2899         fi
2900
2901
2902
2903          if test "$enable_gss" = "yes"; then
2904   CONFIG_GSS_TRUE=
2905   CONFIG_GSS_FALSE='#'
2906 else
2907   CONFIG_GSS_TRUE='#'
2908   CONFIG_GSS_FALSE=
2909 fi
2910
2911 # Check whether --enable-kprefix was given.
2912 if test "${enable_kprefix+set}" = set; then
2913   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2914 else
2915   kprefix=
2916 fi
2917
2918
2919
2920 # Check whether --with-rpcgen was given.
2921 if test "${with_rpcgen+set}" = set; then
2922   withval=$with_rpcgen; rpcgen_path=$withval
2923 else
2924   rpcgen_path=yes
2925 fi
2926
2927         RPCGEN_PATH=
2928         if test "$rpcgen_path" == "yes"; then
2929             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2930             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2931         elif test "$rpcgen_path" != "internal"; then
2932             RPCGEN_PATH=$rpcgen_path
2933         fi
2934
2935          if test "$RPCGEN_PATH" == ""; then
2936   CONFIG_RPCGEN_TRUE=
2937   CONFIG_RPCGEN_FALSE='#'
2938 else
2939   CONFIG_RPCGEN_TRUE='#'
2940   CONFIG_RPCGEN_FALSE=
2941 fi
2942
2943 # Check whether --enable-uuid was given.
2944 if test "${enable_uuid+set}" = set; then
2945   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2946 else
2947   choose_blkid=default
2948 fi
2949
2950 # Check whether --enable-mount was given.
2951 if test "${enable_mount+set}" = set; then
2952   enableval=$enable_mount; enable_mount=$enableval
2953 else
2954   enable_mount=yes
2955 fi
2956
2957          if test "$enable_mount" = "yes"; then
2958   CONFIG_MOUNT_TRUE=
2959   CONFIG_MOUNT_FALSE='#'
2960 else
2961   CONFIG_MOUNT_TRUE='#'
2962   CONFIG_MOUNT_FALSE=
2963 fi
2964
2965 # Check whether --enable-tirpc was given.
2966 if test "${enable_tirpc+set}" = set; then
2967   enableval=$enable_tirpc; enable_tirpc=$enableval
2968 else
2969   enable_tirpc='yes'
2970 fi
2971
2972 # Check whether --enable-ipv6 was given.
2973 if test "${enable_ipv6+set}" = set; then
2974   enableval=$enable_ipv6; enable_ipv6=$enableval
2975 else
2976   enable_ipv6=no
2977 fi
2978
2979         if test "$enable_ipv6" = yes; then
2980
2981 cat >>confdefs.h <<\_ACEOF
2982 #define IPV6_SUPPORTED 1
2983 _ACEOF
2984
2985         else
2986                 enable_ipv6=
2987         fi
2988
2989          if test "$enable_ipv6" = "yes"; then
2990   CONFIG_IPV6_TRUE=
2991   CONFIG_IPV6_FALSE='#'
2992 else
2993   CONFIG_IPV6_TRUE='#'
2994   CONFIG_IPV6_FALSE=
2995 fi
2996
2997
2998 if test "$enable_mount" = yes; then
2999         # Check whether --enable-mountconfig was given.
3000 if test "${enable_mountconfig+set}" = set; then
3001   enableval=$enable_mountconfig; mountconfig=$enableval
3002 else
3003   mountconfig=no
3004 fi
3005
3006         if test "$enable_mountconfig" = yes; then
3007
3008 cat >>confdefs.h <<\_ACEOF
3009 #define MOUNT_CONFIG 1
3010 _ACEOF
3011
3012
3013 # Check whether --with-mountfile was given.
3014 if test "${with_mountfile+set}" = set; then
3015   withval=$with_mountfile; mountfile=$withval
3016 else
3017   mountfile=/etc/nfsmount.conf
3018 fi
3019
3020
3021
3022 cat >>confdefs.h <<_ACEOF
3023 #define MOUNTOPTS_CONFFILE "$mountfile"
3024 _ACEOF
3025
3026         else
3027                 enable_mountconfig=
3028         fi
3029
3030          if test "$enable_mountconfig" = "yes"; then
3031   MOUNT_CONFIG_TRUE=
3032   MOUNT_CONFIG_FALSE='#'
3033 else
3034   MOUNT_CONFIG_TRUE='#'
3035   MOUNT_CONFIG_FALSE=
3036 fi
3037
3038 else
3039          if test "$enable_mount" = "yes"; then
3040   MOUNT_CONFIG_TRUE=
3041   MOUNT_CONFIG_FALSE='#'
3042 else
3043   MOUNT_CONFIG_TRUE='#'
3044   MOUNT_CONFIG_FALSE=
3045 fi
3046
3047 fi
3048
3049 DEPDIR="${am__leading_dot}deps"
3050
3051 ac_config_commands="$ac_config_commands depfiles"
3052
3053
3054 am_make=${MAKE-make}
3055 cat > confinc << 'END'
3056 am__doit:
3057         @echo this is the am__doit target
3058 .PHONY: am__doit
3059 END
3060 # If we don't find an include directive, just comment out the code.
3061 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3062 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3063 am__include="#"
3064 am__quote=
3065 _am_result=none
3066 # First try GNU make style include.
3067 echo "include confinc" > confmf
3068 # Ignore all kinds of additional output from `make'.
3069 case `$am_make -s -f confmf 2> /dev/null` in #(
3070 *the\ am__doit\ target*)
3071   am__include=include
3072   am__quote=
3073   _am_result=GNU
3074   ;;
3075 esac
3076 # Now try BSD make style include.
3077 if test "$am__include" = "#"; then
3078    echo '.include "confinc"' > confmf
3079    case `$am_make -s -f confmf 2> /dev/null` in #(
3080    *the\ am__doit\ target*)
3081      am__include=.include
3082      am__quote="\""
3083      _am_result=BSD
3084      ;;
3085    esac
3086 fi
3087
3088
3089 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3090 $as_echo "$_am_result" >&6; }
3091 rm -f confinc confmf
3092
3093 # Check whether --enable-dependency-tracking was given.
3094 if test "${enable_dependency_tracking+set}" = set; then
3095   enableval=$enable_dependency_tracking;
3096 fi
3097
3098 if test "x$enable_dependency_tracking" != xno; then
3099   am_depcomp="$ac_aux_dir/depcomp"
3100   AMDEPBACKSLASH='\'
3101 fi
3102  if test "x$enable_dependency_tracking" != xno; then
3103   AMDEP_TRUE=
3104   AMDEP_FALSE='#'
3105 else
3106   AMDEP_TRUE='#'
3107   AMDEP_FALSE=
3108 fi
3109
3110
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 if test -n "$ac_tool_prefix"; then
3117   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if test "${ac_cv_prog_CC+set}" = set; then
3122   $as_echo_n "(cached) " >&6
3123 else
3124   if test -n "$CC"; then
3125   ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132   for ac_exec_ext in '' $ac_executable_extensions; do
3133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149   { $as_echo "$as_me:$LINENO: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_CC"; then
3156   ac_ct_CC=$CC
3157   # Extract the first word of "gcc", so it can be a program name with args.
3158 set dummy gcc; ac_word=$2
3159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test -n "$ac_ct_CC"; then
3165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172   for ac_exec_ext in '' $ac_executable_extensions; do
3173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174     ac_cv_prog_ac_ct_CC="gcc"
3175     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3187 $as_echo "$ac_ct_CC" >&6; }
3188 else
3189   { $as_echo "$as_me:$LINENO: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193   if test "x$ac_ct_CC" = x; then
3194     CC=""
3195   else
3196     case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202     CC=$ac_ct_CC
3203   fi
3204 else
3205   CC="$ac_cv_prog_CC"
3206 fi
3207
3208 if test -z "$CC"; then
3209           if test -n "$ac_tool_prefix"; then
3210     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}cc; ac_word=$2
3212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_CC+set}" = set; then
3215   $as_echo_n "(cached) " >&6
3216 else
3217   if test -n "$CC"; then
3218   ac_cv_prog_CC="$CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225   for ac_exec_ext in '' $ac_executable_extensions; do
3226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227     ac_cv_prog_CC="${ac_tool_prefix}cc"
3228     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 CC=$ac_cv_prog_CC
3238 if test -n "$CC"; then
3239   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3240 $as_echo "$CC" >&6; }
3241 else
3242   { $as_echo "$as_me:$LINENO: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246
3247   fi
3248 fi
3249 if test -z "$CC"; then
3250   # Extract the first word of "cc", so it can be a program name with args.
3251 set dummy cc; ac_word=$2
3252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255   $as_echo_n "(cached) " >&6
3256 else
3257   if test -n "$CC"; then
3258   ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260   ac_prog_rejected=no
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3269        ac_prog_rejected=yes
3270        continue
3271      fi
3272     ac_cv_prog_CC="cc"
3273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274     break 2
3275   fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 if test $ac_prog_rejected = yes; then
3281   # We found a bogon in the path, so make sure we never use it.
3282   set dummy $ac_cv_prog_CC
3283   shift
3284   if test $# != 0; then
3285     # We chose a different compiler from the bogus one.
3286     # However, it has the same basename, so the bogon will be chosen
3287     # first if we set CC to just the basename; use the full file name.
3288     shift
3289     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3290   fi
3291 fi
3292 fi
3293 fi
3294 CC=$ac_cv_prog_CC
3295 if test -n "$CC"; then
3296   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3297 $as_echo "$CC" >&6; }
3298 else
3299   { $as_echo "$as_me:$LINENO: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303
3304 fi
3305 if test -z "$CC"; then
3306   if test -n "$ac_tool_prefix"; then
3307   for ac_prog in cl.exe
3308   do
3309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if test "${ac_cv_prog_CC+set}" = set; then
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if test -n "$CC"; then
3317   ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324   for ac_exec_ext in '' $ac_executable_extensions; do
3325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3327     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341   { $as_echo "$as_me:$LINENO: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346     test -n "$CC" && break
3347   done
3348 fi
3349 if test -z "$CC"; then
3350   ac_ct_CC=$CC
3351   for ac_prog in cl.exe
3352 do
3353   # Extract the first word of "$ac_prog", so it can be a program name with args.
3354 set dummy $ac_prog; ac_word=$2
3355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3358   $as_echo_n "(cached) " >&6
3359 else
3360   if test -n "$ac_ct_CC"; then
3361   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368   for ac_exec_ext in '' $ac_executable_extensions; do
3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370     ac_cv_prog_ac_ct_CC="$ac_prog"
3371     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3381 if test -n "$ac_ct_CC"; then
3382   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3383 $as_echo "$ac_ct_CC" >&6; }
3384 else
3385   { $as_echo "$as_me:$LINENO: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390   test -n "$ac_ct_CC" && break
3391 done
3392
3393   if test "x$ac_ct_CC" = x; then
3394     CC=""
3395   else
3396     case $cross_compiling:$ac_tool_warned in
3397 yes:)
3398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3400 ac_tool_warned=yes ;;
3401 esac
3402     CC=$ac_ct_CC
3403   fi
3404 fi
3405
3406 fi
3407
3408
3409 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3412 See \`config.log' for more details." >&5
3413 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3414 See \`config.log' for more details." >&2;}
3415    { (exit 1); exit 1; }; }; }
3416
3417 # Provide some information about the compiler.
3418 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3419 set X $ac_compile
3420 ac_compiler=$2
3421 { (ac_try="$ac_compiler --version >&5"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428   (eval "$ac_compiler --version >&5") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }
3432 { (ac_try="$ac_compiler -v >&5"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439   (eval "$ac_compiler -v >&5") 2>&5
3440   ac_status=$?
3441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }
3443 { (ac_try="$ac_compiler -V >&5"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3449 $as_echo "$ac_try_echo") >&5
3450   (eval "$ac_compiler -V >&5") 2>&5
3451   ac_status=$?
3452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }
3454
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3474 # of exeext.
3475 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3476 $as_echo_n "checking for C compiler default output file name... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3478
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3481
3482 ac_rmfiles=
3483 for ac_file in $ac_files
3484 do
3485   case $ac_file in
3486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3488   esac
3489 done
3490 rm -f $ac_rmfiles
3491
3492 if { (ac_try="$ac_link_default"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499   (eval "$ac_link_default") 2>&5
3500   ac_status=$?
3501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; then
3503   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3507 # Autoconf.
3508 for ac_file in $ac_files ''
3509 do
3510   test -f "$ac_file" || continue
3511   case $ac_file in
3512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3513         ;;
3514     [ab].out )
3515         # We found the default executable, but exeext='' is most
3516         # certainly right.
3517         break;;
3518     *.* )
3519         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3520         then :; else
3521            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3522         fi
3523         # We set ac_cv_exeext here because the later test for it is not
3524         # safe: cross compilers may not add the suffix if given an `-o'
3525         # argument, so we may need to know it at that point already.
3526         # Even if this section looks crufty: it has the advantage of
3527         # actually working.
3528         break;;
3529     * )
3530         break;;
3531   esac
3532 done
3533 test "$ac_cv_exeext" = no && ac_cv_exeext=
3534
3535 else
3536   ac_file=''
3537 fi
3538
3539 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3540 $as_echo "$ac_file" >&6; }
3541 if test -z "$ac_file"; then
3542   $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3548 See \`config.log' for more details." >&5
3549 $as_echo "$as_me: error: C compiler cannot create executables
3550 See \`config.log' for more details." >&2;}
3551    { (exit 77); exit 77; }; }; }
3552 fi
3553
3554 ac_exeext=$ac_cv_exeext
3555
3556 # Check that the compiler produces executables we can run.  If not, either
3557 # the compiler is broken, or we cross compile.
3558 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3559 $as_echo_n "checking whether the C compiler works... " >&6; }
3560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3561 # If not cross compiling, check that we can run a simple program.
3562 if test "$cross_compiling" != yes; then
3563   if { ac_try='./$ac_file'
3564   { (case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3569 $as_echo "$ac_try_echo") >&5
3570   (eval "$ac_try") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); }; }; then
3574     cross_compiling=no
3575   else
3576     if test "$cross_compiling" = maybe; then
3577         cross_compiling=yes
3578     else
3579         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details." >&5
3584 $as_echo "$as_me: error: cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details." >&2;}
3587    { (exit 1); exit 1; }; }; }
3588     fi
3589   fi
3590 fi
3591 { $as_echo "$as_me:$LINENO: result: yes" >&5
3592 $as_echo "yes" >&6; }
3593
3594 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3595 ac_clean_files=$ac_clean_files_save
3596 # Check that the compiler produces executables we can run.  If not, either
3597 # the compiler is broken, or we cross compile.
3598 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3599 $as_echo_n "checking whether we are cross compiling... " >&6; }
3600 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3601 $as_echo "$cross_compiling" >&6; }
3602
3603 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3604 $as_echo_n "checking for suffix of executables... " >&6; }
3605 if { (ac_try="$ac_link"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3611 $as_echo "$ac_try_echo") >&5
3612   (eval "$ac_link") 2>&5
3613   ac_status=$?
3614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); }; then
3616   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3617 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3618 # work properly (i.e., refer to `conftest.exe'), while it won't with
3619 # `rm'.
3620 for ac_file in conftest.exe conftest conftest.*; do
3621   test -f "$ac_file" || continue
3622   case $ac_file in
3623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625           break;;
3626     * ) break;;
3627   esac
3628 done
3629 else
3630   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3633 See \`config.log' for more details." >&5
3634 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3635 See \`config.log' for more details." >&2;}
3636    { (exit 1); exit 1; }; }; }
3637 fi
3638
3639 rm -f conftest$ac_cv_exeext
3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3642
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3645 ac_exeext=$EXEEXT
3646 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3647 $as_echo_n "checking for suffix of object files... " >&6; }
3648 if test "${ac_cv_objext+set}" = set; then
3649   $as_echo_n "(cached) " >&6
3650 else
3651   cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657
3658 int
3659 main ()
3660 {
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.o conftest.obj
3667 if { (ac_try="$ac_compile"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3673 $as_echo "$ac_try_echo") >&5
3674   (eval "$ac_compile") 2>&5
3675   ac_status=$?
3676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; then
3678   for ac_file in conftest.o conftest.obj conftest.*; do
3679   test -f "$ac_file" || continue;
3680   case $ac_file in
3681     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683        break;;
3684   esac
3685 done
3686 else
3687   $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3693 See \`config.log' for more details." >&5
3694 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3695 See \`config.log' for more details." >&2;}
3696    { (exit 1); exit 1; }; }; }
3697 fi
3698
3699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3700 fi
3701 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3702 $as_echo "$ac_cv_objext" >&6; }
3703 OBJEXT=$ac_cv_objext
3704 ac_objext=$OBJEXT
3705 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3708   $as_echo_n "(cached) " >&6
3709 else
3710   cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h.  */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h.  */
3716
3717 int
3718 main ()
3719 {
3720 #ifndef __GNUC__
3721        choke me
3722 #endif
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.$ac_objext
3729 if { (ac_try="$ac_compile"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3735 $as_echo "$ac_try_echo") >&5
3736   (eval "$ac_compile") 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } && {
3743          test -z "$ac_c_werror_flag" ||
3744          test ! -s conftest.err
3745        } && test -s conftest.$ac_objext; then
3746   ac_compiler_gnu=yes
3747 else
3748   $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751         ac_compiler_gnu=no
3752 fi
3753
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756
3757 fi
3758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3760 if test $ac_compiler_gnu = yes; then
3761   GCC=yes
3762 else
3763   GCC=
3764 fi
3765 ac_test_CFLAGS=${CFLAGS+set}
3766 ac_save_CFLAGS=$CFLAGS
3767 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3769 if test "${ac_cv_prog_cc_g+set}" = set; then
3770   $as_echo_n "(cached) " >&6
3771 else
3772   ac_save_c_werror_flag=$ac_c_werror_flag
3773    ac_c_werror_flag=yes
3774    ac_cv_prog_cc_g=no
3775    CFLAGS="-g"
3776    cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h.  */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3798 $as_echo "$ac_try_echo") >&5
3799   (eval "$ac_compile") 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } && {
3806          test -z "$ac_c_werror_flag" ||
3807          test ! -s conftest.err
3808        } && test -s conftest.$ac_objext; then
3809   ac_cv_prog_cc_g=yes
3810 else
3811   $as_echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814         CFLAGS=""
3815       cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h.  */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h.  */
3821
3822 int
3823 main ()
3824 {
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (ac_try="$ac_compile"
3832 case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3837 $as_echo "$ac_try_echo") >&5
3838   (eval "$ac_compile") 2>conftest.er1
3839   ac_status=$?
3840   grep -v '^ *+' conftest.er1 >conftest.err
3841   rm -f conftest.er1
3842   cat conftest.err >&5
3843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); } && {
3845          test -z "$ac_c_werror_flag" ||
3846          test ! -s conftest.err
3847        } && test -s conftest.$ac_objext; then
3848   :
3849 else
3850   $as_echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853         ac_c_werror_flag=$ac_save_c_werror_flag
3854          CFLAGS="-g"
3855          cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3877 $as_echo "$ac_try_echo") >&5
3878   (eval "$ac_compile") 2>conftest.er1
3879   ac_status=$?
3880   grep -v '^ *+' conftest.er1 >conftest.err
3881   rm -f conftest.er1
3882   cat conftest.err >&5
3883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); } && {
3885          test -z "$ac_c_werror_flag" ||
3886          test ! -s conftest.err
3887        } && test -s conftest.$ac_objext; then
3888   ac_cv_prog_cc_g=yes
3889 else
3890   $as_echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893
3894 fi
3895
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 fi
3898
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903    ac_c_werror_flag=$ac_save_c_werror_flag
3904 fi
3905 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3906 $as_echo "$ac_cv_prog_cc_g" >&6; }
3907 if test "$ac_test_CFLAGS" = set; then
3908   CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910   if test "$GCC" = yes; then
3911     CFLAGS="-g -O2"
3912   else
3913     CFLAGS="-g"
3914   fi
3915 else
3916   if test "$GCC" = yes; then
3917     CFLAGS="-O2"
3918   else
3919     CFLAGS=
3920   fi
3921 fi
3922 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3924 if test "${ac_cv_prog_cc_c89+set}" = set; then
3925   $as_echo_n "(cached) " >&6
3926 else
3927   ac_cv_prog_cc_c89=no
3928 ac_save_CC=$CC
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 #include <stdarg.h>
3936 #include <stdio.h>
3937 #include <sys/types.h>
3938 #include <sys/stat.h>
3939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3940 struct buf { int x; };
3941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942 static char *e (p, i)
3943      char **p;
3944      int i;
3945 {
3946   return p[i];
3947 }
3948 static char *f (char * (*g) (char **, int), char **p, ...)
3949 {
3950   char *s;
3951   va_list v;
3952   va_start (v,p);
3953   s = g (p, va_arg (v,int));
3954   va_end (v);
3955   return s;
3956 }
3957
3958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3959    function prototypes and stuff, but not '\xHH' hex character constants.
3960    These don't provoke an error unfortunately, instead are silently treated
3961    as 'x'.  The following induces an error, until -std is added to get
3962    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3963    array size at least.  It's necessary to write '\x00'==0 to get something
3964    that's true only with -std.  */
3965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3966
3967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3968    inside strings and character constants.  */
3969 #define FOO(x) 'x'
3970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3971
3972 int test (int i, double x);
3973 struct s1 {int (*f) (int a);};
3974 struct s2 {int (*f) (double a);};
3975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976 int argc;
3977 char **argv;
3978 int
3979 main ()
3980 {
3981 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3987         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3988 do
3989   CC="$ac_save_CC $ac_arg"
3990   rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3992 case "(($ac_try" in
3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994   *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3997 $as_echo "$ac_try_echo") >&5
3998   (eval "$ac_compile") 2>conftest.er1
3999   ac_status=$?
4000   grep -v '^ *+' conftest.er1 >conftest.err
4001   rm -f conftest.er1
4002   cat conftest.err >&5
4003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } && {
4005          test -z "$ac_c_werror_flag" ||
4006          test ! -s conftest.err
4007        } && test -s conftest.$ac_objext; then
4008   ac_cv_prog_cc_c89=$ac_arg
4009 else
4010   $as_echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013
4014 fi
4015
4016 rm -f core conftest.err conftest.$ac_objext
4017   test "x$ac_cv_prog_cc_c89" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4021
4022 fi
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c89" in
4025   x)
4026     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028   xno)
4029     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4031   *)
4032     CC="$CC $ac_cv_prog_cc_c89"
4033     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035 esac
4036
4037
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044 depcc="$CC"   am_compiler_list=
4045
4046 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4047 $as_echo_n "checking dependency style of $depcc... " >&6; }
4048 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4049   $as_echo_n "(cached) " >&6
4050 else
4051   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4052   # We make a subdir and do the tests there.  Otherwise we can end up
4053   # making bogus files that we don't know about and never remove.  For
4054   # instance it was reported that on HP-UX the gcc test will end up
4055   # making a dummy file named `D' -- because `-MD' means `put the output
4056   # in D'.
4057   mkdir conftest.dir
4058   # Copy depcomp to subdir because otherwise we won't find it if we're
4059   # using a relative directory.
4060   cp "$am_depcomp" conftest.dir
4061   cd conftest.dir
4062   # We will build objects and dependencies in a subdirectory because
4063   # it helps to detect inapplicable dependency modes.  For instance
4064   # both Tru64's cc and ICC support -MD to output dependencies as a
4065   # side effect of compilation, but ICC will put the dependencies in
4066   # the current directory while Tru64 will put them in the object
4067   # directory.
4068   mkdir sub
4069
4070   am_cv_CC_dependencies_compiler_type=none
4071   if test "$am_compiler_list" = ""; then
4072      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073   fi
4074   am__universal=false
4075   case " $depcc " in #(
4076      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4077      esac
4078
4079   for depmode in $am_compiler_list; do
4080     # Setup a source with many dependencies, because some compilers
4081     # like to wrap large dependency lists on column 80 (with \), and
4082     # we should not choose a depcomp mode which is confused by this.
4083     #
4084     # We need to recreate these files for each test, as the compiler may
4085     # overwrite some of them when testing with obscure command lines.
4086     # This happens at least with the AIX C compiler.
4087     : > sub/conftest.c
4088     for i in 1 2 3 4 5 6; do
4089       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4091       # Solaris 8's {/usr,}/bin/sh.
4092       touch sub/conftst$i.h
4093     done
4094     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4095
4096     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4097     # mode.  It turns out that the SunPro C++ compiler does not properly
4098     # handle `-M -o', and we need to detect this.  Also, some Intel
4099     # versions had trouble with output in subdirs
4100     am__obj=sub/conftest.${OBJEXT-o}
4101     am__minus_obj="-o $am__obj"
4102     case $depmode in
4103     gcc)
4104       # This depmode causes a compiler race in universal mode.
4105       test "$am__universal" = false || continue
4106       ;;
4107     nosideeffect)
4108       # after this tag, mechanisms are not by side-effect, so they'll
4109       # only be used when explicitly requested
4110       if test "x$enable_dependency_tracking" = xyes; then
4111         continue
4112       else
4113         break
4114       fi
4115       ;;
4116     msvisualcpp | msvcmsys)
4117       # This compiler won't grok `-c -o', but also, the minuso test has
4118       # not run yet.  These depmodes are late enough in the game, and
4119       # so weak that their functioning should not be impacted.
4120       am__obj=conftest.${OBJEXT-o}
4121       am__minus_obj=
4122       ;;
4123     none) break ;;
4124     esac
4125     if depmode=$depmode \
4126        source=sub/conftest.c object=$am__obj \
4127        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4129          >/dev/null 2>conftest.err &&
4130        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4131        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4132        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4133        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4134       # icc doesn't choke on unknown options, it will just issue warnings
4135       # or remarks (even with -Werror).  So we grep stderr for any message
4136       # that says an option was ignored or not supported.
4137       # When given -MP, icc 7.0 and 7.1 complain thusly:
4138       #   icc: Command line warning: ignoring option '-M'; no argument required
4139       # The diagnosis changed in icc 8.0:
4140       #   icc: Command line remark: option '-MP' not supported
4141       if (grep 'ignoring option' conftest.err ||
4142           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4143         am_cv_CC_dependencies_compiler_type=$depmode
4144         break
4145       fi
4146     fi
4147   done
4148
4149   cd ..
4150   rm -rf conftest.dir
4151 else
4152   am_cv_CC_dependencies_compiler_type=none
4153 fi
4154
4155 fi
4156 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159
4160  if
4161   test "x$enable_dependency_tracking" != xno \
4162   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4163   am__fastdepCC_TRUE=
4164   am__fastdepCC_FALSE='#'
4165 else
4166   am__fastdepCC_TRUE='#'
4167   am__fastdepCC_FALSE=
4168 fi
4169
4170
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4179 # On Suns, sometimes $CPP names a directory.
4180 if test -n "$CPP" && test -d "$CPP"; then
4181   CPP=
4182 fi
4183 if test -z "$CPP"; then
4184   if test "${ac_cv_prog_CPP+set}" = set; then
4185   $as_echo_n "(cached) " >&6
4186 else
4187       # Double quotes because CPP needs to be expanded
4188     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4189     do
4190       ac_preproc_ok=false
4191 for ac_c_preproc_warn_flag in '' yes
4192 do
4193   # Use a header file that comes with gcc, so configuring glibc
4194   # with a fresh cross-compiler works.
4195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196   # <limits.h> exists even on freestanding compilers.
4197   # On the NeXT, cc -E runs the code through the compiler's parser,
4198   # not just through cpp. "Syntax error" is here to catch this case.
4199   cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205 #ifdef __STDC__
4206 # include <limits.h>
4207 #else
4208 # include <assert.h>
4209 #endif
4210                      Syntax error
4211 _ACEOF
4212 if { (ac_try="$ac_cpp conftest.$ac_ext"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } >/dev/null && {
4226          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4227          test ! -s conftest.err
4228        }; then
4229   :
4230 else
4231   $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234   # Broken: fails on valid input.
4235 continue
4236 fi
4237
4238 rm -f conftest.err conftest.$ac_ext
4239
4240   # OK, works on sane cases.  Now check whether nonexistent headers
4241   # can be detected and how.
4242   cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h.  */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h.  */
4248 #include <ac_nonexistent.h>
4249 _ACEOF
4250 if { (ac_try="$ac_cpp conftest.$ac_ext"
4251 case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4256 $as_echo "$ac_try_echo") >&5
4257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } >/dev/null && {
4264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4265          test ! -s conftest.err
4266        }; then
4267   # Broken: success on invalid input.
4268 continue
4269 else
4270   $as_echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273   # Passes both tests.
4274 ac_preproc_ok=:
4275 break
4276 fi
4277
4278 rm -f conftest.err conftest.$ac_ext
4279
4280 done
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then
4284   break
4285 fi
4286
4287     done
4288     ac_cv_prog_CPP=$CPP
4289
4290 fi
4291   CPP=$ac_cv_prog_CPP
4292 else
4293   ac_cv_prog_CPP=$CPP
4294 fi
4295 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4296 $as_echo "$CPP" >&6; }
4297 ac_preproc_ok=false
4298 for ac_c_preproc_warn_flag in '' yes
4299 do
4300   # Use a header file that comes with gcc, so configuring glibc
4301   # with a fresh cross-compiler works.
4302   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303   # <limits.h> exists even on freestanding compilers.
4304   # On the NeXT, cc -E runs the code through the compiler's parser,
4305   # not just through cpp. "Syntax error" is here to catch this case.
4306   cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312 #ifdef __STDC__
4313 # include <limits.h>
4314 #else
4315 # include <assert.h>
4316 #endif
4317                      Syntax error
4318 _ACEOF
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4325 $as_echo "$ac_try_echo") >&5
4326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } >/dev/null && {
4333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334          test ! -s conftest.err
4335        }; then
4336   :
4337 else
4338   $as_echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341   # Broken: fails on valid input.
4342 continue
4343 fi
4344
4345 rm -f conftest.err conftest.$ac_ext
4346
4347   # OK, works on sane cases.  Now check whether nonexistent headers
4348   # can be detected and how.
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 #include <ac_nonexistent.h>
4356 _ACEOF
4357 if { (ac_try="$ac_cpp conftest.$ac_ext"
4358 case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4363 $as_echo "$ac_try_echo") >&5
4364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } >/dev/null && {
4371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4372          test ! -s conftest.err
4373        }; then
4374   # Broken: success on invalid input.
4375 continue
4376 else
4377   $as_echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380   # Passes both tests.
4381 ac_preproc_ok=:
4382 break
4383 fi
4384
4385 rm -f conftest.err conftest.$ac_ext
4386
4387 done
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then
4391   :
4392 else
4393   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4396 See \`config.log' for more details." >&5
4397 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&2;}
4399    { (exit 1); exit 1; }; }; }
4400 fi
4401
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
4408
4409 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4411 if test "${ac_cv_path_GREP+set}" = set; then
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test -z "$GREP"; then
4415   ac_path_GREP_found=false
4416   # Loop through the user's path and test for each of PROGNAME-LIST
4417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_prog in grep ggrep; do
4423     for ac_exec_ext in '' $ac_executable_extensions; do
4424       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4425       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4426 # Check for GNU ac_path_GREP and select it if it is found.
4427   # Check for GNU $ac_path_GREP
4428 case `"$ac_path_GREP" --version 2>&1` in
4429 *GNU*)
4430   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4431 *)
4432   ac_count=0
4433   $as_echo_n 0123456789 >"conftest.in"
4434   while :
4435   do
4436     cat "conftest.in" "conftest.in" >"conftest.tmp"
4437     mv "conftest.tmp" "conftest.in"
4438     cp "conftest.in" "conftest.nl"
4439     $as_echo 'GREP' >> "conftest.nl"
4440     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442     ac_count=`expr $ac_count + 1`
4443     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4444       # Best one so far, save it but keep looking for a better one
4445       ac_cv_path_GREP="$ac_path_GREP"
4446       ac_path_GREP_max=$ac_count
4447     fi
4448     # 10*(2^10) chars as input seems more than enough
4449     test $ac_count -gt 10 && break
4450   done
4451   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4452 esac
4453
4454       $ac_path_GREP_found && break 3
4455     done
4456   done
4457 done
4458 IFS=$as_save_IFS
4459   if test -z "$ac_cv_path_GREP"; then
4460     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4461 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4462    { (exit 1); exit 1; }; }
4463   fi
4464 else
4465   ac_cv_path_GREP=$GREP
4466 fi
4467
4468 fi
4469 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4470 $as_echo "$ac_cv_path_GREP" >&6; }
4471  GREP="$ac_cv_path_GREP"
4472
4473
4474 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4475 $as_echo_n "checking for egrep... " >&6; }
4476 if test "${ac_cv_path_EGREP+set}" = set; then
4477   $as_echo_n "(cached) " >&6
4478 else
4479   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4480    then ac_cv_path_EGREP="$GREP -E"
4481    else
4482      if test -z "$EGREP"; then
4483   ac_path_EGREP_found=false
4484   # Loop through the user's path and test for each of PROGNAME-LIST
4485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_prog in egrep; do
4491     for ac_exec_ext in '' $ac_executable_extensions; do
4492       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4493       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4494 # Check for GNU ac_path_EGREP and select it if it is found.
4495   # Check for GNU $ac_path_EGREP
4496 case `"$ac_path_EGREP" --version 2>&1` in
4497 *GNU*)
4498   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4499 *)
4500   ac_count=0
4501   $as_echo_n 0123456789 >"conftest.in"
4502   while :
4503   do
4504     cat "conftest.in" "conftest.in" >"conftest.tmp"
4505     mv "conftest.tmp" "conftest.in"
4506     cp "conftest.in" "conftest.nl"
4507     $as_echo 'EGREP' >> "conftest.nl"
4508     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510     ac_count=`expr $ac_count + 1`
4511     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4512       # Best one so far, save it but keep looking for a better one
4513       ac_cv_path_EGREP="$ac_path_EGREP"
4514       ac_path_EGREP_max=$ac_count
4515     fi
4516     # 10*(2^10) chars as input seems more than enough
4517     test $ac_count -gt 10 && break
4518   done
4519   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 esac
4521
4522       $ac_path_EGREP_found && break 3
4523     done
4524   done
4525 done
4526 IFS=$as_save_IFS
4527   if test -z "$ac_cv_path_EGREP"; then
4528     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4529 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4530    { (exit 1); exit 1; }; }
4531   fi
4532 else
4533   ac_cv_path_EGREP=$EGREP
4534 fi
4535
4536    fi
4537 fi
4538 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4539 $as_echo "$ac_cv_path_EGREP" >&6; }
4540  EGREP="$ac_cv_path_EGREP"
4541
4542
4543 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4544 $as_echo_n "checking for ANSI C header files... " >&6; }
4545 if test "${ac_cv_header_stdc+set}" = set; then
4546   $as_echo_n "(cached) " >&6
4547 else
4548   cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554 #include <stdlib.h>
4555 #include <stdarg.h>
4556 #include <string.h>
4557 #include <float.h>
4558
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (ac_try="$ac_compile"
4569 case "(($ac_try" in
4570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571   *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575   (eval "$ac_compile") 2>conftest.er1
4576   ac_status=$?
4577   grep -v '^ *+' conftest.er1 >conftest.err
4578   rm -f conftest.er1
4579   cat conftest.err >&5
4580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } && {
4582          test -z "$ac_c_werror_flag" ||
4583          test ! -s conftest.err
4584        } && test -s conftest.$ac_objext; then
4585   ac_cv_header_stdc=yes
4586 else
4587   $as_echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590         ac_cv_header_stdc=no
4591 fi
4592
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594
4595 if test $ac_cv_header_stdc = yes; then
4596   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597   cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h.  */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h.  */
4603 #include <string.h>
4604
4605 _ACEOF
4606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607   $EGREP "memchr" >/dev/null 2>&1; then
4608   :
4609 else
4610   ac_cv_header_stdc=no
4611 fi
4612 rm -f conftest*
4613
4614 fi
4615
4616 if test $ac_cv_header_stdc = yes; then
4617   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4618   cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 #include <stdlib.h>
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628   $EGREP "free" >/dev/null 2>&1; then
4629   :
4630 else
4631   ac_cv_header_stdc=no
4632 fi
4633 rm -f conftest*
4634
4635 fi
4636
4637 if test $ac_cv_header_stdc = yes; then
4638   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639   if test "$cross_compiling" = yes; then
4640   :
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 #include <ctype.h>
4649 #include <stdlib.h>
4650 #if ((' ' & 0x0FF) == 0x020)
4651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653 #else
4654 # define ISLOWER(c) \
4655                    (('a' <= (c) && (c) <= 'i') \
4656                      || ('j' <= (c) && (c) <= 'r') \
4657                      || ('s' <= (c) && (c) <= 'z'))
4658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659 #endif
4660
4661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 int
4663 main ()
4664 {
4665   int i;
4666   for (i = 0; i < 256; i++)
4667     if (XOR (islower (i), ISLOWER (i))
4668         || toupper (i) != TOUPPER (i))
4669       return 2;
4670   return 0;
4671 }
4672 _ACEOF
4673 rm -f conftest$ac_exeext
4674 if { (ac_try="$ac_link"
4675 case "(($ac_try" in
4676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677   *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4680 $as_echo "$ac_try_echo") >&5
4681   (eval "$ac_link") 2>&5
4682   ac_status=$?
4683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4685   { (case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690 $as_echo "$ac_try_echo") >&5
4691   (eval "$ac_try") 2>&5
4692   ac_status=$?
4693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   :
4696 else
4697   $as_echo "$as_me: program exited with status $ac_status" >&5
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ( exit $ac_status )
4702 ac_cv_header_stdc=no
4703 fi
4704 rm -rf conftest.dSYM
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4706 fi
4707
4708
4709 fi
4710 fi
4711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4712 $as_echo "$ac_cv_header_stdc" >&6; }
4713 if test $ac_cv_header_stdc = yes; then
4714
4715 cat >>confdefs.h <<\_ACEOF
4716 #define STDC_HEADERS 1
4717 _ACEOF
4718
4719 fi
4720
4721 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732                   inttypes.h stdint.h unistd.h
4733 do
4734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4736 $as_echo_n "checking for $ac_header... " >&6; }
4737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4738   $as_echo_n "(cached) " >&6
4739 else
4740   cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 $ac_includes_default
4747
4748 #include <$ac_header>
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4752 case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757 $as_echo "$ac_try_echo") >&5
4758   (eval "$ac_compile") 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } && {
4765          test -z "$ac_c_werror_flag" ||
4766          test ! -s conftest.err
4767        } && test -s conftest.$ac_objext; then
4768   eval "$as_ac_Header=yes"
4769 else
4770   $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773         eval "$as_ac_Header=no"
4774 fi
4775
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 ac_res=`eval 'as_val=${'$as_ac_Header'}
4779                  $as_echo "$as_val"'`
4780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4781 $as_echo "$ac_res" >&6; }
4782 as_val=`eval 'as_val=${'$as_ac_Header'}
4783                  $as_echo "$as_val"'`
4784    if test "x$as_val" = x""yes; then
4785   cat >>confdefs.h <<_ACEOF
4786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4787 _ACEOF
4788
4789 fi
4790
4791 done
4792
4793
4794
4795
4796
4797 # Check whether --with-tirpcinclude was given.
4798 if test "${with_tirpcinclude+set}" = set; then
4799   withval=$with_tirpcinclude; tirpc_header_dir=$withval
4800 else
4801   tirpc_header_dir=/usr/include/tirpc
4802 fi
4803
4804
4805
4806   if test "$enable_tirpc" != "no"; then
4807
4808
4809 { $as_echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
4810 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4811 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
4812   $as_echo_n "(cached) " >&6
4813 else
4814   ac_check_lib_save_LIBS=$LIBS
4815 LIBS="-ltirpc  $LIBS"
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822
4823 /* Override any GCC internal prototype to avoid an error.
4824    Use char because int might match the return type of a GCC
4825    builtin and then its argument prototype would still apply.  */
4826 #ifdef __cplusplus
4827 extern "C"
4828 #endif
4829 char clnt_tli_create ();
4830 int
4831 main ()
4832 {
4833 return clnt_tli_create ();
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (ac_try="$ac_link"
4840 case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845 $as_echo "$ac_try_echo") >&5
4846   (eval "$ac_link") 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } && {
4853          test -z "$ac_c_werror_flag" ||
4854          test ! -s conftest.err
4855        } && test -s conftest$ac_exeext && {
4856          test "$cross_compiling" = yes ||
4857          $as_test_x conftest$ac_exeext
4858        }; then
4859   ac_cv_lib_tirpc_clnt_tli_create=yes
4860 else
4861   $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864         ac_cv_lib_tirpc_clnt_tli_create=no
4865 fi
4866
4867 rm -rf conftest.dSYM
4868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4869       conftest$ac_exeext conftest.$ac_ext
4870 LIBS=$ac_check_lib_save_LIBS
4871 fi
4872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
4873 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
4874 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then
4875   cat >>confdefs.h <<_ACEOF
4876 #define HAVE_LIBTIRPC 1
4877 _ACEOF
4878
4879   LIBS="-ltirpc $LIBS"
4880
4881 else
4882   if test "$enable_tirpc" = "yes"; then
4883                         { { $as_echo "$as_me:$LINENO: error: libtirpc not found." >&5
4884 $as_echo "$as_me: error: libtirpc not found." >&2;}
4885    { (exit 1); exit 1; }; }
4886                   else
4887                         { $as_echo "$as_me:$LINENO: WARNING: libtirpc not found. TIRPC disabled!" >&5
4888 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
4889                         enable_tirpc="no"
4890                   fi
4891 fi
4892
4893   fi
4894
4895   if test "$enable_tirpc" != "no"; then
4896
4897 for ac_header in ${tirpc_header_dir}/netconfig.h
4898 do
4899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4901   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4902 $as_echo_n "checking for $ac_header... " >&6; }
4903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4904   $as_echo_n "(cached) " >&6
4905 fi
4906 ac_res=`eval 'as_val=${'$as_ac_Header'}
4907                  $as_echo "$as_val"'`
4908                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4909 $as_echo "$ac_res" >&6; }
4910 else
4911   # Is the header compilable?
4912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4913 $as_echo_n "checking $ac_header usability... " >&6; }
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 $ac_includes_default
4921 #include <$ac_header>
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4925 case "(($ac_try" in
4926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927   *) ac_try_echo=$ac_try;;
4928 esac
4929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4930 $as_echo "$ac_try_echo") >&5
4931   (eval "$ac_compile") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } && {
4938          test -z "$ac_c_werror_flag" ||
4939          test ! -s conftest.err
4940        } && test -s conftest.$ac_objext; then
4941   ac_header_compiler=yes
4942 else
4943   $as_echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946         ac_header_compiler=no
4947 fi
4948
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4951 $as_echo "$ac_header_compiler" >&6; }
4952
4953 # Is the header present?
4954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4955 $as_echo_n "checking $ac_header presence... " >&6; }
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 #include <$ac_header>
4963 _ACEOF
4964 if { (ac_try="$ac_cpp conftest.$ac_ext"
4965 case "(($ac_try" in
4966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967   *) ac_try_echo=$ac_try;;
4968 esac
4969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4970 $as_echo "$ac_try_echo") >&5
4971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4972   ac_status=$?
4973   grep -v '^ *+' conftest.er1 >conftest.err
4974   rm -f conftest.er1
4975   cat conftest.err >&5
4976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); } >/dev/null && {
4978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4979          test ! -s conftest.err
4980        }; then
4981   ac_header_preproc=yes
4982 else
4983   $as_echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986   ac_header_preproc=no
4987 fi
4988
4989 rm -f conftest.err conftest.$ac_ext
4990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4991 $as_echo "$ac_header_preproc" >&6; }
4992
4993 # So?  What about this header?
4994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4995   yes:no: )
4996     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4998     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5000     ac_header_preproc=yes
5001     ;;
5002   no:yes:* )
5003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5006 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5010 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5015     ( cat <<\_ASBOX
5016 ## ---------------------------------------- ##
5017 ## Report this to linux-nfs@vger.kernel.org ##
5018 ## ---------------------------------------- ##
5019 _ASBOX
5020      ) | sed "s/^/$as_me: WARNING:     /" >&2
5021     ;;
5022 esac
5023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 $as_echo_n "checking for $ac_header... " >&6; }
5025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5026   $as_echo_n "(cached) " >&6
5027 else
5028   eval "$as_ac_Header=\$ac_header_preproc"
5029 fi
5030 ac_res=`eval 'as_val=${'$as_ac_Header'}
5031                  $as_echo "$as_val"'`
5032                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5033 $as_echo "$ac_res" >&6; }
5034
5035 fi
5036 as_val=`eval 'as_val=${'$as_ac_Header'}
5037                  $as_echo "$as_val"'`
5038    if test "x$as_val" = x""yes; then
5039   cat >>confdefs.h <<_ACEOF
5040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 _ACEOF
5042  AM_CPPFLAGS="-I${tirpc_header_dir}"
5043
5044 else
5045   if test "$enable_tirpc" = "yes"; then
5046                          { { $as_echo "$as_me:$LINENO: error: libtirpc headers not found." >&5
5047 $as_echo "$as_me: error: libtirpc headers not found." >&2;}
5048    { (exit 1); exit 1; }; }
5049                        else
5050                          { $as_echo "$as_me:$LINENO: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5051 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5052                          enable_tirpc="no"
5053                        fi
5054 fi
5055
5056 done
5057
5058
5059   fi
5060
5061
5062
5063 # Check whether user wants TCP wrappers support
5064
5065   TCPW_MSG="no"
5066
5067 # Check whether --with-tcp-wrappers was given.
5068 if test "${with_tcp_wrappers+set}" = set; then
5069   withval=$with_tcp_wrappers; with_tcpw=$withval
5070 else
5071   with_tcpw=yes
5072 fi
5073
5074         if test "x$with_tcpw" != "xno" ; then
5075             saved_LIBS="$LIBS"
5076             saved_LDFLAGS="$LDFLAGS"
5077             saved_CPPFLAGS="$CPPFLAGS"
5078             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5079                 if test -d "${with_tcpw}/lib"; then
5080                     if test -n "${need_dash_r}"; then
5081                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5082                     else
5083                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5084                     fi
5085                 else
5086                     if test -n "${need_dash_r}"; then
5087                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5088                     else
5089                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5090                     fi
5091                 fi
5092                 if test -d "${with_tcpw}/include"; then
5093                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5094                 else
5095                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5096                 fi
5097             fi
5098             LIBWRAP="-lwrap"
5099             LIBS="$LIBWRAP $LIBS"
5100             { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
5101 $as_echo_n "checking for libwrap... " >&6; }
5102             cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108
5109                 #include <tcpd.h>
5110                 int deny_severity = 0, allow_severity = 0;
5111
5112 int
5113 main ()
5114 {
5115 hosts_access(0);
5116   ;
5117   return 0;
5118 }
5119 _ACEOF
5120 rm -f conftest.$ac_objext conftest$ac_exeext
5121 if { (ac_try="$ac_link"
5122 case "(($ac_try" in
5123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124   *) ac_try_echo=$ac_try;;
5125 esac
5126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5127 $as_echo "$ac_try_echo") >&5
5128   (eval "$ac_link") 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } && {
5135          test -z "$ac_c_werror_flag" ||
5136          test ! -s conftest.err
5137        } && test -s conftest$ac_exeext && {
5138          test "$cross_compiling" = yes ||
5139          $as_test_x conftest$ac_exeext
5140        }; then
5141
5142                 { $as_echo "$as_me:$LINENO: result: yes" >&5
5143 $as_echo "yes" >&6; }
5144
5145
5146 cat >>confdefs.h <<\_ACEOF
5147 #define LIBWRAP 1
5148 _ACEOF
5149
5150
5151 cat >>confdefs.h <<\_ACEOF
5152 #define HAVE_LIBWRAP 1
5153 _ACEOF
5154
5155
5156 cat >>confdefs.h <<\_ACEOF
5157 #define HAVE_TCP_WRAPPER 1
5158 _ACEOF
5159
5160                 TCPW_MSG="yes"
5161
5162 else
5163   $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166
5167                 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
5168 $as_echo "$as_me: error: *** libwrap missing" >&2;}
5169    { (exit 1); exit 1; }; }
5170
5171
5172 fi
5173
5174 rm -rf conftest.dSYM
5175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5176       conftest$ac_exeext conftest.$ac_ext
5177             LIBS="$saved_LIBS"
5178         fi
5179
5180
5181
5182
5183
5184 # Arrange for large-file support
5185 # Check whether --enable-largefile was given.
5186 if test "${enable_largefile+set}" = set; then
5187   enableval=$enable_largefile;
5188 fi
5189
5190 if test "$enable_largefile" != no; then
5191
5192   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5193 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5194 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5195   $as_echo_n "(cached) " >&6
5196 else
5197   ac_cv_sys_largefile_CC=no
5198      if test "$GCC" != yes; then
5199        ac_save_CC=$CC
5200        while :; do
5201          # IRIX 6.2 and later do not support large files by default,
5202          # so use the C compiler's -n32 option if that helps.
5203          cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 #include <sys/types.h>
5210  /* Check that off_t can represent 2**63 - 1 correctly.
5211     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5212     since some C++ compilers masquerading as C compilers
5213     incorrectly reject 9223372036854775807.  */
5214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5215   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5216                        && LARGE_OFF_T % 2147483647 == 1)
5217                       ? 1 : -1];
5218 int
5219 main ()
5220 {
5221
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226          rm -f conftest.$ac_objext
5227 if { (ac_try="$ac_compile"
5228 case "(($ac_try" in
5229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230   *) ac_try_echo=$ac_try;;
5231 esac
5232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233 $as_echo "$ac_try_echo") >&5
5234   (eval "$ac_compile") 2>conftest.er1
5235   ac_status=$?
5236   grep -v '^ *+' conftest.er1 >conftest.err
5237   rm -f conftest.er1
5238   cat conftest.err >&5
5239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } && {
5241          test -z "$ac_c_werror_flag" ||
5242          test ! -s conftest.err
5243        } && test -s conftest.$ac_objext; then
5244   break
5245 else
5246   $as_echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249
5250 fi
5251
5252 rm -f core conftest.err conftest.$ac_objext
5253          CC="$CC -n32"
5254          rm -f conftest.$ac_objext
5255 if { (ac_try="$ac_compile"
5256 case "(($ac_try" in
5257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258   *) ac_try_echo=$ac_try;;
5259 esac
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262   (eval "$ac_compile") 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && {
5269          test -z "$ac_c_werror_flag" ||
5270          test ! -s conftest.err
5271        } && test -s conftest.$ac_objext; then
5272   ac_cv_sys_largefile_CC=' -n32'; break
5273 else
5274   $as_echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277
5278 fi
5279
5280 rm -f core conftest.err conftest.$ac_objext
5281          break
5282        done
5283        CC=$ac_save_CC
5284        rm -f conftest.$ac_ext
5285     fi
5286 fi
5287 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5288 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5289   if test "$ac_cv_sys_largefile_CC" != no; then
5290     CC=$CC$ac_cv_sys_largefile_CC
5291   fi
5292
5293   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5294 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5295 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5296   $as_echo_n "(cached) " >&6
5297 else
5298   while :; do
5299   cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305 #include <sys/types.h>
5306  /* Check that off_t can represent 2**63 - 1 correctly.
5307     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5308     since some C++ compilers masquerading as C compilers
5309     incorrectly reject 9223372036854775807.  */
5310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5311   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5312                        && LARGE_OFF_T % 2147483647 == 1)
5313                       ? 1 : -1];
5314 int
5315 main ()
5316 {
5317
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330   (eval "$ac_compile") 2>conftest.er1
5331   ac_status=$?
5332   grep -v '^ *+' conftest.er1 >conftest.err
5333   rm -f conftest.er1
5334   cat conftest.err >&5
5335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } && {
5337          test -z "$ac_c_werror_flag" ||
5338          test ! -s conftest.err
5339        } && test -s conftest.$ac_objext; then
5340   ac_cv_sys_file_offset_bits=no; break
5341 else
5342   $as_echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345
5346 fi
5347
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349   cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h.  */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h.  */
5355 #define _FILE_OFFSET_BITS 64
5356 #include <sys/types.h>
5357  /* Check that off_t can represent 2**63 - 1 correctly.
5358     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5359     since some C++ compilers masquerading as C compilers
5360     incorrectly reject 9223372036854775807.  */
5361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5362   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5363                        && LARGE_OFF_T % 2147483647 == 1)
5364                       ? 1 : -1];
5365 int
5366 main ()
5367 {
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5375 case "(($ac_try" in
5376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377   *) ac_try_echo=$ac_try;;
5378 esac
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381   (eval "$ac_compile") 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } && {
5388          test -z "$ac_c_werror_flag" ||
5389          test ! -s conftest.err
5390        } && test -s conftest.$ac_objext; then
5391   ac_cv_sys_file_offset_bits=64; break
5392 else
5393   $as_echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396
5397 fi
5398
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400   ac_cv_sys_file_offset_bits=unknown
5401   break
5402 done
5403 fi
5404 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5405 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5406 case $ac_cv_sys_file_offset_bits in #(
5407   no | unknown) ;;
5408   *)
5409 cat >>confdefs.h <<_ACEOF
5410 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5411 _ACEOF
5412 ;;
5413 esac
5414 rm -rf conftest*
5415   if test $ac_cv_sys_file_offset_bits = unknown; then
5416     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5417 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5418 if test "${ac_cv_sys_large_files+set}" = set; then
5419   $as_echo_n "(cached) " >&6
5420 else
5421   while :; do
5422   cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h.  */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h.  */
5428 #include <sys/types.h>
5429  /* Check that off_t can represent 2**63 - 1 correctly.
5430     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431     since some C++ compilers masquerading as C compilers
5432     incorrectly reject 9223372036854775807.  */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435                        && LARGE_OFF_T % 2147483647 == 1)
5436                       ? 1 : -1];
5437 int
5438 main ()
5439 {
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449   *) ac_try_echo=$ac_try;;
5450 esac
5451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453   (eval "$ac_compile") 2>conftest.er1
5454   ac_status=$?
5455   grep -v '^ *+' conftest.er1 >conftest.err
5456   rm -f conftest.er1
5457   cat conftest.err >&5
5458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } && {
5460          test -z "$ac_c_werror_flag" ||
5461          test ! -s conftest.err
5462        } && test -s conftest.$ac_objext; then
5463   ac_cv_sys_large_files=no; break
5464 else
5465   $as_echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468
5469 fi
5470
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472   cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478 #define _LARGE_FILES 1
5479 #include <sys/types.h>
5480  /* Check that off_t can represent 2**63 - 1 correctly.
5481     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5482     since some C++ compilers masquerading as C compilers
5483     incorrectly reject 9223372036854775807.  */
5484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5485   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5486                        && LARGE_OFF_T % 2147483647 == 1)
5487                       ? 1 : -1];
5488 int
5489 main ()
5490 {
5491
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5503 $as_echo "$ac_try_echo") >&5
5504   (eval "$ac_compile") 2>conftest.er1
5505   ac_status=$?
5506   grep -v '^ *+' conftest.er1 >conftest.err
5507   rm -f conftest.er1
5508   cat conftest.err >&5
5509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } && {
5511          test -z "$ac_c_werror_flag" ||
5512          test ! -s conftest.err
5513        } && test -s conftest.$ac_objext; then
5514   ac_cv_sys_large_files=1; break
5515 else
5516   $as_echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5518
5519
5520 fi
5521
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523   ac_cv_sys_large_files=unknown
5524   break
5525 done
5526 fi
5527 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5528 $as_echo "$ac_cv_sys_large_files" >&6; }
5529 case $ac_cv_sys_large_files in #(
5530   no | unknown) ;;
5531   *)
5532 cat >>confdefs.h <<_ACEOF
5533 #define _LARGE_FILES $ac_cv_sys_large_files
5534 _ACEOF
5535 ;;
5536 esac
5537 rm -rf conftest*
5538   fi
5539 fi
5540
5541
5542
5543 ac_config_headers="$ac_config_headers support/include/config.h"
5544
5545
5546 # Checks for programs.
5547 ac_ext=cpp
5548 ac_cpp='$CXXCPP $CPPFLAGS'
5549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5552 if test -z "$CXX"; then
5553   if test -n "$CCC"; then
5554     CXX=$CCC
5555   else
5556     if test -n "$ac_tool_prefix"; then
5557   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5558   do
5559     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_CXX+set}" = set; then
5564   $as_echo_n "(cached) " >&6
5565 else
5566   if test -n "$CXX"; then
5567   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574   for ac_exec_ext in '' $ac_executable_extensions; do
5575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5577     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 CXX=$ac_cv_prog_CXX
5587 if test -n "$CXX"; then
5588   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5589 $as_echo "$CXX" >&6; }
5590 else
5591   { $as_echo "$as_me:$LINENO: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596     test -n "$CXX" && break
5597   done
5598 fi
5599 if test -z "$CXX"; then
5600   ac_ct_CXX=$CXX
5601   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5602 do
5603   # Extract the first word of "$ac_prog", so it can be a program name with args.
5604 set dummy $ac_prog; ac_word=$2
5605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5608   $as_echo_n "(cached) " >&6
5609 else
5610   if test -n "$ac_ct_CXX"; then
5611   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618   for ac_exec_ext in '' $ac_executable_extensions; do
5619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620     ac_cv_prog_ac_ct_CXX="$ac_prog"
5621     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5622     break 2
5623   fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5631 if test -n "$ac_ct_CXX"; then
5632   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5633 $as_echo "$ac_ct_CXX" >&6; }
5634 else
5635   { $as_echo "$as_me:$LINENO: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640   test -n "$ac_ct_CXX" && break
5641 done
5642
5643   if test "x$ac_ct_CXX" = x; then
5644     CXX="g++"
5645   else
5646     case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652     CXX=$ac_ct_CXX
5653   fi
5654 fi
5655
5656   fi
5657 fi
5658 # Provide some information about the compiler.
5659 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5660 set X $ac_compile
5661 ac_compiler=$2
5662 { (ac_try="$ac_compiler --version >&5"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668 $as_echo "$ac_try_echo") >&5
5669   (eval "$ac_compiler --version >&5") 2>&5
5670   ac_status=$?
5671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }
5673 { (ac_try="$ac_compiler -v >&5"
5674 case "(($ac_try" in
5675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676   *) ac_try_echo=$ac_try;;
5677 esac
5678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5679 $as_echo "$ac_try_echo") >&5
5680   (eval "$ac_compiler -v >&5") 2>&5
5681   ac_status=$?
5682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }
5684 { (ac_try="$ac_compiler -V >&5"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5690 $as_echo "$ac_try_echo") >&5
5691   (eval "$ac_compiler -V >&5") 2>&5
5692   ac_status=$?
5693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }
5695
5696 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5697 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5699   $as_echo_n "(cached) " >&6
5700 else
5701   cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h.  */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h.  */
5707
5708 int
5709 main ()
5710 {
5711 #ifndef __GNUC__
5712        choke me
5713 #endif
5714
5715   ;
5716   return 0;
5717 }
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5726 $as_echo "$ac_try_echo") >&5
5727   (eval "$ac_compile") 2>conftest.er1
5728   ac_status=$?
5729   grep -v '^ *+' conftest.er1 >conftest.err
5730   rm -f conftest.er1
5731   cat conftest.err >&5
5732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); } && {
5734          test -z "$ac_cxx_werror_flag" ||
5735          test ! -s conftest.err
5736        } && test -s conftest.$ac_objext; then
5737   ac_compiler_gnu=yes
5738 else
5739   $as_echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742         ac_compiler_gnu=no
5743 fi
5744
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5747
5748 fi
5749 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5750 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5751 if test $ac_compiler_gnu = yes; then
5752   GXX=yes
5753 else
5754   GXX=
5755 fi
5756 ac_test_CXXFLAGS=${CXXFLAGS+set}
5757 ac_save_CXXFLAGS=$CXXFLAGS
5758 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5759 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5760 if test "${ac_cv_prog_cxx_g+set}" = set; then
5761   $as_echo_n "(cached) " >&6
5762 else
5763   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5764    ac_cxx_werror_flag=yes
5765    ac_cv_prog_cxx_g=no
5766    CXXFLAGS="-g"
5767    cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773
5774 int
5775 main ()
5776 {
5777
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786   *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790   (eval "$ac_compile") 2>conftest.er1
5791   ac_status=$?
5792   grep -v '^ *+' conftest.er1 >conftest.err
5793   rm -f conftest.er1
5794   cat conftest.err >&5
5795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } && {
5797          test -z "$ac_cxx_werror_flag" ||
5798          test ! -s conftest.err
5799        } && test -s conftest.$ac_objext; then
5800   ac_cv_prog_cxx_g=yes
5801 else
5802   $as_echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805         CXXFLAGS=""
5806       cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812
5813 int
5814 main ()
5815 {
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (ac_try="$ac_compile"
5823 case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828 $as_echo "$ac_try_echo") >&5
5829   (eval "$ac_compile") 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } && {
5836          test -z "$ac_cxx_werror_flag" ||
5837          test ! -s conftest.err
5838        } && test -s conftest.$ac_objext; then
5839   :
5840 else
5841   $as_echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5845          CXXFLAGS="-g"
5846          cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h.  */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h.  */
5852
5853 int
5854 main ()
5855 {
5856
5857   ;
5858   return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5863 case "(($ac_try" in
5864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865   *) ac_try_echo=$ac_try;;
5866 esac
5867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5868 $as_echo "$ac_try_echo") >&5
5869   (eval "$ac_compile") 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } && {
5876          test -z "$ac_cxx_werror_flag" ||
5877          test ! -s conftest.err
5878        } && test -s conftest.$ac_objext; then
5879   ac_cv_prog_cxx_g=yes
5880 else
5881   $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884
5885 fi
5886
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 fi
5892
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5895 fi
5896 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5898 if test "$ac_test_CXXFLAGS" = set; then
5899   CXXFLAGS=$ac_save_CXXFLAGS
5900 elif test $ac_cv_prog_cxx_g = yes; then
5901   if test "$GXX" = yes; then
5902     CXXFLAGS="-g -O2"
5903   else
5904     CXXFLAGS="-g"
5905   fi
5906 else
5907   if test "$GXX" = yes; then
5908     CXXFLAGS="-O2"
5909   else
5910     CXXFLAGS=
5911   fi
5912 fi
5913 ac_ext=c
5914 ac_cpp='$CPP $CPPFLAGS'
5915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918
5919 depcc="$CXX"  am_compiler_list=
5920
5921 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5922 $as_echo_n "checking dependency style of $depcc... " >&6; }
5923 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5924   $as_echo_n "(cached) " >&6
5925 else
5926   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5927   # We make a subdir and do the tests there.  Otherwise we can end up
5928   # making bogus files that we don't know about and never remove.  For
5929   # instance it was reported that on HP-UX the gcc test will end up
5930   # making a dummy file named `D' -- because `-MD' means `put the output
5931   # in D'.
5932   mkdir conftest.dir
5933   # Copy depcomp to subdir because otherwise we won't find it if we're
5934   # using a relative directory.
5935   cp "$am_depcomp" conftest.dir
5936   cd conftest.dir
5937   # We will build objects and dependencies in a subdirectory because
5938   # it helps to detect inapplicable dependency modes.  For instance
5939   # both Tru64's cc and ICC support -MD to output dependencies as a
5940   # side effect of compilation, but ICC will put the dependencies in
5941   # the current directory while Tru64 will put them in the object
5942   # directory.
5943   mkdir sub
5944
5945   am_cv_CXX_dependencies_compiler_type=none
5946   if test "$am_compiler_list" = ""; then
5947      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5948   fi
5949   am__universal=false
5950   case " $depcc " in #(
5951      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5952      esac
5953
5954   for depmode in $am_compiler_list; do
5955     # Setup a source with many dependencies, because some compilers
5956     # like to wrap large dependency lists on column 80 (with \), and
5957     # we should not choose a depcomp mode which is confused by this.
5958     #
5959     # We need to recreate these files for each test, as the compiler may
5960     # overwrite some of them when testing with obscure command lines.
5961     # This happens at least with the AIX C compiler.
5962     : > sub/conftest.c
5963     for i in 1 2 3 4 5 6; do
5964       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5965       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5966       # Solaris 8's {/usr,}/bin/sh.
5967       touch sub/conftst$i.h
5968     done
5969     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5970
5971     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5972     # mode.  It turns out that the SunPro C++ compiler does not properly
5973     # handle `-M -o', and we need to detect this.  Also, some Intel
5974     # versions had trouble with output in subdirs
5975     am__obj=sub/conftest.${OBJEXT-o}
5976     am__minus_obj="-o $am__obj"
5977     case $depmode in
5978     gcc)
5979       # This depmode causes a compiler race in universal mode.
5980       test "$am__universal" = false || continue
5981       ;;
5982     nosideeffect)
5983       # after this tag, mechanisms are not by side-effect, so they'll
5984       # only be used when explicitly requested
5985       if test "x$enable_dependency_tracking" = xyes; then
5986         continue
5987       else
5988         break
5989       fi
5990       ;;
5991     msvisualcpp | msvcmsys)
5992       # This compiler won't grok `-c -o', but also, the minuso test has
5993       # not run yet.  These depmodes are late enough in the game, and
5994       # so weak that their functioning should not be impacted.
5995       am__obj=conftest.${OBJEXT-o}
5996       am__minus_obj=
5997       ;;
5998     none) break ;;
5999     esac
6000     if depmode=$depmode \
6001        source=sub/conftest.c object=$am__obj \
6002        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6003        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6004          >/dev/null 2>conftest.err &&
6005        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6006        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6007        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6008        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6009       # icc doesn't choke on unknown options, it will just issue warnings
6010       # or remarks (even with -Werror).  So we grep stderr for any message
6011       # that says an option was ignored or not supported.
6012       # When given -MP, icc 7.0 and 7.1 complain thusly:
6013       #   icc: Command line warning: ignoring option '-M'; no argument required
6014       # The diagnosis changed in icc 8.0:
6015       #   icc: Command line remark: option '-MP' not supported
6016       if (grep 'ignoring option' conftest.err ||
6017           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6018         am_cv_CXX_dependencies_compiler_type=$depmode
6019         break
6020       fi
6021     fi
6022   done
6023
6024   cd ..
6025   rm -rf conftest.dir
6026 else
6027   am_cv_CXX_dependencies_compiler_type=none
6028 fi
6029
6030 fi
6031 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6032 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6033 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6034
6035  if
6036   test "x$enable_dependency_tracking" != xno \
6037   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6038   am__fastdepCXX_TRUE=
6039   am__fastdepCXX_FALSE='#'
6040 else
6041   am__fastdepCXX_TRUE='#'
6042   am__fastdepCXX_FALSE=
6043 fi
6044
6045
6046 ac_ext=c
6047 ac_cpp='$CPP $CPPFLAGS'
6048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051 if test -n "$ac_tool_prefix"; then
6052   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_CC+set}" = set; then
6057   $as_echo_n "(cached) " >&6
6058 else
6059   if test -n "$CC"; then
6060   ac_cv_prog_CC="$CC" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067   for ac_exec_ext in '' $ac_executable_extensions; do
6068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6070     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 CC=$ac_cv_prog_CC
6080 if test -n "$CC"; then
6081   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6082 $as_echo "$CC" >&6; }
6083 else
6084   { $as_echo "$as_me:$LINENO: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088
6089 fi
6090 if test -z "$ac_cv_prog_CC"; then
6091   ac_ct_CC=$CC
6092   # Extract the first word of "gcc", so it can be a program name with args.
6093 set dummy gcc; ac_word=$2
6094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6097   $as_echo_n "(cached) " >&6
6098 else
6099   if test -n "$ac_ct_CC"; then
6100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105   IFS=$as_save_IFS
6106   test -z "$as_dir" && as_dir=.
6107   for ac_exec_ext in '' $ac_executable_extensions; do
6108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109     ac_cv_prog_ac_ct_CC="gcc"
6110     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111     break 2
6112   fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6120 if test -n "$ac_ct_CC"; then
6121   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6122 $as_echo "$ac_ct_CC" >&6; }
6123 else
6124   { $as_echo "$as_me:$LINENO: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127
6128   if test "x$ac_ct_CC" = x; then
6129     CC=""
6130   else
6131     case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137     CC=$ac_ct_CC
6138   fi
6139 else
6140   CC="$ac_cv_prog_CC"
6141 fi
6142
6143 if test -z "$CC"; then
6144           if test -n "$ac_tool_prefix"; then
6145     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}cc; ac_word=$2
6147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_CC+set}" = set; then
6150   $as_echo_n "(cached) " >&6
6151 else
6152   if test -n "$CC"; then
6153   ac_cv_prog_CC="$CC" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_CC="${ac_tool_prefix}cc"
6163     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 CC=$ac_cv_prog_CC
6173 if test -n "$CC"; then
6174   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6175 $as_echo "$CC" >&6; }
6176 else
6177   { $as_echo "$as_me:$LINENO: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181
6182   fi
6183 fi
6184 if test -z "$CC"; then
6185   # Extract the first word of "cc", so it can be a program name with args.
6186 set dummy cc; ac_word=$2
6187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_CC+set}" = set; then
6190   $as_echo_n "(cached) " >&6
6191 else
6192   if test -n "$CC"; then
6193   ac_cv_prog_CC="$CC" # Let the user override the test.
6194 else
6195   ac_prog_rejected=no
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6204        ac_prog_rejected=yes
6205        continue
6206      fi
6207     ac_cv_prog_CC="cc"
6208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 if test $ac_prog_rejected = yes; then
6216   # We found a bogon in the path, so make sure we never use it.
6217   set dummy $ac_cv_prog_CC
6218   shift
6219   if test $# != 0; then
6220     # We chose a different compiler from the bogus one.
6221     # However, it has the same basename, so the bogon will be chosen
6222     # first if we set CC to just the basename; use the full file name.
6223     shift
6224     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6225   fi
6226 fi
6227 fi
6228 fi
6229 CC=$ac_cv_prog_CC
6230 if test -n "$CC"; then
6231   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6232 $as_echo "$CC" >&6; }
6233 else
6234   { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238
6239 fi
6240 if test -z "$CC"; then
6241   if test -n "$ac_tool_prefix"; then
6242   for ac_prog in cl.exe
6243   do
6244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_CC+set}" = set; then
6249   $as_echo_n "(cached) " >&6
6250 else
6251   if test -n "$CC"; then
6252   ac_cv_prog_CC="$CC" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259   for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6262     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 CC=$ac_cv_prog_CC
6272 if test -n "$CC"; then
6273   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6274 $as_echo "$CC" >&6; }
6275 else
6276   { $as_echo "$as_me:$LINENO: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280
6281     test -n "$CC" && break
6282   done
6283 fi
6284 if test -z "$CC"; then
6285   ac_ct_CC=$CC
6286   for ac_prog in cl.exe
6287 do
6288   # Extract the first word of "$ac_prog", so it can be a program name with args.
6289 set dummy $ac_prog; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$ac_ct_CC"; then
6296   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_ac_ct_CC="$ac_prog"
6306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6316 if test -n "$ac_ct_CC"; then
6317   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6318 $as_echo "$ac_ct_CC" >&6; }
6319 else
6320   { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325   test -n "$ac_ct_CC" && break
6326 done
6327
6328   if test "x$ac_ct_CC" = x; then
6329     CC=""
6330   else
6331     case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337     CC=$ac_ct_CC
6338   fi
6339 fi
6340
6341 fi
6342
6343
6344 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6346 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6347 See \`config.log' for more details." >&5
6348 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6349 See \`config.log' for more details." >&2;}
6350    { (exit 1); exit 1; }; }; }
6351
6352 # Provide some information about the compiler.
6353 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6354 set X $ac_compile
6355 ac_compiler=$2
6356 { (ac_try="$ac_compiler --version >&5"
6357 case "(($ac_try" in
6358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359   *) ac_try_echo=$ac_try;;
6360 esac
6361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6362 $as_echo "$ac_try_echo") >&5
6363   (eval "$ac_compiler --version >&5") 2>&5
6364   ac_status=$?
6365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }
6367 { (ac_try="$ac_compiler -v >&5"
6368 case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374   (eval "$ac_compiler -v >&5") 2>&5
6375   ac_status=$?
6376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }
6378 { (ac_try="$ac_compiler -V >&5"
6379 case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385   (eval "$ac_compiler -V >&5") 2>&5
6386   ac_status=$?
6387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); }
6389
6390 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6393   $as_echo_n "(cached) " >&6
6394 else
6395   cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h.  */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h.  */
6401
6402 int
6403 main ()
6404 {
6405 #ifndef __GNUC__
6406        choke me
6407 #endif
6408
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6415 case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6420 $as_echo "$ac_try_echo") >&5
6421   (eval "$ac_compile") 2>conftest.er1
6422   ac_status=$?
6423   grep -v '^ *+' conftest.er1 >conftest.err
6424   rm -f conftest.er1
6425   cat conftest.err >&5
6426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } && {
6428          test -z "$ac_c_werror_flag" ||
6429          test ! -s conftest.err
6430        } && test -s conftest.$ac_objext; then
6431   ac_compiler_gnu=yes
6432 else
6433   $as_echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436         ac_compiler_gnu=no
6437 fi
6438
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6441
6442 fi
6443 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6444 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6445 if test $ac_compiler_gnu = yes; then
6446   GCC=yes
6447 else
6448   GCC=
6449 fi
6450 ac_test_CFLAGS=${CFLAGS+set}
6451 ac_save_CFLAGS=$CFLAGS
6452 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6453 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6454 if test "${ac_cv_prog_cc_g+set}" = set; then
6455   $as_echo_n "(cached) " >&6
6456 else
6457   ac_save_c_werror_flag=$ac_c_werror_flag
6458    ac_c_werror_flag=yes
6459    ac_cv_prog_cc_g=no
6460    CFLAGS="-g"
6461    cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467
6468 int
6469 main ()
6470 {
6471
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480   *) ac_try_echo=$ac_try;;
6481 esac
6482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484   (eval "$ac_compile") 2>conftest.er1
6485   ac_status=$?
6486   grep -v '^ *+' conftest.er1 >conftest.err
6487   rm -f conftest.er1
6488   cat conftest.err >&5
6489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } && {
6491          test -z "$ac_c_werror_flag" ||
6492          test ! -s conftest.err
6493        } && test -s conftest.$ac_objext; then
6494   ac_cv_prog_cc_g=yes
6495 else
6496   $as_echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499         CFLAGS=""
6500       cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h.  */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h.  */
6506
6507 int
6508 main ()
6509 {
6510
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519   *) ac_try_echo=$ac_try;;
6520 esac
6521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6522 $as_echo "$ac_try_echo") >&5
6523   (eval "$ac_compile") 2>conftest.er1
6524   ac_status=$?
6525   grep -v '^ *+' conftest.er1 >conftest.err
6526   rm -f conftest.er1
6527   cat conftest.err >&5
6528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } && {
6530          test -z "$ac_c_werror_flag" ||
6531          test ! -s conftest.err
6532        } && test -s conftest.$ac_objext; then
6533   :
6534 else
6535   $as_echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538         ac_c_werror_flag=$ac_save_c_werror_flag
6539          CFLAGS="-g"
6540          cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546
6547 int
6548 main ()
6549 {
6550
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6557 case "(($ac_try" in
6558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559   *) ac_try_echo=$ac_try;;
6560 esac
6561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6562 $as_echo "$ac_try_echo") >&5
6563   (eval "$ac_compile") 2>conftest.er1
6564   ac_status=$?
6565   grep -v '^ *+' conftest.er1 >conftest.err
6566   rm -f conftest.er1
6567   cat conftest.err >&5
6568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); } && {
6570          test -z "$ac_c_werror_flag" ||
6571          test ! -s conftest.err
6572        } && test -s conftest.$ac_objext; then
6573   ac_cv_prog_cc_g=yes
6574 else
6575   $as_echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 fi
6583
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 fi
6586
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588    ac_c_werror_flag=$ac_save_c_werror_flag
6589 fi
6590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6591 $as_echo "$ac_cv_prog_cc_g" >&6; }
6592 if test "$ac_test_CFLAGS" = set; then
6593   CFLAGS=$ac_save_CFLAGS
6594 elif test $ac_cv_prog_cc_g = yes; then
6595   if test "$GCC" = yes; then
6596     CFLAGS="-g -O2"
6597   else
6598     CFLAGS="-g"
6599   fi
6600 else
6601   if test "$GCC" = yes; then
6602     CFLAGS="-O2"
6603   else
6604     CFLAGS=
6605   fi
6606 fi
6607 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6609 if test "${ac_cv_prog_cc_c89+set}" = set; then
6610   $as_echo_n "(cached) " >&6
6611 else
6612   ac_cv_prog_cc_c89=no
6613 ac_save_CC=$CC
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h.  */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h.  */
6620 #include <stdarg.h>
6621 #include <stdio.h>
6622 #include <sys/types.h>
6623 #include <sys/stat.h>
6624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6625 struct buf { int x; };
6626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6627 static char *e (p, i)
6628      char **p;
6629      int i;
6630 {
6631   return p[i];
6632 }
6633 static char *f (char * (*g) (char **, int), char **p, ...)
6634 {
6635   char *s;
6636   va_list v;
6637   va_start (v,p);
6638   s = g (p, va_arg (v,int));
6639   va_end (v);
6640   return s;
6641 }
6642
6643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6644    function prototypes and stuff, but not '\xHH' hex character constants.
6645    These don't provoke an error unfortunately, instead are silently treated
6646    as 'x'.  The following induces an error, until -std is added to get
6647    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6648    array size at least.  It's necessary to write '\x00'==0 to get something
6649    that's true only with -std.  */
6650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6651
6652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6653    inside strings and character constants.  */
6654 #define FOO(x) 'x'
6655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6656
6657 int test (int i, double x);
6658 struct s1 {int (*f) (int a);};
6659 struct s2 {int (*f) (double a);};
6660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6661 int argc;
6662 char **argv;
6663 int
6664 main ()
6665 {
6666 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6667   ;
6668   return 0;
6669 }
6670 _ACEOF
6671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6672         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6673 do
6674   CC="$ac_save_CC $ac_arg"
6675   rm -f conftest.$ac_objext
6676 if { (ac_try="$ac_compile"
6677 case "(($ac_try" in
6678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679   *) ac_try_echo=$ac_try;;
6680 esac
6681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6682 $as_echo "$ac_try_echo") >&5
6683   (eval "$ac_compile") 2>conftest.er1
6684   ac_status=$?
6685   grep -v '^ *+' conftest.er1 >conftest.err
6686   rm -f conftest.er1
6687   cat conftest.err >&5
6688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } && {
6690          test -z "$ac_c_werror_flag" ||
6691          test ! -s conftest.err
6692        } && test -s conftest.$ac_objext; then
6693   ac_cv_prog_cc_c89=$ac_arg
6694 else
6695   $as_echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698
6699 fi
6700
6701 rm -f core conftest.err conftest.$ac_objext
6702   test "x$ac_cv_prog_cc_c89" != "xno" && break
6703 done
6704 rm -f conftest.$ac_ext
6705 CC=$ac_save_CC
6706
6707 fi
6708 # AC_CACHE_VAL
6709 case "x$ac_cv_prog_cc_c89" in
6710   x)
6711     { $as_echo "$as_me:$LINENO: result: none needed" >&5
6712 $as_echo "none needed" >&6; } ;;
6713   xno)
6714     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6715 $as_echo "unsupported" >&6; } ;;
6716   *)
6717     CC="$CC $ac_cv_prog_cc_c89"
6718     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6720 esac
6721
6722
6723 ac_ext=c
6724 ac_cpp='$CPP $CPPFLAGS'
6725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728
6729 depcc="$CC"   am_compiler_list=
6730
6731 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6732 $as_echo_n "checking dependency style of $depcc... " >&6; }
6733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6737   # We make a subdir and do the tests there.  Otherwise we can end up
6738   # making bogus files that we don't know about and never remove.  For
6739   # instance it was reported that on HP-UX the gcc test will end up
6740   # making a dummy file named `D' -- because `-MD' means `put the output
6741   # in D'.
6742   mkdir conftest.dir
6743   # Copy depcomp to subdir because otherwise we won't find it if we're
6744   # using a relative directory.
6745   cp "$am_depcomp" conftest.dir
6746   cd conftest.dir
6747   # We will build objects and dependencies in a subdirectory because
6748   # it helps to detect inapplicable dependency modes.  For instance
6749   # both Tru64's cc and ICC support -MD to output dependencies as a
6750   # side effect of compilation, but ICC will put the dependencies in
6751   # the current directory while Tru64 will put them in the object
6752   # directory.
6753   mkdir sub
6754
6755   am_cv_CC_dependencies_compiler_type=none
6756   if test "$am_compiler_list" = ""; then
6757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6758   fi
6759   am__universal=false
6760   case " $depcc " in #(
6761      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6762      esac
6763
6764   for depmode in $am_compiler_list; do
6765     # Setup a source with many dependencies, because some compilers
6766     # like to wrap large dependency lists on column 80 (with \), and
6767     # we should not choose a depcomp mode which is confused by this.
6768     #
6769     # We need to recreate these files for each test, as the compiler may
6770     # overwrite some of them when testing with obscure command lines.
6771     # This happens at least with the AIX C compiler.
6772     : > sub/conftest.c
6773     for i in 1 2 3 4 5 6; do
6774       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6775       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6776       # Solaris 8's {/usr,}/bin/sh.
6777       touch sub/conftst$i.h
6778     done
6779     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6780
6781     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6782     # mode.  It turns out that the SunPro C++ compiler does not properly
6783     # handle `-M -o', and we need to detect this.  Also, some Intel
6784     # versions had trouble with output in subdirs
6785     am__obj=sub/conftest.${OBJEXT-o}
6786     am__minus_obj="-o $am__obj"
6787     case $depmode in
6788     gcc)
6789       # This depmode causes a compiler race in universal mode.
6790       test "$am__universal" = false || continue
6791       ;;
6792     nosideeffect)
6793       # after this tag, mechanisms are not by side-effect, so they'll
6794       # only be used when explicitly requested
6795       if test "x$enable_dependency_tracking" = xyes; then
6796         continue
6797       else
6798         break
6799       fi
6800       ;;
6801     msvisualcpp | msvcmsys)
6802       # This compiler won't grok `-c -o', but also, the minuso test has
6803       # not run yet.  These depmodes are late enough in the game, and
6804       # so weak that their functioning should not be impacted.
6805       am__obj=conftest.${OBJEXT-o}
6806       am__minus_obj=
6807       ;;
6808     none) break ;;
6809     esac
6810     if depmode=$depmode \
6811        source=sub/conftest.c object=$am__obj \
6812        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6813        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6814          >/dev/null 2>conftest.err &&
6815        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6816        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6817        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6818        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6819       # icc doesn't choke on unknown options, it will just issue warnings
6820       # or remarks (even with -Werror).  So we grep stderr for any message
6821       # that says an option was ignored or not supported.
6822       # When given -MP, icc 7.0 and 7.1 complain thusly:
6823       #   icc: Command line warning: ignoring option '-M'; no argument required
6824       # The diagnosis changed in icc 8.0:
6825       #   icc: Command line remark: option '-MP' not supported
6826       if (grep 'ignoring option' conftest.err ||
6827           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6828         am_cv_CC_dependencies_compiler_type=$depmode
6829         break
6830       fi
6831     fi
6832   done
6833
6834   cd ..
6835   rm -rf conftest.dir
6836 else
6837   am_cv_CC_dependencies_compiler_type=none
6838 fi
6839
6840 fi
6841 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6842 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6843 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6844
6845  if
6846   test "x$enable_dependency_tracking" != xno \
6847   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6848   am__fastdepCC_TRUE=
6849   am__fastdepCC_FALSE='#'
6850 else
6851   am__fastdepCC_TRUE='#'
6852   am__fastdepCC_FALSE=
6853 fi
6854
6855
6856 ac_ext=c
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6863 # On Suns, sometimes $CPP names a directory.
6864 if test -n "$CPP" && test -d "$CPP"; then
6865   CPP=
6866 fi
6867 if test -z "$CPP"; then
6868   if test "${ac_cv_prog_CPP+set}" = set; then
6869   $as_echo_n "(cached) " >&6
6870 else
6871       # Double quotes because CPP needs to be expanded
6872     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6873     do
6874       ac_preproc_ok=false
6875 for ac_c_preproc_warn_flag in '' yes
6876 do
6877   # Use a header file that comes with gcc, so configuring glibc
6878   # with a fresh cross-compiler works.
6879   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6880   # <limits.h> exists even on freestanding compilers.
6881   # On the NeXT, cc -E runs the code through the compiler's parser,
6882   # not just through cpp. "Syntax error" is here to catch this case.
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #ifdef __STDC__
6890 # include <limits.h>
6891 #else
6892 # include <assert.h>
6893 #endif
6894                      Syntax error
6895 _ACEOF
6896 if { (ac_try="$ac_cpp conftest.$ac_ext"
6897 case "(($ac_try" in
6898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899   *) ac_try_echo=$ac_try;;
6900 esac
6901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6902 $as_echo "$ac_try_echo") >&5
6903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6904   ac_status=$?
6905   grep -v '^ *+' conftest.er1 >conftest.err
6906   rm -f conftest.er1
6907   cat conftest.err >&5
6908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); } >/dev/null && {
6910          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6911          test ! -s conftest.err
6912        }; then
6913   :
6914 else
6915   $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918   # Broken: fails on valid input.
6919 continue
6920 fi
6921
6922 rm -f conftest.err conftest.$ac_ext
6923
6924   # OK, works on sane cases.  Now check whether nonexistent headers
6925   # can be detected and how.
6926   cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h.  */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h.  */
6932 #include <ac_nonexistent.h>
6933 _ACEOF
6934 if { (ac_try="$ac_cpp conftest.$ac_ext"
6935 case "(($ac_try" in
6936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937   *) ac_try_echo=$ac_try;;
6938 esac
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } >/dev/null && {
6948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6949          test ! -s conftest.err
6950        }; then
6951   # Broken: success on invalid input.
6952 continue
6953 else
6954   $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957   # Passes both tests.
6958 ac_preproc_ok=:
6959 break
6960 fi
6961
6962 rm -f conftest.err conftest.$ac_ext
6963
6964 done
6965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6966 rm -f conftest.err conftest.$ac_ext
6967 if $ac_preproc_ok; then
6968   break
6969 fi
6970
6971     done
6972     ac_cv_prog_CPP=$CPP
6973
6974 fi
6975   CPP=$ac_cv_prog_CPP
6976 else
6977   ac_cv_prog_CPP=$CPP
6978 fi
6979 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6980 $as_echo "$CPP" >&6; }
6981 ac_preproc_ok=false
6982 for ac_c_preproc_warn_flag in '' yes
6983 do
6984   # Use a header file that comes with gcc, so configuring glibc
6985   # with a fresh cross-compiler works.
6986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6987   # <limits.h> exists even on freestanding compilers.
6988   # On the NeXT, cc -E runs the code through the compiler's parser,
6989   # not just through cpp. "Syntax error" is here to catch this case.
6990   cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h.  */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h.  */
6996 #ifdef __STDC__
6997 # include <limits.h>
6998 #else
6999 # include <assert.h>
7000 #endif
7001                      Syntax error
7002 _ACEOF
7003 if { (ac_try="$ac_cpp conftest.$ac_ext"
7004 case "(($ac_try" in
7005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006   *) ac_try_echo=$ac_try;;
7007 esac
7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009 $as_echo "$ac_try_echo") >&5
7010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } >/dev/null && {
7017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7018          test ! -s conftest.err
7019        }; then
7020   :
7021 else
7022   $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025   # Broken: fails on valid input.
7026 continue
7027 fi
7028
7029 rm -f conftest.err conftest.$ac_ext
7030
7031   # OK, works on sane cases.  Now check whether nonexistent headers
7032   # can be detected and how.
7033   cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h.  */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h.  */
7039 #include <ac_nonexistent.h>
7040 _ACEOF
7041 if { (ac_try="$ac_cpp conftest.$ac_ext"
7042 case "(($ac_try" in
7043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044   *) ac_try_echo=$ac_try;;
7045 esac
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049   ac_status=$?
7050   grep -v '^ *+' conftest.er1 >conftest.err
7051   rm -f conftest.er1
7052   cat conftest.err >&5
7053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } >/dev/null && {
7055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056          test ! -s conftest.err
7057        }; then
7058   # Broken: success on invalid input.
7059 continue
7060 else
7061   $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064   # Passes both tests.
7065 ac_preproc_ok=:
7066 break
7067 fi
7068
7069 rm -f conftest.err conftest.$ac_ext
7070
7071 done
7072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7073 rm -f conftest.err conftest.$ac_ext
7074 if $ac_preproc_ok; then
7075   :
7076 else
7077   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7079 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7080 See \`config.log' for more details." >&5
7081 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7082 See \`config.log' for more details." >&2;}
7083    { (exit 1); exit 1; }; }; }
7084 fi
7085
7086 ac_ext=c
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7091
7092 # Find a good install program.  We prefer a C program (faster),
7093 # so one script is as good as another.  But avoid the broken or
7094 # incompatible versions:
7095 # SysV /etc/install, /usr/sbin/install
7096 # SunOS /usr/etc/install
7097 # IRIX /sbin/install
7098 # AIX /bin/install
7099 # AmigaOS /C/install, which installs bootblocks on floppy discs
7100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7103 # OS/2's system install, which has a completely different semantic
7104 # ./install, which can be erroneously created by make from ./install.sh.
7105 # Reject install programs that cannot install multiple files.
7106 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7107 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7108 if test -z "$INSTALL"; then
7109 if test "${ac_cv_path_install+set}" = set; then
7110   $as_echo_n "(cached) " >&6
7111 else
7112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117   # Account for people who put trailing slashes in PATH elements.
7118 case $as_dir/ in
7119   ./ | .// | /cC/* | \
7120   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7121   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7122   /usr/ucb/* ) ;;
7123   *)
7124     # OSF1 and SCO ODT 3.0 have their own names for install.
7125     # Don't use installbsd from OSF since it installs stuff as root
7126     # by default.
7127     for ac_prog in ginstall scoinst install; do
7128       for ac_exec_ext in '' $ac_executable_extensions; do
7129         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7130           if test $ac_prog = install &&
7131             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7132             # AIX install.  It has an incompatible calling convention.
7133             :
7134           elif test $ac_prog = install &&
7135             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7136             # program-specific install script used by HP pwplus--don't use.
7137             :
7138           else
7139             rm -rf conftest.one conftest.two conftest.dir
7140             echo one > conftest.one
7141             echo two > conftest.two
7142             mkdir conftest.dir
7143             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7144               test -s conftest.one && test -s conftest.two &&
7145               test -s conftest.dir/conftest.one &&
7146               test -s conftest.dir/conftest.two
7147             then
7148               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7149               break 3
7150             fi
7151           fi
7152         fi
7153       done
7154     done
7155     ;;
7156 esac
7157
7158 done
7159 IFS=$as_save_IFS
7160
7161 rm -rf conftest.one conftest.two conftest.dir
7162
7163 fi
7164   if test "${ac_cv_path_install+set}" = set; then
7165     INSTALL=$ac_cv_path_install
7166   else
7167     # As a last resort, use the slow shell script.  Don't cache a
7168     # value for INSTALL within a source directory, because that will
7169     # break other packages using the cache if that directory is
7170     # removed, or if the value is a relative name.
7171     INSTALL=$ac_install_sh
7172   fi
7173 fi
7174 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7175 $as_echo "$INSTALL" >&6; }
7176
7177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7178 # It thinks the first close brace ends the variable substitution.
7179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7180
7181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7182
7183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7184
7185 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7186 $as_echo_n "checking whether ln -s works... " >&6; }
7187 LN_S=$as_ln_s
7188 if test "$LN_S" = "ln -s"; then
7189   { $as_echo "$as_me:$LINENO: result: yes" >&5
7190 $as_echo "yes" >&6; }
7191 else
7192   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7193 $as_echo "no, using $LN_S" >&6; }
7194 fi
7195
7196 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7197 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7198 set x ${MAKE-make}
7199 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7201   $as_echo_n "(cached) " >&6
7202 else
7203   cat >conftest.make <<\_ACEOF
7204 SHELL = /bin/sh
7205 all:
7206         @echo '@@@%%%=$(MAKE)=@@@%%%'
7207 _ACEOF
7208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7210   *@@@%%%=?*=@@@%%%*)
7211     eval ac_cv_prog_make_${ac_make}_set=yes;;
7212   *)
7213     eval ac_cv_prog_make_${ac_make}_set=no;;
7214 esac
7215 rm -f conftest.make
7216 fi
7217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7218   { $as_echo "$as_me:$LINENO: result: yes" >&5
7219 $as_echo "yes" >&6; }
7220   SET_MAKE=
7221 else
7222   { $as_echo "$as_me:$LINENO: result: no" >&5
7223 $as_echo "no" >&6; }
7224   SET_MAKE="MAKE=${MAKE-make}"
7225 fi
7226
7227 case `pwd` in
7228   *\ * | *\     *)
7229     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7230 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7231 esac
7232
7233
7234
7235 macro_version='2.2.6'
7236 macro_revision='1.3012'
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 ltmain="$ac_aux_dir/ltmain.sh"
7251
7252 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7253 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7254 if test "${ac_cv_path_SED+set}" = set; then
7255   $as_echo_n "(cached) " >&6
7256 else
7257             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7258      for ac_i in 1 2 3 4 5 6 7; do
7259        ac_script="$ac_script$as_nl$ac_script"
7260      done
7261      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7262      $as_unset ac_script || ac_script=
7263      if test -z "$SED"; then
7264   ac_path_SED_found=false
7265   # Loop through the user's path and test for each of PROGNAME-LIST
7266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271   for ac_prog in sed gsed; do
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7274       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7275 # Check for GNU ac_path_SED and select it if it is found.
7276   # Check for GNU $ac_path_SED
7277 case `"$ac_path_SED" --version 2>&1` in
7278 *GNU*)
7279   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7280 *)
7281   ac_count=0
7282   $as_echo_n 0123456789 >"conftest.in"
7283   while :
7284   do
7285     cat "conftest.in" "conftest.in" >"conftest.tmp"
7286     mv "conftest.tmp" "conftest.in"
7287     cp "conftest.in" "conftest.nl"
7288     $as_echo '' >> "conftest.nl"
7289     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7290     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7291     ac_count=`expr $ac_count + 1`
7292     if test $ac_count -gt ${ac_path_SED_max-0}; then
7293       # Best one so far, save it but keep looking for a better one
7294       ac_cv_path_SED="$ac_path_SED"
7295       ac_path_SED_max=$ac_count
7296     fi
7297     # 10*(2^10) chars as input seems more than enough
7298     test $ac_count -gt 10 && break
7299   done
7300   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7301 esac
7302
7303       $ac_path_SED_found && break 3
7304     done
7305   done
7306 done
7307 IFS=$as_save_IFS
7308   if test -z "$ac_cv_path_SED"; then
7309     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7310 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7311    { (exit 1); exit 1; }; }
7312   fi
7313 else
7314   ac_cv_path_SED=$SED
7315 fi
7316
7317 fi
7318 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7319 $as_echo "$ac_cv_path_SED" >&6; }
7320  SED="$ac_cv_path_SED"
7321   rm -f conftest.sed
7322
7323 test -z "$SED" && SED=sed
7324 Xsed="$SED -e 1s/^X//"
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7337 $as_echo_n "checking for fgrep... " >&6; }
7338 if test "${ac_cv_path_FGREP+set}" = set; then
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7342    then ac_cv_path_FGREP="$GREP -F"
7343    else
7344      if test -z "$FGREP"; then
7345   ac_path_FGREP_found=false
7346   # Loop through the user's path and test for each of PROGNAME-LIST
7347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_prog in fgrep; do
7353     for ac_exec_ext in '' $ac_executable_extensions; do
7354       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7355       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7356 # Check for GNU ac_path_FGREP and select it if it is found.
7357   # Check for GNU $ac_path_FGREP
7358 case `"$ac_path_FGREP" --version 2>&1` in
7359 *GNU*)
7360   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7361 *)
7362   ac_count=0
7363   $as_echo_n 0123456789 >"conftest.in"
7364   while :
7365   do
7366     cat "conftest.in" "conftest.in" >"conftest.tmp"
7367     mv "conftest.tmp" "conftest.in"
7368     cp "conftest.in" "conftest.nl"
7369     $as_echo 'FGREP' >> "conftest.nl"
7370     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7371     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7372     ac_count=`expr $ac_count + 1`
7373     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7374       # Best one so far, save it but keep looking for a better one
7375       ac_cv_path_FGREP="$ac_path_FGREP"
7376       ac_path_FGREP_max=$ac_count
7377     fi
7378     # 10*(2^10) chars as input seems more than enough
7379     test $ac_count -gt 10 && break
7380   done
7381   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7382 esac
7383
7384       $ac_path_FGREP_found && break 3
7385     done
7386   done
7387 done
7388 IFS=$as_save_IFS
7389   if test -z "$ac_cv_path_FGREP"; then
7390     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7391 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7392    { (exit 1); exit 1; }; }
7393   fi
7394 else
7395   ac_cv_path_FGREP=$FGREP
7396 fi
7397
7398    fi
7399 fi
7400 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7401 $as_echo "$ac_cv_path_FGREP" >&6; }
7402  FGREP="$ac_cv_path_FGREP"
7403
7404
7405 test -z "$GREP" && GREP=grep
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 # Check whether --with-gnu-ld was given.
7426 if test "${with_gnu_ld+set}" = set; then
7427   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7428 else
7429   with_gnu_ld=no
7430 fi
7431
7432 ac_prog=ld
7433 if test "$GCC" = yes; then
7434   # Check if gcc -print-prog-name=ld gives a path.
7435   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7436 $as_echo_n "checking for ld used by $CC... " >&6; }
7437   case $host in
7438   *-*-mingw*)
7439     # gcc leaves a trailing carriage return which upsets mingw
7440     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7441   *)
7442     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7443   esac
7444   case $ac_prog in
7445     # Accept absolute paths.
7446     [\\/]* | ?:[\\/]*)
7447       re_direlt='/[^/][^/]*/\.\./'
7448       # Canonicalize the pathname of ld
7449       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7450       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7451         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7452       done
7453       test -z "$LD" && LD="$ac_prog"
7454       ;;
7455   "")
7456     # If it fails, then pretend we aren't using GCC.
7457     ac_prog=ld
7458     ;;
7459   *)
7460     # If it is relative, then search for the first ld in PATH.
7461     with_gnu_ld=unknown
7462     ;;
7463   esac
7464 elif test "$with_gnu_ld" = yes; then
7465   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7466 $as_echo_n "checking for GNU ld... " >&6; }
7467 else
7468   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7469 $as_echo_n "checking for non-GNU ld... " >&6; }
7470 fi
7471 if test "${lt_cv_path_LD+set}" = set; then
7472   $as_echo_n "(cached) " >&6
7473 else
7474   if test -z "$LD"; then
7475   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7476   for ac_dir in $PATH; do
7477     IFS="$lt_save_ifs"
7478     test -z "$ac_dir" && ac_dir=.
7479     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7480       lt_cv_path_LD="$ac_dir/$ac_prog"
7481       # Check to see if the program is GNU ld.  I'd rather use --version,
7482       # but apparently some variants of GNU ld only accept -v.
7483       # Break only if it was the GNU/non-GNU ld that we prefer.
7484       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7485       *GNU* | *'with BFD'*)
7486         test "$with_gnu_ld" != no && break
7487         ;;
7488       *)
7489         test "$with_gnu_ld" != yes && break
7490         ;;
7491       esac
7492     fi
7493   done
7494   IFS="$lt_save_ifs"
7495 else
7496   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7497 fi
7498 fi
7499
7500 LD="$lt_cv_path_LD"
7501 if test -n "$LD"; then
7502   { $as_echo "$as_me:$LINENO: result: $LD" >&5
7503 $as_echo "$LD" >&6; }
7504 else
7505   { $as_echo "$as_me:$LINENO: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7509 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7510    { (exit 1); exit 1; }; }
7511 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7513 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7514   $as_echo_n "(cached) " >&6
7515 else
7516   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7517 case `$LD -v 2>&1 </dev/null` in
7518 *GNU* | *'with BFD'*)
7519   lt_cv_prog_gnu_ld=yes
7520   ;;
7521 *)
7522   lt_cv_prog_gnu_ld=no
7523   ;;
7524 esac
7525 fi
7526 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7528 with_gnu_ld=$lt_cv_prog_gnu_ld
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7540 if test "${lt_cv_path_NM+set}" = set; then
7541   $as_echo_n "(cached) " >&6
7542 else
7543   if test -n "$NM"; then
7544   # Let the user override the test.
7545   lt_cv_path_NM="$NM"
7546 else
7547   lt_nm_to_check="${ac_tool_prefix}nm"
7548   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7549     lt_nm_to_check="$lt_nm_to_check nm"
7550   fi
7551   for lt_tmp_nm in $lt_nm_to_check; do
7552     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7553     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7554       IFS="$lt_save_ifs"
7555       test -z "$ac_dir" && ac_dir=.
7556       tmp_nm="$ac_dir/$lt_tmp_nm"
7557       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7558         # Check to see if the nm accepts a BSD-compat flag.
7559         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7560         #   nm: unknown option "B" ignored
7561         # Tru64's nm complains that /dev/null is an invalid object file
7562         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7563         */dev/null* | *'Invalid file or object type'*)
7564           lt_cv_path_NM="$tmp_nm -B"
7565           break
7566           ;;
7567         *)
7568           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7569           */dev/null*)
7570             lt_cv_path_NM="$tmp_nm -p"
7571             break
7572             ;;
7573           *)
7574             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7575             continue # so that we can try to find one that supports BSD flags
7576             ;;
7577           esac
7578           ;;
7579         esac
7580       fi
7581     done
7582     IFS="$lt_save_ifs"
7583   done
7584   : ${lt_cv_path_NM=no}
7585 fi
7586 fi
7587 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7588 $as_echo "$lt_cv_path_NM" >&6; }
7589 if test "$lt_cv_path_NM" != "no"; then
7590   NM="$lt_cv_path_NM"
7591 else
7592   # Didn't find any BSD compatible name lister, look for dumpbin.
7593   if test -n "$ac_tool_prefix"; then
7594   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7595   do
7596     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7601   $as_echo_n "(cached) " >&6
7602 else
7603   if test -n "$DUMPBIN"; then
7604   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611   for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 DUMPBIN=$ac_cv_prog_DUMPBIN
7624 if test -n "$DUMPBIN"; then
7625   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7626 $as_echo "$DUMPBIN" >&6; }
7627 else
7628   { $as_echo "$as_me:$LINENO: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632
7633     test -n "$DUMPBIN" && break
7634   done
7635 fi
7636 if test -z "$DUMPBIN"; then
7637   ac_ct_DUMPBIN=$DUMPBIN
7638   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7639 do
7640   # Extract the first word of "$ac_prog", so it can be a program name with args.
7641 set dummy $ac_prog; ac_word=$2
7642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7645   $as_echo_n "(cached) " >&6
7646 else
7647   if test -n "$ac_ct_DUMPBIN"; then
7648   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7668 if test -n "$ac_ct_DUMPBIN"; then
7669   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7670 $as_echo "$ac_ct_DUMPBIN" >&6; }
7671 else
7672   { $as_echo "$as_me:$LINENO: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675
7676
7677   test -n "$ac_ct_DUMPBIN" && break
7678 done
7679
7680   if test "x$ac_ct_DUMPBIN" = x; then
7681     DUMPBIN=":"
7682   else
7683     case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7688 esac
7689     DUMPBIN=$ac_ct_DUMPBIN
7690   fi
7691 fi
7692
7693
7694   if test "$DUMPBIN" != ":"; then
7695     NM="$DUMPBIN"
7696   fi
7697 fi
7698 test -z "$NM" && NM=nm
7699
7700
7701
7702
7703
7704
7705 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7706 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7707 if test "${lt_cv_nm_interface+set}" = set; then
7708   $as_echo_n "(cached) " >&6
7709 else
7710   lt_cv_nm_interface="BSD nm"
7711   echo "int some_variable = 0;" > conftest.$ac_ext
7712   (eval echo "\"\$as_me:7712: $ac_compile\"" >&5)
7713   (eval "$ac_compile" 2>conftest.err)
7714   cat conftest.err >&5
7715   (eval echo "\"\$as_me:7715: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7716   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7717   cat conftest.err >&5
7718   (eval echo "\"\$as_me:7718: output\"" >&5)
7719   cat conftest.out >&5
7720   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7721     lt_cv_nm_interface="MS dumpbin"
7722   fi
7723   rm -f conftest*
7724 fi
7725 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7726 $as_echo "$lt_cv_nm_interface" >&6; }
7727
7728 # find the maximum length of command line arguments
7729 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7730 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7731 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7732   $as_echo_n "(cached) " >&6
7733 else
7734     i=0
7735   teststring="ABCD"
7736
7737   case $build_os in
7738   msdosdjgpp*)
7739     # On DJGPP, this test can blow up pretty badly due to problems in libc
7740     # (any single argument exceeding 2000 bytes causes a buffer overrun
7741     # during glob expansion).  Even if it were fixed, the result of this
7742     # check would be larger than it should be.
7743     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7744     ;;
7745
7746   gnu*)
7747     # Under GNU Hurd, this test is not required because there is
7748     # no limit to the length of command line arguments.
7749     # Libtool will interpret -1 as no limit whatsoever
7750     lt_cv_sys_max_cmd_len=-1;
7751     ;;
7752
7753   cygwin* | mingw* | cegcc*)
7754     # On Win9x/ME, this test blows up -- it succeeds, but takes
7755     # about 5 minutes as the teststring grows exponentially.
7756     # Worse, since 9x/ME are not pre-emptively multitasking,
7757     # you end up with a "frozen" computer, even though with patience
7758     # the test eventually succeeds (with a max line length of 256k).
7759     # Instead, let's just punt: use the minimum linelength reported by
7760     # all of the supported platforms: 8192 (on NT/2K/XP).
7761     lt_cv_sys_max_cmd_len=8192;
7762     ;;
7763
7764   amigaos*)
7765     # On AmigaOS with pdksh, this test takes hours, literally.
7766     # So we just punt and use a minimum line length of 8192.
7767     lt_cv_sys_max_cmd_len=8192;
7768     ;;
7769
7770   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7771     # This has been around since 386BSD, at least.  Likely further.
7772     if test -x /sbin/sysctl; then
7773       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7774     elif test -x /usr/sbin/sysctl; then
7775       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7776     else
7777       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7778     fi
7779     # And add a safety zone
7780     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7781     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7782     ;;
7783
7784   interix*)
7785     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7786     lt_cv_sys_max_cmd_len=196608
7787     ;;
7788
7789   osf*)
7790     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7791     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7792     # nice to cause kernel panics so lets avoid the loop below.
7793     # First set a reasonable default.
7794     lt_cv_sys_max_cmd_len=16384
7795     #
7796     if test -x /sbin/sysconfig; then
7797       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7798         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7799       esac
7800     fi
7801     ;;
7802   sco3.2v5*)
7803     lt_cv_sys_max_cmd_len=102400
7804     ;;
7805   sysv5* | sco5v6* | sysv4.2uw2*)
7806     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7807     if test -n "$kargmax"; then
7808       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7809     else
7810       lt_cv_sys_max_cmd_len=32768
7811     fi
7812     ;;
7813   *)
7814     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7815     if test -n "$lt_cv_sys_max_cmd_len"; then
7816       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7817       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7818     else
7819       # Make teststring a little bigger before we do anything with it.
7820       # a 1K string should be a reasonable start.
7821       for i in 1 2 3 4 5 6 7 8 ; do
7822         teststring=$teststring$teststring
7823       done
7824       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7825       # If test is not a shell built-in, we'll probably end up computing a
7826       # maximum length that is only half of the actual maximum length, but
7827       # we can't tell.
7828       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7829                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7830               test $i != 17 # 1/2 MB should be enough
7831       do
7832         i=`expr $i + 1`
7833         teststring=$teststring$teststring
7834       done
7835       # Only check the string length outside the loop.
7836       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7837       teststring=
7838       # Add a significant safety factor because C++ compilers can tack on
7839       # massive amounts of additional arguments before passing them to the
7840       # linker.  It appears as though 1/2 is a usable value.
7841       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7842     fi
7843     ;;
7844   esac
7845
7846 fi
7847
7848 if test -n $lt_cv_sys_max_cmd_len ; then
7849   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7850 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7851 else
7852   { $as_echo "$as_me:$LINENO: result: none" >&5
7853 $as_echo "none" >&6; }
7854 fi
7855 max_cmd_len=$lt_cv_sys_max_cmd_len
7856
7857
7858
7859
7860
7861
7862 : ${CP="cp -f"}
7863 : ${MV="mv -f"}
7864 : ${RM="rm -f"}
7865
7866 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7867 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7868 # Try some XSI features
7869 xsi_shell=no
7870 ( _lt_dummy="a/b/c"
7871   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7872       = c,a/b,, \
7873     && eval 'test $(( 1 + 1 )) -eq 2 \
7874     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7875   && xsi_shell=yes
7876 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7877 $as_echo "$xsi_shell" >&6; }
7878
7879
7880 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7881 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7882 lt_shell_append=no
7883 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7884     >/dev/null 2>&1 \
7885   && lt_shell_append=yes
7886 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7887 $as_echo "$lt_shell_append" >&6; }
7888
7889
7890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7891   lt_unset=unset
7892 else
7893   lt_unset=false
7894 fi
7895
7896
7897
7898
7899
7900 # test EBCDIC or ASCII
7901 case `echo X|tr X '\101'` in
7902  A) # ASCII based system
7903     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7904   lt_SP2NL='tr \040 \012'
7905   lt_NL2SP='tr \015\012 \040\040'
7906   ;;
7907  *) # EBCDIC based system
7908   lt_SP2NL='tr \100 \n'
7909   lt_NL2SP='tr \r\n \100\100'
7910   ;;
7911 esac
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7922 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7923 if test "${lt_cv_ld_reload_flag+set}" = set; then
7924   $as_echo_n "(cached) " >&6
7925 else
7926   lt_cv_ld_reload_flag='-r'
7927 fi
7928 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7929 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7930 reload_flag=$lt_cv_ld_reload_flag
7931 case $reload_flag in
7932 "" | " "*) ;;
7933 *) reload_flag=" $reload_flag" ;;
7934 esac
7935 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7936 case $host_os in
7937   darwin*)
7938     if test "$GCC" = yes; then
7939       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7940     else
7941       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7942     fi
7943     ;;
7944 esac
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954 if test -n "$ac_tool_prefix"; then
7955   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7960   $as_echo_n "(cached) " >&6
7961 else
7962   if test -n "$OBJDUMP"; then
7963   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968   IFS=$as_save_IFS
7969   test -z "$as_dir" && as_dir=.
7970   for ac_exec_ext in '' $ac_executable_extensions; do
7971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7973     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974     break 2
7975   fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi
7981 fi
7982 OBJDUMP=$ac_cv_prog_OBJDUMP
7983 if test -n "$OBJDUMP"; then
7984   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7985 $as_echo "$OBJDUMP" >&6; }
7986 else
7987   { $as_echo "$as_me:$LINENO: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991
7992 fi
7993 if test -z "$ac_cv_prog_OBJDUMP"; then
7994   ac_ct_OBJDUMP=$OBJDUMP
7995   # Extract the first word of "objdump", so it can be a program name with args.
7996 set dummy objdump; ac_word=$2
7997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8000   $as_echo_n "(cached) " >&6
8001 else
8002   if test -n "$ac_ct_OBJDUMP"; then
8003   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010   for ac_exec_ext in '' $ac_executable_extensions; do
8011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8013     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017 done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8023 if test -n "$ac_ct_OBJDUMP"; then
8024   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8025 $as_echo "$ac_ct_OBJDUMP" >&6; }
8026 else
8027   { $as_echo "$as_me:$LINENO: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031   if test "x$ac_ct_OBJDUMP" = x; then
8032     OBJDUMP="false"
8033   else
8034     case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8039 esac
8040     OBJDUMP=$ac_ct_OBJDUMP
8041   fi
8042 else
8043   OBJDUMP="$ac_cv_prog_OBJDUMP"
8044 fi
8045
8046 test -z "$OBJDUMP" && OBJDUMP=objdump
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8057 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8058 if test "${lt_cv_deplibs_check_method+set}" = set; then
8059   $as_echo_n "(cached) " >&6
8060 else
8061   lt_cv_file_magic_cmd='$MAGIC_CMD'
8062 lt_cv_file_magic_test_file=
8063 lt_cv_deplibs_check_method='unknown'
8064 # Need to set the preceding variable on all platforms that support
8065 # interlibrary dependencies.
8066 # 'none' -- dependencies not supported.
8067 # `unknown' -- same as none, but documents that we really don't know.
8068 # 'pass_all' -- all dependencies passed with no checks.
8069 # 'test_compile' -- check by making test program.
8070 # 'file_magic [[regex]]' -- check by looking for files in library path
8071 # which responds to the $file_magic_cmd with a given extended regex.
8072 # If you have `file' or equivalent on your system and you're not sure
8073 # whether `pass_all' will *always* work, you probably want this one.
8074
8075 case $host_os in
8076 aix[4-9]*)
8077   lt_cv_deplibs_check_method=pass_all
8078   ;;
8079
8080 beos*)
8081   lt_cv_deplibs_check_method=pass_all
8082   ;;
8083
8084 bsdi[45]*)
8085   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8086   lt_cv_file_magic_cmd='/usr/bin/file -L'
8087   lt_cv_file_magic_test_file=/shlib/libc.so
8088   ;;
8089
8090 cygwin*)
8091   # func_win32_libid is a shell function defined in ltmain.sh
8092   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8093   lt_cv_file_magic_cmd='func_win32_libid'
8094   ;;
8095
8096 mingw* | pw32*)
8097   # Base MSYS/MinGW do not provide the 'file' command needed by
8098   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8099   # unless we find 'file', for example because we are cross-compiling.
8100   if ( file / ) >/dev/null 2>&1; then
8101     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8102     lt_cv_file_magic_cmd='func_win32_libid'
8103   else
8104     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8105     lt_cv_file_magic_cmd='$OBJDUMP -f'
8106   fi
8107   ;;
8108
8109 cegcc)
8110   # use the weaker test based on 'objdump'. See mingw*.
8111   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8112   lt_cv_file_magic_cmd='$OBJDUMP -f'
8113   ;;
8114
8115 darwin* | rhapsody*)
8116   lt_cv_deplibs_check_method=pass_all
8117   ;;
8118
8119 freebsd* | dragonfly*)
8120   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8121     case $host_cpu in
8122     i*86 )
8123       # Not sure whether the presence of OpenBSD here was a mistake.
8124       # Let's accept both of them until this is cleared up.
8125       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8126       lt_cv_file_magic_cmd=/usr/bin/file
8127       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8128       ;;
8129     esac
8130   else
8131     lt_cv_deplibs_check_method=pass_all
8132   fi
8133   ;;
8134
8135 gnu*)
8136   lt_cv_deplibs_check_method=pass_all
8137   ;;
8138
8139 hpux10.20* | hpux11*)
8140   lt_cv_file_magic_cmd=/usr/bin/file
8141   case $host_cpu in
8142   ia64*)
8143     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8144     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8145     ;;
8146   hppa*64*)
8147     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]'
8148     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8149     ;;
8150   *)
8151     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8152     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8153     ;;
8154   esac
8155   ;;
8156
8157 interix[3-9]*)
8158   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8159   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8160   ;;
8161
8162 irix5* | irix6* | nonstopux*)
8163   case $LD in
8164   *-32|*"-32 ") libmagic=32-bit;;
8165   *-n32|*"-n32 ") libmagic=N32;;
8166   *-64|*"-64 ") libmagic=64-bit;;
8167   *) libmagic=never-match;;
8168   esac
8169   lt_cv_deplibs_check_method=pass_all
8170   ;;
8171
8172 # This must be Linux ELF.
8173 linux* | k*bsd*-gnu)
8174   lt_cv_deplibs_check_method=pass_all
8175   ;;
8176
8177 netbsd*)
8178   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8179     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8180   else
8181     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8182   fi
8183   ;;
8184
8185 newos6*)
8186   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8187   lt_cv_file_magic_cmd=/usr/bin/file
8188   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8189   ;;
8190
8191 *nto* | *qnx*)
8192   lt_cv_deplibs_check_method=pass_all
8193   ;;
8194
8195 openbsd*)
8196   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8197     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8198   else
8199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8200   fi
8201   ;;
8202
8203 osf3* | osf4* | osf5*)
8204   lt_cv_deplibs_check_method=pass_all
8205   ;;
8206
8207 rdos*)
8208   lt_cv_deplibs_check_method=pass_all
8209   ;;
8210
8211 solaris*)
8212   lt_cv_deplibs_check_method=pass_all
8213   ;;
8214
8215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8216   lt_cv_deplibs_check_method=pass_all
8217   ;;
8218
8219 sysv4 | sysv4.3*)
8220   case $host_vendor in
8221   motorola)
8222     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]'
8223     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8224     ;;
8225   ncr)
8226     lt_cv_deplibs_check_method=pass_all
8227     ;;
8228   sequent)
8229     lt_cv_file_magic_cmd='/bin/file'
8230     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8231     ;;
8232   sni)
8233     lt_cv_file_magic_cmd='/bin/file'
8234     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8235     lt_cv_file_magic_test_file=/lib/libc.so
8236     ;;
8237   siemens)
8238     lt_cv_deplibs_check_method=pass_all
8239     ;;
8240   pc)
8241     lt_cv_deplibs_check_method=pass_all
8242     ;;
8243   esac
8244   ;;
8245
8246 tpf*)
8247   lt_cv_deplibs_check_method=pass_all
8248   ;;
8249 esac
8250
8251 fi
8252 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8253 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8254 file_magic_cmd=$lt_cv_file_magic_cmd
8255 deplibs_check_method=$lt_cv_deplibs_check_method
8256 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 if test -n "$ac_tool_prefix"; then
8270   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8271 set dummy ${ac_tool_prefix}ar; ac_word=$2
8272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_AR+set}" = set; then
8275   $as_echo_n "(cached) " >&6
8276 else
8277   if test -n "$AR"; then
8278   ac_cv_prog_AR="$AR" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285   for ac_exec_ext in '' $ac_executable_extensions; do
8286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287     ac_cv_prog_AR="${ac_tool_prefix}ar"
8288     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 AR=$ac_cv_prog_AR
8298 if test -n "$AR"; then
8299   { $as_echo "$as_me:$LINENO: result: $AR" >&5
8300 $as_echo "$AR" >&6; }
8301 else
8302   { $as_echo "$as_me:$LINENO: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307 fi
8308 if test -z "$ac_cv_prog_AR"; then
8309   ac_ct_AR=$AR
8310   # Extract the first word of "ar", so it can be a program name with args.
8311 set dummy ar; ac_word=$2
8312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8315   $as_echo_n "(cached) " >&6
8316 else
8317   if test -n "$ac_ct_AR"; then
8318   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8322 do
8323   IFS=$as_save_IFS
8324   test -z "$as_dir" && as_dir=.
8325   for ac_exec_ext in '' $ac_executable_extensions; do
8326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327     ac_cv_prog_ac_ct_AR="ar"
8328     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329     break 2
8330   fi
8331 done
8332 done
8333 IFS=$as_save_IFS
8334
8335 fi
8336 fi
8337 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8338 if test -n "$ac_ct_AR"; then
8339   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8340 $as_echo "$ac_ct_AR" >&6; }
8341 else
8342   { $as_echo "$as_me:$LINENO: result: no" >&5
8343 $as_echo "no" >&6; }
8344 fi
8345
8346   if test "x$ac_ct_AR" = x; then
8347     AR="false"
8348   else
8349     case $cross_compiling:$ac_tool_warned in
8350 yes:)
8351 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353 ac_tool_warned=yes ;;
8354 esac
8355     AR=$ac_ct_AR
8356   fi
8357 else
8358   AR="$ac_cv_prog_AR"
8359 fi
8360
8361 test -z "$AR" && AR=ar
8362 test -z "$AR_FLAGS" && AR_FLAGS=cru
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 if test -n "$ac_tool_prefix"; then
8375   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8376 set dummy ${ac_tool_prefix}strip; ac_word=$2
8377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if test "${ac_cv_prog_STRIP+set}" = set; then
8380   $as_echo_n "(cached) " >&6
8381 else
8382   if test -n "$STRIP"; then
8383   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8384 else
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390   for ac_exec_ext in '' $ac_executable_extensions; do
8391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8392     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8393     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397 done
8398 IFS=$as_save_IFS
8399
8400 fi
8401 fi
8402 STRIP=$ac_cv_prog_STRIP
8403 if test -n "$STRIP"; then
8404   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8405 $as_echo "$STRIP" >&6; }
8406 else
8407   { $as_echo "$as_me:$LINENO: result: no" >&5
8408 $as_echo "no" >&6; }
8409 fi
8410
8411
8412 fi
8413 if test -z "$ac_cv_prog_STRIP"; then
8414   ac_ct_STRIP=$STRIP
8415   # Extract the first word of "strip", so it can be a program name with args.
8416 set dummy strip; ac_word=$2
8417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8420   $as_echo_n "(cached) " >&6
8421 else
8422   if test -n "$ac_ct_STRIP"; then
8423   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428   IFS=$as_save_IFS
8429   test -z "$as_dir" && as_dir=.
8430   for ac_exec_ext in '' $ac_executable_extensions; do
8431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432     ac_cv_prog_ac_ct_STRIP="strip"
8433     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434     break 2
8435   fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440 fi
8441 fi
8442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8443 if test -n "$ac_ct_STRIP"; then
8444   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8445 $as_echo "$ac_ct_STRIP" >&6; }
8446 else
8447   { $as_echo "$as_me:$LINENO: result: no" >&5
8448 $as_echo "no" >&6; }
8449 fi
8450
8451   if test "x$ac_ct_STRIP" = x; then
8452     STRIP=":"
8453   else
8454     case $cross_compiling:$ac_tool_warned in
8455 yes:)
8456 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8458 ac_tool_warned=yes ;;
8459 esac
8460     STRIP=$ac_ct_STRIP
8461   fi
8462 else
8463   STRIP="$ac_cv_prog_STRIP"
8464 fi
8465
8466 test -z "$STRIP" && STRIP=:
8467
8468
8469
8470
8471
8472
8473 if test -n "$ac_tool_prefix"; then
8474   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if test "${ac_cv_prog_RANLIB+set}" = set; then
8479   $as_echo_n "(cached) " >&6
8480 else
8481   if test -n "$RANLIB"; then
8482   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8483 else
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487   IFS=$as_save_IFS
8488   test -z "$as_dir" && as_dir=.
8489   for ac_exec_ext in '' $ac_executable_extensions; do
8490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8492     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8493     break 2
8494   fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499 fi
8500 fi
8501 RANLIB=$ac_cv_prog_RANLIB
8502 if test -n "$RANLIB"; then
8503   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8504 $as_echo "$RANLIB" >&6; }
8505 else
8506   { $as_echo "$as_me:$LINENO: result: no" >&5
8507 $as_echo "no" >&6; }
8508 fi
8509
8510
8511 fi
8512 if test -z "$ac_cv_prog_RANLIB"; then
8513   ac_ct_RANLIB=$RANLIB
8514   # Extract the first word of "ranlib", so it can be a program name with args.
8515 set dummy ranlib; ac_word=$2
8516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8519   $as_echo_n "(cached) " >&6
8520 else
8521   if test -n "$ac_ct_RANLIB"; then
8522   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8526 do
8527   IFS=$as_save_IFS
8528   test -z "$as_dir" && as_dir=.
8529   for ac_exec_ext in '' $ac_executable_extensions; do
8530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531     ac_cv_prog_ac_ct_RANLIB="ranlib"
8532     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8533     break 2
8534   fi
8535 done
8536 done
8537 IFS=$as_save_IFS
8538
8539 fi
8540 fi
8541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8542 if test -n "$ac_ct_RANLIB"; then
8543   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8544 $as_echo "$ac_ct_RANLIB" >&6; }
8545 else
8546   { $as_echo "$as_me:$LINENO: result: no" >&5
8547 $as_echo "no" >&6; }
8548 fi
8549
8550   if test "x$ac_ct_RANLIB" = x; then
8551     RANLIB=":"
8552   else
8553     case $cross_compiling:$ac_tool_warned in
8554 yes:)
8555 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8557 ac_tool_warned=yes ;;
8558 esac
8559     RANLIB=$ac_ct_RANLIB
8560   fi
8561 else
8562   RANLIB="$ac_cv_prog_RANLIB"
8563 fi
8564
8565 test -z "$RANLIB" && RANLIB=:
8566
8567
8568
8569
8570
8571
8572 # Determine commands to create old-style static archives.
8573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8574 old_postinstall_cmds='chmod 644 $oldlib'
8575 old_postuninstall_cmds=
8576
8577 if test -n "$RANLIB"; then
8578   case $host_os in
8579   openbsd*)
8580     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8581     ;;
8582   *)
8583     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8584     ;;
8585   esac
8586   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8587 fi
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622 # If no C compiler was specified, use CC.
8623 LTCC=${LTCC-"$CC"}
8624
8625 # If no C compiler flags were specified, use CFLAGS.
8626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8627
8628 # Allow CC to be a program name with arguments.
8629 compiler=$CC
8630
8631
8632 # Check for command to grab the raw symbol name followed by C symbol from nm.
8633 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8634 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8635 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8636   $as_echo_n "(cached) " >&6
8637 else
8638
8639 # These are sane defaults that work on at least a few old systems.
8640 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8641
8642 # Character class describing NM global symbol codes.
8643 symcode='[BCDEGRST]'
8644
8645 # Regexp to match symbols that can be accessed directly from C.
8646 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8647
8648 # Define system-specific variables.
8649 case $host_os in
8650 aix*)
8651   symcode='[BCDT]'
8652   ;;
8653 cygwin* | mingw* | pw32* | cegcc*)
8654   symcode='[ABCDGISTW]'
8655   ;;
8656 hpux*)
8657   if test "$host_cpu" = ia64; then
8658     symcode='[ABCDEGRST]'
8659   fi
8660   ;;
8661 irix* | nonstopux*)
8662   symcode='[BCDEGRST]'
8663   ;;
8664 osf*)
8665   symcode='[BCDEGQRST]'
8666   ;;
8667 solaris*)
8668   symcode='[BDRT]'
8669   ;;
8670 sco3.2v5*)
8671   symcode='[DT]'
8672   ;;
8673 sysv4.2uw2*)
8674   symcode='[DT]'
8675   ;;
8676 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8677   symcode='[ABDT]'
8678   ;;
8679 sysv4)
8680   symcode='[DFNSTU]'
8681   ;;
8682 esac
8683
8684 # If we're using GNU nm, then use its standard symbol codes.
8685 case `$NM -V 2>&1` in
8686 *GNU* | *'with BFD'*)
8687   symcode='[ABCDGIRSTW]' ;;
8688 esac
8689
8690 # Transform an extracted symbol line into a proper C declaration.
8691 # Some systems (esp. on ia64) link data and code symbols differently,
8692 # so use this general approach.
8693 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8694
8695 # Transform an extracted symbol line into symbol name and symbol address
8696 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8697 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8698
8699 # Handle CRLF in mingw tool chain
8700 opt_cr=
8701 case $build_os in
8702 mingw*)
8703   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8704   ;;
8705 esac
8706
8707 # Try without a prefix underscore, then with it.
8708 for ac_symprfx in "" "_"; do
8709
8710   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8711   symxfrm="\\1 $ac_symprfx\\2 \\2"
8712
8713   # Write the raw and C identifiers.
8714   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8715     # Fake it for dumpbin and say T for any non-static function
8716     # and D for any global variable.
8717     # Also find C++ and __fastcall symbols from MSVC++,
8718     # which start with @ or ?.
8719     lt_cv_sys_global_symbol_pipe="$AWK '"\
8720 "     {last_section=section; section=\$ 3};"\
8721 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8722 "     \$ 0!~/External *\|/{next};"\
8723 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8724 "     {if(hide[section]) next};"\
8725 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8726 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8727 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8728 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8729 "     ' prfx=^$ac_symprfx"
8730   else
8731     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8732   fi
8733
8734   # Check to see that the pipe works correctly.
8735   pipe_works=no
8736
8737   rm -f conftest*
8738   cat > conftest.$ac_ext <<_LT_EOF
8739 #ifdef __cplusplus
8740 extern "C" {
8741 #endif
8742 char nm_test_var;
8743 void nm_test_func(void);
8744 void nm_test_func(void){}
8745 #ifdef __cplusplus
8746 }
8747 #endif
8748 int main(){nm_test_var='a';nm_test_func();return(0);}
8749 _LT_EOF
8750
8751   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752   (eval $ac_compile) 2>&5
8753   ac_status=$?
8754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); }; then
8756     # Now try to grab the symbols.
8757     nlist=conftest.nm
8758     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8759   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8760   ac_status=$?
8761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } && test -s "$nlist"; then
8763       # Try sorting and uniquifying the output.
8764       if sort "$nlist" | uniq > "$nlist"T; then
8765         mv -f "$nlist"T "$nlist"
8766       else
8767         rm -f "$nlist"T
8768       fi
8769
8770       # Make sure that we snagged all the symbols we need.
8771       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8772         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8773           cat <<_LT_EOF > conftest.$ac_ext
8774 #ifdef __cplusplus
8775 extern "C" {
8776 #endif
8777
8778 _LT_EOF
8779           # Now generate the symbol file.
8780           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8781
8782           cat <<_LT_EOF >> conftest.$ac_ext
8783
8784 /* The mapping between symbol names and symbols.  */
8785 const struct {
8786   const char *name;
8787   void       *address;
8788 }
8789 lt__PROGRAM__LTX_preloaded_symbols[] =
8790 {
8791   { "@PROGRAM@", (void *) 0 },
8792 _LT_EOF
8793           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8794           cat <<\_LT_EOF >> conftest.$ac_ext
8795   {0, (void *) 0}
8796 };
8797
8798 /* This works around a problem in FreeBSD linker */
8799 #ifdef FREEBSD_WORKAROUND
8800 static const void *lt_preloaded_setup() {
8801   return lt__PROGRAM__LTX_preloaded_symbols;
8802 }
8803 #endif
8804
8805 #ifdef __cplusplus
8806 }
8807 #endif
8808 _LT_EOF
8809           # Now try linking the two files.
8810           mv conftest.$ac_objext conftstm.$ac_objext
8811           lt_save_LIBS="$LIBS"
8812           lt_save_CFLAGS="$CFLAGS"
8813           LIBS="conftstm.$ac_objext"
8814           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8815           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>&5
8817   ac_status=$?
8818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8820             pipe_works=yes
8821           fi
8822           LIBS="$lt_save_LIBS"
8823           CFLAGS="$lt_save_CFLAGS"
8824         else
8825           echo "cannot find nm_test_func in $nlist" >&5
8826         fi
8827       else
8828         echo "cannot find nm_test_var in $nlist" >&5
8829       fi
8830     else
8831       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8832     fi
8833   else
8834     echo "$progname: failed program was:" >&5
8835     cat conftest.$ac_ext >&5
8836   fi
8837   rm -rf conftest* conftst*
8838
8839   # Do not use the global_symbol_pipe unless it works.
8840   if test "$pipe_works" = yes; then
8841     break
8842   else
8843     lt_cv_sys_global_symbol_pipe=
8844   fi
8845 done
8846
8847 fi
8848
8849 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8850   lt_cv_sys_global_symbol_to_cdecl=
8851 fi
8852 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8853   { $as_echo "$as_me:$LINENO: result: failed" >&5
8854 $as_echo "failed" >&6; }
8855 else
8856   { $as_echo "$as_me:$LINENO: result: ok" >&5
8857 $as_echo "ok" >&6; }
8858 fi
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881 # Check whether --enable-libtool-lock was given.
8882 if test "${enable_libtool_lock+set}" = set; then
8883   enableval=$enable_libtool_lock;
8884 fi
8885
8886 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8887
8888 # Some flags need to be propagated to the compiler or linker for good
8889 # libtool support.
8890 case $host in
8891 ia64-*-hpux*)
8892   # Find out which ABI we are using.
8893   echo 'int i;' > conftest.$ac_ext
8894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895   (eval $ac_compile) 2>&5
8896   ac_status=$?
8897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; then
8899     case `/usr/bin/file conftest.$ac_objext` in
8900       *ELF-32*)
8901         HPUX_IA64_MODE="32"
8902         ;;
8903       *ELF-64*)
8904         HPUX_IA64_MODE="64"
8905         ;;
8906     esac
8907   fi
8908   rm -rf conftest*
8909   ;;
8910 *-*-irix6*)
8911   # Find out which ABI we are using.
8912   echo '#line 8912 "configure"' > conftest.$ac_ext
8913   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914   (eval $ac_compile) 2>&5
8915   ac_status=$?
8916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; then
8918     if test "$lt_cv_prog_gnu_ld" = yes; then
8919       case `/usr/bin/file conftest.$ac_objext` in
8920         *32-bit*)
8921           LD="${LD-ld} -melf32bsmip"
8922           ;;
8923         *N32*)
8924           LD="${LD-ld} -melf32bmipn32"
8925           ;;
8926         *64-bit*)
8927           LD="${LD-ld} -melf64bmip"
8928         ;;
8929       esac
8930     else
8931       case `/usr/bin/file conftest.$ac_objext` in
8932         *32-bit*)
8933           LD="${LD-ld} -32"
8934           ;;
8935         *N32*)
8936           LD="${LD-ld} -n32"
8937           ;;
8938         *64-bit*)
8939           LD="${LD-ld} -64"
8940           ;;
8941       esac
8942     fi
8943   fi
8944   rm -rf conftest*
8945   ;;
8946
8947 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8948 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8949   # Find out which ABI we are using.
8950   echo 'int i;' > conftest.$ac_ext
8951   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8952   (eval $ac_compile) 2>&5
8953   ac_status=$?
8954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; then
8956     case `/usr/bin/file conftest.o` in
8957       *32-bit*)
8958         case $host in
8959           x86_64-*kfreebsd*-gnu)
8960             LD="${LD-ld} -m elf_i386_fbsd"
8961             ;;
8962           x86_64-*linux*)
8963             LD="${LD-ld} -m elf_i386"
8964             ;;
8965           ppc64-*linux*|powerpc64-*linux*)
8966             LD="${LD-ld} -m elf32ppclinux"
8967             ;;
8968           s390x-*linux*)
8969             LD="${LD-ld} -m elf_s390"
8970             ;;
8971           sparc64-*linux*)
8972             LD="${LD-ld} -m elf32_sparc"
8973             ;;
8974         esac
8975         ;;
8976       *64-bit*)
8977         case $host in
8978           x86_64-*kfreebsd*-gnu)
8979             LD="${LD-ld} -m elf_x86_64_fbsd"
8980             ;;
8981           x86_64-*linux*)
8982             LD="${LD-ld} -m elf_x86_64"
8983             ;;
8984           ppc*-*linux*|powerpc*-*linux*)
8985             LD="${LD-ld} -m elf64ppc"
8986             ;;
8987           s390*-*linux*|s390*-*tpf*)
8988             LD="${LD-ld} -m elf64_s390"
8989             ;;
8990           sparc*-*linux*)
8991             LD="${LD-ld} -m elf64_sparc"
8992             ;;
8993         esac
8994         ;;
8995     esac
8996   fi
8997   rm -rf conftest*
8998   ;;
8999
9000 *-*-sco3.2v5*)
9001   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9002   SAVE_CFLAGS="$CFLAGS"
9003   CFLAGS="$CFLAGS -belf"
9004   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9006 if test "${lt_cv_cc_needs_belf+set}" = set; then
9007   $as_echo_n "(cached) " >&6
9008 else
9009   ac_ext=c
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9014
9015      cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021
9022 int
9023 main ()
9024 {
9025
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (ac_try="$ac_link"
9032 case "(($ac_try" in
9033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034   *) ac_try_echo=$ac_try;;
9035 esac
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038   (eval "$ac_link") 2>conftest.er1
9039   ac_status=$?
9040   grep -v '^ *+' conftest.er1 >conftest.err
9041   rm -f conftest.er1
9042   cat conftest.err >&5
9043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } && {
9045          test -z "$ac_c_werror_flag" ||
9046          test ! -s conftest.err
9047        } && test -s conftest$ac_exeext && {
9048          test "$cross_compiling" = yes ||
9049          $as_test_x conftest$ac_exeext
9050        }; then
9051   lt_cv_cc_needs_belf=yes
9052 else
9053   $as_echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9055
9056         lt_cv_cc_needs_belf=no
9057 fi
9058
9059 rm -rf conftest.dSYM
9060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9061       conftest$ac_exeext conftest.$ac_ext
9062      ac_ext=c
9063 ac_cpp='$CPP $CPPFLAGS'
9064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9067
9068 fi
9069 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9070 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9071   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9072     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9073     CFLAGS="$SAVE_CFLAGS"
9074   fi
9075   ;;
9076 sparc*-*solaris*)
9077   # Find out which ABI we are using.
9078   echo 'int i;' > conftest.$ac_ext
9079   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080   (eval $ac_compile) 2>&5
9081   ac_status=$?
9082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; then
9084     case `/usr/bin/file conftest.o` in
9085     *64-bit*)
9086       case $lt_cv_prog_gnu_ld in
9087       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9088       *)
9089         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9090           LD="${LD-ld} -64"
9091         fi
9092         ;;
9093       esac
9094       ;;
9095     esac
9096   fi
9097   rm -rf conftest*
9098   ;;
9099 esac
9100
9101 need_locks="$enable_libtool_lock"
9102
9103
9104   case $host_os in
9105     rhapsody* | darwin*)
9106     if test -n "$ac_tool_prefix"; then
9107   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9112   $as_echo_n "(cached) " >&6
9113 else
9114   if test -n "$DSYMUTIL"; then
9115   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9119 do
9120   IFS=$as_save_IFS
9121   test -z "$as_dir" && as_dir=.
9122   for ac_exec_ext in '' $ac_executable_extensions; do
9123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9125     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9126     break 2
9127   fi
9128 done
9129 done
9130 IFS=$as_save_IFS
9131
9132 fi
9133 fi
9134 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9135 if test -n "$DSYMUTIL"; then
9136   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9137 $as_echo "$DSYMUTIL" >&6; }
9138 else
9139   { $as_echo "$as_me:$LINENO: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142
9143
9144 fi
9145 if test -z "$ac_cv_prog_DSYMUTIL"; then
9146   ac_ct_DSYMUTIL=$DSYMUTIL
9147   # Extract the first word of "dsymutil", so it can be a program name with args.
9148 set dummy dsymutil; ac_word=$2
9149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9152   $as_echo_n "(cached) " >&6
9153 else
9154   if test -n "$ac_ct_DSYMUTIL"; then
9155   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   test -z "$as_dir" && as_dir=.
9162   for ac_exec_ext in '' $ac_executable_extensions; do
9163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9165     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9166     break 2
9167   fi
9168 done
9169 done
9170 IFS=$as_save_IFS
9171
9172 fi
9173 fi
9174 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9175 if test -n "$ac_ct_DSYMUTIL"; then
9176   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9177 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9178 else
9179   { $as_echo "$as_me:$LINENO: result: no" >&5
9180 $as_echo "no" >&6; }
9181 fi
9182
9183   if test "x$ac_ct_DSYMUTIL" = x; then
9184     DSYMUTIL=":"
9185   else
9186     case $cross_compiling:$ac_tool_warned in
9187 yes:)
9188 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9190 ac_tool_warned=yes ;;
9191 esac
9192     DSYMUTIL=$ac_ct_DSYMUTIL
9193   fi
9194 else
9195   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9196 fi
9197
9198     if test -n "$ac_tool_prefix"; then
9199   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9200 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9204   $as_echo_n "(cached) " >&6
9205 else
9206   if test -n "$NMEDIT"; then
9207   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212   IFS=$as_save_IFS
9213   test -z "$as_dir" && as_dir=.
9214   for ac_exec_ext in '' $ac_executable_extensions; do
9215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9217     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9218     break 2
9219   fi
9220 done
9221 done
9222 IFS=$as_save_IFS
9223
9224 fi
9225 fi
9226 NMEDIT=$ac_cv_prog_NMEDIT
9227 if test -n "$NMEDIT"; then
9228   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9229 $as_echo "$NMEDIT" >&6; }
9230 else
9231   { $as_echo "$as_me:$LINENO: result: no" >&5
9232 $as_echo "no" >&6; }
9233 fi
9234
9235
9236 fi
9237 if test -z "$ac_cv_prog_NMEDIT"; then
9238   ac_ct_NMEDIT=$NMEDIT
9239   # Extract the first word of "nmedit", so it can be a program name with args.
9240 set dummy nmedit; ac_word=$2
9241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9244   $as_echo_n "(cached) " >&6
9245 else
9246   if test -n "$ac_ct_NMEDIT"; then
9247   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9248 else
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9251 do
9252   IFS=$as_save_IFS
9253   test -z "$as_dir" && as_dir=.
9254   for ac_exec_ext in '' $ac_executable_extensions; do
9255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9258     break 2
9259   fi
9260 done
9261 done
9262 IFS=$as_save_IFS
9263
9264 fi
9265 fi
9266 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9267 if test -n "$ac_ct_NMEDIT"; then
9268   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9269 $as_echo "$ac_ct_NMEDIT" >&6; }
9270 else
9271   { $as_echo "$as_me:$LINENO: result: no" >&5
9272 $as_echo "no" >&6; }
9273 fi
9274
9275   if test "x$ac_ct_NMEDIT" = x; then
9276     NMEDIT=":"
9277   else
9278     case $cross_compiling:$ac_tool_warned in
9279 yes:)
9280 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9282 ac_tool_warned=yes ;;
9283 esac
9284     NMEDIT=$ac_ct_NMEDIT
9285   fi
9286 else
9287   NMEDIT="$ac_cv_prog_NMEDIT"
9288 fi
9289
9290     if test -n "$ac_tool_prefix"; then
9291   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9292 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if test "${ac_cv_prog_LIPO+set}" = set; then
9296   $as_echo_n "(cached) " >&6
9297 else
9298   if test -n "$LIPO"; then
9299   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9300 else
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9303 do
9304   IFS=$as_save_IFS
9305   test -z "$as_dir" && as_dir=.
9306   for ac_exec_ext in '' $ac_executable_extensions; do
9307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9309     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9310     break 2
9311   fi
9312 done
9313 done
9314 IFS=$as_save_IFS
9315
9316 fi
9317 fi
9318 LIPO=$ac_cv_prog_LIPO
9319 if test -n "$LIPO"; then
9320   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9321 $as_echo "$LIPO" >&6; }
9322 else
9323   { $as_echo "$as_me:$LINENO: result: no" >&5
9324 $as_echo "no" >&6; }
9325 fi
9326
9327
9328 fi
9329 if test -z "$ac_cv_prog_LIPO"; then
9330   ac_ct_LIPO=$LIPO
9331   # Extract the first word of "lipo", so it can be a program name with args.
9332 set dummy lipo; ac_word=$2
9333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9336   $as_echo_n "(cached) " >&6
9337 else
9338   if test -n "$ac_ct_LIPO"; then
9339   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9340 else
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in $PATH
9343 do
9344   IFS=$as_save_IFS
9345   test -z "$as_dir" && as_dir=.
9346   for ac_exec_ext in '' $ac_executable_extensions; do
9347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348     ac_cv_prog_ac_ct_LIPO="lipo"
9349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350     break 2
9351   fi
9352 done
9353 done
9354 IFS=$as_save_IFS
9355
9356 fi
9357 fi
9358 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9359 if test -n "$ac_ct_LIPO"; then
9360   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9361 $as_echo "$ac_ct_LIPO" >&6; }
9362 else
9363   { $as_echo "$as_me:$LINENO: result: no" >&5
9364 $as_echo "no" >&6; }
9365 fi
9366
9367   if test "x$ac_ct_LIPO" = x; then
9368     LIPO=":"
9369   else
9370     case $cross_compiling:$ac_tool_warned in
9371 yes:)
9372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9374 ac_tool_warned=yes ;;
9375 esac
9376     LIPO=$ac_ct_LIPO
9377   fi
9378 else
9379   LIPO="$ac_cv_prog_LIPO"
9380 fi
9381
9382     if test -n "$ac_tool_prefix"; then
9383   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9384 set dummy ${ac_tool_prefix}otool; ac_word=$2
9385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if test "${ac_cv_prog_OTOOL+set}" = set; then
9388   $as_echo_n "(cached) " >&6
9389 else
9390   if test -n "$OTOOL"; then
9391   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396   IFS=$as_save_IFS
9397   test -z "$as_dir" && as_dir=.
9398   for ac_exec_ext in '' $ac_executable_extensions; do
9399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9400     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9402     break 2
9403   fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 OTOOL=$ac_cv_prog_OTOOL
9411 if test -n "$OTOOL"; then
9412   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9413 $as_echo "$OTOOL" >&6; }
9414 else
9415   { $as_echo "$as_me:$LINENO: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419
9420 fi
9421 if test -z "$ac_cv_prog_OTOOL"; then
9422   ac_ct_OTOOL=$OTOOL
9423   # Extract the first word of "otool", so it can be a program name with args.
9424 set dummy otool; ac_word=$2
9425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9428   $as_echo_n "(cached) " >&6
9429 else
9430   if test -n "$ac_ct_OTOOL"; then
9431   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9432 else
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9435 do
9436   IFS=$as_save_IFS
9437   test -z "$as_dir" && as_dir=.
9438   for ac_exec_ext in '' $ac_executable_extensions; do
9439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440     ac_cv_prog_ac_ct_OTOOL="otool"
9441     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9442     break 2
9443   fi
9444 done
9445 done
9446 IFS=$as_save_IFS
9447
9448 fi
9449 fi
9450 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9451 if test -n "$ac_ct_OTOOL"; then
9452   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9453 $as_echo "$ac_ct_OTOOL" >&6; }
9454 else
9455   { $as_echo "$as_me:$LINENO: result: no" >&5
9456 $as_echo "no" >&6; }
9457 fi
9458
9459   if test "x$ac_ct_OTOOL" = x; then
9460     OTOOL=":"
9461   else
9462     case $cross_compiling:$ac_tool_warned in
9463 yes:)
9464 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9466 ac_tool_warned=yes ;;
9467 esac
9468     OTOOL=$ac_ct_OTOOL
9469   fi
9470 else
9471   OTOOL="$ac_cv_prog_OTOOL"
9472 fi
9473
9474     if test -n "$ac_tool_prefix"; then
9475   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9476 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9480   $as_echo_n "(cached) " >&6
9481 else
9482   if test -n "$OTOOL64"; then
9483   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9484 else
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9487 do
9488   IFS=$as_save_IFS
9489   test -z "$as_dir" && as_dir=.
9490   for ac_exec_ext in '' $ac_executable_extensions; do
9491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9492     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9493     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9494     break 2
9495   fi
9496 done
9497 done
9498 IFS=$as_save_IFS
9499
9500 fi
9501 fi
9502 OTOOL64=$ac_cv_prog_OTOOL64
9503 if test -n "$OTOOL64"; then
9504   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9505 $as_echo "$OTOOL64" >&6; }
9506 else
9507   { $as_echo "$as_me:$LINENO: result: no" >&5
9508 $as_echo "no" >&6; }
9509 fi
9510
9511
9512 fi
9513 if test -z "$ac_cv_prog_OTOOL64"; then
9514   ac_ct_OTOOL64=$OTOOL64
9515   # Extract the first word of "otool64", so it can be a program name with args.
9516 set dummy otool64; ac_word=$2
9517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9520   $as_echo_n "(cached) " >&6
9521 else
9522   if test -n "$ac_ct_OTOOL64"; then
9523   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9524 else
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9527 do
9528   IFS=$as_save_IFS
9529   test -z "$as_dir" && as_dir=.
9530   for ac_exec_ext in '' $ac_executable_extensions; do
9531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9532     ac_cv_prog_ac_ct_OTOOL64="otool64"
9533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9534     break 2
9535   fi
9536 done
9537 done
9538 IFS=$as_save_IFS
9539
9540 fi
9541 fi
9542 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9543 if test -n "$ac_ct_OTOOL64"; then
9544   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9545 $as_echo "$ac_ct_OTOOL64" >&6; }
9546 else
9547   { $as_echo "$as_me:$LINENO: result: no" >&5
9548 $as_echo "no" >&6; }
9549 fi
9550
9551   if test "x$ac_ct_OTOOL64" = x; then
9552     OTOOL64=":"
9553   else
9554     case $cross_compiling:$ac_tool_warned in
9555 yes:)
9556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9558 ac_tool_warned=yes ;;
9559 esac
9560     OTOOL64=$ac_ct_OTOOL64
9561   fi
9562 else
9563   OTOOL64="$ac_cv_prog_OTOOL64"
9564 fi
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9593 $as_echo_n "checking for -single_module linker flag... " >&6; }
9594 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9595   $as_echo_n "(cached) " >&6
9596 else
9597   lt_cv_apple_cc_single_mod=no
9598       if test -z "${LT_MULTI_MODULE}"; then
9599         # By default we will add the -single_module flag. You can override
9600         # by either setting the environment variable LT_MULTI_MODULE
9601         # non-empty at configure time, or by adding -multi_module to the
9602         # link flags.
9603         rm -rf libconftest.dylib*
9604         echo "int foo(void){return 1;}" > conftest.c
9605         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9606 -dynamiclib -Wl,-single_module conftest.c" >&5
9607         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9608           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9609         _lt_result=$?
9610         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9611           lt_cv_apple_cc_single_mod=yes
9612         else
9613           cat conftest.err >&5
9614         fi
9615         rm -rf libconftest.dylib*
9616         rm -f conftest.*
9617       fi
9618 fi
9619 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9620 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9621     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9622 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9623 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9624   $as_echo_n "(cached) " >&6
9625 else
9626   lt_cv_ld_exported_symbols_list=no
9627       save_LDFLAGS=$LDFLAGS
9628       echo "_main" > conftest.sym
9629       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9630       cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636
9637 int
9638 main ()
9639 {
9640
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9647 case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9652 $as_echo "$ac_try_echo") >&5
9653   (eval "$ac_link") 2>conftest.er1
9654   ac_status=$?
9655   grep -v '^ *+' conftest.er1 >conftest.err
9656   rm -f conftest.er1
9657   cat conftest.err >&5
9658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); } && {
9660          test -z "$ac_c_werror_flag" ||
9661          test ! -s conftest.err
9662        } && test -s conftest$ac_exeext && {
9663          test "$cross_compiling" = yes ||
9664          $as_test_x conftest$ac_exeext
9665        }; then
9666   lt_cv_ld_exported_symbols_list=yes
9667 else
9668   $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671         lt_cv_ld_exported_symbols_list=no
9672 fi
9673
9674 rm -rf conftest.dSYM
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676       conftest$ac_exeext conftest.$ac_ext
9677         LDFLAGS="$save_LDFLAGS"
9678
9679 fi
9680 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9681 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9682     case $host_os in
9683     rhapsody* | darwin1.[012])
9684       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9685     darwin1.*)
9686       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9687     darwin*) # darwin 5.x on
9688       # if running on 10.5 or later, the deployment target defaults
9689       # to the OS version, if on x86, and 10.4, the deployment
9690       # target defaults to 10.4. Don't you love it?
9691       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9692         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9693           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9694         10.[012]*)
9695           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9696         10.*)
9697           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9698       esac
9699     ;;
9700   esac
9701     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9702       _lt_dar_single_mod='$single_module'
9703     fi
9704     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9705       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9706     else
9707       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9708     fi
9709     if test "$DSYMUTIL" != ":"; then
9710       _lt_dsymutil='~$DSYMUTIL $lib || :'
9711     else
9712       _lt_dsymutil=
9713     fi
9714     ;;
9715   esac
9716
9717
9718 for ac_header in dlfcn.h
9719 do
9720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9722 $as_echo_n "checking for $ac_header... " >&6; }
9723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724   $as_echo_n "(cached) " >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 $ac_includes_default
9733
9734 #include <$ac_header>
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (ac_try="$ac_compile"
9738 case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9743 $as_echo "$ac_try_echo") >&5
9744   (eval "$ac_compile") 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } && {
9751          test -z "$ac_c_werror_flag" ||
9752          test ! -s conftest.err
9753        } && test -s conftest.$ac_objext; then
9754   eval "$as_ac_Header=yes"
9755 else
9756   $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         eval "$as_ac_Header=no"
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 fi
9764 ac_res=`eval 'as_val=${'$as_ac_Header'}
9765                  $as_echo "$as_val"'`
9766                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9767 $as_echo "$ac_res" >&6; }
9768 as_val=`eval 'as_val=${'$as_ac_Header'}
9769                  $as_echo "$as_val"'`
9770    if test "x$as_val" = x""yes; then
9771   cat >>confdefs.h <<_ACEOF
9772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 _ACEOF
9774
9775 fi
9776
9777 done
9778
9779
9780
9781 ac_ext=cpp
9782 ac_cpp='$CXXCPP $CPPFLAGS'
9783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9786 if test -z "$CXX"; then
9787   if test -n "$CCC"; then
9788     CXX=$CCC
9789   else
9790     if test -n "$ac_tool_prefix"; then
9791   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9792   do
9793     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if test "${ac_cv_prog_CXX+set}" = set; then
9798   $as_echo_n "(cached) " >&6
9799 else
9800   if test -n "$CXX"; then
9801   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9802 else
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806   IFS=$as_save_IFS
9807   test -z "$as_dir" && as_dir=.
9808   for ac_exec_ext in '' $ac_executable_extensions; do
9809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9811     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812     break 2
9813   fi
9814 done
9815 done
9816 IFS=$as_save_IFS
9817
9818 fi
9819 fi
9820 CXX=$ac_cv_prog_CXX
9821 if test -n "$CXX"; then
9822   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9823 $as_echo "$CXX" >&6; }
9824 else
9825   { $as_echo "$as_me:$LINENO: result: no" >&5
9826 $as_echo "no" >&6; }
9827 fi
9828
9829
9830     test -n "$CXX" && break
9831   done
9832 fi
9833 if test -z "$CXX"; then
9834   ac_ct_CXX=$CXX
9835   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9836 do
9837   # Extract the first word of "$ac_prog", so it can be a program name with args.
9838 set dummy $ac_prog; ac_word=$2
9839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9842   $as_echo_n "(cached) " >&6
9843 else
9844   if test -n "$ac_ct_CXX"; then
9845   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9846 else
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9849 do
9850   IFS=$as_save_IFS
9851   test -z "$as_dir" && as_dir=.
9852   for ac_exec_ext in '' $ac_executable_extensions; do
9853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854     ac_cv_prog_ac_ct_CXX="$ac_prog"
9855     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9856     break 2
9857   fi
9858 done
9859 done
9860 IFS=$as_save_IFS
9861
9862 fi
9863 fi
9864 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9865 if test -n "$ac_ct_CXX"; then
9866   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9867 $as_echo "$ac_ct_CXX" >&6; }
9868 else
9869   { $as_echo "$as_me:$LINENO: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872
9873
9874   test -n "$ac_ct_CXX" && break
9875 done
9876
9877   if test "x$ac_ct_CXX" = x; then
9878     CXX="g++"
9879   else
9880     case $cross_compiling:$ac_tool_warned in
9881 yes:)
9882 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9884 ac_tool_warned=yes ;;
9885 esac
9886     CXX=$ac_ct_CXX
9887   fi
9888 fi
9889
9890   fi
9891 fi
9892 # Provide some information about the compiler.
9893 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9894 set X $ac_compile
9895 ac_compiler=$2
9896 { (ac_try="$ac_compiler --version >&5"
9897 case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9902 $as_echo "$ac_try_echo") >&5
9903   (eval "$ac_compiler --version >&5") 2>&5
9904   ac_status=$?
9905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }
9907 { (ac_try="$ac_compiler -v >&5"
9908 case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913 $as_echo "$ac_try_echo") >&5
9914   (eval "$ac_compiler -v >&5") 2>&5
9915   ac_status=$?
9916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); }
9918 { (ac_try="$ac_compiler -V >&5"
9919 case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9924 $as_echo "$ac_try_echo") >&5
9925   (eval "$ac_compiler -V >&5") 2>&5
9926   ac_status=$?
9927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }
9929
9930 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9931 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9932 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9933   $as_echo_n "(cached) " >&6
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941
9942 int
9943 main ()
9944 {
9945 #ifndef __GNUC__
9946        choke me
9947 #endif
9948
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (ac_try="$ac_compile"
9955 case "(($ac_try" in
9956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957   *) ac_try_echo=$ac_try;;
9958 esac
9959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9960 $as_echo "$ac_try_echo") >&5
9961   (eval "$ac_compile") 2>conftest.er1
9962   ac_status=$?
9963   grep -v '^ *+' conftest.er1 >conftest.err
9964   rm -f conftest.er1
9965   cat conftest.err >&5
9966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } && {
9968          test -z "$ac_cxx_werror_flag" ||
9969          test ! -s conftest.err
9970        } && test -s conftest.$ac_objext; then
9971   ac_compiler_gnu=yes
9972 else
9973   $as_echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976         ac_compiler_gnu=no
9977 fi
9978
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9981
9982 fi
9983 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9984 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9985 if test $ac_compiler_gnu = yes; then
9986   GXX=yes
9987 else
9988   GXX=
9989 fi
9990 ac_test_CXXFLAGS=${CXXFLAGS+set}
9991 ac_save_CXXFLAGS=$CXXFLAGS
9992 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9993 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9994 if test "${ac_cv_prog_cxx_g+set}" = set; then
9995   $as_echo_n "(cached) " >&6
9996 else
9997   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9998    ac_cxx_werror_flag=yes
9999    ac_cv_prog_cxx_g=no
10000    CXXFLAGS="-g"
10001    cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007
10008 int
10009 main ()
10010 {
10011
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (ac_try="$ac_compile"
10018 case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10023 $as_echo "$ac_try_echo") >&5
10024   (eval "$ac_compile") 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } && {
10031          test -z "$ac_cxx_werror_flag" ||
10032          test ! -s conftest.err
10033        } && test -s conftest.$ac_objext; then
10034   ac_cv_prog_cxx_g=yes
10035 else
10036   $as_echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039         CXXFLAGS=""
10040       cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046
10047 int
10048 main ()
10049 {
10050
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext
10056 if { (ac_try="$ac_compile"
10057 case "(($ac_try" in
10058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059   *) ac_try_echo=$ac_try;;
10060 esac
10061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10062 $as_echo "$ac_try_echo") >&5
10063   (eval "$ac_compile") 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } && {
10070          test -z "$ac_cxx_werror_flag" ||
10071          test ! -s conftest.err
10072        } && test -s conftest.$ac_objext; then
10073   :
10074 else
10075   $as_echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10079          CXXFLAGS="-g"
10080          cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h.  */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h.  */
10086
10087 int
10088 main ()
10089 {
10090
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext
10096 if { (ac_try="$ac_compile"
10097 case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103   (eval "$ac_compile") 2>conftest.er1
10104   ac_status=$?
10105   grep -v '^ *+' conftest.er1 >conftest.err
10106   rm -f conftest.er1
10107   cat conftest.err >&5
10108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } && {
10110          test -z "$ac_cxx_werror_flag" ||
10111          test ! -s conftest.err
10112        } && test -s conftest.$ac_objext; then
10113   ac_cv_prog_cxx_g=yes
10114 else
10115   $as_echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118
10119 fi
10120
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122 fi
10123
10124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10129 fi
10130 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10131 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10132 if test "$ac_test_CXXFLAGS" = set; then
10133   CXXFLAGS=$ac_save_CXXFLAGS
10134 elif test $ac_cv_prog_cxx_g = yes; then
10135   if test "$GXX" = yes; then
10136     CXXFLAGS="-g -O2"
10137   else
10138     CXXFLAGS="-g"
10139   fi
10140 else
10141   if test "$GXX" = yes; then
10142     CXXFLAGS="-O2"
10143   else
10144     CXXFLAGS=
10145   fi
10146 fi
10147 ac_ext=c
10148 ac_cpp='$CPP $CPPFLAGS'
10149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10152
10153 depcc="$CXX"  am_compiler_list=
10154
10155 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10156 $as_echo_n "checking dependency style of $depcc... " >&6; }
10157 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10158   $as_echo_n "(cached) " >&6
10159 else
10160   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10161   # We make a subdir and do the tests there.  Otherwise we can end up
10162   # making bogus files that we don't know about and never remove.  For
10163   # instance it was reported that on HP-UX the gcc test will end up
10164   # making a dummy file named `D' -- because `-MD' means `put the output
10165   # in D'.
10166   mkdir conftest.dir
10167   # Copy depcomp to subdir because otherwise we won't find it if we're
10168   # using a relative directory.
10169   cp "$am_depcomp" conftest.dir
10170   cd conftest.dir
10171   # We will build objects and dependencies in a subdirectory because
10172   # it helps to detect inapplicable dependency modes.  For instance
10173   # both Tru64's cc and ICC support -MD to output dependencies as a
10174   # side effect of compilation, but ICC will put the dependencies in
10175   # the current directory while Tru64 will put them in the object
10176   # directory.
10177   mkdir sub
10178
10179   am_cv_CXX_dependencies_compiler_type=none
10180   if test "$am_compiler_list" = ""; then
10181      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10182   fi
10183   am__universal=false
10184   case " $depcc " in #(
10185      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10186      esac
10187
10188   for depmode in $am_compiler_list; do
10189     # Setup a source with many dependencies, because some compilers
10190     # like to wrap large dependency lists on column 80 (with \), and
10191     # we should not choose a depcomp mode which is confused by this.
10192     #
10193     # We need to recreate these files for each test, as the compiler may
10194     # overwrite some of them when testing with obscure command lines.
10195     # This happens at least with the AIX C compiler.
10196     : > sub/conftest.c
10197     for i in 1 2 3 4 5 6; do
10198       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10199       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10200       # Solaris 8's {/usr,}/bin/sh.
10201       touch sub/conftst$i.h
10202     done
10203     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10204
10205     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10206     # mode.  It turns out that the SunPro C++ compiler does not properly
10207     # handle `-M -o', and we need to detect this.  Also, some Intel
10208     # versions had trouble with output in subdirs
10209     am__obj=sub/conftest.${OBJEXT-o}
10210     am__minus_obj="-o $am__obj"
10211     case $depmode in
10212     gcc)
10213       # This depmode causes a compiler race in universal mode.
10214       test "$am__universal" = false || continue
10215       ;;
10216     nosideeffect)
10217       # after this tag, mechanisms are not by side-effect, so they'll
10218       # only be used when explicitly requested
10219       if test "x$enable_dependency_tracking" = xyes; then
10220         continue
10221       else
10222         break
10223       fi
10224       ;;
10225     msvisualcpp | msvcmsys)
10226       # This compiler won't grok `-c -o', but also, the minuso test has
10227       # not run yet.  These depmodes are late enough in the game, and
10228       # so weak that their functioning should not be impacted.
10229       am__obj=conftest.${OBJEXT-o}
10230       am__minus_obj=
10231       ;;
10232     none) break ;;
10233     esac
10234     if depmode=$depmode \
10235        source=sub/conftest.c object=$am__obj \
10236        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10237        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10238          >/dev/null 2>conftest.err &&
10239        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10240        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10241        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10242        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10243       # icc doesn't choke on unknown options, it will just issue warnings
10244       # or remarks (even with -Werror).  So we grep stderr for any message
10245       # that says an option was ignored or not supported.
10246       # When given -MP, icc 7.0 and 7.1 complain thusly:
10247       #   icc: Command line warning: ignoring option '-M'; no argument required
10248       # The diagnosis changed in icc 8.0:
10249       #   icc: Command line remark: option '-MP' not supported
10250       if (grep 'ignoring option' conftest.err ||
10251           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10252         am_cv_CXX_dependencies_compiler_type=$depmode
10253         break
10254       fi
10255     fi
10256   done
10257
10258   cd ..
10259   rm -rf conftest.dir
10260 else
10261   am_cv_CXX_dependencies_compiler_type=none
10262 fi
10263
10264 fi
10265 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10266 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10267 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10268
10269  if
10270   test "x$enable_dependency_tracking" != xno \
10271   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10272   am__fastdepCXX_TRUE=
10273   am__fastdepCXX_FALSE='#'
10274 else
10275   am__fastdepCXX_TRUE='#'
10276   am__fastdepCXX_FALSE=
10277 fi
10278
10279
10280 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10281     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10282     (test "X$CXX" != "Xg++"))) ; then
10283   ac_ext=cpp
10284 ac_cpp='$CXXCPP $CPPFLAGS'
10285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10288 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10289 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10290 if test -z "$CXXCPP"; then
10291   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10292   $as_echo_n "(cached) " >&6
10293 else
10294       # Double quotes because CXXCPP needs to be expanded
10295     for CXXCPP in "$CXX -E" "/lib/cpp"
10296     do
10297       ac_preproc_ok=false
10298 for ac_cxx_preproc_warn_flag in '' yes
10299 do
10300   # Use a header file that comes with gcc, so configuring glibc
10301   # with a fresh cross-compiler works.
10302   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303   # <limits.h> exists even on freestanding compilers.
10304   # On the NeXT, cc -E runs the code through the compiler's parser,
10305   # not just through cpp. "Syntax error" is here to catch this case.
10306   cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312 #ifdef __STDC__
10313 # include <limits.h>
10314 #else
10315 # include <assert.h>
10316 #endif
10317                      Syntax error
10318 _ACEOF
10319 if { (ac_try="$ac_cpp conftest.$ac_ext"
10320 case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10325 $as_echo "$ac_try_echo") >&5
10326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10327   ac_status=$?
10328   grep -v '^ *+' conftest.er1 >conftest.err
10329   rm -f conftest.er1
10330   cat conftest.err >&5
10331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } >/dev/null && {
10333          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10334          test ! -s conftest.err
10335        }; then
10336   :
10337 else
10338   $as_echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341   # Broken: fails on valid input.
10342 continue
10343 fi
10344
10345 rm -f conftest.err conftest.$ac_ext
10346
10347   # OK, works on sane cases.  Now check whether nonexistent headers
10348   # can be detected and how.
10349   cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h.  */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h.  */
10355 #include <ac_nonexistent.h>
10356 _ACEOF
10357 if { (ac_try="$ac_cpp conftest.$ac_ext"
10358 case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10363 $as_echo "$ac_try_echo") >&5
10364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10365   ac_status=$?
10366   grep -v '^ *+' conftest.er1 >conftest.err
10367   rm -f conftest.er1
10368   cat conftest.err >&5
10369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } >/dev/null && {
10371          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10372          test ! -s conftest.err
10373        }; then
10374   # Broken: success on invalid input.
10375 continue
10376 else
10377   $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380   # Passes both tests.
10381 ac_preproc_ok=:
10382 break
10383 fi
10384
10385 rm -f conftest.err conftest.$ac_ext
10386
10387 done
10388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10389 rm -f conftest.err conftest.$ac_ext
10390 if $ac_preproc_ok; then
10391   break
10392 fi
10393
10394     done
10395     ac_cv_prog_CXXCPP=$CXXCPP
10396
10397 fi
10398   CXXCPP=$ac_cv_prog_CXXCPP
10399 else
10400   ac_cv_prog_CXXCPP=$CXXCPP
10401 fi
10402 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10403 $as_echo "$CXXCPP" >&6; }
10404 ac_preproc_ok=false
10405 for ac_cxx_preproc_warn_flag in '' yes
10406 do
10407   # Use a header file that comes with gcc, so configuring glibc
10408   # with a fresh cross-compiler works.
10409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410   # <limits.h> exists even on freestanding compilers.
10411   # On the NeXT, cc -E runs the code through the compiler's parser,
10412   # not just through cpp. "Syntax error" is here to catch this case.
10413   cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419 #ifdef __STDC__
10420 # include <limits.h>
10421 #else
10422 # include <assert.h>
10423 #endif
10424                      Syntax error
10425 _ACEOF
10426 if { (ac_try="$ac_cpp conftest.$ac_ext"
10427 case "(($ac_try" in
10428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429   *) ac_try_echo=$ac_try;;
10430 esac
10431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10432 $as_echo "$ac_try_echo") >&5
10433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10434   ac_status=$?
10435   grep -v '^ *+' conftest.er1 >conftest.err
10436   rm -f conftest.er1
10437   cat conftest.err >&5
10438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } >/dev/null && {
10440          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10441          test ! -s conftest.err
10442        }; then
10443   :
10444 else
10445   $as_echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448   # Broken: fails on valid input.
10449 continue
10450 fi
10451
10452 rm -f conftest.err conftest.$ac_ext
10453
10454   # OK, works on sane cases.  Now check whether nonexistent headers
10455   # can be detected and how.
10456   cat >conftest.$ac_ext <<_ACEOF
10457 /* confdefs.h.  */
10458 _ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h.  */
10462 #include <ac_nonexistent.h>
10463 _ACEOF
10464 if { (ac_try="$ac_cpp conftest.$ac_ext"
10465 case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10472   ac_status=$?
10473   grep -v '^ *+' conftest.er1 >conftest.err
10474   rm -f conftest.er1
10475   cat conftest.err >&5
10476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } >/dev/null && {
10478          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10479          test ! -s conftest.err
10480        }; then
10481   # Broken: success on invalid input.
10482 continue
10483 else
10484   $as_echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487   # Passes both tests.
10488 ac_preproc_ok=:
10489 break
10490 fi
10491
10492 rm -f conftest.err conftest.$ac_ext
10493
10494 done
10495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10496 rm -f conftest.err conftest.$ac_ext
10497 if $ac_preproc_ok; then
10498   :
10499 else
10500   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10502 _lt_caught_CXX_error=yes; }
10503 fi
10504
10505 ac_ext=c
10506 ac_cpp='$CPP $CPPFLAGS'
10507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10510
10511 else
10512   _lt_caught_CXX_error=yes
10513 fi
10514
10515
10516
10517
10518
10519 # Set options
10520
10521
10522
10523         enable_dlopen=no
10524
10525
10526   enable_win32_dll=no
10527
10528
10529             # Check whether --enable-shared was given.
10530 if test "${enable_shared+set}" = set; then
10531   enableval=$enable_shared; p=${PACKAGE-default}
10532     case $enableval in
10533     yes) enable_shared=yes ;;
10534     no) enable_shared=no ;;
10535     *)
10536       enable_shared=no
10537       # Look at the argument we got.  We use all the common list separators.
10538       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10539       for pkg in $enableval; do
10540         IFS="$lt_save_ifs"
10541         if test "X$pkg" = "X$p"; then
10542           enable_shared=yes
10543         fi
10544       done
10545       IFS="$lt_save_ifs"
10546       ;;
10547     esac
10548 else
10549   enable_shared=yes
10550 fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560   # Check whether --enable-static was given.
10561 if test "${enable_static+set}" = set; then
10562   enableval=$enable_static; p=${PACKAGE-default}
10563     case $enableval in
10564     yes) enable_static=yes ;;
10565     no) enable_static=no ;;
10566     *)
10567      enable_static=no
10568       # Look at the argument we got.  We use all the common list separators.
10569       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10570       for pkg in $enableval; do
10571         IFS="$lt_save_ifs"
10572         if test "X$pkg" = "X$p"; then
10573           enable_static=yes
10574         fi
10575       done
10576       IFS="$lt_save_ifs"
10577       ;;
10578     esac
10579 else
10580   enable_static=yes
10581 fi
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592 # Check whether --with-pic was given.
10593 if test "${with_pic+set}" = set; then
10594   withval=$with_pic; pic_mode="$withval"
10595 else
10596   pic_mode=default
10597 fi
10598
10599
10600 test -z "$pic_mode" && pic_mode=default
10601
10602
10603
10604
10605
10606
10607
10608   # Check whether --enable-fast-install was given.
10609 if test "${enable_fast_install+set}" = set; then
10610   enableval=$enable_fast_install; p=${PACKAGE-default}
10611     case $enableval in
10612     yes) enable_fast_install=yes ;;
10613     no) enable_fast_install=no ;;
10614     *)
10615       enable_fast_install=no
10616       # Look at the argument we got.  We use all the common list separators.
10617       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10618       for pkg in $enableval; do
10619         IFS="$lt_save_ifs"
10620         if test "X$pkg" = "X$p"; then
10621           enable_fast_install=yes
10622         fi
10623       done
10624       IFS="$lt_save_ifs"
10625       ;;
10626     esac
10627 else
10628   enable_fast_install=yes
10629 fi
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641 # This can be used to rebuild libtool when needed
10642 LIBTOOL_DEPS="$ltmain"
10643
10644 # Always use our own libtool.
10645 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671 test -z "$LN_S" && LN_S="ln -s"
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686 if test -n "${ZSH_VERSION+set}" ; then
10687    setopt NO_GLOB_SUBST
10688 fi
10689
10690 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
10691 $as_echo_n "checking for objdir... " >&6; }
10692 if test "${lt_cv_objdir+set}" = set; then
10693   $as_echo_n "(cached) " >&6
10694 else
10695   rm -f .libs 2>/dev/null
10696 mkdir .libs 2>/dev/null
10697 if test -d .libs; then
10698   lt_cv_objdir=.libs
10699 else
10700   # MS-DOS does not allow filenames that begin with a dot.
10701   lt_cv_objdir=_libs
10702 fi
10703 rmdir .libs 2>/dev/null
10704 fi
10705 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10706 $as_echo "$lt_cv_objdir" >&6; }
10707 objdir=$lt_cv_objdir
10708
10709
10710
10711
10712
10713 cat >>confdefs.h <<_ACEOF
10714 #define LT_OBJDIR "$lt_cv_objdir/"
10715 _ACEOF
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733 case $host_os in
10734 aix3*)
10735   # AIX sometimes has problems with the GCC collect2 program.  For some
10736   # reason, if we set the COLLECT_NAMES environment variable, the problems
10737   # vanish in a puff of smoke.
10738   if test "X${COLLECT_NAMES+set}" != Xset; then
10739     COLLECT_NAMES=
10740     export COLLECT_NAMES
10741   fi
10742   ;;
10743 esac
10744
10745 # Sed substitution that helps us do robust quoting.  It backslashifies
10746 # metacharacters that are still active within double-quoted strings.
10747 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10748
10749 # Same as above, but do not quote variable references.
10750 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10751
10752 # Sed substitution to delay expansion of an escaped shell variable in a
10753 # double_quote_subst'ed string.
10754 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10755
10756 # Sed substitution to delay expansion of an escaped single quote.
10757 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10758
10759 # Sed substitution to avoid accidental globbing in evaled expressions
10760 no_glob_subst='s/\*/\\\*/g'
10761
10762 # Global variables:
10763 ofile=libtool
10764 can_build_shared=yes
10765
10766 # All known linkers require a `.a' archive for static linking (except MSVC,
10767 # which needs '.lib').
10768 libext=a
10769
10770 with_gnu_ld="$lt_cv_prog_gnu_ld"
10771
10772 old_CC="$CC"
10773 old_CFLAGS="$CFLAGS"
10774
10775 # Set sane defaults for various variables
10776 test -z "$CC" && CC=cc
10777 test -z "$LTCC" && LTCC=$CC
10778 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10779 test -z "$LD" && LD=ld
10780 test -z "$ac_objext" && ac_objext=o
10781
10782 for cc_temp in $compiler""; do
10783   case $cc_temp in
10784     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10785     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10786     \-*) ;;
10787     *) break;;
10788   esac
10789 done
10790 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10791
10792
10793 # Only perform the check for file, if the check method requires it
10794 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10795 case $deplibs_check_method in
10796 file_magic*)
10797   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10798     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10799 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10800 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10801   $as_echo_n "(cached) " >&6
10802 else
10803   case $MAGIC_CMD in
10804 [\\/*] |  ?:[\\/]*)
10805   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10806   ;;
10807 *)
10808   lt_save_MAGIC_CMD="$MAGIC_CMD"
10809   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10810   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10811   for ac_dir in $ac_dummy; do
10812     IFS="$lt_save_ifs"
10813     test -z "$ac_dir" && ac_dir=.
10814     if test -f $ac_dir/${ac_tool_prefix}file; then
10815       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10816       if test -n "$file_magic_test_file"; then
10817         case $deplibs_check_method in
10818         "file_magic "*)
10819           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10820           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10821           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10822             $EGREP "$file_magic_regex" > /dev/null; then
10823             :
10824           else
10825             cat <<_LT_EOF 1>&2
10826
10827 *** Warning: the command libtool uses to detect shared libraries,
10828 *** $file_magic_cmd, produces output that libtool cannot recognize.
10829 *** The result is that libtool may fail to recognize shared libraries
10830 *** as such.  This will affect the creation of libtool libraries that
10831 *** depend on shared libraries, but programs linked with such libtool
10832 *** libraries will work regardless of this problem.  Nevertheless, you
10833 *** may want to report the problem to your system manager and/or to
10834 *** bug-libtool@gnu.org
10835
10836 _LT_EOF
10837           fi ;;
10838         esac
10839       fi
10840       break
10841     fi
10842   done
10843   IFS="$lt_save_ifs"
10844   MAGIC_CMD="$lt_save_MAGIC_CMD"
10845   ;;
10846 esac
10847 fi
10848
10849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10850 if test -n "$MAGIC_CMD"; then
10851   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10852 $as_echo "$MAGIC_CMD" >&6; }
10853 else
10854   { $as_echo "$as_me:$LINENO: result: no" >&5
10855 $as_echo "no" >&6; }
10856 fi
10857
10858
10859
10860
10861
10862 if test -z "$lt_cv_path_MAGIC_CMD"; then
10863   if test -n "$ac_tool_prefix"; then
10864     { $as_echo "$as_me:$LINENO: checking for file" >&5
10865 $as_echo_n "checking for file... " >&6; }
10866 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10867   $as_echo_n "(cached) " >&6
10868 else
10869   case $MAGIC_CMD in
10870 [\\/*] |  ?:[\\/]*)
10871   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10872   ;;
10873 *)
10874   lt_save_MAGIC_CMD="$MAGIC_CMD"
10875   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10876   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10877   for ac_dir in $ac_dummy; do
10878     IFS="$lt_save_ifs"
10879     test -z "$ac_dir" && ac_dir=.
10880     if test -f $ac_dir/file; then
10881       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10882       if test -n "$file_magic_test_file"; then
10883         case $deplibs_check_method in
10884         "file_magic "*)
10885           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10886           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10887           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10888             $EGREP "$file_magic_regex" > /dev/null; then
10889             :
10890           else
10891             cat <<_LT_EOF 1>&2
10892
10893 *** Warning: the command libtool uses to detect shared libraries,
10894 *** $file_magic_cmd, produces output that libtool cannot recognize.
10895 *** The result is that libtool may fail to recognize shared libraries
10896 *** as such.  This will affect the creation of libtool libraries that
10897 *** depend on shared libraries, but programs linked with such libtool
10898 *** libraries will work regardless of this problem.  Nevertheless, you
10899 *** may want to report the problem to your system manager and/or to
10900 *** bug-libtool@gnu.org
10901
10902 _LT_EOF
10903           fi ;;
10904         esac
10905       fi
10906       break
10907     fi
10908   done
10909   IFS="$lt_save_ifs"
10910   MAGIC_CMD="$lt_save_MAGIC_CMD"
10911   ;;
10912 esac
10913 fi
10914
10915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10916 if test -n "$MAGIC_CMD"; then
10917   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10918 $as_echo "$MAGIC_CMD" >&6; }
10919 else
10920   { $as_echo "$as_me:$LINENO: result: no" >&5
10921 $as_echo "no" >&6; }
10922 fi
10923
10924
10925   else
10926     MAGIC_CMD=:
10927   fi
10928 fi
10929
10930   fi
10931   ;;
10932 esac
10933
10934 # Use C for the default configuration in the libtool script
10935
10936 lt_save_CC="$CC"
10937 ac_ext=c
10938 ac_cpp='$CPP $CPPFLAGS'
10939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942
10943
10944 # Source file extension for C test sources.
10945 ac_ext=c
10946
10947 # Object file extension for compiled C test sources.
10948 objext=o
10949 objext=$objext
10950
10951 # Code to be used in simple compile tests
10952 lt_simple_compile_test_code="int some_variable = 0;"
10953
10954 # Code to be used in simple link tests
10955 lt_simple_link_test_code='int main(){return(0);}'
10956
10957
10958
10959
10960
10961
10962
10963 # If no C compiler was specified, use CC.
10964 LTCC=${LTCC-"$CC"}
10965
10966 # If no C compiler flags were specified, use CFLAGS.
10967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10968
10969 # Allow CC to be a program name with arguments.
10970 compiler=$CC
10971
10972 # Save the default compiler, since it gets overwritten when the other
10973 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10974 compiler_DEFAULT=$CC
10975
10976 # save warnings/boilerplate of simple test code
10977 ac_outfile=conftest.$ac_objext
10978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10980 _lt_compiler_boilerplate=`cat conftest.err`
10981 $RM conftest*
10982
10983 ac_outfile=conftest.$ac_objext
10984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10986 _lt_linker_boilerplate=`cat conftest.err`
10987 $RM -r conftest*
10988
10989
10990 if test -n "$compiler"; then
10991
10992 lt_prog_compiler_no_builtin_flag=
10993
10994 if test "$GCC" = yes; then
10995   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10996
10997   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10998 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10999 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11000   $as_echo_n "(cached) " >&6
11001 else
11002   lt_cv_prog_compiler_rtti_exceptions=no
11003    ac_outfile=conftest.$ac_objext
11004    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11005    lt_compiler_flag="-fno-rtti -fno-exceptions"
11006    # Insert the option either (1) after the last *FLAGS variable, or
11007    # (2) before a word containing "conftest.", or (3) at the end.
11008    # Note that $ac_compile itself does not contain backslashes and begins
11009    # with a dollar sign (not a hyphen), so the echo should work correctly.
11010    # The option is referenced via a variable to avoid confusing sed.
11011    lt_compile=`echo "$ac_compile" | $SED \
11012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11014    -e 's:$: $lt_compiler_flag:'`
11015    (eval echo "\"\$as_me:11015: $lt_compile\"" >&5)
11016    (eval "$lt_compile" 2>conftest.err)
11017    ac_status=$?
11018    cat conftest.err >&5
11019    echo "$as_me:11019: \$? = $ac_status" >&5
11020    if (exit $ac_status) && test -s "$ac_outfile"; then
11021      # The compiler can only warn and ignore the option if not recognized
11022      # So say no if there are warnings other than the usual output.
11023      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11024      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11025      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11026        lt_cv_prog_compiler_rtti_exceptions=yes
11027      fi
11028    fi
11029    $RM conftest*
11030
11031 fi
11032 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11033 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11034
11035 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11036     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11037 else
11038     :
11039 fi
11040
11041 fi
11042
11043
11044
11045
11046
11047
11048   lt_prog_compiler_wl=
11049 lt_prog_compiler_pic=
11050 lt_prog_compiler_static=
11051
11052 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11053 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11054
11055   if test "$GCC" = yes; then
11056     lt_prog_compiler_wl='-Wl,'
11057     lt_prog_compiler_static='-static'
11058
11059     case $host_os in
11060       aix*)
11061       # All AIX code is PIC.
11062       if test "$host_cpu" = ia64; then
11063         # AIX 5 now supports IA64 processor
11064         lt_prog_compiler_static='-Bstatic'
11065       fi
11066       ;;
11067
11068     amigaos*)
11069       case $host_cpu in
11070       powerpc)
11071             # see comment about AmigaOS4 .so support
11072             lt_prog_compiler_pic='-fPIC'
11073         ;;
11074       m68k)
11075             # FIXME: we need at least 68020 code to build shared libraries, but
11076             # adding the `-m68020' flag to GCC prevents building anything better,
11077             # like `-m68040'.
11078             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11079         ;;
11080       esac
11081       ;;
11082
11083     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11084       # PIC is the default for these OSes.
11085       ;;
11086
11087     mingw* | cygwin* | pw32* | os2* | cegcc*)
11088       # This hack is so that the source file can tell whether it is being
11089       # built for inclusion in a dll (and should export symbols for example).
11090       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11091       # (--disable-auto-import) libraries
11092       lt_prog_compiler_pic='-DDLL_EXPORT'
11093       ;;
11094
11095     darwin* | rhapsody*)
11096       # PIC is the default on this platform
11097       # Common symbols not allowed in MH_DYLIB files
11098       lt_prog_compiler_pic='-fno-common'
11099       ;;
11100
11101     hpux*)
11102       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11103       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11104       # sets the default TLS model and affects inlining.
11105       case $host_cpu in
11106       hppa*64*)
11107         # +Z the default
11108         ;;
11109       *)
11110         lt_prog_compiler_pic='-fPIC'
11111         ;;
11112       esac
11113       ;;
11114
11115     interix[3-9]*)
11116       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11117       # Instead, we relocate shared libraries at runtime.
11118       ;;
11119
11120     msdosdjgpp*)
11121       # Just because we use GCC doesn't mean we suddenly get shared libraries
11122       # on systems that don't support them.
11123       lt_prog_compiler_can_build_shared=no
11124       enable_shared=no
11125       ;;
11126
11127     *nto* | *qnx*)
11128       # QNX uses GNU C++, but need to define -shared option too, otherwise
11129       # it will coredump.
11130       lt_prog_compiler_pic='-fPIC -shared'
11131       ;;
11132
11133     sysv4*MP*)
11134       if test -d /usr/nec; then
11135         lt_prog_compiler_pic=-Kconform_pic
11136       fi
11137       ;;
11138
11139     *)
11140       lt_prog_compiler_pic='-fPIC'
11141       ;;
11142     esac
11143   else
11144     # PORTME Check for flag to pass linker flags through the system compiler.
11145     case $host_os in
11146     aix*)
11147       lt_prog_compiler_wl='-Wl,'
11148       if test "$host_cpu" = ia64; then
11149         # AIX 5 now supports IA64 processor
11150         lt_prog_compiler_static='-Bstatic'
11151       else
11152         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11153       fi
11154       ;;
11155
11156     mingw* | cygwin* | pw32* | os2* | cegcc*)
11157       # This hack is so that the source file can tell whether it is being
11158       # built for inclusion in a dll (and should export symbols for example).
11159       lt_prog_compiler_pic='-DDLL_EXPORT'
11160       ;;
11161
11162     hpux9* | hpux10* | hpux11*)
11163       lt_prog_compiler_wl='-Wl,'
11164       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11165       # not for PA HP-UX.
11166       case $host_cpu in
11167       hppa*64*|ia64*)
11168         # +Z the default
11169         ;;
11170       *)
11171         lt_prog_compiler_pic='+Z'
11172         ;;
11173       esac
11174       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11175       lt_prog_compiler_static='${wl}-a ${wl}archive'
11176       ;;
11177
11178     irix5* | irix6* | nonstopux*)
11179       lt_prog_compiler_wl='-Wl,'
11180       # PIC (with -KPIC) is the default.
11181       lt_prog_compiler_static='-non_shared'
11182       ;;
11183
11184     linux* | k*bsd*-gnu)
11185       case $cc_basename in
11186       # old Intel for x86_64 which still supported -KPIC.
11187       ecc*)
11188         lt_prog_compiler_wl='-Wl,'
11189         lt_prog_compiler_pic='-KPIC'
11190         lt_prog_compiler_static='-static'
11191         ;;
11192       # icc used to be incompatible with GCC.
11193       # ICC 10 doesn't accept -KPIC any more.
11194       icc* | ifort*)
11195         lt_prog_compiler_wl='-Wl,'
11196         lt_prog_compiler_pic='-fPIC'
11197         lt_prog_compiler_static='-static'
11198         ;;
11199       # Lahey Fortran 8.1.
11200       lf95*)
11201         lt_prog_compiler_wl='-Wl,'
11202         lt_prog_compiler_pic='--shared'
11203         lt_prog_compiler_static='--static'
11204         ;;
11205       pgcc* | pgf77* | pgf90* | pgf95*)
11206         # Portland Group compilers (*not* the Pentium gcc compiler,
11207         # which looks to be a dead project)
11208         lt_prog_compiler_wl='-Wl,'
11209         lt_prog_compiler_pic='-fpic'
11210         lt_prog_compiler_static='-Bstatic'
11211         ;;
11212       ccc*)
11213         lt_prog_compiler_wl='-Wl,'
11214         # All Alpha code is PIC.
11215         lt_prog_compiler_static='-non_shared'
11216         ;;
11217       xl*)
11218         # IBM XL C 8.0/Fortran 10.1 on PPC
11219         lt_prog_compiler_wl='-Wl,'
11220         lt_prog_compiler_pic='-qpic'
11221         lt_prog_compiler_static='-qstaticlink'
11222         ;;
11223       *)
11224         case `$CC -V 2>&1 | sed 5q` in
11225         *Sun\ C*)
11226           # Sun C 5.9
11227           lt_prog_compiler_pic='-KPIC'
11228           lt_prog_compiler_static='-Bstatic'
11229           lt_prog_compiler_wl='-Wl,'
11230           ;;
11231         *Sun\ F*)
11232           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11233           lt_prog_compiler_pic='-KPIC'
11234           lt_prog_compiler_static='-Bstatic'
11235           lt_prog_compiler_wl=''
11236           ;;
11237         esac
11238         ;;
11239       esac
11240       ;;
11241
11242     newsos6)
11243       lt_prog_compiler_pic='-KPIC'
11244       lt_prog_compiler_static='-Bstatic'
11245       ;;
11246
11247     *nto* | *qnx*)
11248       # QNX uses GNU C++, but need to define -shared option too, otherwise
11249       # it will coredump.
11250       lt_prog_compiler_pic='-fPIC -shared'
11251       ;;
11252
11253     osf3* | osf4* | osf5*)
11254       lt_prog_compiler_wl='-Wl,'
11255       # All OSF/1 code is PIC.
11256       lt_prog_compiler_static='-non_shared'
11257       ;;
11258
11259     rdos*)
11260       lt_prog_compiler_static='-non_shared'
11261       ;;
11262
11263     solaris*)
11264       lt_prog_compiler_pic='-KPIC'
11265       lt_prog_compiler_static='-Bstatic'
11266       case $cc_basename in
11267       f77* | f90* | f95*)
11268         lt_prog_compiler_wl='-Qoption ld ';;
11269       *)
11270         lt_prog_compiler_wl='-Wl,';;
11271       esac
11272       ;;
11273
11274     sunos4*)
11275       lt_prog_compiler_wl='-Qoption ld '
11276       lt_prog_compiler_pic='-PIC'
11277       lt_prog_compiler_static='-Bstatic'
11278       ;;
11279
11280     sysv4 | sysv4.2uw2* | sysv4.3*)
11281       lt_prog_compiler_wl='-Wl,'
11282       lt_prog_compiler_pic='-KPIC'
11283       lt_prog_compiler_static='-Bstatic'
11284       ;;
11285
11286     sysv4*MP*)
11287       if test -d /usr/nec ;then
11288         lt_prog_compiler_pic='-Kconform_pic'
11289         lt_prog_compiler_static='-Bstatic'
11290       fi
11291       ;;
11292
11293     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11294       lt_prog_compiler_wl='-Wl,'
11295       lt_prog_compiler_pic='-KPIC'
11296       lt_prog_compiler_static='-Bstatic'
11297       ;;
11298
11299     unicos*)
11300       lt_prog_compiler_wl='-Wl,'
11301       lt_prog_compiler_can_build_shared=no
11302       ;;
11303
11304     uts4*)
11305       lt_prog_compiler_pic='-pic'
11306       lt_prog_compiler_static='-Bstatic'
11307       ;;
11308
11309     *)
11310       lt_prog_compiler_can_build_shared=no
11311       ;;
11312     esac
11313   fi
11314
11315 case $host_os in
11316   # For platforms which do not support PIC, -DPIC is meaningless:
11317   *djgpp*)
11318     lt_prog_compiler_pic=
11319     ;;
11320   *)
11321     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11322     ;;
11323 esac
11324 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11325 $as_echo "$lt_prog_compiler_pic" >&6; }
11326
11327
11328
11329
11330
11331
11332 #
11333 # Check to make sure the PIC flag actually works.
11334 #
11335 if test -n "$lt_prog_compiler_pic"; then
11336   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11337 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11338 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11339   $as_echo_n "(cached) " >&6
11340 else
11341   lt_cv_prog_compiler_pic_works=no
11342    ac_outfile=conftest.$ac_objext
11343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11344    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11345    # Insert the option either (1) after the last *FLAGS variable, or
11346    # (2) before a word containing "conftest.", or (3) at the end.
11347    # Note that $ac_compile itself does not contain backslashes and begins
11348    # with a dollar sign (not a hyphen), so the echo should work correctly.
11349    # The option is referenced via a variable to avoid confusing sed.
11350    lt_compile=`echo "$ac_compile" | $SED \
11351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11353    -e 's:$: $lt_compiler_flag:'`
11354    (eval echo "\"\$as_me:11354: $lt_compile\"" >&5)
11355    (eval "$lt_compile" 2>conftest.err)
11356    ac_status=$?
11357    cat conftest.err >&5
11358    echo "$as_me:11358: \$? = $ac_status" >&5
11359    if (exit $ac_status) && test -s "$ac_outfile"; then
11360      # The compiler can only warn and ignore the option if not recognized
11361      # So say no if there are warnings other than the usual output.
11362      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11363      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11364      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11365        lt_cv_prog_compiler_pic_works=yes
11366      fi
11367    fi
11368    $RM conftest*
11369
11370 fi
11371 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11372 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11373
11374 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11375     case $lt_prog_compiler_pic in
11376      "" | " "*) ;;
11377      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11378      esac
11379 else
11380     lt_prog_compiler_pic=
11381      lt_prog_compiler_can_build_shared=no
11382 fi
11383
11384 fi
11385
11386
11387
11388
11389
11390
11391 #
11392 # Check to make sure the static flag actually works.
11393 #
11394 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11395 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11396 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11397 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11398   $as_echo_n "(cached) " >&6
11399 else
11400   lt_cv_prog_compiler_static_works=no
11401    save_LDFLAGS="$LDFLAGS"
11402    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11403    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11404    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11405      # The linker can only warn and ignore the option if not recognized
11406      # So say no if there are warnings
11407      if test -s conftest.err; then
11408        # Append any errors to the config.log.
11409        cat conftest.err 1>&5
11410        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11411        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11412        if diff conftest.exp conftest.er2 >/dev/null; then
11413          lt_cv_prog_compiler_static_works=yes
11414        fi
11415      else
11416        lt_cv_prog_compiler_static_works=yes
11417      fi
11418    fi
11419    $RM -r conftest*
11420    LDFLAGS="$save_LDFLAGS"
11421
11422 fi
11423 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11424 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11425
11426 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11427     :
11428 else
11429     lt_prog_compiler_static=
11430 fi
11431
11432
11433
11434
11435
11436
11437
11438   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11440 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11441   $as_echo_n "(cached) " >&6
11442 else
11443   lt_cv_prog_compiler_c_o=no
11444    $RM -r conftest 2>/dev/null
11445    mkdir conftest
11446    cd conftest
11447    mkdir out
11448    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11449
11450    lt_compiler_flag="-o out/conftest2.$ac_objext"
11451    # Insert the option either (1) after the last *FLAGS variable, or
11452    # (2) before a word containing "conftest.", or (3) at the end.
11453    # Note that $ac_compile itself does not contain backslashes and begins
11454    # with a dollar sign (not a hyphen), so the echo should work correctly.
11455    lt_compile=`echo "$ac_compile" | $SED \
11456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11458    -e 's:$: $lt_compiler_flag:'`
11459    (eval echo "\"\$as_me:11459: $lt_compile\"" >&5)
11460    (eval "$lt_compile" 2>out/conftest.err)
11461    ac_status=$?
11462    cat out/conftest.err >&5
11463    echo "$as_me:11463: \$? = $ac_status" >&5
11464    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11465    then
11466      # The compiler can only warn and ignore the option if not recognized
11467      # So say no if there are warnings
11468      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11469      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11470      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11471        lt_cv_prog_compiler_c_o=yes
11472      fi
11473    fi
11474    chmod u+w . 2>&5
11475    $RM conftest*
11476    # SGI C++ compiler will create directory out/ii_files/ for
11477    # template instantiation
11478    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11479    $RM out/* && rmdir out
11480    cd ..
11481    $RM -r conftest
11482    $RM conftest*
11483
11484 fi
11485 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11486 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11487
11488
11489
11490
11491
11492
11493   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11495 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11496   $as_echo_n "(cached) " >&6
11497 else
11498   lt_cv_prog_compiler_c_o=no
11499    $RM -r conftest 2>/dev/null
11500    mkdir conftest
11501    cd conftest
11502    mkdir out
11503    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11504
11505    lt_compiler_flag="-o out/conftest2.$ac_objext"
11506    # Insert the option either (1) after the last *FLAGS variable, or
11507    # (2) before a word containing "conftest.", or (3) at the end.
11508    # Note that $ac_compile itself does not contain backslashes and begins
11509    # with a dollar sign (not a hyphen), so the echo should work correctly.
11510    lt_compile=`echo "$ac_compile" | $SED \
11511    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11513    -e 's:$: $lt_compiler_flag:'`
11514    (eval echo "\"\$as_me:11514: $lt_compile\"" >&5)
11515    (eval "$lt_compile" 2>out/conftest.err)
11516    ac_status=$?
11517    cat out/conftest.err >&5
11518    echo "$as_me:11518: \$? = $ac_status" >&5
11519    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11520    then
11521      # The compiler can only warn and ignore the option if not recognized
11522      # So say no if there are warnings
11523      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11524      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11525      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11526        lt_cv_prog_compiler_c_o=yes
11527      fi
11528    fi
11529    chmod u+w . 2>&5
11530    $RM conftest*
11531    # SGI C++ compiler will create directory out/ii_files/ for
11532    # template instantiation
11533    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11534    $RM out/* && rmdir out
11535    cd ..
11536    $RM -r conftest
11537    $RM conftest*
11538
11539 fi
11540 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11541 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11542
11543
11544
11545
11546 hard_links="nottested"
11547 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11548   # do not overwrite the value of need_locks provided by the user
11549   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11550 $as_echo_n "checking if we can lock with hard links... " >&6; }
11551   hard_links=yes
11552   $RM conftest*
11553   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11554   touch conftest.a
11555   ln conftest.a conftest.b 2>&5 || hard_links=no
11556   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11557   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11558 $as_echo "$hard_links" >&6; }
11559   if test "$hard_links" = no; then
11560     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11561 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11562     need_locks=warn
11563   fi
11564 else
11565   need_locks=no
11566 fi
11567
11568
11569
11570
11571
11572
11573   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11575
11576   runpath_var=
11577   allow_undefined_flag=
11578   always_export_symbols=no
11579   archive_cmds=
11580   archive_expsym_cmds=
11581   compiler_needs_object=no
11582   enable_shared_with_static_runtimes=no
11583   export_dynamic_flag_spec=
11584   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11585   hardcode_automatic=no
11586   hardcode_direct=no
11587   hardcode_direct_absolute=no
11588   hardcode_libdir_flag_spec=
11589   hardcode_libdir_flag_spec_ld=
11590   hardcode_libdir_separator=
11591   hardcode_minus_L=no
11592   hardcode_shlibpath_var=unsupported
11593   inherit_rpath=no
11594   link_all_deplibs=unknown
11595   module_cmds=
11596   module_expsym_cmds=
11597   old_archive_from_new_cmds=
11598   old_archive_from_expsyms_cmds=
11599   thread_safe_flag_spec=
11600   whole_archive_flag_spec=
11601   # include_expsyms should be a list of space-separated symbols to be *always*
11602   # included in the symbol list
11603   include_expsyms=
11604   # exclude_expsyms can be an extended regexp of symbols to exclude
11605   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11606   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11607   # as well as any symbol that contains `d'.
11608   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11609   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11610   # platforms (ab)use it in PIC code, but their linkers get confused if
11611   # the symbol is explicitly referenced.  Since portable code cannot
11612   # rely on this symbol name, it's probably fine to never include it in
11613   # preloaded symbol tables.
11614   # Exclude shared library initialization/finalization symbols.
11615   extract_expsyms_cmds=
11616
11617   case $host_os in
11618   cygwin* | mingw* | pw32* | cegcc*)
11619     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11620     # When not using gcc, we currently assume that we are using
11621     # Microsoft Visual C++.
11622     if test "$GCC" != yes; then
11623       with_gnu_ld=no
11624     fi
11625     ;;
11626   interix*)
11627     # we just hope/assume this is gcc and not c89 (= MSVC++)
11628     with_gnu_ld=yes
11629     ;;
11630   openbsd*)
11631     with_gnu_ld=no
11632     ;;
11633   esac
11634
11635   ld_shlibs=yes
11636   if test "$with_gnu_ld" = yes; then
11637     # If archive_cmds runs LD, not CC, wlarc should be empty
11638     wlarc='${wl}'
11639
11640     # Set some defaults for GNU ld with shared library support. These
11641     # are reset later if shared libraries are not supported. Putting them
11642     # here allows them to be overridden if necessary.
11643     runpath_var=LD_RUN_PATH
11644     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11645     export_dynamic_flag_spec='${wl}--export-dynamic'
11646     # ancient GNU ld didn't support --whole-archive et. al.
11647     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11648       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11649     else
11650       whole_archive_flag_spec=
11651     fi
11652     supports_anon_versioning=no
11653     case `$LD -v 2>&1` in
11654       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11655       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11656       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11657       *\ 2.11.*) ;; # other 2.11 versions
11658       *) supports_anon_versioning=yes ;;
11659     esac
11660
11661     # See if GNU ld supports shared libraries.
11662     case $host_os in
11663     aix[3-9]*)
11664       # On AIX/PPC, the GNU linker is very broken
11665       if test "$host_cpu" != ia64; then
11666         ld_shlibs=no
11667         cat <<_LT_EOF 1>&2
11668
11669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11670 *** to be unable to reliably create shared libraries on AIX.
11671 *** Therefore, libtool is disabling shared libraries support.  If you
11672 *** really care for shared libraries, you may want to modify your PATH
11673 *** so that a non-GNU linker is found, and then restart.
11674
11675 _LT_EOF
11676       fi
11677       ;;
11678
11679     amigaos*)
11680       case $host_cpu in
11681       powerpc)
11682             # see comment about AmigaOS4 .so support
11683             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11684             archive_expsym_cmds=''
11685         ;;
11686       m68k)
11687             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)'
11688             hardcode_libdir_flag_spec='-L$libdir'
11689             hardcode_minus_L=yes
11690         ;;
11691       esac
11692       ;;
11693
11694     beos*)
11695       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11696         allow_undefined_flag=unsupported
11697         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11698         # support --undefined.  This deserves some investigation.  FIXME
11699         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11700       else
11701         ld_shlibs=no
11702       fi
11703       ;;
11704
11705     cygwin* | mingw* | pw32* | cegcc*)
11706       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11707       # as there is no search path for DLLs.
11708       hardcode_libdir_flag_spec='-L$libdir'
11709       allow_undefined_flag=unsupported
11710       always_export_symbols=no
11711       enable_shared_with_static_runtimes=yes
11712       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11713
11714       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11716         # If the export-symbols file already is a .def file (1st line
11717         # is EXPORTS), use it as is; otherwise, prepend...
11718         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11719           cp $export_symbols $output_objdir/$soname.def;
11720         else
11721           echo EXPORTS > $output_objdir/$soname.def;
11722           cat $export_symbols >> $output_objdir/$soname.def;
11723         fi~
11724         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11725       else
11726         ld_shlibs=no
11727       fi
11728       ;;
11729
11730     interix[3-9]*)
11731       hardcode_direct=no
11732       hardcode_shlibpath_var=no
11733       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11734       export_dynamic_flag_spec='${wl}-E'
11735       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11736       # Instead, shared libraries are loaded at an image base (0x10000000 by
11737       # default) and relocated if they conflict, which is a slow very memory
11738       # consuming and fragmenting process.  To avoid this, we pick a random,
11739       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11740       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11741       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11742       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'
11743       ;;
11744
11745     gnu* | linux* | tpf* | k*bsd*-gnu)
11746       tmp_diet=no
11747       if test "$host_os" = linux-dietlibc; then
11748         case $cc_basename in
11749           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11750         esac
11751       fi
11752       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11753          && test "$tmp_diet" = no
11754       then
11755         tmp_addflag=
11756         tmp_sharedflag='-shared'
11757         case $cc_basename,$host_cpu in
11758         pgcc*)                          # Portland Group C compiler
11759           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'
11760           tmp_addflag=' $pic_flag'
11761           ;;
11762         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11763           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'
11764           tmp_addflag=' $pic_flag -Mnomain' ;;
11765         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11766           tmp_addflag=' -i_dynamic' ;;
11767         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11768           tmp_addflag=' -i_dynamic -nofor_main' ;;
11769         ifc* | ifort*)                  # Intel Fortran compiler
11770           tmp_addflag=' -nofor_main' ;;
11771         lf95*)                          # Lahey Fortran 8.1
11772           whole_archive_flag_spec=
11773           tmp_sharedflag='--shared' ;;
11774         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11775           tmp_sharedflag='-qmkshrobj'
11776           tmp_addflag= ;;
11777         esac
11778         case `$CC -V 2>&1 | sed 5q` in
11779         *Sun\ C*)                       # Sun C 5.9
11780           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'
11781           compiler_needs_object=yes
11782           tmp_sharedflag='-G' ;;
11783         *Sun\ F*)                       # Sun Fortran 8.3
11784           tmp_sharedflag='-G' ;;
11785         esac
11786         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787
11788         if test "x$supports_anon_versioning" = xyes; then
11789           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11790             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11791             echo "local: *; };" >> $output_objdir/$libname.ver~
11792             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11793         fi
11794
11795         case $cc_basename in
11796         xlf*)
11797           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11798           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11799           hardcode_libdir_flag_spec=
11800           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11801           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11802           if test "x$supports_anon_versioning" = xyes; then
11803             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11804               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11805               echo "local: *; };" >> $output_objdir/$libname.ver~
11806               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11807           fi
11808           ;;
11809         esac
11810       else
11811         ld_shlibs=no
11812       fi
11813       ;;
11814
11815     netbsd*)
11816       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11817         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11818         wlarc=
11819       else
11820         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11821         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11822       fi
11823       ;;
11824
11825     solaris*)
11826       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11827         ld_shlibs=no
11828         cat <<_LT_EOF 1>&2
11829
11830 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11831 *** create shared libraries on Solaris systems.  Therefore, libtool
11832 *** is disabling shared libraries support.  We urge you to upgrade GNU
11833 *** binutils to release 2.9.1 or newer.  Another option is to modify
11834 *** your PATH or compiler configuration so that the native linker is
11835 *** used, and then restart.
11836
11837 _LT_EOF
11838       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11839         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11840         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11841       else
11842         ld_shlibs=no
11843       fi
11844       ;;
11845
11846     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11847       case `$LD -v 2>&1` in
11848         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11849         ld_shlibs=no
11850         cat <<_LT_EOF 1>&2
11851
11852 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11853 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11854 *** is disabling shared libraries support.  We urge you to upgrade GNU
11855 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11856 *** your PATH or compiler configuration so that the native linker is
11857 *** used, and then restart.
11858
11859 _LT_EOF
11860         ;;
11861         *)
11862           # For security reasons, it is highly recommended that you always
11863           # use absolute paths for naming shared libraries, and exclude the
11864           # DT_RUNPATH tag from executables and libraries.  But doing so
11865           # requires that you compile everything twice, which is a pain.
11866           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11867             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11868             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11869             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11870           else
11871             ld_shlibs=no
11872           fi
11873         ;;
11874       esac
11875       ;;
11876
11877     sunos4*)
11878       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11879       wlarc=
11880       hardcode_direct=yes
11881       hardcode_shlibpath_var=no
11882       ;;
11883
11884     *)
11885       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11887         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11888       else
11889         ld_shlibs=no
11890       fi
11891       ;;
11892     esac
11893
11894     if test "$ld_shlibs" = no; then
11895       runpath_var=
11896       hardcode_libdir_flag_spec=
11897       export_dynamic_flag_spec=
11898       whole_archive_flag_spec=
11899     fi
11900   else
11901     # PORTME fill in a description of your system's linker (not GNU ld)
11902     case $host_os in
11903     aix3*)
11904       allow_undefined_flag=unsupported
11905       always_export_symbols=yes
11906       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'
11907       # Note: this linker hardcodes the directories in LIBPATH if there
11908       # are no directories specified by -L.
11909       hardcode_minus_L=yes
11910       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11911         # Neither direct hardcoding nor static linking is supported with a
11912         # broken collect2.
11913         hardcode_direct=unsupported
11914       fi
11915       ;;
11916
11917     aix[4-9]*)
11918       if test "$host_cpu" = ia64; then
11919         # On IA64, the linker does run time linking by default, so we don't
11920         # have to do anything special.
11921         aix_use_runtimelinking=no
11922         exp_sym_flag='-Bexport'
11923         no_entry_flag=""
11924       else
11925         # If we're using GNU nm, then we don't want the "-C" option.
11926         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11927         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11928           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'
11929         else
11930           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'
11931         fi
11932         aix_use_runtimelinking=no
11933
11934         # Test if we are trying to use run time linking or normal
11935         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11936         # need to do runtime linking.
11937         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11938           for ld_flag in $LDFLAGS; do
11939           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11940             aix_use_runtimelinking=yes
11941             break
11942           fi
11943           done
11944           ;;
11945         esac
11946
11947         exp_sym_flag='-bexport'
11948         no_entry_flag='-bnoentry'
11949       fi
11950
11951       # When large executables or shared objects are built, AIX ld can
11952       # have problems creating the table of contents.  If linking a library
11953       # or program results in "error TOC overflow" add -mminimal-toc to
11954       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11955       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11956
11957       archive_cmds=''
11958       hardcode_direct=yes
11959       hardcode_direct_absolute=yes
11960       hardcode_libdir_separator=':'
11961       link_all_deplibs=yes
11962       file_list_spec='${wl}-f,'
11963
11964       if test "$GCC" = yes; then
11965         case $host_os in aix4.[012]|aix4.[012].*)
11966         # We only want to do this on AIX 4.2 and lower, the check
11967         # below for broken collect2 doesn't work under 4.3+
11968           collect2name=`${CC} -print-prog-name=collect2`
11969           if test -f "$collect2name" &&
11970            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11971           then
11972           # We have reworked collect2
11973           :
11974           else
11975           # We have old collect2
11976           hardcode_direct=unsupported
11977           # It fails to find uninstalled libraries when the uninstalled
11978           # path is not listed in the libpath.  Setting hardcode_minus_L
11979           # to unsupported forces relinking
11980           hardcode_minus_L=yes
11981           hardcode_libdir_flag_spec='-L$libdir'
11982           hardcode_libdir_separator=
11983           fi
11984           ;;
11985         esac
11986         shared_flag='-shared'
11987         if test "$aix_use_runtimelinking" = yes; then
11988           shared_flag="$shared_flag "'${wl}-G'
11989         fi
11990       else
11991         # not using gcc
11992         if test "$host_cpu" = ia64; then
11993         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11994         # chokes on -Wl,-G. The following line is correct:
11995           shared_flag='-G'
11996         else
11997           if test "$aix_use_runtimelinking" = yes; then
11998             shared_flag='${wl}-G'
11999           else
12000             shared_flag='${wl}-bM:SRE'
12001           fi
12002         fi
12003       fi
12004
12005       export_dynamic_flag_spec='${wl}-bexpall'
12006       # It seems that -bexpall does not export symbols beginning with
12007       # underscore (_), so it is better to generate a list of symbols to export.
12008       always_export_symbols=yes
12009       if test "$aix_use_runtimelinking" = yes; then
12010         # Warning - without using the other runtime loading flags (-brtl),
12011         # -berok will link without error, but may produce a broken library.
12012         allow_undefined_flag='-berok'
12013         # Determine the default libpath from the value encoded in an
12014         # empty executable.
12015         cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h.  */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h.  */
12021
12022 int
12023 main ()
12024 {
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034   *) ac_try_echo=$ac_try;;
12035 esac
12036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12037 $as_echo "$ac_try_echo") >&5
12038   (eval "$ac_link") 2>conftest.er1
12039   ac_status=$?
12040   grep -v '^ *+' conftest.er1 >conftest.err
12041   rm -f conftest.er1
12042   cat conftest.err >&5
12043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); } && {
12045          test -z "$ac_c_werror_flag" ||
12046          test ! -s conftest.err
12047        } && test -s conftest$ac_exeext && {
12048          test "$cross_compiling" = yes ||
12049          $as_test_x conftest$ac_exeext
12050        }; then
12051
12052 lt_aix_libpath_sed='
12053     /Import File Strings/,/^$/ {
12054         /^0/ {
12055             s/^0  *\(.*\)$/\1/
12056             p
12057         }
12058     }'
12059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12060 # Check for a 64-bit object if we didn't find anything.
12061 if test -z "$aix_libpath"; then
12062   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12063 fi
12064 else
12065   $as_echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068
12069 fi
12070
12071 rm -rf conftest.dSYM
12072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12073       conftest$ac_exeext conftest.$ac_ext
12074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12075
12076         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12077         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12078       else
12079         if test "$host_cpu" = ia64; then
12080           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12081           allow_undefined_flag="-z nodefs"
12082           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"
12083         else
12084          # Determine the default libpath from the value encoded in an
12085          # empty executable.
12086          cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092
12093 int
12094 main ()
12095 {
12096
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (ac_try="$ac_link"
12103 case "(($ac_try" in
12104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105   *) ac_try_echo=$ac_try;;
12106 esac
12107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12108 $as_echo "$ac_try_echo") >&5
12109   (eval "$ac_link") 2>conftest.er1
12110   ac_status=$?
12111   grep -v '^ *+' conftest.er1 >conftest.err
12112   rm -f conftest.er1
12113   cat conftest.err >&5
12114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } && {
12116          test -z "$ac_c_werror_flag" ||
12117          test ! -s conftest.err
12118        } && test -s conftest$ac_exeext && {
12119          test "$cross_compiling" = yes ||
12120          $as_test_x conftest$ac_exeext
12121        }; then
12122
12123 lt_aix_libpath_sed='
12124     /Import File Strings/,/^$/ {
12125         /^0/ {
12126             s/^0  *\(.*\)$/\1/
12127             p
12128         }
12129     }'
12130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12131 # Check for a 64-bit object if we didn't find anything.
12132 if test -z "$aix_libpath"; then
12133   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12134 fi
12135 else
12136   $as_echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139
12140 fi
12141
12142 rm -rf conftest.dSYM
12143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144       conftest$ac_exeext conftest.$ac_ext
12145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12146
12147          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12148           # Warning - without using the other run time loading flags,
12149           # -berok will link without error, but may produce a broken library.
12150           no_undefined_flag=' ${wl}-bernotok'
12151           allow_undefined_flag=' ${wl}-berok'
12152           # Exported symbols can be pulled into shared objects from archives
12153           whole_archive_flag_spec='$convenience'
12154           archive_cmds_need_lc=yes
12155           # This is similar to how AIX traditionally builds its shared libraries.
12156           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'
12157         fi
12158       fi
12159       ;;
12160
12161     amigaos*)
12162       case $host_cpu in
12163       powerpc)
12164             # see comment about AmigaOS4 .so support
12165             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12166             archive_expsym_cmds=''
12167         ;;
12168       m68k)
12169             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)'
12170             hardcode_libdir_flag_spec='-L$libdir'
12171             hardcode_minus_L=yes
12172         ;;
12173       esac
12174       ;;
12175
12176     bsdi[45]*)
12177       export_dynamic_flag_spec=-rdynamic
12178       ;;
12179
12180     cygwin* | mingw* | pw32* | cegcc*)
12181       # When not using gcc, we currently assume that we are using
12182       # Microsoft Visual C++.
12183       # hardcode_libdir_flag_spec is actually meaningless, as there is
12184       # no search path for DLLs.
12185       hardcode_libdir_flag_spec=' '
12186       allow_undefined_flag=unsupported
12187       # Tell ltmain to make .lib files, not .a files.
12188       libext=lib
12189       # Tell ltmain to make .dll files, not .so files.
12190       shrext_cmds=".dll"
12191       # FIXME: Setting linknames here is a bad hack.
12192       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12193       # The linker will automatically build a .lib file if we build a DLL.
12194       old_archive_from_new_cmds='true'
12195       # FIXME: Should let the user specify the lib program.
12196       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12197       fix_srcfile_path='`cygpath -w "$srcfile"`'
12198       enable_shared_with_static_runtimes=yes
12199       ;;
12200
12201     darwin* | rhapsody*)
12202
12203
12204   archive_cmds_need_lc=no
12205   hardcode_direct=no
12206   hardcode_automatic=yes
12207   hardcode_shlibpath_var=unsupported
12208   whole_archive_flag_spec=''
12209   link_all_deplibs=yes
12210   allow_undefined_flag="$_lt_dar_allow_undefined"
12211   case $cc_basename in
12212      ifort*) _lt_dar_can_shared=yes ;;
12213      *) _lt_dar_can_shared=$GCC ;;
12214   esac
12215   if test "$_lt_dar_can_shared" = "yes"; then
12216     output_verbose_link_cmd=echo
12217     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12218     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12219     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12220     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12221
12222   else
12223   ld_shlibs=no
12224   fi
12225
12226       ;;
12227
12228     dgux*)
12229       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12230       hardcode_libdir_flag_spec='-L$libdir'
12231       hardcode_shlibpath_var=no
12232       ;;
12233
12234     freebsd1*)
12235       ld_shlibs=no
12236       ;;
12237
12238     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12239     # support.  Future versions do this automatically, but an explicit c++rt0.o
12240     # does not break anything, and helps significantly (at the cost of a little
12241     # extra space).
12242     freebsd2.2*)
12243       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12244       hardcode_libdir_flag_spec='-R$libdir'
12245       hardcode_direct=yes
12246       hardcode_shlibpath_var=no
12247       ;;
12248
12249     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12250     freebsd2*)
12251       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12252       hardcode_direct=yes
12253       hardcode_minus_L=yes
12254       hardcode_shlibpath_var=no
12255       ;;
12256
12257     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12258     freebsd* | dragonfly*)
12259       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12260       hardcode_libdir_flag_spec='-R$libdir'
12261       hardcode_direct=yes
12262       hardcode_shlibpath_var=no
12263       ;;
12264
12265     hpux9*)
12266       if test "$GCC" = yes; then
12267         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'
12268       else
12269         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'
12270       fi
12271       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12272       hardcode_libdir_separator=:
12273       hardcode_direct=yes
12274
12275       # hardcode_minus_L: Not really in the search PATH,
12276       # but as the default location of the library.
12277       hardcode_minus_L=yes
12278       export_dynamic_flag_spec='${wl}-E'
12279       ;;
12280
12281     hpux10*)
12282       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12283         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12284       else
12285         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12286       fi
12287       if test "$with_gnu_ld" = no; then
12288         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12289         hardcode_libdir_flag_spec_ld='+b $libdir'
12290         hardcode_libdir_separator=:
12291         hardcode_direct=yes
12292         hardcode_direct_absolute=yes
12293         export_dynamic_flag_spec='${wl}-E'
12294         # hardcode_minus_L: Not really in the search PATH,
12295         # but as the default location of the library.
12296         hardcode_minus_L=yes
12297       fi
12298       ;;
12299
12300     hpux11*)
12301       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12302         case $host_cpu in
12303         hppa*64*)
12304           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12305           ;;
12306         ia64*)
12307           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12308           ;;
12309         *)
12310           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12311           ;;
12312         esac
12313       else
12314         case $host_cpu in
12315         hppa*64*)
12316           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12317           ;;
12318         ia64*)
12319           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12320           ;;
12321         *)
12322           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12323           ;;
12324         esac
12325       fi
12326       if test "$with_gnu_ld" = no; then
12327         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12328         hardcode_libdir_separator=:
12329
12330         case $host_cpu in
12331         hppa*64*|ia64*)
12332           hardcode_direct=no
12333           hardcode_shlibpath_var=no
12334           ;;
12335         *)
12336           hardcode_direct=yes
12337           hardcode_direct_absolute=yes
12338           export_dynamic_flag_spec='${wl}-E'
12339
12340           # hardcode_minus_L: Not really in the search PATH,
12341           # but as the default location of the library.
12342           hardcode_minus_L=yes
12343           ;;
12344         esac
12345       fi
12346       ;;
12347
12348     irix5* | irix6* | nonstopux*)
12349       if test "$GCC" = yes; then
12350         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12351         # Try to use the -exported_symbol ld option, if it does not
12352         # work, assume that -exports_file does not work either and
12353         # implicitly export all symbols.
12354         save_LDFLAGS="$LDFLAGS"
12355         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12356         cat >conftest.$ac_ext <<_ACEOF
12357 int foo(void) {}
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367   (eval "$ac_link") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } && {
12374          test -z "$ac_c_werror_flag" ||
12375          test ! -s conftest.err
12376        } && test -s conftest$ac_exeext && {
12377          test "$cross_compiling" = yes ||
12378          $as_test_x conftest$ac_exeext
12379        }; then
12380   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12381
12382 else
12383   $as_echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12385
12386
12387 fi
12388
12389 rm -rf conftest.dSYM
12390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12391       conftest$ac_exeext conftest.$ac_ext
12392         LDFLAGS="$save_LDFLAGS"
12393       else
12394         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12395         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12396       fi
12397       archive_cmds_need_lc='no'
12398       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12399       hardcode_libdir_separator=:
12400       inherit_rpath=yes
12401       link_all_deplibs=yes
12402       ;;
12403
12404     netbsd*)
12405       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12406         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12407       else
12408         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12409       fi
12410       hardcode_libdir_flag_spec='-R$libdir'
12411       hardcode_direct=yes
12412       hardcode_shlibpath_var=no
12413       ;;
12414
12415     newsos6)
12416       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12417       hardcode_direct=yes
12418       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12419       hardcode_libdir_separator=:
12420       hardcode_shlibpath_var=no
12421       ;;
12422
12423     *nto* | *qnx*)
12424       ;;
12425
12426     openbsd*)
12427       if test -f /usr/libexec/ld.so; then
12428         hardcode_direct=yes
12429         hardcode_shlibpath_var=no
12430         hardcode_direct_absolute=yes
12431         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12432           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12433           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12434           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12435           export_dynamic_flag_spec='${wl}-E'
12436         else
12437           case $host_os in
12438            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12439              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12440              hardcode_libdir_flag_spec='-R$libdir'
12441              ;;
12442            *)
12443              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12444              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12445              ;;
12446           esac
12447         fi
12448       else
12449         ld_shlibs=no
12450       fi
12451       ;;
12452
12453     os2*)
12454       hardcode_libdir_flag_spec='-L$libdir'
12455       hardcode_minus_L=yes
12456       allow_undefined_flag=unsupported
12457       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'
12458       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12459       ;;
12460
12461     osf3*)
12462       if test "$GCC" = yes; then
12463         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12464         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12465       else
12466         allow_undefined_flag=' -expect_unresolved \*'
12467         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12468       fi
12469       archive_cmds_need_lc='no'
12470       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12471       hardcode_libdir_separator=:
12472       ;;
12473
12474     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12475       if test "$GCC" = yes; then
12476         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12477         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12478         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12479       else
12480         allow_undefined_flag=' -expect_unresolved \*'
12481         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12482         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12483         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12484
12485         # Both c and cxx compiler support -rpath directly
12486         hardcode_libdir_flag_spec='-rpath $libdir'
12487       fi
12488       archive_cmds_need_lc='no'
12489       hardcode_libdir_separator=:
12490       ;;
12491
12492     solaris*)
12493       no_undefined_flag=' -z defs'
12494       if test "$GCC" = yes; then
12495         wlarc='${wl}'
12496         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12497         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12498           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12499       else
12500         case `$CC -V 2>&1` in
12501         *"Compilers 5.0"*)
12502           wlarc=''
12503           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12504           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12505           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12506           ;;
12507         *)
12508           wlarc='${wl}'
12509           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12510           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12511           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12512           ;;
12513         esac
12514       fi
12515       hardcode_libdir_flag_spec='-R$libdir'
12516       hardcode_shlibpath_var=no
12517       case $host_os in
12518       solaris2.[0-5] | solaris2.[0-5].*) ;;
12519       *)
12520         # The compiler driver will combine and reorder linker options,
12521         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12522         # but is careful enough not to reorder.
12523         # Supported since Solaris 2.6 (maybe 2.5.1?)
12524         if test "$GCC" = yes; then
12525           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12526         else
12527           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12528         fi
12529         ;;
12530       esac
12531       link_all_deplibs=yes
12532       ;;
12533
12534     sunos4*)
12535       if test "x$host_vendor" = xsequent; then
12536         # Use $CC to link under sequent, because it throws in some extra .o
12537         # files that make .init and .fini sections work.
12538         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12539       else
12540         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12541       fi
12542       hardcode_libdir_flag_spec='-L$libdir'
12543       hardcode_direct=yes
12544       hardcode_minus_L=yes
12545       hardcode_shlibpath_var=no
12546       ;;
12547
12548     sysv4)
12549       case $host_vendor in
12550         sni)
12551           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12552           hardcode_direct=yes # is this really true???
12553         ;;
12554         siemens)
12555           ## LD is ld it makes a PLAMLIB
12556           ## CC just makes a GrossModule.
12557           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12558           reload_cmds='$CC -r -o $output$reload_objs'
12559           hardcode_direct=no
12560         ;;
12561         motorola)
12562           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12563           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12564         ;;
12565       esac
12566       runpath_var='LD_RUN_PATH'
12567       hardcode_shlibpath_var=no
12568       ;;
12569
12570     sysv4.3*)
12571       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12572       hardcode_shlibpath_var=no
12573       export_dynamic_flag_spec='-Bexport'
12574       ;;
12575
12576     sysv4*MP*)
12577       if test -d /usr/nec; then
12578         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12579         hardcode_shlibpath_var=no
12580         runpath_var=LD_RUN_PATH
12581         hardcode_runpath_var=yes
12582         ld_shlibs=yes
12583       fi
12584       ;;
12585
12586     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12587       no_undefined_flag='${wl}-z,text'
12588       archive_cmds_need_lc=no
12589       hardcode_shlibpath_var=no
12590       runpath_var='LD_RUN_PATH'
12591
12592       if test "$GCC" = yes; then
12593         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12594         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12595       else
12596         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598       fi
12599       ;;
12600
12601     sysv5* | sco3.2v5* | sco5v6*)
12602       # Note: We can NOT use -z defs as we might desire, because we do not
12603       # link with -lc, and that would cause any symbols used from libc to
12604       # always be unresolved, which means just about no library would
12605       # ever link correctly.  If we're not using GNU ld we use -z text
12606       # though, which does catch some bad symbols but isn't as heavy-handed
12607       # as -z defs.
12608       no_undefined_flag='${wl}-z,text'
12609       allow_undefined_flag='${wl}-z,nodefs'
12610       archive_cmds_need_lc=no
12611       hardcode_shlibpath_var=no
12612       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12613       hardcode_libdir_separator=':'
12614       link_all_deplibs=yes
12615       export_dynamic_flag_spec='${wl}-Bexport'
12616       runpath_var='LD_RUN_PATH'
12617
12618       if test "$GCC" = yes; then
12619         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12620         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12621       else
12622         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624       fi
12625       ;;
12626
12627     uts4*)
12628       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12629       hardcode_libdir_flag_spec='-L$libdir'
12630       hardcode_shlibpath_var=no
12631       ;;
12632
12633     *)
12634       ld_shlibs=no
12635       ;;
12636     esac
12637
12638     if test x$host_vendor = xsni; then
12639       case $host in
12640       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12641         export_dynamic_flag_spec='${wl}-Blargedynsym'
12642         ;;
12643       esac
12644     fi
12645   fi
12646
12647 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12648 $as_echo "$ld_shlibs" >&6; }
12649 test "$ld_shlibs" = no && can_build_shared=no
12650
12651 with_gnu_ld=$with_gnu_ld
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667 #
12668 # Do we need to explicitly link libc?
12669 #
12670 case "x$archive_cmds_need_lc" in
12671 x|xyes)
12672   # Assume -lc should be added
12673   archive_cmds_need_lc=yes
12674
12675   if test "$enable_shared" = yes && test "$GCC" = yes; then
12676     case $archive_cmds in
12677     *'~'*)
12678       # FIXME: we may have to deal with multi-command sequences.
12679       ;;
12680     '$CC '*)
12681       # Test whether the compiler implicitly links with -lc since on some
12682       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12683       # to ld, don't add -lc before -lgcc.
12684       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12685 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12686       $RM conftest*
12687       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12688
12689       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690   (eval $ac_compile) 2>&5
12691   ac_status=$?
12692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } 2>conftest.err; then
12694         soname=conftest
12695         lib=conftest
12696         libobjs=conftest.$ac_objext
12697         deplibs=
12698         wl=$lt_prog_compiler_wl
12699         pic_flag=$lt_prog_compiler_pic
12700         compiler_flags=-v
12701         linker_flags=-v
12702         verstring=
12703         output_objdir=.
12704         libname=conftest
12705         lt_save_allow_undefined_flag=$allow_undefined_flag
12706         allow_undefined_flag=
12707         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12708   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12709   ac_status=$?
12710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }
12712         then
12713           archive_cmds_need_lc=no
12714         else
12715           archive_cmds_need_lc=yes
12716         fi
12717         allow_undefined_flag=$lt_save_allow_undefined_flag
12718       else
12719         cat conftest.err 1>&5
12720       fi
12721       $RM conftest*
12722       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12723 $as_echo "$archive_cmds_need_lc" >&6; }
12724       ;;
12725     esac
12726   fi
12727   ;;
12728 esac
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12887 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12888
12889 if test "$GCC" = yes; then
12890   case $host_os in
12891     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12892     *) lt_awk_arg="/^libraries:/" ;;
12893   esac
12894   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12895   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12896     # if the path contains ";" then we assume it to be the separator
12897     # otherwise default to the standard path separator (i.e. ":") - it is
12898     # assumed that no part of a normal pathname contains ";" but that should
12899     # okay in the real world where ";" in dirpaths is itself problematic.
12900     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12901   else
12902     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12903   fi
12904   # Ok, now we have the path, separated by spaces, we can step through it
12905   # and add multilib dir if necessary.
12906   lt_tmp_lt_search_path_spec=
12907   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12908   for lt_sys_path in $lt_search_path_spec; do
12909     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12910       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12911     else
12912       test -d "$lt_sys_path" && \
12913         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12914     fi
12915   done
12916   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12917 BEGIN {RS=" "; FS="/|\n";} {
12918   lt_foo="";
12919   lt_count=0;
12920   for (lt_i = NF; lt_i > 0; lt_i--) {
12921     if ($lt_i != "" && $lt_i != ".") {
12922       if ($lt_i == "..") {
12923         lt_count++;
12924       } else {
12925         if (lt_count == 0) {
12926           lt_foo="/" $lt_i lt_foo;
12927         } else {
12928           lt_count--;
12929         }
12930       }
12931     }
12932   }
12933   if (lt_foo != "") { lt_freq[lt_foo]++; }
12934   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12935 }'`
12936   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12937 else
12938   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12939 fi
12940 library_names_spec=
12941 libname_spec='lib$name'
12942 soname_spec=
12943 shrext_cmds=".so"
12944 postinstall_cmds=
12945 postuninstall_cmds=
12946 finish_cmds=
12947 finish_eval=
12948 shlibpath_var=
12949 shlibpath_overrides_runpath=unknown
12950 version_type=none
12951 dynamic_linker="$host_os ld.so"
12952 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12953 need_lib_prefix=unknown
12954 hardcode_into_libs=no
12955
12956 # when you set need_version to no, make sure it does not cause -set_version
12957 # flags to be left without arguments
12958 need_version=unknown
12959
12960 case $host_os in
12961 aix3*)
12962   version_type=linux
12963   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12964   shlibpath_var=LIBPATH
12965
12966   # AIX 3 has no versioning support, so we append a major version to the name.
12967   soname_spec='${libname}${release}${shared_ext}$major'
12968   ;;
12969
12970 aix[4-9]*)
12971   version_type=linux
12972   need_lib_prefix=no
12973   need_version=no
12974   hardcode_into_libs=yes
12975   if test "$host_cpu" = ia64; then
12976     # AIX 5 supports IA64
12977     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12978     shlibpath_var=LD_LIBRARY_PATH
12979   else
12980     # With GCC up to 2.95.x, collect2 would create an import file
12981     # for dependence libraries.  The import file would start with
12982     # the line `#! .'.  This would cause the generated library to
12983     # depend on `.', always an invalid library.  This was fixed in
12984     # development snapshots of GCC prior to 3.0.
12985     case $host_os in
12986       aix4 | aix4.[01] | aix4.[01].*)
12987       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12988            echo ' yes '
12989            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12990         :
12991       else
12992         can_build_shared=no
12993       fi
12994       ;;
12995     esac
12996     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12997     # soname into executable. Probably we can add versioning support to
12998     # collect2, so additional links can be useful in future.
12999     if test "$aix_use_runtimelinking" = yes; then
13000       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13001       # instead of lib<name>.a to let people know that these are not
13002       # typical AIX shared libraries.
13003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004     else
13005       # We preserve .a as extension for shared libraries through AIX4.2
13006       # and later when we are not doing run time linking.
13007       library_names_spec='${libname}${release}.a $libname.a'
13008       soname_spec='${libname}${release}${shared_ext}$major'
13009     fi
13010     shlibpath_var=LIBPATH
13011   fi
13012   ;;
13013
13014 amigaos*)
13015   case $host_cpu in
13016   powerpc)
13017     # Since July 2007 AmigaOS4 officially supports .so libraries.
13018     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020     ;;
13021   m68k)
13022     library_names_spec='$libname.ixlibrary $libname.a'
13023     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13024     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'
13025     ;;
13026   esac
13027   ;;
13028
13029 beos*)
13030   library_names_spec='${libname}${shared_ext}'
13031   dynamic_linker="$host_os ld.so"
13032   shlibpath_var=LIBRARY_PATH
13033   ;;
13034
13035 bsdi[45]*)
13036   version_type=linux
13037   need_version=no
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039   soname_spec='${libname}${release}${shared_ext}$major'
13040   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13041   shlibpath_var=LD_LIBRARY_PATH
13042   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13043   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13044   # the default ld.so.conf also contains /usr/contrib/lib and
13045   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13046   # libtool to hard-code these into programs
13047   ;;
13048
13049 cygwin* | mingw* | pw32* | cegcc*)
13050   version_type=windows
13051   shrext_cmds=".dll"
13052   need_version=no
13053   need_lib_prefix=no
13054
13055   case $GCC,$host_os in
13056   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13057     library_names_spec='$libname.dll.a'
13058     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13059     postinstall_cmds='base_file=`basename \${file}`~
13060       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13061       dldir=$destdir/`dirname \$dlpath`~
13062       test -d \$dldir || mkdir -p \$dldir~
13063       $install_prog $dir/$dlname \$dldir/$dlname~
13064       chmod a+x \$dldir/$dlname~
13065       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13066         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13067       fi'
13068     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13069       dlpath=$dir/\$dldll~
13070        $RM \$dlpath'
13071     shlibpath_overrides_runpath=yes
13072
13073     case $host_os in
13074     cygwin*)
13075       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13076       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13078       ;;
13079     mingw* | cegcc*)
13080       # MinGW DLLs use traditional 'lib' prefix
13081       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13083       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13084         # It is most probably a Windows format PATH printed by
13085         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13086         # path with ; separators, and with drive letters. We can handle the
13087         # drive letters (cygwin fileutils understands them), so leave them,
13088         # especially as we might pass files found there to a mingw objdump,
13089         # which wouldn't understand a cygwinified path. Ahh.
13090         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13091       else
13092         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13093       fi
13094       ;;
13095     pw32*)
13096       # pw32 DLLs use 'pw' prefix rather than 'lib'
13097       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13098       ;;
13099     esac
13100     ;;
13101
13102   *)
13103     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13104     ;;
13105   esac
13106   dynamic_linker='Win32 ld.exe'
13107   # FIXME: first we should search . and the directory the executable is in
13108   shlibpath_var=PATH
13109   ;;
13110
13111 darwin* | rhapsody*)
13112   dynamic_linker="$host_os dyld"
13113   version_type=darwin
13114   need_lib_prefix=no
13115   need_version=no
13116   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13117   soname_spec='${libname}${release}${major}$shared_ext'
13118   shlibpath_overrides_runpath=yes
13119   shlibpath_var=DYLD_LIBRARY_PATH
13120   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13121
13122   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13123   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13124   ;;
13125
13126 dgux*)
13127   version_type=linux
13128   need_lib_prefix=no
13129   need_version=no
13130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13131   soname_spec='${libname}${release}${shared_ext}$major'
13132   shlibpath_var=LD_LIBRARY_PATH
13133   ;;
13134
13135 freebsd1*)
13136   dynamic_linker=no
13137   ;;
13138
13139 freebsd* | dragonfly*)
13140   # DragonFly does not have aout.  When/if they implement a new
13141   # versioning mechanism, adjust this.
13142   if test -x /usr/bin/objformat; then
13143     objformat=`/usr/bin/objformat`
13144   else
13145     case $host_os in
13146     freebsd[123]*) objformat=aout ;;
13147     *) objformat=elf ;;
13148     esac
13149   fi
13150   version_type=freebsd-$objformat
13151   case $version_type in
13152     freebsd-elf*)
13153       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13154       need_version=no
13155       need_lib_prefix=no
13156       ;;
13157     freebsd-*)
13158       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13159       need_version=yes
13160       ;;
13161   esac
13162   shlibpath_var=LD_LIBRARY_PATH
13163   case $host_os in
13164   freebsd2*)
13165     shlibpath_overrides_runpath=yes
13166     ;;
13167   freebsd3.[01]* | freebsdelf3.[01]*)
13168     shlibpath_overrides_runpath=yes
13169     hardcode_into_libs=yes
13170     ;;
13171   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13172   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13173     shlibpath_overrides_runpath=no
13174     hardcode_into_libs=yes
13175     ;;
13176   *) # from 4.6 on, and DragonFly
13177     shlibpath_overrides_runpath=yes
13178     hardcode_into_libs=yes
13179     ;;
13180   esac
13181   ;;
13182
13183 gnu*)
13184   version_type=linux
13185   need_lib_prefix=no
13186   need_version=no
13187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13188   soname_spec='${libname}${release}${shared_ext}$major'
13189   shlibpath_var=LD_LIBRARY_PATH
13190   hardcode_into_libs=yes
13191   ;;
13192
13193 hpux9* | hpux10* | hpux11*)
13194   # Give a soname corresponding to the major version so that dld.sl refuses to
13195   # link against other versions.
13196   version_type=sunos
13197   need_lib_prefix=no
13198   need_version=no
13199   case $host_cpu in
13200   ia64*)
13201     shrext_cmds='.so'
13202     hardcode_into_libs=yes
13203     dynamic_linker="$host_os dld.so"
13204     shlibpath_var=LD_LIBRARY_PATH
13205     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207     soname_spec='${libname}${release}${shared_ext}$major'
13208     if test "X$HPUX_IA64_MODE" = X32; then
13209       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13210     else
13211       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13212     fi
13213     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13214     ;;
13215   hppa*64*)
13216     shrext_cmds='.sl'
13217     hardcode_into_libs=yes
13218     dynamic_linker="$host_os dld.sl"
13219     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13220     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13222     soname_spec='${libname}${release}${shared_ext}$major'
13223     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13224     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13225     ;;
13226   *)
13227     shrext_cmds='.sl'
13228     dynamic_linker="$host_os dld.sl"
13229     shlibpath_var=SHLIB_PATH
13230     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13232     soname_spec='${libname}${release}${shared_ext}$major'
13233     ;;
13234   esac
13235   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13236   postinstall_cmds='chmod 555 $lib'
13237   ;;
13238
13239 interix[3-9]*)
13240   version_type=linux
13241   need_lib_prefix=no
13242   need_version=no
13243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13244   soname_spec='${libname}${release}${shared_ext}$major'
13245   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13246   shlibpath_var=LD_LIBRARY_PATH
13247   shlibpath_overrides_runpath=no
13248   hardcode_into_libs=yes
13249   ;;
13250
13251 irix5* | irix6* | nonstopux*)
13252   case $host_os in
13253     nonstopux*) version_type=nonstopux ;;
13254     *)
13255         if test "$lt_cv_prog_gnu_ld" = yes; then
13256                 version_type=linux
13257         else
13258                 version_type=irix
13259         fi ;;
13260   esac
13261   need_lib_prefix=no
13262   need_version=no
13263   soname_spec='${libname}${release}${shared_ext}$major'
13264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13265   case $host_os in
13266   irix5* | nonstopux*)
13267     libsuff= shlibsuff=
13268     ;;
13269   *)
13270     case $LD in # libtool.m4 will add one of these switches to LD
13271     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13272       libsuff= shlibsuff= libmagic=32-bit;;
13273     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13274       libsuff=32 shlibsuff=N32 libmagic=N32;;
13275     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13276       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13277     *) libsuff= shlibsuff= libmagic=never-match;;
13278     esac
13279     ;;
13280   esac
13281   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13282   shlibpath_overrides_runpath=no
13283   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13284   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13285   hardcode_into_libs=yes
13286   ;;
13287
13288 # No shared lib support for Linux oldld, aout, or coff.
13289 linux*oldld* | linux*aout* | linux*coff*)
13290   dynamic_linker=no
13291   ;;
13292
13293 # This must be Linux ELF.
13294 linux* | k*bsd*-gnu)
13295   version_type=linux
13296   need_lib_prefix=no
13297   need_version=no
13298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13299   soname_spec='${libname}${release}${shared_ext}$major'
13300   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13301   shlibpath_var=LD_LIBRARY_PATH
13302   shlibpath_overrides_runpath=no
13303   # Some binutils ld are patched to set DT_RUNPATH
13304   save_LDFLAGS=$LDFLAGS
13305   save_libdir=$libdir
13306   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13307        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13308   cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h.  */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h.  */
13314
13315 int
13316 main ()
13317 {
13318
13319   ;
13320   return 0;
13321 }
13322 _ACEOF
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13330 $as_echo "$ac_try_echo") >&5
13331   (eval "$ac_link") 2>conftest.er1
13332   ac_status=$?
13333   grep -v '^ *+' conftest.er1 >conftest.err
13334   rm -f conftest.er1
13335   cat conftest.err >&5
13336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); } && {
13338          test -z "$ac_c_werror_flag" ||
13339          test ! -s conftest.err
13340        } && test -s conftest$ac_exeext && {
13341          test "$cross_compiling" = yes ||
13342          $as_test_x conftest$ac_exeext
13343        }; then
13344   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13345   shlibpath_overrides_runpath=yes
13346 fi
13347
13348 else
13349   $as_echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352
13353 fi
13354
13355 rm -rf conftest.dSYM
13356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13357       conftest$ac_exeext conftest.$ac_ext
13358   LDFLAGS=$save_LDFLAGS
13359   libdir=$save_libdir
13360
13361   # This implies no fast_install, which is unacceptable.
13362   # Some rework will be needed to allow for fast_install
13363   # before this can be enabled.
13364   hardcode_into_libs=yes
13365
13366   # Add ABI-specific directories to the system library path.
13367   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13368
13369   # Append ld.so.conf contents to the search path
13370   if test -f /etc/ld.so.conf; then
13371     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' ' '`
13372     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13373   fi
13374
13375   # We used to test for /lib/ld.so.1 and disable shared libraries on
13376   # powerpc, because MkLinux only supported shared libraries with the
13377   # GNU dynamic linker.  Since this was broken with cross compilers,
13378   # most powerpc-linux boxes support dynamic linking these days and
13379   # people can always --disable-shared, the test was removed, and we
13380   # assume the GNU/Linux dynamic linker is in use.
13381   dynamic_linker='GNU/Linux ld.so'
13382   ;;
13383
13384 netbsd*)
13385   version_type=sunos
13386   need_lib_prefix=no
13387   need_version=no
13388   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13390     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13391     dynamic_linker='NetBSD (a.out) ld.so'
13392   else
13393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13394     soname_spec='${libname}${release}${shared_ext}$major'
13395     dynamic_linker='NetBSD ld.elf_so'
13396   fi
13397   shlibpath_var=LD_LIBRARY_PATH
13398   shlibpath_overrides_runpath=yes
13399   hardcode_into_libs=yes
13400   ;;
13401
13402 newsos6)
13403   version_type=linux
13404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405   shlibpath_var=LD_LIBRARY_PATH
13406   shlibpath_overrides_runpath=yes
13407   ;;
13408
13409 *nto* | *qnx*)
13410   version_type=qnx
13411   need_lib_prefix=no
13412   need_version=no
13413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414   soname_spec='${libname}${release}${shared_ext}$major'
13415   shlibpath_var=LD_LIBRARY_PATH
13416   shlibpath_overrides_runpath=no
13417   hardcode_into_libs=yes
13418   dynamic_linker='ldqnx.so'
13419   ;;
13420
13421 openbsd*)
13422   version_type=sunos
13423   sys_lib_dlsearch_path_spec="/usr/lib"
13424   need_lib_prefix=no
13425   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13426   case $host_os in
13427     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13428     *)                          need_version=no  ;;
13429   esac
13430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13432   shlibpath_var=LD_LIBRARY_PATH
13433   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13434     case $host_os in
13435       openbsd2.[89] | openbsd2.[89].*)
13436         shlibpath_overrides_runpath=no
13437         ;;
13438       *)
13439         shlibpath_overrides_runpath=yes
13440         ;;
13441       esac
13442   else
13443     shlibpath_overrides_runpath=yes
13444   fi
13445   ;;
13446
13447 os2*)
13448   libname_spec='$name'
13449   shrext_cmds=".dll"
13450   need_lib_prefix=no
13451   library_names_spec='$libname${shared_ext} $libname.a'
13452   dynamic_linker='OS/2 ld.exe'
13453   shlibpath_var=LIBPATH
13454   ;;
13455
13456 osf3* | osf4* | osf5*)
13457   version_type=osf
13458   need_lib_prefix=no
13459   need_version=no
13460   soname_spec='${libname}${release}${shared_ext}$major'
13461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462   shlibpath_var=LD_LIBRARY_PATH
13463   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13464   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13465   ;;
13466
13467 rdos*)
13468   dynamic_linker=no
13469   ;;
13470
13471 solaris*)
13472   version_type=linux
13473   need_lib_prefix=no
13474   need_version=no
13475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476   soname_spec='${libname}${release}${shared_ext}$major'
13477   shlibpath_var=LD_LIBRARY_PATH
13478   shlibpath_overrides_runpath=yes
13479   hardcode_into_libs=yes
13480   # ldd complains unless libraries are executable
13481   postinstall_cmds='chmod +x $lib'
13482   ;;
13483
13484 sunos4*)
13485   version_type=sunos
13486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13487   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13488   shlibpath_var=LD_LIBRARY_PATH
13489   shlibpath_overrides_runpath=yes
13490   if test "$with_gnu_ld" = yes; then
13491     need_lib_prefix=no
13492   fi
13493   need_version=yes
13494   ;;
13495
13496 sysv4 | sysv4.3*)
13497   version_type=linux
13498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499   soname_spec='${libname}${release}${shared_ext}$major'
13500   shlibpath_var=LD_LIBRARY_PATH
13501   case $host_vendor in
13502     sni)
13503       shlibpath_overrides_runpath=no
13504       need_lib_prefix=no
13505       runpath_var=LD_RUN_PATH
13506       ;;
13507     siemens)
13508       need_lib_prefix=no
13509       ;;
13510     motorola)
13511       need_lib_prefix=no
13512       need_version=no
13513       shlibpath_overrides_runpath=no
13514       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13515       ;;
13516   esac
13517   ;;
13518
13519 sysv4*MP*)
13520   if test -d /usr/nec ;then
13521     version_type=linux
13522     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13523     soname_spec='$libname${shared_ext}.$major'
13524     shlibpath_var=LD_LIBRARY_PATH
13525   fi
13526   ;;
13527
13528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13529   version_type=freebsd-elf
13530   need_lib_prefix=no
13531   need_version=no
13532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13533   soname_spec='${libname}${release}${shared_ext}$major'
13534   shlibpath_var=LD_LIBRARY_PATH
13535   shlibpath_overrides_runpath=yes
13536   hardcode_into_libs=yes
13537   if test "$with_gnu_ld" = yes; then
13538     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13539   else
13540     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13541     case $host_os in
13542       sco3.2v5*)
13543         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13544         ;;
13545     esac
13546   fi
13547   sys_lib_dlsearch_path_spec='/usr/lib'
13548   ;;
13549
13550 tpf*)
13551   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13552   version_type=linux
13553   need_lib_prefix=no
13554   need_version=no
13555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556   shlibpath_var=LD_LIBRARY_PATH
13557   shlibpath_overrides_runpath=no
13558   hardcode_into_libs=yes
13559   ;;
13560
13561 uts4*)
13562   version_type=linux
13563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564   soname_spec='${libname}${release}${shared_ext}$major'
13565   shlibpath_var=LD_LIBRARY_PATH
13566   ;;
13567
13568 *)
13569   dynamic_linker=no
13570   ;;
13571 esac
13572 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13573 $as_echo "$dynamic_linker" >&6; }
13574 test "$dynamic_linker" = no && can_build_shared=no
13575
13576 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13577 if test "$GCC" = yes; then
13578   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13579 fi
13580
13581 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13582   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13583 fi
13584 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13585   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13586 fi
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13675 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13676 hardcode_action=
13677 if test -n "$hardcode_libdir_flag_spec" ||
13678    test -n "$runpath_var" ||
13679    test "X$hardcode_automatic" = "Xyes" ; then
13680
13681   # We can hardcode non-existent directories.
13682   if test "$hardcode_direct" != no &&
13683      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13684      # have to relink, otherwise we might link with an installed library
13685      # when we should be linking with a yet-to-be-installed one
13686      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13687      test "$hardcode_minus_L" != no; then
13688     # Linking always hardcodes the temporary library directory.
13689     hardcode_action=relink
13690   else
13691     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13692     hardcode_action=immediate
13693   fi
13694 else
13695   # We cannot hardcode anything, or else we can only hardcode existing
13696   # directories.
13697   hardcode_action=unsupported
13698 fi
13699 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
13700 $as_echo "$hardcode_action" >&6; }
13701
13702 if test "$hardcode_action" = relink ||
13703    test "$inherit_rpath" = yes; then
13704   # Fast installation is not supported
13705   enable_fast_install=no
13706 elif test "$shlibpath_overrides_runpath" = yes ||
13707      test "$enable_shared" = no; then
13708   # Fast installation is not necessary
13709   enable_fast_install=needless
13710 fi
13711
13712
13713
13714
13715
13716
13717   if test "x$enable_dlopen" != xyes; then
13718   enable_dlopen=unknown
13719   enable_dlopen_self=unknown
13720   enable_dlopen_self_static=unknown
13721 else
13722   lt_cv_dlopen=no
13723   lt_cv_dlopen_libs=
13724
13725   case $host_os in
13726   beos*)
13727     lt_cv_dlopen="load_add_on"
13728     lt_cv_dlopen_libs=
13729     lt_cv_dlopen_self=yes
13730     ;;
13731
13732   mingw* | pw32* | cegcc*)
13733     lt_cv_dlopen="LoadLibrary"
13734     lt_cv_dlopen_libs=
13735     ;;
13736
13737   cygwin*)
13738     lt_cv_dlopen="dlopen"
13739     lt_cv_dlopen_libs=
13740     ;;
13741
13742   darwin*)
13743   # if libdl is installed we need to link against it
13744     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13745 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13747   $as_echo_n "(cached) " >&6
13748 else
13749   ac_check_lib_save_LIBS=$LIBS
13750 LIBS="-ldl  $LIBS"
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h.  */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h.  */
13757
13758 /* Override any GCC internal prototype to avoid an error.
13759    Use char because int might match the return type of a GCC
13760    builtin and then its argument prototype would still apply.  */
13761 #ifdef __cplusplus
13762 extern "C"
13763 #endif
13764 char dlopen ();
13765 int
13766 main ()
13767 {
13768 return dlopen ();
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (ac_try="$ac_link"
13775 case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13780 $as_echo "$ac_try_echo") >&5
13781   (eval "$ac_link") 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } && {
13788          test -z "$ac_c_werror_flag" ||
13789          test ! -s conftest.err
13790        } && test -s conftest$ac_exeext && {
13791          test "$cross_compiling" = yes ||
13792          $as_test_x conftest$ac_exeext
13793        }; then
13794   ac_cv_lib_dl_dlopen=yes
13795 else
13796   $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799         ac_cv_lib_dl_dlopen=no
13800 fi
13801
13802 rm -rf conftest.dSYM
13803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804       conftest$ac_exeext conftest.$ac_ext
13805 LIBS=$ac_check_lib_save_LIBS
13806 fi
13807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13808 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13809 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13810   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13811 else
13812
13813     lt_cv_dlopen="dyld"
13814     lt_cv_dlopen_libs=
13815     lt_cv_dlopen_self=yes
13816
13817 fi
13818
13819     ;;
13820
13821   *)
13822     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13823 $as_echo_n "checking for shl_load... " >&6; }
13824 if test "${ac_cv_func_shl_load+set}" = set; then
13825   $as_echo_n "(cached) " >&6
13826 else
13827   cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13835 #define shl_load innocuous_shl_load
13836
13837 /* System header to define __stub macros and hopefully few prototypes,
13838     which can conflict with char shl_load (); below.
13839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13840     <limits.h> exists even on freestanding compilers.  */
13841
13842 #ifdef __STDC__
13843 # include <limits.h>
13844 #else
13845 # include <assert.h>
13846 #endif
13847
13848 #undef shl_load
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851    Use char because int might match the return type of a GCC
13852    builtin and then its argument prototype would still apply.  */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char shl_load ();
13857 /* The GNU C library defines this for functions which it implements
13858     to always fail with ENOSYS.  Some functions are actually named
13859     something starting with __ and the normal name is an alias.  */
13860 #if defined __stub_shl_load || defined __stub___shl_load
13861 choke me
13862 #endif
13863
13864 int
13865 main ()
13866 {
13867 return shl_load ();
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (ac_try="$ac_link"
13874 case "(($ac_try" in
13875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876   *) ac_try_echo=$ac_try;;
13877 esac
13878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13879 $as_echo "$ac_try_echo") >&5
13880   (eval "$ac_link") 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } && {
13887          test -z "$ac_c_werror_flag" ||
13888          test ! -s conftest.err
13889        } && test -s conftest$ac_exeext && {
13890          test "$cross_compiling" = yes ||
13891          $as_test_x conftest$ac_exeext
13892        }; then
13893   ac_cv_func_shl_load=yes
13894 else
13895   $as_echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898         ac_cv_func_shl_load=no
13899 fi
13900
13901 rm -rf conftest.dSYM
13902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13903       conftest$ac_exeext conftest.$ac_ext
13904 fi
13905 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13906 $as_echo "$ac_cv_func_shl_load" >&6; }
13907 if test "x$ac_cv_func_shl_load" = x""yes; then
13908   lt_cv_dlopen="shl_load"
13909 else
13910   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13912 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13913   $as_echo_n "(cached) " >&6
13914 else
13915   ac_check_lib_save_LIBS=$LIBS
13916 LIBS="-ldld  $LIBS"
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923
13924 /* Override any GCC internal prototype to avoid an error.
13925    Use char because int might match the return type of a GCC
13926    builtin and then its argument prototype would still apply.  */
13927 #ifdef __cplusplus
13928 extern "C"
13929 #endif
13930 char shl_load ();
13931 int
13932 main ()
13933 {
13934 return shl_load ();
13935   ;
13936   return 0;
13937 }
13938 _ACEOF
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (ac_try="$ac_link"
13941 case "(($ac_try" in
13942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943   *) ac_try_echo=$ac_try;;
13944 esac
13945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13946 $as_echo "$ac_try_echo") >&5
13947   (eval "$ac_link") 2>conftest.er1
13948   ac_status=$?
13949   grep -v '^ *+' conftest.er1 >conftest.err
13950   rm -f conftest.er1
13951   cat conftest.err >&5
13952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } && {
13954          test -z "$ac_c_werror_flag" ||
13955          test ! -s conftest.err
13956        } && test -s conftest$ac_exeext && {
13957          test "$cross_compiling" = yes ||
13958          $as_test_x conftest$ac_exeext
13959        }; then
13960   ac_cv_lib_dld_shl_load=yes
13961 else
13962   $as_echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965         ac_cv_lib_dld_shl_load=no
13966 fi
13967
13968 rm -rf conftest.dSYM
13969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13970       conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13972 fi
13973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13974 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13975 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13976   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13977 else
13978   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13979 $as_echo_n "checking for dlopen... " >&6; }
13980 if test "${ac_cv_func_dlopen+set}" = set; then
13981   $as_echo_n "(cached) " >&6
13982 else
13983   cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13991 #define dlopen innocuous_dlopen
13992
13993 /* System header to define __stub macros and hopefully few prototypes,
13994     which can conflict with char dlopen (); below.
13995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13996     <limits.h> exists even on freestanding compilers.  */
13997
13998 #ifdef __STDC__
13999 # include <limits.h>
14000 #else
14001 # include <assert.h>
14002 #endif
14003
14004 #undef dlopen
14005
14006 /* Override any GCC internal prototype to avoid an error.
14007    Use char because int might match the return type of a GCC
14008    builtin and then its argument prototype would still apply.  */
14009 #ifdef __cplusplus
14010 extern "C"
14011 #endif
14012 char dlopen ();
14013 /* The GNU C library defines this for functions which it implements
14014     to always fail with ENOSYS.  Some functions are actually named
14015     something starting with __ and the normal name is an alias.  */
14016 #if defined __stub_dlopen || defined __stub___dlopen
14017 choke me
14018 #endif
14019
14020 int
14021 main ()
14022 {
14023 return dlopen ();
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032   *) ac_try_echo=$ac_try;;
14033 esac
14034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14035 $as_echo "$ac_try_echo") >&5
14036   (eval "$ac_link") 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } && {
14043          test -z "$ac_c_werror_flag" ||
14044          test ! -s conftest.err
14045        } && test -s conftest$ac_exeext && {
14046          test "$cross_compiling" = yes ||
14047          $as_test_x conftest$ac_exeext
14048        }; then
14049   ac_cv_func_dlopen=yes
14050 else
14051   $as_echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054         ac_cv_func_dlopen=no
14055 fi
14056
14057 rm -rf conftest.dSYM
14058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14059       conftest$ac_exeext conftest.$ac_ext
14060 fi
14061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14062 $as_echo "$ac_cv_func_dlopen" >&6; }
14063 if test "x$ac_cv_func_dlopen" = x""yes; then
14064   lt_cv_dlopen="dlopen"
14065 else
14066   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14069   $as_echo_n "(cached) " >&6
14070 else
14071   ac_check_lib_save_LIBS=$LIBS
14072 LIBS="-ldl  $LIBS"
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h.  */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h.  */
14079
14080 /* Override any GCC internal prototype to avoid an error.
14081    Use char because int might match the return type of a GCC
14082    builtin and then its argument prototype would still apply.  */
14083 #ifdef __cplusplus
14084 extern "C"
14085 #endif
14086 char dlopen ();
14087 int
14088 main ()
14089 {
14090 return dlopen ();
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 rm -f conftest.$ac_objext conftest$ac_exeext
14096 if { (ac_try="$ac_link"
14097 case "(($ac_try" in
14098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099   *) ac_try_echo=$ac_try;;
14100 esac
14101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14102 $as_echo "$ac_try_echo") >&5
14103   (eval "$ac_link") 2>conftest.er1
14104   ac_status=$?
14105   grep -v '^ *+' conftest.er1 >conftest.err
14106   rm -f conftest.er1
14107   cat conftest.err >&5
14108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } && {
14110          test -z "$ac_c_werror_flag" ||
14111          test ! -s conftest.err
14112        } && test -s conftest$ac_exeext && {
14113          test "$cross_compiling" = yes ||
14114          $as_test_x conftest$ac_exeext
14115        }; then
14116   ac_cv_lib_dl_dlopen=yes
14117 else
14118   $as_echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14120
14121         ac_cv_lib_dl_dlopen=no
14122 fi
14123
14124 rm -rf conftest.dSYM
14125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14126       conftest$ac_exeext conftest.$ac_ext
14127 LIBS=$ac_check_lib_save_LIBS
14128 fi
14129 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14131 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14132   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14133 else
14134   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14135 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14137   $as_echo_n "(cached) " >&6
14138 else
14139   ac_check_lib_save_LIBS=$LIBS
14140 LIBS="-lsvld  $LIBS"
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149    Use char because int might match the return type of a GCC
14150    builtin and then its argument prototype would still apply.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char dlopen ();
14155 int
14156 main ()
14157 {
14158 return dlopen ();
14159   ;
14160   return 0;
14161 }
14162 _ACEOF
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167   *) ac_try_echo=$ac_try;;
14168 esac
14169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14170 $as_echo "$ac_try_echo") >&5
14171   (eval "$ac_link") 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } && {
14178          test -z "$ac_c_werror_flag" ||
14179          test ! -s conftest.err
14180        } && test -s conftest$ac_exeext && {
14181          test "$cross_compiling" = yes ||
14182          $as_test_x conftest$ac_exeext
14183        }; then
14184   ac_cv_lib_svld_dlopen=yes
14185 else
14186   $as_echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189         ac_cv_lib_svld_dlopen=no
14190 fi
14191
14192 rm -rf conftest.dSYM
14193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14194       conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14196 fi
14197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14198 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14199 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14200   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14201 else
14202   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14203 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14204 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14205   $as_echo_n "(cached) " >&6
14206 else
14207   ac_check_lib_save_LIBS=$LIBS
14208 LIBS="-ldld  $LIBS"
14209 cat >conftest.$ac_ext <<_ACEOF
14210 /* confdefs.h.  */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h.  */
14215
14216 /* Override any GCC internal prototype to avoid an error.
14217    Use char because int might match the return type of a GCC
14218    builtin and then its argument prototype would still apply.  */
14219 #ifdef __cplusplus
14220 extern "C"
14221 #endif
14222 char dld_link ();
14223 int
14224 main ()
14225 {
14226 return dld_link ();
14227   ;
14228   return 0;
14229 }
14230 _ACEOF
14231 rm -f conftest.$ac_objext conftest$ac_exeext
14232 if { (ac_try="$ac_link"
14233 case "(($ac_try" in
14234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235   *) ac_try_echo=$ac_try;;
14236 esac
14237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14238 $as_echo "$ac_try_echo") >&5
14239   (eval "$ac_link") 2>conftest.er1
14240   ac_status=$?
14241   grep -v '^ *+' conftest.er1 >conftest.err
14242   rm -f conftest.er1
14243   cat conftest.err >&5
14244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); } && {
14246          test -z "$ac_c_werror_flag" ||
14247          test ! -s conftest.err
14248        } && test -s conftest$ac_exeext && {
14249          test "$cross_compiling" = yes ||
14250          $as_test_x conftest$ac_exeext
14251        }; then
14252   ac_cv_lib_dld_dld_link=yes
14253 else
14254   $as_echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257         ac_cv_lib_dld_dld_link=no
14258 fi
14259
14260 rm -rf conftest.dSYM
14261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14262       conftest$ac_exeext conftest.$ac_ext
14263 LIBS=$ac_check_lib_save_LIBS
14264 fi
14265 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14266 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14267 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14268   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14269 fi
14270
14271
14272 fi
14273
14274
14275 fi
14276
14277
14278 fi
14279
14280
14281 fi
14282
14283
14284 fi
14285
14286     ;;
14287   esac
14288
14289   if test "x$lt_cv_dlopen" != xno; then
14290     enable_dlopen=yes
14291   else
14292     enable_dlopen=no
14293   fi
14294
14295   case $lt_cv_dlopen in
14296   dlopen)
14297     save_CPPFLAGS="$CPPFLAGS"
14298     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14299
14300     save_LDFLAGS="$LDFLAGS"
14301     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14302
14303     save_LIBS="$LIBS"
14304     LIBS="$lt_cv_dlopen_libs $LIBS"
14305
14306     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14307 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14308 if test "${lt_cv_dlopen_self+set}" = set; then
14309   $as_echo_n "(cached) " >&6
14310 else
14311           if test "$cross_compiling" = yes; then :
14312   lt_cv_dlopen_self=cross
14313 else
14314   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14315   lt_status=$lt_dlunknown
14316   cat > conftest.$ac_ext <<_LT_EOF
14317 #line 14317 "configure"
14318 #include "confdefs.h"
14319
14320 #if HAVE_DLFCN_H
14321 #include <dlfcn.h>
14322 #endif
14323
14324 #include <stdio.h>
14325
14326 #ifdef RTLD_GLOBAL
14327 #  define LT_DLGLOBAL           RTLD_GLOBAL
14328 #else
14329 #  ifdef DL_GLOBAL
14330 #    define LT_DLGLOBAL         DL_GLOBAL
14331 #  else
14332 #    define LT_DLGLOBAL         0
14333 #  endif
14334 #endif
14335
14336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14337    find out it does not work in some platform. */
14338 #ifndef LT_DLLAZY_OR_NOW
14339 #  ifdef RTLD_LAZY
14340 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14341 #  else
14342 #    ifdef DL_LAZY
14343 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14344 #    else
14345 #      ifdef RTLD_NOW
14346 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14347 #      else
14348 #        ifdef DL_NOW
14349 #          define LT_DLLAZY_OR_NOW      DL_NOW
14350 #        else
14351 #          define LT_DLLAZY_OR_NOW      0
14352 #        endif
14353 #      endif
14354 #    endif
14355 #  endif
14356 #endif
14357
14358 void fnord() { int i=42;}
14359 int main ()
14360 {
14361   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14362   int status = $lt_dlunknown;
14363
14364   if (self)
14365     {
14366       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14367       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14368       /* dlclose (self); */
14369     }
14370   else
14371     puts (dlerror ());
14372
14373   return status;
14374 }
14375 _LT_EOF
14376   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377   (eval $ac_link) 2>&5
14378   ac_status=$?
14379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14381     (./conftest; exit; ) >&5 2>/dev/null
14382     lt_status=$?
14383     case x$lt_status in
14384       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14385       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14386       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14387     esac
14388   else :
14389     # compilation failed
14390     lt_cv_dlopen_self=no
14391   fi
14392 fi
14393 rm -fr conftest*
14394
14395
14396 fi
14397 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14398 $as_echo "$lt_cv_dlopen_self" >&6; }
14399
14400     if test "x$lt_cv_dlopen_self" = xyes; then
14401       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14402       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14404 if test "${lt_cv_dlopen_self_static+set}" = set; then
14405   $as_echo_n "(cached) " >&6
14406 else
14407           if test "$cross_compiling" = yes; then :
14408   lt_cv_dlopen_self_static=cross
14409 else
14410   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14411   lt_status=$lt_dlunknown
14412   cat > conftest.$ac_ext <<_LT_EOF
14413 #line 14413 "configure"
14414 #include "confdefs.h"
14415
14416 #if HAVE_DLFCN_H
14417 #include <dlfcn.h>
14418 #endif
14419
14420 #include <stdio.h>
14421
14422 #ifdef RTLD_GLOBAL
14423 #  define LT_DLGLOBAL           RTLD_GLOBAL
14424 #else
14425 #  ifdef DL_GLOBAL
14426 #    define LT_DLGLOBAL         DL_GLOBAL
14427 #  else
14428 #    define LT_DLGLOBAL         0
14429 #  endif
14430 #endif
14431
14432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14433    find out it does not work in some platform. */
14434 #ifndef LT_DLLAZY_OR_NOW
14435 #  ifdef RTLD_LAZY
14436 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14437 #  else
14438 #    ifdef DL_LAZY
14439 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14440 #    else
14441 #      ifdef RTLD_NOW
14442 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14443 #      else
14444 #        ifdef DL_NOW
14445 #          define LT_DLLAZY_OR_NOW      DL_NOW
14446 #        else
14447 #          define LT_DLLAZY_OR_NOW      0
14448 #        endif
14449 #      endif
14450 #    endif
14451 #  endif
14452 #endif
14453
14454 void fnord() { int i=42;}
14455 int main ()
14456 {
14457   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14458   int status = $lt_dlunknown;
14459
14460   if (self)
14461     {
14462       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14463       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14464       /* dlclose (self); */
14465     }
14466   else
14467     puts (dlerror ());
14468
14469   return status;
14470 }
14471 _LT_EOF
14472   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14473   (eval $ac_link) 2>&5
14474   ac_status=$?
14475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14477     (./conftest; exit; ) >&5 2>/dev/null
14478     lt_status=$?
14479     case x$lt_status in
14480       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14481       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14482       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14483     esac
14484   else :
14485     # compilation failed
14486     lt_cv_dlopen_self_static=no
14487   fi
14488 fi
14489 rm -fr conftest*
14490
14491
14492 fi
14493 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14494 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14495     fi
14496
14497     CPPFLAGS="$save_CPPFLAGS"
14498     LDFLAGS="$save_LDFLAGS"
14499     LIBS="$save_LIBS"
14500     ;;
14501   esac
14502
14503   case $lt_cv_dlopen_self in
14504   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14505   *) enable_dlopen_self=unknown ;;
14506   esac
14507
14508   case $lt_cv_dlopen_self_static in
14509   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14510   *) enable_dlopen_self_static=unknown ;;
14511   esac
14512 fi
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530 striplib=
14531 old_striplib=
14532 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14533 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14534 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14535   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14536   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14537   { $as_echo "$as_me:$LINENO: result: yes" >&5
14538 $as_echo "yes" >&6; }
14539 else
14540 # FIXME - insert some real tests, host_os isn't really good enough
14541   case $host_os in
14542   darwin*)
14543     if test -n "$STRIP" ; then
14544       striplib="$STRIP -x"
14545       old_striplib="$STRIP -S"
14546       { $as_echo "$as_me:$LINENO: result: yes" >&5
14547 $as_echo "yes" >&6; }
14548     else
14549       { $as_echo "$as_me:$LINENO: result: no" >&5
14550 $as_echo "no" >&6; }
14551     fi
14552     ;;
14553   *)
14554     { $as_echo "$as_me:$LINENO: result: no" >&5
14555 $as_echo "no" >&6; }
14556     ;;
14557   esac
14558 fi
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571   # Report which library types will actually be built
14572   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14573 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14574   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14575 $as_echo "$can_build_shared" >&6; }
14576
14577   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14578 $as_echo_n "checking whether to build shared libraries... " >&6; }
14579   test "$can_build_shared" = "no" && enable_shared=no
14580
14581   # On AIX, shared libraries and static libraries use the same namespace, and
14582   # are all built from PIC.
14583   case $host_os in
14584   aix3*)
14585     test "$enable_shared" = yes && enable_static=no
14586     if test -n "$RANLIB"; then
14587       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14588       postinstall_cmds='$RANLIB $lib'
14589     fi
14590     ;;
14591
14592   aix[4-9]*)
14593     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14594       test "$enable_shared" = yes && enable_static=no
14595     fi
14596     ;;
14597   esac
14598   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14599 $as_echo "$enable_shared" >&6; }
14600
14601   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14602 $as_echo_n "checking whether to build static libraries... " >&6; }
14603   # Make sure either enable_shared or enable_static is yes.
14604   test "$enable_shared" = yes || enable_static=yes
14605   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14606 $as_echo "$enable_static" >&6; }
14607
14608
14609
14610
14611 fi
14612 ac_ext=c
14613 ac_cpp='$CPP $CPPFLAGS'
14614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14617
14618 CC="$lt_save_CC"
14619
14620
14621 ac_ext=cpp
14622 ac_cpp='$CXXCPP $CPPFLAGS'
14623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14626
14627 archive_cmds_need_lc_CXX=no
14628 allow_undefined_flag_CXX=
14629 always_export_symbols_CXX=no
14630 archive_expsym_cmds_CXX=
14631 compiler_needs_object_CXX=no
14632 export_dynamic_flag_spec_CXX=
14633 hardcode_direct_CXX=no
14634 hardcode_direct_absolute_CXX=no
14635 hardcode_libdir_flag_spec_CXX=
14636 hardcode_libdir_flag_spec_ld_CXX=
14637 hardcode_libdir_separator_CXX=
14638 hardcode_minus_L_CXX=no
14639 hardcode_shlibpath_var_CXX=unsupported
14640 hardcode_automatic_CXX=no
14641 inherit_rpath_CXX=no
14642 module_cmds_CXX=
14643 module_expsym_cmds_CXX=
14644 link_all_deplibs_CXX=unknown
14645 old_archive_cmds_CXX=$old_archive_cmds
14646 no_undefined_flag_CXX=
14647 whole_archive_flag_spec_CXX=
14648 enable_shared_with_static_runtimes_CXX=no
14649
14650 # Source file extension for C++ test sources.
14651 ac_ext=cpp
14652
14653 # Object file extension for compiled C++ test sources.
14654 objext=o
14655 objext_CXX=$objext
14656
14657 # No sense in running all these tests if we already determined that
14658 # the CXX compiler isn't working.  Some variables (like enable_shared)
14659 # are currently assumed to apply to all compilers on this platform,
14660 # and will be corrupted by setting them based on a non-working compiler.
14661 if test "$_lt_caught_CXX_error" != yes; then
14662   # Code to be used in simple compile tests
14663   lt_simple_compile_test_code="int some_variable = 0;"
14664
14665   # Code to be used in simple link tests
14666   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14667
14668   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14669
14670
14671
14672
14673
14674
14675 # If no C compiler was specified, use CC.
14676 LTCC=${LTCC-"$CC"}
14677
14678 # If no C compiler flags were specified, use CFLAGS.
14679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14680
14681 # Allow CC to be a program name with arguments.
14682 compiler=$CC
14683
14684
14685   # save warnings/boilerplate of simple test code
14686   ac_outfile=conftest.$ac_objext
14687 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14688 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14689 _lt_compiler_boilerplate=`cat conftest.err`
14690 $RM conftest*
14691
14692   ac_outfile=conftest.$ac_objext
14693 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14694 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14695 _lt_linker_boilerplate=`cat conftest.err`
14696 $RM -r conftest*
14697
14698
14699   # Allow CC to be a program name with arguments.
14700   lt_save_CC=$CC
14701   lt_save_LD=$LD
14702   lt_save_GCC=$GCC
14703   GCC=$GXX
14704   lt_save_with_gnu_ld=$with_gnu_ld
14705   lt_save_path_LD=$lt_cv_path_LD
14706   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14707     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14708   else
14709     $as_unset lt_cv_prog_gnu_ld
14710   fi
14711   if test -n "${lt_cv_path_LDCXX+set}"; then
14712     lt_cv_path_LD=$lt_cv_path_LDCXX
14713   else
14714     $as_unset lt_cv_path_LD
14715   fi
14716   test -z "${LDCXX+set}" || LD=$LDCXX
14717   CC=${CXX-"c++"}
14718   compiler=$CC
14719   compiler_CXX=$CC
14720   for cc_temp in $compiler""; do
14721   case $cc_temp in
14722     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14723     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14724     \-*) ;;
14725     *) break;;
14726   esac
14727 done
14728 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14729
14730
14731   if test -n "$compiler"; then
14732     # We don't want -fno-exception when compiling C++ code, so set the
14733     # no_builtin_flag separately
14734     if test "$GXX" = yes; then
14735       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14736     else
14737       lt_prog_compiler_no_builtin_flag_CXX=
14738     fi
14739
14740     if test "$GXX" = yes; then
14741       # Set up default GNU C++ configuration
14742
14743
14744
14745 # Check whether --with-gnu-ld was given.
14746 if test "${with_gnu_ld+set}" = set; then
14747   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14748 else
14749   with_gnu_ld=no
14750 fi
14751
14752 ac_prog=ld
14753 if test "$GCC" = yes; then
14754   # Check if gcc -print-prog-name=ld gives a path.
14755   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14756 $as_echo_n "checking for ld used by $CC... " >&6; }
14757   case $host in
14758   *-*-mingw*)
14759     # gcc leaves a trailing carriage return which upsets mingw
14760     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14761   *)
14762     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14763   esac
14764   case $ac_prog in
14765     # Accept absolute paths.
14766     [\\/]* | ?:[\\/]*)
14767       re_direlt='/[^/][^/]*/\.\./'
14768       # Canonicalize the pathname of ld
14769       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14770       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14771         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14772       done
14773       test -z "$LD" && LD="$ac_prog"
14774       ;;
14775   "")
14776     # If it fails, then pretend we aren't using GCC.
14777     ac_prog=ld
14778     ;;
14779   *)
14780     # If it is relative, then search for the first ld in PATH.
14781     with_gnu_ld=unknown
14782     ;;
14783   esac
14784 elif test "$with_gnu_ld" = yes; then
14785   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14786 $as_echo_n "checking for GNU ld... " >&6; }
14787 else
14788   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14789 $as_echo_n "checking for non-GNU ld... " >&6; }
14790 fi
14791 if test "${lt_cv_path_LD+set}" = set; then
14792   $as_echo_n "(cached) " >&6
14793 else
14794   if test -z "$LD"; then
14795   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14796   for ac_dir in $PATH; do
14797     IFS="$lt_save_ifs"
14798     test -z "$ac_dir" && ac_dir=.
14799     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14800       lt_cv_path_LD="$ac_dir/$ac_prog"
14801       # Check to see if the program is GNU ld.  I'd rather use --version,
14802       # but apparently some variants of GNU ld only accept -v.
14803       # Break only if it was the GNU/non-GNU ld that we prefer.
14804       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14805       *GNU* | *'with BFD'*)
14806         test "$with_gnu_ld" != no && break
14807         ;;
14808       *)
14809         test "$with_gnu_ld" != yes && break
14810         ;;
14811       esac
14812     fi
14813   done
14814   IFS="$lt_save_ifs"
14815 else
14816   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14817 fi
14818 fi
14819
14820 LD="$lt_cv_path_LD"
14821 if test -n "$LD"; then
14822   { $as_echo "$as_me:$LINENO: result: $LD" >&5
14823 $as_echo "$LD" >&6; }
14824 else
14825   { $as_echo "$as_me:$LINENO: result: no" >&5
14826 $as_echo "no" >&6; }
14827 fi
14828 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14829 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14830    { (exit 1); exit 1; }; }
14831 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14832 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14833 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14834   $as_echo_n "(cached) " >&6
14835 else
14836   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14837 case `$LD -v 2>&1 </dev/null` in
14838 *GNU* | *'with BFD'*)
14839   lt_cv_prog_gnu_ld=yes
14840   ;;
14841 *)
14842   lt_cv_prog_gnu_ld=no
14843   ;;
14844 esac
14845 fi
14846 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14847 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14848 with_gnu_ld=$lt_cv_prog_gnu_ld
14849
14850
14851
14852
14853
14854
14855
14856       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14857       # archiving commands below assume that GNU ld is being used.
14858       if test "$with_gnu_ld" = yes; then
14859         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14860         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'
14861
14862         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14863         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14864
14865         # If archive_cmds runs LD, not CC, wlarc should be empty
14866         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14867         #     investigate it a little bit more. (MM)
14868         wlarc='${wl}'
14869
14870         # ancient GNU ld didn't support --whole-archive et. al.
14871         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14872           $GREP 'no-whole-archive' > /dev/null; then
14873           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14874         else
14875           whole_archive_flag_spec_CXX=
14876         fi
14877       else
14878         with_gnu_ld=no
14879         wlarc=
14880
14881         # A generic and very simple default shared library creation
14882         # command for GNU C++ for the case where it uses the native
14883         # linker, instead of GNU ld.  If possible, this setting should
14884         # overridden to take advantage of the native linker features on
14885         # the platform it is being used on.
14886         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14887       fi
14888
14889       # Commands to make compiler produce verbose output that lists
14890       # what "hidden" libraries, object files and flags are used when
14891       # linking a shared library.
14892       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14893
14894     else
14895       GXX=no
14896       with_gnu_ld=no
14897       wlarc=
14898     fi
14899
14900     # PORTME: fill in a description of your system's C++ link characteristics
14901     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14903     ld_shlibs_CXX=yes
14904     case $host_os in
14905       aix3*)
14906         # FIXME: insert proper C++ library support
14907         ld_shlibs_CXX=no
14908         ;;
14909       aix[4-9]*)
14910         if test "$host_cpu" = ia64; then
14911           # On IA64, the linker does run time linking by default, so we don't
14912           # have to do anything special.
14913           aix_use_runtimelinking=no
14914           exp_sym_flag='-Bexport'
14915           no_entry_flag=""
14916         else
14917           aix_use_runtimelinking=no
14918
14919           # Test if we are trying to use run time linking or normal
14920           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14921           # need to do runtime linking.
14922           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14923             for ld_flag in $LDFLAGS; do
14924               case $ld_flag in
14925               *-brtl*)
14926                 aix_use_runtimelinking=yes
14927                 break
14928                 ;;
14929               esac
14930             done
14931             ;;
14932           esac
14933
14934           exp_sym_flag='-bexport'
14935           no_entry_flag='-bnoentry'
14936         fi
14937
14938         # When large executables or shared objects are built, AIX ld can
14939         # have problems creating the table of contents.  If linking a library
14940         # or program results in "error TOC overflow" add -mminimal-toc to
14941         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14942         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14943
14944         archive_cmds_CXX=''
14945         hardcode_direct_CXX=yes
14946         hardcode_direct_absolute_CXX=yes
14947         hardcode_libdir_separator_CXX=':'
14948         link_all_deplibs_CXX=yes
14949         file_list_spec_CXX='${wl}-f,'
14950
14951         if test "$GXX" = yes; then
14952           case $host_os in aix4.[012]|aix4.[012].*)
14953           # We only want to do this on AIX 4.2 and lower, the check
14954           # below for broken collect2 doesn't work under 4.3+
14955           collect2name=`${CC} -print-prog-name=collect2`
14956           if test -f "$collect2name" &&
14957              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14958           then
14959             # We have reworked collect2
14960             :
14961           else
14962             # We have old collect2
14963             hardcode_direct_CXX=unsupported
14964             # It fails to find uninstalled libraries when the uninstalled
14965             # path is not listed in the libpath.  Setting hardcode_minus_L
14966             # to unsupported forces relinking
14967             hardcode_minus_L_CXX=yes
14968             hardcode_libdir_flag_spec_CXX='-L$libdir'
14969             hardcode_libdir_separator_CXX=
14970           fi
14971           esac
14972           shared_flag='-shared'
14973           if test "$aix_use_runtimelinking" = yes; then
14974             shared_flag="$shared_flag "'${wl}-G'
14975           fi
14976         else
14977           # not using gcc
14978           if test "$host_cpu" = ia64; then
14979           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14980           # chokes on -Wl,-G. The following line is correct:
14981           shared_flag='-G'
14982           else
14983             if test "$aix_use_runtimelinking" = yes; then
14984               shared_flag='${wl}-G'
14985             else
14986               shared_flag='${wl}-bM:SRE'
14987             fi
14988           fi
14989         fi
14990
14991         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14992         # It seems that -bexpall does not export symbols beginning with
14993         # underscore (_), so it is better to generate a list of symbols to
14994         # export.
14995         always_export_symbols_CXX=yes
14996         if test "$aix_use_runtimelinking" = yes; then
14997           # Warning - without using the other runtime loading flags (-brtl),
14998           # -berok will link without error, but may produce a broken library.
14999           allow_undefined_flag_CXX='-berok'
15000           # Determine the default libpath from the value encoded in an empty
15001           # executable.
15002           cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h.  */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h.  */
15008
15009 int
15010 main ()
15011 {
15012
15013   ;
15014   return 0;
15015 }
15016 _ACEOF
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (ac_try="$ac_link"
15019 case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15024 $as_echo "$ac_try_echo") >&5
15025   (eval "$ac_link") 2>conftest.er1
15026   ac_status=$?
15027   grep -v '^ *+' conftest.er1 >conftest.err
15028   rm -f conftest.er1
15029   cat conftest.err >&5
15030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } && {
15032          test -z "$ac_cxx_werror_flag" ||
15033          test ! -s conftest.err
15034        } && test -s conftest$ac_exeext && {
15035          test "$cross_compiling" = yes ||
15036          $as_test_x conftest$ac_exeext
15037        }; then
15038
15039 lt_aix_libpath_sed='
15040     /Import File Strings/,/^$/ {
15041         /^0/ {
15042             s/^0  *\(.*\)$/\1/
15043             p
15044         }
15045     }'
15046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15047 # Check for a 64-bit object if we didn't find anything.
15048 if test -z "$aix_libpath"; then
15049   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15050 fi
15051 else
15052   $as_echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15054
15055
15056 fi
15057
15058 rm -rf conftest.dSYM
15059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15060       conftest$ac_exeext conftest.$ac_ext
15061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15062
15063           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15064
15065           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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15066         else
15067           if test "$host_cpu" = ia64; then
15068             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15069             allow_undefined_flag_CXX="-z nodefs"
15070             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"
15071           else
15072             # Determine the default libpath from the value encoded in an
15073             # empty executable.
15074             cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080
15081 int
15082 main ()
15083 {
15084
15085   ;
15086   return 0;
15087 }
15088 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097   (eval "$ac_link") 2>conftest.er1
15098   ac_status=$?
15099   grep -v '^ *+' conftest.er1 >conftest.err
15100   rm -f conftest.er1
15101   cat conftest.err >&5
15102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); } && {
15104          test -z "$ac_cxx_werror_flag" ||
15105          test ! -s conftest.err
15106        } && test -s conftest$ac_exeext && {
15107          test "$cross_compiling" = yes ||
15108          $as_test_x conftest$ac_exeext
15109        }; then
15110
15111 lt_aix_libpath_sed='
15112     /Import File Strings/,/^$/ {
15113         /^0/ {
15114             s/^0  *\(.*\)$/\1/
15115             p
15116         }
15117     }'
15118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15119 # Check for a 64-bit object if we didn't find anything.
15120 if test -z "$aix_libpath"; then
15121   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15122 fi
15123 else
15124   $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127
15128 fi
15129
15130 rm -rf conftest.dSYM
15131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15132       conftest$ac_exeext conftest.$ac_ext
15133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15134
15135             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15136             # Warning - without using the other run time loading flags,
15137             # -berok will link without error, but may produce a broken library.
15138             no_undefined_flag_CXX=' ${wl}-bernotok'
15139             allow_undefined_flag_CXX=' ${wl}-berok'
15140             # Exported symbols can be pulled into shared objects from archives
15141             whole_archive_flag_spec_CXX='$convenience'
15142             archive_cmds_need_lc_CXX=yes
15143             # This is similar to how AIX traditionally builds its shared
15144             # libraries.
15145             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'
15146           fi
15147         fi
15148         ;;
15149
15150       beos*)
15151         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15152           allow_undefined_flag_CXX=unsupported
15153           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15154           # support --undefined.  This deserves some investigation.  FIXME
15155           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15156         else
15157           ld_shlibs_CXX=no
15158         fi
15159         ;;
15160
15161       chorus*)
15162         case $cc_basename in
15163           *)
15164           # FIXME: insert proper C++ library support
15165           ld_shlibs_CXX=no
15166           ;;
15167         esac
15168         ;;
15169
15170       cygwin* | mingw* | pw32* | cegcc*)
15171         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15172         # as there is no search path for DLLs.
15173         hardcode_libdir_flag_spec_CXX='-L$libdir'
15174         allow_undefined_flag_CXX=unsupported
15175         always_export_symbols_CXX=no
15176         enable_shared_with_static_runtimes_CXX=yes
15177
15178         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15179           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'
15180           # If the export-symbols file already is a .def file (1st line
15181           # is EXPORTS), use it as is; otherwise, prepend...
15182           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15183             cp $export_symbols $output_objdir/$soname.def;
15184           else
15185             echo EXPORTS > $output_objdir/$soname.def;
15186             cat $export_symbols >> $output_objdir/$soname.def;
15187           fi~
15188           $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'
15189         else
15190           ld_shlibs_CXX=no
15191         fi
15192         ;;
15193       darwin* | rhapsody*)
15194
15195
15196   archive_cmds_need_lc_CXX=no
15197   hardcode_direct_CXX=no
15198   hardcode_automatic_CXX=yes
15199   hardcode_shlibpath_var_CXX=unsupported
15200   whole_archive_flag_spec_CXX=''
15201   link_all_deplibs_CXX=yes
15202   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15203   case $cc_basename in
15204      ifort*) _lt_dar_can_shared=yes ;;
15205      *) _lt_dar_can_shared=$GCC ;;
15206   esac
15207   if test "$_lt_dar_can_shared" = "yes"; then
15208     output_verbose_link_cmd=echo
15209     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15210     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15211     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15212     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15213        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15214       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${_lt_dsymutil}"
15215       archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
15216     fi
15217
15218   else
15219   ld_shlibs_CXX=no
15220   fi
15221
15222         ;;
15223
15224       dgux*)
15225         case $cc_basename in
15226           ec++*)
15227             # FIXME: insert proper C++ library support
15228             ld_shlibs_CXX=no
15229             ;;
15230           ghcx*)
15231             # Green Hills C++ Compiler
15232             # FIXME: insert proper C++ library support
15233             ld_shlibs_CXX=no
15234             ;;
15235           *)
15236             # FIXME: insert proper C++ library support
15237             ld_shlibs_CXX=no
15238             ;;
15239         esac
15240         ;;
15241
15242       freebsd[12]*)
15243         # C++ shared libraries reported to be fairly broken before
15244         # switch to ELF
15245         ld_shlibs_CXX=no
15246         ;;
15247
15248       freebsd-elf*)
15249         archive_cmds_need_lc_CXX=no
15250         ;;
15251
15252       freebsd* | dragonfly*)
15253         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15254         # conventions
15255         ld_shlibs_CXX=yes
15256         ;;
15257
15258       gnu*)
15259         ;;
15260
15261       hpux9*)
15262         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15263         hardcode_libdir_separator_CXX=:
15264         export_dynamic_flag_spec_CXX='${wl}-E'
15265         hardcode_direct_CXX=yes
15266         hardcode_minus_L_CXX=yes # Not in the search PATH,
15267                                              # but as the default
15268                                              # location of the library.
15269
15270         case $cc_basename in
15271           CC*)
15272             # FIXME: insert proper C++ library support
15273             ld_shlibs_CXX=no
15274             ;;
15275           aCC*)
15276             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'
15277             # Commands to make compiler produce verbose output that lists
15278             # what "hidden" libraries, object files and flags are used when
15279             # linking a shared library.
15280             #
15281             # There doesn't appear to be a way to prevent this compiler from
15282             # explicitly linking system object files so we need to strip them
15283             # from the output so that they don't get included in the library
15284             # dependencies.
15285             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15286             ;;
15287           *)
15288             if test "$GXX" = yes; then
15289               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'
15290             else
15291               # FIXME: insert proper C++ library support
15292               ld_shlibs_CXX=no
15293             fi
15294             ;;
15295         esac
15296         ;;
15297
15298       hpux10*|hpux11*)
15299         if test $with_gnu_ld = no; then
15300           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15301           hardcode_libdir_separator_CXX=:
15302
15303           case $host_cpu in
15304             hppa*64*|ia64*)
15305               ;;
15306             *)
15307               export_dynamic_flag_spec_CXX='${wl}-E'
15308               ;;
15309           esac
15310         fi
15311         case $host_cpu in
15312           hppa*64*|ia64*)
15313             hardcode_direct_CXX=no
15314             hardcode_shlibpath_var_CXX=no
15315             ;;
15316           *)
15317             hardcode_direct_CXX=yes
15318             hardcode_direct_absolute_CXX=yes
15319             hardcode_minus_L_CXX=yes # Not in the search PATH,
15320                                                  # but as the default
15321                                                  # location of the library.
15322             ;;
15323         esac
15324
15325         case $cc_basename in
15326           CC*)
15327             # FIXME: insert proper C++ library support
15328             ld_shlibs_CXX=no
15329             ;;
15330           aCC*)
15331             case $host_cpu in
15332               hppa*64*)
15333                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15334                 ;;
15335               ia64*)
15336                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15337                 ;;
15338               *)
15339                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15340                 ;;
15341             esac
15342             # Commands to make compiler produce verbose output that lists
15343             # what "hidden" libraries, object files and flags are used when
15344             # linking a shared library.
15345             #
15346             # There doesn't appear to be a way to prevent this compiler from
15347             # explicitly linking system object files so we need to strip them
15348             # from the output so that they don't get included in the library
15349             # dependencies.
15350             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 "X$list" | $Xsed'
15351             ;;
15352           *)
15353             if test "$GXX" = yes; then
15354               if test $with_gnu_ld = no; then
15355                 case $host_cpu in
15356                   hppa*64*)
15357                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15358                     ;;
15359                   ia64*)
15360                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15361                     ;;
15362                   *)
15363                     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'
15364                     ;;
15365                 esac
15366               fi
15367             else
15368               # FIXME: insert proper C++ library support
15369               ld_shlibs_CXX=no
15370             fi
15371             ;;
15372         esac
15373         ;;
15374
15375       interix[3-9]*)
15376         hardcode_direct_CXX=no
15377         hardcode_shlibpath_var_CXX=no
15378         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15379         export_dynamic_flag_spec_CXX='${wl}-E'
15380         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15381         # Instead, shared libraries are loaded at an image base (0x10000000 by
15382         # default) and relocated if they conflict, which is a slow very memory
15383         # consuming and fragmenting process.  To avoid this, we pick a random,
15384         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15385         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15386         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'
15387         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'
15388         ;;
15389       irix5* | irix6*)
15390         case $cc_basename in
15391           CC*)
15392             # SGI C++
15393             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15394
15395             # Archives containing C++ object files must be created using
15396             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15397             # necessary to make sure instantiated templates are included
15398             # in the archive.
15399             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15400             ;;
15401           *)
15402             if test "$GXX" = yes; then
15403               if test "$with_gnu_ld" = no; then
15404                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15405               else
15406                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15407               fi
15408             fi
15409             link_all_deplibs_CXX=yes
15410             ;;
15411         esac
15412         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15413         hardcode_libdir_separator_CXX=:
15414         inherit_rpath_CXX=yes
15415         ;;
15416
15417       linux* | k*bsd*-gnu)
15418         case $cc_basename in
15419           KCC*)
15420             # Kuck and Associates, Inc. (KAI) C++ Compiler
15421
15422             # KCC will only create a shared library if the output file
15423             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15424             # to its proper name (with version) after linking.
15425             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'
15426             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'
15427             # Commands to make compiler produce verbose output that lists
15428             # what "hidden" libraries, object files and flags are used when
15429             # linking a shared library.
15430             #
15431             # There doesn't appear to be a way to prevent this compiler from
15432             # explicitly linking system object files so we need to strip them
15433             # from the output so that they don't get included in the library
15434             # dependencies.
15435             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 "X$list" | $Xsed'
15436
15437             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15438             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15439
15440             # Archives containing C++ object files must be created using
15441             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15442             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15443             ;;
15444           icpc* | ecpc* )
15445             # Intel C++
15446             with_gnu_ld=yes
15447             # version 8.0 and above of icpc choke on multiply defined symbols
15448             # if we add $predep_objects and $postdep_objects, however 7.1 and
15449             # earlier do not add the objects themselves.
15450             case `$CC -V 2>&1` in
15451               *"Version 7."*)
15452                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15453                 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'
15454                 ;;
15455               *)  # Version 8.0 or newer
15456                 tmp_idyn=
15457                 case $host_cpu in
15458                   ia64*) tmp_idyn=' -i_dynamic';;
15459                 esac
15460                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461                 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'
15462                 ;;
15463             esac
15464             archive_cmds_need_lc_CXX=no
15465             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15466             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15467             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15468             ;;
15469           pgCC* | pgcpp*)
15470             # Portland Group C++ compiler
15471             case `$CC -V` in
15472             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15473               prelink_cmds_CXX='tpldir=Template.dir~
15474                 rm -rf $tpldir~
15475                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15476                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15477               old_archive_cmds_CXX='tpldir=Template.dir~
15478                 rm -rf $tpldir~
15479                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15480                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15481                 $RANLIB $oldlib'
15482               archive_cmds_CXX='tpldir=Template.dir~
15483                 rm -rf $tpldir~
15484                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15485                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15486               archive_expsym_cmds_CXX='tpldir=Template.dir~
15487                 rm -rf $tpldir~
15488                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15489                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15490               ;;
15491             *) # Version 6 will use weak symbols
15492               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15493               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'
15494               ;;
15495             esac
15496
15497             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15498             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15499             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'
15500             ;;
15501           cxx*)
15502             # Compaq C++
15503             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504             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'
15505
15506             runpath_var=LD_RUN_PATH
15507             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15508             hardcode_libdir_separator_CXX=:
15509
15510             # Commands to make compiler produce verbose output that lists
15511             # what "hidden" libraries, object files and flags are used when
15512             # linking a shared library.
15513             #
15514             # There doesn't appear to be a way to prevent this compiler from
15515             # explicitly linking system object files so we need to strip them
15516             # from the output so that they don't get included in the library
15517             # dependencies.
15518             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15519             ;;
15520           xl*)
15521             # IBM XL 8.0 on PPC, with GNU ld
15522             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15523             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15524             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525             if test "x$supports_anon_versioning" = xyes; then
15526               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15527                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15528                 echo "local: *; };" >> $output_objdir/$libname.ver~
15529                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15530             fi
15531             ;;
15532           *)
15533             case `$CC -V 2>&1 | sed 5q` in
15534             *Sun\ C*)
15535               # Sun C++ 5.9
15536               no_undefined_flag_CXX=' -zdefs'
15537               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15538               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'
15539               hardcode_libdir_flag_spec_CXX='-R$libdir'
15540               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'
15541               compiler_needs_object_CXX=yes
15542
15543               # Not sure whether something based on
15544               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15545               # would be better.
15546               output_verbose_link_cmd='echo'
15547
15548               # Archives containing C++ object files must be created using
15549               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15550               # necessary to make sure instantiated templates are included
15551               # in the archive.
15552               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15553               ;;
15554             esac
15555             ;;
15556         esac
15557         ;;
15558
15559       lynxos*)
15560         # FIXME: insert proper C++ library support
15561         ld_shlibs_CXX=no
15562         ;;
15563
15564       m88k*)
15565         # FIXME: insert proper C++ library support
15566         ld_shlibs_CXX=no
15567         ;;
15568
15569       mvs*)
15570         case $cc_basename in
15571           cxx*)
15572             # FIXME: insert proper C++ library support
15573             ld_shlibs_CXX=no
15574             ;;
15575           *)
15576             # FIXME: insert proper C++ library support
15577             ld_shlibs_CXX=no
15578             ;;
15579         esac
15580         ;;
15581
15582       netbsd*)
15583         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15584           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15585           wlarc=
15586           hardcode_libdir_flag_spec_CXX='-R$libdir'
15587           hardcode_direct_CXX=yes
15588           hardcode_shlibpath_var_CXX=no
15589         fi
15590         # Workaround some broken pre-1.5 toolchains
15591         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15592         ;;
15593
15594       *nto* | *qnx*)
15595         ld_shlibs_CXX=yes
15596         ;;
15597
15598       openbsd2*)
15599         # C++ shared libraries are fairly broken
15600         ld_shlibs_CXX=no
15601         ;;
15602
15603       openbsd*)
15604         if test -f /usr/libexec/ld.so; then
15605           hardcode_direct_CXX=yes
15606           hardcode_shlibpath_var_CXX=no
15607           hardcode_direct_absolute_CXX=yes
15608           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15609           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15610           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15611             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15612             export_dynamic_flag_spec_CXX='${wl}-E'
15613             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15614           fi
15615           output_verbose_link_cmd=echo
15616         else
15617           ld_shlibs_CXX=no
15618         fi
15619         ;;
15620
15621       osf3* | osf4* | osf5*)
15622         case $cc_basename in
15623           KCC*)
15624             # Kuck and Associates, Inc. (KAI) C++ Compiler
15625
15626             # KCC will only create a shared library if the output file
15627             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15628             # to its proper name (with version) after linking.
15629             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'
15630
15631             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15632             hardcode_libdir_separator_CXX=:
15633
15634             # Archives containing C++ object files must be created using
15635             # the KAI C++ compiler.
15636             case $host in
15637               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15638               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15639             esac
15640             ;;
15641           RCC*)
15642             # Rational C++ 2.4.1
15643             # FIXME: insert proper C++ library support
15644             ld_shlibs_CXX=no
15645             ;;
15646           cxx*)
15647             case $host in
15648               osf3*)
15649                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15650                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15651                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15652                 ;;
15653               *)
15654                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15655                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15656                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15657                   echo "-hidden">> $lib.exp~
15658                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15659                   $RM $lib.exp'
15660                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15661                 ;;
15662             esac
15663
15664             hardcode_libdir_separator_CXX=:
15665
15666             # Commands to make compiler produce verbose output that lists
15667             # what "hidden" libraries, object files and flags are used when
15668             # linking a shared library.
15669             #
15670             # There doesn't appear to be a way to prevent this compiler from
15671             # explicitly linking system object files so we need to strip them
15672             # from the output so that they don't get included in the library
15673             # dependencies.
15674             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15675             ;;
15676           *)
15677             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15678               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15679               case $host in
15680                 osf3*)
15681                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15682                   ;;
15683                 *)
15684                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15685                   ;;
15686               esac
15687
15688               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15689               hardcode_libdir_separator_CXX=:
15690
15691               # Commands to make compiler produce verbose output that lists
15692               # what "hidden" libraries, object files and flags are used when
15693               # linking a shared library.
15694               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15695
15696             else
15697               # FIXME: insert proper C++ library support
15698               ld_shlibs_CXX=no
15699             fi
15700             ;;
15701         esac
15702         ;;
15703
15704       psos*)
15705         # FIXME: insert proper C++ library support
15706         ld_shlibs_CXX=no
15707         ;;
15708
15709       sunos4*)
15710         case $cc_basename in
15711           CC*)
15712             # Sun C++ 4.x
15713             # FIXME: insert proper C++ library support
15714             ld_shlibs_CXX=no
15715             ;;
15716           lcc*)
15717             # Lucid
15718             # FIXME: insert proper C++ library support
15719             ld_shlibs_CXX=no
15720             ;;
15721           *)
15722             # FIXME: insert proper C++ library support
15723             ld_shlibs_CXX=no
15724             ;;
15725         esac
15726         ;;
15727
15728       solaris*)
15729         case $cc_basename in
15730           CC*)
15731             # Sun C++ 4.2, 5.x and Centerline C++
15732             archive_cmds_need_lc_CXX=yes
15733             no_undefined_flag_CXX=' -zdefs'
15734             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15735             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15736               $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'
15737
15738             hardcode_libdir_flag_spec_CXX='-R$libdir'
15739             hardcode_shlibpath_var_CXX=no
15740             case $host_os in
15741               solaris2.[0-5] | solaris2.[0-5].*) ;;
15742               *)
15743                 # The compiler driver will combine and reorder linker options,
15744                 # but understands `-z linker_flag'.
15745                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15746                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15747                 ;;
15748             esac
15749             link_all_deplibs_CXX=yes
15750
15751             output_verbose_link_cmd='echo'
15752
15753             # Archives containing C++ object files must be created using
15754             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15755             # necessary to make sure instantiated templates are included
15756             # in the archive.
15757             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15758             ;;
15759           gcx*)
15760             # Green Hills C++ Compiler
15761             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15762
15763             # The C++ compiler must be used to create the archive.
15764             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15765             ;;
15766           *)
15767             # GNU C++ compiler with Solaris linker
15768             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15769               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15770               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15771                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15772                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15773                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15774
15775                 # Commands to make compiler produce verbose output that lists
15776                 # what "hidden" libraries, object files and flags are used when
15777                 # linking a shared library.
15778                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15779               else
15780                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15781                 # platform.
15782                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15783                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15784                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15785
15786                 # Commands to make compiler produce verbose output that lists
15787                 # what "hidden" libraries, object files and flags are used when
15788                 # linking a shared library.
15789                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15790               fi
15791
15792               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15793               case $host_os in
15794                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15795                 *)
15796                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15797                   ;;
15798               esac
15799             fi
15800             ;;
15801         esac
15802         ;;
15803
15804     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15805       no_undefined_flag_CXX='${wl}-z,text'
15806       archive_cmds_need_lc_CXX=no
15807       hardcode_shlibpath_var_CXX=no
15808       runpath_var='LD_RUN_PATH'
15809
15810       case $cc_basename in
15811         CC*)
15812           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15813           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15814           ;;
15815         *)
15816           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15818           ;;
15819       esac
15820       ;;
15821
15822       sysv5* | sco3.2v5* | sco5v6*)
15823         # Note: We can NOT use -z defs as we might desire, because we do not
15824         # link with -lc, and that would cause any symbols used from libc to
15825         # always be unresolved, which means just about no library would
15826         # ever link correctly.  If we're not using GNU ld we use -z text
15827         # though, which does catch some bad symbols but isn't as heavy-handed
15828         # as -z defs.
15829         no_undefined_flag_CXX='${wl}-z,text'
15830         allow_undefined_flag_CXX='${wl}-z,nodefs'
15831         archive_cmds_need_lc_CXX=no
15832         hardcode_shlibpath_var_CXX=no
15833         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15834         hardcode_libdir_separator_CXX=':'
15835         link_all_deplibs_CXX=yes
15836         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15837         runpath_var='LD_RUN_PATH'
15838
15839         case $cc_basename in
15840           CC*)
15841             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15843             ;;
15844           *)
15845             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15846             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15847             ;;
15848         esac
15849       ;;
15850
15851       tandem*)
15852         case $cc_basename in
15853           NCC*)
15854             # NonStop-UX NCC 3.20
15855             # FIXME: insert proper C++ library support
15856             ld_shlibs_CXX=no
15857             ;;
15858           *)
15859             # FIXME: insert proper C++ library support
15860             ld_shlibs_CXX=no
15861             ;;
15862         esac
15863         ;;
15864
15865       vxworks*)
15866         # FIXME: insert proper C++ library support
15867         ld_shlibs_CXX=no
15868         ;;
15869
15870       *)
15871         # FIXME: insert proper C++ library support
15872         ld_shlibs_CXX=no
15873         ;;
15874     esac
15875
15876     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15877 $as_echo "$ld_shlibs_CXX" >&6; }
15878     test "$ld_shlibs_CXX" = no && can_build_shared=no
15879
15880     GCC_CXX="$GXX"
15881     LD_CXX="$LD"
15882
15883     ## CAVEAT EMPTOR:
15884     ## There is no encapsulation within the following macros, do not change
15885     ## the running order or otherwise move them around unless you know exactly
15886     ## what you are doing...
15887     # Dependencies to place before and after the object being linked:
15888 predep_objects_CXX=
15889 postdep_objects_CXX=
15890 predeps_CXX=
15891 postdeps_CXX=
15892 compiler_lib_search_path_CXX=
15893
15894 cat > conftest.$ac_ext <<_LT_EOF
15895 class Foo
15896 {
15897 public:
15898   Foo (void) { a = 0; }
15899 private:
15900   int a;
15901 };
15902 _LT_EOF
15903
15904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905   (eval $ac_compile) 2>&5
15906   ac_status=$?
15907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; then
15909   # Parse the compiler output and extract the necessary
15910   # objects, libraries and library flags.
15911
15912   # Sentinel used to keep track of whether or not we are before
15913   # the conftest object file.
15914   pre_test_object_deps_done=no
15915
15916   for p in `eval "$output_verbose_link_cmd"`; do
15917     case $p in
15918
15919     -L* | -R* | -l*)
15920        # Some compilers place space between "-{L,R}" and the path.
15921        # Remove the space.
15922        if test $p = "-L" ||
15923           test $p = "-R"; then
15924          prev=$p
15925          continue
15926        else
15927          prev=
15928        fi
15929
15930        if test "$pre_test_object_deps_done" = no; then
15931          case $p in
15932          -L* | -R*)
15933            # Internal compiler library paths should come after those
15934            # provided the user.  The postdeps already come after the
15935            # user supplied libs so there is no need to process them.
15936            if test -z "$compiler_lib_search_path_CXX"; then
15937              compiler_lib_search_path_CXX="${prev}${p}"
15938            else
15939              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15940            fi
15941            ;;
15942          # The "-l" case would never come before the object being
15943          # linked, so don't bother handling this case.
15944          esac
15945        else
15946          if test -z "$postdeps_CXX"; then
15947            postdeps_CXX="${prev}${p}"
15948          else
15949            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15950          fi
15951        fi
15952        ;;
15953
15954     *.$objext)
15955        # This assumes that the test object file only shows up
15956        # once in the compiler output.
15957        if test "$p" = "conftest.$objext"; then
15958          pre_test_object_deps_done=yes
15959          continue
15960        fi
15961
15962        if test "$pre_test_object_deps_done" = no; then
15963          if test -z "$predep_objects_CXX"; then
15964            predep_objects_CXX="$p"
15965          else
15966            predep_objects_CXX="$predep_objects_CXX $p"
15967          fi
15968        else
15969          if test -z "$postdep_objects_CXX"; then
15970            postdep_objects_CXX="$p"
15971          else
15972            postdep_objects_CXX="$postdep_objects_CXX $p"
15973          fi
15974        fi
15975        ;;
15976
15977     *) ;; # Ignore the rest.
15978
15979     esac
15980   done
15981
15982   # Clean up.
15983   rm -f a.out a.exe
15984 else
15985   echo "libtool.m4: error: problem compiling CXX test program"
15986 fi
15987
15988 $RM -f confest.$objext
15989
15990 # PORTME: override above test on systems where it is broken
15991 case $host_os in
15992 interix[3-9]*)
15993   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15994   # hack all around it, let's just trust "g++" to DTRT.
15995   predep_objects_CXX=
15996   postdep_objects_CXX=
15997   postdeps_CXX=
15998   ;;
15999
16000 linux*)
16001   case `$CC -V 2>&1 | sed 5q` in
16002   *Sun\ C*)
16003     # Sun C++ 5.9
16004
16005     # The more standards-conforming stlport4 library is
16006     # incompatible with the Cstd library. Avoid specifying
16007     # it if it's in CXXFLAGS. Ignore libCrun as
16008     # -library=stlport4 depends on it.
16009     case " $CXX $CXXFLAGS " in
16010     *" -library=stlport4 "*)
16011       solaris_use_stlport4=yes
16012       ;;
16013     esac
16014
16015     if test "$solaris_use_stlport4" != yes; then
16016       postdeps_CXX='-library=Cstd -library=Crun'
16017     fi
16018     ;;
16019   esac
16020   ;;
16021
16022 solaris*)
16023   case $cc_basename in
16024   CC*)
16025     # The more standards-conforming stlport4 library is
16026     # incompatible with the Cstd library. Avoid specifying
16027     # it if it's in CXXFLAGS. Ignore libCrun as
16028     # -library=stlport4 depends on it.
16029     case " $CXX $CXXFLAGS " in
16030     *" -library=stlport4 "*)
16031       solaris_use_stlport4=yes
16032       ;;
16033     esac
16034
16035     # Adding this requires a known-good setup of shared libraries for
16036     # Sun compiler versions before 5.6, else PIC objects from an old
16037     # archive will be linked into the output, leading to subtle bugs.
16038     if test "$solaris_use_stlport4" != yes; then
16039       postdeps_CXX='-library=Cstd -library=Crun'
16040     fi
16041     ;;
16042   esac
16043   ;;
16044 esac
16045
16046
16047 case " $postdeps_CXX " in
16048 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16049 esac
16050  compiler_lib_search_dirs_CXX=
16051 if test -n "${compiler_lib_search_path_CXX}"; then
16052  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16053 fi
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085     lt_prog_compiler_wl_CXX=
16086 lt_prog_compiler_pic_CXX=
16087 lt_prog_compiler_static_CXX=
16088
16089 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16091
16092   # C++ specific cases for pic, static, wl, etc.
16093   if test "$GXX" = yes; then
16094     lt_prog_compiler_wl_CXX='-Wl,'
16095     lt_prog_compiler_static_CXX='-static'
16096
16097     case $host_os in
16098     aix*)
16099       # All AIX code is PIC.
16100       if test "$host_cpu" = ia64; then
16101         # AIX 5 now supports IA64 processor
16102         lt_prog_compiler_static_CXX='-Bstatic'
16103       fi
16104       ;;
16105
16106     amigaos*)
16107       case $host_cpu in
16108       powerpc)
16109             # see comment about AmigaOS4 .so support
16110             lt_prog_compiler_pic_CXX='-fPIC'
16111         ;;
16112       m68k)
16113             # FIXME: we need at least 68020 code to build shared libraries, but
16114             # adding the `-m68020' flag to GCC prevents building anything better,
16115             # like `-m68040'.
16116             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16117         ;;
16118       esac
16119       ;;
16120
16121     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16122       # PIC is the default for these OSes.
16123       ;;
16124     mingw* | cygwin* | os2* | pw32* | cegcc*)
16125       # This hack is so that the source file can tell whether it is being
16126       # built for inclusion in a dll (and should export symbols for example).
16127       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16128       # (--disable-auto-import) libraries
16129       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16130       ;;
16131     darwin* | rhapsody*)
16132       # PIC is the default on this platform
16133       # Common symbols not allowed in MH_DYLIB files
16134       lt_prog_compiler_pic_CXX='-fno-common'
16135       ;;
16136     *djgpp*)
16137       # DJGPP does not support shared libraries at all
16138       lt_prog_compiler_pic_CXX=
16139       ;;
16140     interix[3-9]*)
16141       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16142       # Instead, we relocate shared libraries at runtime.
16143       ;;
16144     sysv4*MP*)
16145       if test -d /usr/nec; then
16146         lt_prog_compiler_pic_CXX=-Kconform_pic
16147       fi
16148       ;;
16149     hpux*)
16150       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16151       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16152       # sets the default TLS model and affects inlining.
16153       case $host_cpu in
16154       hppa*64*)
16155         ;;
16156       *)
16157         lt_prog_compiler_pic_CXX='-fPIC'
16158         ;;
16159       esac
16160       ;;
16161     *qnx* | *nto*)
16162       # QNX uses GNU C++, but need to define -shared option too, otherwise
16163       # it will coredump.
16164       lt_prog_compiler_pic_CXX='-fPIC -shared'
16165       ;;
16166     *)
16167       lt_prog_compiler_pic_CXX='-fPIC'
16168       ;;
16169     esac
16170   else
16171     case $host_os in
16172       aix[4-9]*)
16173         # All AIX code is PIC.
16174         if test "$host_cpu" = ia64; then
16175           # AIX 5 now supports IA64 processor
16176           lt_prog_compiler_static_CXX='-Bstatic'
16177         else
16178           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16179         fi
16180         ;;
16181       chorus*)
16182         case $cc_basename in
16183         cxch68*)
16184           # Green Hills C++ Compiler
16185           # _LT_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"
16186           ;;
16187         esac
16188         ;;
16189       dgux*)
16190         case $cc_basename in
16191           ec++*)
16192             lt_prog_compiler_pic_CXX='-KPIC'
16193             ;;
16194           ghcx*)
16195             # Green Hills C++ Compiler
16196             lt_prog_compiler_pic_CXX='-pic'
16197             ;;
16198           *)
16199             ;;
16200         esac
16201         ;;
16202       freebsd* | dragonfly*)
16203         # FreeBSD uses GNU C++
16204         ;;
16205       hpux9* | hpux10* | hpux11*)
16206         case $cc_basename in
16207           CC*)
16208             lt_prog_compiler_wl_CXX='-Wl,'
16209             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16210             if test "$host_cpu" != ia64; then
16211               lt_prog_compiler_pic_CXX='+Z'
16212             fi
16213             ;;
16214           aCC*)
16215             lt_prog_compiler_wl_CXX='-Wl,'
16216             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16217             case $host_cpu in
16218             hppa*64*|ia64*)
16219               # +Z the default
16220               ;;
16221             *)
16222               lt_prog_compiler_pic_CXX='+Z'
16223               ;;
16224             esac
16225             ;;
16226           *)
16227             ;;
16228         esac
16229         ;;
16230       interix*)
16231         # This is c89, which is MS Visual C++ (no shared libs)
16232         # Anyone wants to do a port?
16233         ;;
16234       irix5* | irix6* | nonstopux*)
16235         case $cc_basename in
16236           CC*)
16237             lt_prog_compiler_wl_CXX='-Wl,'
16238             lt_prog_compiler_static_CXX='-non_shared'
16239             # CC pic flag -KPIC is the default.
16240             ;;
16241           *)
16242             ;;
16243         esac
16244         ;;
16245       linux* | k*bsd*-gnu)
16246         case $cc_basename in
16247           KCC*)
16248             # KAI C++ Compiler
16249             lt_prog_compiler_wl_CXX='--backend -Wl,'
16250             lt_prog_compiler_pic_CXX='-fPIC'
16251             ;;
16252           ecpc* )
16253             # old Intel C++ for x86_64 which still supported -KPIC.
16254             lt_prog_compiler_wl_CXX='-Wl,'
16255             lt_prog_compiler_pic_CXX='-KPIC'
16256             lt_prog_compiler_static_CXX='-static'
16257             ;;
16258           icpc* )
16259             # Intel C++, used to be incompatible with GCC.
16260             # ICC 10 doesn't accept -KPIC any more.
16261             lt_prog_compiler_wl_CXX='-Wl,'
16262             lt_prog_compiler_pic_CXX='-fPIC'
16263             lt_prog_compiler_static_CXX='-static'
16264             ;;
16265           pgCC* | pgcpp*)
16266             # Portland Group C++ compiler
16267             lt_prog_compiler_wl_CXX='-Wl,'
16268             lt_prog_compiler_pic_CXX='-fpic'
16269             lt_prog_compiler_static_CXX='-Bstatic'
16270             ;;
16271           cxx*)
16272             # Compaq C++
16273             # Make sure the PIC flag is empty.  It appears that all Alpha
16274             # Linux and Compaq Tru64 Unix objects are PIC.
16275             lt_prog_compiler_pic_CXX=
16276             lt_prog_compiler_static_CXX='-non_shared'
16277             ;;
16278           xlc* | xlC*)
16279             # IBM XL 8.0 on PPC
16280             lt_prog_compiler_wl_CXX='-Wl,'
16281             lt_prog_compiler_pic_CXX='-qpic'
16282             lt_prog_compiler_static_CXX='-qstaticlink'
16283             ;;
16284           *)
16285             case `$CC -V 2>&1 | sed 5q` in
16286             *Sun\ C*)
16287               # Sun C++ 5.9
16288               lt_prog_compiler_pic_CXX='-KPIC'
16289               lt_prog_compiler_static_CXX='-Bstatic'
16290               lt_prog_compiler_wl_CXX='-Qoption ld '
16291               ;;
16292             esac
16293             ;;
16294         esac
16295         ;;
16296       lynxos*)
16297         ;;
16298       m88k*)
16299         ;;
16300       mvs*)
16301         case $cc_basename in
16302           cxx*)
16303             lt_prog_compiler_pic_CXX='-W c,exportall'
16304             ;;
16305           *)
16306             ;;
16307         esac
16308         ;;
16309       netbsd*)
16310         ;;
16311       *qnx* | *nto*)
16312         # QNX uses GNU C++, but need to define -shared option too, otherwise
16313         # it will coredump.
16314         lt_prog_compiler_pic_CXX='-fPIC -shared'
16315         ;;
16316       osf3* | osf4* | osf5*)
16317         case $cc_basename in
16318           KCC*)
16319             lt_prog_compiler_wl_CXX='--backend -Wl,'
16320             ;;
16321           RCC*)
16322             # Rational C++ 2.4.1
16323             lt_prog_compiler_pic_CXX='-pic'
16324             ;;
16325           cxx*)
16326             # Digital/Compaq C++
16327             lt_prog_compiler_wl_CXX='-Wl,'
16328             # Make sure the PIC flag is empty.  It appears that all Alpha
16329             # Linux and Compaq Tru64 Unix objects are PIC.
16330             lt_prog_compiler_pic_CXX=
16331             lt_prog_compiler_static_CXX='-non_shared'
16332             ;;
16333           *)
16334             ;;
16335         esac
16336         ;;
16337       psos*)
16338         ;;
16339       solaris*)
16340         case $cc_basename in
16341           CC*)
16342             # Sun C++ 4.2, 5.x and Centerline C++
16343             lt_prog_compiler_pic_CXX='-KPIC'
16344             lt_prog_compiler_static_CXX='-Bstatic'
16345             lt_prog_compiler_wl_CXX='-Qoption ld '
16346             ;;
16347           gcx*)
16348             # Green Hills C++ Compiler
16349             lt_prog_compiler_pic_CXX='-PIC'
16350             ;;
16351           *)
16352             ;;
16353         esac
16354         ;;
16355       sunos4*)
16356         case $cc_basename in
16357           CC*)
16358             # Sun C++ 4.x
16359             lt_prog_compiler_pic_CXX='-pic'
16360             lt_prog_compiler_static_CXX='-Bstatic'
16361             ;;
16362           lcc*)
16363             # Lucid
16364             lt_prog_compiler_pic_CXX='-pic'
16365             ;;
16366           *)
16367             ;;
16368         esac
16369         ;;
16370       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16371         case $cc_basename in
16372           CC*)
16373             lt_prog_compiler_wl_CXX='-Wl,'
16374             lt_prog_compiler_pic_CXX='-KPIC'
16375             lt_prog_compiler_static_CXX='-Bstatic'
16376             ;;
16377         esac
16378         ;;
16379       tandem*)
16380         case $cc_basename in
16381           NCC*)
16382             # NonStop-UX NCC 3.20
16383             lt_prog_compiler_pic_CXX='-KPIC'
16384             ;;
16385           *)
16386             ;;
16387         esac
16388         ;;
16389       vxworks*)
16390         ;;
16391       *)
16392         lt_prog_compiler_can_build_shared_CXX=no
16393         ;;
16394     esac
16395   fi
16396
16397 case $host_os in
16398   # For platforms which do not support PIC, -DPIC is meaningless:
16399   *djgpp*)
16400     lt_prog_compiler_pic_CXX=
16401     ;;
16402   *)
16403     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16404     ;;
16405 esac
16406 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16407 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16408
16409
16410
16411 #
16412 # Check to make sure the PIC flag actually works.
16413 #
16414 if test -n "$lt_prog_compiler_pic_CXX"; then
16415   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16416 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16417 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16418   $as_echo_n "(cached) " >&6
16419 else
16420   lt_cv_prog_compiler_pic_works_CXX=no
16421    ac_outfile=conftest.$ac_objext
16422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16423    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16424    # Insert the option either (1) after the last *FLAGS variable, or
16425    # (2) before a word containing "conftest.", or (3) at the end.
16426    # Note that $ac_compile itself does not contain backslashes and begins
16427    # with a dollar sign (not a hyphen), so the echo should work correctly.
16428    # The option is referenced via a variable to avoid confusing sed.
16429    lt_compile=`echo "$ac_compile" | $SED \
16430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16432    -e 's:$: $lt_compiler_flag:'`
16433    (eval echo "\"\$as_me:16433: $lt_compile\"" >&5)
16434    (eval "$lt_compile" 2>conftest.err)
16435    ac_status=$?
16436    cat conftest.err >&5
16437    echo "$as_me:16437: \$? = $ac_status" >&5
16438    if (exit $ac_status) && test -s "$ac_outfile"; then
16439      # The compiler can only warn and ignore the option if not recognized
16440      # So say no if there are warnings other than the usual output.
16441      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16442      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16443      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16444        lt_cv_prog_compiler_pic_works_CXX=yes
16445      fi
16446    fi
16447    $RM conftest*
16448
16449 fi
16450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16451 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16452
16453 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16454     case $lt_prog_compiler_pic_CXX in
16455      "" | " "*) ;;
16456      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16457      esac
16458 else
16459     lt_prog_compiler_pic_CXX=
16460      lt_prog_compiler_can_build_shared_CXX=no
16461 fi
16462
16463 fi
16464
16465
16466
16467 #
16468 # Check to make sure the static flag actually works.
16469 #
16470 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16471 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16473 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16474   $as_echo_n "(cached) " >&6
16475 else
16476   lt_cv_prog_compiler_static_works_CXX=no
16477    save_LDFLAGS="$LDFLAGS"
16478    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16479    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16480    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16481      # The linker can only warn and ignore the option if not recognized
16482      # So say no if there are warnings
16483      if test -s conftest.err; then
16484        # Append any errors to the config.log.
16485        cat conftest.err 1>&5
16486        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16487        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488        if diff conftest.exp conftest.er2 >/dev/null; then
16489          lt_cv_prog_compiler_static_works_CXX=yes
16490        fi
16491      else
16492        lt_cv_prog_compiler_static_works_CXX=yes
16493      fi
16494    fi
16495    $RM -r conftest*
16496    LDFLAGS="$save_LDFLAGS"
16497
16498 fi
16499 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16500 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16501
16502 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16503     :
16504 else
16505     lt_prog_compiler_static_CXX=
16506 fi
16507
16508
16509
16510
16511     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16513 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16514   $as_echo_n "(cached) " >&6
16515 else
16516   lt_cv_prog_compiler_c_o_CXX=no
16517    $RM -r conftest 2>/dev/null
16518    mkdir conftest
16519    cd conftest
16520    mkdir out
16521    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16522
16523    lt_compiler_flag="-o out/conftest2.$ac_objext"
16524    # Insert the option either (1) after the last *FLAGS variable, or
16525    # (2) before a word containing "conftest.", or (3) at the end.
16526    # Note that $ac_compile itself does not contain backslashes and begins
16527    # with a dollar sign (not a hyphen), so the echo should work correctly.
16528    lt_compile=`echo "$ac_compile" | $SED \
16529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16531    -e 's:$: $lt_compiler_flag:'`
16532    (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16533    (eval "$lt_compile" 2>out/conftest.err)
16534    ac_status=$?
16535    cat out/conftest.err >&5
16536    echo "$as_me:16536: \$? = $ac_status" >&5
16537    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16538    then
16539      # The compiler can only warn and ignore the option if not recognized
16540      # So say no if there are warnings
16541      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16542      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16543      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16544        lt_cv_prog_compiler_c_o_CXX=yes
16545      fi
16546    fi
16547    chmod u+w . 2>&5
16548    $RM conftest*
16549    # SGI C++ compiler will create directory out/ii_files/ for
16550    # template instantiation
16551    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16552    $RM out/* && rmdir out
16553    cd ..
16554    $RM -r conftest
16555    $RM conftest*
16556
16557 fi
16558 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16559 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16560
16561
16562
16563     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16565 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16566   $as_echo_n "(cached) " >&6
16567 else
16568   lt_cv_prog_compiler_c_o_CXX=no
16569    $RM -r conftest 2>/dev/null
16570    mkdir conftest
16571    cd conftest
16572    mkdir out
16573    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16574
16575    lt_compiler_flag="-o out/conftest2.$ac_objext"
16576    # Insert the option either (1) after the last *FLAGS variable, or
16577    # (2) before a word containing "conftest.", or (3) at the end.
16578    # Note that $ac_compile itself does not contain backslashes and begins
16579    # with a dollar sign (not a hyphen), so the echo should work correctly.
16580    lt_compile=`echo "$ac_compile" | $SED \
16581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16583    -e 's:$: $lt_compiler_flag:'`
16584    (eval echo "\"\$as_me:16584: $lt_compile\"" >&5)
16585    (eval "$lt_compile" 2>out/conftest.err)
16586    ac_status=$?
16587    cat out/conftest.err >&5
16588    echo "$as_me:16588: \$? = $ac_status" >&5
16589    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16590    then
16591      # The compiler can only warn and ignore the option if not recognized
16592      # So say no if there are warnings
16593      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16594      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16595      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16596        lt_cv_prog_compiler_c_o_CXX=yes
16597      fi
16598    fi
16599    chmod u+w . 2>&5
16600    $RM conftest*
16601    # SGI C++ compiler will create directory out/ii_files/ for
16602    # template instantiation
16603    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16604    $RM out/* && rmdir out
16605    cd ..
16606    $RM -r conftest
16607    $RM conftest*
16608
16609 fi
16610 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16611 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16612
16613
16614
16615
16616 hard_links="nottested"
16617 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16618   # do not overwrite the value of need_locks provided by the user
16619   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16620 $as_echo_n "checking if we can lock with hard links... " >&6; }
16621   hard_links=yes
16622   $RM conftest*
16623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16624   touch conftest.a
16625   ln conftest.a conftest.b 2>&5 || hard_links=no
16626   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16627   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16628 $as_echo "$hard_links" >&6; }
16629   if test "$hard_links" = no; then
16630     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16631 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16632     need_locks=warn
16633   fi
16634 else
16635   need_locks=no
16636 fi
16637
16638
16639
16640     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16642
16643   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16644   case $host_os in
16645   aix[4-9]*)
16646     # If we're using GNU nm, then we don't want the "-C" option.
16647     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16648     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16649       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'
16650     else
16651       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'
16652     fi
16653     ;;
16654   pw32*)
16655     export_symbols_cmds_CXX="$ltdll_cmds"
16656   ;;
16657   cygwin* | mingw* | cegcc*)
16658     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'
16659   ;;
16660   *)
16661     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16662   ;;
16663   esac
16664   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16665
16666 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16667 $as_echo "$ld_shlibs_CXX" >&6; }
16668 test "$ld_shlibs_CXX" = no && can_build_shared=no
16669
16670 with_gnu_ld_CXX=$with_gnu_ld
16671
16672
16673
16674
16675
16676
16677 #
16678 # Do we need to explicitly link libc?
16679 #
16680 case "x$archive_cmds_need_lc_CXX" in
16681 x|xyes)
16682   # Assume -lc should be added
16683   archive_cmds_need_lc_CXX=yes
16684
16685   if test "$enable_shared" = yes && test "$GCC" = yes; then
16686     case $archive_cmds_CXX in
16687     *'~'*)
16688       # FIXME: we may have to deal with multi-command sequences.
16689       ;;
16690     '$CC '*)
16691       # Test whether the compiler implicitly links with -lc since on some
16692       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16693       # to ld, don't add -lc before -lgcc.
16694       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16696       $RM conftest*
16697       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16698
16699       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700   (eval $ac_compile) 2>&5
16701   ac_status=$?
16702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } 2>conftest.err; then
16704         soname=conftest
16705         lib=conftest
16706         libobjs=conftest.$ac_objext
16707         deplibs=
16708         wl=$lt_prog_compiler_wl_CXX
16709         pic_flag=$lt_prog_compiler_pic_CXX
16710         compiler_flags=-v
16711         linker_flags=-v
16712         verstring=
16713         output_objdir=.
16714         libname=conftest
16715         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16716         allow_undefined_flag_CXX=
16717         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16718   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16719   ac_status=$?
16720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }
16722         then
16723           archive_cmds_need_lc_CXX=no
16724         else
16725           archive_cmds_need_lc_CXX=yes
16726         fi
16727         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16728       else
16729         cat conftest.err 1>&5
16730       fi
16731       $RM conftest*
16732       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16733 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16734       ;;
16735     esac
16736   fi
16737   ;;
16738 esac
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16804 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16805
16806 library_names_spec=
16807 libname_spec='lib$name'
16808 soname_spec=
16809 shrext_cmds=".so"
16810 postinstall_cmds=
16811 postuninstall_cmds=
16812 finish_cmds=
16813 finish_eval=
16814 shlibpath_var=
16815 shlibpath_overrides_runpath=unknown
16816 version_type=none
16817 dynamic_linker="$host_os ld.so"
16818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16819 need_lib_prefix=unknown
16820 hardcode_into_libs=no
16821
16822 # when you set need_version to no, make sure it does not cause -set_version
16823 # flags to be left without arguments
16824 need_version=unknown
16825
16826 case $host_os in
16827 aix3*)
16828   version_type=linux
16829   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16830   shlibpath_var=LIBPATH
16831
16832   # AIX 3 has no versioning support, so we append a major version to the name.
16833   soname_spec='${libname}${release}${shared_ext}$major'
16834   ;;
16835
16836 aix[4-9]*)
16837   version_type=linux
16838   need_lib_prefix=no
16839   need_version=no
16840   hardcode_into_libs=yes
16841   if test "$host_cpu" = ia64; then
16842     # AIX 5 supports IA64
16843     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16844     shlibpath_var=LD_LIBRARY_PATH
16845   else
16846     # With GCC up to 2.95.x, collect2 would create an import file
16847     # for dependence libraries.  The import file would start with
16848     # the line `#! .'.  This would cause the generated library to
16849     # depend on `.', always an invalid library.  This was fixed in
16850     # development snapshots of GCC prior to 3.0.
16851     case $host_os in
16852       aix4 | aix4.[01] | aix4.[01].*)
16853       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16854            echo ' yes '
16855            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16856         :
16857       else
16858         can_build_shared=no
16859       fi
16860       ;;
16861     esac
16862     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16863     # soname into executable. Probably we can add versioning support to
16864     # collect2, so additional links can be useful in future.
16865     if test "$aix_use_runtimelinking" = yes; then
16866       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16867       # instead of lib<name>.a to let people know that these are not
16868       # typical AIX shared libraries.
16869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870     else
16871       # We preserve .a as extension for shared libraries through AIX4.2
16872       # and later when we are not doing run time linking.
16873       library_names_spec='${libname}${release}.a $libname.a'
16874       soname_spec='${libname}${release}${shared_ext}$major'
16875     fi
16876     shlibpath_var=LIBPATH
16877   fi
16878   ;;
16879
16880 amigaos*)
16881   case $host_cpu in
16882   powerpc)
16883     # Since July 2007 AmigaOS4 officially supports .so libraries.
16884     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886     ;;
16887   m68k)
16888     library_names_spec='$libname.ixlibrary $libname.a'
16889     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16890     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'
16891     ;;
16892   esac
16893   ;;
16894
16895 beos*)
16896   library_names_spec='${libname}${shared_ext}'
16897   dynamic_linker="$host_os ld.so"
16898   shlibpath_var=LIBRARY_PATH
16899   ;;
16900
16901 bsdi[45]*)
16902   version_type=linux
16903   need_version=no
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905   soname_spec='${libname}${release}${shared_ext}$major'
16906   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16907   shlibpath_var=LD_LIBRARY_PATH
16908   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16909   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16910   # the default ld.so.conf also contains /usr/contrib/lib and
16911   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16912   # libtool to hard-code these into programs
16913   ;;
16914
16915 cygwin* | mingw* | pw32* | cegcc*)
16916   version_type=windows
16917   shrext_cmds=".dll"
16918   need_version=no
16919   need_lib_prefix=no
16920
16921   case $GCC,$host_os in
16922   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16923     library_names_spec='$libname.dll.a'
16924     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16925     postinstall_cmds='base_file=`basename \${file}`~
16926       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16927       dldir=$destdir/`dirname \$dlpath`~
16928       test -d \$dldir || mkdir -p \$dldir~
16929       $install_prog $dir/$dlname \$dldir/$dlname~
16930       chmod a+x \$dldir/$dlname~
16931       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16932         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16933       fi'
16934     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16935       dlpath=$dir/\$dldll~
16936        $RM \$dlpath'
16937     shlibpath_overrides_runpath=yes
16938
16939     case $host_os in
16940     cygwin*)
16941       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16942       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16943       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16944       ;;
16945     mingw* | cegcc*)
16946       # MinGW DLLs use traditional 'lib' prefix
16947       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16949       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16950         # It is most probably a Windows format PATH printed by
16951         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16952         # path with ; separators, and with drive letters. We can handle the
16953         # drive letters (cygwin fileutils understands them), so leave them,
16954         # especially as we might pass files found there to a mingw objdump,
16955         # which wouldn't understand a cygwinified path. Ahh.
16956         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16957       else
16958         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16959       fi
16960       ;;
16961     pw32*)
16962       # pw32 DLLs use 'pw' prefix rather than 'lib'
16963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16964       ;;
16965     esac
16966     ;;
16967
16968   *)
16969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16970     ;;
16971   esac
16972   dynamic_linker='Win32 ld.exe'
16973   # FIXME: first we should search . and the directory the executable is in
16974   shlibpath_var=PATH
16975   ;;
16976
16977 darwin* | rhapsody*)
16978   dynamic_linker="$host_os dyld"
16979   version_type=darwin
16980   need_lib_prefix=no
16981   need_version=no
16982   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16983   soname_spec='${libname}${release}${major}$shared_ext'
16984   shlibpath_overrides_runpath=yes
16985   shlibpath_var=DYLD_LIBRARY_PATH
16986   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16987
16988   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16989   ;;
16990
16991 dgux*)
16992   version_type=linux
16993   need_lib_prefix=no
16994   need_version=no
16995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16996   soname_spec='${libname}${release}${shared_ext}$major'
16997   shlibpath_var=LD_LIBRARY_PATH
16998   ;;
16999
17000 freebsd1*)
17001   dynamic_linker=no
17002   ;;
17003
17004 freebsd* | dragonfly*)
17005   # DragonFly does not have aout.  When/if they implement a new
17006   # versioning mechanism, adjust this.
17007   if test -x /usr/bin/objformat; then
17008     objformat=`/usr/bin/objformat`
17009   else
17010     case $host_os in
17011     freebsd[123]*) objformat=aout ;;
17012     *) objformat=elf ;;
17013     esac
17014   fi
17015   version_type=freebsd-$objformat
17016   case $version_type in
17017     freebsd-elf*)
17018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17019       need_version=no
17020       need_lib_prefix=no
17021       ;;
17022     freebsd-*)
17023       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17024       need_version=yes
17025       ;;
17026   esac
17027   shlibpath_var=LD_LIBRARY_PATH
17028   case $host_os in
17029   freebsd2*)
17030     shlibpath_overrides_runpath=yes
17031     ;;
17032   freebsd3.[01]* | freebsdelf3.[01]*)
17033     shlibpath_overrides_runpath=yes
17034     hardcode_into_libs=yes
17035     ;;
17036   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17037   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17038     shlibpath_overrides_runpath=no
17039     hardcode_into_libs=yes
17040     ;;
17041   *) # from 4.6 on, and DragonFly
17042     shlibpath_overrides_runpath=yes
17043     hardcode_into_libs=yes
17044     ;;
17045   esac
17046   ;;
17047
17048 gnu*)
17049   version_type=linux
17050   need_lib_prefix=no
17051   need_version=no
17052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17053   soname_spec='${libname}${release}${shared_ext}$major'
17054   shlibpath_var=LD_LIBRARY_PATH
17055   hardcode_into_libs=yes
17056   ;;
17057
17058 hpux9* | hpux10* | hpux11*)
17059   # Give a soname corresponding to the major version so that dld.sl refuses to
17060   # link against other versions.
17061   version_type=sunos
17062   need_lib_prefix=no
17063   need_version=no
17064   case $host_cpu in
17065   ia64*)
17066     shrext_cmds='.so'
17067     hardcode_into_libs=yes
17068     dynamic_linker="$host_os dld.so"
17069     shlibpath_var=LD_LIBRARY_PATH
17070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072     soname_spec='${libname}${release}${shared_ext}$major'
17073     if test "X$HPUX_IA64_MODE" = X32; then
17074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17075     else
17076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17077     fi
17078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17079     ;;
17080   hppa*64*)
17081     shrext_cmds='.sl'
17082     hardcode_into_libs=yes
17083     dynamic_linker="$host_os dld.sl"
17084     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087     soname_spec='${libname}${release}${shared_ext}$major'
17088     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17090     ;;
17091   *)
17092     shrext_cmds='.sl'
17093     dynamic_linker="$host_os dld.sl"
17094     shlibpath_var=SHLIB_PATH
17095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097     soname_spec='${libname}${release}${shared_ext}$major'
17098     ;;
17099   esac
17100   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17101   postinstall_cmds='chmod 555 $lib'
17102   ;;
17103
17104 interix[3-9]*)
17105   version_type=linux
17106   need_lib_prefix=no
17107   need_version=no
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17111   shlibpath_var=LD_LIBRARY_PATH
17112   shlibpath_overrides_runpath=no
17113   hardcode_into_libs=yes
17114   ;;
17115
17116 irix5* | irix6* | nonstopux*)
17117   case $host_os in
17118     nonstopux*) version_type=nonstopux ;;
17119     *)
17120         if test "$lt_cv_prog_gnu_ld" = yes; then
17121                 version_type=linux
17122         else
17123                 version_type=irix
17124         fi ;;
17125   esac
17126   need_lib_prefix=no
17127   need_version=no
17128   soname_spec='${libname}${release}${shared_ext}$major'
17129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17130   case $host_os in
17131   irix5* | nonstopux*)
17132     libsuff= shlibsuff=
17133     ;;
17134   *)
17135     case $LD in # libtool.m4 will add one of these switches to LD
17136     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17137       libsuff= shlibsuff= libmagic=32-bit;;
17138     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17139       libsuff=32 shlibsuff=N32 libmagic=N32;;
17140     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17141       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17142     *) libsuff= shlibsuff= libmagic=never-match;;
17143     esac
17144     ;;
17145   esac
17146   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17147   shlibpath_overrides_runpath=no
17148   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17149   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17150   hardcode_into_libs=yes
17151   ;;
17152
17153 # No shared lib support for Linux oldld, aout, or coff.
17154 linux*oldld* | linux*aout* | linux*coff*)
17155   dynamic_linker=no
17156   ;;
17157
17158 # This must be Linux ELF.
17159 linux* | k*bsd*-gnu)
17160   version_type=linux
17161   need_lib_prefix=no
17162   need_version=no
17163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164   soname_spec='${libname}${release}${shared_ext}$major'
17165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17166   shlibpath_var=LD_LIBRARY_PATH
17167   shlibpath_overrides_runpath=no
17168   # Some binutils ld are patched to set DT_RUNPATH
17169   save_LDFLAGS=$LDFLAGS
17170   save_libdir=$libdir
17171   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17172        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17173   cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179
17180 int
17181 main ()
17182 {
17183
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196   (eval "$ac_link") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } && {
17203          test -z "$ac_cxx_werror_flag" ||
17204          test ! -s conftest.err
17205        } && test -s conftest$ac_exeext && {
17206          test "$cross_compiling" = yes ||
17207          $as_test_x conftest$ac_exeext
17208        }; then
17209   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17210   shlibpath_overrides_runpath=yes
17211 fi
17212
17213 else
17214   $as_echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217
17218 fi
17219
17220 rm -rf conftest.dSYM
17221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17222       conftest$ac_exeext conftest.$ac_ext
17223   LDFLAGS=$save_LDFLAGS
17224   libdir=$save_libdir
17225
17226   # This implies no fast_install, which is unacceptable.
17227   # Some rework will be needed to allow for fast_install
17228   # before this can be enabled.
17229   hardcode_into_libs=yes
17230
17231   # Add ABI-specific directories to the system library path.
17232   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
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="$sys_lib_dlsearch_path_spec $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 netbsd*)
17250   version_type=sunos
17251   need_lib_prefix=no
17252   need_version=no
17253   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256     dynamic_linker='NetBSD (a.out) ld.so'
17257   else
17258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259     soname_spec='${libname}${release}${shared_ext}$major'
17260     dynamic_linker='NetBSD ld.elf_so'
17261   fi
17262   shlibpath_var=LD_LIBRARY_PATH
17263   shlibpath_overrides_runpath=yes
17264   hardcode_into_libs=yes
17265   ;;
17266
17267 newsos6)
17268   version_type=linux
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270   shlibpath_var=LD_LIBRARY_PATH
17271   shlibpath_overrides_runpath=yes
17272   ;;
17273
17274 *nto* | *qnx*)
17275   version_type=qnx
17276   need_lib_prefix=no
17277   need_version=no
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279   soname_spec='${libname}${release}${shared_ext}$major'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   shlibpath_overrides_runpath=no
17282   hardcode_into_libs=yes
17283   dynamic_linker='ldqnx.so'
17284   ;;
17285
17286 openbsd*)
17287   version_type=sunos
17288   sys_lib_dlsearch_path_spec="/usr/lib"
17289   need_lib_prefix=no
17290   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17291   case $host_os in
17292     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17293     *)                          need_version=no  ;;
17294   esac
17295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17297   shlibpath_var=LD_LIBRARY_PATH
17298   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17299     case $host_os in
17300       openbsd2.[89] | openbsd2.[89].*)
17301         shlibpath_overrides_runpath=no
17302         ;;
17303       *)
17304         shlibpath_overrides_runpath=yes
17305         ;;
17306       esac
17307   else
17308     shlibpath_overrides_runpath=yes
17309   fi
17310   ;;
17311
17312 os2*)
17313   libname_spec='$name'
17314   shrext_cmds=".dll"
17315   need_lib_prefix=no
17316   library_names_spec='$libname${shared_ext} $libname.a'
17317   dynamic_linker='OS/2 ld.exe'
17318   shlibpath_var=LIBPATH
17319   ;;
17320
17321 osf3* | osf4* | osf5*)
17322   version_type=osf
17323   need_lib_prefix=no
17324   need_version=no
17325   soname_spec='${libname}${release}${shared_ext}$major'
17326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327   shlibpath_var=LD_LIBRARY_PATH
17328   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17329   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17330   ;;
17331
17332 rdos*)
17333   dynamic_linker=no
17334   ;;
17335
17336 solaris*)
17337   version_type=linux
17338   need_lib_prefix=no
17339   need_version=no
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   shlibpath_var=LD_LIBRARY_PATH
17343   shlibpath_overrides_runpath=yes
17344   hardcode_into_libs=yes
17345   # ldd complains unless libraries are executable
17346   postinstall_cmds='chmod +x $lib'
17347   ;;
17348
17349 sunos4*)
17350   version_type=sunos
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   shlibpath_overrides_runpath=yes
17355   if test "$with_gnu_ld" = yes; then
17356     need_lib_prefix=no
17357   fi
17358   need_version=yes
17359   ;;
17360
17361 sysv4 | sysv4.3*)
17362   version_type=linux
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   case $host_vendor in
17367     sni)
17368       shlibpath_overrides_runpath=no
17369       need_lib_prefix=no
17370       runpath_var=LD_RUN_PATH
17371       ;;
17372     siemens)
17373       need_lib_prefix=no
17374       ;;
17375     motorola)
17376       need_lib_prefix=no
17377       need_version=no
17378       shlibpath_overrides_runpath=no
17379       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17380       ;;
17381   esac
17382   ;;
17383
17384 sysv4*MP*)
17385   if test -d /usr/nec ;then
17386     version_type=linux
17387     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17388     soname_spec='$libname${shared_ext}.$major'
17389     shlibpath_var=LD_LIBRARY_PATH
17390   fi
17391   ;;
17392
17393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17394   version_type=freebsd-elf
17395   need_lib_prefix=no
17396   need_version=no
17397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17398   soname_spec='${libname}${release}${shared_ext}$major'
17399   shlibpath_var=LD_LIBRARY_PATH
17400   shlibpath_overrides_runpath=yes
17401   hardcode_into_libs=yes
17402   if test "$with_gnu_ld" = yes; then
17403     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17404   else
17405     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17406     case $host_os in
17407       sco3.2v5*)
17408         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17409         ;;
17410     esac
17411   fi
17412   sys_lib_dlsearch_path_spec='/usr/lib'
17413   ;;
17414
17415 tpf*)
17416   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17417   version_type=linux
17418   need_lib_prefix=no
17419   need_version=no
17420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421   shlibpath_var=LD_LIBRARY_PATH
17422   shlibpath_overrides_runpath=no
17423   hardcode_into_libs=yes
17424   ;;
17425
17426 uts4*)
17427   version_type=linux
17428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429   soname_spec='${libname}${release}${shared_ext}$major'
17430   shlibpath_var=LD_LIBRARY_PATH
17431   ;;
17432
17433 *)
17434   dynamic_linker=no
17435   ;;
17436 esac
17437 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17438 $as_echo "$dynamic_linker" >&6; }
17439 test "$dynamic_linker" = no && can_build_shared=no
17440
17441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17442 if test "$GCC" = yes; then
17443   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17444 fi
17445
17446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17447   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17448 fi
17449 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17450   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17451 fi
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17489 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17490 hardcode_action_CXX=
17491 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17492    test -n "$runpath_var_CXX" ||
17493    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17494
17495   # We can hardcode non-existent directories.
17496   if test "$hardcode_direct_CXX" != no &&
17497      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17498      # have to relink, otherwise we might link with an installed library
17499      # when we should be linking with a yet-to-be-installed one
17500      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17501      test "$hardcode_minus_L_CXX" != no; then
17502     # Linking always hardcodes the temporary library directory.
17503     hardcode_action_CXX=relink
17504   else
17505     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17506     hardcode_action_CXX=immediate
17507   fi
17508 else
17509   # We cannot hardcode anything, or else we can only hardcode existing
17510   # directories.
17511   hardcode_action_CXX=unsupported
17512 fi
17513 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17514 $as_echo "$hardcode_action_CXX" >&6; }
17515
17516 if test "$hardcode_action_CXX" = relink ||
17517    test "$inherit_rpath_CXX" = yes; then
17518   # Fast installation is not supported
17519   enable_fast_install=no
17520 elif test "$shlibpath_overrides_runpath" = yes ||
17521      test "$enable_shared" = no; then
17522   # Fast installation is not necessary
17523   enable_fast_install=needless
17524 fi
17525
17526
17527
17528
17529
17530
17531
17532   fi # test -n "$compiler"
17533
17534   CC=$lt_save_CC
17535   LDCXX=$LD
17536   LD=$lt_save_LD
17537   GCC=$lt_save_GCC
17538   with_gnu_ld=$lt_save_with_gnu_ld
17539   lt_cv_path_LDCXX=$lt_cv_path_LD
17540   lt_cv_path_LD=$lt_save_path_LD
17541   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17542   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17543 fi # test "$_lt_caught_CXX_error" != yes
17544
17545 ac_ext=c
17546 ac_cpp='$CPP $CPPFLAGS'
17547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563         ac_config_commands="$ac_config_commands libtool"
17564
17565
17566
17567
17568 # Only expand once:
17569
17570
17571 if test "x$CC" != xcc; then
17572   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
17573 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17574 else
17575   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
17576 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17577 fi
17578 set dummy $CC; ac_cc=`$as_echo "$2" |
17579                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17580 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
17581   $as_echo_n "(cached) " >&6
17582 else
17583   cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589
17590 int
17591 main ()
17592 {
17593
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 # Make sure it works both with $CC and with simple cc.
17599 # We do the test twice because some compilers refuse to overwrite an
17600 # existing .o file with -o, though they will create one.
17601 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17602 rm -f conftest2.*
17603 if { (case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17608 $as_echo "$ac_try_echo") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } &&
17613    test -f conftest2.$ac_objext && { (case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17618 $as_echo "$ac_try_echo") >&5
17619   (eval "$ac_try") 2>&5
17620   ac_status=$?
17621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); };
17623 then
17624   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17625   if test "x$CC" != xcc; then
17626     # Test first that cc exists at all.
17627     if { ac_try='cc -c conftest.$ac_ext >&5'
17628   { (case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17633 $as_echo "$ac_try_echo") >&5
17634   (eval "$ac_try") 2>&5
17635   ac_status=$?
17636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17639       rm -f conftest2.*
17640       if { (case "(($ac_try" in
17641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642   *) ac_try_echo=$ac_try;;
17643 esac
17644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17645 $as_echo "$ac_try_echo") >&5
17646   (eval "$ac_try") 2>&5
17647   ac_status=$?
17648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } &&
17650          test -f conftest2.$ac_objext && { (case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17655 $as_echo "$ac_try_echo") >&5
17656   (eval "$ac_try") 2>&5
17657   ac_status=$?
17658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); };
17660       then
17661         # cc works too.
17662         :
17663       else
17664         # cc exists but doesn't like -o.
17665         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17666       fi
17667     fi
17668   fi
17669 else
17670   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17671 fi
17672 rm -f core conftest*
17673
17674 fi
17675 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17676   { $as_echo "$as_me:$LINENO: result: yes" >&5
17677 $as_echo "yes" >&6; }
17678 else
17679   { $as_echo "$as_me:$LINENO: result: no" >&5
17680 $as_echo "no" >&6; }
17681
17682 cat >>confdefs.h <<\_ACEOF
17683 #define NO_MINUS_C_MINUS_O 1
17684 _ACEOF
17685
17686 fi
17687
17688 # FIXME: we rely on the cache variable name because
17689 # there is no other way.
17690 set dummy $CC
17691 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17692 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17693 if test "$am_t" != yes; then
17694    # Losing compiler, so override with the script.
17695    # FIXME: It is wrong to rewrite CC.
17696    # But if we don't then we get into trouble of one sort or another.
17697    # A longer-term fix would be to have automake use am__CC in this case,
17698    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17699    CC="$am_aux_dir/compile $CC"
17700 fi
17701
17702
17703
17704 if test "x$cross_compiling" = "xno"; then
17705         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17706 else
17707         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17708 fi
17709
17710
17711
17712 if test -n "$ac_tool_prefix"; then
17713   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17714 set dummy ${ac_tool_prefix}ar; ac_word=$2
17715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17716 $as_echo_n "checking for $ac_word... " >&6; }
17717 if test "${ac_cv_prog_AR+set}" = set; then
17718   $as_echo_n "(cached) " >&6
17719 else
17720   if test -n "$AR"; then
17721   ac_cv_prog_AR="$AR" # Let the user override the test.
17722 else
17723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17724 for as_dir in $PATH
17725 do
17726   IFS=$as_save_IFS
17727   test -z "$as_dir" && as_dir=.
17728   for ac_exec_ext in '' $ac_executable_extensions; do
17729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17730     ac_cv_prog_AR="${ac_tool_prefix}ar"
17731     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17732     break 2
17733   fi
17734 done
17735 done
17736 IFS=$as_save_IFS
17737
17738 fi
17739 fi
17740 AR=$ac_cv_prog_AR
17741 if test -n "$AR"; then
17742   { $as_echo "$as_me:$LINENO: result: $AR" >&5
17743 $as_echo "$AR" >&6; }
17744 else
17745   { $as_echo "$as_me:$LINENO: result: no" >&5
17746 $as_echo "no" >&6; }
17747 fi
17748
17749
17750 fi
17751 if test -z "$ac_cv_prog_AR"; then
17752   ac_ct_AR=$AR
17753   # Extract the first word of "ar", so it can be a program name with args.
17754 set dummy ar; ac_word=$2
17755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17756 $as_echo_n "checking for $ac_word... " >&6; }
17757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17758   $as_echo_n "(cached) " >&6
17759 else
17760   if test -n "$ac_ct_AR"; then
17761   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17762 else
17763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764 for as_dir in $PATH
17765 do
17766   IFS=$as_save_IFS
17767   test -z "$as_dir" && as_dir=.
17768   for ac_exec_ext in '' $ac_executable_extensions; do
17769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17770     ac_cv_prog_ac_ct_AR="ar"
17771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17772     break 2
17773   fi
17774 done
17775 done
17776 IFS=$as_save_IFS
17777
17778 fi
17779 fi
17780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17781 if test -n "$ac_ct_AR"; then
17782   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17783 $as_echo "$ac_ct_AR" >&6; }
17784 else
17785   { $as_echo "$as_me:$LINENO: result: no" >&5
17786 $as_echo "no" >&6; }
17787 fi
17788
17789   if test "x$ac_ct_AR" = x; then
17790     AR=""
17791   else
17792     case $cross_compiling:$ac_tool_warned in
17793 yes:)
17794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17796 ac_tool_warned=yes ;;
17797 esac
17798     AR=$ac_ct_AR
17799   fi
17800 else
17801   AR="$ac_cv_prog_AR"
17802 fi
17803
17804 if test -n "$ac_tool_prefix"; then
17805   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17806 set dummy ${ac_tool_prefix}ld; ac_word=$2
17807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if test "${ac_cv_prog_LD+set}" = set; then
17810   $as_echo_n "(cached) " >&6
17811 else
17812   if test -n "$LD"; then
17813   ac_cv_prog_LD="$LD" # Let the user override the test.
17814 else
17815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17816 for as_dir in $PATH
17817 do
17818   IFS=$as_save_IFS
17819   test -z "$as_dir" && as_dir=.
17820   for ac_exec_ext in '' $ac_executable_extensions; do
17821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17822     ac_cv_prog_LD="${ac_tool_prefix}ld"
17823     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17824     break 2
17825   fi
17826 done
17827 done
17828 IFS=$as_save_IFS
17829
17830 fi
17831 fi
17832 LD=$ac_cv_prog_LD
17833 if test -n "$LD"; then
17834   { $as_echo "$as_me:$LINENO: result: $LD" >&5
17835 $as_echo "$LD" >&6; }
17836 else
17837   { $as_echo "$as_me:$LINENO: result: no" >&5
17838 $as_echo "no" >&6; }
17839 fi
17840
17841
17842 fi
17843 if test -z "$ac_cv_prog_LD"; then
17844   ac_ct_LD=$LD
17845   # Extract the first word of "ld", so it can be a program name with args.
17846 set dummy ld; ac_word=$2
17847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17848 $as_echo_n "checking for $ac_word... " >&6; }
17849 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
17850   $as_echo_n "(cached) " >&6
17851 else
17852   if test -n "$ac_ct_LD"; then
17853   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17854 else
17855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17856 for as_dir in $PATH
17857 do
17858   IFS=$as_save_IFS
17859   test -z "$as_dir" && as_dir=.
17860   for ac_exec_ext in '' $ac_executable_extensions; do
17861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17862     ac_cv_prog_ac_ct_LD="ld"
17863     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17864     break 2
17865   fi
17866 done
17867 done
17868 IFS=$as_save_IFS
17869
17870 fi
17871 fi
17872 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17873 if test -n "$ac_ct_LD"; then
17874   { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
17875 $as_echo "$ac_ct_LD" >&6; }
17876 else
17877   { $as_echo "$as_me:$LINENO: result: no" >&5
17878 $as_echo "no" >&6; }
17879 fi
17880
17881   if test "x$ac_ct_LD" = x; then
17882     LD=""
17883   else
17884     case $cross_compiling:$ac_tool_warned in
17885 yes:)
17886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17888 ac_tool_warned=yes ;;
17889 esac
17890     LD=$ac_ct_LD
17891   fi
17892 else
17893   LD="$ac_cv_prog_LD"
17894 fi
17895
17896
17897 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17898 $as_echo_n "checking for ANSI C header files... " >&6; }
17899 if test "${ac_cv_header_stdc+set}" = set; then
17900   $as_echo_n "(cached) " >&6
17901 else
17902   cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h.  */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h.  */
17908 #include <stdlib.h>
17909 #include <stdarg.h>
17910 #include <string.h>
17911 #include <float.h>
17912
17913 int
17914 main ()
17915 {
17916
17917   ;
17918   return 0;
17919 }
17920 _ACEOF
17921 rm -f conftest.$ac_objext
17922 if { (ac_try="$ac_compile"
17923 case "(($ac_try" in
17924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925   *) ac_try_echo=$ac_try;;
17926 esac
17927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17928 $as_echo "$ac_try_echo") >&5
17929   (eval "$ac_compile") 2>conftest.er1
17930   ac_status=$?
17931   grep -v '^ *+' conftest.er1 >conftest.err
17932   rm -f conftest.er1
17933   cat conftest.err >&5
17934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } && {
17936          test -z "$ac_c_werror_flag" ||
17937          test ! -s conftest.err
17938        } && test -s conftest.$ac_objext; then
17939   ac_cv_header_stdc=yes
17940 else
17941   $as_echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17943
17944         ac_cv_header_stdc=no
17945 fi
17946
17947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17948
17949 if test $ac_cv_header_stdc = yes; then
17950   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 #include <string.h>
17958
17959 _ACEOF
17960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17961   $EGREP "memchr" >/dev/null 2>&1; then
17962   :
17963 else
17964   ac_cv_header_stdc=no
17965 fi
17966 rm -f conftest*
17967
17968 fi
17969
17970 if test $ac_cv_header_stdc = yes; then
17971   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17972   cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978 #include <stdlib.h>
17979
17980 _ACEOF
17981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17982   $EGREP "free" >/dev/null 2>&1; then
17983   :
17984 else
17985   ac_cv_header_stdc=no
17986 fi
17987 rm -f conftest*
17988
17989 fi
17990
17991 if test $ac_cv_header_stdc = yes; then
17992   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17993   if test "$cross_compiling" = yes; then
17994   :
17995 else
17996   cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h.  */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h.  */
18002 #include <ctype.h>
18003 #include <stdlib.h>
18004 #if ((' ' & 0x0FF) == 0x020)
18005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18007 #else
18008 # define ISLOWER(c) \
18009                    (('a' <= (c) && (c) <= 'i') \
18010                      || ('j' <= (c) && (c) <= 'r') \
18011                      || ('s' <= (c) && (c) <= 'z'))
18012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18013 #endif
18014
18015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18016 int
18017 main ()
18018 {
18019   int i;
18020   for (i = 0; i < 256; i++)
18021     if (XOR (islower (i), ISLOWER (i))
18022         || toupper (i) != TOUPPER (i))
18023       return 2;
18024   return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest$ac_exeext
18028 if { (ac_try="$ac_link"
18029 case "(($ac_try" in
18030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031   *) ac_try_echo=$ac_try;;
18032 esac
18033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18034 $as_echo "$ac_try_echo") >&5
18035   (eval "$ac_link") 2>&5
18036   ac_status=$?
18037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18039   { (case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18044 $as_echo "$ac_try_echo") >&5
18045   (eval "$ac_try") 2>&5
18046   ac_status=$?
18047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; }; then
18049   :
18050 else
18051   $as_echo "$as_me: program exited with status $ac_status" >&5
18052 $as_echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ( exit $ac_status )
18056 ac_cv_header_stdc=no
18057 fi
18058 rm -rf conftest.dSYM
18059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18060 fi
18061
18062
18063 fi
18064 fi
18065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18066 $as_echo "$ac_cv_header_stdc" >&6; }
18067 if test $ac_cv_header_stdc = yes; then
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define STDC_HEADERS 1
18071 _ACEOF
18072
18073 fi
18074
18075
18076   { $as_echo "$as_me:$LINENO: checking for GNU libc2" >&5
18077 $as_echo_n "checking for GNU libc2... " >&6; }
18078   if test "${knfsd_cv_glibc2+set}" = set; then
18079   $as_echo_n "(cached) " >&6
18080 else
18081   cat >conftest.$ac_ext <<_ACEOF
18082 /* confdefs.h.  */
18083 _ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h.  */
18087
18088       #include <features.h>
18089       #if !defined(__GLIBC__)
18090       # error Nope
18091       #endif
18092
18093 _ACEOF
18094 if { (ac_try="$ac_cpp conftest.$ac_ext"
18095 case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100 $as_echo "$ac_try_echo") >&5
18101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } >/dev/null && {
18108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18109          test ! -s conftest.err
18110        }; then
18111   knfsd_cv_glibc2=yes
18112 else
18113   $as_echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18115
18116   knfsd_cv_glibc2=no
18117 fi
18118
18119 rm -f conftest.err conftest.$ac_ext
18120 fi
18121
18122   { $as_echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
18123 $as_echo "$knfsd_cv_glibc2" >&6; }
18124   if test $knfsd_cv_glibc2 = yes; then
18125     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18126     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
18127   fi
18128
18129
18130   { $as_echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
18131 $as_echo_n "checking for BSD signal semantics... " >&6; }
18132   if test "${knfsd_cv_bsd_signals+set}" = set; then
18133   $as_echo_n "(cached) " >&6
18134 else
18135   if test "$cross_compiling" = yes; then
18136
18137       case "$host_os" in
18138         *linux*) knfsd_cv_bsd_signals=no;;
18139         *bsd*)   knfsd_cv_bsd_signals=yes;;
18140         *)       { { $as_echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
18141 $as_echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
18142    { (exit 1); exit 1; }; };;
18143       esac
18144
18145 else
18146   cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h.  */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h.  */
18152
18153         #include <signal.h>
18154         #include <unistd.h>
18155         #include <sys/wait.h>
18156
18157         static int counter = 0;
18158         static RETSIGTYPE handler(int num) { counter++; }
18159
18160         int main()
18161         {
18162                 int     s;
18163                 if ((s = fork()) < 0) return 1;
18164                 if (s != 0) {
18165                         if (wait(&s) < 0) return 1;
18166                         return WIFSIGNALED(s)? 1 : 0;
18167                 }
18168
18169                 signal(SIGHUP, handler);
18170                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
18171                 return (counter == 2)? 0 : 1;
18172         }
18173
18174 _ACEOF
18175 rm -f conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18182 $as_echo "$ac_try_echo") >&5
18183   (eval "$ac_link") 2>&5
18184   ac_status=$?
18185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18192 $as_echo "$ac_try_echo") >&5
18193   (eval "$ac_try") 2>&5
18194   ac_status=$?
18195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; }; then
18197   knfsd_cv_bsd_signals=yes
18198 else
18199   $as_echo "$as_me: program exited with status $ac_status" >&5
18200 $as_echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203 ( exit $ac_status )
18204 knfsd_cv_bsd_signals=no
18205 fi
18206 rm -rf conftest.dSYM
18207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18208 fi
18209
18210
18211 fi
18212      { $as_echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
18213 $as_echo "$knfsd_cv_bsd_signals" >&6; }
18214     test $knfsd_cv_bsd_signals = yes &&
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE_BSD_SIGNALS 1
18217 _ACEOF
18218
18219
18220
18221
18222 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
18223 $as_echo_n "checking for gethostbyname... " >&6; }
18224 if test "${ac_cv_func_gethostbyname+set}" = set; then
18225   $as_echo_n "(cached) " >&6
18226 else
18227   cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h.  */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h.  */
18233 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18235 #define gethostbyname innocuous_gethostbyname
18236
18237 /* System header to define __stub macros and hopefully few prototypes,
18238     which can conflict with char gethostbyname (); below.
18239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18240     <limits.h> exists even on freestanding compilers.  */
18241
18242 #ifdef __STDC__
18243 # include <limits.h>
18244 #else
18245 # include <assert.h>
18246 #endif
18247
18248 #undef gethostbyname
18249
18250 /* Override any GCC internal prototype to avoid an error.
18251    Use char because int might match the return type of a GCC
18252    builtin and then its argument prototype would still apply.  */
18253 #ifdef __cplusplus
18254 extern "C"
18255 #endif
18256 char gethostbyname ();
18257 /* The GNU C library defines this for functions which it implements
18258     to always fail with ENOSYS.  Some functions are actually named
18259     something starting with __ and the normal name is an alias.  */
18260 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18261 choke me
18262 #endif
18263
18264 int
18265 main ()
18266 {
18267 return gethostbyname ();
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
18274 case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18279 $as_echo "$ac_try_echo") >&5
18280   (eval "$ac_link") 2>conftest.er1
18281   ac_status=$?
18282   grep -v '^ *+' conftest.er1 >conftest.err
18283   rm -f conftest.er1
18284   cat conftest.err >&5
18285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); } && {
18287          test -z "$ac_c_werror_flag" ||
18288          test ! -s conftest.err
18289        } && test -s conftest$ac_exeext && {
18290          test "$cross_compiling" = yes ||
18291          $as_test_x conftest$ac_exeext
18292        }; then
18293   ac_cv_func_gethostbyname=yes
18294 else
18295   $as_echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18297
18298         ac_cv_func_gethostbyname=no
18299 fi
18300
18301 rm -rf conftest.dSYM
18302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18303       conftest$ac_exeext conftest.$ac_ext
18304 fi
18305 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18306 $as_echo "$ac_cv_func_gethostbyname" >&6; }
18307 if test "x$ac_cv_func_gethostbyname" = x""yes; then
18308   :
18309 else
18310   { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18311 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18312 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18313   $as_echo_n "(cached) " >&6
18314 else
18315   ac_check_lib_save_LIBS=$LIBS
18316 LIBS="-lnsl  $LIBS"
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h.  */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h.  */
18323
18324 /* Override any GCC internal prototype to avoid an error.
18325    Use char because int might match the return type of a GCC
18326    builtin and then its argument prototype would still apply.  */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 char gethostbyname ();
18331 int
18332 main ()
18333 {
18334 return gethostbyname ();
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343   *) ac_try_echo=$ac_try;;
18344 esac
18345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18346 $as_echo "$ac_try_echo") >&5
18347   (eval "$ac_link") 2>conftest.er1
18348   ac_status=$?
18349   grep -v '^ *+' conftest.er1 >conftest.err
18350   rm -f conftest.er1
18351   cat conftest.err >&5
18352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); } && {
18354          test -z "$ac_c_werror_flag" ||
18355          test ! -s conftest.err
18356        } && test -s conftest$ac_exeext && {
18357          test "$cross_compiling" = yes ||
18358          $as_test_x conftest$ac_exeext
18359        }; then
18360   ac_cv_lib_nsl_gethostbyname=yes
18361 else
18362   $as_echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365         ac_cv_lib_nsl_gethostbyname=no
18366 fi
18367
18368 rm -rf conftest.dSYM
18369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18370       conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18372 fi
18373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18374 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18375 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
18376   LIBNSL="-lnsl"
18377 fi
18378
18379 fi
18380
18381
18382
18383 { $as_echo "$as_me:$LINENO: checking for connect" >&5
18384 $as_echo_n "checking for connect... " >&6; }
18385 if test "${ac_cv_func_connect+set}" = set; then
18386   $as_echo_n "(cached) " >&6
18387 else
18388   cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h.  */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h.  */
18394 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18396 #define connect innocuous_connect
18397
18398 /* System header to define __stub macros and hopefully few prototypes,
18399     which can conflict with char connect (); below.
18400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18401     <limits.h> exists even on freestanding compilers.  */
18402
18403 #ifdef __STDC__
18404 # include <limits.h>
18405 #else
18406 # include <assert.h>
18407 #endif
18408
18409 #undef connect
18410
18411 /* Override any GCC internal prototype to avoid an error.
18412    Use char because int might match the return type of a GCC
18413    builtin and then its argument prototype would still apply.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 char connect ();
18418 /* The GNU C library defines this for functions which it implements
18419     to always fail with ENOSYS.  Some functions are actually named
18420     something starting with __ and the normal name is an alias.  */
18421 #if defined __stub_connect || defined __stub___connect
18422 choke me
18423 #endif
18424
18425 int
18426 main ()
18427 {
18428 return connect ();
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18440 $as_echo "$ac_try_echo") >&5
18441   (eval "$ac_link") 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } && {
18448          test -z "$ac_c_werror_flag" ||
18449          test ! -s conftest.err
18450        } && test -s conftest$ac_exeext && {
18451          test "$cross_compiling" = yes ||
18452          $as_test_x conftest$ac_exeext
18453        }; then
18454   ac_cv_func_connect=yes
18455 else
18456   $as_echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459         ac_cv_func_connect=no
18460 fi
18461
18462 rm -rf conftest.dSYM
18463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18464       conftest$ac_exeext conftest.$ac_ext
18465 fi
18466 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18467 $as_echo "$ac_cv_func_connect" >&6; }
18468 if test "x$ac_cv_func_connect" = x""yes; then
18469   :
18470 else
18471   { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18472 $as_echo_n "checking for connect in -lsocket... " >&6; }
18473 if test "${ac_cv_lib_socket_connect+set}" = set; then
18474   $as_echo_n "(cached) " >&6
18475 else
18476   ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lsocket $LIBNSL $LIBS"
18478 cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484
18485 /* Override any GCC internal prototype to avoid an error.
18486    Use char because int might match the return type of a GCC
18487    builtin and then its argument prototype would still apply.  */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 char connect ();
18492 int
18493 main ()
18494 {
18495 return connect ();
18496   ;
18497   return 0;
18498 }
18499 _ACEOF
18500 rm -f conftest.$ac_objext conftest$ac_exeext
18501 if { (ac_try="$ac_link"
18502 case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18507 $as_echo "$ac_try_echo") >&5
18508   (eval "$ac_link") 2>conftest.er1
18509   ac_status=$?
18510   grep -v '^ *+' conftest.er1 >conftest.err
18511   rm -f conftest.er1
18512   cat conftest.err >&5
18513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); } && {
18515          test -z "$ac_c_werror_flag" ||
18516          test ! -s conftest.err
18517        } && test -s conftest$ac_exeext && {
18518          test "$cross_compiling" = yes ||
18519          $as_test_x conftest$ac_exeext
18520        }; then
18521   ac_cv_lib_socket_connect=yes
18522 else
18523   $as_echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18525
18526         ac_cv_lib_socket_connect=no
18527 fi
18528
18529 rm -rf conftest.dSYM
18530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18531       conftest$ac_exeext conftest.$ac_ext
18532 LIBS=$ac_check_lib_save_LIBS
18533 fi
18534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18535 $as_echo "$ac_cv_lib_socket_connect" >&6; }
18536 if test "x$ac_cv_lib_socket_connect" = x""yes; then
18537   LIBSOCKET="-lsocket"
18538 else
18539   { { $as_echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
18540 $as_echo "$as_me: error: Function 'socket' not found." >&2;}
18541    { (exit 1); exit 1; }; }
18542 fi
18543
18544 fi
18545
18546
18547 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18548 $as_echo_n "checking for getaddrinfo... " >&6; }
18549 if test "${ac_cv_func_getaddrinfo+set}" = set; then
18550   $as_echo_n "(cached) " >&6
18551 else
18552   cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h.  */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h.  */
18558 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
18559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18560 #define getaddrinfo innocuous_getaddrinfo
18561
18562 /* System header to define __stub macros and hopefully few prototypes,
18563     which can conflict with char getaddrinfo (); below.
18564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18565     <limits.h> exists even on freestanding compilers.  */
18566
18567 #ifdef __STDC__
18568 # include <limits.h>
18569 #else
18570 # include <assert.h>
18571 #endif
18572
18573 #undef getaddrinfo
18574
18575 /* Override any GCC internal prototype to avoid an error.
18576    Use char because int might match the return type of a GCC
18577    builtin and then its argument prototype would still apply.  */
18578 #ifdef __cplusplus
18579 extern "C"
18580 #endif
18581 char getaddrinfo ();
18582 /* The GNU C library defines this for functions which it implements
18583     to always fail with ENOSYS.  Some functions are actually named
18584     something starting with __ and the normal name is an alias.  */
18585 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
18586 choke me
18587 #endif
18588
18589 int
18590 main ()
18591 {
18592 return getaddrinfo ();
18593   ;
18594   return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18604 $as_echo "$ac_try_echo") >&5
18605   (eval "$ac_link") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_c_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest$ac_exeext && {
18615          test "$cross_compiling" = yes ||
18616          $as_test_x conftest$ac_exeext
18617        }; then
18618   ac_cv_func_getaddrinfo=yes
18619 else
18620   $as_echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623         ac_cv_func_getaddrinfo=no
18624 fi
18625
18626 rm -rf conftest.dSYM
18627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18628       conftest$ac_exeext conftest.$ac_ext
18629 fi
18630 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
18631 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
18632 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
18633   :
18634 else
18635   { { $as_echo "$as_me:$LINENO: error: Function 'getaddrinfo' not found." >&5
18636 $as_echo "$as_me: error: Function 'getaddrinfo' not found." >&2;}
18637    { (exit 1); exit 1; }; }
18638 fi
18639
18640
18641 { $as_echo "$as_me:$LINENO: checking for getrpcbynumber" >&5
18642 $as_echo_n "checking for getrpcbynumber... " >&6; }
18643 if test "${ac_cv_func_getrpcbynumber+set}" = set; then
18644   $as_echo_n "(cached) " >&6
18645 else
18646   cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h.  */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h.  */
18652 /* Define getrpcbynumber to an innocuous variant, in case <limits.h> declares getrpcbynumber.
18653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18654 #define getrpcbynumber innocuous_getrpcbynumber
18655
18656 /* System header to define __stub macros and hopefully few prototypes,
18657     which can conflict with char getrpcbynumber (); below.
18658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18659     <limits.h> exists even on freestanding compilers.  */
18660
18661 #ifdef __STDC__
18662 # include <limits.h>
18663 #else
18664 # include <assert.h>
18665 #endif
18666
18667 #undef getrpcbynumber
18668
18669 /* Override any GCC internal prototype to avoid an error.
18670    Use char because int might match the return type of a GCC
18671    builtin and then its argument prototype would still apply.  */
18672 #ifdef __cplusplus
18673 extern "C"
18674 #endif
18675 char getrpcbynumber ();
18676 /* The GNU C library defines this for functions which it implements
18677     to always fail with ENOSYS.  Some functions are actually named
18678     something starting with __ and the normal name is an alias.  */
18679 #if defined __stub_getrpcbynumber || defined __stub___getrpcbynumber
18680 choke me
18681 #endif
18682
18683 int
18684 main ()
18685 {
18686 return getrpcbynumber ();
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18698 $as_echo "$ac_try_echo") >&5
18699   (eval "$ac_link") 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } && {
18706          test -z "$ac_c_werror_flag" ||
18707          test ! -s conftest.err
18708        } && test -s conftest$ac_exeext && {
18709          test "$cross_compiling" = yes ||
18710          $as_test_x conftest$ac_exeext
18711        }; then
18712   ac_cv_func_getrpcbynumber=yes
18713 else
18714   $as_echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717         ac_cv_func_getrpcbynumber=no
18718 fi
18719
18720 rm -rf conftest.dSYM
18721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18722       conftest$ac_exeext conftest.$ac_ext
18723 fi
18724 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getrpcbynumber" >&5
18725 $as_echo "$ac_cv_func_getrpcbynumber" >&6; }
18726 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then
18727   :
18728 else
18729   { { $as_echo "$as_me:$LINENO: error: Function 'getrpcbynumber' not found." >&5
18730 $as_echo "$as_me: error: Function 'getrpcbynumber' not found." >&2;}
18731    { (exit 1); exit 1; }; }
18732 fi
18733
18734
18735 { $as_echo "$as_me:$LINENO: checking for getservbyname" >&5
18736 $as_echo_n "checking for getservbyname... " >&6; }
18737 if test "${ac_cv_func_getservbyname+set}" = set; then
18738   $as_echo_n "(cached) " >&6
18739 else
18740   cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746 /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
18747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18748 #define getservbyname innocuous_getservbyname
18749
18750 /* System header to define __stub macros and hopefully few prototypes,
18751     which can conflict with char getservbyname (); below.
18752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18753     <limits.h> exists even on freestanding compilers.  */
18754
18755 #ifdef __STDC__
18756 # include <limits.h>
18757 #else
18758 # include <assert.h>
18759 #endif
18760
18761 #undef getservbyname
18762
18763 /* Override any GCC internal prototype to avoid an error.
18764    Use char because int might match the return type of a GCC
18765    builtin and then its argument prototype would still apply.  */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char getservbyname ();
18770 /* The GNU C library defines this for functions which it implements
18771     to always fail with ENOSYS.  Some functions are actually named
18772     something starting with __ and the normal name is an alias.  */
18773 #if defined __stub_getservbyname || defined __stub___getservbyname
18774 choke me
18775 #endif
18776
18777 int
18778 main ()
18779 {
18780 return getservbyname ();
18781   ;
18782   return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18792 $as_echo "$ac_try_echo") >&5
18793   (eval "$ac_link") 2>conftest.er1
18794   ac_status=$?
18795   grep -v '^ *+' conftest.er1 >conftest.err
18796   rm -f conftest.er1
18797   cat conftest.err >&5
18798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } && {
18800          test -z "$ac_c_werror_flag" ||
18801          test ! -s conftest.err
18802        } && test -s conftest$ac_exeext && {
18803          test "$cross_compiling" = yes ||
18804          $as_test_x conftest$ac_exeext
18805        }; then
18806   ac_cv_func_getservbyname=yes
18807 else
18808   $as_echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811         ac_cv_func_getservbyname=no
18812 fi
18813
18814 rm -rf conftest.dSYM
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816       conftest$ac_exeext conftest.$ac_ext
18817 fi
18818 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
18819 $as_echo "$ac_cv_func_getservbyname" >&6; }
18820 if test "x$ac_cv_func_getservbyname" = x""yes; then
18821   :
18822 else
18823   { { $as_echo "$as_me:$LINENO: error: Function 'getservbyname' not found." >&5
18824 $as_echo "$as_me: error: Function 'getservbyname' not found." >&2;}
18825    { (exit 1); exit 1; }; }
18826 fi
18827
18828
18829 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18830 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18831 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18832   $as_echo_n "(cached) " >&6
18833 else
18834   ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-lcrypt  $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842
18843 /* Override any GCC internal prototype to avoid an error.
18844    Use char because int might match the return type of a GCC
18845    builtin and then its argument prototype would still apply.  */
18846 #ifdef __cplusplus
18847 extern "C"
18848 #endif
18849 char crypt ();
18850 int
18851 main ()
18852 {
18853 return crypt ();
18854   ;
18855   return 0;
18856 }
18857 _ACEOF
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862   *) ac_try_echo=$ac_try;;
18863 esac
18864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866   (eval "$ac_link") 2>conftest.er1
18867   ac_status=$?
18868   grep -v '^ *+' conftest.er1 >conftest.err
18869   rm -f conftest.er1
18870   cat conftest.err >&5
18871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); } && {
18873          test -z "$ac_c_werror_flag" ||
18874          test ! -s conftest.err
18875        } && test -s conftest$ac_exeext && {
18876          test "$cross_compiling" = yes ||
18877          $as_test_x conftest$ac_exeext
18878        }; then
18879   ac_cv_lib_crypt_crypt=yes
18880 else
18881   $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884         ac_cv_lib_crypt_crypt=no
18885 fi
18886
18887 rm -rf conftest.dSYM
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889       conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18891 fi
18892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18893 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18894 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
18895   LIBCRYPT="-lcrypt"
18896 fi
18897
18898
18899 if test "$enable_nfsv4" = yes; then
18900
18901
18902     { $as_echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
18903 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
18904 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
18905   $as_echo_n "(cached) " >&6
18906 else
18907   ac_check_lib_save_LIBS=$LIBS
18908 LIBS="-levent  $LIBS"
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h.  */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h.  */
18915
18916 /* Override any GCC internal prototype to avoid an error.
18917    Use char because int might match the return type of a GCC
18918    builtin and then its argument prototype would still apply.  */
18919 #ifdef __cplusplus
18920 extern "C"
18921 #endif
18922 char event_dispatch ();
18923 int
18924 main ()
18925 {
18926 return event_dispatch ();
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18938 $as_echo "$ac_try_echo") >&5
18939   (eval "$ac_link") 2>conftest.er1
18940   ac_status=$?
18941   grep -v '^ *+' conftest.er1 >conftest.err
18942   rm -f conftest.er1
18943   cat conftest.err >&5
18944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); } && {
18946          test -z "$ac_c_werror_flag" ||
18947          test ! -s conftest.err
18948        } && test -s conftest$ac_exeext && {
18949          test "$cross_compiling" = yes ||
18950          $as_test_x conftest$ac_exeext
18951        }; then
18952   ac_cv_lib_event_event_dispatch=yes
18953 else
18954   $as_echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18956
18957         ac_cv_lib_event_event_dispatch=no
18958 fi
18959
18960 rm -rf conftest.dSYM
18961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18962       conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18964 fi
18965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
18966 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
18967 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then
18968   libevent=1
18969 else
18970   { { $as_echo "$as_me:$LINENO: error: libevent not found." >&5
18971 $as_echo "$as_me: error: libevent not found." >&2;}
18972    { (exit 1); exit 1; }; }
18973 fi
18974
18975
18976
18977 for ac_header in event.h
18978 do
18979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18981   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18982 $as_echo_n "checking for $ac_header... " >&6; }
18983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18984   $as_echo_n "(cached) " >&6
18985 fi
18986 ac_res=`eval 'as_val=${'$as_ac_Header'}
18987                  $as_echo "$as_val"'`
18988                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18989 $as_echo "$ac_res" >&6; }
18990 else
18991   # Is the header compilable?
18992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18993 $as_echo_n "checking $ac_header usability... " >&6; }
18994 cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000 $ac_includes_default
19001 #include <$ac_header>
19002 _ACEOF
19003 rm -f conftest.$ac_objext
19004 if { (ac_try="$ac_compile"
19005 case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19010 $as_echo "$ac_try_echo") >&5
19011   (eval "$ac_compile") 2>conftest.er1
19012   ac_status=$?
19013   grep -v '^ *+' conftest.er1 >conftest.err
19014   rm -f conftest.er1
19015   cat conftest.err >&5
19016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); } && {
19018          test -z "$ac_c_werror_flag" ||
19019          test ! -s conftest.err
19020        } && test -s conftest.$ac_objext; then
19021   ac_header_compiler=yes
19022 else
19023   $as_echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19025
19026         ac_header_compiler=no
19027 fi
19028
19029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19031 $as_echo "$ac_header_compiler" >&6; }
19032
19033 # Is the header present?
19034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19035 $as_echo_n "checking $ac_header presence... " >&6; }
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h.  */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h.  */
19042 #include <$ac_header>
19043 _ACEOF
19044 if { (ac_try="$ac_cpp conftest.$ac_ext"
19045 case "(($ac_try" in
19046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047   *) ac_try_echo=$ac_try;;
19048 esac
19049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19050 $as_echo "$ac_try_echo") >&5
19051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19052   ac_status=$?
19053   grep -v '^ *+' conftest.er1 >conftest.err
19054   rm -f conftest.er1
19055   cat conftest.err >&5
19056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); } >/dev/null && {
19058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19059          test ! -s conftest.err
19060        }; then
19061   ac_header_preproc=yes
19062 else
19063   $as_echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066   ac_header_preproc=no
19067 fi
19068
19069 rm -f conftest.err conftest.$ac_ext
19070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19071 $as_echo "$ac_header_preproc" >&6; }
19072
19073 # So?  What about this header?
19074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19075   yes:no: )
19076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19080     ac_header_preproc=yes
19081     ;;
19082   no:yes:* )
19083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19086 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19090 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19095     ( cat <<\_ASBOX
19096 ## ---------------------------------------- ##
19097 ## Report this to linux-nfs@vger.kernel.org ##
19098 ## ---------------------------------------- ##
19099 _ASBOX
19100      ) | sed "s/^/$as_me: WARNING:     /" >&2
19101     ;;
19102 esac
19103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19104 $as_echo_n "checking for $ac_header... " >&6; }
19105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19106   $as_echo_n "(cached) " >&6
19107 else
19108   eval "$as_ac_Header=\$ac_header_preproc"
19109 fi
19110 ac_res=`eval 'as_val=${'$as_ac_Header'}
19111                  $as_echo "$as_val"'`
19112                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
19114
19115 fi
19116 as_val=`eval 'as_val=${'$as_ac_Header'}
19117                  $as_echo "$as_val"'`
19118    if test "x$as_val" = x""yes; then
19119   cat >>confdefs.h <<_ACEOF
19120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19121 _ACEOF
19122
19123 else
19124   { { $as_echo "$as_me:$LINENO: error: libevent headers not found." >&5
19125 $as_echo "$as_me: error: libevent headers not found." >&2;}
19126    { (exit 1); exit 1; }; }
19127 fi
19128
19129 done
19130
19131
19132
19133
19134
19135
19136     { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
19137 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
19138 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
19139   $as_echo_n "(cached) " >&6
19140 else
19141   ac_check_lib_save_LIBS=$LIBS
19142 LIBS="-lnfsidmap  $LIBS"
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h.  */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h.  */
19149
19150 /* Override any GCC internal prototype to avoid an error.
19151    Use char because int might match the return type of a GCC
19152    builtin and then its argument prototype would still apply.  */
19153 #ifdef __cplusplus
19154 extern "C"
19155 #endif
19156 char nfs4_init_name_mapping ();
19157 int
19158 main ()
19159 {
19160 return nfs4_init_name_mapping ();
19161   ;
19162   return 0;
19163 }
19164 _ACEOF
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (ac_try="$ac_link"
19167 case "(($ac_try" in
19168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169   *) ac_try_echo=$ac_try;;
19170 esac
19171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19172 $as_echo "$ac_try_echo") >&5
19173   (eval "$ac_link") 2>conftest.er1
19174   ac_status=$?
19175   grep -v '^ *+' conftest.er1 >conftest.err
19176   rm -f conftest.er1
19177   cat conftest.err >&5
19178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); } && {
19180          test -z "$ac_c_werror_flag" ||
19181          test ! -s conftest.err
19182        } && test -s conftest$ac_exeext && {
19183          test "$cross_compiling" = yes ||
19184          $as_test_x conftest$ac_exeext
19185        }; then
19186   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
19187 else
19188   $as_echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
19192 fi
19193
19194 rm -rf conftest.dSYM
19195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19196       conftest$ac_exeext conftest.$ac_ext
19197 LIBS=$ac_check_lib_save_LIBS
19198 fi
19199 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
19200 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
19201 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
19202   libnfsidmap=1
19203 else
19204   { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
19205 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
19206    { (exit 1); exit 1; }; }
19207 fi
19208
19209
19210
19211 for ac_header in nfsidmap.h
19212 do
19213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19215   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19216 $as_echo_n "checking for $ac_header... " >&6; }
19217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19218   $as_echo_n "(cached) " >&6
19219 fi
19220 ac_res=`eval 'as_val=${'$as_ac_Header'}
19221                  $as_echo "$as_val"'`
19222                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19223 $as_echo "$ac_res" >&6; }
19224 else
19225   # Is the header compilable?
19226 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19227 $as_echo_n "checking $ac_header usability... " >&6; }
19228 cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h.  */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h.  */
19234 $ac_includes_default
19235 #include <$ac_header>
19236 _ACEOF
19237 rm -f conftest.$ac_objext
19238 if { (ac_try="$ac_compile"
19239 case "(($ac_try" in
19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241   *) ac_try_echo=$ac_try;;
19242 esac
19243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19244 $as_echo "$ac_try_echo") >&5
19245   (eval "$ac_compile") 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } && {
19252          test -z "$ac_c_werror_flag" ||
19253          test ! -s conftest.err
19254        } && test -s conftest.$ac_objext; then
19255   ac_header_compiler=yes
19256 else
19257   $as_echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19259
19260         ac_header_compiler=no
19261 fi
19262
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19265 $as_echo "$ac_header_compiler" >&6; }
19266
19267 # Is the header present?
19268 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19269 $as_echo_n "checking $ac_header presence... " >&6; }
19270 cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h.  */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h.  */
19276 #include <$ac_header>
19277 _ACEOF
19278 if { (ac_try="$ac_cpp conftest.$ac_ext"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19284 $as_echo "$ac_try_echo") >&5
19285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } >/dev/null && {
19292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19293          test ! -s conftest.err
19294        }; then
19295   ac_header_preproc=yes
19296 else
19297   $as_echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300   ac_header_preproc=no
19301 fi
19302
19303 rm -f conftest.err conftest.$ac_ext
19304 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19305 $as_echo "$ac_header_preproc" >&6; }
19306
19307 # So?  What about this header?
19308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19309   yes:no: )
19310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19311 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19314     ac_header_preproc=yes
19315     ;;
19316   no:yes:* )
19317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19318 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19320 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19322 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19324 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19326 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19328 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19329     ( cat <<\_ASBOX
19330 ## ---------------------------------------- ##
19331 ## Report this to linux-nfs@vger.kernel.org ##
19332 ## ---------------------------------------- ##
19333 _ASBOX
19334      ) | sed "s/^/$as_me: WARNING:     /" >&2
19335     ;;
19336 esac
19337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19338 $as_echo_n "checking for $ac_header... " >&6; }
19339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19340   $as_echo_n "(cached) " >&6
19341 else
19342   eval "$as_ac_Header=\$ac_header_preproc"
19343 fi
19344 ac_res=`eval 'as_val=${'$as_ac_Header'}
19345                  $as_echo "$as_val"'`
19346                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19348
19349 fi
19350 as_val=`eval 'as_val=${'$as_ac_Header'}
19351                  $as_echo "$as_val"'`
19352    if test "x$as_val" = x""yes; then
19353   cat >>confdefs.h <<_ACEOF
19354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19355 _ACEOF
19356
19357 else
19358   { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
19359 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
19360    { (exit 1); exit 1; }; }
19361 fi
19362
19363 done
19364
19365
19366     { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
19367 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
19368 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
19369   $as_echo_n "(cached) " >&6
19370 else
19371   ac_check_lib_save_LIBS=$LIBS
19372 LIBS="-lnfsidmap  $LIBS"
19373 cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h.  */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h.  */
19379
19380 /* Override any GCC internal prototype to avoid an error.
19381    Use char because int might match the return type of a GCC
19382    builtin and then its argument prototype would still apply.  */
19383 #ifdef __cplusplus
19384 extern "C"
19385 #endif
19386 char nfs4_set_debug ();
19387 int
19388 main ()
19389 {
19390 return nfs4_set_debug ();
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext conftest$ac_exeext
19396 if { (ac_try="$ac_link"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19402 $as_echo "$ac_try_echo") >&5
19403   (eval "$ac_link") 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } && {
19410          test -z "$ac_c_werror_flag" ||
19411          test ! -s conftest.err
19412        } && test -s conftest$ac_exeext && {
19413          test "$cross_compiling" = yes ||
19414          $as_test_x conftest$ac_exeext
19415        }; then
19416   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
19417 else
19418   $as_echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421         ac_cv_lib_nfsidmap_nfs4_set_debug=no
19422 fi
19423
19424 rm -rf conftest.dSYM
19425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19426       conftest$ac_exeext conftest.$ac_ext
19427 LIBS=$ac_check_lib_save_LIBS
19428 fi
19429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
19430 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
19431 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
19432
19433 cat >>confdefs.h <<\_ACEOF
19434 #define HAVE_NFS4_SET_DEBUG 1
19435 _ACEOF
19436
19437 fi
19438
19439
19440
19441
19442       if test "$enable_gss" = yes; then
19443
19444
19445 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19446         if test -n "$ac_tool_prefix"; then
19447   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19448 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19450 $as_echo_n "checking for $ac_word... " >&6; }
19451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19452   $as_echo_n "(cached) " >&6
19453 else
19454   case $PKG_CONFIG in
19455   [\\/]* | ?:[\\/]*)
19456   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19457   ;;
19458   *)
19459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 for as_dir in $PATH
19461 do
19462   IFS=$as_save_IFS
19463   test -z "$as_dir" && as_dir=.
19464   for ac_exec_ext in '' $ac_executable_extensions; do
19465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19466     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19467     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19468     break 2
19469   fi
19470 done
19471 done
19472 IFS=$as_save_IFS
19473
19474   ;;
19475 esac
19476 fi
19477 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19478 if test -n "$PKG_CONFIG"; then
19479   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19480 $as_echo "$PKG_CONFIG" >&6; }
19481 else
19482   { $as_echo "$as_me:$LINENO: result: no" >&5
19483 $as_echo "no" >&6; }
19484 fi
19485
19486
19487 fi
19488 if test -z "$ac_cv_path_PKG_CONFIG"; then
19489   ac_pt_PKG_CONFIG=$PKG_CONFIG
19490   # Extract the first word of "pkg-config", so it can be a program name with args.
19491 set dummy pkg-config; ac_word=$2
19492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19493 $as_echo_n "checking for $ac_word... " >&6; }
19494 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19495   $as_echo_n "(cached) " >&6
19496 else
19497   case $ac_pt_PKG_CONFIG in
19498   [\\/]* | ?:[\\/]*)
19499   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19500   ;;
19501   *)
19502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19503 for as_dir in $PATH
19504 do
19505   IFS=$as_save_IFS
19506   test -z "$as_dir" && as_dir=.
19507   for ac_exec_ext in '' $ac_executable_extensions; do
19508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19509     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19511     break 2
19512   fi
19513 done
19514 done
19515 IFS=$as_save_IFS
19516
19517   ;;
19518 esac
19519 fi
19520 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19521 if test -n "$ac_pt_PKG_CONFIG"; then
19522   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19523 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19524 else
19525   { $as_echo "$as_me:$LINENO: result: no" >&5
19526 $as_echo "no" >&6; }
19527 fi
19528
19529   if test "x$ac_pt_PKG_CONFIG" = x; then
19530     PKG_CONFIG=""
19531   else
19532     case $cross_compiling:$ac_tool_warned in
19533 yes:)
19534 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19536 ac_tool_warned=yes ;;
19537 esac
19538     PKG_CONFIG=$ac_pt_PKG_CONFIG
19539   fi
19540 else
19541   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19542 fi
19543
19544 fi
19545 if test -n "$PKG_CONFIG"; then
19546         _pkg_min_version=0.9.0
19547         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19548 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19549         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19550                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19551 $as_echo "yes" >&6; }
19552         else
19553                 { $as_echo "$as_me:$LINENO: result: no" >&5
19554 $as_echo "no" >&6; }
19555                 PKG_CONFIG=""
19556         fi
19557
19558 fi
19559
19560
19561
19562 pkg_failed=no
19563 { $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
19564 $as_echo_n "checking for GSSGLUE... " >&6; }
19565
19566 if test -n "$GSSGLUE_CFLAGS"; then
19567     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
19568  elif test -n "$PKG_CONFIG"; then
19569     if test -n "$PKG_CONFIG" && \
19570     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19571   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19572   ac_status=$?
19573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; then
19575   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
19576 else
19577   pkg_failed=yes
19578 fi
19579  else
19580     pkg_failed=untried
19581 fi
19582 if test -n "$GSSGLUE_LIBS"; then
19583     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
19584  elif test -n "$PKG_CONFIG"; then
19585     if test -n "$PKG_CONFIG" && \
19586     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19587   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19588   ac_status=$?
19589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; then
19591   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
19592 else
19593   pkg_failed=yes
19594 fi
19595  else
19596     pkg_failed=untried
19597 fi
19598
19599
19600
19601 if test $pkg_failed = yes; then
19602
19603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19604         _pkg_short_errors_supported=yes
19605 else
19606         _pkg_short_errors_supported=no
19607 fi
19608         if test $_pkg_short_errors_supported = yes; then
19609                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
19610         else
19611                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
19612         fi
19613         # Put the nasty error message in config.log where it belongs
19614         echo "$GSSGLUE_PKG_ERRORS" >&5
19615
19616         { { $as_echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
19617
19618 $GSSGLUE_PKG_ERRORS
19619
19620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19621 installed software in a non-standard prefix.
19622
19623 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19624 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19625 See the pkg-config man page for more details.
19626 " >&5
19627 $as_echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
19628
19629 $GSSGLUE_PKG_ERRORS
19630
19631 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19632 installed software in a non-standard prefix.
19633
19634 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19635 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19636 See the pkg-config man page for more details.
19637 " >&2;}
19638    { (exit 1); exit 1; }; }
19639 elif test $pkg_failed = untried; then
19640         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19642 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19643 is in your PATH or set the PKG_CONFIG environment variable to the full
19644 path to pkg-config.
19645
19646 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19647 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19648 See the pkg-config man page for more details.
19649
19650 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19651 See \`config.log' for more details." >&5
19652 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19653 is in your PATH or set the PKG_CONFIG environment variable to the full
19654 path to pkg-config.
19655
19656 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19657 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19658 See the pkg-config man page for more details.
19659
19660 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19661 See \`config.log' for more details." >&2;}
19662    { (exit 1); exit 1; }; }; }
19663 else
19664         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
19665         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
19666         { $as_echo "$as_me:$LINENO: result: yes" >&5
19667 $as_echo "yes" >&6; }
19668         :
19669 fi
19670
19671     if test "$enable_tirpc" = no; then
19672
19673 pkg_failed=no
19674 { $as_echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
19675 $as_echo_n "checking for RPCSECGSS... " >&6; }
19676
19677 if test -n "$RPCSECGSS_CFLAGS"; then
19678     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
19679  elif test -n "$PKG_CONFIG"; then
19680     if test -n "$PKG_CONFIG" && \
19681     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
19682   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19683   ac_status=$?
19684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }; then
19686   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
19687 else
19688   pkg_failed=yes
19689 fi
19690  else
19691     pkg_failed=untried
19692 fi
19693 if test -n "$RPCSECGSS_LIBS"; then
19694     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
19695  elif test -n "$PKG_CONFIG"; then
19696     if test -n "$PKG_CONFIG" && \
19697     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
19698   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19699   ac_status=$?
19700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; then
19702   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
19703 else
19704   pkg_failed=yes
19705 fi
19706  else
19707     pkg_failed=untried
19708 fi
19709
19710
19711
19712 if test $pkg_failed = yes; then
19713
19714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19715         _pkg_short_errors_supported=yes
19716 else
19717         _pkg_short_errors_supported=no
19718 fi
19719         if test $_pkg_short_errors_supported = yes; then
19720                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
19721         else
19722                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
19723         fi
19724         # Put the nasty error message in config.log where it belongs
19725         echo "$RPCSECGSS_PKG_ERRORS" >&5
19726
19727         { { $as_echo "$as_me:$LINENO: error: Package requirements (librpcsecgss >= 0.16) were not met:
19728
19729 $RPCSECGSS_PKG_ERRORS
19730
19731 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19732 installed software in a non-standard prefix.
19733
19734 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19735 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19736 See the pkg-config man page for more details.
19737 " >&5
19738 $as_echo "$as_me: error: Package requirements (librpcsecgss >= 0.16) were not met:
19739
19740 $RPCSECGSS_PKG_ERRORS
19741
19742 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19743 installed software in a non-standard prefix.
19744
19745 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19746 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19747 See the pkg-config man page for more details.
19748 " >&2;}
19749    { (exit 1); exit 1; }; }
19750 elif test $pkg_failed = untried; then
19751         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19753 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19754 is in your PATH or set the PKG_CONFIG environment variable to the full
19755 path to pkg-config.
19756
19757 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19758 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19759 See the pkg-config man page for more details.
19760
19761 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19762 See \`config.log' for more details." >&5
19763 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19764 is in your PATH or set the PKG_CONFIG environment variable to the full
19765 path to pkg-config.
19766
19767 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19768 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19769 See the pkg-config man page for more details.
19770
19771 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19772 See \`config.log' for more details." >&2;}
19773    { (exit 1); exit 1; }; }; }
19774 else
19775         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
19776         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
19777         { $as_echo "$as_me:$LINENO: result: yes" >&5
19778 $as_echo "yes" >&6; }
19779         :
19780 fi
19781   fi
19782
19783
19784   fi
19785 fi
19786
19787 if test "$knfsd_cv_glibc2" = no; then
19788     { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
19789 $as_echo_n "checking for daemon in -lbsd... " >&6; }
19790 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
19791   $as_echo_n "(cached) " >&6
19792 else
19793   ac_check_lib_save_LIBS=$LIBS
19794 LIBS="-lbsd  $LIBS"
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801
19802 /* Override any GCC internal prototype to avoid an error.
19803    Use char because int might match the return type of a GCC
19804    builtin and then its argument prototype would still apply.  */
19805 #ifdef __cplusplus
19806 extern "C"
19807 #endif
19808 char daemon ();
19809 int
19810 main ()
19811 {
19812 return daemon ();
19813   ;
19814   return 0;
19815 }
19816 _ACEOF
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (ac_try="$ac_link"
19819 case "(($ac_try" in
19820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821   *) ac_try_echo=$ac_try;;
19822 esac
19823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19824 $as_echo "$ac_try_echo") >&5
19825   (eval "$ac_link") 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } && {
19832          test -z "$ac_c_werror_flag" ||
19833          test ! -s conftest.err
19834        } && test -s conftest$ac_exeext && {
19835          test "$cross_compiling" = yes ||
19836          $as_test_x conftest$ac_exeext
19837        }; then
19838   ac_cv_lib_bsd_daemon=yes
19839 else
19840   $as_echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19842
19843         ac_cv_lib_bsd_daemon=no
19844 fi
19845
19846 rm -rf conftest.dSYM
19847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19848       conftest$ac_exeext conftest.$ac_ext
19849 LIBS=$ac_check_lib_save_LIBS
19850 fi
19851 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
19852 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
19853 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then
19854   LIBBSD="-lbsd"
19855 fi
19856
19857 fi
19858
19859 if test "$choose_blkid" != no; then
19860    { $as_echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
19861 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
19862 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
19863   $as_echo_n "(cached) " >&6
19864 else
19865   ac_check_lib_save_LIBS=$LIBS
19866 LIBS="-lblkid  $LIBS"
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873
19874 /* Override any GCC internal prototype to avoid an error.
19875    Use char because int might match the return type of a GCC
19876    builtin and then its argument prototype would still apply.  */
19877 #ifdef __cplusplus
19878 extern "C"
19879 #endif
19880 char blkid_get_library_version ();
19881 int
19882 main ()
19883 {
19884 return blkid_get_library_version ();
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893   *) ac_try_echo=$ac_try;;
19894 esac
19895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19896 $as_echo "$ac_try_echo") >&5
19897   (eval "$ac_link") 2>conftest.er1
19898   ac_status=$?
19899   grep -v '^ *+' conftest.er1 >conftest.err
19900   rm -f conftest.er1
19901   cat conftest.err >&5
19902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); } && {
19904          test -z "$ac_c_werror_flag" ||
19905          test ! -s conftest.err
19906        } && test -s conftest$ac_exeext && {
19907          test "$cross_compiling" = yes ||
19908          $as_test_x conftest$ac_exeext
19909        }; then
19910   ac_cv_lib_blkid_blkid_get_library_version=yes
19911 else
19912   $as_echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915         ac_cv_lib_blkid_blkid_get_library_version=no
19916 fi
19917
19918 rm -rf conftest.dSYM
19919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19920       conftest$ac_exeext conftest.$ac_ext
19921 LIBS=$ac_check_lib_save_LIBS
19922 fi
19923 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
19924 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
19925 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then
19926   LIBBLKID="-lblkid"
19927 else
19928   { { $as_echo "$as_me:$LINENO: error: libblkid needed" >&5
19929 $as_echo "$as_me: error: libblkid needed" >&2;}
19930    { (exit 1); exit 1; }; }
19931 fi
19932
19933    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
19934   { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
19935 $as_echo_n "checking for blkid/blkid.h... " >&6; }
19936 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
19937   $as_echo_n "(cached) " >&6
19938 fi
19939 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
19940 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
19941 else
19942   # Is the header compilable?
19943 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
19944 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 $ac_includes_default
19952 #include <blkid/blkid.h>
19953 _ACEOF
19954 rm -f conftest.$ac_objext
19955 if { (ac_try="$ac_compile"
19956 case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19961 $as_echo "$ac_try_echo") >&5
19962   (eval "$ac_compile") 2>conftest.er1
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
19966   cat conftest.err >&5
19967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } && {
19969          test -z "$ac_c_werror_flag" ||
19970          test ! -s conftest.err
19971        } && test -s conftest.$ac_objext; then
19972   ac_header_compiler=yes
19973 else
19974   $as_echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977         ac_header_compiler=no
19978 fi
19979
19980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19981 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19982 $as_echo "$ac_header_compiler" >&6; }
19983
19984 # Is the header present?
19985 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
19986 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993 #include <blkid/blkid.h>
19994 _ACEOF
19995 if { (ac_try="$ac_cpp conftest.$ac_ext"
19996 case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20001 $as_echo "$ac_try_echo") >&5
20002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } >/dev/null && {
20009          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20010          test ! -s conftest.err
20011        }; then
20012   ac_header_preproc=yes
20013 else
20014   $as_echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017   ac_header_preproc=no
20018 fi
20019
20020 rm -f conftest.err conftest.$ac_ext
20021 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20022 $as_echo "$ac_header_preproc" >&6; }
20023
20024 # So?  What about this header?
20025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20026   yes:no: )
20027     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
20028 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20029     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
20030 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
20031     ac_header_preproc=yes
20032     ;;
20033   no:yes:* )
20034     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
20035 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
20036     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
20037 $as_echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
20038     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
20039 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
20040     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
20041 $as_echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20042     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
20043 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
20044     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
20045 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
20046     ( cat <<\_ASBOX
20047 ## ---------------------------------------- ##
20048 ## Report this to linux-nfs@vger.kernel.org ##
20049 ## ---------------------------------------- ##
20050 _ASBOX
20051      ) | sed "s/^/$as_me: WARNING:     /" >&2
20052     ;;
20053 esac
20054 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
20055 $as_echo_n "checking for blkid/blkid.h... " >&6; }
20056 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20057   $as_echo_n "(cached) " >&6
20058 else
20059   ac_cv_header_blkid_blkid_h=$ac_header_preproc
20060 fi
20061 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
20062 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
20063
20064 fi
20065 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
20066   :
20067 else
20068   { { $as_echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
20069 $as_echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
20070    { (exit 1); exit 1; }; }
20071 fi
20072
20073
20074
20075   { $as_echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
20076 $as_echo_n "checking for suitable libblkid version... " >&6; }
20077   if test "${libblkid_cv_is_recent+set}" = set; then
20078   $as_echo_n "(cached) " >&6
20079 else
20080
20081     saved_LIBS="$LIBS"
20082     LIBS=-lblkid
20083     if test "$cross_compiling" = yes; then
20084   libblkid_cv_is_recent=unknown
20085 else
20086   cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092
20093         #include <blkid/blkid.h>
20094         int main()
20095         {
20096                 int vers = blkid_get_library_version(0, 0);
20097                 return vers >= 140 ? 0 : 1;
20098         }
20099
20100 _ACEOF
20101 rm -f conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20108 $as_echo "$ac_try_echo") >&5
20109   (eval "$ac_link") 2>&5
20110   ac_status=$?
20111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20113   { (case "(($ac_try" in
20114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115   *) ac_try_echo=$ac_try;;
20116 esac
20117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20118 $as_echo "$ac_try_echo") >&5
20119   (eval "$ac_try") 2>&5
20120   ac_status=$?
20121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); }; }; then
20123   libblkid_cv_is_recent=yes
20124 else
20125   $as_echo "$as_me: program exited with status $ac_status" >&5
20126 $as_echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ( exit $ac_status )
20130 libblkid_cv_is_recent=no
20131 fi
20132 rm -rf conftest.dSYM
20133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 fi
20135
20136
20137     LIBS="$saved_LIBS"
20138 fi
20139
20140   { $as_echo "$as_me:$LINENO: result: $libblkid_cv_is_recent" >&5
20141 $as_echo "$libblkid_cv_is_recent" >&6; }
20142
20143    if test $choose_blkid = yes; then
20144       use_blkid=1
20145       test $libblkid_cv_is_recent = no && { $as_echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
20146 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
20147    else
20148       if test $libblkid_cv_is_recent = yes
20149       then use_blkid=1
20150       else use_blkid=0
20151            { $as_echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
20152 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
20153       fi
20154     fi
20155
20156 cat >>confdefs.h <<_ACEOF
20157 #define USE_BLKID $use_blkid
20158 _ACEOF
20159
20160 fi
20161
20162
20163
20164
20165
20166 if test "$enable_gss" = yes; then
20167     { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
20168 $as_echo_n "checking for getnameinfo... " >&6; }
20169 if test "${ac_cv_func_getnameinfo+set}" = set; then
20170   $as_echo_n "(cached) " >&6
20171 else
20172   cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h.  */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h.  */
20178 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
20179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20180 #define getnameinfo innocuous_getnameinfo
20181
20182 /* System header to define __stub macros and hopefully few prototypes,
20183     which can conflict with char getnameinfo (); below.
20184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20185     <limits.h> exists even on freestanding compilers.  */
20186
20187 #ifdef __STDC__
20188 # include <limits.h>
20189 #else
20190 # include <assert.h>
20191 #endif
20192
20193 #undef getnameinfo
20194
20195 /* Override any GCC internal prototype to avoid an error.
20196    Use char because int might match the return type of a GCC
20197    builtin and then its argument prototype would still apply.  */
20198 #ifdef __cplusplus
20199 extern "C"
20200 #endif
20201 char getnameinfo ();
20202 /* The GNU C library defines this for functions which it implements
20203     to always fail with ENOSYS.  Some functions are actually named
20204     something starting with __ and the normal name is an alias.  */
20205 #if defined __stub_getnameinfo || defined __stub___getnameinfo
20206 choke me
20207 #endif
20208
20209 int
20210 main ()
20211 {
20212 return getnameinfo ();
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (ac_try="$ac_link"
20219 case "(($ac_try" in
20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221   *) ac_try_echo=$ac_try;;
20222 esac
20223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20224 $as_echo "$ac_try_echo") >&5
20225   (eval "$ac_link") 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } && {
20232          test -z "$ac_c_werror_flag" ||
20233          test ! -s conftest.err
20234        } && test -s conftest$ac_exeext && {
20235          test "$cross_compiling" = yes ||
20236          $as_test_x conftest$ac_exeext
20237        }; then
20238   ac_cv_func_getnameinfo=yes
20239 else
20240   $as_echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243         ac_cv_func_getnameinfo=no
20244 fi
20245
20246 rm -rf conftest.dSYM
20247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20248       conftest$ac_exeext conftest.$ac_ext
20249 fi
20250 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
20251 $as_echo "$ac_cv_func_getnameinfo" >&6; }
20252 if test "x$ac_cv_func_getnameinfo" = x""yes; then
20253   :
20254 else
20255   { { $as_echo "$as_me:$LINENO: error: GSSAPI support requires 'getnameinfo' function" >&5
20256 $as_echo "$as_me: error: GSSAPI support requires 'getnameinfo' function" >&2;}
20257    { (exit 1); exit 1; }; }
20258 fi
20259
20260
20261
20262
20263     { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20264 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
20265 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20266   $as_echo_n "(cached) " >&6
20267 else
20268   ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lnfsidmap  $LIBS"
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276
20277 /* Override any GCC internal prototype to avoid an error.
20278    Use char because int might match the return type of a GCC
20279    builtin and then its argument prototype would still apply.  */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char nfs4_init_name_mapping ();
20284 int
20285 main ()
20286 {
20287 return nfs4_init_name_mapping ();
20288   ;
20289   return 0;
20290 }
20291 _ACEOF
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (ac_try="$ac_link"
20294 case "(($ac_try" in
20295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296   *) ac_try_echo=$ac_try;;
20297 esac
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300   (eval "$ac_link") 2>conftest.er1
20301   ac_status=$?
20302   grep -v '^ *+' conftest.er1 >conftest.err
20303   rm -f conftest.er1
20304   cat conftest.err >&5
20305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); } && {
20307          test -z "$ac_c_werror_flag" ||
20308          test ! -s conftest.err
20309        } && test -s conftest$ac_exeext && {
20310          test "$cross_compiling" = yes ||
20311          $as_test_x conftest$ac_exeext
20312        }; then
20313   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20314 else
20315   $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20319 fi
20320
20321 rm -rf conftest.dSYM
20322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20323       conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20325 fi
20326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20327 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
20328 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
20329   libnfsidmap=1
20330 else
20331   { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
20332 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
20333    { (exit 1); exit 1; }; }
20334 fi
20335
20336
20337
20338 for ac_header in nfsidmap.h
20339 do
20340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20342   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20343 $as_echo_n "checking for $ac_header... " >&6; }
20344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20345   $as_echo_n "(cached) " >&6
20346 fi
20347 ac_res=`eval 'as_val=${'$as_ac_Header'}
20348                  $as_echo "$as_val"'`
20349                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20350 $as_echo "$ac_res" >&6; }
20351 else
20352   # Is the header compilable?
20353 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20354 $as_echo_n "checking $ac_header usability... " >&6; }
20355 cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 $ac_includes_default
20362 #include <$ac_header>
20363 _ACEOF
20364 rm -f conftest.$ac_objext
20365 if { (ac_try="$ac_compile"
20366 case "(($ac_try" in
20367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368   *) ac_try_echo=$ac_try;;
20369 esac
20370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20371 $as_echo "$ac_try_echo") >&5
20372   (eval "$ac_compile") 2>conftest.er1
20373   ac_status=$?
20374   grep -v '^ *+' conftest.er1 >conftest.err
20375   rm -f conftest.er1
20376   cat conftest.err >&5
20377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); } && {
20379          test -z "$ac_c_werror_flag" ||
20380          test ! -s conftest.err
20381        } && test -s conftest.$ac_objext; then
20382   ac_header_compiler=yes
20383 else
20384   $as_echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387         ac_header_compiler=no
20388 fi
20389
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20392 $as_echo "$ac_header_compiler" >&6; }
20393
20394 # Is the header present?
20395 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20396 $as_echo_n "checking $ac_header presence... " >&6; }
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 #include <$ac_header>
20404 _ACEOF
20405 if { (ac_try="$ac_cpp conftest.$ac_ext"
20406 case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20411 $as_echo "$ac_try_echo") >&5
20412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } >/dev/null && {
20419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20420          test ! -s conftest.err
20421        }; then
20422   ac_header_preproc=yes
20423 else
20424   $as_echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427   ac_header_preproc=no
20428 fi
20429
20430 rm -f conftest.err conftest.$ac_ext
20431 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432 $as_echo "$ac_header_preproc" >&6; }
20433
20434 # So?  What about this header?
20435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20436   yes:no: )
20437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20438 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20440 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20441     ac_header_preproc=yes
20442     ;;
20443   no:yes:* )
20444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20445 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20447 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20448     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20449 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20450     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20451 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20452     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20453 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20455 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20456     ( cat <<\_ASBOX
20457 ## ---------------------------------------- ##
20458 ## Report this to linux-nfs@vger.kernel.org ##
20459 ## ---------------------------------------- ##
20460 _ASBOX
20461      ) | sed "s/^/$as_me: WARNING:     /" >&2
20462     ;;
20463 esac
20464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20465 $as_echo_n "checking for $ac_header... " >&6; }
20466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20467   $as_echo_n "(cached) " >&6
20468 else
20469   eval "$as_ac_Header=\$ac_header_preproc"
20470 fi
20471 ac_res=`eval 'as_val=${'$as_ac_Header'}
20472                  $as_echo "$as_val"'`
20473                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20474 $as_echo "$ac_res" >&6; }
20475
20476 fi
20477 as_val=`eval 'as_val=${'$as_ac_Header'}
20478                  $as_echo "$as_val"'`
20479    if test "x$as_val" = x""yes; then
20480   cat >>confdefs.h <<_ACEOF
20481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20482 _ACEOF
20483
20484 else
20485   { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
20486 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
20487    { (exit 1); exit 1; }; }
20488 fi
20489
20490 done
20491
20492
20493     { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
20494 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
20495 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
20496   $as_echo_n "(cached) " >&6
20497 else
20498   ac_check_lib_save_LIBS=$LIBS
20499 LIBS="-lnfsidmap  $LIBS"
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h.  */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h.  */
20506
20507 /* Override any GCC internal prototype to avoid an error.
20508    Use char because int might match the return type of a GCC
20509    builtin and then its argument prototype would still apply.  */
20510 #ifdef __cplusplus
20511 extern "C"
20512 #endif
20513 char nfs4_set_debug ();
20514 int
20515 main ()
20516 {
20517 return nfs4_set_debug ();
20518   ;
20519   return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (ac_try="$ac_link"
20524 case "(($ac_try" in
20525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526   *) ac_try_echo=$ac_try;;
20527 esac
20528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20529 $as_echo "$ac_try_echo") >&5
20530   (eval "$ac_link") 2>conftest.er1
20531   ac_status=$?
20532   grep -v '^ *+' conftest.er1 >conftest.err
20533   rm -f conftest.er1
20534   cat conftest.err >&5
20535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } && {
20537          test -z "$ac_c_werror_flag" ||
20538          test ! -s conftest.err
20539        } && test -s conftest$ac_exeext && {
20540          test "$cross_compiling" = yes ||
20541          $as_test_x conftest$ac_exeext
20542        }; then
20543   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
20544 else
20545   $as_echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548         ac_cv_lib_nfsidmap_nfs4_set_debug=no
20549 fi
20550
20551 rm -rf conftest.dSYM
20552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20553       conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20555 fi
20556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
20557 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
20558 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
20559
20560 cat >>confdefs.h <<\_ACEOF
20561 #define HAVE_NFS4_SET_DEBUG 1
20562 _ACEOF
20563
20564 fi
20565
20566
20567
20568
20569
20570 for ac_header in spkm3.h
20571 do
20572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20574   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20575 $as_echo_n "checking for $ac_header... " >&6; }
20576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20577   $as_echo_n "(cached) " >&6
20578 fi
20579 ac_res=`eval 'as_val=${'$as_ac_Header'}
20580                  $as_echo "$as_val"'`
20581                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20582 $as_echo "$ac_res" >&6; }
20583 else
20584   # Is the header compilable?
20585 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20586 $as_echo_n "checking $ac_header usability... " >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593 $ac_includes_default
20594 #include <$ac_header>
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20603 $as_echo "$ac_try_echo") >&5
20604   (eval "$ac_compile") 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } && {
20611          test -z "$ac_c_werror_flag" ||
20612          test ! -s conftest.err
20613        } && test -s conftest.$ac_objext; then
20614   ac_header_compiler=yes
20615 else
20616   $as_echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619         ac_header_compiler=no
20620 fi
20621
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20624 $as_echo "$ac_header_compiler" >&6; }
20625
20626 # Is the header present?
20627 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20628 $as_echo_n "checking $ac_header presence... " >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h.  */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h.  */
20635 #include <$ac_header>
20636 _ACEOF
20637 if { (ac_try="$ac_cpp conftest.$ac_ext"
20638 case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20645   ac_status=$?
20646   grep -v '^ *+' conftest.er1 >conftest.err
20647   rm -f conftest.er1
20648   cat conftest.err >&5
20649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } >/dev/null && {
20651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20652          test ! -s conftest.err
20653        }; then
20654   ac_header_preproc=yes
20655 else
20656   $as_echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659   ac_header_preproc=no
20660 fi
20661
20662 rm -f conftest.err conftest.$ac_ext
20663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20664 $as_echo "$ac_header_preproc" >&6; }
20665
20666 # So?  What about this header?
20667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20668   yes:no: )
20669     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20670 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20671     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20673     ac_header_preproc=yes
20674     ;;
20675   no:yes:* )
20676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20677 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20679 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20680     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20681 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20683 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20687 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20688     ( cat <<\_ASBOX
20689 ## ---------------------------------------- ##
20690 ## Report this to linux-nfs@vger.kernel.org ##
20691 ## ---------------------------------------- ##
20692 _ASBOX
20693      ) | sed "s/^/$as_me: WARNING:     /" >&2
20694     ;;
20695 esac
20696 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20697 $as_echo_n "checking for $ac_header... " >&6; }
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699   $as_echo_n "(cached) " >&6
20700 else
20701   eval "$as_ac_Header=\$ac_header_preproc"
20702 fi
20703 ac_res=`eval 'as_val=${'$as_ac_Header'}
20704                  $as_echo "$as_val"'`
20705                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20706 $as_echo "$ac_res" >&6; }
20707
20708 fi
20709 as_val=`eval 'as_val=${'$as_ac_Header'}
20710                  $as_echo "$as_val"'`
20711    if test "x$as_val" = x""yes; then
20712   cat >>confdefs.h <<_ACEOF
20713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20714 _ACEOF
20715
20716 else
20717   { $as_echo "$as_me:$LINENO: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
20718 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
20719 fi
20720
20721 done
20722
20723
20724
20725   { $as_echo "$as_me:$LINENO: checking for Kerberos v5" >&5
20726 $as_echo_n "checking for Kerberos v5... " >&6; }
20727
20728 # Check whether --with-krb5 was given.
20729 if test "${with_krb5+set}" = set; then
20730   withval=$with_krb5;  case "$withval" in
20731     yes|no)
20732        krb5_with=""
20733        ;;
20734     *)
20735        krb5_with="$withval"
20736        ;;
20737     esac
20738
20739 fi
20740
20741
20742   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
20743              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
20744             K5CONFIG=""
20745     if test -f $dir/bin/krb5-config; then
20746       K5CONFIG=$dir/bin/krb5-config
20747     elif test -f "/usr/kerberos/bin/krb5-config"; then
20748       K5CONFIG="/usr/kerberos/bin/krb5-config"
20749     elif test -f "/usr/lib/mit/bin/krb5-config"; then
20750       K5CONFIG="/usr/lib/mit/bin/krb5-config"
20751     fi
20752     if test "$K5CONFIG" != ""; then
20753       KRBCFLAGS=`$K5CONFIG --cflags`
20754       KRBLIBS=`$K5CONFIG --libs gssapi`
20755       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
20756
20757 cat >>confdefs.h <<_ACEOF
20758 #define KRB5_VERSION $K5VERS
20759 _ACEOF
20760
20761       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
20762                 \( -f $dir/lib/libgssapi_krb5.a -o \
20763                    -f $dir/lib64/libgssapi_krb5.a -o \
20764                    -f $dir/lib64/libgssapi_krb5.so -o \
20765                    -f $dir/lib/libgssapi_krb5.so \) ; then
20766
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_KRB5 1
20769 _ACEOF
20770
20771          KRBDIR="$dir"
20772                      if test $K5VERS -le 131; then
20773
20774 cat >>confdefs.h <<\_ACEOF
20775 #define USE_GSS_KRB5_CCACHE_NAME 1
20776 _ACEOF
20777
20778          fi
20779          gssapi_lib=gssapi_krb5
20780          break
20781                   elif test \( -f $dir/include/heim_err.h -o\
20782                  -f $dir/include/heimdal/heim_err.h \) -a \
20783                 -f $dir/lib/libroken.a; then
20784
20785 cat >>confdefs.h <<\_ACEOF
20786 #define HAVE_HEIMDAL 1
20787 _ACEOF
20788
20789          KRBDIR="$dir"
20790          gssapi_lib=gssapi
20791         break
20792       fi
20793     fi
20794   done
20795     if test "x$KRBDIR" = "x"; then
20796     if test "x$krb5_with" = "x"; then
20797       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
20798 $as_echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
20799    { (exit 1); exit 1; }; }
20800     else
20801       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
20802 $as_echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
20803    { (exit 1); exit 1; }; }
20804     fi
20805   fi
20806   { $as_echo "$as_me:$LINENO: result: $KRBDIR" >&5
20807 $as_echo "$KRBDIR" >&6; }
20808
20809     echo "The current KRBDIR is $KRBDIR"
20810   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
20811        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
20812     KRBLDFLAGS="";
20813   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
20814     KRBLDFLAGS="";
20815   else
20816     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
20817   fi
20818
20819     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
20820 { $as_echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
20821 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
20822 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20823   $as_echo_n "(cached) " >&6
20824 else
20825   ac_check_lib_save_LIBS=$LIBS
20826 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h.  */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h.  */
20833
20834 /* Override any GCC internal prototype to avoid an error.
20835    Use char because int might match the return type of a GCC
20836    builtin and then its argument prototype would still apply.  */
20837 #ifdef __cplusplus
20838 extern "C"
20839 #endif
20840 char gss_krb5_export_lucid_sec_context ();
20841 int
20842 main ()
20843 {
20844 return gss_krb5_export_lucid_sec_context ();
20845   ;
20846   return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext conftest$ac_exeext
20850 if { (ac_try="$ac_link"
20851 case "(($ac_try" in
20852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853   *) ac_try_echo=$ac_try;;
20854 esac
20855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20856 $as_echo "$ac_try_echo") >&5
20857   (eval "$ac_link") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } && {
20864          test -z "$ac_c_werror_flag" ||
20865          test ! -s conftest.err
20866        } && test -s conftest$ac_exeext && {
20867          test "$cross_compiling" = yes ||
20868          $as_test_x conftest$ac_exeext
20869        }; then
20870   eval "$as_ac_Lib=yes"
20871 else
20872   $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875         eval "$as_ac_Lib=no"
20876 fi
20877
20878 rm -rf conftest.dSYM
20879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20880       conftest$ac_exeext conftest.$ac_ext
20881 LIBS=$ac_check_lib_save_LIBS
20882 fi
20883 ac_res=`eval 'as_val=${'$as_ac_Lib'}
20884                  $as_echo "$as_val"'`
20885                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20886 $as_echo "$ac_res" >&6; }
20887 as_val=`eval 'as_val=${'$as_ac_Lib'}
20888                  $as_echo "$as_val"'`
20889    if test "x$as_val" = x""yes; then
20890
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_LUCID_CONTEXT_SUPPORT 1
20893 _ACEOF
20894
20895 fi
20896
20897   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
20898 { $as_echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
20899 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
20900 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20901   $as_echo_n "(cached) " >&6
20902 else
20903   ac_check_lib_save_LIBS=$LIBS
20904 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h.  */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h.  */
20911
20912 /* Override any GCC internal prototype to avoid an error.
20913    Use char because int might match the return type of a GCC
20914    builtin and then its argument prototype would still apply.  */
20915 #ifdef __cplusplus
20916 extern "C"
20917 #endif
20918 char gss_krb5_set_allowable_enctypes ();
20919 int
20920 main ()
20921 {
20922 return gss_krb5_set_allowable_enctypes ();
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext conftest$ac_exeext
20928 if { (ac_try="$ac_link"
20929 case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20934 $as_echo "$ac_try_echo") >&5
20935   (eval "$ac_link") 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } && {
20942          test -z "$ac_c_werror_flag" ||
20943          test ! -s conftest.err
20944        } && test -s conftest$ac_exeext && {
20945          test "$cross_compiling" = yes ||
20946          $as_test_x conftest$ac_exeext
20947        }; then
20948   eval "$as_ac_Lib=yes"
20949 else
20950   $as_echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20952
20953         eval "$as_ac_Lib=no"
20954 fi
20955
20956 rm -rf conftest.dSYM
20957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20958       conftest$ac_exeext conftest.$ac_ext
20959 LIBS=$ac_check_lib_save_LIBS
20960 fi
20961 ac_res=`eval 'as_val=${'$as_ac_Lib'}
20962                  $as_echo "$as_val"'`
20963                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20964 $as_echo "$ac_res" >&6; }
20965 as_val=`eval 'as_val=${'$as_ac_Lib'}
20966                  $as_echo "$as_val"'`
20967    if test "x$as_val" = x""yes; then
20968
20969 cat >>confdefs.h <<\_ACEOF
20970 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
20971 _ACEOF
20972
20973 fi
20974
20975   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
20976 { $as_echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
20977 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
20978 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20979   $as_echo_n "(cached) " >&6
20980 else
20981   ac_check_lib_save_LIBS=$LIBS
20982 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
20983 cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989
20990 /* Override any GCC internal prototype to avoid an error.
20991    Use char because int might match the return type of a GCC
20992    builtin and then its argument prototype would still apply.  */
20993 #ifdef __cplusplus
20994 extern "C"
20995 #endif
20996 char gss_krb5_ccache_name ();
20997 int
20998 main ()
20999 {
21000 return gss_krb5_ccache_name ();
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
21007 case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21012 $as_echo "$ac_try_echo") >&5
21013   (eval "$ac_link") 2>conftest.er1
21014   ac_status=$?
21015   grep -v '^ *+' conftest.er1 >conftest.err
21016   rm -f conftest.er1
21017   cat conftest.err >&5
21018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); } && {
21020          test -z "$ac_c_werror_flag" ||
21021          test ! -s conftest.err
21022        } && test -s conftest$ac_exeext && {
21023          test "$cross_compiling" = yes ||
21024          $as_test_x conftest$ac_exeext
21025        }; then
21026   eval "$as_ac_Lib=yes"
21027 else
21028   $as_echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031         eval "$as_ac_Lib=no"
21032 fi
21033
21034 rm -rf conftest.dSYM
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036       conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21038 fi
21039 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21040                  $as_echo "$as_val"'`
21041                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21042 $as_echo "$ac_res" >&6; }
21043 as_val=`eval 'as_val=${'$as_ac_Lib'}
21044                  $as_echo "$as_val"'`
21045    if test "x$as_val" = x""yes; then
21046
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21049 _ACEOF
21050
21051 fi
21052
21053
21054     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
21055 { $as_echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
21056 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
21057 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21058   $as_echo_n "(cached) " >&6
21059 else
21060   ac_check_lib_save_LIBS=$LIBS
21061 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21062 cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h.  */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h.  */
21068
21069 /* Override any GCC internal prototype to avoid an error.
21070    Use char because int might match the return type of a GCC
21071    builtin and then its argument prototype would still apply.  */
21072 #ifdef __cplusplus
21073 extern "C"
21074 #endif
21075 char krb5_get_error_message ();
21076 int
21077 main ()
21078 {
21079 return krb5_get_error_message ();
21080   ;
21081   return 0;
21082 }
21083 _ACEOF
21084 rm -f conftest.$ac_objext conftest$ac_exeext
21085 if { (ac_try="$ac_link"
21086 case "(($ac_try" in
21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088   *) ac_try_echo=$ac_try;;
21089 esac
21090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21091 $as_echo "$ac_try_echo") >&5
21092   (eval "$ac_link") 2>conftest.er1
21093   ac_status=$?
21094   grep -v '^ *+' conftest.er1 >conftest.err
21095   rm -f conftest.er1
21096   cat conftest.err >&5
21097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } && {
21099          test -z "$ac_c_werror_flag" ||
21100          test ! -s conftest.err
21101        } && test -s conftest$ac_exeext && {
21102          test "$cross_compiling" = yes ||
21103          $as_test_x conftest$ac_exeext
21104        }; then
21105   eval "$as_ac_Lib=yes"
21106 else
21107   $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110         eval "$as_ac_Lib=no"
21111 fi
21112
21113 rm -rf conftest.dSYM
21114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21115       conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21117 fi
21118 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21119                  $as_echo "$as_val"'`
21120                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21121 $as_echo "$ac_res" >&6; }
21122 as_val=`eval 'as_val=${'$as_ac_Lib'}
21123                  $as_echo "$as_val"'`
21124    if test "x$as_val" = x""yes; then
21125
21126 cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
21128 _ACEOF
21129
21130 fi
21131
21132
21133     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
21134 { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
21135 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
21136 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21137   $as_echo_n "(cached) " >&6
21138 else
21139   ac_check_lib_save_LIBS=$LIBS
21140 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147
21148 /* Override any GCC internal prototype to avoid an error.
21149    Use char because int might match the return type of a GCC
21150    builtin and then its argument prototype would still apply.  */
21151 #ifdef __cplusplus
21152 extern "C"
21153 #endif
21154 char krb5_get_init_creds_opt_set_addressless ();
21155 int
21156 main ()
21157 {
21158 return krb5_get_init_creds_opt_set_addressless ();
21159   ;
21160   return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167   *) ac_try_echo=$ac_try;;
21168 esac
21169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171   (eval "$ac_link") 2>conftest.er1
21172   ac_status=$?
21173   grep -v '^ *+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } && {
21178          test -z "$ac_c_werror_flag" ||
21179          test ! -s conftest.err
21180        } && test -s conftest$ac_exeext && {
21181          test "$cross_compiling" = yes ||
21182          $as_test_x conftest$ac_exeext
21183        }; then
21184   eval "$as_ac_Lib=yes"
21185 else
21186   $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189         eval "$as_ac_Lib=no"
21190 fi
21191
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194       conftest$ac_exeext conftest.$ac_ext
21195 LIBS=$ac_check_lib_save_LIBS
21196 fi
21197 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21198                  $as_echo "$as_val"'`
21199                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21200 $as_echo "$ac_res" >&6; }
21201 as_val=`eval 'as_val=${'$as_ac_Lib'}
21202                  $as_echo "$as_val"'`
21203    if test "x$as_val" = x""yes; then
21204
21205 cat >>confdefs.h <<\_ACEOF
21206 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
21207 _ACEOF
21208
21209 fi
21210
21211
21212     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21213     { $as_echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21214 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21215   fi
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227     if test "$enable_tirpc" = no; then
21228
21229         { $as_echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21230 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
21231 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21232   $as_echo_n "(cached) " >&6
21233 else
21234   ac_check_lib_save_LIBS=$LIBS
21235 LIBS="-lrpcsecgss  $LIBS"
21236 cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242
21243 /* Override any GCC internal prototype to avoid an error.
21244    Use char because int might match the return type of a GCC
21245    builtin and then its argument prototype would still apply.  */
21246 #ifdef __cplusplus
21247 extern "C"
21248 #endif
21249 char authgss_create_default ();
21250 int
21251 main ()
21252 {
21253 return authgss_create_default ();
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (ac_try="$ac_link"
21260 case "(($ac_try" in
21261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262   *) ac_try_echo=$ac_try;;
21263 esac
21264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21265 $as_echo "$ac_try_echo") >&5
21266   (eval "$ac_link") 2>conftest.er1
21267   ac_status=$?
21268   grep -v '^ *+' conftest.er1 >conftest.err
21269   rm -f conftest.er1
21270   cat conftest.err >&5
21271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); } && {
21273          test -z "$ac_c_werror_flag" ||
21274          test ! -s conftest.err
21275        } && test -s conftest$ac_exeext && {
21276          test "$cross_compiling" = yes ||
21277          $as_test_x conftest$ac_exeext
21278        }; then
21279   ac_cv_lib_rpcsecgss_authgss_create_default=yes
21280 else
21281   $as_echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284         ac_cv_lib_rpcsecgss_authgss_create_default=no
21285 fi
21286
21287 rm -rf conftest.dSYM
21288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21289       conftest$ac_exeext conftest.$ac_ext
21290 LIBS=$ac_check_lib_save_LIBS
21291 fi
21292 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21293 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
21294 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then
21295   librpcsecgss=1
21296 else
21297   { { $as_echo "$as_me:$LINENO: error: librpcsecgss not found." >&5
21298 $as_echo "$as_me: error: librpcsecgss not found." >&2;}
21299    { (exit 1); exit 1; }; }
21300 fi
21301
21302
21303     { $as_echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21304 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
21305 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21306   $as_echo_n "(cached) " >&6
21307 else
21308   ac_check_lib_save_LIBS=$LIBS
21309 LIBS="-lrpcsecgss  $LIBS"
21310 cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316
21317 /* Override any GCC internal prototype to avoid an error.
21318    Use char because int might match the return type of a GCC
21319    builtin and then its argument prototype would still apply.  */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 char authgss_set_debug_level ();
21324 int
21325 main ()
21326 {
21327 return authgss_set_debug_level ();
21328   ;
21329   return 0;
21330 }
21331 _ACEOF
21332 rm -f conftest.$ac_objext conftest$ac_exeext
21333 if { (ac_try="$ac_link"
21334 case "(($ac_try" in
21335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336   *) ac_try_echo=$ac_try;;
21337 esac
21338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21339 $as_echo "$ac_try_echo") >&5
21340   (eval "$ac_link") 2>conftest.er1
21341   ac_status=$?
21342   grep -v '^ *+' conftest.er1 >conftest.err
21343   rm -f conftest.er1
21344   cat conftest.err >&5
21345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); } && {
21347          test -z "$ac_c_werror_flag" ||
21348          test ! -s conftest.err
21349        } && test -s conftest$ac_exeext && {
21350          test "$cross_compiling" = yes ||
21351          $as_test_x conftest$ac_exeext
21352        }; then
21353   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21354 else
21355   $as_echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21357
21358         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21359 fi
21360
21361 rm -rf conftest.dSYM
21362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21363       conftest$ac_exeext conftest.$ac_ext
21364 LIBS=$ac_check_lib_save_LIBS
21365 fi
21366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21367 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
21368 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then
21369
21370 cat >>confdefs.h <<\_ACEOF
21371 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21372 _ACEOF
21373
21374 fi
21375
21376
21377   fi
21378
21379
21380
21381 fi
21382
21383
21384
21385   { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21386 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21387 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21388   $as_echo_n "(cached) " >&6
21389 else
21390   cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h.  */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h.  */
21396  #include <netdb.h>
21397
21398 int
21399 main ()
21400 {
21401 #ifndef AI_ADDRCONFIG
21402   (void) AI_ADDRCONFIG;
21403 #endif
21404
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21416 $as_echo "$ac_try_echo") >&5
21417   (eval "$ac_compile") 2>conftest.er1
21418   ac_status=$?
21419   grep -v '^ *+' conftest.er1 >conftest.err
21420   rm -f conftest.er1
21421   cat conftest.err >&5
21422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); } && {
21424          test -z "$ac_c_werror_flag" ||
21425          test ! -s conftest.err
21426        } && test -s conftest.$ac_objext; then
21427   ac_cv_have_decl_AI_ADDRCONFIG=yes
21428 else
21429   $as_echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432         ac_cv_have_decl_AI_ADDRCONFIG=no
21433 fi
21434
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 fi
21437 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21438 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21439 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21440
21441 cat >>confdefs.h <<\_ACEOF
21442 #define HAVE_DECL_AI_ADDRCONFIG 1
21443 _ACEOF
21444
21445 fi
21446
21447
21448   if test "$enable_ipv6" = yes; then
21449
21450         if test "$enable_tirpc" = no; then
21451       { { $as_echo "$as_me:$LINENO: error: '--enable-ipv6' requires TIRPC support." >&5
21452 $as_echo "$as_me: error: '--enable-ipv6' requires TIRPC support." >&2;}
21453    { (exit 1); exit 1; }; }
21454     fi
21455
21456
21457
21458 for ac_func in getnameinfo bindresvport_sa
21459 do
21460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21461 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21462 $as_echo_n "checking for $ac_func... " >&6; }
21463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21464   $as_echo_n "(cached) " >&6
21465 else
21466   cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21474 #define $ac_func innocuous_$ac_func
21475
21476 /* System header to define __stub macros and hopefully few prototypes,
21477     which can conflict with char $ac_func (); below.
21478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21479     <limits.h> exists even on freestanding compilers.  */
21480
21481 #ifdef __STDC__
21482 # include <limits.h>
21483 #else
21484 # include <assert.h>
21485 #endif
21486
21487 #undef $ac_func
21488
21489 /* Override any GCC internal prototype to avoid an error.
21490    Use char because int might match the return type of a GCC
21491    builtin and then its argument prototype would still apply.  */
21492 #ifdef __cplusplus
21493 extern "C"
21494 #endif
21495 char $ac_func ();
21496 /* The GNU C library defines this for functions which it implements
21497     to always fail with ENOSYS.  Some functions are actually named
21498     something starting with __ and the normal name is an alias.  */
21499 #if defined __stub_$ac_func || defined __stub___$ac_func
21500 choke me
21501 #endif
21502
21503 int
21504 main ()
21505 {
21506 return $ac_func ();
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21518 $as_echo "$ac_try_echo") >&5
21519   (eval "$ac_link") 2>conftest.er1
21520   ac_status=$?
21521   grep -v '^ *+' conftest.er1 >conftest.err
21522   rm -f conftest.er1
21523   cat conftest.err >&5
21524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } && {
21526          test -z "$ac_c_werror_flag" ||
21527          test ! -s conftest.err
21528        } && test -s conftest$ac_exeext && {
21529          test "$cross_compiling" = yes ||
21530          $as_test_x conftest$ac_exeext
21531        }; then
21532   eval "$as_ac_var=yes"
21533 else
21534   $as_echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537         eval "$as_ac_var=no"
21538 fi
21539
21540 rm -rf conftest.dSYM
21541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21542       conftest$ac_exeext conftest.$ac_ext
21543 fi
21544 ac_res=`eval 'as_val=${'$as_ac_var'}
21545                  $as_echo "$as_val"'`
21546                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21547 $as_echo "$ac_res" >&6; }
21548 as_val=`eval 'as_val=${'$as_ac_var'}
21549                  $as_echo "$as_val"'`
21550    if test "x$as_val" = x""yes; then
21551   cat >>confdefs.h <<_ACEOF
21552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21553 _ACEOF
21554
21555 else
21556   { { $as_echo "$as_me:$LINENO: error: Missing functions needed for IPv6." >&5
21557 $as_echo "$as_me: error: Missing functions needed for IPv6." >&2;}
21558    { (exit 1); exit 1; }; }
21559 fi
21560 done
21561
21562
21563             { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21564 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21565 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21566   $as_echo_n "(cached) " >&6
21567 else
21568   cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h.  */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h.  */
21574  #include <netdb.h>
21575
21576 int
21577 main ()
21578 {
21579 #ifndef AI_ADDRCONFIG
21580   (void) AI_ADDRCONFIG;
21581 #endif
21582
21583   ;
21584   return 0;
21585 }
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591   *) ac_try_echo=$ac_try;;
21592 esac
21593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21594 $as_echo "$ac_try_echo") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_c_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   ac_cv_have_decl_AI_ADDRCONFIG=yes
21606 else
21607   $as_echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610         ac_cv_have_decl_AI_ADDRCONFIG=no
21611 fi
21612
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 fi
21615 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21616 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21617 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21618   :
21619 else
21620   { { $as_echo "$as_me:$LINENO: error: full getaddrinfo(3) implementation needed for IPv6 support" >&5
21621 $as_echo "$as_me: error: full getaddrinfo(3) implementation needed for IPv6 support" >&2;}
21622    { (exit 1); exit 1; }; }
21623 fi
21624
21625
21626   fi
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21654                  malloc.h memory.h netdb.h netinet/in.h paths.h \
21655                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21656                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21657                  syslog.h unistd.h com_err.h et/com_err.h \
21658                  ifaddrs.h
21659 do
21660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21662   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21663 $as_echo_n "checking for $ac_header... " >&6; }
21664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21665   $as_echo_n "(cached) " >&6
21666 fi
21667 ac_res=`eval 'as_val=${'$as_ac_Header'}
21668                  $as_echo "$as_val"'`
21669                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21670 $as_echo "$ac_res" >&6; }
21671 else
21672   # Is the header compilable?
21673 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21674 $as_echo_n "checking $ac_header usability... " >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681 $ac_includes_default
21682 #include <$ac_header>
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688   *) ac_try_echo=$ac_try;;
21689 esac
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692   (eval "$ac_compile") 2>conftest.er1
21693   ac_status=$?
21694   grep -v '^ *+' conftest.er1 >conftest.err
21695   rm -f conftest.er1
21696   cat conftest.err >&5
21697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } && {
21699          test -z "$ac_c_werror_flag" ||
21700          test ! -s conftest.err
21701        } && test -s conftest.$ac_objext; then
21702   ac_header_compiler=yes
21703 else
21704   $as_echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707         ac_header_compiler=no
21708 fi
21709
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21712 $as_echo "$ac_header_compiler" >&6; }
21713
21714 # Is the header present?
21715 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21716 $as_echo_n "checking $ac_header presence... " >&6; }
21717 cat >conftest.$ac_ext <<_ACEOF
21718 /* confdefs.h.  */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h.  */
21723 #include <$ac_header>
21724 _ACEOF
21725 if { (ac_try="$ac_cpp conftest.$ac_ext"
21726 case "(($ac_try" in
21727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728   *) ac_try_echo=$ac_try;;
21729 esac
21730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21731 $as_echo "$ac_try_echo") >&5
21732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21733   ac_status=$?
21734   grep -v '^ *+' conftest.er1 >conftest.err
21735   rm -f conftest.er1
21736   cat conftest.err >&5
21737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } >/dev/null && {
21739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21740          test ! -s conftest.err
21741        }; then
21742   ac_header_preproc=yes
21743 else
21744   $as_echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21746
21747   ac_header_preproc=no
21748 fi
21749
21750 rm -f conftest.err conftest.$ac_ext
21751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21752 $as_echo "$ac_header_preproc" >&6; }
21753
21754 # So?  What about this header?
21755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21756   yes:no: )
21757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21758 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21761     ac_header_preproc=yes
21762     ;;
21763   no:yes:* )
21764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21765 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21767 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21769 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21770     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21771 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21775 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21776     ( cat <<\_ASBOX
21777 ## ---------------------------------------- ##
21778 ## Report this to linux-nfs@vger.kernel.org ##
21779 ## ---------------------------------------- ##
21780 _ASBOX
21781      ) | sed "s/^/$as_me: WARNING:     /" >&2
21782     ;;
21783 esac
21784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21785 $as_echo_n "checking for $ac_header... " >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21787   $as_echo_n "(cached) " >&6
21788 else
21789   eval "$as_ac_Header=\$ac_header_preproc"
21790 fi
21791 ac_res=`eval 'as_val=${'$as_ac_Header'}
21792                  $as_echo "$as_val"'`
21793                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21794 $as_echo "$ac_res" >&6; }
21795
21796 fi
21797 as_val=`eval 'as_val=${'$as_ac_Header'}
21798                  $as_echo "$as_val"'`
21799    if test "x$as_val" = x""yes; then
21800   cat >>confdefs.h <<_ACEOF
21801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21802 _ACEOF
21803
21804 fi
21805
21806 done
21807
21808
21809 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21810 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21811 if test "${ac_cv_c_const+set}" = set; then
21812   $as_echo_n "(cached) " >&6
21813 else
21814   cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h.  */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h.  */
21820
21821 int
21822 main ()
21823 {
21824 /* FIXME: Include the comments suggested by Paul. */
21825 #ifndef __cplusplus
21826   /* Ultrix mips cc rejects this.  */
21827   typedef int charset[2];
21828   const charset cs;
21829   /* SunOS 4.1.1 cc rejects this.  */
21830   char const *const *pcpcc;
21831   char **ppc;
21832   /* NEC SVR4.0.2 mips cc rejects this.  */
21833   struct point {int x, y;};
21834   static struct point const zero = {0,0};
21835   /* AIX XL C 1.02.0.0 rejects this.
21836      It does not let you subtract one const X* pointer from another in
21837      an arm of an if-expression whose if-part is not a constant
21838      expression */
21839   const char *g = "string";
21840   pcpcc = &g + (g ? g-g : 0);
21841   /* HPUX 7.0 cc rejects these. */
21842   ++pcpcc;
21843   ppc = (char**) pcpcc;
21844   pcpcc = (char const *const *) ppc;
21845   { /* SCO 3.2v4 cc rejects this.  */
21846     char *t;
21847     char const *s = 0 ? (char *) 0 : (char const *) 0;
21848
21849     *t++ = 0;
21850     if (s) return 0;
21851   }
21852   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21853     int x[] = {25, 17};
21854     const int *foo = &x[0];
21855     ++foo;
21856   }
21857   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21858     typedef const int *iptr;
21859     iptr p = 0;
21860     ++p;
21861   }
21862   { /* AIX XL C 1.02.0.0 rejects this saying
21863        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21864     struct s { int j; const int *ap[3]; };
21865     struct s *b; b->j = 5;
21866   }
21867   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21868     const int foo = 10;
21869     if (!foo) return 0;
21870   }
21871   return !cs[0] && !zero.x;
21872 #endif
21873
21874   ;
21875   return 0;
21876 }
21877 _ACEOF
21878 rm -f conftest.$ac_objext
21879 if { (ac_try="$ac_compile"
21880 case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21885 $as_echo "$ac_try_echo") >&5
21886   (eval "$ac_compile") 2>conftest.er1
21887   ac_status=$?
21888   grep -v '^ *+' conftest.er1 >conftest.err
21889   rm -f conftest.er1
21890   cat conftest.err >&5
21891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } && {
21893          test -z "$ac_c_werror_flag" ||
21894          test ! -s conftest.err
21895        } && test -s conftest.$ac_objext; then
21896   ac_cv_c_const=yes
21897 else
21898   $as_echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901         ac_cv_c_const=no
21902 fi
21903
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905 fi
21906 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21907 $as_echo "$ac_cv_c_const" >&6; }
21908 if test $ac_cv_c_const = no; then
21909
21910 cat >>confdefs.h <<\_ACEOF
21911 #define const /**/
21912 _ACEOF
21913
21914 fi
21915
21916 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21917 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21918 if test "${ac_cv_type_uid_t+set}" = set; then
21919   $as_echo_n "(cached) " >&6
21920 else
21921   cat >conftest.$ac_ext <<_ACEOF
21922 /* confdefs.h.  */
21923 _ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h.  */
21927 #include <sys/types.h>
21928
21929 _ACEOF
21930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21931   $EGREP "uid_t" >/dev/null 2>&1; then
21932   ac_cv_type_uid_t=yes
21933 else
21934   ac_cv_type_uid_t=no
21935 fi
21936 rm -f conftest*
21937
21938 fi
21939 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21940 $as_echo "$ac_cv_type_uid_t" >&6; }
21941 if test $ac_cv_type_uid_t = no; then
21942
21943 cat >>confdefs.h <<\_ACEOF
21944 #define uid_t int
21945 _ACEOF
21946
21947
21948 cat >>confdefs.h <<\_ACEOF
21949 #define gid_t int
21950 _ACEOF
21951
21952 fi
21953
21954 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21955 $as_echo_n "checking for inline... " >&6; }
21956 if test "${ac_cv_c_inline+set}" = set; then
21957   $as_echo_n "(cached) " >&6
21958 else
21959   ac_cv_c_inline=no
21960 for ac_kw in inline __inline__ __inline; do
21961   cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 #ifndef __cplusplus
21968 typedef int foo_t;
21969 static $ac_kw foo_t static_foo () {return 0; }
21970 $ac_kw foo_t foo () {return 0; }
21971 #endif
21972
21973 _ACEOF
21974 rm -f conftest.$ac_objext
21975 if { (ac_try="$ac_compile"
21976 case "(($ac_try" in
21977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978   *) ac_try_echo=$ac_try;;
21979 esac
21980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21981 $as_echo "$ac_try_echo") >&5
21982   (eval "$ac_compile") 2>conftest.er1
21983   ac_status=$?
21984   grep -v '^ *+' conftest.er1 >conftest.err
21985   rm -f conftest.er1
21986   cat conftest.err >&5
21987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); } && {
21989          test -z "$ac_c_werror_flag" ||
21990          test ! -s conftest.err
21991        } && test -s conftest.$ac_objext; then
21992   ac_cv_c_inline=$ac_kw
21993 else
21994   $as_echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997
21998 fi
21999
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001   test "$ac_cv_c_inline" != no && break
22002 done
22003
22004 fi
22005 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22006 $as_echo "$ac_cv_c_inline" >&6; }
22007
22008
22009 case $ac_cv_c_inline in
22010   inline | yes) ;;
22011   *)
22012     case $ac_cv_c_inline in
22013       no) ac_val=;;
22014       *) ac_val=$ac_cv_c_inline;;
22015     esac
22016     cat >>confdefs.h <<_ACEOF
22017 #ifndef __cplusplus
22018 #define inline $ac_val
22019 #endif
22020 _ACEOF
22021     ;;
22022 esac
22023
22024 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
22025 $as_echo_n "checking for off_t... " >&6; }
22026 if test "${ac_cv_type_off_t+set}" = set; then
22027   $as_echo_n "(cached) " >&6
22028 else
22029   ac_cv_type_off_t=no
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h.  */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h.  */
22036 $ac_includes_default
22037 int
22038 main ()
22039 {
22040 if (sizeof (off_t))
22041        return 0;
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (ac_try="$ac_compile"
22048 case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22053 $as_echo "$ac_try_echo") >&5
22054   (eval "$ac_compile") 2>conftest.er1
22055   ac_status=$?
22056   grep -v '^ *+' conftest.er1 >conftest.err
22057   rm -f conftest.er1
22058   cat conftest.err >&5
22059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } && {
22061          test -z "$ac_c_werror_flag" ||
22062          test ! -s conftest.err
22063        } && test -s conftest.$ac_objext; then
22064   cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 $ac_includes_default
22071 int
22072 main ()
22073 {
22074 if (sizeof ((off_t)))
22075           return 0;
22076   ;
22077   return 0;
22078 }
22079 _ACEOF
22080 rm -f conftest.$ac_objext
22081 if { (ac_try="$ac_compile"
22082 case "(($ac_try" in
22083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084   *) ac_try_echo=$ac_try;;
22085 esac
22086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22087 $as_echo "$ac_try_echo") >&5
22088   (eval "$ac_compile") 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } && {
22095          test -z "$ac_c_werror_flag" ||
22096          test ! -s conftest.err
22097        } && test -s conftest.$ac_objext; then
22098   :
22099 else
22100   $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103         ac_cv_type_off_t=yes
22104 fi
22105
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 else
22108   $as_echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22110
22111
22112 fi
22113
22114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22115 fi
22116 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22117 $as_echo "$ac_cv_type_off_t" >&6; }
22118 if test "x$ac_cv_type_off_t" = x""yes; then
22119   :
22120 else
22121
22122 cat >>confdefs.h <<_ACEOF
22123 #define off_t long int
22124 _ACEOF
22125
22126 fi
22127
22128 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
22129 $as_echo_n "checking for pid_t... " >&6; }
22130 if test "${ac_cv_type_pid_t+set}" = set; then
22131   $as_echo_n "(cached) " >&6
22132 else
22133   ac_cv_type_pid_t=no
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140 $ac_includes_default
22141 int
22142 main ()
22143 {
22144 if (sizeof (pid_t))
22145        return 0;
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext
22151 if { (ac_try="$ac_compile"
22152 case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22157 $as_echo "$ac_try_echo") >&5
22158   (eval "$ac_compile") 2>conftest.er1
22159   ac_status=$?
22160   grep -v '^ *+' conftest.er1 >conftest.err
22161   rm -f conftest.er1
22162   cat conftest.err >&5
22163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); } && {
22165          test -z "$ac_c_werror_flag" ||
22166          test ! -s conftest.err
22167        } && test -s conftest.$ac_objext; then
22168   cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174 $ac_includes_default
22175 int
22176 main ()
22177 {
22178 if (sizeof ((pid_t)))
22179           return 0;
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 rm -f conftest.$ac_objext
22185 if { (ac_try="$ac_compile"
22186 case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22191 $as_echo "$ac_try_echo") >&5
22192   (eval "$ac_compile") 2>conftest.er1
22193   ac_status=$?
22194   grep -v '^ *+' conftest.er1 >conftest.err
22195   rm -f conftest.er1
22196   cat conftest.err >&5
22197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); } && {
22199          test -z "$ac_c_werror_flag" ||
22200          test ! -s conftest.err
22201        } && test -s conftest.$ac_objext; then
22202   :
22203 else
22204   $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207         ac_cv_type_pid_t=yes
22208 fi
22209
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211 else
22212   $as_echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215
22216 fi
22217
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 fi
22220 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22221 $as_echo "$ac_cv_type_pid_t" >&6; }
22222 if test "x$ac_cv_type_pid_t" = x""yes; then
22223   :
22224 else
22225
22226 cat >>confdefs.h <<_ACEOF
22227 #define pid_t int
22228 _ACEOF
22229
22230 fi
22231
22232 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
22233 $as_echo_n "checking for size_t... " >&6; }
22234 if test "${ac_cv_type_size_t+set}" = set; then
22235   $as_echo_n "(cached) " >&6
22236 else
22237   ac_cv_type_size_t=no
22238 cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 $ac_includes_default
22245 int
22246 main ()
22247 {
22248 if (sizeof (size_t))
22249        return 0;
22250   ;
22251   return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258   *) ac_try_echo=$ac_try;;
22259 esac
22260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22261 $as_echo "$ac_try_echo") >&5
22262   (eval "$ac_compile") 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } && {
22269          test -z "$ac_c_werror_flag" ||
22270          test ! -s conftest.err
22271        } && test -s conftest.$ac_objext; then
22272   cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278 $ac_includes_default
22279 int
22280 main ()
22281 {
22282 if (sizeof ((size_t)))
22283           return 0;
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295 $as_echo "$ac_try_echo") >&5
22296   (eval "$ac_compile") 2>conftest.er1
22297   ac_status=$?
22298   grep -v '^ *+' conftest.er1 >conftest.err
22299   rm -f conftest.er1
22300   cat conftest.err >&5
22301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } && {
22303          test -z "$ac_c_werror_flag" ||
22304          test ! -s conftest.err
22305        } && test -s conftest.$ac_objext; then
22306   :
22307 else
22308   $as_echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311         ac_cv_type_size_t=yes
22312 fi
22313
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 else
22316   $as_echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22318
22319
22320 fi
22321
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22323 fi
22324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22325 $as_echo "$ac_cv_type_size_t" >&6; }
22326 if test "x$ac_cv_type_size_t" = x""yes; then
22327   :
22328 else
22329
22330 cat >>confdefs.h <<_ACEOF
22331 #define size_t unsigned int
22332 _ACEOF
22333
22334 fi
22335
22336 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22337 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22338 if test "${ac_cv_header_time+set}" = set; then
22339   $as_echo_n "(cached) " >&6
22340 else
22341   cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 #include <sys/types.h>
22348 #include <sys/time.h>
22349 #include <time.h>
22350
22351 int
22352 main ()
22353 {
22354 if ((struct tm *) 0)
22355 return 0;
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364   *) ac_try_echo=$ac_try;;
22365 esac
22366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367 $as_echo "$ac_try_echo") >&5
22368   (eval "$ac_compile") 2>conftest.er1
22369   ac_status=$?
22370   grep -v '^ *+' conftest.er1 >conftest.err
22371   rm -f conftest.er1
22372   cat conftest.err >&5
22373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } && {
22375          test -z "$ac_c_werror_flag" ||
22376          test ! -s conftest.err
22377        } && test -s conftest.$ac_objext; then
22378   ac_cv_header_time=yes
22379 else
22380   $as_echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383         ac_cv_header_time=no
22384 fi
22385
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 fi
22388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22389 $as_echo "$ac_cv_header_time" >&6; }
22390 if test $ac_cv_header_time = yes; then
22391
22392 cat >>confdefs.h <<\_ACEOF
22393 #define TIME_WITH_SYS_TIME 1
22394 _ACEOF
22395
22396 fi
22397
22398 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22399 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22400 if test "${ac_cv_struct_tm+set}" = set; then
22401   $as_echo_n "(cached) " >&6
22402 else
22403   cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409 #include <sys/types.h>
22410 #include <time.h>
22411
22412 int
22413 main ()
22414 {
22415 struct tm tm;
22416                                      int *p = &tm.tm_sec;
22417                                      return !p;
22418   ;
22419   return 0;
22420 }
22421 _ACEOF
22422 rm -f conftest.$ac_objext
22423 if { (ac_try="$ac_compile"
22424 case "(($ac_try" in
22425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426   *) ac_try_echo=$ac_try;;
22427 esac
22428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22429 $as_echo "$ac_try_echo") >&5
22430   (eval "$ac_compile") 2>conftest.er1
22431   ac_status=$?
22432   grep -v '^ *+' conftest.er1 >conftest.err
22433   rm -f conftest.er1
22434   cat conftest.err >&5
22435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); } && {
22437          test -z "$ac_c_werror_flag" ||
22438          test ! -s conftest.err
22439        } && test -s conftest.$ac_objext; then
22440   ac_cv_struct_tm=time.h
22441 else
22442   $as_echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22444
22445         ac_cv_struct_tm=sys/time.h
22446 fi
22447
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449 fi
22450 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22451 $as_echo "$ac_cv_struct_tm" >&6; }
22452 if test $ac_cv_struct_tm = sys/time.h; then
22453
22454 cat >>confdefs.h <<\_ACEOF
22455 #define TM_IN_SYS_TIME 1
22456 _ACEOF
22457
22458 fi
22459
22460
22461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22462 # for constant arguments.  Useless!
22463 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
22464 $as_echo_n "checking for working alloca.h... " >&6; }
22465 if test "${ac_cv_working_alloca_h+set}" = set; then
22466   $as_echo_n "(cached) " >&6
22467 else
22468   cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 #include <alloca.h>
22475 int
22476 main ()
22477 {
22478 char *p = (char *) alloca (2 * sizeof (int));
22479                           if (p) return 0;
22480   ;
22481   return 0;
22482 }
22483 _ACEOF
22484 rm -f conftest.$ac_objext conftest$ac_exeext
22485 if { (ac_try="$ac_link"
22486 case "(($ac_try" in
22487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488   *) ac_try_echo=$ac_try;;
22489 esac
22490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22491 $as_echo "$ac_try_echo") >&5
22492   (eval "$ac_link") 2>conftest.er1
22493   ac_status=$?
22494   grep -v '^ *+' conftest.er1 >conftest.err
22495   rm -f conftest.er1
22496   cat conftest.err >&5
22497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } && {
22499          test -z "$ac_c_werror_flag" ||
22500          test ! -s conftest.err
22501        } && test -s conftest$ac_exeext && {
22502          test "$cross_compiling" = yes ||
22503          $as_test_x conftest$ac_exeext
22504        }; then
22505   ac_cv_working_alloca_h=yes
22506 else
22507   $as_echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22509
22510         ac_cv_working_alloca_h=no
22511 fi
22512
22513 rm -rf conftest.dSYM
22514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22515       conftest$ac_exeext conftest.$ac_ext
22516 fi
22517 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22518 $as_echo "$ac_cv_working_alloca_h" >&6; }
22519 if test $ac_cv_working_alloca_h = yes; then
22520
22521 cat >>confdefs.h <<\_ACEOF
22522 #define HAVE_ALLOCA_H 1
22523 _ACEOF
22524
22525 fi
22526
22527 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
22528 $as_echo_n "checking for alloca... " >&6; }
22529 if test "${ac_cv_func_alloca_works+set}" = set; then
22530   $as_echo_n "(cached) " >&6
22531 else
22532   cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538 #ifdef __GNUC__
22539 # define alloca __builtin_alloca
22540 #else
22541 # ifdef _MSC_VER
22542 #  include <malloc.h>
22543 #  define alloca _alloca
22544 # else
22545 #  ifdef HAVE_ALLOCA_H
22546 #   include <alloca.h>
22547 #  else
22548 #   ifdef _AIX
22549  #pragma alloca
22550 #   else
22551 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22552 char *alloca ();
22553 #    endif
22554 #   endif
22555 #  endif
22556 # endif
22557 #endif
22558
22559 int
22560 main ()
22561 {
22562 char *p = (char *) alloca (1);
22563                                     if (p) return 0;
22564   ;
22565   return 0;
22566 }
22567 _ACEOF
22568 rm -f conftest.$ac_objext conftest$ac_exeext
22569 if { (ac_try="$ac_link"
22570 case "(($ac_try" in
22571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572   *) ac_try_echo=$ac_try;;
22573 esac
22574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22575 $as_echo "$ac_try_echo") >&5
22576   (eval "$ac_link") 2>conftest.er1
22577   ac_status=$?
22578   grep -v '^ *+' conftest.er1 >conftest.err
22579   rm -f conftest.er1
22580   cat conftest.err >&5
22581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); } && {
22583          test -z "$ac_c_werror_flag" ||
22584          test ! -s conftest.err
22585        } && test -s conftest$ac_exeext && {
22586          test "$cross_compiling" = yes ||
22587          $as_test_x conftest$ac_exeext
22588        }; then
22589   ac_cv_func_alloca_works=yes
22590 else
22591   $as_echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594         ac_cv_func_alloca_works=no
22595 fi
22596
22597 rm -rf conftest.dSYM
22598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22599       conftest$ac_exeext conftest.$ac_ext
22600 fi
22601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22602 $as_echo "$ac_cv_func_alloca_works" >&6; }
22603
22604 if test $ac_cv_func_alloca_works = yes; then
22605
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_ALLOCA 1
22608 _ACEOF
22609
22610 else
22611   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22612 # that cause trouble.  Some versions do not even contain alloca or
22613 # contain a buggy version.  If you still want to use their alloca,
22614 # use ar to extract alloca.o from them instead of compiling alloca.c.
22615
22616 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22617
22618 cat >>confdefs.h <<\_ACEOF
22619 #define C_ALLOCA 1
22620 _ACEOF
22621
22622
22623 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22624 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22625 if test "${ac_cv_os_cray+set}" = set; then
22626   $as_echo_n "(cached) " >&6
22627 else
22628   cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h.  */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h.  */
22634 #if defined CRAY && ! defined CRAY2
22635 webecray
22636 #else
22637 wenotbecray
22638 #endif
22639
22640 _ACEOF
22641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22642   $EGREP "webecray" >/dev/null 2>&1; then
22643   ac_cv_os_cray=yes
22644 else
22645   ac_cv_os_cray=no
22646 fi
22647 rm -f conftest*
22648
22649 fi
22650 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22651 $as_echo "$ac_cv_os_cray" >&6; }
22652 if test $ac_cv_os_cray = yes; then
22653   for ac_func in _getb67 GETB67 getb67; do
22654     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22656 $as_echo_n "checking for $ac_func... " >&6; }
22657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22658   $as_echo_n "(cached) " >&6
22659 else
22660   cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h.  */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h.  */
22666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22668 #define $ac_func innocuous_$ac_func
22669
22670 /* System header to define __stub macros and hopefully few prototypes,
22671     which can conflict with char $ac_func (); below.
22672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22673     <limits.h> exists even on freestanding compilers.  */
22674
22675 #ifdef __STDC__
22676 # include <limits.h>
22677 #else
22678 # include <assert.h>
22679 #endif
22680
22681 #undef $ac_func
22682
22683 /* Override any GCC internal prototype to avoid an error.
22684    Use char because int might match the return type of a GCC
22685    builtin and then its argument prototype would still apply.  */
22686 #ifdef __cplusplus
22687 extern "C"
22688 #endif
22689 char $ac_func ();
22690 /* The GNU C library defines this for functions which it implements
22691     to always fail with ENOSYS.  Some functions are actually named
22692     something starting with __ and the normal name is an alias.  */
22693 #if defined __stub_$ac_func || defined __stub___$ac_func
22694 choke me
22695 #endif
22696
22697 int
22698 main ()
22699 {
22700 return $ac_func ();
22701   ;
22702   return 0;
22703 }
22704 _ACEOF
22705 rm -f conftest.$ac_objext conftest$ac_exeext
22706 if { (ac_try="$ac_link"
22707 case "(($ac_try" in
22708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709   *) ac_try_echo=$ac_try;;
22710 esac
22711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22712 $as_echo "$ac_try_echo") >&5
22713   (eval "$ac_link") 2>conftest.er1
22714   ac_status=$?
22715   grep -v '^ *+' conftest.er1 >conftest.err
22716   rm -f conftest.er1
22717   cat conftest.err >&5
22718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); } && {
22720          test -z "$ac_c_werror_flag" ||
22721          test ! -s conftest.err
22722        } && test -s conftest$ac_exeext && {
22723          test "$cross_compiling" = yes ||
22724          $as_test_x conftest$ac_exeext
22725        }; then
22726   eval "$as_ac_var=yes"
22727 else
22728   $as_echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22730
22731         eval "$as_ac_var=no"
22732 fi
22733
22734 rm -rf conftest.dSYM
22735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22736       conftest$ac_exeext conftest.$ac_ext
22737 fi
22738 ac_res=`eval 'as_val=${'$as_ac_var'}
22739                  $as_echo "$as_val"'`
22740                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22741 $as_echo "$ac_res" >&6; }
22742 as_val=`eval 'as_val=${'$as_ac_var'}
22743                  $as_echo "$as_val"'`
22744    if test "x$as_val" = x""yes; then
22745
22746 cat >>confdefs.h <<_ACEOF
22747 #define CRAY_STACKSEG_END $ac_func
22748 _ACEOF
22749
22750     break
22751 fi
22752
22753   done
22754 fi
22755
22756 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22757 $as_echo_n "checking stack direction for C alloca... " >&6; }
22758 if test "${ac_cv_c_stack_direction+set}" = set; then
22759   $as_echo_n "(cached) " >&6
22760 else
22761   if test "$cross_compiling" = yes; then
22762   ac_cv_c_stack_direction=0
22763 else
22764   cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h.  */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h.  */
22770 $ac_includes_default
22771 int
22772 find_stack_direction ()
22773 {
22774   static char *addr = 0;
22775   auto char dummy;
22776   if (addr == 0)
22777     {
22778       addr = &dummy;
22779       return find_stack_direction ();
22780     }
22781   else
22782     return (&dummy > addr) ? 1 : -1;
22783 }
22784
22785 int
22786 main ()
22787 {
22788   return find_stack_direction () < 0;
22789 }
22790 _ACEOF
22791 rm -f conftest$ac_exeext
22792 if { (ac_try="$ac_link"
22793 case "(($ac_try" in
22794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795   *) ac_try_echo=$ac_try;;
22796 esac
22797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22798 $as_echo "$ac_try_echo") >&5
22799   (eval "$ac_link") 2>&5
22800   ac_status=$?
22801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803   { (case "(($ac_try" in
22804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805   *) ac_try_echo=$ac_try;;
22806 esac
22807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22808 $as_echo "$ac_try_echo") >&5
22809   (eval "$ac_try") 2>&5
22810   ac_status=$?
22811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); }; }; then
22813   ac_cv_c_stack_direction=1
22814 else
22815   $as_echo "$as_me: program exited with status $ac_status" >&5
22816 $as_echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22818
22819 ( exit $ac_status )
22820 ac_cv_c_stack_direction=-1
22821 fi
22822 rm -rf conftest.dSYM
22823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22824 fi
22825
22826
22827 fi
22828 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22829 $as_echo "$ac_cv_c_stack_direction" >&6; }
22830
22831 cat >>confdefs.h <<_ACEOF
22832 #define STACK_DIRECTION $ac_cv_c_stack_direction
22833 _ACEOF
22834
22835
22836 fi
22837
22838
22839
22840
22841
22842
22843 ac_header_dirent=no
22844 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22845   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22846 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22847 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22849   $as_echo_n "(cached) " >&6
22850 else
22851   cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857 #include <sys/types.h>
22858 #include <$ac_hdr>
22859
22860 int
22861 main ()
22862 {
22863 if ((DIR *) 0)
22864 return 0;
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22876 $as_echo "$ac_try_echo") >&5
22877   (eval "$ac_compile") 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } && {
22884          test -z "$ac_c_werror_flag" ||
22885          test ! -s conftest.err
22886        } && test -s conftest.$ac_objext; then
22887   eval "$as_ac_Header=yes"
22888 else
22889   $as_echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22891
22892         eval "$as_ac_Header=no"
22893 fi
22894
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 fi
22897 ac_res=`eval 'as_val=${'$as_ac_Header'}
22898                  $as_echo "$as_val"'`
22899                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22900 $as_echo "$ac_res" >&6; }
22901 as_val=`eval 'as_val=${'$as_ac_Header'}
22902                  $as_echo "$as_val"'`
22903    if test "x$as_val" = x""yes; then
22904   cat >>confdefs.h <<_ACEOF
22905 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22906 _ACEOF
22907
22908 ac_header_dirent=$ac_hdr; break
22909 fi
22910
22911 done
22912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22913 if test $ac_header_dirent = dirent.h; then
22914   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22915 $as_echo_n "checking for library containing opendir... " >&6; }
22916 if test "${ac_cv_search_opendir+set}" = set; then
22917   $as_echo_n "(cached) " >&6
22918 else
22919   ac_func_search_save_LIBS=$LIBS
22920 cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h.  */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h.  */
22926
22927 /* Override any GCC internal prototype to avoid an error.
22928    Use char because int might match the return type of a GCC
22929    builtin and then its argument prototype would still apply.  */
22930 #ifdef __cplusplus
22931 extern "C"
22932 #endif
22933 char opendir ();
22934 int
22935 main ()
22936 {
22937 return opendir ();
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 for ac_lib in '' dir; do
22943   if test -z "$ac_lib"; then
22944     ac_res="none required"
22945   else
22946     ac_res=-l$ac_lib
22947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22948   fi
22949   rm -f conftest.$ac_objext conftest$ac_exeext
22950 if { (ac_try="$ac_link"
22951 case "(($ac_try" in
22952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953   *) ac_try_echo=$ac_try;;
22954 esac
22955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956 $as_echo "$ac_try_echo") >&5
22957   (eval "$ac_link") 2>conftest.er1
22958   ac_status=$?
22959   grep -v '^ *+' conftest.er1 >conftest.err
22960   rm -f conftest.er1
22961   cat conftest.err >&5
22962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963   (exit $ac_status); } && {
22964          test -z "$ac_c_werror_flag" ||
22965          test ! -s conftest.err
22966        } && test -s conftest$ac_exeext && {
22967          test "$cross_compiling" = yes ||
22968          $as_test_x conftest$ac_exeext
22969        }; then
22970   ac_cv_search_opendir=$ac_res
22971 else
22972   $as_echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975
22976 fi
22977
22978 rm -rf conftest.dSYM
22979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22980       conftest$ac_exeext
22981   if test "${ac_cv_search_opendir+set}" = set; then
22982   break
22983 fi
22984 done
22985 if test "${ac_cv_search_opendir+set}" = set; then
22986   :
22987 else
22988   ac_cv_search_opendir=no
22989 fi
22990 rm conftest.$ac_ext
22991 LIBS=$ac_func_search_save_LIBS
22992 fi
22993 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22994 $as_echo "$ac_cv_search_opendir" >&6; }
22995 ac_res=$ac_cv_search_opendir
22996 if test "$ac_res" != no; then
22997   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22998
22999 fi
23000
23001 else
23002   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23003 $as_echo_n "checking for library containing opendir... " >&6; }
23004 if test "${ac_cv_search_opendir+set}" = set; then
23005   $as_echo_n "(cached) " >&6
23006 else
23007   ac_func_search_save_LIBS=$LIBS
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014
23015 /* Override any GCC internal prototype to avoid an error.
23016    Use char because int might match the return type of a GCC
23017    builtin and then its argument prototype would still apply.  */
23018 #ifdef __cplusplus
23019 extern "C"
23020 #endif
23021 char opendir ();
23022 int
23023 main ()
23024 {
23025 return opendir ();
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 for ac_lib in '' x; do
23031   if test -z "$ac_lib"; then
23032     ac_res="none required"
23033   else
23034     ac_res=-l$ac_lib
23035     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23036   fi
23037   rm -f conftest.$ac_objext conftest$ac_exeext
23038 if { (ac_try="$ac_link"
23039 case "(($ac_try" in
23040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23041   *) ac_try_echo=$ac_try;;
23042 esac
23043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23044 $as_echo "$ac_try_echo") >&5
23045   (eval "$ac_link") 2>conftest.er1
23046   ac_status=$?
23047   grep -v '^ *+' conftest.er1 >conftest.err
23048   rm -f conftest.er1
23049   cat conftest.err >&5
23050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } && {
23052          test -z "$ac_c_werror_flag" ||
23053          test ! -s conftest.err
23054        } && test -s conftest$ac_exeext && {
23055          test "$cross_compiling" = yes ||
23056          $as_test_x conftest$ac_exeext
23057        }; then
23058   ac_cv_search_opendir=$ac_res
23059 else
23060   $as_echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23062
23063
23064 fi
23065
23066 rm -rf conftest.dSYM
23067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23068       conftest$ac_exeext
23069   if test "${ac_cv_search_opendir+set}" = set; then
23070   break
23071 fi
23072 done
23073 if test "${ac_cv_search_opendir+set}" = set; then
23074   :
23075 else
23076   ac_cv_search_opendir=no
23077 fi
23078 rm conftest.$ac_ext
23079 LIBS=$ac_func_search_save_LIBS
23080 fi
23081 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23082 $as_echo "$ac_cv_search_opendir" >&6; }
23083 ac_res=$ac_cv_search_opendir
23084 if test "$ac_res" != no; then
23085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23086
23087 fi
23088
23089 fi
23090
23091 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23092 $as_echo_n "checking whether closedir returns void... " >&6; }
23093 if test "${ac_cv_func_closedir_void+set}" = set; then
23094   $as_echo_n "(cached) " >&6
23095 else
23096   if test "$cross_compiling" = yes; then
23097   ac_cv_func_closedir_void=yes
23098 else
23099   cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105 $ac_includes_default
23106 #include <$ac_header_dirent>
23107 #ifndef __cplusplus
23108 int closedir ();
23109 #endif
23110
23111 int
23112 main ()
23113 {
23114 return closedir (opendir (".")) != 0;
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 rm -f conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23126 $as_echo "$ac_try_echo") >&5
23127   (eval "$ac_link") 2>&5
23128   ac_status=$?
23129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23131   { (case "(($ac_try" in
23132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133   *) ac_try_echo=$ac_try;;
23134 esac
23135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23136 $as_echo "$ac_try_echo") >&5
23137   (eval "$ac_try") 2>&5
23138   ac_status=$?
23139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); }; }; then
23141   ac_cv_func_closedir_void=no
23142 else
23143   $as_echo "$as_me: program exited with status $ac_status" >&5
23144 $as_echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23146
23147 ( exit $ac_status )
23148 ac_cv_func_closedir_void=yes
23149 fi
23150 rm -rf conftest.dSYM
23151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23152 fi
23153
23154
23155 fi
23156 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23157 $as_echo "$ac_cv_func_closedir_void" >&6; }
23158 if test $ac_cv_func_closedir_void = yes; then
23159
23160 cat >>confdefs.h <<\_ACEOF
23161 #define CLOSEDIR_VOID 1
23162 _ACEOF
23163
23164 fi
23165
23166 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
23167 $as_echo_n "checking for error_at_line... " >&6; }
23168 if test "${ac_cv_lib_error_at_line+set}" = set; then
23169   $as_echo_n "(cached) " >&6
23170 else
23171   cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h.  */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h.  */
23177 #include <error.h>
23178 int
23179 main ()
23180 {
23181 error_at_line (0, 0, "", 0, "an error occurred");
23182   ;
23183   return 0;
23184 }
23185 _ACEOF
23186 rm -f conftest.$ac_objext conftest$ac_exeext
23187 if { (ac_try="$ac_link"
23188 case "(($ac_try" in
23189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190   *) ac_try_echo=$ac_try;;
23191 esac
23192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23193 $as_echo "$ac_try_echo") >&5
23194   (eval "$ac_link") 2>conftest.er1
23195   ac_status=$?
23196   grep -v '^ *+' conftest.er1 >conftest.err
23197   rm -f conftest.er1
23198   cat conftest.err >&5
23199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); } && {
23201          test -z "$ac_c_werror_flag" ||
23202          test ! -s conftest.err
23203        } && test -s conftest$ac_exeext && {
23204          test "$cross_compiling" = yes ||
23205          $as_test_x conftest$ac_exeext
23206        }; then
23207   ac_cv_lib_error_at_line=yes
23208 else
23209   $as_echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23211
23212         ac_cv_lib_error_at_line=no
23213 fi
23214
23215 rm -rf conftest.dSYM
23216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23217       conftest$ac_exeext conftest.$ac_ext
23218 fi
23219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23220 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23221 if test $ac_cv_lib_error_at_line = no; then
23222   case " $LIBOBJS " in
23223   *" error.$ac_objext "* ) ;;
23224   *) LIBOBJS="$LIBOBJS error.$ac_objext"
23225  ;;
23226 esac
23227
23228 fi
23229
23230
23231 for ac_header in vfork.h
23232 do
23233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23235   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23236 $as_echo_n "checking for $ac_header... " >&6; }
23237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23238   $as_echo_n "(cached) " >&6
23239 fi
23240 ac_res=`eval 'as_val=${'$as_ac_Header'}
23241                  $as_echo "$as_val"'`
23242                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23243 $as_echo "$ac_res" >&6; }
23244 else
23245   # Is the header compilable?
23246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23247 $as_echo_n "checking $ac_header usability... " >&6; }
23248 cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 $ac_includes_default
23255 #include <$ac_header>
23256 _ACEOF
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261   *) ac_try_echo=$ac_try;;
23262 esac
23263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23264 $as_echo "$ac_try_echo") >&5
23265   (eval "$ac_compile") 2>conftest.er1
23266   ac_status=$?
23267   grep -v '^ *+' conftest.er1 >conftest.err
23268   rm -f conftest.er1
23269   cat conftest.err >&5
23270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); } && {
23272          test -z "$ac_c_werror_flag" ||
23273          test ! -s conftest.err
23274        } && test -s conftest.$ac_objext; then
23275   ac_header_compiler=yes
23276 else
23277   $as_echo "$as_me: failed program was:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23279
23280         ac_header_compiler=no
23281 fi
23282
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23285 $as_echo "$ac_header_compiler" >&6; }
23286
23287 # Is the header present?
23288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23289 $as_echo_n "checking $ac_header presence... " >&6; }
23290 cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296 #include <$ac_header>
23297 _ACEOF
23298 if { (ac_try="$ac_cpp conftest.$ac_ext"
23299 case "(($ac_try" in
23300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301   *) ac_try_echo=$ac_try;;
23302 esac
23303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23304 $as_echo "$ac_try_echo") >&5
23305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } >/dev/null && {
23312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23313          test ! -s conftest.err
23314        }; then
23315   ac_header_preproc=yes
23316 else
23317   $as_echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320   ac_header_preproc=no
23321 fi
23322
23323 rm -f conftest.err conftest.$ac_ext
23324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23325 $as_echo "$ac_header_preproc" >&6; }
23326
23327 # So?  What about this header?
23328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23329   yes:no: )
23330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23334     ac_header_preproc=yes
23335     ;;
23336   no:yes:* )
23337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23340 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23344 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23349     ( cat <<\_ASBOX
23350 ## ---------------------------------------- ##
23351 ## Report this to linux-nfs@vger.kernel.org ##
23352 ## ---------------------------------------- ##
23353 _ASBOX
23354      ) | sed "s/^/$as_me: WARNING:     /" >&2
23355     ;;
23356 esac
23357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23358 $as_echo_n "checking for $ac_header... " >&6; }
23359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23360   $as_echo_n "(cached) " >&6
23361 else
23362   eval "$as_ac_Header=\$ac_header_preproc"
23363 fi
23364 ac_res=`eval 'as_val=${'$as_ac_Header'}
23365                  $as_echo "$as_val"'`
23366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23367 $as_echo "$ac_res" >&6; }
23368
23369 fi
23370 as_val=`eval 'as_val=${'$as_ac_Header'}
23371                  $as_echo "$as_val"'`
23372    if test "x$as_val" = x""yes; then
23373   cat >>confdefs.h <<_ACEOF
23374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23375 _ACEOF
23376
23377 fi
23378
23379 done
23380
23381
23382
23383 for ac_func in fork vfork
23384 do
23385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23386 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23387 $as_echo_n "checking for $ac_func... " >&6; }
23388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23389   $as_echo_n "(cached) " >&6
23390 else
23391   cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23399 #define $ac_func innocuous_$ac_func
23400
23401 /* System header to define __stub macros and hopefully few prototypes,
23402     which can conflict with char $ac_func (); below.
23403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23404     <limits.h> exists even on freestanding compilers.  */
23405
23406 #ifdef __STDC__
23407 # include <limits.h>
23408 #else
23409 # include <assert.h>
23410 #endif
23411
23412 #undef $ac_func
23413
23414 /* Override any GCC internal prototype to avoid an error.
23415    Use char because int might match the return type of a GCC
23416    builtin and then its argument prototype would still apply.  */
23417 #ifdef __cplusplus
23418 extern "C"
23419 #endif
23420 char $ac_func ();
23421 /* The GNU C library defines this for functions which it implements
23422     to always fail with ENOSYS.  Some functions are actually named
23423     something starting with __ and the normal name is an alias.  */
23424 #if defined __stub_$ac_func || defined __stub___$ac_func
23425 choke me
23426 #endif
23427
23428 int
23429 main ()
23430 {
23431 return $ac_func ();
23432   ;
23433   return 0;
23434 }
23435 _ACEOF
23436 rm -f conftest.$ac_objext conftest$ac_exeext
23437 if { (ac_try="$ac_link"
23438 case "(($ac_try" in
23439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23440   *) ac_try_echo=$ac_try;;
23441 esac
23442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23443 $as_echo "$ac_try_echo") >&5
23444   (eval "$ac_link") 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } && {
23451          test -z "$ac_c_werror_flag" ||
23452          test ! -s conftest.err
23453        } && test -s conftest$ac_exeext && {
23454          test "$cross_compiling" = yes ||
23455          $as_test_x conftest$ac_exeext
23456        }; then
23457   eval "$as_ac_var=yes"
23458 else
23459   $as_echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462         eval "$as_ac_var=no"
23463 fi
23464
23465 rm -rf conftest.dSYM
23466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23467       conftest$ac_exeext conftest.$ac_ext
23468 fi
23469 ac_res=`eval 'as_val=${'$as_ac_var'}
23470                  $as_echo "$as_val"'`
23471                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23472 $as_echo "$ac_res" >&6; }
23473 as_val=`eval 'as_val=${'$as_ac_var'}
23474                  $as_echo "$as_val"'`
23475    if test "x$as_val" = x""yes; then
23476   cat >>confdefs.h <<_ACEOF
23477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23478 _ACEOF
23479
23480 fi
23481 done
23482
23483 if test "x$ac_cv_func_fork" = xyes; then
23484   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
23485 $as_echo_n "checking for working fork... " >&6; }
23486 if test "${ac_cv_func_fork_works+set}" = set; then
23487   $as_echo_n "(cached) " >&6
23488 else
23489   if test "$cross_compiling" = yes; then
23490   ac_cv_func_fork_works=cross
23491 else
23492   cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h.  */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h.  */
23498 $ac_includes_default
23499 int
23500 main ()
23501 {
23502
23503           /* By Ruediger Kuhlmann. */
23504           return fork () < 0;
23505
23506   ;
23507   return 0;
23508 }
23509 _ACEOF
23510 rm -f conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514   *) ac_try_echo=$ac_try;;
23515 esac
23516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23517 $as_echo "$ac_try_echo") >&5
23518   (eval "$ac_link") 2>&5
23519   ac_status=$?
23520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23522   { (case "(($ac_try" in
23523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524   *) ac_try_echo=$ac_try;;
23525 esac
23526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23527 $as_echo "$ac_try_echo") >&5
23528   (eval "$ac_try") 2>&5
23529   ac_status=$?
23530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); }; }; then
23532   ac_cv_func_fork_works=yes
23533 else
23534   $as_echo "$as_me: program exited with status $ac_status" >&5
23535 $as_echo "$as_me: failed program was:" >&5
23536 sed 's/^/| /' conftest.$ac_ext >&5
23537
23538 ( exit $ac_status )
23539 ac_cv_func_fork_works=no
23540 fi
23541 rm -rf conftest.dSYM
23542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23543 fi
23544
23545
23546 fi
23547 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23548 $as_echo "$ac_cv_func_fork_works" >&6; }
23549
23550 else
23551   ac_cv_func_fork_works=$ac_cv_func_fork
23552 fi
23553 if test "x$ac_cv_func_fork_works" = xcross; then
23554   case $host in
23555     *-*-amigaos* | *-*-msdosdjgpp*)
23556       # Override, as these systems have only a dummy fork() stub
23557       ac_cv_func_fork_works=no
23558       ;;
23559     *)
23560       ac_cv_func_fork_works=yes
23561       ;;
23562   esac
23563   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23564 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23565 fi
23566 ac_cv_func_vfork_works=$ac_cv_func_vfork
23567 if test "x$ac_cv_func_vfork" = xyes; then
23568   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
23569 $as_echo_n "checking for working vfork... " >&6; }
23570 if test "${ac_cv_func_vfork_works+set}" = set; then
23571   $as_echo_n "(cached) " >&6
23572 else
23573   if test "$cross_compiling" = yes; then
23574   ac_cv_func_vfork_works=cross
23575 else
23576   cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h.  */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h.  */
23582 /* Thanks to Paul Eggert for this test.  */
23583 $ac_includes_default
23584 #include <sys/wait.h>
23585 #ifdef HAVE_VFORK_H
23586 # include <vfork.h>
23587 #endif
23588 /* On some sparc systems, changes by the child to local and incoming
23589    argument registers are propagated back to the parent.  The compiler
23590    is told about this with #include <vfork.h>, but some compilers
23591    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23592    static variable whose address is put into a register that is
23593    clobbered by the vfork.  */
23594 static void
23595 #ifdef __cplusplus
23596 sparc_address_test (int arg)
23597 # else
23598 sparc_address_test (arg) int arg;
23599 #endif
23600 {
23601   static pid_t child;
23602   if (!child) {
23603     child = vfork ();
23604     if (child < 0) {
23605       perror ("vfork");
23606       _exit(2);
23607     }
23608     if (!child) {
23609       arg = getpid();
23610       write(-1, "", 0);
23611       _exit (arg);
23612     }
23613   }
23614 }
23615
23616 int
23617 main ()
23618 {
23619   pid_t parent = getpid ();
23620   pid_t child;
23621
23622   sparc_address_test (0);
23623
23624   child = vfork ();
23625
23626   if (child == 0) {
23627     /* Here is another test for sparc vfork register problems.  This
23628        test uses lots of local variables, at least as many local
23629        variables as main has allocated so far including compiler
23630        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23631        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23632        reuse the register of parent for one of the local variables,
23633        since it will think that parent can't possibly be used any more
23634        in this routine.  Assigning to the local variable will thus
23635        munge parent in the parent process.  */
23636     pid_t
23637       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23638       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23639     /* Convince the compiler that p..p7 are live; otherwise, it might
23640        use the same hardware register for all 8 local variables.  */
23641     if (p != p1 || p != p2 || p != p3 || p != p4
23642         || p != p5 || p != p6 || p != p7)
23643       _exit(1);
23644
23645     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23646        from child file descriptors.  If the child closes a descriptor
23647        before it execs or exits, this munges the parent's descriptor
23648        as well.  Test for this by closing stdout in the child.  */
23649     _exit(close(fileno(stdout)) != 0);
23650   } else {
23651     int status;
23652     struct stat st;
23653
23654     while (wait(&status) != child)
23655       ;
23656     return (
23657          /* Was there some problem with vforking?  */
23658          child < 0
23659
23660          /* Did the child fail?  (This shouldn't happen.)  */
23661          || status
23662
23663          /* Did the vfork/compiler bug occur?  */
23664          || parent != getpid()
23665
23666          /* Did the file descriptor bug occur?  */
23667          || fstat(fileno(stdout), &st) != 0
23668          );
23669   }
23670 }
23671 _ACEOF
23672 rm -f conftest$ac_exeext
23673 if { (ac_try="$ac_link"
23674 case "(($ac_try" in
23675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676   *) ac_try_echo=$ac_try;;
23677 esac
23678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23679 $as_echo "$ac_try_echo") >&5
23680   (eval "$ac_link") 2>&5
23681   ac_status=$?
23682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23684   { (case "(($ac_try" in
23685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686   *) ac_try_echo=$ac_try;;
23687 esac
23688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23689 $as_echo "$ac_try_echo") >&5
23690   (eval "$ac_try") 2>&5
23691   ac_status=$?
23692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; }; then
23694   ac_cv_func_vfork_works=yes
23695 else
23696   $as_echo "$as_me: program exited with status $ac_status" >&5
23697 $as_echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700 ( exit $ac_status )
23701 ac_cv_func_vfork_works=no
23702 fi
23703 rm -rf conftest.dSYM
23704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23705 fi
23706
23707
23708 fi
23709 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23710 $as_echo "$ac_cv_func_vfork_works" >&6; }
23711
23712 fi;
23713 if test "x$ac_cv_func_fork_works" = xcross; then
23714   ac_cv_func_vfork_works=$ac_cv_func_vfork
23715   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23716 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23717 fi
23718
23719 if test "x$ac_cv_func_vfork_works" = xyes; then
23720
23721 cat >>confdefs.h <<\_ACEOF
23722 #define HAVE_WORKING_VFORK 1
23723 _ACEOF
23724
23725 else
23726
23727 cat >>confdefs.h <<\_ACEOF
23728 #define vfork fork
23729 _ACEOF
23730
23731 fi
23732 if test "x$ac_cv_func_fork_works" = xyes; then
23733
23734 cat >>confdefs.h <<\_ACEOF
23735 #define HAVE_WORKING_FORK 1
23736 _ACEOF
23737
23738 fi
23739
23740 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23741 $as_echo_n "checking type of array argument to getgroups... " >&6; }
23742 if test "${ac_cv_type_getgroups+set}" = set; then
23743   $as_echo_n "(cached) " >&6
23744 else
23745   if test "$cross_compiling" = yes; then
23746   ac_cv_type_getgroups=cross
23747 else
23748   cat >conftest.$ac_ext <<_ACEOF
23749 /* confdefs.h.  */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h.  */
23754 /* Thanks to Mike Rendell for this test.  */
23755 $ac_includes_default
23756 #define NGID 256
23757 #undef MAX
23758 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23759
23760 int
23761 main ()
23762 {
23763   gid_t gidset[NGID];
23764   int i, n;
23765   union { gid_t gval; long int lval; }  val;
23766
23767   val.lval = -1;
23768   for (i = 0; i < NGID; i++)
23769     gidset[i] = val.gval;
23770   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23771                  gidset);
23772   /* Exit non-zero if getgroups seems to require an array of ints.  This
23773      happens when gid_t is short int but getgroups modifies an array
23774      of ints.  */
23775   return n > 0 && gidset[n] != val.gval;
23776 }
23777 _ACEOF
23778 rm -f conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23785 $as_echo "$ac_try_echo") >&5
23786   (eval "$ac_link") 2>&5
23787   ac_status=$?
23788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23790   { (case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23795 $as_echo "$ac_try_echo") >&5
23796   (eval "$ac_try") 2>&5
23797   ac_status=$?
23798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }; }; then
23800   ac_cv_type_getgroups=gid_t
23801 else
23802   $as_echo "$as_me: program exited with status $ac_status" >&5
23803 $as_echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806 ( exit $ac_status )
23807 ac_cv_type_getgroups=int
23808 fi
23809 rm -rf conftest.dSYM
23810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23811 fi
23812
23813
23814 if test $ac_cv_type_getgroups = cross; then
23815         cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h.  */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h.  */
23821 #include <unistd.h>
23822
23823 _ACEOF
23824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23825   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23826   ac_cv_type_getgroups=gid_t
23827 else
23828   ac_cv_type_getgroups=int
23829 fi
23830 rm -f conftest*
23831
23832 fi
23833 fi
23834 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23835 $as_echo "$ac_cv_type_getgroups" >&6; }
23836
23837 cat >>confdefs.h <<_ACEOF
23838 #define GETGROUPS_T $ac_cv_type_getgroups
23839 _ACEOF
23840
23841
23842 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
23843 $as_echo_n "checking for getgroups... " >&6; }
23844 if test "${ac_cv_func_getgroups+set}" = set; then
23845   $as_echo_n "(cached) " >&6
23846 else
23847   cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h.  */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h.  */
23853 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23855 #define getgroups innocuous_getgroups
23856
23857 /* System header to define __stub macros and hopefully few prototypes,
23858     which can conflict with char getgroups (); below.
23859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23860     <limits.h> exists even on freestanding compilers.  */
23861
23862 #ifdef __STDC__
23863 # include <limits.h>
23864 #else
23865 # include <assert.h>
23866 #endif
23867
23868 #undef getgroups
23869
23870 /* Override any GCC internal prototype to avoid an error.
23871    Use char because int might match the return type of a GCC
23872    builtin and then its argument prototype would still apply.  */
23873 #ifdef __cplusplus
23874 extern "C"
23875 #endif
23876 char getgroups ();
23877 /* The GNU C library defines this for functions which it implements
23878     to always fail with ENOSYS.  Some functions are actually named
23879     something starting with __ and the normal name is an alias.  */
23880 #if defined __stub_getgroups || defined __stub___getgroups
23881 choke me
23882 #endif
23883
23884 int
23885 main ()
23886 {
23887 return getgroups ();
23888   ;
23889   return 0;
23890 }
23891 _ACEOF
23892 rm -f conftest.$ac_objext conftest$ac_exeext
23893 if { (ac_try="$ac_link"
23894 case "(($ac_try" in
23895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23896   *) ac_try_echo=$ac_try;;
23897 esac
23898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23899 $as_echo "$ac_try_echo") >&5
23900   (eval "$ac_link") 2>conftest.er1
23901   ac_status=$?
23902   grep -v '^ *+' conftest.er1 >conftest.err
23903   rm -f conftest.er1
23904   cat conftest.err >&5
23905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); } && {
23907          test -z "$ac_c_werror_flag" ||
23908          test ! -s conftest.err
23909        } && test -s conftest$ac_exeext && {
23910          test "$cross_compiling" = yes ||
23911          $as_test_x conftest$ac_exeext
23912        }; then
23913   ac_cv_func_getgroups=yes
23914 else
23915   $as_echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23917
23918         ac_cv_func_getgroups=no
23919 fi
23920
23921 rm -rf conftest.dSYM
23922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23923       conftest$ac_exeext conftest.$ac_ext
23924 fi
23925 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23926 $as_echo "$ac_cv_func_getgroups" >&6; }
23927
23928
23929 # If we don't yet have getgroups, see if it's in -lbsd.
23930 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23931 ac_save_LIBS=$LIBS
23932 if test $ac_cv_func_getgroups = no; then
23933   { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23934 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
23935 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23936   $as_echo_n "(cached) " >&6
23937 else
23938   ac_check_lib_save_LIBS=$LIBS
23939 LIBS="-lbsd  $LIBS"
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h.  */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h.  */
23946
23947 /* Override any GCC internal prototype to avoid an error.
23948    Use char because int might match the return type of a GCC
23949    builtin and then its argument prototype would still apply.  */
23950 #ifdef __cplusplus
23951 extern "C"
23952 #endif
23953 char getgroups ();
23954 int
23955 main ()
23956 {
23957 return getgroups ();
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970   (eval "$ac_link") 2>conftest.er1
23971   ac_status=$?
23972   grep -v '^ *+' conftest.er1 >conftest.err
23973   rm -f conftest.er1
23974   cat conftest.err >&5
23975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } && {
23977          test -z "$ac_c_werror_flag" ||
23978          test ! -s conftest.err
23979        } && test -s conftest$ac_exeext && {
23980          test "$cross_compiling" = yes ||
23981          $as_test_x conftest$ac_exeext
23982        }; then
23983   ac_cv_lib_bsd_getgroups=yes
23984 else
23985   $as_echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23987
23988         ac_cv_lib_bsd_getgroups=no
23989 fi
23990
23991 rm -rf conftest.dSYM
23992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23993       conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23995 fi
23996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23997 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
23998 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then
23999   GETGROUPS_LIB=-lbsd
24000 fi
24001
24002 fi
24003
24004 # Run the program to test the functionality of the system-supplied
24005 # getgroups function only if there is such a function.
24006 if test $ac_cv_func_getgroups = yes; then
24007   { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
24008 $as_echo_n "checking for working getgroups... " >&6; }
24009 if test "${ac_cv_func_getgroups_works+set}" = set; then
24010   $as_echo_n "(cached) " >&6
24011 else
24012   if test "$cross_compiling" = yes; then
24013   ac_cv_func_getgroups_works=no
24014 else
24015   cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021 $ac_includes_default
24022 int
24023 main ()
24024 {
24025 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
24026        return getgroups (0, 0) == -1;
24027   ;
24028   return 0;
24029 }
24030 _ACEOF
24031 rm -f conftest$ac_exeext
24032 if { (ac_try="$ac_link"
24033 case "(($ac_try" in
24034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035   *) ac_try_echo=$ac_try;;
24036 esac
24037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24038 $as_echo "$ac_try_echo") >&5
24039   (eval "$ac_link") 2>&5
24040   ac_status=$?
24041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24043   { (case "(($ac_try" in
24044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045   *) ac_try_echo=$ac_try;;
24046 esac
24047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24048 $as_echo "$ac_try_echo") >&5
24049   (eval "$ac_try") 2>&5
24050   ac_status=$?
24051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); }; }; then
24053   ac_cv_func_getgroups_works=yes
24054 else
24055   $as_echo "$as_me: program exited with status $ac_status" >&5
24056 $as_echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059 ( exit $ac_status )
24060 ac_cv_func_getgroups_works=no
24061 fi
24062 rm -rf conftest.dSYM
24063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24064 fi
24065
24066
24067
24068 fi
24069 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24070 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24071   if test $ac_cv_func_getgroups_works = yes; then
24072
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_GETGROUPS 1
24075 _ACEOF
24076
24077   fi
24078 fi
24079 LIBS=$ac_save_LIBS
24080
24081 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
24082 # -lseq on Dynix/PTX, -lgen on Unixware.
24083 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
24084 $as_echo_n "checking for library containing getmntent... " >&6; }
24085 if test "${ac_cv_search_getmntent+set}" = set; then
24086   $as_echo_n "(cached) " >&6
24087 else
24088   ac_func_search_save_LIBS=$LIBS
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h.  */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h.  */
24095
24096 /* Override any GCC internal prototype to avoid an error.
24097    Use char because int might match the return type of a GCC
24098    builtin and then its argument prototype would still apply.  */
24099 #ifdef __cplusplus
24100 extern "C"
24101 #endif
24102 char getmntent ();
24103 int
24104 main ()
24105 {
24106 return getmntent ();
24107   ;
24108   return 0;
24109 }
24110 _ACEOF
24111 for ac_lib in '' sun seq gen; do
24112   if test -z "$ac_lib"; then
24113     ac_res="none required"
24114   else
24115     ac_res=-l$ac_lib
24116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24117   fi
24118   rm -f conftest.$ac_objext conftest$ac_exeext
24119 if { (ac_try="$ac_link"
24120 case "(($ac_try" in
24121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122   *) ac_try_echo=$ac_try;;
24123 esac
24124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24125 $as_echo "$ac_try_echo") >&5
24126   (eval "$ac_link") 2>conftest.er1
24127   ac_status=$?
24128   grep -v '^ *+' conftest.er1 >conftest.err
24129   rm -f conftest.er1
24130   cat conftest.err >&5
24131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); } && {
24133          test -z "$ac_c_werror_flag" ||
24134          test ! -s conftest.err
24135        } && test -s conftest$ac_exeext && {
24136          test "$cross_compiling" = yes ||
24137          $as_test_x conftest$ac_exeext
24138        }; then
24139   ac_cv_search_getmntent=$ac_res
24140 else
24141   $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144
24145 fi
24146
24147 rm -rf conftest.dSYM
24148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24149       conftest$ac_exeext
24150   if test "${ac_cv_search_getmntent+set}" = set; then
24151   break
24152 fi
24153 done
24154 if test "${ac_cv_search_getmntent+set}" = set; then
24155   :
24156 else
24157   ac_cv_search_getmntent=no
24158 fi
24159 rm conftest.$ac_ext
24160 LIBS=$ac_func_search_save_LIBS
24161 fi
24162 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
24163 $as_echo "$ac_cv_search_getmntent" >&6; }
24164 ac_res=$ac_cv_search_getmntent
24165 if test "$ac_res" != no; then
24166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24167   ac_cv_func_getmntent=yes
24168
24169 cat >>confdefs.h <<\_ACEOF
24170 #define HAVE_GETMNTENT 1
24171 _ACEOF
24172
24173 else
24174   ac_cv_func_getmntent=no
24175 fi
24176
24177
24178 if test $ac_cv_c_compiler_gnu = yes; then
24179     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24180 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
24181 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24182   $as_echo_n "(cached) " >&6
24183 else
24184     ac_pattern="Autoconf.*'x'"
24185   cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191 #include <sgtty.h>
24192 Autoconf TIOCGETP
24193 _ACEOF
24194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24195   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24196   ac_cv_prog_gcc_traditional=yes
24197 else
24198   ac_cv_prog_gcc_traditional=no
24199 fi
24200 rm -f conftest*
24201
24202
24203   if test $ac_cv_prog_gcc_traditional = no; then
24204     cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h.  */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h.  */
24210 #include <termio.h>
24211 Autoconf TCGETA
24212 _ACEOF
24213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24214   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24215   ac_cv_prog_gcc_traditional=yes
24216 fi
24217 rm -f conftest*
24218
24219   fi
24220 fi
24221 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24222 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
24223   if test $ac_cv_prog_gcc_traditional = yes; then
24224     CC="$CC -traditional"
24225   fi
24226 fi
24227
24228 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24229 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24230 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24231   $as_echo_n "(cached) " >&6
24232 else
24233   rm -f conftest.sym conftest.file
24234 echo >conftest.file
24235 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24236   if test "$cross_compiling" = yes; then
24237   ac_cv_func_lstat_dereferences_slashed_symlink=no
24238 else
24239   cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245 $ac_includes_default
24246 int
24247 main ()
24248 {
24249 struct stat sbuf;
24250      /* Linux will dereference the symlink and fail.
24251         That is better in the sense that it means we will not
24252         have to compile and use the lstat wrapper.  */
24253      return lstat ("conftest.sym/", &sbuf) == 0;
24254   ;
24255   return 0;
24256 }
24257 _ACEOF
24258 rm -f conftest$ac_exeext
24259 if { (ac_try="$ac_link"
24260 case "(($ac_try" in
24261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262   *) ac_try_echo=$ac_try;;
24263 esac
24264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24265 $as_echo "$ac_try_echo") >&5
24266   (eval "$ac_link") 2>&5
24267   ac_status=$?
24268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24270   { (case "(($ac_try" in
24271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272   *) ac_try_echo=$ac_try;;
24273 esac
24274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24275 $as_echo "$ac_try_echo") >&5
24276   (eval "$ac_try") 2>&5
24277   ac_status=$?
24278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279   (exit $ac_status); }; }; then
24280   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24281 else
24282   $as_echo "$as_me: program exited with status $ac_status" >&5
24283 $as_echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24285
24286 ( exit $ac_status )
24287 ac_cv_func_lstat_dereferences_slashed_symlink=no
24288 fi
24289 rm -rf conftest.dSYM
24290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24291 fi
24292
24293
24294 else
24295   # If the `ln -s' command failed, then we probably don't even
24296   # have an lstat function.
24297   ac_cv_func_lstat_dereferences_slashed_symlink=no
24298 fi
24299 rm -f conftest.sym conftest.file
24300
24301 fi
24302 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24303 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24304
24305 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24306
24307 cat >>confdefs.h <<_ACEOF
24308 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24309 _ACEOF
24310
24311
24312 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24313   case " $LIBOBJS " in
24314   *" lstat.$ac_objext "* ) ;;
24315   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24316  ;;
24317 esac
24318
24319 fi
24320
24321 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24322 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
24323 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24324   $as_echo_n "(cached) " >&6
24325 else
24326   if test "$cross_compiling" = yes; then
24327   ac_cv_func_lstat_empty_string_bug=yes
24328 else
24329   cat >conftest.$ac_ext <<_ACEOF
24330 /* confdefs.h.  */
24331 _ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h.  */
24335 $ac_includes_default
24336 int
24337 main ()
24338 {
24339 struct stat sbuf;
24340   return lstat ("", &sbuf) == 0;
24341   ;
24342   return 0;
24343 }
24344 _ACEOF
24345 rm -f conftest$ac_exeext
24346 if { (ac_try="$ac_link"
24347 case "(($ac_try" in
24348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349   *) ac_try_echo=$ac_try;;
24350 esac
24351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24352 $as_echo "$ac_try_echo") >&5
24353   (eval "$ac_link") 2>&5
24354   ac_status=$?
24355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24357   { (case "(($ac_try" in
24358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359   *) ac_try_echo=$ac_try;;
24360 esac
24361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24362 $as_echo "$ac_try_echo") >&5
24363   (eval "$ac_try") 2>&5
24364   ac_status=$?
24365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366   (exit $ac_status); }; }; then
24367   ac_cv_func_lstat_empty_string_bug=no
24368 else
24369   $as_echo "$as_me: program exited with status $ac_status" >&5
24370 $as_echo "$as_me: failed program was:" >&5
24371 sed 's/^/| /' conftest.$ac_ext >&5
24372
24373 ( exit $ac_status )
24374 ac_cv_func_lstat_empty_string_bug=yes
24375 fi
24376 rm -rf conftest.dSYM
24377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24378 fi
24379
24380
24381 fi
24382 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24383 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
24384 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24385   case " $LIBOBJS " in
24386   *" lstat.$ac_objext "* ) ;;
24387   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24388  ;;
24389 esac
24390
24391
24392 cat >>confdefs.h <<_ACEOF
24393 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24394 _ACEOF
24395
24396 fi
24397
24398 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24399 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24400 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24401   $as_echo_n "(cached) " >&6
24402 else
24403   rm -f conftest.sym conftest.file
24404 echo >conftest.file
24405 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24406   if test "$cross_compiling" = yes; then
24407   ac_cv_func_lstat_dereferences_slashed_symlink=no
24408 else
24409   cat >conftest.$ac_ext <<_ACEOF
24410 /* confdefs.h.  */
24411 _ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h.  */
24415 $ac_includes_default
24416 int
24417 main ()
24418 {
24419 struct stat sbuf;
24420      /* Linux will dereference the symlink and fail.
24421         That is better in the sense that it means we will not
24422         have to compile and use the lstat wrapper.  */
24423      return lstat ("conftest.sym/", &sbuf) == 0;
24424   ;
24425   return 0;
24426 }
24427 _ACEOF
24428 rm -f conftest$ac_exeext
24429 if { (ac_try="$ac_link"
24430 case "(($ac_try" in
24431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432   *) ac_try_echo=$ac_try;;
24433 esac
24434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24435 $as_echo "$ac_try_echo") >&5
24436   (eval "$ac_link") 2>&5
24437   ac_status=$?
24438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24440   { (case "(($ac_try" in
24441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442   *) ac_try_echo=$ac_try;;
24443 esac
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446   (eval "$ac_try") 2>&5
24447   ac_status=$?
24448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); }; }; then
24450   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24451 else
24452   $as_echo "$as_me: program exited with status $ac_status" >&5
24453 $as_echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456 ( exit $ac_status )
24457 ac_cv_func_lstat_dereferences_slashed_symlink=no
24458 fi
24459 rm -rf conftest.dSYM
24460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24461 fi
24462
24463
24464 else
24465   # If the `ln -s' command failed, then we probably don't even
24466   # have an lstat function.
24467   ac_cv_func_lstat_dereferences_slashed_symlink=no
24468 fi
24469 rm -f conftest.sym conftest.file
24470
24471 fi
24472 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24473 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24474
24475 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24476
24477 cat >>confdefs.h <<_ACEOF
24478 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24479 _ACEOF
24480
24481
24482 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24483   case " $LIBOBJS " in
24484   *" lstat.$ac_objext "* ) ;;
24485   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24486  ;;
24487 esac
24488
24489 fi
24490
24491 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24492 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24493 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24494   $as_echo_n "(cached) " >&6
24495 else
24496   cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h.  */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h.  */
24502 #include <sys/types.h>
24503 int
24504 main ()
24505 {
24506 return makedev(0, 0);
24507   ;
24508   return 0;
24509 }
24510 _ACEOF
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515   *) ac_try_echo=$ac_try;;
24516 esac
24517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24518 $as_echo "$ac_try_echo") >&5
24519   (eval "$ac_link") 2>conftest.er1
24520   ac_status=$?
24521   grep -v '^ *+' conftest.er1 >conftest.err
24522   rm -f conftest.er1
24523   cat conftest.err >&5
24524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); } && {
24526          test -z "$ac_c_werror_flag" ||
24527          test ! -s conftest.err
24528        } && test -s conftest$ac_exeext && {
24529          test "$cross_compiling" = yes ||
24530          $as_test_x conftest$ac_exeext
24531        }; then
24532   ac_cv_header_sys_types_h_makedev=yes
24533 else
24534   $as_echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537         ac_cv_header_sys_types_h_makedev=no
24538 fi
24539
24540 rm -rf conftest.dSYM
24541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24542       conftest$ac_exeext conftest.$ac_ext
24543
24544 fi
24545 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24546 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24547
24548 if test $ac_cv_header_sys_types_h_makedev = no; then
24549 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24550   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24551 $as_echo_n "checking for sys/mkdev.h... " >&6; }
24552 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24553   $as_echo_n "(cached) " >&6
24554 fi
24555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24556 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
24557 else
24558   # Is the header compilable?
24559 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24560 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
24561 cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 $ac_includes_default
24568 #include <sys/mkdev.h>
24569 _ACEOF
24570 rm -f conftest.$ac_objext
24571 if { (ac_try="$ac_compile"
24572 case "(($ac_try" in
24573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574   *) ac_try_echo=$ac_try;;
24575 esac
24576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24577 $as_echo "$ac_try_echo") >&5
24578   (eval "$ac_compile") 2>conftest.er1
24579   ac_status=$?
24580   grep -v '^ *+' conftest.er1 >conftest.err
24581   rm -f conftest.er1
24582   cat conftest.err >&5
24583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584   (exit $ac_status); } && {
24585          test -z "$ac_c_werror_flag" ||
24586          test ! -s conftest.err
24587        } && test -s conftest.$ac_objext; then
24588   ac_header_compiler=yes
24589 else
24590   $as_echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593         ac_header_compiler=no
24594 fi
24595
24596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24598 $as_echo "$ac_header_compiler" >&6; }
24599
24600 # Is the header present?
24601 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24602 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
24603 cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609 #include <sys/mkdev.h>
24610 _ACEOF
24611 if { (ac_try="$ac_cpp conftest.$ac_ext"
24612 case "(($ac_try" in
24613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614   *) ac_try_echo=$ac_try;;
24615 esac
24616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24617 $as_echo "$ac_try_echo") >&5
24618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24619   ac_status=$?
24620   grep -v '^ *+' conftest.er1 >conftest.err
24621   rm -f conftest.er1
24622   cat conftest.err >&5
24623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624   (exit $ac_status); } >/dev/null && {
24625          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24626          test ! -s conftest.err
24627        }; then
24628   ac_header_preproc=yes
24629 else
24630   $as_echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633   ac_header_preproc=no
24634 fi
24635
24636 rm -f conftest.err conftest.$ac_ext
24637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24638 $as_echo "$ac_header_preproc" >&6; }
24639
24640 # So?  What about this header?
24641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24642   yes:no: )
24643     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24644 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24645     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24646 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24647     ac_header_preproc=yes
24648     ;;
24649   no:yes:* )
24650     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24651 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24652     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24653 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24654     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24655 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24656     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24657 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24658     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24659 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24660     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24661 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24662     ( cat <<\_ASBOX
24663 ## ---------------------------------------- ##
24664 ## Report this to linux-nfs@vger.kernel.org ##
24665 ## ---------------------------------------- ##
24666 _ASBOX
24667      ) | sed "s/^/$as_me: WARNING:     /" >&2
24668     ;;
24669 esac
24670 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24671 $as_echo_n "checking for sys/mkdev.h... " >&6; }
24672 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24673   $as_echo_n "(cached) " >&6
24674 else
24675   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24676 fi
24677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24678 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
24679
24680 fi
24681 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
24682
24683 cat >>confdefs.h <<\_ACEOF
24684 #define MAJOR_IN_MKDEV 1
24685 _ACEOF
24686
24687 fi
24688
24689
24690
24691   if test $ac_cv_header_sys_mkdev_h = no; then
24692     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24693   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24694 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
24695 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24696   $as_echo_n "(cached) " >&6
24697 fi
24698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24699 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
24700 else
24701   # Is the header compilable?
24702 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24703 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
24704 cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 $ac_includes_default
24711 #include <sys/sysmacros.h>
24712 _ACEOF
24713 rm -f conftest.$ac_objext
24714 if { (ac_try="$ac_compile"
24715 case "(($ac_try" in
24716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717   *) ac_try_echo=$ac_try;;
24718 esac
24719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24720 $as_echo "$ac_try_echo") >&5
24721   (eval "$ac_compile") 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } && {
24728          test -z "$ac_c_werror_flag" ||
24729          test ! -s conftest.err
24730        } && test -s conftest.$ac_objext; then
24731   ac_header_compiler=yes
24732 else
24733   $as_echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736         ac_header_compiler=no
24737 fi
24738
24739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24740 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24741 $as_echo "$ac_header_compiler" >&6; }
24742
24743 # Is the header present?
24744 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24745 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
24746 cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h.  */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h.  */
24752 #include <sys/sysmacros.h>
24753 _ACEOF
24754 if { (ac_try="$ac_cpp conftest.$ac_ext"
24755 case "(($ac_try" in
24756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757   *) ac_try_echo=$ac_try;;
24758 esac
24759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24762   ac_status=$?
24763   grep -v '^ *+' conftest.er1 >conftest.err
24764   rm -f conftest.er1
24765   cat conftest.err >&5
24766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); } >/dev/null && {
24768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24769          test ! -s conftest.err
24770        }; then
24771   ac_header_preproc=yes
24772 else
24773   $as_echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24775
24776   ac_header_preproc=no
24777 fi
24778
24779 rm -f conftest.err conftest.$ac_ext
24780 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24781 $as_echo "$ac_header_preproc" >&6; }
24782
24783 # So?  What about this header?
24784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24785   yes:no: )
24786     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24787 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24788     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24789 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24790     ac_header_preproc=yes
24791     ;;
24792   no:yes:* )
24793     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24794 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24795     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
24796 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
24797     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24798 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24799     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
24800 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24801     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24802 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24803     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24804 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24805     ( cat <<\_ASBOX
24806 ## ---------------------------------------- ##
24807 ## Report this to linux-nfs@vger.kernel.org ##
24808 ## ---------------------------------------- ##
24809 _ASBOX
24810      ) | sed "s/^/$as_me: WARNING:     /" >&2
24811     ;;
24812 esac
24813 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24814 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
24815 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24816   $as_echo_n "(cached) " >&6
24817 else
24818   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24819 fi
24820 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24821 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
24822
24823 fi
24824 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
24825
24826 cat >>confdefs.h <<\_ACEOF
24827 #define MAJOR_IN_SYSMACROS 1
24828 _ACEOF
24829
24830 fi
24831
24832
24833   fi
24834 fi
24835
24836 #AC_FUNC_MALLOC
24837 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
24838 $as_echo_n "checking for working memcmp... " >&6; }
24839 if test "${ac_cv_func_memcmp_working+set}" = set; then
24840   $as_echo_n "(cached) " >&6
24841 else
24842   if test "$cross_compiling" = yes; then
24843   ac_cv_func_memcmp_working=no
24844 else
24845   cat >conftest.$ac_ext <<_ACEOF
24846 /* confdefs.h.  */
24847 _ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h.  */
24851 $ac_includes_default
24852 int
24853 main ()
24854 {
24855
24856   /* Some versions of memcmp are not 8-bit clean.  */
24857   char c0 = '\100', c1 = '\200', c2 = '\201';
24858   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24859     return 1;
24860
24861   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24862      or more and with at least one buffer not starting on a 4-byte boundary.
24863      William Lewis provided this test program.   */
24864   {
24865     char foo[21];
24866     char bar[21];
24867     int i;
24868     for (i = 0; i < 4; i++)
24869       {
24870         char *a = foo + i;
24871         char *b = bar + i;
24872         strcpy (a, "--------01111111");
24873         strcpy (b, "--------10000000");
24874         if (memcmp (a, b, 16) >= 0)
24875           return 1;
24876       }
24877     return 0;
24878   }
24879
24880   ;
24881   return 0;
24882 }
24883 _ACEOF
24884 rm -f conftest$ac_exeext
24885 if { (ac_try="$ac_link"
24886 case "(($ac_try" in
24887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888   *) ac_try_echo=$ac_try;;
24889 esac
24890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24891 $as_echo "$ac_try_echo") >&5
24892   (eval "$ac_link") 2>&5
24893   ac_status=$?
24894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24896   { (case "(($ac_try" in
24897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898   *) ac_try_echo=$ac_try;;
24899 esac
24900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24901 $as_echo "$ac_try_echo") >&5
24902   (eval "$ac_try") 2>&5
24903   ac_status=$?
24904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); }; }; then
24906   ac_cv_func_memcmp_working=yes
24907 else
24908   $as_echo "$as_me: program exited with status $ac_status" >&5
24909 $as_echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24911
24912 ( exit $ac_status )
24913 ac_cv_func_memcmp_working=no
24914 fi
24915 rm -rf conftest.dSYM
24916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24917 fi
24918
24919
24920 fi
24921 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24922 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24923 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24924   *" memcmp.$ac_objext "* ) ;;
24925   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24926  ;;
24927 esac
24928
24929
24930 #AC_FUNC_REALLOC
24931
24932
24933 for ac_header in sys/select.h sys/socket.h
24934 do
24935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24937   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24938 $as_echo_n "checking for $ac_header... " >&6; }
24939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24940   $as_echo_n "(cached) " >&6
24941 fi
24942 ac_res=`eval 'as_val=${'$as_ac_Header'}
24943                  $as_echo "$as_val"'`
24944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24945 $as_echo "$ac_res" >&6; }
24946 else
24947   # Is the header compilable?
24948 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24949 $as_echo_n "checking $ac_header usability... " >&6; }
24950 cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956 $ac_includes_default
24957 #include <$ac_header>
24958 _ACEOF
24959 rm -f conftest.$ac_objext
24960 if { (ac_try="$ac_compile"
24961 case "(($ac_try" in
24962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963   *) ac_try_echo=$ac_try;;
24964 esac
24965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966 $as_echo "$ac_try_echo") >&5
24967   (eval "$ac_compile") 2>conftest.er1
24968   ac_status=$?
24969   grep -v '^ *+' conftest.er1 >conftest.err
24970   rm -f conftest.er1
24971   cat conftest.err >&5
24972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); } && {
24974          test -z "$ac_c_werror_flag" ||
24975          test ! -s conftest.err
24976        } && test -s conftest.$ac_objext; then
24977   ac_header_compiler=yes
24978 else
24979   $as_echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24981
24982         ac_header_compiler=no
24983 fi
24984
24985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24986 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24987 $as_echo "$ac_header_compiler" >&6; }
24988
24989 # Is the header present?
24990 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24991 $as_echo_n "checking $ac_header presence... " >&6; }
24992 cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998 #include <$ac_header>
24999 _ACEOF
25000 if { (ac_try="$ac_cpp conftest.$ac_ext"
25001 case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25006 $as_echo "$ac_try_echo") >&5
25007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25008   ac_status=$?
25009   grep -v '^ *+' conftest.er1 >conftest.err
25010   rm -f conftest.er1
25011   cat conftest.err >&5
25012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); } >/dev/null && {
25014          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25015          test ! -s conftest.err
25016        }; then
25017   ac_header_preproc=yes
25018 else
25019   $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022   ac_header_preproc=no
25023 fi
25024
25025 rm -f conftest.err conftest.$ac_ext
25026 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25027 $as_echo "$ac_header_preproc" >&6; }
25028
25029 # So?  What about this header?
25030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25031   yes:no: )
25032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25033 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25036     ac_header_preproc=yes
25037     ;;
25038   no:yes:* )
25039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25040 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25042 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25044 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25046 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25047     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25050 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25051     ( cat <<\_ASBOX
25052 ## ---------------------------------------- ##
25053 ## Report this to linux-nfs@vger.kernel.org ##
25054 ## ---------------------------------------- ##
25055 _ASBOX
25056      ) | sed "s/^/$as_me: WARNING:     /" >&2
25057     ;;
25058 esac
25059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25060 $as_echo_n "checking for $ac_header... " >&6; }
25061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25062   $as_echo_n "(cached) " >&6
25063 else
25064   eval "$as_ac_Header=\$ac_header_preproc"
25065 fi
25066 ac_res=`eval 'as_val=${'$as_ac_Header'}
25067                  $as_echo "$as_val"'`
25068                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25069 $as_echo "$ac_res" >&6; }
25070
25071 fi
25072 as_val=`eval 'as_val=${'$as_ac_Header'}
25073                  $as_echo "$as_val"'`
25074    if test "x$as_val" = x""yes; then
25075   cat >>confdefs.h <<_ACEOF
25076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25077 _ACEOF
25078
25079 fi
25080
25081 done
25082
25083 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
25084 $as_echo_n "checking types of arguments for select... " >&6; }
25085 if test "${ac_cv_func_select_args+set}" = set; then
25086   $as_echo_n "(cached) " >&6
25087 else
25088   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25089  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25090   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25091    cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097 $ac_includes_default
25098 #ifdef HAVE_SYS_SELECT_H
25099 # include <sys/select.h>
25100 #endif
25101 #ifdef HAVE_SYS_SOCKET_H
25102 # include <sys/socket.h>
25103 #endif
25104
25105 int
25106 main ()
25107 {
25108 extern int select ($ac_arg1,
25109                                             $ac_arg234, $ac_arg234, $ac_arg234,
25110                                             $ac_arg5);
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 rm -f conftest.$ac_objext
25116 if { (ac_try="$ac_compile"
25117 case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25122 $as_echo "$ac_try_echo") >&5
25123   (eval "$ac_compile") 2>conftest.er1
25124   ac_status=$?
25125   grep -v '^ *+' conftest.er1 >conftest.err
25126   rm -f conftest.er1
25127   cat conftest.err >&5
25128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); } && {
25130          test -z "$ac_c_werror_flag" ||
25131          test ! -s conftest.err
25132        } && test -s conftest.$ac_objext; then
25133   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25134 else
25135   $as_echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25137
25138
25139 fi
25140
25141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25142   done
25143  done
25144 done
25145 # Provide a safe default value.
25146 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25147
25148 fi
25149 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25150 $as_echo "$ac_cv_func_select_args" >&6; }
25151 ac_save_IFS=$IFS; IFS=','
25152 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25153 IFS=$ac_save_IFS
25154 shift
25155
25156 cat >>confdefs.h <<_ACEOF
25157 #define SELECT_TYPE_ARG1 $1
25158 _ACEOF
25159
25160
25161 cat >>confdefs.h <<_ACEOF
25162 #define SELECT_TYPE_ARG234 ($2)
25163 _ACEOF
25164
25165
25166 cat >>confdefs.h <<_ACEOF
25167 #define SELECT_TYPE_ARG5 ($3)
25168 _ACEOF
25169
25170 rm -f conftest*
25171
25172 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25173 $as_echo_n "checking return type of signal handlers... " >&6; }
25174 if test "${ac_cv_type_signal+set}" = set; then
25175   $as_echo_n "(cached) " >&6
25176 else
25177   cat >conftest.$ac_ext <<_ACEOF
25178 /* confdefs.h.  */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h.  */
25183 #include <sys/types.h>
25184 #include <signal.h>
25185
25186 int
25187 main ()
25188 {
25189 return *(signal (0, 0)) (0) == 1;
25190   ;
25191   return 0;
25192 }
25193 _ACEOF
25194 rm -f conftest.$ac_objext
25195 if { (ac_try="$ac_compile"
25196 case "(($ac_try" in
25197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198   *) ac_try_echo=$ac_try;;
25199 esac
25200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25201 $as_echo "$ac_try_echo") >&5
25202   (eval "$ac_compile") 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } && {
25209          test -z "$ac_c_werror_flag" ||
25210          test ! -s conftest.err
25211        } && test -s conftest.$ac_objext; then
25212   ac_cv_type_signal=int
25213 else
25214   $as_echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25216
25217         ac_cv_type_signal=void
25218 fi
25219
25220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25221 fi
25222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25223 $as_echo "$ac_cv_type_signal" >&6; }
25224
25225 cat >>confdefs.h <<_ACEOF
25226 #define RETSIGTYPE $ac_cv_type_signal
25227 _ACEOF
25228
25229
25230 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25231 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
25232 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25233   $as_echo_n "(cached) " >&6
25234 else
25235   if test "$cross_compiling" = yes; then
25236   ac_cv_func_stat_empty_string_bug=yes
25237 else
25238   cat >conftest.$ac_ext <<_ACEOF
25239 /* confdefs.h.  */
25240 _ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h.  */
25244 $ac_includes_default
25245 int
25246 main ()
25247 {
25248 struct stat sbuf;
25249   return stat ("", &sbuf) == 0;
25250   ;
25251   return 0;
25252 }
25253 _ACEOF
25254 rm -f conftest$ac_exeext
25255 if { (ac_try="$ac_link"
25256 case "(($ac_try" in
25257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25258   *) ac_try_echo=$ac_try;;
25259 esac
25260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25261 $as_echo "$ac_try_echo") >&5
25262   (eval "$ac_link") 2>&5
25263   ac_status=$?
25264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25266   { (case "(($ac_try" in
25267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268   *) ac_try_echo=$ac_try;;
25269 esac
25270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25271 $as_echo "$ac_try_echo") >&5
25272   (eval "$ac_try") 2>&5
25273   ac_status=$?
25274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); }; }; then
25276   ac_cv_func_stat_empty_string_bug=no
25277 else
25278   $as_echo "$as_me: program exited with status $ac_status" >&5
25279 $as_echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 ( exit $ac_status )
25283 ac_cv_func_stat_empty_string_bug=yes
25284 fi
25285 rm -rf conftest.dSYM
25286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25287 fi
25288
25289
25290 fi
25291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25292 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
25293 if test $ac_cv_func_stat_empty_string_bug = yes; then
25294   case " $LIBOBJS " in
25295   *" stat.$ac_objext "* ) ;;
25296   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
25297  ;;
25298 esac
25299
25300
25301 cat >>confdefs.h <<_ACEOF
25302 #define HAVE_STAT_EMPTY_STRING_BUG 1
25303 _ACEOF
25304
25305 fi
25306
25307
25308 for ac_func in vprintf
25309 do
25310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25312 $as_echo_n "checking for $ac_func... " >&6; }
25313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25314   $as_echo_n "(cached) " >&6
25315 else
25316   cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h.  */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h.  */
25322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25324 #define $ac_func innocuous_$ac_func
25325
25326 /* System header to define __stub macros and hopefully few prototypes,
25327     which can conflict with char $ac_func (); below.
25328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25329     <limits.h> exists even on freestanding compilers.  */
25330
25331 #ifdef __STDC__
25332 # include <limits.h>
25333 #else
25334 # include <assert.h>
25335 #endif
25336
25337 #undef $ac_func
25338
25339 /* Override any GCC internal prototype to avoid an error.
25340    Use char because int might match the return type of a GCC
25341    builtin and then its argument prototype would still apply.  */
25342 #ifdef __cplusplus
25343 extern "C"
25344 #endif
25345 char $ac_func ();
25346 /* The GNU C library defines this for functions which it implements
25347     to always fail with ENOSYS.  Some functions are actually named
25348     something starting with __ and the normal name is an alias.  */
25349 #if defined __stub_$ac_func || defined __stub___$ac_func
25350 choke me
25351 #endif
25352
25353 int
25354 main ()
25355 {
25356 return $ac_func ();
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 rm -f conftest.$ac_objext conftest$ac_exeext
25362 if { (ac_try="$ac_link"
25363 case "(($ac_try" in
25364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365   *) ac_try_echo=$ac_try;;
25366 esac
25367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25368 $as_echo "$ac_try_echo") >&5
25369   (eval "$ac_link") 2>conftest.er1
25370   ac_status=$?
25371   grep -v '^ *+' conftest.er1 >conftest.err
25372   rm -f conftest.er1
25373   cat conftest.err >&5
25374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); } && {
25376          test -z "$ac_c_werror_flag" ||
25377          test ! -s conftest.err
25378        } && test -s conftest$ac_exeext && {
25379          test "$cross_compiling" = yes ||
25380          $as_test_x conftest$ac_exeext
25381        }; then
25382   eval "$as_ac_var=yes"
25383 else
25384   $as_echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25386
25387         eval "$as_ac_var=no"
25388 fi
25389
25390 rm -rf conftest.dSYM
25391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25392       conftest$ac_exeext conftest.$ac_ext
25393 fi
25394 ac_res=`eval 'as_val=${'$as_ac_var'}
25395                  $as_echo "$as_val"'`
25396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25397 $as_echo "$ac_res" >&6; }
25398 as_val=`eval 'as_val=${'$as_ac_var'}
25399                  $as_echo "$as_val"'`
25400    if test "x$as_val" = x""yes; then
25401   cat >>confdefs.h <<_ACEOF
25402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25403 _ACEOF
25404
25405 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
25406 $as_echo_n "checking for _doprnt... " >&6; }
25407 if test "${ac_cv_func__doprnt+set}" = set; then
25408   $as_echo_n "(cached) " >&6
25409 else
25410   cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25418 #define _doprnt innocuous__doprnt
25419
25420 /* System header to define __stub macros and hopefully few prototypes,
25421     which can conflict with char _doprnt (); below.
25422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25423     <limits.h> exists even on freestanding compilers.  */
25424
25425 #ifdef __STDC__
25426 # include <limits.h>
25427 #else
25428 # include <assert.h>
25429 #endif
25430
25431 #undef _doprnt
25432
25433 /* Override any GCC internal prototype to avoid an error.
25434    Use char because int might match the return type of a GCC
25435    builtin and then its argument prototype would still apply.  */
25436 #ifdef __cplusplus
25437 extern "C"
25438 #endif
25439 char _doprnt ();
25440 /* The GNU C library defines this for functions which it implements
25441     to always fail with ENOSYS.  Some functions are actually named
25442     something starting with __ and the normal name is an alias.  */
25443 #if defined __stub__doprnt || defined __stub____doprnt
25444 choke me
25445 #endif
25446
25447 int
25448 main ()
25449 {
25450 return _doprnt ();
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (ac_try="$ac_link"
25457 case "(($ac_try" in
25458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459   *) ac_try_echo=$ac_try;;
25460 esac
25461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25462 $as_echo "$ac_try_echo") >&5
25463   (eval "$ac_link") 2>conftest.er1
25464   ac_status=$?
25465   grep -v '^ *+' conftest.er1 >conftest.err
25466   rm -f conftest.er1
25467   cat conftest.err >&5
25468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); } && {
25470          test -z "$ac_c_werror_flag" ||
25471          test ! -s conftest.err
25472        } && test -s conftest$ac_exeext && {
25473          test "$cross_compiling" = yes ||
25474          $as_test_x conftest$ac_exeext
25475        }; then
25476   ac_cv_func__doprnt=yes
25477 else
25478   $as_echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481         ac_cv_func__doprnt=no
25482 fi
25483
25484 rm -rf conftest.dSYM
25485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25486       conftest$ac_exeext conftest.$ac_ext
25487 fi
25488 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25489 $as_echo "$ac_cv_func__doprnt" >&6; }
25490 if test "x$ac_cv_func__doprnt" = x""yes; then
25491
25492 cat >>confdefs.h <<\_ACEOF
25493 #define HAVE_DOPRNT 1
25494 _ACEOF
25495
25496 fi
25497
25498 fi
25499 done
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25534                gethostbyaddr gethostbyname gethostname getmntent \
25535                getnameinfo getrpcbyname \
25536                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25537                realpath rmdir select socket strcasecmp strchr strdup \
25538                strerror strrchr strtol strtoul sigprocmask
25539 do
25540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25542 $as_echo_n "checking for $ac_func... " >&6; }
25543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25544   $as_echo_n "(cached) " >&6
25545 else
25546   cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h.  */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h.  */
25552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25554 #define $ac_func innocuous_$ac_func
25555
25556 /* System header to define __stub macros and hopefully few prototypes,
25557     which can conflict with char $ac_func (); below.
25558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25559     <limits.h> exists even on freestanding compilers.  */
25560
25561 #ifdef __STDC__
25562 # include <limits.h>
25563 #else
25564 # include <assert.h>
25565 #endif
25566
25567 #undef $ac_func
25568
25569 /* Override any GCC internal prototype to avoid an error.
25570    Use char because int might match the return type of a GCC
25571    builtin and then its argument prototype would still apply.  */
25572 #ifdef __cplusplus
25573 extern "C"
25574 #endif
25575 char $ac_func ();
25576 /* The GNU C library defines this for functions which it implements
25577     to always fail with ENOSYS.  Some functions are actually named
25578     something starting with __ and the normal name is an alias.  */
25579 #if defined __stub_$ac_func || defined __stub___$ac_func
25580 choke me
25581 #endif
25582
25583 int
25584 main ()
25585 {
25586 return $ac_func ();
25587   ;
25588   return 0;
25589 }
25590 _ACEOF
25591 rm -f conftest.$ac_objext conftest$ac_exeext
25592 if { (ac_try="$ac_link"
25593 case "(($ac_try" in
25594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595   *) ac_try_echo=$ac_try;;
25596 esac
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599   (eval "$ac_link") 2>conftest.er1
25600   ac_status=$?
25601   grep -v '^ *+' conftest.er1 >conftest.err
25602   rm -f conftest.er1
25603   cat conftest.err >&5
25604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); } && {
25606          test -z "$ac_c_werror_flag" ||
25607          test ! -s conftest.err
25608        } && test -s conftest$ac_exeext && {
25609          test "$cross_compiling" = yes ||
25610          $as_test_x conftest$ac_exeext
25611        }; then
25612   eval "$as_ac_var=yes"
25613 else
25614   $as_echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25616
25617         eval "$as_ac_var=no"
25618 fi
25619
25620 rm -rf conftest.dSYM
25621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25622       conftest$ac_exeext conftest.$ac_ext
25623 fi
25624 ac_res=`eval 'as_val=${'$as_ac_var'}
25625                  $as_echo "$as_val"'`
25626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25627 $as_echo "$ac_res" >&6; }
25628 as_val=`eval 'as_val=${'$as_ac_var'}
25629                  $as_echo "$as_val"'`
25630    if test "x$as_val" = x""yes; then
25631   cat >>confdefs.h <<_ACEOF
25632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25633 _ACEOF
25634
25635 fi
25636 done
25637
25638
25639
25640 # The cast to long int works around a bug in the HP C Compiler
25641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25643 # This bug is HP SR number 8606223364.
25644 { $as_echo "$as_me:$LINENO: checking size of short" >&5
25645 $as_echo_n "checking size of short... " >&6; }
25646 if test "${ac_cv_sizeof_short+set}" = set; then
25647   $as_echo_n "(cached) " >&6
25648 else
25649   if test "$cross_compiling" = yes; then
25650   # Depending upon the size, compute the lo and hi bounds.
25651 cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h.  */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h.  */
25657 $ac_includes_default
25658 int
25659 main ()
25660 {
25661 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
25662 test_array [0] = 0
25663
25664   ;
25665   return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest.$ac_objext
25669 if { (ac_try="$ac_compile"
25670 case "(($ac_try" in
25671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672   *) ac_try_echo=$ac_try;;
25673 esac
25674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25675 $as_echo "$ac_try_echo") >&5
25676   (eval "$ac_compile") 2>conftest.er1
25677   ac_status=$?
25678   grep -v '^ *+' conftest.er1 >conftest.err
25679   rm -f conftest.er1
25680   cat conftest.err >&5
25681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682   (exit $ac_status); } && {
25683          test -z "$ac_c_werror_flag" ||
25684          test ! -s conftest.err
25685        } && test -s conftest.$ac_objext; then
25686   ac_lo=0 ac_mid=0
25687   while :; do
25688     cat >conftest.$ac_ext <<_ACEOF
25689 /* confdefs.h.  */
25690 _ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h.  */
25694 $ac_includes_default
25695 int
25696 main ()
25697 {
25698 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
25699 test_array [0] = 0
25700
25701   ;
25702   return 0;
25703 }
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709   *) ac_try_echo=$ac_try;;
25710 esac
25711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25712 $as_echo "$ac_try_echo") >&5
25713   (eval "$ac_compile") 2>conftest.er1
25714   ac_status=$?
25715   grep -v '^ *+' conftest.er1 >conftest.err
25716   rm -f conftest.er1
25717   cat conftest.err >&5
25718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); } && {
25720          test -z "$ac_c_werror_flag" ||
25721          test ! -s conftest.err
25722        } && test -s conftest.$ac_objext; then
25723   ac_hi=$ac_mid; break
25724 else
25725   $as_echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25727
25728         ac_lo=`expr $ac_mid + 1`
25729                         if test $ac_lo -le $ac_mid; then
25730                           ac_lo= ac_hi=
25731                           break
25732                         fi
25733                         ac_mid=`expr 2 '*' $ac_mid + 1`
25734 fi
25735
25736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737   done
25738 else
25739   $as_echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25741
25742         cat >conftest.$ac_ext <<_ACEOF
25743 /* confdefs.h.  */
25744 _ACEOF
25745 cat confdefs.h >>conftest.$ac_ext
25746 cat >>conftest.$ac_ext <<_ACEOF
25747 /* end confdefs.h.  */
25748 $ac_includes_default
25749 int
25750 main ()
25751 {
25752 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
25753 test_array [0] = 0
25754
25755   ;
25756   return 0;
25757 }
25758 _ACEOF
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763   *) ac_try_echo=$ac_try;;
25764 esac
25765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25766 $as_echo "$ac_try_echo") >&5
25767   (eval "$ac_compile") 2>conftest.er1
25768   ac_status=$?
25769   grep -v '^ *+' conftest.er1 >conftest.err
25770   rm -f conftest.er1
25771   cat conftest.err >&5
25772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); } && {
25774          test -z "$ac_c_werror_flag" ||
25775          test ! -s conftest.err
25776        } && test -s conftest.$ac_objext; then
25777   ac_hi=-1 ac_mid=-1
25778   while :; do
25779     cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h.  */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h.  */
25785 $ac_includes_default
25786 int
25787 main ()
25788 {
25789 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
25790 test_array [0] = 0
25791
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext
25797 if { (ac_try="$ac_compile"
25798 case "(($ac_try" in
25799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800   *) ac_try_echo=$ac_try;;
25801 esac
25802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25803 $as_echo "$ac_try_echo") >&5
25804   (eval "$ac_compile") 2>conftest.er1
25805   ac_status=$?
25806   grep -v '^ *+' conftest.er1 >conftest.err
25807   rm -f conftest.er1
25808   cat conftest.err >&5
25809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810   (exit $ac_status); } && {
25811          test -z "$ac_c_werror_flag" ||
25812          test ! -s conftest.err
25813        } && test -s conftest.$ac_objext; then
25814   ac_lo=$ac_mid; break
25815 else
25816   $as_echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25818
25819         ac_hi=`expr '(' $ac_mid ')' - 1`
25820                         if test $ac_mid -le $ac_hi; then
25821                           ac_lo= ac_hi=
25822                           break
25823                         fi
25824                         ac_mid=`expr 2 '*' $ac_mid`
25825 fi
25826
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828   done
25829 else
25830   $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833         ac_lo= ac_hi=
25834 fi
25835
25836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25837 fi
25838
25839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25840 # Binary search between lo and hi bounds.
25841 while test "x$ac_lo" != "x$ac_hi"; do
25842   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25843   cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849 $ac_includes_default
25850 int
25851 main ()
25852 {
25853 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
25854 test_array [0] = 0
25855
25856   ;
25857   return 0;
25858 }
25859 _ACEOF
25860 rm -f conftest.$ac_objext
25861 if { (ac_try="$ac_compile"
25862 case "(($ac_try" in
25863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25864   *) ac_try_echo=$ac_try;;
25865 esac
25866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25867 $as_echo "$ac_try_echo") >&5
25868   (eval "$ac_compile") 2>conftest.er1
25869   ac_status=$?
25870   grep -v '^ *+' conftest.er1 >conftest.err
25871   rm -f conftest.er1
25872   cat conftest.err >&5
25873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); } && {
25875          test -z "$ac_c_werror_flag" ||
25876          test ! -s conftest.err
25877        } && test -s conftest.$ac_objext; then
25878   ac_hi=$ac_mid
25879 else
25880   $as_echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25882
25883         ac_lo=`expr '(' $ac_mid ')' + 1`
25884 fi
25885
25886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25887 done
25888 case $ac_lo in
25889 ?*) ac_cv_sizeof_short=$ac_lo;;
25890 '') if test "$ac_cv_type_short" = yes; then
25891      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25893 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
25894 See \`config.log' for more details." >&5
25895 $as_echo "$as_me: error: cannot compute sizeof (short)
25896 See \`config.log' for more details." >&2;}
25897    { (exit 77); exit 77; }; }; }
25898    else
25899      ac_cv_sizeof_short=0
25900    fi ;;
25901 esac
25902 else
25903   cat >conftest.$ac_ext <<_ACEOF
25904 /* confdefs.h.  */
25905 _ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h.  */
25909 $ac_includes_default
25910 static long int longval () { return (long int) (sizeof (short)); }
25911 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
25912 #include <stdio.h>
25913 #include <stdlib.h>
25914 int
25915 main ()
25916 {
25917
25918   FILE *f = fopen ("conftest.val", "w");
25919   if (! f)
25920     return 1;
25921   if (((long int) (sizeof (short))) < 0)
25922     {
25923       long int i = longval ();
25924       if (i != ((long int) (sizeof (short))))
25925         return 1;
25926       fprintf (f, "%ld", i);
25927     }
25928   else
25929     {
25930       unsigned long int i = ulongval ();
25931       if (i != ((long int) (sizeof (short))))
25932         return 1;
25933       fprintf (f, "%lu", i);
25934     }
25935   /* Do not output a trailing newline, as this causes \r\n confusion
25936      on some platforms.  */
25937   return ferror (f) || fclose (f) != 0;
25938
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950 $as_echo "$ac_try_echo") >&5
25951   (eval "$ac_link") 2>&5
25952   ac_status=$?
25953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25955   { (case "(($ac_try" in
25956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25957   *) ac_try_echo=$ac_try;;
25958 esac
25959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25960 $as_echo "$ac_try_echo") >&5
25961   (eval "$ac_try") 2>&5
25962   ac_status=$?
25963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); }; }; then
25965   ac_cv_sizeof_short=`cat conftest.val`
25966 else
25967   $as_echo "$as_me: program exited with status $ac_status" >&5
25968 $as_echo "$as_me: failed program was:" >&5
25969 sed 's/^/| /' conftest.$ac_ext >&5
25970
25971 ( exit $ac_status )
25972 if test "$ac_cv_type_short" = yes; then
25973      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25975 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
25976 See \`config.log' for more details." >&5
25977 $as_echo "$as_me: error: cannot compute sizeof (short)
25978 See \`config.log' for more details." >&2;}
25979    { (exit 77); exit 77; }; }; }
25980    else
25981      ac_cv_sizeof_short=0
25982    fi
25983 fi
25984 rm -rf conftest.dSYM
25985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25986 fi
25987 rm -f conftest.val
25988 fi
25989 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25990 $as_echo "$ac_cv_sizeof_short" >&6; }
25991
25992
25993
25994 cat >>confdefs.h <<_ACEOF
25995 #define SIZEOF_SHORT $ac_cv_sizeof_short
25996 _ACEOF
25997
25998
25999 # The cast to long int works around a bug in the HP C Compiler
26000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26002 # This bug is HP SR number 8606223364.
26003 { $as_echo "$as_me:$LINENO: checking size of int" >&5
26004 $as_echo_n "checking size of int... " >&6; }
26005 if test "${ac_cv_sizeof_int+set}" = set; then
26006   $as_echo_n "(cached) " >&6
26007 else
26008   if test "$cross_compiling" = yes; then
26009   # Depending upon the size, compute the lo and hi bounds.
26010 cat >conftest.$ac_ext <<_ACEOF
26011 /* confdefs.h.  */
26012 _ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h.  */
26016 $ac_includes_default
26017 int
26018 main ()
26019 {
26020 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
26021 test_array [0] = 0
26022
26023   ;
26024   return 0;
26025 }
26026 _ACEOF
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031   *) ac_try_echo=$ac_try;;
26032 esac
26033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26034 $as_echo "$ac_try_echo") >&5
26035   (eval "$ac_compile") 2>conftest.er1
26036   ac_status=$?
26037   grep -v '^ *+' conftest.er1 >conftest.err
26038   rm -f conftest.er1
26039   cat conftest.err >&5
26040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); } && {
26042          test -z "$ac_c_werror_flag" ||
26043          test ! -s conftest.err
26044        } && test -s conftest.$ac_objext; then
26045   ac_lo=0 ac_mid=0
26046   while :; do
26047     cat >conftest.$ac_ext <<_ACEOF
26048 /* confdefs.h.  */
26049 _ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h.  */
26053 $ac_includes_default
26054 int
26055 main ()
26056 {
26057 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26058 test_array [0] = 0
26059
26060   ;
26061   return 0;
26062 }
26063 _ACEOF
26064 rm -f conftest.$ac_objext
26065 if { (ac_try="$ac_compile"
26066 case "(($ac_try" in
26067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068   *) ac_try_echo=$ac_try;;
26069 esac
26070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26071 $as_echo "$ac_try_echo") >&5
26072   (eval "$ac_compile") 2>conftest.er1
26073   ac_status=$?
26074   grep -v '^ *+' conftest.er1 >conftest.err
26075   rm -f conftest.er1
26076   cat conftest.err >&5
26077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); } && {
26079          test -z "$ac_c_werror_flag" ||
26080          test ! -s conftest.err
26081        } && test -s conftest.$ac_objext; then
26082   ac_hi=$ac_mid; break
26083 else
26084   $as_echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26086
26087         ac_lo=`expr $ac_mid + 1`
26088                         if test $ac_lo -le $ac_mid; then
26089                           ac_lo= ac_hi=
26090                           break
26091                         fi
26092                         ac_mid=`expr 2 '*' $ac_mid + 1`
26093 fi
26094
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26096   done
26097 else
26098   $as_echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26100
26101         cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h.  */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h.  */
26107 $ac_includes_default
26108 int
26109 main ()
26110 {
26111 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
26112 test_array [0] = 0
26113
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122   *) ac_try_echo=$ac_try;;
26123 esac
26124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26125 $as_echo "$ac_try_echo") >&5
26126   (eval "$ac_compile") 2>conftest.er1
26127   ac_status=$?
26128   grep -v '^ *+' conftest.er1 >conftest.err
26129   rm -f conftest.er1
26130   cat conftest.err >&5
26131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); } && {
26133          test -z "$ac_c_werror_flag" ||
26134          test ! -s conftest.err
26135        } && test -s conftest.$ac_objext; then
26136   ac_hi=-1 ac_mid=-1
26137   while :; do
26138     cat >conftest.$ac_ext <<_ACEOF
26139 /* confdefs.h.  */
26140 _ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h.  */
26144 $ac_includes_default
26145 int
26146 main ()
26147 {
26148 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
26149 test_array [0] = 0
26150
26151   ;
26152   return 0;
26153 }
26154 _ACEOF
26155 rm -f conftest.$ac_objext
26156 if { (ac_try="$ac_compile"
26157 case "(($ac_try" in
26158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159   *) ac_try_echo=$ac_try;;
26160 esac
26161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26162 $as_echo "$ac_try_echo") >&5
26163   (eval "$ac_compile") 2>conftest.er1
26164   ac_status=$?
26165   grep -v '^ *+' conftest.er1 >conftest.err
26166   rm -f conftest.er1
26167   cat conftest.err >&5
26168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); } && {
26170          test -z "$ac_c_werror_flag" ||
26171          test ! -s conftest.err
26172        } && test -s conftest.$ac_objext; then
26173   ac_lo=$ac_mid; break
26174 else
26175   $as_echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178         ac_hi=`expr '(' $ac_mid ')' - 1`
26179                         if test $ac_mid -le $ac_hi; then
26180                           ac_lo= ac_hi=
26181                           break
26182                         fi
26183                         ac_mid=`expr 2 '*' $ac_mid`
26184 fi
26185
26186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26187   done
26188 else
26189   $as_echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26191
26192         ac_lo= ac_hi=
26193 fi
26194
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196 fi
26197
26198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199 # Binary search between lo and hi bounds.
26200 while test "x$ac_lo" != "x$ac_hi"; do
26201   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26202   cat >conftest.$ac_ext <<_ACEOF
26203 /* confdefs.h.  */
26204 _ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h.  */
26208 $ac_includes_default
26209 int
26210 main ()
26211 {
26212 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26213 test_array [0] = 0
26214
26215   ;
26216   return 0;
26217 }
26218 _ACEOF
26219 rm -f conftest.$ac_objext
26220 if { (ac_try="$ac_compile"
26221 case "(($ac_try" in
26222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223   *) ac_try_echo=$ac_try;;
26224 esac
26225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26226 $as_echo "$ac_try_echo") >&5
26227   (eval "$ac_compile") 2>conftest.er1
26228   ac_status=$?
26229   grep -v '^ *+' conftest.er1 >conftest.err
26230   rm -f conftest.er1
26231   cat conftest.err >&5
26232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); } && {
26234          test -z "$ac_c_werror_flag" ||
26235          test ! -s conftest.err
26236        } && test -s conftest.$ac_objext; then
26237   ac_hi=$ac_mid
26238 else
26239   $as_echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26241
26242         ac_lo=`expr '(' $ac_mid ')' + 1`
26243 fi
26244
26245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26246 done
26247 case $ac_lo in
26248 ?*) ac_cv_sizeof_int=$ac_lo;;
26249 '') if test "$ac_cv_type_int" = yes; then
26250      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26252 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26253 See \`config.log' for more details." >&5
26254 $as_echo "$as_me: error: cannot compute sizeof (int)
26255 See \`config.log' for more details." >&2;}
26256    { (exit 77); exit 77; }; }; }
26257    else
26258      ac_cv_sizeof_int=0
26259    fi ;;
26260 esac
26261 else
26262   cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h.  */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h.  */
26268 $ac_includes_default
26269 static long int longval () { return (long int) (sizeof (int)); }
26270 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
26271 #include <stdio.h>
26272 #include <stdlib.h>
26273 int
26274 main ()
26275 {
26276
26277   FILE *f = fopen ("conftest.val", "w");
26278   if (! f)
26279     return 1;
26280   if (((long int) (sizeof (int))) < 0)
26281     {
26282       long int i = longval ();
26283       if (i != ((long int) (sizeof (int))))
26284         return 1;
26285       fprintf (f, "%ld", i);
26286     }
26287   else
26288     {
26289       unsigned long int i = ulongval ();
26290       if (i != ((long int) (sizeof (int))))
26291         return 1;
26292       fprintf (f, "%lu", i);
26293     }
26294   /* Do not output a trailing newline, as this causes \r\n confusion
26295      on some platforms.  */
26296   return ferror (f) || fclose (f) != 0;
26297
26298   ;
26299   return 0;
26300 }
26301 _ACEOF
26302 rm -f conftest$ac_exeext
26303 if { (ac_try="$ac_link"
26304 case "(($ac_try" in
26305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306   *) ac_try_echo=$ac_try;;
26307 esac
26308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26309 $as_echo "$ac_try_echo") >&5
26310   (eval "$ac_link") 2>&5
26311   ac_status=$?
26312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26314   { (case "(($ac_try" in
26315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26316   *) ac_try_echo=$ac_try;;
26317 esac
26318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26319 $as_echo "$ac_try_echo") >&5
26320   (eval "$ac_try") 2>&5
26321   ac_status=$?
26322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); }; }; then
26324   ac_cv_sizeof_int=`cat conftest.val`
26325 else
26326   $as_echo "$as_me: program exited with status $ac_status" >&5
26327 $as_echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26329
26330 ( exit $ac_status )
26331 if test "$ac_cv_type_int" = yes; then
26332      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26334 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26335 See \`config.log' for more details." >&5
26336 $as_echo "$as_me: error: cannot compute sizeof (int)
26337 See \`config.log' for more details." >&2;}
26338    { (exit 77); exit 77; }; }; }
26339    else
26340      ac_cv_sizeof_int=0
26341    fi
26342 fi
26343 rm -rf conftest.dSYM
26344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26345 fi
26346 rm -f conftest.val
26347 fi
26348 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26349 $as_echo "$ac_cv_sizeof_int" >&6; }
26350
26351
26352
26353 cat >>confdefs.h <<_ACEOF
26354 #define SIZEOF_INT $ac_cv_sizeof_int
26355 _ACEOF
26356
26357
26358 # The cast to long int works around a bug in the HP C Compiler
26359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26361 # This bug is HP SR number 8606223364.
26362 { $as_echo "$as_me:$LINENO: checking size of long" >&5
26363 $as_echo_n "checking size of long... " >&6; }
26364 if test "${ac_cv_sizeof_long+set}" = set; then
26365   $as_echo_n "(cached) " >&6
26366 else
26367   if test "$cross_compiling" = yes; then
26368   # Depending upon the size, compute the lo and hi bounds.
26369 cat >conftest.$ac_ext <<_ACEOF
26370 /* confdefs.h.  */
26371 _ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h.  */
26375 $ac_includes_default
26376 int
26377 main ()
26378 {
26379 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
26380 test_array [0] = 0
26381
26382   ;
26383   return 0;
26384 }
26385 _ACEOF
26386 rm -f conftest.$ac_objext
26387 if { (ac_try="$ac_compile"
26388 case "(($ac_try" in
26389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390   *) ac_try_echo=$ac_try;;
26391 esac
26392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26393 $as_echo "$ac_try_echo") >&5
26394   (eval "$ac_compile") 2>conftest.er1
26395   ac_status=$?
26396   grep -v '^ *+' conftest.er1 >conftest.err
26397   rm -f conftest.er1
26398   cat conftest.err >&5
26399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } && {
26401          test -z "$ac_c_werror_flag" ||
26402          test ! -s conftest.err
26403        } && test -s conftest.$ac_objext; then
26404   ac_lo=0 ac_mid=0
26405   while :; do
26406     cat >conftest.$ac_ext <<_ACEOF
26407 /* confdefs.h.  */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h.  */
26412 $ac_includes_default
26413 int
26414 main ()
26415 {
26416 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26417 test_array [0] = 0
26418
26419   ;
26420   return 0;
26421 }
26422 _ACEOF
26423 rm -f conftest.$ac_objext
26424 if { (ac_try="$ac_compile"
26425 case "(($ac_try" in
26426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427   *) ac_try_echo=$ac_try;;
26428 esac
26429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430 $as_echo "$ac_try_echo") >&5
26431   (eval "$ac_compile") 2>conftest.er1
26432   ac_status=$?
26433   grep -v '^ *+' conftest.er1 >conftest.err
26434   rm -f conftest.er1
26435   cat conftest.err >&5
26436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437   (exit $ac_status); } && {
26438          test -z "$ac_c_werror_flag" ||
26439          test ! -s conftest.err
26440        } && test -s conftest.$ac_objext; then
26441   ac_hi=$ac_mid; break
26442 else
26443   $as_echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26445
26446         ac_lo=`expr $ac_mid + 1`
26447                         if test $ac_lo -le $ac_mid; then
26448                           ac_lo= ac_hi=
26449                           break
26450                         fi
26451                         ac_mid=`expr 2 '*' $ac_mid + 1`
26452 fi
26453
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26455   done
26456 else
26457   $as_echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460         cat >conftest.$ac_ext <<_ACEOF
26461 /* confdefs.h.  */
26462 _ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h.  */
26466 $ac_includes_default
26467 int
26468 main ()
26469 {
26470 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
26471 test_array [0] = 0
26472
26473   ;
26474   return 0;
26475 }
26476 _ACEOF
26477 rm -f conftest.$ac_objext
26478 if { (ac_try="$ac_compile"
26479 case "(($ac_try" in
26480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26481   *) ac_try_echo=$ac_try;;
26482 esac
26483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26484 $as_echo "$ac_try_echo") >&5
26485   (eval "$ac_compile") 2>conftest.er1
26486   ac_status=$?
26487   grep -v '^ *+' conftest.er1 >conftest.err
26488   rm -f conftest.er1
26489   cat conftest.err >&5
26490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); } && {
26492          test -z "$ac_c_werror_flag" ||
26493          test ! -s conftest.err
26494        } && test -s conftest.$ac_objext; then
26495   ac_hi=-1 ac_mid=-1
26496   while :; do
26497     cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h.  */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h.  */
26503 $ac_includes_default
26504 int
26505 main ()
26506 {
26507 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26508 test_array [0] = 0
26509
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 rm -f conftest.$ac_objext
26515 if { (ac_try="$ac_compile"
26516 case "(($ac_try" in
26517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518   *) ac_try_echo=$ac_try;;
26519 esac
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522   (eval "$ac_compile") 2>conftest.er1
26523   ac_status=$?
26524   grep -v '^ *+' conftest.er1 >conftest.err
26525   rm -f conftest.er1
26526   cat conftest.err >&5
26527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528   (exit $ac_status); } && {
26529          test -z "$ac_c_werror_flag" ||
26530          test ! -s conftest.err
26531        } && test -s conftest.$ac_objext; then
26532   ac_lo=$ac_mid; break
26533 else
26534   $as_echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26536
26537         ac_hi=`expr '(' $ac_mid ')' - 1`
26538                         if test $ac_mid -le $ac_hi; then
26539                           ac_lo= ac_hi=
26540                           break
26541                         fi
26542                         ac_mid=`expr 2 '*' $ac_mid`
26543 fi
26544
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546   done
26547 else
26548   $as_echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551         ac_lo= ac_hi=
26552 fi
26553
26554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26555 fi
26556
26557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26558 # Binary search between lo and hi bounds.
26559 while test "x$ac_lo" != "x$ac_hi"; do
26560   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26561   cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567 $ac_includes_default
26568 int
26569 main ()
26570 {
26571 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26572 test_array [0] = 0
26573
26574   ;
26575   return 0;
26576 }
26577 _ACEOF
26578 rm -f conftest.$ac_objext
26579 if { (ac_try="$ac_compile"
26580 case "(($ac_try" in
26581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582   *) ac_try_echo=$ac_try;;
26583 esac
26584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26585 $as_echo "$ac_try_echo") >&5
26586   (eval "$ac_compile") 2>conftest.er1
26587   ac_status=$?
26588   grep -v '^ *+' conftest.er1 >conftest.err
26589   rm -f conftest.er1
26590   cat conftest.err >&5
26591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592   (exit $ac_status); } && {
26593          test -z "$ac_c_werror_flag" ||
26594          test ! -s conftest.err
26595        } && test -s conftest.$ac_objext; then
26596   ac_hi=$ac_mid
26597 else
26598   $as_echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26600
26601         ac_lo=`expr '(' $ac_mid ')' + 1`
26602 fi
26603
26604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26605 done
26606 case $ac_lo in
26607 ?*) ac_cv_sizeof_long=$ac_lo;;
26608 '') if test "$ac_cv_type_long" = yes; then
26609      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26611 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26612 See \`config.log' for more details." >&5
26613 $as_echo "$as_me: error: cannot compute sizeof (long)
26614 See \`config.log' for more details." >&2;}
26615    { (exit 77); exit 77; }; }; }
26616    else
26617      ac_cv_sizeof_long=0
26618    fi ;;
26619 esac
26620 else
26621   cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h.  */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h.  */
26627 $ac_includes_default
26628 static long int longval () { return (long int) (sizeof (long)); }
26629 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26630 #include <stdio.h>
26631 #include <stdlib.h>
26632 int
26633 main ()
26634 {
26635
26636   FILE *f = fopen ("conftest.val", "w");
26637   if (! f)
26638     return 1;
26639   if (((long int) (sizeof (long))) < 0)
26640     {
26641       long int i = longval ();
26642       if (i != ((long int) (sizeof (long))))
26643         return 1;
26644       fprintf (f, "%ld", i);
26645     }
26646   else
26647     {
26648       unsigned long int i = ulongval ();
26649       if (i != ((long int) (sizeof (long))))
26650         return 1;
26651       fprintf (f, "%lu", i);
26652     }
26653   /* Do not output a trailing newline, as this causes \r\n confusion
26654      on some platforms.  */
26655   return ferror (f) || fclose (f) != 0;
26656
26657   ;
26658   return 0;
26659 }
26660 _ACEOF
26661 rm -f conftest$ac_exeext
26662 if { (ac_try="$ac_link"
26663 case "(($ac_try" in
26664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26665   *) ac_try_echo=$ac_try;;
26666 esac
26667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26668 $as_echo "$ac_try_echo") >&5
26669   (eval "$ac_link") 2>&5
26670   ac_status=$?
26671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26673   { (case "(($ac_try" in
26674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26675   *) ac_try_echo=$ac_try;;
26676 esac
26677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26678 $as_echo "$ac_try_echo") >&5
26679   (eval "$ac_try") 2>&5
26680   ac_status=$?
26681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); }; }; then
26683   ac_cv_sizeof_long=`cat conftest.val`
26684 else
26685   $as_echo "$as_me: program exited with status $ac_status" >&5
26686 $as_echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26688
26689 ( exit $ac_status )
26690 if test "$ac_cv_type_long" = yes; then
26691      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26693 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26694 See \`config.log' for more details." >&5
26695 $as_echo "$as_me: error: cannot compute sizeof (long)
26696 See \`config.log' for more details." >&2;}
26697    { (exit 77); exit 77; }; }; }
26698    else
26699      ac_cv_sizeof_long=0
26700    fi
26701 fi
26702 rm -rf conftest.dSYM
26703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26704 fi
26705 rm -f conftest.val
26706 fi
26707 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26708 $as_echo "$ac_cv_sizeof_long" >&6; }
26709
26710
26711
26712 cat >>confdefs.h <<_ACEOF
26713 #define SIZEOF_LONG $ac_cv_sizeof_long
26714 _ACEOF
26715
26716
26717 # The cast to long int works around a bug in the HP C Compiler
26718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26720 # This bug is HP SR number 8606223364.
26721 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
26722 $as_echo_n "checking size of size_t... " >&6; }
26723 if test "${ac_cv_sizeof_size_t+set}" = set; then
26724   $as_echo_n "(cached) " >&6
26725 else
26726   if test "$cross_compiling" = yes; then
26727   # Depending upon the size, compute the lo and hi bounds.
26728 cat >conftest.$ac_ext <<_ACEOF
26729 /* confdefs.h.  */
26730 _ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h.  */
26734 $ac_includes_default
26735 int
26736 main ()
26737 {
26738 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
26739 test_array [0] = 0
26740
26741   ;
26742   return 0;
26743 }
26744 _ACEOF
26745 rm -f conftest.$ac_objext
26746 if { (ac_try="$ac_compile"
26747 case "(($ac_try" in
26748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26749   *) ac_try_echo=$ac_try;;
26750 esac
26751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26752 $as_echo "$ac_try_echo") >&5
26753   (eval "$ac_compile") 2>conftest.er1
26754   ac_status=$?
26755   grep -v '^ *+' conftest.er1 >conftest.err
26756   rm -f conftest.er1
26757   cat conftest.err >&5
26758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759   (exit $ac_status); } && {
26760          test -z "$ac_c_werror_flag" ||
26761          test ! -s conftest.err
26762        } && test -s conftest.$ac_objext; then
26763   ac_lo=0 ac_mid=0
26764   while :; do
26765     cat >conftest.$ac_ext <<_ACEOF
26766 /* confdefs.h.  */
26767 _ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h.  */
26771 $ac_includes_default
26772 int
26773 main ()
26774 {
26775 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
26776 test_array [0] = 0
26777
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 rm -f conftest.$ac_objext
26783 if { (ac_try="$ac_compile"
26784 case "(($ac_try" in
26785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26786   *) ac_try_echo=$ac_try;;
26787 esac
26788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26789 $as_echo "$ac_try_echo") >&5
26790   (eval "$ac_compile") 2>conftest.er1
26791   ac_status=$?
26792   grep -v '^ *+' conftest.er1 >conftest.err
26793   rm -f conftest.er1
26794   cat conftest.err >&5
26795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); } && {
26797          test -z "$ac_c_werror_flag" ||
26798          test ! -s conftest.err
26799        } && test -s conftest.$ac_objext; then
26800   ac_hi=$ac_mid; break
26801 else
26802   $as_echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26804
26805         ac_lo=`expr $ac_mid + 1`
26806                         if test $ac_lo -le $ac_mid; then
26807                           ac_lo= ac_hi=
26808                           break
26809                         fi
26810                         ac_mid=`expr 2 '*' $ac_mid + 1`
26811 fi
26812
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26814   done
26815 else
26816   $as_echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26818
26819         cat >conftest.$ac_ext <<_ACEOF
26820 /* confdefs.h.  */
26821 _ACEOF
26822 cat confdefs.h >>conftest.$ac_ext
26823 cat >>conftest.$ac_ext <<_ACEOF
26824 /* end confdefs.h.  */
26825 $ac_includes_default
26826 int
26827 main ()
26828 {
26829 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
26830 test_array [0] = 0
26831
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 rm -f conftest.$ac_objext
26837 if { (ac_try="$ac_compile"
26838 case "(($ac_try" in
26839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840   *) ac_try_echo=$ac_try;;
26841 esac
26842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26843 $as_echo "$ac_try_echo") >&5
26844   (eval "$ac_compile") 2>conftest.er1
26845   ac_status=$?
26846   grep -v '^ *+' conftest.er1 >conftest.err
26847   rm -f conftest.er1
26848   cat conftest.err >&5
26849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); } && {
26851          test -z "$ac_c_werror_flag" ||
26852          test ! -s conftest.err
26853        } && test -s conftest.$ac_objext; then
26854   ac_hi=-1 ac_mid=-1
26855   while :; do
26856     cat >conftest.$ac_ext <<_ACEOF
26857 /* confdefs.h.  */
26858 _ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h.  */
26862 $ac_includes_default
26863 int
26864 main ()
26865 {
26866 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
26867 test_array [0] = 0
26868
26869   ;
26870   return 0;
26871 }
26872 _ACEOF
26873 rm -f conftest.$ac_objext
26874 if { (ac_try="$ac_compile"
26875 case "(($ac_try" in
26876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877   *) ac_try_echo=$ac_try;;
26878 esac
26879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26880 $as_echo "$ac_try_echo") >&5
26881   (eval "$ac_compile") 2>conftest.er1
26882   ac_status=$?
26883   grep -v '^ *+' conftest.er1 >conftest.err
26884   rm -f conftest.er1
26885   cat conftest.err >&5
26886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); } && {
26888          test -z "$ac_c_werror_flag" ||
26889          test ! -s conftest.err
26890        } && test -s conftest.$ac_objext; then
26891   ac_lo=$ac_mid; break
26892 else
26893   $as_echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26895
26896         ac_hi=`expr '(' $ac_mid ')' - 1`
26897                         if test $ac_mid -le $ac_hi; then
26898                           ac_lo= ac_hi=
26899                           break
26900                         fi
26901                         ac_mid=`expr 2 '*' $ac_mid`
26902 fi
26903
26904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26905   done
26906 else
26907   $as_echo "$as_me: failed program was:" >&5
26908 sed 's/^/| /' conftest.$ac_ext >&5
26909
26910         ac_lo= ac_hi=
26911 fi
26912
26913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914 fi
26915
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 # Binary search between lo and hi bounds.
26918 while test "x$ac_lo" != "x$ac_hi"; do
26919   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26920   cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h.  */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h.  */
26926 $ac_includes_default
26927 int
26928 main ()
26929 {
26930 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
26931 test_array [0] = 0
26932
26933   ;
26934   return 0;
26935 }
26936 _ACEOF
26937 rm -f conftest.$ac_objext
26938 if { (ac_try="$ac_compile"
26939 case "(($ac_try" in
26940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941   *) ac_try_echo=$ac_try;;
26942 esac
26943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26944 $as_echo "$ac_try_echo") >&5
26945   (eval "$ac_compile") 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } && {
26952          test -z "$ac_c_werror_flag" ||
26953          test ! -s conftest.err
26954        } && test -s conftest.$ac_objext; then
26955   ac_hi=$ac_mid
26956 else
26957   $as_echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960         ac_lo=`expr '(' $ac_mid ')' + 1`
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964 done
26965 case $ac_lo in
26966 ?*) ac_cv_sizeof_size_t=$ac_lo;;
26967 '') if test "$ac_cv_type_size_t" = yes; then
26968      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26970 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
26971 See \`config.log' for more details." >&5
26972 $as_echo "$as_me: error: cannot compute sizeof (size_t)
26973 See \`config.log' for more details." >&2;}
26974    { (exit 77); exit 77; }; }; }
26975    else
26976      ac_cv_sizeof_size_t=0
26977    fi ;;
26978 esac
26979 else
26980   cat >conftest.$ac_ext <<_ACEOF
26981 /* confdefs.h.  */
26982 _ACEOF
26983 cat confdefs.h >>conftest.$ac_ext
26984 cat >>conftest.$ac_ext <<_ACEOF
26985 /* end confdefs.h.  */
26986 $ac_includes_default
26987 static long int longval () { return (long int) (sizeof (size_t)); }
26988 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
26989 #include <stdio.h>
26990 #include <stdlib.h>
26991 int
26992 main ()
26993 {
26994
26995   FILE *f = fopen ("conftest.val", "w");
26996   if (! f)
26997     return 1;
26998   if (((long int) (sizeof (size_t))) < 0)
26999     {
27000       long int i = longval ();
27001       if (i != ((long int) (sizeof (size_t))))
27002         return 1;
27003       fprintf (f, "%ld", i);
27004     }
27005   else
27006     {
27007       unsigned long int i = ulongval ();
27008       if (i != ((long int) (sizeof (size_t))))
27009         return 1;
27010       fprintf (f, "%lu", i);
27011     }
27012   /* Do not output a trailing newline, as this causes \r\n confusion
27013      on some platforms.  */
27014   return ferror (f) || fclose (f) != 0;
27015
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028   (eval "$ac_link") 2>&5
27029   ac_status=$?
27030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27032   { (case "(($ac_try" in
27033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034   *) ac_try_echo=$ac_try;;
27035 esac
27036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27037 $as_echo "$ac_try_echo") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; }; then
27042   ac_cv_sizeof_size_t=`cat conftest.val`
27043 else
27044   $as_echo "$as_me: program exited with status $ac_status" >&5
27045 $as_echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048 ( exit $ac_status )
27049 if test "$ac_cv_type_size_t" = yes; then
27050      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27052 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27053 See \`config.log' for more details." >&5
27054 $as_echo "$as_me: error: cannot compute sizeof (size_t)
27055 See \`config.log' for more details." >&2;}
27056    { (exit 77); exit 77; }; }; }
27057    else
27058      ac_cv_sizeof_size_t=0
27059    fi
27060 fi
27061 rm -rf conftest.dSYM
27062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27063 fi
27064 rm -f conftest.val
27065 fi
27066 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27067 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27068
27069
27070
27071 cat >>confdefs.h <<_ACEOF
27072 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27073 _ACEOF
27074
27075
27076 # The cast to long int works around a bug in the HP C Compiler
27077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27079 # This bug is HP SR number 8606223364.
27080 { $as_echo "$as_me:$LINENO: checking size of socklen_t" >&5
27081 $as_echo_n "checking size of socklen_t... " >&6; }
27082 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
27083   $as_echo_n "(cached) " >&6
27084 else
27085   if test "$cross_compiling" = yes; then
27086   # Depending upon the size, compute the lo and hi bounds.
27087 cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h.  */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h.  */
27093 $ac_includes_default
27094 int
27095 main ()
27096 {
27097 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= 0)];
27098 test_array [0] = 0
27099
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest.$ac_objext
27105 if { (ac_try="$ac_compile"
27106 case "(($ac_try" in
27107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108   *) ac_try_echo=$ac_try;;
27109 esac
27110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27111 $as_echo "$ac_try_echo") >&5
27112   (eval "$ac_compile") 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } && {
27119          test -z "$ac_c_werror_flag" ||
27120          test ! -s conftest.err
27121        } && test -s conftest.$ac_objext; then
27122   ac_lo=0 ac_mid=0
27123   while :; do
27124     cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130 $ac_includes_default
27131 int
27132 main ()
27133 {
27134 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27135 test_array [0] = 0
27136
27137   ;
27138   return 0;
27139 }
27140 _ACEOF
27141 rm -f conftest.$ac_objext
27142 if { (ac_try="$ac_compile"
27143 case "(($ac_try" in
27144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145   *) ac_try_echo=$ac_try;;
27146 esac
27147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27148 $as_echo "$ac_try_echo") >&5
27149   (eval "$ac_compile") 2>conftest.er1
27150   ac_status=$?
27151   grep -v '^ *+' conftest.er1 >conftest.err
27152   rm -f conftest.er1
27153   cat conftest.err >&5
27154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); } && {
27156          test -z "$ac_c_werror_flag" ||
27157          test ! -s conftest.err
27158        } && test -s conftest.$ac_objext; then
27159   ac_hi=$ac_mid; break
27160 else
27161   $as_echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164         ac_lo=`expr $ac_mid + 1`
27165                         if test $ac_lo -le $ac_mid; then
27166                           ac_lo= ac_hi=
27167                           break
27168                         fi
27169                         ac_mid=`expr 2 '*' $ac_mid + 1`
27170 fi
27171
27172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27173   done
27174 else
27175   $as_echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27177
27178         cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h.  */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h.  */
27184 $ac_includes_default
27185 int
27186 main ()
27187 {
27188 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) < 0)];
27189 test_array [0] = 0
27190
27191   ;
27192   return 0;
27193 }
27194 _ACEOF
27195 rm -f conftest.$ac_objext
27196 if { (ac_try="$ac_compile"
27197 case "(($ac_try" in
27198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199   *) ac_try_echo=$ac_try;;
27200 esac
27201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27202 $as_echo "$ac_try_echo") >&5
27203   (eval "$ac_compile") 2>conftest.er1
27204   ac_status=$?
27205   grep -v '^ *+' conftest.er1 >conftest.err
27206   rm -f conftest.er1
27207   cat conftest.err >&5
27208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); } && {
27210          test -z "$ac_c_werror_flag" ||
27211          test ! -s conftest.err
27212        } && test -s conftest.$ac_objext; then
27213   ac_hi=-1 ac_mid=-1
27214   while :; do
27215     cat >conftest.$ac_ext <<_ACEOF
27216 /* confdefs.h.  */
27217 _ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h.  */
27221 $ac_includes_default
27222 int
27223 main ()
27224 {
27225 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= $ac_mid)];
27226 test_array [0] = 0
27227
27228   ;
27229   return 0;
27230 }
27231 _ACEOF
27232 rm -f conftest.$ac_objext
27233 if { (ac_try="$ac_compile"
27234 case "(($ac_try" in
27235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236   *) ac_try_echo=$ac_try;;
27237 esac
27238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27239 $as_echo "$ac_try_echo") >&5
27240   (eval "$ac_compile") 2>conftest.er1
27241   ac_status=$?
27242   grep -v '^ *+' conftest.er1 >conftest.err
27243   rm -f conftest.er1
27244   cat conftest.err >&5
27245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); } && {
27247          test -z "$ac_c_werror_flag" ||
27248          test ! -s conftest.err
27249        } && test -s conftest.$ac_objext; then
27250   ac_lo=$ac_mid; break
27251 else
27252   $as_echo "$as_me: failed program was:" >&5
27253 sed 's/^/| /' conftest.$ac_ext >&5
27254
27255         ac_hi=`expr '(' $ac_mid ')' - 1`
27256                         if test $ac_mid -le $ac_hi; then
27257                           ac_lo= ac_hi=
27258                           break
27259                         fi
27260                         ac_mid=`expr 2 '*' $ac_mid`
27261 fi
27262
27263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264   done
27265 else
27266   $as_echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269         ac_lo= ac_hi=
27270 fi
27271
27272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27273 fi
27274
27275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276 # Binary search between lo and hi bounds.
27277 while test "x$ac_lo" != "x$ac_hi"; do
27278   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27279   cat >conftest.$ac_ext <<_ACEOF
27280 /* confdefs.h.  */
27281 _ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h.  */
27285 $ac_includes_default
27286 int
27287 main ()
27288 {
27289 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27290 test_array [0] = 0
27291
27292   ;
27293   return 0;
27294 }
27295 _ACEOF
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300   *) ac_try_echo=$ac_try;;
27301 esac
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304   (eval "$ac_compile") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } && {
27311          test -z "$ac_c_werror_flag" ||
27312          test ! -s conftest.err
27313        } && test -s conftest.$ac_objext; then
27314   ac_hi=$ac_mid
27315 else
27316   $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319         ac_lo=`expr '(' $ac_mid ')' + 1`
27320 fi
27321
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 done
27324 case $ac_lo in
27325 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
27326 '') if test "$ac_cv_type_socklen_t" = yes; then
27327      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27329 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27330 See \`config.log' for more details." >&5
27331 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27332 See \`config.log' for more details." >&2;}
27333    { (exit 77); exit 77; }; }; }
27334    else
27335      ac_cv_sizeof_socklen_t=0
27336    fi ;;
27337 esac
27338 else
27339   cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h.  */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h.  */
27345 $ac_includes_default
27346 static long int longval () { return (long int) (sizeof (socklen_t)); }
27347 static unsigned long int ulongval () { return (long int) (sizeof (socklen_t)); }
27348 #include <stdio.h>
27349 #include <stdlib.h>
27350 int
27351 main ()
27352 {
27353
27354   FILE *f = fopen ("conftest.val", "w");
27355   if (! f)
27356     return 1;
27357   if (((long int) (sizeof (socklen_t))) < 0)
27358     {
27359       long int i = longval ();
27360       if (i != ((long int) (sizeof (socklen_t))))
27361         return 1;
27362       fprintf (f, "%ld", i);
27363     }
27364   else
27365     {
27366       unsigned long int i = ulongval ();
27367       if (i != ((long int) (sizeof (socklen_t))))
27368         return 1;
27369       fprintf (f, "%lu", i);
27370     }
27371   /* Do not output a trailing newline, as this causes \r\n confusion
27372      on some platforms.  */
27373   return ferror (f) || fclose (f) != 0;
27374
27375   ;
27376   return 0;
27377 }
27378 _ACEOF
27379 rm -f conftest$ac_exeext
27380 if { (ac_try="$ac_link"
27381 case "(($ac_try" in
27382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383   *) ac_try_echo=$ac_try;;
27384 esac
27385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27386 $as_echo "$ac_try_echo") >&5
27387   (eval "$ac_link") 2>&5
27388   ac_status=$?
27389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27391   { (case "(($ac_try" in
27392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393   *) ac_try_echo=$ac_try;;
27394 esac
27395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27396 $as_echo "$ac_try_echo") >&5
27397   (eval "$ac_try") 2>&5
27398   ac_status=$?
27399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); }; }; then
27401   ac_cv_sizeof_socklen_t=`cat conftest.val`
27402 else
27403   $as_echo "$as_me: program exited with status $ac_status" >&5
27404 $as_echo "$as_me: failed program was:" >&5
27405 sed 's/^/| /' conftest.$ac_ext >&5
27406
27407 ( exit $ac_status )
27408 if test "$ac_cv_type_socklen_t" = yes; then
27409      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27411 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27412 See \`config.log' for more details." >&5
27413 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27414 See \`config.log' for more details." >&2;}
27415    { (exit 77); exit 77; }; }; }
27416    else
27417      ac_cv_sizeof_socklen_t=0
27418    fi
27419 fi
27420 rm -rf conftest.dSYM
27421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27422 fi
27423 rm -f conftest.val
27424 fi
27425 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
27426 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
27427
27428
27429
27430 cat >>confdefs.h <<_ACEOF
27431 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
27432 _ACEOF
27433
27434
27435
27436
27437
27438 cat >>confdefs.h <<_ACEOF
27439 #define NFS_STATEDIR "$statedir"
27440 _ACEOF
27441
27442
27443 if test "x$cross_compiling" = "xno"; then
27444         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27445         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27446         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27447         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27448 else
27449         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27450         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27451         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27452         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27453 fi
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465 case $host in
27466   *)
27467     ARCHFLAGS="" ;;
27468 esac
27469
27470 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
27471
27472 AM_CFLAGS="$my_am_cflags"
27473
27474
27475 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27476 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27477
27478
27479 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"
27480
27481 cat >confcache <<\_ACEOF
27482 # This file is a shell script that caches the results of configure
27483 # tests run on this system so they can be shared between configure
27484 # scripts and configure runs, see configure's option --config-cache.
27485 # It is not useful on other systems.  If it contains results you don't
27486 # want to keep, you may remove or edit it.
27487 #
27488 # config.status only pays attention to the cache file if you give it
27489 # the --recheck option to rerun configure.
27490 #
27491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27493 # following values.
27494
27495 _ACEOF
27496
27497 # The following way of writing the cache mishandles newlines in values,
27498 # but we know of no workaround that is simple, portable, and efficient.
27499 # So, we kill variables containing newlines.
27500 # Ultrix sh set writes to stderr and can't be redirected directly,
27501 # and sets the high bit in the cache file unless we assign to the vars.
27502 (
27503   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27504     eval ac_val=\$$ac_var
27505     case $ac_val in #(
27506     *${as_nl}*)
27507       case $ac_var in #(
27508       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27510       esac
27511       case $ac_var in #(
27512       _ | IFS | as_nl) ;; #(
27513       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27514       *) $as_unset $ac_var ;;
27515       esac ;;
27516     esac
27517   done
27518
27519   (set) 2>&1 |
27520     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27521     *${as_nl}ac_space=\ *)
27522       # `set' does not quote correctly, so add quotes (double-quote
27523       # substitution turns \\\\ into \\, and sed turns \\ into \).
27524       sed -n \
27525         "s/'/'\\\\''/g;
27526           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27527       ;; #(
27528     *)
27529       # `set' quotes correctly as required by POSIX, so do not add quotes.
27530       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27531       ;;
27532     esac |
27533     sort
27534 ) |
27535   sed '
27536      /^ac_cv_env_/b end
27537      t clear
27538      :clear
27539      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27540      t end
27541      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27542      :end' >>confcache
27543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27544   if test -w "$cache_file"; then
27545     test "x$cache_file" != "x/dev/null" &&
27546       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27547 $as_echo "$as_me: updating cache $cache_file" >&6;}
27548     cat confcache >$cache_file
27549   else
27550     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27552   fi
27553 fi
27554 rm -f confcache
27555
27556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27557 # Let make expand exec_prefix.
27558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27559
27560 DEFS=-DHAVE_CONFIG_H
27561
27562 ac_libobjs=
27563 ac_ltlibobjs=
27564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27565   # 1. Remove the extension, and $U if already installed.
27566   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27567   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27568   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27569   #    will be set to the directory where LIBOBJS objects are built.
27570   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27571   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27572 done
27573 LIBOBJS=$ac_libobjs
27574
27575 LTLIBOBJS=$ac_ltlibobjs
27576
27577
27578  if test -n "$EXEEXT"; then
27579   am__EXEEXT_TRUE=
27580   am__EXEEXT_FALSE='#'
27581 else
27582   am__EXEEXT_TRUE='#'
27583   am__EXEEXT_FALSE=
27584 fi
27585
27586 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27587   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27588 Usually this means the macro was only invoked conditionally." >&5
27589 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27590 Usually this means the macro was only invoked conditionally." >&2;}
27591    { (exit 1); exit 1; }; }
27592 fi
27593 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27594   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27595 Usually this means the macro was only invoked conditionally." >&5
27596 $as_echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27597 Usually this means the macro was only invoked conditionally." >&2;}
27598    { (exit 1); exit 1; }; }
27599 fi
27600 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27601   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27602 Usually this means the macro was only invoked conditionally." >&5
27603 $as_echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27604 Usually this means the macro was only invoked conditionally." >&2;}
27605    { (exit 1); exit 1; }; }
27606 fi
27607 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
27608   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
27609 Usually this means the macro was only invoked conditionally." >&5
27610 $as_echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
27611 Usually this means the macro was only invoked conditionally." >&2;}
27612    { (exit 1); exit 1; }; }
27613 fi
27614 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
27615   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
27616 Usually this means the macro was only invoked conditionally." >&5
27617 $as_echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
27618 Usually this means the macro was only invoked conditionally." >&2;}
27619    { (exit 1); exit 1; }; }
27620 fi
27621 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
27622   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
27623 Usually this means the macro was only invoked conditionally." >&5
27624 $as_echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
27625 Usually this means the macro was only invoked conditionally." >&2;}
27626    { (exit 1); exit 1; }; }
27627 fi
27628 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27629   { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27630 Usually this means the macro was only invoked conditionally." >&5
27631 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27632 Usually this means the macro was only invoked conditionally." >&2;}
27633    { (exit 1); exit 1; }; }
27634 fi
27635 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27636   { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27637 Usually this means the macro was only invoked conditionally." >&5
27638 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27639 Usually this means the macro was only invoked conditionally." >&2;}
27640    { (exit 1); exit 1; }; }
27641 fi
27642 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27643   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27644 Usually this means the macro was only invoked conditionally." >&5
27645 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
27646 Usually this means the macro was only invoked conditionally." >&2;}
27647    { (exit 1); exit 1; }; }
27648 fi
27649 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27650   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27651 Usually this means the macro was only invoked conditionally." >&5
27652 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27653 Usually this means the macro was only invoked conditionally." >&2;}
27654    { (exit 1); exit 1; }; }
27655 fi
27656 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27657   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27658 Usually this means the macro was only invoked conditionally." >&5
27659 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27660 Usually this means the macro was only invoked conditionally." >&2;}
27661    { (exit 1); exit 1; }; }
27662 fi
27663 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27664   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27665 Usually this means the macro was only invoked conditionally." >&5
27666 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27667 Usually this means the macro was only invoked conditionally." >&2;}
27668    { (exit 1); exit 1; }; }
27669 fi
27670 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27671   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27672 Usually this means the macro was only invoked conditionally." >&5
27673 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27674 Usually this means the macro was only invoked conditionally." >&2;}
27675    { (exit 1); exit 1; }; }
27676 fi
27677
27678 : ${CONFIG_STATUS=./config.status}
27679 ac_write_fail=0
27680 ac_clean_files_save=$ac_clean_files
27681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27682 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27684 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27685 #! $SHELL
27686 # Generated by $as_me.
27687 # Run this file to recreate the current configuration.
27688 # Compiler output produced by configure, useful for debugging
27689 # configure, is in config.log if it exists.
27690
27691 debug=false
27692 ac_cs_recheck=false
27693 ac_cs_silent=false
27694 SHELL=\${CONFIG_SHELL-$SHELL}
27695 _ACEOF
27696
27697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27698 ## --------------------- ##
27699 ## M4sh Initialization.  ##
27700 ## --------------------- ##
27701
27702 # Be more Bourne compatible
27703 DUALCASE=1; export DUALCASE # for MKS sh
27704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27705   emulate sh
27706   NULLCMD=:
27707   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27708   # is contrary to our usage.  Disable this feature.
27709   alias -g '${1+"$@"}'='"$@"'
27710   setopt NO_GLOB_SUBST
27711 else
27712   case `(set -o) 2>/dev/null` in
27713   *posix*) set -o posix ;;
27714 esac
27715
27716 fi
27717
27718
27719
27720
27721 # PATH needs CR
27722 # Avoid depending upon Character Ranges.
27723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27726 as_cr_digits='0123456789'
27727 as_cr_alnum=$as_cr_Letters$as_cr_digits
27728
27729 as_nl='
27730 '
27731 export as_nl
27732 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27733 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27736 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27737   as_echo='printf %s\n'
27738   as_echo_n='printf %s'
27739 else
27740   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27741     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27742     as_echo_n='/usr/ucb/echo -n'
27743   else
27744     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27745     as_echo_n_body='eval
27746       arg=$1;
27747       case $arg in
27748       *"$as_nl"*)
27749         expr "X$arg" : "X\\(.*\\)$as_nl";
27750         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27751       esac;
27752       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27753     '
27754     export as_echo_n_body
27755     as_echo_n='sh -c $as_echo_n_body as_echo'
27756   fi
27757   export as_echo_body
27758   as_echo='sh -c $as_echo_body as_echo'
27759 fi
27760
27761 # The user is always right.
27762 if test "${PATH_SEPARATOR+set}" != set; then
27763   PATH_SEPARATOR=:
27764   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27765     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27766       PATH_SEPARATOR=';'
27767   }
27768 fi
27769
27770 # Support unset when possible.
27771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27772   as_unset=unset
27773 else
27774   as_unset=false
27775 fi
27776
27777
27778 # IFS
27779 # We need space, tab and new line, in precisely that order.  Quoting is
27780 # there to prevent editors from complaining about space-tab.
27781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27782 # splitting by setting IFS to empty value.)
27783 IFS=" ""        $as_nl"
27784
27785 # Find who we are.  Look in the path if we contain no directory separator.
27786 case $0 in
27787   *[\\/]* ) as_myself=$0 ;;
27788   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27789 for as_dir in $PATH
27790 do
27791   IFS=$as_save_IFS
27792   test -z "$as_dir" && as_dir=.
27793   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27794 done
27795 IFS=$as_save_IFS
27796
27797      ;;
27798 esac
27799 # We did not find ourselves, most probably we were run as `sh COMMAND'
27800 # in which case we are not to be found in the path.
27801 if test "x$as_myself" = x; then
27802   as_myself=$0
27803 fi
27804 if test ! -f "$as_myself"; then
27805   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27806   { (exit 1); exit 1; }
27807 fi
27808
27809 # Work around bugs in pre-3.0 UWIN ksh.
27810 for as_var in ENV MAIL MAILPATH
27811 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27812 done
27813 PS1='$ '
27814 PS2='> '
27815 PS4='+ '
27816
27817 # NLS nuisances.
27818 LC_ALL=C
27819 export LC_ALL
27820 LANGUAGE=C
27821 export LANGUAGE
27822
27823 # Required to use basename.
27824 if expr a : '\(a\)' >/dev/null 2>&1 &&
27825    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27826   as_expr=expr
27827 else
27828   as_expr=false
27829 fi
27830
27831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27832   as_basename=basename
27833 else
27834   as_basename=false
27835 fi
27836
27837
27838 # Name of the executable.
27839 as_me=`$as_basename -- "$0" ||
27840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27841          X"$0" : 'X\(//\)$' \| \
27842          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27843 $as_echo X/"$0" |
27844     sed '/^.*\/\([^/][^/]*\)\/*$/{
27845             s//\1/
27846             q
27847           }
27848           /^X\/\(\/\/\)$/{
27849             s//\1/
27850             q
27851           }
27852           /^X\/\(\/\).*/{
27853             s//\1/
27854             q
27855           }
27856           s/.*/./; q'`
27857
27858 # CDPATH.
27859 $as_unset CDPATH
27860
27861
27862
27863   as_lineno_1=$LINENO
27864   as_lineno_2=$LINENO
27865   test "x$as_lineno_1" != "x$as_lineno_2" &&
27866   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27867
27868   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27869   # uniformly replaced by the line number.  The first 'sed' inserts a
27870   # line-number line after each line using $LINENO; the second 'sed'
27871   # does the real work.  The second script uses 'N' to pair each
27872   # line-number line with the line containing $LINENO, and appends
27873   # trailing '-' during substitution so that $LINENO is not a special
27874   # case at line end.
27875   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27876   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27877   # E. McMahon (1931-1989) for sed's syntax.  :-)
27878   sed -n '
27879     p
27880     /[$]LINENO/=
27881   ' <$as_myself |
27882     sed '
27883       s/[$]LINENO.*/&-/
27884       t lineno
27885       b
27886       :lineno
27887       N
27888       :loop
27889       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27890       t loop
27891       s/-\n.*//
27892     ' >$as_me.lineno &&
27893   chmod +x "$as_me.lineno" ||
27894     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27895    { (exit 1); exit 1; }; }
27896
27897   # Don't try to exec as it changes $[0], causing all sort of problems
27898   # (the dirname of $[0] is not the place where we might find the
27899   # original and so on.  Autoconf is especially sensitive to this).
27900   . "./$as_me.lineno"
27901   # Exit status is that of the last command.
27902   exit
27903 }
27904
27905
27906 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27907   as_dirname=dirname
27908 else
27909   as_dirname=false
27910 fi
27911
27912 ECHO_C= ECHO_N= ECHO_T=
27913 case `echo -n x` in
27914 -n*)
27915   case `echo 'x\c'` in
27916   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27917   *)   ECHO_C='\c';;
27918   esac;;
27919 *)
27920   ECHO_N='-n';;
27921 esac
27922 if expr a : '\(a\)' >/dev/null 2>&1 &&
27923    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27924   as_expr=expr
27925 else
27926   as_expr=false
27927 fi
27928
27929 rm -f conf$$ conf$$.exe conf$$.file
27930 if test -d conf$$.dir; then
27931   rm -f conf$$.dir/conf$$.file
27932 else
27933   rm -f conf$$.dir
27934   mkdir conf$$.dir 2>/dev/null
27935 fi
27936 if (echo >conf$$.file) 2>/dev/null; then
27937   if ln -s conf$$.file conf$$ 2>/dev/null; then
27938     as_ln_s='ln -s'
27939     # ... but there are two gotchas:
27940     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27941     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27942     # In both cases, we have to default to `cp -p'.
27943     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27944       as_ln_s='cp -p'
27945   elif ln conf$$.file conf$$ 2>/dev/null; then
27946     as_ln_s=ln
27947   else
27948     as_ln_s='cp -p'
27949   fi
27950 else
27951   as_ln_s='cp -p'
27952 fi
27953 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27954 rmdir conf$$.dir 2>/dev/null
27955
27956 if mkdir -p . 2>/dev/null; then
27957   as_mkdir_p=:
27958 else
27959   test -d ./-p && rmdir ./-p
27960   as_mkdir_p=false
27961 fi
27962
27963 if test -x / >/dev/null 2>&1; then
27964   as_test_x='test -x'
27965 else
27966   if ls -dL / >/dev/null 2>&1; then
27967     as_ls_L_option=L
27968   else
27969     as_ls_L_option=
27970   fi
27971   as_test_x='
27972     eval sh -c '\''
27973       if test -d "$1"; then
27974         test -d "$1/.";
27975       else
27976         case $1 in
27977         -*)set "./$1";;
27978         esac;
27979         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27980         ???[sx]*):;;*)false;;esac;fi
27981     '\'' sh
27982   '
27983 fi
27984 as_executable_p=$as_test_x
27985
27986 # Sed expression to map a string onto a valid CPP name.
27987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27988
27989 # Sed expression to map a string onto a valid variable name.
27990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27991
27992
27993 exec 6>&1
27994
27995 # Save the log message, to keep $[0] and so on meaningful, and to
27996 # report actual input values of CONFIG_FILES etc. instead of their
27997 # values after options handling.
27998 ac_log="
27999 This file was extended by linux nfs-utils $as_me 1.2.1, which was
28000 generated by GNU Autoconf 2.63.  Invocation command line was
28001
28002   CONFIG_FILES    = $CONFIG_FILES
28003   CONFIG_HEADERS  = $CONFIG_HEADERS
28004   CONFIG_LINKS    = $CONFIG_LINKS
28005   CONFIG_COMMANDS = $CONFIG_COMMANDS
28006   $ $0 $@
28007
28008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28009 "
28010
28011 _ACEOF
28012
28013 case $ac_config_files in *"
28014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28015 esac
28016
28017 case $ac_config_headers in *"
28018 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28019 esac
28020
28021
28022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28023 # Files that config.status was made for.
28024 config_files="$ac_config_files"
28025 config_headers="$ac_config_headers"
28026 config_commands="$ac_config_commands"
28027
28028 _ACEOF
28029
28030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28031 ac_cs_usage="\
28032 \`$as_me' instantiates files from templates according to the
28033 current configuration.
28034
28035 Usage: $0 [OPTION]... [FILE]...
28036
28037   -h, --help       print this help, then exit
28038   -V, --version    print version number and configuration settings, then exit
28039   -q, --quiet, --silent
28040                    do not print progress messages
28041   -d, --debug      don't remove temporary files
28042       --recheck    update $as_me by reconfiguring in the same conditions
28043       --file=FILE[:TEMPLATE]
28044                    instantiate the configuration file FILE
28045       --header=FILE[:TEMPLATE]
28046                    instantiate the configuration header FILE
28047
28048 Configuration files:
28049 $config_files
28050
28051 Configuration headers:
28052 $config_headers
28053
28054 Configuration commands:
28055 $config_commands
28056
28057 Report bugs to <bug-autoconf@gnu.org>."
28058
28059 _ACEOF
28060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28061 ac_cs_version="\\
28062 linux nfs-utils config.status 1.2.1
28063 configured by $0, generated by GNU Autoconf 2.63,
28064   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28065
28066 Copyright (C) 2008 Free Software Foundation, Inc.
28067 This config.status script is free software; the Free Software Foundation
28068 gives unlimited permission to copy, distribute and modify it."
28069
28070 ac_pwd='$ac_pwd'
28071 srcdir='$srcdir'
28072 INSTALL='$INSTALL'
28073 MKDIR_P='$MKDIR_P'
28074 AWK='$AWK'
28075 test -n "\$AWK" || AWK=awk
28076 _ACEOF
28077
28078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28079 # The default lists apply if the user does not specify any file.
28080 ac_need_defaults=:
28081 while test $# != 0
28082 do
28083   case $1 in
28084   --*=*)
28085     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28086     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28087     ac_shift=:
28088     ;;
28089   *)
28090     ac_option=$1
28091     ac_optarg=$2
28092     ac_shift=shift
28093     ;;
28094   esac
28095
28096   case $ac_option in
28097   # Handling of the options.
28098   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28099     ac_cs_recheck=: ;;
28100   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28101     $as_echo "$ac_cs_version"; exit ;;
28102   --debug | --debu | --deb | --de | --d | -d )
28103     debug=: ;;
28104   --file | --fil | --fi | --f )
28105     $ac_shift
28106     case $ac_optarg in
28107     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28108     esac
28109     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
28110     ac_need_defaults=false;;
28111   --header | --heade | --head | --hea )
28112     $ac_shift
28113     case $ac_optarg in
28114     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28115     esac
28116     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
28117     ac_need_defaults=false;;
28118   --he | --h)
28119     # Conflict between --help and --header
28120     { $as_echo "$as_me: error: ambiguous option: $1
28121 Try \`$0 --help' for more information." >&2
28122    { (exit 1); exit 1; }; };;
28123   --help | --hel | -h )
28124     $as_echo "$ac_cs_usage"; exit ;;
28125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28126   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28127     ac_cs_silent=: ;;
28128
28129   # This is an error.
28130   -*) { $as_echo "$as_me: error: unrecognized option: $1
28131 Try \`$0 --help' for more information." >&2
28132    { (exit 1); exit 1; }; } ;;
28133
28134   *) ac_config_targets="$ac_config_targets $1"
28135      ac_need_defaults=false ;;
28136
28137   esac
28138   shift
28139 done
28140
28141 ac_configure_extra_args=
28142
28143 if $ac_cs_silent; then
28144   exec 6>/dev/null
28145   ac_configure_extra_args="$ac_configure_extra_args --silent"
28146 fi
28147
28148 _ACEOF
28149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28150 if \$ac_cs_recheck; then
28151   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28152   shift
28153   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28154   CONFIG_SHELL='$SHELL'
28155   export CONFIG_SHELL
28156   exec "\$@"
28157 fi
28158
28159 _ACEOF
28160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28161 exec 5>>config.log
28162 {
28163   echo
28164   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28165 ## Running $as_me. ##
28166 _ASBOX
28167   $as_echo "$ac_log"
28168 } >&5
28169
28170 _ACEOF
28171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28172 #
28173 # INIT-COMMANDS
28174 #
28175 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28176
28177
28178 # The HP-UX ksh and POSIX shell print the target directory to stdout
28179 # if CDPATH is set.
28180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28181
28182 sed_quote_subst='$sed_quote_subst'
28183 double_quote_subst='$double_quote_subst'
28184 delay_variable_subst='$delay_variable_subst'
28185 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28186 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28187 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28188 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28189 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28190 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28191 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28192 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28193 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28194 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28195 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28196 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28197 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28198 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28199 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28200 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28201 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28202 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28203 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28204 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28205 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28206 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28207 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28208 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28209 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28210 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28211 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28212 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28213 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28214 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28215 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28216 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28217 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28218 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28219 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28220 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28221 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28222 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28223 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28224 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28225 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28226 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28227 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28228 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28229 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
28230 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28231 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28232 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28233 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28234 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28235 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28236 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28237 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28238 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28239 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28240 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28241 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28242 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28243 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28244 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28245 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28246 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28247 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28248 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28249 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28250 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28251 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28252 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28253 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28254 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28255 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28256 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28257 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28258 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28259 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28260 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28261 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28262 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28263 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28264 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28265 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28266 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28267 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28268 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28269 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28270 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28271 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28272 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28273 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28274 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28275 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28276 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28277 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28278 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28279 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28280 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28281 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28282 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28283 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28284 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28285 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28286 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28287 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28288 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28289 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28290 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28291 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28292 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28293 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28294 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28295 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28296 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28297 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28298 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28299 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28300 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28301 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28302 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28303 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
28304 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28305 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28306 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28307 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28308 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28309 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28310 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28311 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28312 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28313 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28314 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28315 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28316 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28317 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28318 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28319 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28320 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28321 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28322 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28323 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28324 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28325 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28326 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28327 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28328 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28329 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28330 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28331 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28332 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28333 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28334 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28335 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28336 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28337 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28338 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28339 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28340 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28341 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28342 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28343 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28344 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28345 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28346 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28347 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28348 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28349 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28350 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28351 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28352 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28353 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28354 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28355 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28356
28357 LTCC='$LTCC'
28358 LTCFLAGS='$LTCFLAGS'
28359 compiler='$compiler_DEFAULT'
28360
28361 # Quote evaled strings.
28362 for var in SED \
28363 GREP \
28364 EGREP \
28365 FGREP \
28366 LD \
28367 NM \
28368 LN_S \
28369 lt_SP2NL \
28370 lt_NL2SP \
28371 reload_flag \
28372 OBJDUMP \
28373 deplibs_check_method \
28374 file_magic_cmd \
28375 AR \
28376 AR_FLAGS \
28377 STRIP \
28378 RANLIB \
28379 CC \
28380 CFLAGS \
28381 compiler \
28382 lt_cv_sys_global_symbol_pipe \
28383 lt_cv_sys_global_symbol_to_cdecl \
28384 lt_cv_sys_global_symbol_to_c_name_address \
28385 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28386 SHELL \
28387 ECHO \
28388 lt_prog_compiler_no_builtin_flag \
28389 lt_prog_compiler_wl \
28390 lt_prog_compiler_pic \
28391 lt_prog_compiler_static \
28392 lt_cv_prog_compiler_c_o \
28393 need_locks \
28394 DSYMUTIL \
28395 NMEDIT \
28396 LIPO \
28397 OTOOL \
28398 OTOOL64 \
28399 shrext_cmds \
28400 export_dynamic_flag_spec \
28401 whole_archive_flag_spec \
28402 compiler_needs_object \
28403 with_gnu_ld \
28404 allow_undefined_flag \
28405 no_undefined_flag \
28406 hardcode_libdir_flag_spec \
28407 hardcode_libdir_flag_spec_ld \
28408 hardcode_libdir_separator \
28409 fix_srcfile_path \
28410 exclude_expsyms \
28411 include_expsyms \
28412 file_list_spec \
28413 variables_saved_for_relink \
28414 libname_spec \
28415 library_names_spec \
28416 soname_spec \
28417 finish_eval \
28418 old_striplib \
28419 striplib \
28420 compiler_lib_search_dirs \
28421 predep_objects \
28422 postdep_objects \
28423 predeps \
28424 postdeps \
28425 compiler_lib_search_path \
28426 LD_CXX \
28427 compiler_CXX \
28428 lt_prog_compiler_no_builtin_flag_CXX \
28429 lt_prog_compiler_wl_CXX \
28430 lt_prog_compiler_pic_CXX \
28431 lt_prog_compiler_static_CXX \
28432 lt_cv_prog_compiler_c_o_CXX \
28433 export_dynamic_flag_spec_CXX \
28434 whole_archive_flag_spec_CXX \
28435 compiler_needs_object_CXX \
28436 with_gnu_ld_CXX \
28437 allow_undefined_flag_CXX \
28438 no_undefined_flag_CXX \
28439 hardcode_libdir_flag_spec_CXX \
28440 hardcode_libdir_flag_spec_ld_CXX \
28441 hardcode_libdir_separator_CXX \
28442 fix_srcfile_path_CXX \
28443 exclude_expsyms_CXX \
28444 include_expsyms_CXX \
28445 file_list_spec_CXX \
28446 compiler_lib_search_dirs_CXX \
28447 predep_objects_CXX \
28448 postdep_objects_CXX \
28449 predeps_CXX \
28450 postdeps_CXX \
28451 compiler_lib_search_path_CXX; do
28452     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28453     *[\\\\\\\`\\"\\\$]*)
28454       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28455       ;;
28456     *)
28457       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28458       ;;
28459     esac
28460 done
28461
28462 # Double-quote double-evaled strings.
28463 for var in reload_cmds \
28464 old_postinstall_cmds \
28465 old_postuninstall_cmds \
28466 old_archive_cmds \
28467 extract_expsyms_cmds \
28468 old_archive_from_new_cmds \
28469 old_archive_from_expsyms_cmds \
28470 archive_cmds \
28471 archive_expsym_cmds \
28472 module_cmds \
28473 module_expsym_cmds \
28474 export_symbols_cmds \
28475 prelink_cmds \
28476 postinstall_cmds \
28477 postuninstall_cmds \
28478 finish_cmds \
28479 sys_lib_search_path_spec \
28480 sys_lib_dlsearch_path_spec \
28481 old_archive_cmds_CXX \
28482 old_archive_from_new_cmds_CXX \
28483 old_archive_from_expsyms_cmds_CXX \
28484 archive_cmds_CXX \
28485 archive_expsym_cmds_CXX \
28486 module_cmds_CXX \
28487 module_expsym_cmds_CXX \
28488 export_symbols_cmds_CXX \
28489 prelink_cmds_CXX; do
28490     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28491     *[\\\\\\\`\\"\\\$]*)
28492       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28493       ;;
28494     *)
28495       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28496       ;;
28497     esac
28498 done
28499
28500 # Fix-up fallback echo if it was mangled by the above quoting rules.
28501 case \$lt_ECHO in
28502 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28503   ;;
28504 esac
28505
28506 ac_aux_dir='$ac_aux_dir'
28507 xsi_shell='$xsi_shell'
28508 lt_shell_append='$lt_shell_append'
28509
28510 # See if we are running on zsh, and set the options which allow our
28511 # commands through without removal of \ escapes INIT.
28512 if test -n "\${ZSH_VERSION+set}" ; then
28513    setopt NO_GLOB_SUBST
28514 fi
28515
28516
28517     PACKAGE='$PACKAGE'
28518     VERSION='$VERSION'
28519     TIMESTAMP='$TIMESTAMP'
28520     RM='$RM'
28521     ofile='$ofile'
28522
28523
28524
28525
28526
28527
28528 _ACEOF
28529
28530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28531
28532 # Handling of arguments.
28533 for ac_config_target in $ac_config_targets
28534 do
28535   case $ac_config_target in
28536     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28537     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28538     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28539     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28540     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28541     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28542     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28543     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28544     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28545     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28546     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28547     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28548     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28549     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28550     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28551     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28552     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28553     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28554     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28555     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28556     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28557     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28558     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28559     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
28560     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28561     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28562     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28563     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28564     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28565
28566   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28567 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28568    { (exit 1); exit 1; }; };;
28569   esac
28570 done
28571
28572
28573 # If the user did not use the arguments to specify the items to instantiate,
28574 # then the envvar interface is used.  Set only those that are not.
28575 # We use the long form for the default assignment because of an extremely
28576 # bizarre bug on SunOS 4.1.3.
28577 if $ac_need_defaults; then
28578   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28579   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28580   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28581 fi
28582
28583 # Have a temporary directory for convenience.  Make it in the build tree
28584 # simply because there is no reason against having it here, and in addition,
28585 # creating and moving files from /tmp can sometimes cause problems.
28586 # Hook for its removal unless debugging.
28587 # Note that there is a small window in which the directory will not be cleaned:
28588 # after its creation but before its name has been assigned to `$tmp'.
28589 $debug ||
28590 {
28591   tmp=
28592   trap 'exit_status=$?
28593   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28594 ' 0
28595   trap '{ (exit 1); exit 1; }' 1 2 13 15
28596 }
28597 # Create a (secure) tmp directory for tmp files.
28598
28599 {
28600   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28601   test -n "$tmp" && test -d "$tmp"
28602 }  ||
28603 {
28604   tmp=./conf$$-$RANDOM
28605   (umask 077 && mkdir "$tmp")
28606 } ||
28607 {
28608    $as_echo "$as_me: cannot create a temporary directory in ." >&2
28609    { (exit 1); exit 1; }
28610 }
28611
28612 # Set up the scripts for CONFIG_FILES section.
28613 # No need to generate them if there are no CONFIG_FILES.
28614 # This happens for instance with `./config.status config.h'.
28615 if test -n "$CONFIG_FILES"; then
28616
28617
28618 ac_cr='\r'
28619 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28620 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28621   ac_cs_awk_cr='\\r'
28622 else
28623   ac_cs_awk_cr=$ac_cr
28624 fi
28625
28626 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28627 _ACEOF
28628
28629
28630 {
28631   echo "cat >conf$$subs.awk <<_ACEOF" &&
28632   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28633   echo "_ACEOF"
28634 } >conf$$subs.sh ||
28635   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28636 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28637    { (exit 1); exit 1; }; }
28638 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28639 ac_delim='%!_!# '
28640 for ac_last_try in false false false false false :; do
28641   . ./conf$$subs.sh ||
28642     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28643 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28644    { (exit 1); exit 1; }; }
28645
28646   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28647   if test $ac_delim_n = $ac_delim_num; then
28648     break
28649   elif $ac_last_try; then
28650     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28651 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28652    { (exit 1); exit 1; }; }
28653   else
28654     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28655   fi
28656 done
28657 rm -f conf$$subs.sh
28658
28659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28660 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28661 _ACEOF
28662 sed -n '
28663 h
28664 s/^/S["/; s/!.*/"]=/
28665 p
28666 g
28667 s/^[^!]*!//
28668 :repl
28669 t repl
28670 s/'"$ac_delim"'$//
28671 t delim
28672 :nl
28673 h
28674 s/\(.\{148\}\).*/\1/
28675 t more1
28676 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28677 p
28678 n
28679 b repl
28680 :more1
28681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28682 p
28683 g
28684 s/.\{148\}//
28685 t nl
28686 :delim
28687 h
28688 s/\(.\{148\}\).*/\1/
28689 t more2
28690 s/["\\]/\\&/g; s/^/"/; s/$/"/
28691 p
28692 b
28693 :more2
28694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28695 p
28696 g
28697 s/.\{148\}//
28698 t delim
28699 ' <conf$$subs.awk | sed '
28700 /^[^""]/{
28701   N
28702   s/\n//
28703 }
28704 ' >>$CONFIG_STATUS || ac_write_fail=1
28705 rm -f conf$$subs.awk
28706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28707 _ACAWK
28708 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28709   for (key in S) S_is_set[key] = 1
28710   FS = "\a"
28711
28712 }
28713 {
28714   line = $ 0
28715   nfields = split(line, field, "@")
28716   substed = 0
28717   len = length(field[1])
28718   for (i = 2; i < nfields; i++) {
28719     key = field[i]
28720     keylen = length(key)
28721     if (S_is_set[key]) {
28722       value = S[key]
28723       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28724       len += length(value) + length(field[++i])
28725       substed = 1
28726     } else
28727       len += 1 + keylen
28728   }
28729
28730   print line
28731 }
28732
28733 _ACAWK
28734 _ACEOF
28735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28736 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28737   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28738 else
28739   cat
28740 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28741   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
28742 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
28743    { (exit 1); exit 1; }; }
28744 _ACEOF
28745
28746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28748 # trailing colons and then remove the whole line if VPATH becomes empty
28749 # (actually we leave an empty line to preserve line numbers).
28750 if test "x$srcdir" = x.; then
28751   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28752 s/:*\$(srcdir):*/:/
28753 s/:*\${srcdir}:*/:/
28754 s/:*@srcdir@:*/:/
28755 s/^\([^=]*=[     ]*\):*/\1/
28756 s/:*$//
28757 s/^[^=]*=[       ]*$//
28758 }'
28759 fi
28760
28761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28762 fi # test -n "$CONFIG_FILES"
28763
28764 # Set up the scripts for CONFIG_HEADERS section.
28765 # No need to generate them if there are no CONFIG_HEADERS.
28766 # This happens for instance with `./config.status Makefile'.
28767 if test -n "$CONFIG_HEADERS"; then
28768 cat >"$tmp/defines.awk" <<\_ACAWK ||
28769 BEGIN {
28770 _ACEOF
28771
28772 # Transform confdefs.h into an awk script `defines.awk', embedded as
28773 # here-document in config.status, that substitutes the proper values into
28774 # config.h.in to produce config.h.
28775
28776 # Create a delimiter string that does not exist in confdefs.h, to ease
28777 # handling of long lines.
28778 ac_delim='%!_!# '
28779 for ac_last_try in false false :; do
28780   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28781   if test -z "$ac_t"; then
28782     break
28783   elif $ac_last_try; then
28784     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
28785 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
28786    { (exit 1); exit 1; }; }
28787   else
28788     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28789   fi
28790 done
28791
28792 # For the awk script, D is an array of macro values keyed by name,
28793 # likewise P contains macro parameters if any.  Preserve backslash
28794 # newline sequences.
28795
28796 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28797 sed -n '
28798 s/.\{148\}/&'"$ac_delim"'/g
28799 t rset
28800 :rset
28801 s/^[     ]*#[    ]*define[       ][      ]*/ /
28802 t def
28803 d
28804 :def
28805 s/\\$//
28806 t bsnl
28807 s/["\\]/\\&/g
28808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28809 D["\1"]=" \3"/p
28810 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28811 d
28812 :bsnl
28813 s/["\\]/\\&/g
28814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28815 D["\1"]=" \3\\\\\\n"\\/p
28816 t cont
28817 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28818 t cont
28819 d
28820 :cont
28821 n
28822 s/.\{148\}/&'"$ac_delim"'/g
28823 t clear
28824 :clear
28825 s/\\$//
28826 t bsnlc
28827 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28828 d
28829 :bsnlc
28830 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28831 b cont
28832 ' <confdefs.h | sed '
28833 s/'"$ac_delim"'/"\\\
28834 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28835
28836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28837   for (key in D) D_is_set[key] = 1
28838   FS = "\a"
28839 }
28840 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28841   line = \$ 0
28842   split(line, arg, " ")
28843   if (arg[1] == "#") {
28844     defundef = arg[2]
28845     mac1 = arg[3]
28846   } else {
28847     defundef = substr(arg[1], 2)
28848     mac1 = arg[2]
28849   }
28850   split(mac1, mac2, "(") #)
28851   macro = mac2[1]
28852   prefix = substr(line, 1, index(line, defundef) - 1)
28853   if (D_is_set[macro]) {
28854     # Preserve the white space surrounding the "#".
28855     print prefix "define", macro P[macro] D[macro]
28856     next
28857   } else {
28858     # Replace #undef with comments.  This is necessary, for example,
28859     # in the case of _POSIX_SOURCE, which is predefined and required
28860     # on some systems where configure will not decide to define it.
28861     if (defundef == "undef") {
28862       print "/*", prefix defundef, macro, "*/"
28863       next
28864     }
28865   }
28866 }
28867 { print }
28868 _ACAWK
28869 _ACEOF
28870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28871   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
28872 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
28873    { (exit 1); exit 1; }; }
28874 fi # test -n "$CONFIG_HEADERS"
28875
28876
28877 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28878 shift
28879 for ac_tag
28880 do
28881   case $ac_tag in
28882   :[FHLC]) ac_mode=$ac_tag; continue;;
28883   esac
28884   case $ac_mode$ac_tag in
28885   :[FHL]*:*);;
28886   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
28887 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
28888    { (exit 1); exit 1; }; };;
28889   :[FH]-) ac_tag=-:-;;
28890   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28891   esac
28892   ac_save_IFS=$IFS
28893   IFS=:
28894   set x $ac_tag
28895   IFS=$ac_save_IFS
28896   shift
28897   ac_file=$1
28898   shift
28899
28900   case $ac_mode in
28901   :L) ac_source=$1;;
28902   :[FH])
28903     ac_file_inputs=
28904     for ac_f
28905     do
28906       case $ac_f in
28907       -) ac_f="$tmp/stdin";;
28908       *) # Look for the file first in the build tree, then in the source tree
28909          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28910          # because $ac_f cannot contain `:'.
28911          test -f "$ac_f" ||
28912            case $ac_f in
28913            [\\/$]*) false;;
28914            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28915            esac ||
28916            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28917 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28918    { (exit 1); exit 1; }; };;
28919       esac
28920       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28921       ac_file_inputs="$ac_file_inputs '$ac_f'"
28922     done
28923
28924     # Let's still pretend it is `configure' which instantiates (i.e., don't
28925     # use $as_me), people would be surprised to read:
28926     #    /* config.h.  Generated by config.status.  */
28927     configure_input='Generated from '`
28928           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28929         `' by configure.'
28930     if test x"$ac_file" != x-; then
28931       configure_input="$ac_file.  $configure_input"
28932       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
28933 $as_echo "$as_me: creating $ac_file" >&6;}
28934     fi
28935     # Neutralize special characters interpreted by sed in replacement strings.
28936     case $configure_input in #(
28937     *\&* | *\|* | *\\* )
28938        ac_sed_conf_input=`$as_echo "$configure_input" |
28939        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28940     *) ac_sed_conf_input=$configure_input;;
28941     esac
28942
28943     case $ac_tag in
28944     *:-:* | *:-) cat >"$tmp/stdin" \
28945       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28947    { (exit 1); exit 1; }; } ;;
28948     esac
28949     ;;
28950   esac
28951
28952   ac_dir=`$as_dirname -- "$ac_file" ||
28953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28954          X"$ac_file" : 'X\(//\)[^/]' \| \
28955          X"$ac_file" : 'X\(//\)$' \| \
28956          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28957 $as_echo X"$ac_file" |
28958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28959             s//\1/
28960             q
28961           }
28962           /^X\(\/\/\)[^/].*/{
28963             s//\1/
28964             q
28965           }
28966           /^X\(\/\/\)$/{
28967             s//\1/
28968             q
28969           }
28970           /^X\(\/\).*/{
28971             s//\1/
28972             q
28973           }
28974           s/.*/./; q'`
28975   { as_dir="$ac_dir"
28976   case $as_dir in #(
28977   -*) as_dir=./$as_dir;;
28978   esac
28979   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28980     as_dirs=
28981     while :; do
28982       case $as_dir in #(
28983       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28984       *) as_qdir=$as_dir;;
28985       esac
28986       as_dirs="'$as_qdir' $as_dirs"
28987       as_dir=`$as_dirname -- "$as_dir" ||
28988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28989          X"$as_dir" : 'X\(//\)[^/]' \| \
28990          X"$as_dir" : 'X\(//\)$' \| \
28991          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28992 $as_echo X"$as_dir" |
28993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28994             s//\1/
28995             q
28996           }
28997           /^X\(\/\/\)[^/].*/{
28998             s//\1/
28999             q
29000           }
29001           /^X\(\/\/\)$/{
29002             s//\1/
29003             q
29004           }
29005           /^X\(\/\).*/{
29006             s//\1/
29007             q
29008           }
29009           s/.*/./; q'`
29010       test -d "$as_dir" && break
29011     done
29012     test -z "$as_dirs" || eval "mkdir $as_dirs"
29013   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29014 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29015    { (exit 1); exit 1; }; }; }
29016   ac_builddir=.
29017
29018 case "$ac_dir" in
29019 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29020 *)
29021   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29022   # A ".." for each directory in $ac_dir_suffix.
29023   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29024   case $ac_top_builddir_sub in
29025   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29026   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29027   esac ;;
29028 esac
29029 ac_abs_top_builddir=$ac_pwd
29030 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29031 # for backward compatibility:
29032 ac_top_builddir=$ac_top_build_prefix
29033
29034 case $srcdir in
29035   .)  # We are building in place.
29036     ac_srcdir=.
29037     ac_top_srcdir=$ac_top_builddir_sub
29038     ac_abs_top_srcdir=$ac_pwd ;;
29039   [\\/]* | ?:[\\/]* )  # Absolute name.
29040     ac_srcdir=$srcdir$ac_dir_suffix;
29041     ac_top_srcdir=$srcdir
29042     ac_abs_top_srcdir=$srcdir ;;
29043   *) # Relative name.
29044     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29045     ac_top_srcdir=$ac_top_build_prefix$srcdir
29046     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29047 esac
29048 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29049
29050
29051   case $ac_mode in
29052   :F)
29053   #
29054   # CONFIG_FILE
29055   #
29056
29057   case $INSTALL in
29058   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29059   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29060   esac
29061   ac_MKDIR_P=$MKDIR_P
29062   case $MKDIR_P in
29063   [\\/$]* | ?:[\\/]* ) ;;
29064   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29065   esac
29066 _ACEOF
29067
29068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29069 # If the template does not know about datarootdir, expand it.
29070 # FIXME: This hack should be removed a few years after 2.60.
29071 ac_datarootdir_hack=; ac_datarootdir_seen=
29072
29073 ac_sed_dataroot='
29074 /datarootdir/ {
29075   p
29076   q
29077 }
29078 /@datadir@/p
29079 /@docdir@/p
29080 /@infodir@/p
29081 /@localedir@/p
29082 /@mandir@/p
29083 '
29084 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29085 *datarootdir*) ac_datarootdir_seen=yes;;
29086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29087   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29088 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29089 _ACEOF
29090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29091   ac_datarootdir_hack='
29092   s&@datadir@&$datadir&g
29093   s&@docdir@&$docdir&g
29094   s&@infodir@&$infodir&g
29095   s&@localedir@&$localedir&g
29096   s&@mandir@&$mandir&g
29097     s&\\\${datarootdir}&$datarootdir&g' ;;
29098 esac
29099 _ACEOF
29100
29101 # Neutralize VPATH when `$srcdir' = `.'.
29102 # Shell code in configure.ac might set extrasub.
29103 # FIXME: do we really want to maintain this feature?
29104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29105 ac_sed_extra="$ac_vpsub
29106 $extrasub
29107 _ACEOF
29108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29109 :t
29110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29111 s|@configure_input@|$ac_sed_conf_input|;t t
29112 s&@top_builddir@&$ac_top_builddir_sub&;t t
29113 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29114 s&@srcdir@&$ac_srcdir&;t t
29115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29116 s&@top_srcdir@&$ac_top_srcdir&;t t
29117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29118 s&@builddir@&$ac_builddir&;t t
29119 s&@abs_builddir@&$ac_abs_builddir&;t t
29120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29121 s&@INSTALL@&$ac_INSTALL&;t t
29122 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29123 $ac_datarootdir_hack
29124 "
29125 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29126   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29127 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29128    { (exit 1); exit 1; }; }
29129
29130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29131   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29132   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29133   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29134 which seems to be undefined.  Please make sure it is defined." >&5
29135 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29136 which seems to be undefined.  Please make sure it is defined." >&2;}
29137
29138   rm -f "$tmp/stdin"
29139   case $ac_file in
29140   -) cat "$tmp/out" && rm -f "$tmp/out";;
29141   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29142   esac \
29143   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29144 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29145    { (exit 1); exit 1; }; }
29146  ;;
29147   :H)
29148   #
29149   # CONFIG_HEADER
29150   #
29151   if test x"$ac_file" != x-; then
29152     {
29153       $as_echo "/* $configure_input  */" \
29154       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29155     } >"$tmp/config.h" \
29156       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29157 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29158    { (exit 1); exit 1; }; }
29159     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29160       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29161 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29162     else
29163       rm -f "$ac_file"
29164       mv "$tmp/config.h" "$ac_file" \
29165         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29166 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29167    { (exit 1); exit 1; }; }
29168     fi
29169   else
29170     $as_echo "/* $configure_input  */" \
29171       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29172       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29173 $as_echo "$as_me: error: could not create -" >&2;}
29174    { (exit 1); exit 1; }; }
29175   fi
29176 # Compute "$ac_file"'s index in $config_headers.
29177 _am_arg="$ac_file"
29178 _am_stamp_count=1
29179 for _am_header in $config_headers :; do
29180   case $_am_header in
29181     $_am_arg | $_am_arg:* )
29182       break ;;
29183     * )
29184       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29185   esac
29186 done
29187 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29188 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29189          X"$_am_arg" : 'X\(//\)[^/]' \| \
29190          X"$_am_arg" : 'X\(//\)$' \| \
29191          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29192 $as_echo X"$_am_arg" |
29193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29194             s//\1/
29195             q
29196           }
29197           /^X\(\/\/\)[^/].*/{
29198             s//\1/
29199             q
29200           }
29201           /^X\(\/\/\)$/{
29202             s//\1/
29203             q
29204           }
29205           /^X\(\/\).*/{
29206             s//\1/
29207             q
29208           }
29209           s/.*/./; q'`/stamp-h$_am_stamp_count
29210  ;;
29211
29212   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29213 $as_echo "$as_me: executing $ac_file commands" >&6;}
29214  ;;
29215   esac
29216
29217
29218   case $ac_file$ac_mode in
29219     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29220   # Autoconf 2.62 quotes --file arguments for eval, but not when files
29221   # are listed without --file.  Let's play safe and only enable the eval
29222   # if we detect the quoting.
29223   case $CONFIG_FILES in
29224   *\'*) eval set x "$CONFIG_FILES" ;;
29225   *)   set x $CONFIG_FILES ;;
29226   esac
29227   shift
29228   for mf
29229   do
29230     # Strip MF so we end up with the name of the file.
29231     mf=`echo "$mf" | sed -e 's/:.*$//'`
29232     # Check whether this is an Automake generated Makefile or not.
29233     # We used to match only the files named `Makefile.in', but
29234     # some people rename them; so instead we look at the file content.
29235     # Grep'ing the first line is not enough: some people post-process
29236     # each Makefile.in and add a new line on top of each file to say so.
29237     # Grep'ing the whole file is not good either: AIX grep has a line
29238     # limit of 2048, but all sed's we know have understand at least 4000.
29239     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29240       dirpart=`$as_dirname -- "$mf" ||
29241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29242          X"$mf" : 'X\(//\)[^/]' \| \
29243          X"$mf" : 'X\(//\)$' \| \
29244          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29245 $as_echo X"$mf" |
29246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29247             s//\1/
29248             q
29249           }
29250           /^X\(\/\/\)[^/].*/{
29251             s//\1/
29252             q
29253           }
29254           /^X\(\/\/\)$/{
29255             s//\1/
29256             q
29257           }
29258           /^X\(\/\).*/{
29259             s//\1/
29260             q
29261           }
29262           s/.*/./; q'`
29263     else
29264       continue
29265     fi
29266     # Extract the definition of DEPDIR, am__include, and am__quote
29267     # from the Makefile without running `make'.
29268     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29269     test -z "$DEPDIR" && continue
29270     am__include=`sed -n 's/^am__include = //p' < "$mf"`
29271     test -z "am__include" && continue
29272     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29273     # When using ansi2knr, U may be empty or an underscore; expand it
29274     U=`sed -n 's/^U = //p' < "$mf"`
29275     # Find all dependency output files, they are included files with
29276     # $(DEPDIR) in their names.  We invoke sed twice because it is the
29277     # simplest approach to changing $(DEPDIR) to its actual value in the
29278     # expansion.
29279     for file in `sed -n "
29280       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29281          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29282       # Make sure the directory exists.
29283       test -f "$dirpart/$file" && continue
29284       fdir=`$as_dirname -- "$file" ||
29285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29286          X"$file" : 'X\(//\)[^/]' \| \
29287          X"$file" : 'X\(//\)$' \| \
29288          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29289 $as_echo X"$file" |
29290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29291             s//\1/
29292             q
29293           }
29294           /^X\(\/\/\)[^/].*/{
29295             s//\1/
29296             q
29297           }
29298           /^X\(\/\/\)$/{
29299             s//\1/
29300             q
29301           }
29302           /^X\(\/\).*/{
29303             s//\1/
29304             q
29305           }
29306           s/.*/./; q'`
29307       { as_dir=$dirpart/$fdir
29308   case $as_dir in #(
29309   -*) as_dir=./$as_dir;;
29310   esac
29311   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29312     as_dirs=
29313     while :; do
29314       case $as_dir in #(
29315       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29316       *) as_qdir=$as_dir;;
29317       esac
29318       as_dirs="'$as_qdir' $as_dirs"
29319       as_dir=`$as_dirname -- "$as_dir" ||
29320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29321          X"$as_dir" : 'X\(//\)[^/]' \| \
29322          X"$as_dir" : 'X\(//\)$' \| \
29323          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29324 $as_echo X"$as_dir" |
29325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29326             s//\1/
29327             q
29328           }
29329           /^X\(\/\/\)[^/].*/{
29330             s//\1/
29331             q
29332           }
29333           /^X\(\/\/\)$/{
29334             s//\1/
29335             q
29336           }
29337           /^X\(\/\).*/{
29338             s//\1/
29339             q
29340           }
29341           s/.*/./; q'`
29342       test -d "$as_dir" && break
29343     done
29344     test -z "$as_dirs" || eval "mkdir $as_dirs"
29345   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29346 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29347    { (exit 1); exit 1; }; }; }
29348       # echo "creating $dirpart/$file"
29349       echo '# dummy' > "$dirpart/$file"
29350     done
29351   done
29352 }
29353  ;;
29354     "libtool":C)
29355
29356     # See if we are running on zsh, and set the options which allow our
29357     # commands through without removal of \ escapes.
29358     if test -n "${ZSH_VERSION+set}" ; then
29359       setopt NO_GLOB_SUBST
29360     fi
29361
29362     cfgfile="${ofile}T"
29363     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29364     $RM "$cfgfile"
29365
29366     cat <<_LT_EOF >> "$cfgfile"
29367 #! $SHELL
29368
29369 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29370 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29372 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29373 #
29374 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29375 #                 2006, 2007, 2008 Free Software Foundation, Inc.
29376 #   Written by Gordon Matzigkeit, 1996
29377 #
29378 #   This file is part of GNU Libtool.
29379 #
29380 # GNU Libtool is free software; you can redistribute it and/or
29381 # modify it under the terms of the GNU General Public License as
29382 # published by the Free Software Foundation; either version 2 of
29383 # the License, or (at your option) any later version.
29384 #
29385 # As a special exception to the GNU General Public License,
29386 # if you distribute this file as part of a program or library that
29387 # is built using GNU Libtool, you may include this file under the
29388 # same distribution terms that you use for the rest of that program.
29389 #
29390 # GNU Libtool is distributed in the hope that it will be useful,
29391 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29392 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29393 # GNU General Public License for more details.
29394 #
29395 # You should have received a copy of the GNU General Public License
29396 # along with GNU Libtool; see the file COPYING.  If not, a copy
29397 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29398 # obtained by writing to the Free Software Foundation, Inc.,
29399 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29400
29401
29402 # The names of the tagged configurations supported by this script.
29403 available_tags="CXX "
29404
29405 # ### BEGIN LIBTOOL CONFIG
29406
29407 # Which release of libtool.m4 was used?
29408 macro_version=$macro_version
29409 macro_revision=$macro_revision
29410
29411 # Whether or not to build shared libraries.
29412 build_libtool_libs=$enable_shared
29413
29414 # Whether or not to build static libraries.
29415 build_old_libs=$enable_static
29416
29417 # What type of objects to build.
29418 pic_mode=$pic_mode
29419
29420 # Whether or not to optimize for fast installation.
29421 fast_install=$enable_fast_install
29422
29423 # The host system.
29424 host_alias=$host_alias
29425 host=$host
29426 host_os=$host_os
29427
29428 # The build system.
29429 build_alias=$build_alias
29430 build=$build
29431 build_os=$build_os
29432
29433 # A sed program that does not truncate output.
29434 SED=$lt_SED
29435
29436 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29437 Xsed="\$SED -e 1s/^X//"
29438
29439 # A grep program that handles long lines.
29440 GREP=$lt_GREP
29441
29442 # An ERE matcher.
29443 EGREP=$lt_EGREP
29444
29445 # A literal string matcher.
29446 FGREP=$lt_FGREP
29447
29448 # A BSD- or MS-compatible name lister.
29449 NM=$lt_NM
29450
29451 # Whether we need soft or hard links.
29452 LN_S=$lt_LN_S
29453
29454 # What is the maximum length of a command?
29455 max_cmd_len=$max_cmd_len
29456
29457 # Object file suffix (normally "o").
29458 objext=$ac_objext
29459
29460 # Executable file suffix (normally "").
29461 exeext=$exeext
29462
29463 # whether the shell understands "unset".
29464 lt_unset=$lt_unset
29465
29466 # turn spaces into newlines.
29467 SP2NL=$lt_lt_SP2NL
29468
29469 # turn newlines into spaces.
29470 NL2SP=$lt_lt_NL2SP
29471
29472 # How to create reloadable object files.
29473 reload_flag=$lt_reload_flag
29474 reload_cmds=$lt_reload_cmds
29475
29476 # An object symbol dumper.
29477 OBJDUMP=$lt_OBJDUMP
29478
29479 # Method to check whether dependent libraries are shared objects.
29480 deplibs_check_method=$lt_deplibs_check_method
29481
29482 # Command to use when deplibs_check_method == "file_magic".
29483 file_magic_cmd=$lt_file_magic_cmd
29484
29485 # The archiver.
29486 AR=$lt_AR
29487 AR_FLAGS=$lt_AR_FLAGS
29488
29489 # A symbol stripping program.
29490 STRIP=$lt_STRIP
29491
29492 # Commands used to install an old-style archive.
29493 RANLIB=$lt_RANLIB
29494 old_postinstall_cmds=$lt_old_postinstall_cmds
29495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29496
29497 # A C compiler.
29498 LTCC=$lt_CC
29499
29500 # LTCC compiler flags.
29501 LTCFLAGS=$lt_CFLAGS
29502
29503 # Take the output of nm and produce a listing of raw symbols and C names.
29504 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29505
29506 # Transform the output of nm in a proper C declaration.
29507 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29508
29509 # Transform the output of nm in a C name address pair.
29510 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29511
29512 # Transform the output of nm in a C name address pair when lib prefix is needed.
29513 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29514
29515 # The name of the directory that contains temporary libtool files.
29516 objdir=$objdir
29517
29518 # Shell to use when invoking shell scripts.
29519 SHELL=$lt_SHELL
29520
29521 # An echo program that does not interpret backslashes.
29522 ECHO=$lt_ECHO
29523
29524 # Used to examine libraries when file_magic_cmd begins with "file".
29525 MAGIC_CMD=$MAGIC_CMD
29526
29527 # Must we lock files when doing compilation?
29528 need_locks=$lt_need_locks
29529
29530 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29531 DSYMUTIL=$lt_DSYMUTIL
29532
29533 # Tool to change global to local symbols on Mac OS X.
29534 NMEDIT=$lt_NMEDIT
29535
29536 # Tool to manipulate fat objects and archives on Mac OS X.
29537 LIPO=$lt_LIPO
29538
29539 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29540 OTOOL=$lt_OTOOL
29541
29542 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29543 OTOOL64=$lt_OTOOL64
29544
29545 # Old archive suffix (normally "a").
29546 libext=$libext
29547
29548 # Shared library suffix (normally ".so").
29549 shrext_cmds=$lt_shrext_cmds
29550
29551 # The commands to extract the exported symbol list from a shared archive.
29552 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29553
29554 # Variables whose values should be saved in libtool wrapper scripts and
29555 # restored at link time.
29556 variables_saved_for_relink=$lt_variables_saved_for_relink
29557
29558 # Do we need the "lib" prefix for modules?
29559 need_lib_prefix=$need_lib_prefix
29560
29561 # Do we need a version for libraries?
29562 need_version=$need_version
29563
29564 # Library versioning type.
29565 version_type=$version_type
29566
29567 # Shared library runtime path variable.
29568 runpath_var=$runpath_var
29569
29570 # Shared library path variable.
29571 shlibpath_var=$shlibpath_var
29572
29573 # Is shlibpath searched before the hard-coded library search path?
29574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29575
29576 # Format of library name prefix.
29577 libname_spec=$lt_libname_spec
29578
29579 # List of archive names.  First name is the real one, the rest are links.
29580 # The last name is the one that the linker finds with -lNAME
29581 library_names_spec=$lt_library_names_spec
29582
29583 # The coded name of the library, if different from the real name.
29584 soname_spec=$lt_soname_spec
29585
29586 # Command to use after installation of a shared archive.
29587 postinstall_cmds=$lt_postinstall_cmds
29588
29589 # Command to use after uninstallation of a shared archive.
29590 postuninstall_cmds=$lt_postuninstall_cmds
29591
29592 # Commands used to finish a libtool library installation in a directory.
29593 finish_cmds=$lt_finish_cmds
29594
29595 # As "finish_cmds", except a single script fragment to be evaled but
29596 # not shown.
29597 finish_eval=$lt_finish_eval
29598
29599 # Whether we should hardcode library paths into libraries.
29600 hardcode_into_libs=$hardcode_into_libs
29601
29602 # Compile-time system search path for libraries.
29603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29604
29605 # Run-time system search path for libraries.
29606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29607
29608 # Whether dlopen is supported.
29609 dlopen_support=$enable_dlopen
29610
29611 # Whether dlopen of programs is supported.
29612 dlopen_self=$enable_dlopen_self
29613
29614 # Whether dlopen of statically linked programs is supported.
29615 dlopen_self_static=$enable_dlopen_self_static
29616
29617 # Commands to strip libraries.
29618 old_striplib=$lt_old_striplib
29619 striplib=$lt_striplib
29620
29621
29622 # The linker used to build libraries.
29623 LD=$lt_LD
29624
29625 # Commands used to build an old-style archive.
29626 old_archive_cmds=$lt_old_archive_cmds
29627
29628 # A language specific compiler.
29629 CC=$lt_compiler
29630
29631 # Is the compiler the GNU compiler?
29632 with_gcc=$GCC
29633
29634 # Compiler flag to turn off builtin functions.
29635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29636
29637 # How to pass a linker flag through the compiler.
29638 wl=$lt_lt_prog_compiler_wl
29639
29640 # Additional compiler flags for building library objects.
29641 pic_flag=$lt_lt_prog_compiler_pic
29642
29643 # Compiler flag to prevent dynamic linking.
29644 link_static_flag=$lt_lt_prog_compiler_static
29645
29646 # Does compiler simultaneously support -c and -o options?
29647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29648
29649 # Whether or not to add -lc for building shared libraries.
29650 build_libtool_need_lc=$archive_cmds_need_lc
29651
29652 # Whether or not to disallow shared libs when runtime libs are static.
29653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29654
29655 # Compiler flag to allow reflexive dlopens.
29656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29657
29658 # Compiler flag to generate shared objects directly from archives.
29659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29660
29661 # Whether the compiler copes with passing no objects directly.
29662 compiler_needs_object=$lt_compiler_needs_object
29663
29664 # Create an old-style archive from a shared archive.
29665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29666
29667 # Create a temporary old-style archive to link instead of a shared archive.
29668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29669
29670 # Commands used to build a shared archive.
29671 archive_cmds=$lt_archive_cmds
29672 archive_expsym_cmds=$lt_archive_expsym_cmds
29673
29674 # Commands used to build a loadable module if different from building
29675 # a shared archive.
29676 module_cmds=$lt_module_cmds
29677 module_expsym_cmds=$lt_module_expsym_cmds
29678
29679 # Whether we are building with GNU ld or not.
29680 with_gnu_ld=$lt_with_gnu_ld
29681
29682 # Flag that allows shared libraries with undefined symbols to be built.
29683 allow_undefined_flag=$lt_allow_undefined_flag
29684
29685 # Flag that enforces no undefined symbols.
29686 no_undefined_flag=$lt_no_undefined_flag
29687
29688 # Flag to hardcode \$libdir into a binary during linking.
29689 # This must work even if \$libdir does not exist
29690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29691
29692 # If ld is used when linking, flag to hardcode \$libdir into a binary
29693 # during linking.  This must work even if \$libdir does not exist.
29694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29695
29696 # Whether we need a single "-rpath" flag with a separated argument.
29697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29698
29699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29700 # DIR into the resulting binary.
29701 hardcode_direct=$hardcode_direct
29702
29703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29704 # DIR into the resulting binary and the resulting library dependency is
29705 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29706 # library is relocated.
29707 hardcode_direct_absolute=$hardcode_direct_absolute
29708
29709 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29710 # into the resulting binary.
29711 hardcode_minus_L=$hardcode_minus_L
29712
29713 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29714 # into the resulting binary.
29715 hardcode_shlibpath_var=$hardcode_shlibpath_var
29716
29717 # Set to "yes" if building a shared library automatically hardcodes DIR
29718 # into the library and all subsequent libraries and executables linked
29719 # against it.
29720 hardcode_automatic=$hardcode_automatic
29721
29722 # Set to yes if linker adds runtime paths of dependent libraries
29723 # to runtime path list.
29724 inherit_rpath=$inherit_rpath
29725
29726 # Whether libtool must link a program against all its dependency libraries.
29727 link_all_deplibs=$link_all_deplibs
29728
29729 # Fix the shell variable \$srcfile for the compiler.
29730 fix_srcfile_path=$lt_fix_srcfile_path
29731
29732 # Set to "yes" if exported symbols are required.
29733 always_export_symbols=$always_export_symbols
29734
29735 # The commands to list exported symbols.
29736 export_symbols_cmds=$lt_export_symbols_cmds
29737
29738 # Symbols that should not be listed in the preloaded symbols.
29739 exclude_expsyms=$lt_exclude_expsyms
29740
29741 # Symbols that must always be exported.
29742 include_expsyms=$lt_include_expsyms
29743
29744 # Commands necessary for linking programs (against libraries) with templates.
29745 prelink_cmds=$lt_prelink_cmds
29746
29747 # Specify filename containing input files.
29748 file_list_spec=$lt_file_list_spec
29749
29750 # How to hardcode a shared library path into an executable.
29751 hardcode_action=$hardcode_action
29752
29753 # The directories searched by this compiler when creating a shared library.
29754 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29755
29756 # Dependencies to place before and after the objects being linked to
29757 # create a shared library.
29758 predep_objects=$lt_predep_objects
29759 postdep_objects=$lt_postdep_objects
29760 predeps=$lt_predeps
29761 postdeps=$lt_postdeps
29762
29763 # The library search path used internally by the compiler when linking
29764 # a shared library.
29765 compiler_lib_search_path=$lt_compiler_lib_search_path
29766
29767 # ### END LIBTOOL CONFIG
29768
29769 _LT_EOF
29770
29771   case $host_os in
29772   aix3*)
29773     cat <<\_LT_EOF >> "$cfgfile"
29774 # AIX sometimes has problems with the GCC collect2 program.  For some
29775 # reason, if we set the COLLECT_NAMES environment variable, the problems
29776 # vanish in a puff of smoke.
29777 if test "X${COLLECT_NAMES+set}" != Xset; then
29778   COLLECT_NAMES=
29779   export COLLECT_NAMES
29780 fi
29781 _LT_EOF
29782     ;;
29783   esac
29784
29785
29786 ltmain="$ac_aux_dir/ltmain.sh"
29787
29788
29789   # We use sed instead of cat because bash on DJGPP gets confused if
29790   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29791   # text mode, it properly converts lines to CR/LF.  This bash problem
29792   # is reportedly fixed, but why not run on old versions too?
29793   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29794     || (rm -f "$cfgfile"; exit 1)
29795
29796   case $xsi_shell in
29797   yes)
29798     cat << \_LT_EOF >> "$cfgfile"
29799
29800 # func_dirname file append nondir_replacement
29801 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
29802 # otherwise set result to NONDIR_REPLACEMENT.
29803 func_dirname ()
29804 {
29805   case ${1} in
29806     */*) func_dirname_result="${1%/*}${2}" ;;
29807     *  ) func_dirname_result="${3}" ;;
29808   esac
29809 }
29810
29811 # func_basename file
29812 func_basename ()
29813 {
29814   func_basename_result="${1##*/}"
29815 }
29816
29817 # func_dirname_and_basename file append nondir_replacement
29818 # perform func_basename and func_dirname in a single function
29819 # call:
29820 #   dirname:  Compute the dirname of FILE.  If nonempty,
29821 #             add APPEND to the result, otherwise set result
29822 #             to NONDIR_REPLACEMENT.
29823 #             value returned in "$func_dirname_result"
29824 #   basename: Compute filename of FILE.
29825 #             value retuned in "$func_basename_result"
29826 # Implementation must be kept synchronized with func_dirname
29827 # and func_basename. For efficiency, we do not delegate to
29828 # those functions but instead duplicate the functionality here.
29829 func_dirname_and_basename ()
29830 {
29831   case ${1} in
29832     */*) func_dirname_result="${1%/*}${2}" ;;
29833     *  ) func_dirname_result="${3}" ;;
29834   esac
29835   func_basename_result="${1##*/}"
29836 }
29837
29838 # func_stripname prefix suffix name
29839 # strip PREFIX and SUFFIX off of NAME.
29840 # PREFIX and SUFFIX must not contain globbing or regex special
29841 # characters, hashes, percent signs, but SUFFIX may contain a leading
29842 # dot (in which case that matches only a dot).
29843 func_stripname ()
29844 {
29845   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29846   # positional parameters, so assign one to ordinary parameter first.
29847   func_stripname_result=${3}
29848   func_stripname_result=${func_stripname_result#"${1}"}
29849   func_stripname_result=${func_stripname_result%"${2}"}
29850 }
29851
29852 # func_opt_split
29853 func_opt_split ()
29854 {
29855   func_opt_split_opt=${1%%=*}
29856   func_opt_split_arg=${1#*=}
29857 }
29858
29859 # func_lo2o object
29860 func_lo2o ()
29861 {
29862   case ${1} in
29863     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29864     *)    func_lo2o_result=${1} ;;
29865   esac
29866 }
29867
29868 # func_xform libobj-or-source
29869 func_xform ()
29870 {
29871   func_xform_result=${1%.*}.lo
29872 }
29873
29874 # func_arith arithmetic-term...
29875 func_arith ()
29876 {
29877   func_arith_result=$(( $* ))
29878 }
29879
29880 # func_len string
29881 # STRING may not start with a hyphen.
29882 func_len ()
29883 {
29884   func_len_result=${#1}
29885 }
29886
29887 _LT_EOF
29888     ;;
29889   *) # Bourne compatible functions.
29890     cat << \_LT_EOF >> "$cfgfile"
29891
29892 # func_dirname file append nondir_replacement
29893 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
29894 # otherwise set result to NONDIR_REPLACEMENT.
29895 func_dirname ()
29896 {
29897   # Extract subdirectory from the argument.
29898   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
29899   if test "X$func_dirname_result" = "X${1}"; then
29900     func_dirname_result="${3}"
29901   else
29902     func_dirname_result="$func_dirname_result${2}"
29903   fi
29904 }
29905
29906 # func_basename file
29907 func_basename ()
29908 {
29909   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
29910 }
29911
29912
29913 # func_stripname prefix suffix name
29914 # strip PREFIX and SUFFIX off of NAME.
29915 # PREFIX and SUFFIX must not contain globbing or regex special
29916 # characters, hashes, percent signs, but SUFFIX may contain a leading
29917 # dot (in which case that matches only a dot).
29918 # func_strip_suffix prefix name
29919 func_stripname ()
29920 {
29921   case ${2} in
29922     .*) func_stripname_result=`$ECHO "X${3}" \
29923            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
29924     *)  func_stripname_result=`$ECHO "X${3}" \
29925            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
29926   esac
29927 }
29928
29929 # sed scripts:
29930 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29931 my_sed_long_arg='1s/^-[^=]*=//'
29932
29933 # func_opt_split
29934 func_opt_split ()
29935 {
29936   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
29937   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
29938 }
29939
29940 # func_lo2o object
29941 func_lo2o ()
29942 {
29943   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
29944 }
29945
29946 # func_xform libobj-or-source
29947 func_xform ()
29948 {
29949   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
29950 }
29951
29952 # func_arith arithmetic-term...
29953 func_arith ()
29954 {
29955   func_arith_result=`expr "$@"`
29956 }
29957
29958 # func_len string
29959 # STRING may not start with a hyphen.
29960 func_len ()
29961 {
29962   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29963 }
29964
29965 _LT_EOF
29966 esac
29967
29968 case $lt_shell_append in
29969   yes)
29970     cat << \_LT_EOF >> "$cfgfile"
29971
29972 # func_append var value
29973 # Append VALUE to the end of shell variable VAR.
29974 func_append ()
29975 {
29976   eval "$1+=\$2"
29977 }
29978 _LT_EOF
29979     ;;
29980   *)
29981     cat << \_LT_EOF >> "$cfgfile"
29982
29983 # func_append var value
29984 # Append VALUE to the end of shell variable VAR.
29985 func_append ()
29986 {
29987   eval "$1=\$$1\$2"
29988 }
29989
29990 _LT_EOF
29991     ;;
29992   esac
29993
29994
29995   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29996     || (rm -f "$cfgfile"; exit 1)
29997
29998   mv -f "$cfgfile" "$ofile" ||
29999     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30000   chmod +x "$ofile"
30001
30002
30003     cat <<_LT_EOF >> "$ofile"
30004
30005 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30006
30007 # The linker used to build libraries.
30008 LD=$lt_LD_CXX
30009
30010 # Commands used to build an old-style archive.
30011 old_archive_cmds=$lt_old_archive_cmds_CXX
30012
30013 # A language specific compiler.
30014 CC=$lt_compiler_CXX
30015
30016 # Is the compiler the GNU compiler?
30017 with_gcc=$GCC_CXX
30018
30019 # Compiler flag to turn off builtin functions.
30020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30021
30022 # How to pass a linker flag through the compiler.
30023 wl=$lt_lt_prog_compiler_wl_CXX
30024
30025 # Additional compiler flags for building library objects.
30026 pic_flag=$lt_lt_prog_compiler_pic_CXX
30027
30028 # Compiler flag to prevent dynamic linking.
30029 link_static_flag=$lt_lt_prog_compiler_static_CXX
30030
30031 # Does compiler simultaneously support -c and -o options?
30032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30033
30034 # Whether or not to add -lc for building shared libraries.
30035 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30036
30037 # Whether or not to disallow shared libs when runtime libs are static.
30038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30039
30040 # Compiler flag to allow reflexive dlopens.
30041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30042
30043 # Compiler flag to generate shared objects directly from archives.
30044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30045
30046 # Whether the compiler copes with passing no objects directly.
30047 compiler_needs_object=$lt_compiler_needs_object_CXX
30048
30049 # Create an old-style archive from a shared archive.
30050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30051
30052 # Create a temporary old-style archive to link instead of a shared archive.
30053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30054
30055 # Commands used to build a shared archive.
30056 archive_cmds=$lt_archive_cmds_CXX
30057 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30058
30059 # Commands used to build a loadable module if different from building
30060 # a shared archive.
30061 module_cmds=$lt_module_cmds_CXX
30062 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30063
30064 # Whether we are building with GNU ld or not.
30065 with_gnu_ld=$lt_with_gnu_ld_CXX
30066
30067 # Flag that allows shared libraries with undefined symbols to be built.
30068 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30069
30070 # Flag that enforces no undefined symbols.
30071 no_undefined_flag=$lt_no_undefined_flag_CXX
30072
30073 # Flag to hardcode \$libdir into a binary during linking.
30074 # This must work even if \$libdir does not exist
30075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30076
30077 # If ld is used when linking, flag to hardcode \$libdir into a binary
30078 # during linking.  This must work even if \$libdir does not exist.
30079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30080
30081 # Whether we need a single "-rpath" flag with a separated argument.
30082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30083
30084 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30085 # DIR into the resulting binary.
30086 hardcode_direct=$hardcode_direct_CXX
30087
30088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30089 # DIR into the resulting binary and the resulting library dependency is
30090 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30091 # library is relocated.
30092 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30093
30094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30095 # into the resulting binary.
30096 hardcode_minus_L=$hardcode_minus_L_CXX
30097
30098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30099 # into the resulting binary.
30100 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30101
30102 # Set to "yes" if building a shared library automatically hardcodes DIR
30103 # into the library and all subsequent libraries and executables linked
30104 # against it.
30105 hardcode_automatic=$hardcode_automatic_CXX
30106
30107 # Set to yes if linker adds runtime paths of dependent libraries
30108 # to runtime path list.
30109 inherit_rpath=$inherit_rpath_CXX
30110
30111 # Whether libtool must link a program against all its dependency libraries.
30112 link_all_deplibs=$link_all_deplibs_CXX
30113
30114 # Fix the shell variable \$srcfile for the compiler.
30115 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30116
30117 # Set to "yes" if exported symbols are required.
30118 always_export_symbols=$always_export_symbols_CXX
30119
30120 # The commands to list exported symbols.
30121 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30122
30123 # Symbols that should not be listed in the preloaded symbols.
30124 exclude_expsyms=$lt_exclude_expsyms_CXX
30125
30126 # Symbols that must always be exported.
30127 include_expsyms=$lt_include_expsyms_CXX
30128
30129 # Commands necessary for linking programs (against libraries) with templates.
30130 prelink_cmds=$lt_prelink_cmds_CXX
30131
30132 # Specify filename containing input files.
30133 file_list_spec=$lt_file_list_spec_CXX
30134
30135 # How to hardcode a shared library path into an executable.
30136 hardcode_action=$hardcode_action_CXX
30137
30138 # The directories searched by this compiler when creating a shared library.
30139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30140
30141 # Dependencies to place before and after the objects being linked to
30142 # create a shared library.
30143 predep_objects=$lt_predep_objects_CXX
30144 postdep_objects=$lt_postdep_objects_CXX
30145 predeps=$lt_predeps_CXX
30146 postdeps=$lt_postdeps_CXX
30147
30148 # The library search path used internally by the compiler when linking
30149 # a shared library.
30150 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30151
30152 # ### END LIBTOOL TAG CONFIG: CXX
30153 _LT_EOF
30154
30155  ;;
30156
30157   esac
30158 done # for ac_tag
30159
30160
30161 { (exit 0); exit 0; }
30162 _ACEOF
30163 chmod +x $CONFIG_STATUS
30164 ac_clean_files=$ac_clean_files_save
30165
30166 test $ac_write_fail = 0 ||
30167   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30168 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30169    { (exit 1); exit 1; }; }
30170
30171
30172 # configure is writing to config.log, and then calls config.status.
30173 # config.status does its own redirection, appending to config.log.
30174 # Unfortunately, on DOS this fails, as config.log is still kept open
30175 # by configure, so config.status won't be able to write to it; its
30176 # output is simply discarded.  So we exec the FD to /dev/null,
30177 # effectively closing config.log, so it can be properly (re)opened and
30178 # appended to by config.status.  When coming back to configure, we
30179 # need to make the FD available again.
30180 if test "$no_create" != yes; then
30181   ac_cs_success=:
30182   ac_config_status_args=
30183   test "$silent" = yes &&
30184     ac_config_status_args="$ac_config_status_args --quiet"
30185   exec 5>/dev/null
30186   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30187   exec 5>>config.log
30188   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30189   # would make configure fail if this is the last instruction.
30190   $ac_cs_success || { (exit 1); exit 1; }
30191 fi
30192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30193   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30195 fi
30196
30197