rmdir(2) should return ENOTEMPTY
[zfs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 #  include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 #  include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 DEBUG_DMU_TX
791 DEBUG_ZFS
792 DEBUG_STACKFLAGS
793 DEBUG_CFLAGS
794 CONFIG_KERNEL_FALSE
795 CONFIG_KERNEL_TRUE
796 CONFIG_USER_FALSE
797 CONFIG_USER_TRUE
798 FRAME_LARGER_THAN
799 LIBSELINUX
800 LIBBLKID
801 LIBUUID
802 ZLIB
803 udevruledir
804 udevdir
805 KERNELCPPFLAGS
806 KERNELMAKE_PARAMS
807 SPL_SYMBOLS
808 SPL_VERSION
809 SPL_OBJ
810 SPL
811 LINUX_SYMBOLS
812 LINUX_VERSION
813 LINUX_OBJ
814 LINUX
815 NO_UNUSED_BUT_SET_VARIABLE
816 ZFS_CONFIG
817 TARGET_ASM_DIR
818 MAKEPKG_VERSION
819 MAKEPKG
820 HAVE_MAKEPKG
821 PACMAN_VERSION
822 PACMAN
823 HAVE_PACMAN
824 ALIEN_VERSION
825 ALIEN
826 HAVE_ALIEN
827 DPKGBUILD_VERSION
828 DPKGBUILD
829 HAVE_DPKGBUILD
830 DPKG_VERSION
831 DPKG
832 HAVE_DPKG
833 RPMBUILD_VERSION
834 RPMBUILD
835 HAVE_RPMBUILD
836 RPM_VERSION
837 RPM
838 HAVE_RPM
839 DEFAULT_INIT_SCRIPT
840 DEFAULT_INIT_DIR
841 DEFAULT_PACKAGE
842 VENDOR
843 am__fastdepCCAS_FALSE
844 am__fastdepCCAS_TRUE
845 CCASDEPMODE
846 CCASFLAGS
847 CCAS
848 CPP
849 OTOOL64
850 OTOOL
851 LIPO
852 NMEDIT
853 DSYMUTIL
854 lt_ECHO
855 RANLIB
856 AR
857 OBJDUMP
858 LN_S
859 NM
860 ac_ct_DUMPBIN
861 DUMPBIN
862 LD
863 FGREP
864 EGREP
865 GREP
866 SED
867 LIBTOOL
868 am__fastdepCC_FALSE
869 am__fastdepCC_TRUE
870 CCDEPMODE
871 AMDEPBACKSLASH
872 AMDEP_FALSE
873 AMDEP_TRUE
874 am__quote
875 am__include
876 DEPDIR
877 OBJEXT
878 EXEEXT
879 ac_ct_CC
880 CPPFLAGS
881 LDFLAGS
882 CFLAGS
883 CC
884 am__untar
885 am__tar
886 AMTAR
887 am__leading_dot
888 SET_MAKE
889 AWK
890 mkdir_p
891 MKDIR_P
892 INSTALL_STRIP_PROGRAM
893 STRIP
894 install_sh
895 MAKEINFO
896 AUTOHEADER
897 AUTOMAKE
898 AUTOCONF
899 ACLOCAL
900 VERSION
901 PACKAGE
902 CYGPATH_W
903 am__isrc
904 INSTALL_DATA
905 INSTALL_SCRIPT
906 INSTALL_PROGRAM
907 AM_BACKSLASH
908 AM_DEFAULT_VERBOSITY
909 MAINT
910 MAINTAINER_MODE_FALSE
911 MAINTAINER_MODE_TRUE
912 target_os
913 target_vendor
914 target_cpu
915 target
916 host_os
917 host_vendor
918 host_cpu
919 host
920 build_os
921 build_vendor
922 build_cpu
923 build
924 ZFS_META_LT_AGE
925 ZFS_META_LT_REVISION
926 ZFS_META_LT_CURRENT
927 ZFS_META_AUTHOR
928 ZFS_META_DATA
929 ZFS_META_ALIAS
930 ZFS_META_LICENSE
931 ZFS_META_RELEASE
932 ZFS_META_VERSION
933 ZFS_META_NAME
934 target_alias
935 host_alias
936 build_alias
937 LIBS
938 ECHO_T
939 ECHO_N
940 ECHO_C
941 DEFS
942 mandir
943 localedir
944 libdir
945 psdir
946 pdfdir
947 dvidir
948 htmldir
949 infodir
950 docdir
951 oldincludedir
952 includedir
953 localstatedir
954 sharedstatedir
955 sysconfdir
956 datadir
957 datarootdir
958 libexecdir
959 sbindir
960 bindir
961 program_transform_name
962 prefix
963 exec_prefix
964 PACKAGE_BUGREPORT
965 PACKAGE_STRING
966 PACKAGE_VERSION
967 PACKAGE_TARNAME
968 PACKAGE_NAME
969 PATH_SEPARATOR
970 SHELL'
971 ac_subst_files=''
972 ac_user_opts='
973 enable_option_checking
974 enable_maintainer_mode
975 enable_silent_rules
976 enable_dependency_tracking
977 enable_shared
978 enable_static
979 with_pic
980 enable_fast_install
981 with_gnu_ld
982 enable_libtool_lock
983 with_config
984 enable_linux_builtin
985 with_linux
986 with_linux_obj
987 with_spl
988 with_spl_obj
989 with_spl_timeout
990 with_udevdir
991 with_udevruledir
992 with_blkid
993 with_selinux
994 enable_debug
995 enable_debug_dmu_tx
996 '
997       ac_precious_vars='build_alias
998 host_alias
999 target_alias
1000 CC
1001 CFLAGS
1002 LDFLAGS
1003 LIBS
1004 CPPFLAGS
1005 CPP
1006 CCAS
1007 CCASFLAGS'
1008
1009
1010 # Initialize some variables set by options.
1011 ac_init_help=
1012 ac_init_version=false
1013 ac_unrecognized_opts=
1014 ac_unrecognized_sep=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1018 exec_prefix=NONE
1019 no_create=
1020 no_recursion=
1021 prefix=NONE
1022 program_prefix=NONE
1023 program_suffix=NONE
1024 program_transform_name=s,x,x,
1025 silent=
1026 site=
1027 srcdir=
1028 verbose=
1029 x_includes=NONE
1030 x_libraries=NONE
1031
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE}'
1049 infodir='${datarootdir}/info'
1050 htmldir='${docdir}'
1051 dvidir='${docdir}'
1052 pdfdir='${docdir}'
1053 psdir='${docdir}'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1057
1058 ac_prev=
1059 ac_dashdash=
1060 for ac_option
1061 do
1062   # If the previous option needs an argument, assign it.
1063   if test -n "$ac_prev"; then
1064     eval $ac_prev=\$ac_option
1065     ac_prev=
1066     continue
1067   fi
1068
1069   case $ac_option in
1070   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071   *)    ac_optarg=yes ;;
1072   esac
1073
1074   # Accept the important Cygnus configure options, so we can diagnose typos.
1075
1076   case $ac_dashdash$ac_option in
1077   --)
1078     ac_dashdash=yes ;;
1079
1080   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081     ac_prev=bindir ;;
1082   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083     bindir=$ac_optarg ;;
1084
1085   -build | --build | --buil | --bui | --bu)
1086     ac_prev=build_alias ;;
1087   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088     build_alias=$ac_optarg ;;
1089
1090   -cache-file | --cache-file | --cache-fil | --cache-fi \
1091   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092     ac_prev=cache_file ;;
1093   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095     cache_file=$ac_optarg ;;
1096
1097   --config-cache | -C)
1098     cache_file=config.cache ;;
1099
1100   -datadir | --datadir | --datadi | --datad)
1101     ac_prev=datadir ;;
1102   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103     datadir=$ac_optarg ;;
1104
1105   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106   | --dataroo | --dataro | --datar)
1107     ac_prev=datarootdir ;;
1108   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110     datarootdir=$ac_optarg ;;
1111
1112   -disable-* | --disable-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1117    { (exit 1); exit 1; }; }
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "enable_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval enable_$ac_useropt=no ;;
1128
1129   -docdir | --docdir | --docdi | --doc | --do)
1130     ac_prev=docdir ;;
1131   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1132     docdir=$ac_optarg ;;
1133
1134   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1135     ac_prev=dvidir ;;
1136   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1137     dvidir=$ac_optarg ;;
1138
1139   -enable-* | --enable-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1144    { (exit 1); exit 1; }; }
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148       *"
1149 "enable_$ac_useropt"
1150 "*) ;;
1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152          ac_unrecognized_sep=', ';;
1153     esac
1154     eval enable_$ac_useropt=\$ac_optarg ;;
1155
1156   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158   | --exec | --exe | --ex)
1159     ac_prev=exec_prefix ;;
1160   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162   | --exec=* | --exe=* | --ex=*)
1163     exec_prefix=$ac_optarg ;;
1164
1165   -gas | --gas | --ga | --g)
1166     # Obsolete; use --with-gas.
1167     with_gas=yes ;;
1168
1169   -help | --help | --hel | --he | -h)
1170     ac_init_help=long ;;
1171   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172     ac_init_help=recursive ;;
1173   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174     ac_init_help=short ;;
1175
1176   -host | --host | --hos | --ho)
1177     ac_prev=host_alias ;;
1178   -host=* | --host=* | --hos=* | --ho=*)
1179     host_alias=$ac_optarg ;;
1180
1181   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182     ac_prev=htmldir ;;
1183   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184   | --ht=*)
1185     htmldir=$ac_optarg ;;
1186
1187   -includedir | --includedir | --includedi | --included | --include \
1188   | --includ | --inclu | --incl | --inc)
1189     ac_prev=includedir ;;
1190   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191   | --includ=* | --inclu=* | --incl=* | --inc=*)
1192     includedir=$ac_optarg ;;
1193
1194   -infodir | --infodir | --infodi | --infod | --info | --inf)
1195     ac_prev=infodir ;;
1196   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197     infodir=$ac_optarg ;;
1198
1199   -libdir | --libdir | --libdi | --libd)
1200     ac_prev=libdir ;;
1201   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202     libdir=$ac_optarg ;;
1203
1204   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205   | --libexe | --libex | --libe)
1206     ac_prev=libexecdir ;;
1207   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208   | --libexe=* | --libex=* | --libe=*)
1209     libexecdir=$ac_optarg ;;
1210
1211   -localedir | --localedir | --localedi | --localed | --locale)
1212     ac_prev=localedir ;;
1213   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214     localedir=$ac_optarg ;;
1215
1216   -localstatedir | --localstatedir | --localstatedi | --localstated \
1217   | --localstate | --localstat | --localsta | --localst | --locals)
1218     ac_prev=localstatedir ;;
1219   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221     localstatedir=$ac_optarg ;;
1222
1223   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224     ac_prev=mandir ;;
1225   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226     mandir=$ac_optarg ;;
1227
1228   -nfp | --nfp | --nf)
1229     # Obsolete; use --without-fp.
1230     with_fp=no ;;
1231
1232   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233   | --no-cr | --no-c | -n)
1234     no_create=yes ;;
1235
1236   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238     no_recursion=yes ;;
1239
1240   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242   | --oldin | --oldi | --old | --ol | --o)
1243     ac_prev=oldincludedir ;;
1244   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247     oldincludedir=$ac_optarg ;;
1248
1249   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250     ac_prev=prefix ;;
1251   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252     prefix=$ac_optarg ;;
1253
1254   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255   | --program-pre | --program-pr | --program-p)
1256     ac_prev=program_prefix ;;
1257   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259     program_prefix=$ac_optarg ;;
1260
1261   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262   | --program-suf | --program-su | --program-s)
1263     ac_prev=program_suffix ;;
1264   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266     program_suffix=$ac_optarg ;;
1267
1268   -program-transform-name | --program-transform-name \
1269   | --program-transform-nam | --program-transform-na \
1270   | --program-transform-n | --program-transform- \
1271   | --program-transform | --program-transfor \
1272   | --program-transfo | --program-transf \
1273   | --program-trans | --program-tran \
1274   | --progr-tra | --program-tr | --program-t)
1275     ac_prev=program_transform_name ;;
1276   -program-transform-name=* | --program-transform-name=* \
1277   | --program-transform-nam=* | --program-transform-na=* \
1278   | --program-transform-n=* | --program-transform-=* \
1279   | --program-transform=* | --program-transfor=* \
1280   | --program-transfo=* | --program-transf=* \
1281   | --program-trans=* | --program-tran=* \
1282   | --progr-tra=* | --program-tr=* | --program-t=*)
1283     program_transform_name=$ac_optarg ;;
1284
1285   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286     ac_prev=pdfdir ;;
1287   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288     pdfdir=$ac_optarg ;;
1289
1290   -psdir | --psdir | --psdi | --psd | --ps)
1291     ac_prev=psdir ;;
1292   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293     psdir=$ac_optarg ;;
1294
1295   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296   | -silent | --silent | --silen | --sile | --sil)
1297     silent=yes ;;
1298
1299   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300     ac_prev=sbindir ;;
1301   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302   | --sbi=* | --sb=*)
1303     sbindir=$ac_optarg ;;
1304
1305   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307   | --sharedst | --shareds | --shared | --share | --shar \
1308   | --sha | --sh)
1309     ac_prev=sharedstatedir ;;
1310   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313   | --sha=* | --sh=*)
1314     sharedstatedir=$ac_optarg ;;
1315
1316   -site | --site | --sit)
1317     ac_prev=site ;;
1318   -site=* | --site=* | --sit=*)
1319     site=$ac_optarg ;;
1320
1321   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322     ac_prev=srcdir ;;
1323   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324     srcdir=$ac_optarg ;;
1325
1326   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327   | --syscon | --sysco | --sysc | --sys | --sy)
1328     ac_prev=sysconfdir ;;
1329   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331     sysconfdir=$ac_optarg ;;
1332
1333   -target | --target | --targe | --targ | --tar | --ta | --t)
1334     ac_prev=target_alias ;;
1335   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336     target_alias=$ac_optarg ;;
1337
1338   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339     verbose=yes ;;
1340
1341   -version | --version | --versio | --versi | --vers | -V)
1342     ac_init_version=: ;;
1343
1344   -with-* | --with-*)
1345     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346     # Reject names that are not valid shell variable names.
1347     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1349    { (exit 1); exit 1; }; }
1350     ac_useropt_orig=$ac_useropt
1351     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352     case $ac_user_opts in
1353       *"
1354 "with_$ac_useropt"
1355 "*) ;;
1356       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357          ac_unrecognized_sep=', ';;
1358     esac
1359     eval with_$ac_useropt=\$ac_optarg ;;
1360
1361   -without-* | --without-*)
1362     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363     # Reject names that are not valid shell variable names.
1364     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1366    { (exit 1); exit 1; }; }
1367     ac_useropt_orig=$ac_useropt
1368     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369     case $ac_user_opts in
1370       *"
1371 "with_$ac_useropt"
1372 "*) ;;
1373       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1374          ac_unrecognized_sep=', ';;
1375     esac
1376     eval with_$ac_useropt=no ;;
1377
1378   --x)
1379     # Obsolete; use --with-x.
1380     with_x=yes ;;
1381
1382   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383   | --x-incl | --x-inc | --x-in | --x-i)
1384     ac_prev=x_includes ;;
1385   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387     x_includes=$ac_optarg ;;
1388
1389   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391     ac_prev=x_libraries ;;
1392   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394     x_libraries=$ac_optarg ;;
1395
1396   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1397 Try \`$0 --help' for more information." >&2
1398    { (exit 1); exit 1; }; }
1399     ;;
1400
1401   *=*)
1402     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1403     # Reject names that are not valid shell variable names.
1404     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1405       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1406    { (exit 1); exit 1; }; }
1407     eval $ac_envvar=\$ac_optarg
1408     export $ac_envvar ;;
1409
1410   *)
1411     # FIXME: should be removed in autoconf 3.0.
1412     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1416     ;;
1417
1418   esac
1419 done
1420
1421 if test -n "$ac_prev"; then
1422   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1423   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1424    { (exit 1); exit 1; }; }
1425 fi
1426
1427 if test -n "$ac_unrecognized_opts"; then
1428   case $enable_option_checking in
1429     no) ;;
1430     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1431    { (exit 1); exit 1; }; } ;;
1432     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433   esac
1434 fi
1435
1436 # Check all directory arguments for consistency.
1437 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438                 datadir sysconfdir sharedstatedir localstatedir includedir \
1439                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440                 libdir localedir mandir
1441 do
1442   eval ac_val=\$$ac_var
1443   # Remove trailing slashes.
1444   case $ac_val in
1445     */ )
1446       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447       eval $ac_var=\$ac_val;;
1448   esac
1449   # Be sure to have absolute directory names.
1450   case $ac_val in
1451     [\\/$]* | ?:[\\/]* )  continue;;
1452     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1453   esac
1454   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1455    { (exit 1); exit 1; }; }
1456 done
1457
1458 # There might be people who depend on the old broken behavior: `$host'
1459 # used to hold the argument of --host etc.
1460 # FIXME: To remove some day.
1461 build=$build_alias
1462 host=$host_alias
1463 target=$target_alias
1464
1465 # FIXME: To remove some day.
1466 if test "x$host_alias" != x; then
1467   if test "x$build_alias" = x; then
1468     cross_compiling=maybe
1469     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1470     If a cross compiler is detected then cross compile mode will be used." >&2
1471   elif test "x$build_alias" != "x$host_alias"; then
1472     cross_compiling=yes
1473   fi
1474 fi
1475
1476 ac_tool_prefix=
1477 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478
1479 test "$silent" = yes && exec 6>/dev/null
1480
1481
1482 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1483 ac_ls_di=`ls -di .` &&
1484 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1485   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1486    { (exit 1); exit 1; }; }
1487 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1488   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1489    { (exit 1); exit 1; }; }
1490
1491
1492 # Find the source files, if location was not specified.
1493 if test -z "$srcdir"; then
1494   ac_srcdir_defaulted=yes
1495   # Try the directory containing this script, then the parent directory.
1496   ac_confdir=`$as_dirname -- "$as_myself" ||
1497 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1498          X"$as_myself" : 'X\(//\)[^/]' \| \
1499          X"$as_myself" : 'X\(//\)$' \| \
1500          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1501 $as_echo X"$as_myself" |
1502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1503             s//\1/
1504             q
1505           }
1506           /^X\(\/\/\)[^/].*/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\).*/{
1515             s//\1/
1516             q
1517           }
1518           s/.*/./; q'`
1519   srcdir=$ac_confdir
1520   if test ! -r "$srcdir/$ac_unique_file"; then
1521     srcdir=..
1522   fi
1523 else
1524   ac_srcdir_defaulted=no
1525 fi
1526 if test ! -r "$srcdir/$ac_unique_file"; then
1527   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1528   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1529    { (exit 1); exit 1; }; }
1530 fi
1531 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 ac_abs_confdir=`(
1533         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1534    { (exit 1); exit 1; }; }
1535         pwd)`
1536 # When building in place, set srcdir=.
1537 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538   srcdir=.
1539 fi
1540 # Remove unnecessary trailing slashes from srcdir.
1541 # Double slashes in file names in object file debugging info
1542 # mess up M-x gdb in Emacs.
1543 case $srcdir in
1544 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545 esac
1546 for ac_var in $ac_precious_vars; do
1547   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1548   eval ac_env_${ac_var}_value=\$${ac_var}
1549   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1551 done
1552
1553 #
1554 # Report the --help message.
1555 #
1556 if test "$ac_init_help" = "long"; then
1557   # Omit some internal or obsolete options to make the list less imposing.
1558   # This message is too long to be a string in the A/UX 3.1 sh.
1559   cat <<_ACEOF
1560 \`configure' configures this package to adapt to many kinds of systems.
1561
1562 Usage: $0 [OPTION]... [VAR=VALUE]...
1563
1564 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565 VAR=VALUE.  See below for descriptions of some of the useful variables.
1566
1567 Defaults for the options are specified in brackets.
1568
1569 Configuration:
1570   -h, --help              display this help and exit
1571       --help=short        display options specific to this package
1572       --help=recursive    display the short help of all the included packages
1573   -V, --version           display version information and exit
1574   -q, --quiet, --silent   do not print \`checking...' messages
1575       --cache-file=FILE   cache test results in FILE [disabled]
1576   -C, --config-cache      alias for \`--cache-file=config.cache'
1577   -n, --no-create         do not create output files
1578       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1579
1580 Installation directories:
1581   --prefix=PREFIX         install architecture-independent files in PREFIX
1582                           [$ac_default_prefix]
1583   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1584                           [PREFIX]
1585
1586 By default, \`make install' will install all the files in
1587 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1588 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589 for instance \`--prefix=\$HOME'.
1590
1591 For better control, use the options below.
1592
1593 Fine tuning of the installation directories:
1594   --bindir=DIR            user executables [EPREFIX/bin]
1595   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1596   --libexecdir=DIR        program executables [EPREFIX/libexec]
1597   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1598   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1599   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1600   --libdir=DIR            object code libraries [EPREFIX/lib]
1601   --includedir=DIR        C header files [PREFIX/include]
1602   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1603   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1604   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1605   --infodir=DIR           info documentation [DATAROOTDIR/info]
1606   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1607   --mandir=DIR            man documentation [DATAROOTDIR/man]
1608   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1609   --htmldir=DIR           html documentation [DOCDIR]
1610   --dvidir=DIR            dvi documentation [DOCDIR]
1611   --pdfdir=DIR            pdf documentation [DOCDIR]
1612   --psdir=DIR             ps documentation [DOCDIR]
1613 _ACEOF
1614
1615   cat <<\_ACEOF
1616
1617 Program names:
1618   --program-prefix=PREFIX            prepend PREFIX to installed program names
1619   --program-suffix=SUFFIX            append SUFFIX to installed program names
1620   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1621
1622 System types:
1623   --build=BUILD     configure for building on BUILD [guessed]
1624   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1625   --target=TARGET   configure for building compilers for TARGET [HOST]
1626 _ACEOF
1627 fi
1628
1629 if test -n "$ac_init_help"; then
1630
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-option-checking  ignore unrecognized --enable/--with options
1635   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1636   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1637   --enable-maintainer-mode  enable make rules and dependencies not useful
1638                           (and sometimes confusing) to the casual installer
1639   --enable-silent-rules          less verbose build output (undo: `make V=1')
1640   --disable-silent-rules         verbose build output (undo: `make V=0')
1641   --disable-dependency-tracking  speeds up one-time build
1642   --enable-dependency-tracking   do not reject slow dependency extractors
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=yes]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --enable-linux-builtin  Configure for builtin in-tree kernel modules
1649                           [default=no]
1650   --enable-debug          Enable generic debug support [default=no]
1651   --enable-debug-dmu-tx   Enable dmu tx validation [default=no]
1652
1653 Optional Packages:
1654   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1655   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1656   --with-pic              try to use only PIC/non-PIC objects [default=use
1657                           both]
1658   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1659   --with-config=CONFIG    Config file 'kernel|user|all|srpm'
1660   --with-linux=PATH       Path to kernel source
1661   --with-linux-obj=PATH   Path to kernel build objects
1662   --with-spl=PATH         Path to spl source
1663   --with-spl-obj=PATH     Path to spl build objects
1664   --with-spl-timeout=SECS Wait SECS for symvers file to appear [default=0]
1665   --with-udevdir=DIR      install udev helpers [EPREFIX/lib/udev]
1666   --with-udevruledir=DIR  install udev rules [UDEVDIR/rules.d]
1667   --with-blkid            support blkid caching [default=check]
1668   --with-selinux          support selinux [default=check]
1669
1670 Some influential environment variables:
1671   CC          C compiler command
1672   CFLAGS      C compiler flags
1673   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1674               nonstandard directory <lib dir>
1675   LIBS        libraries to pass to the linker, e.g. -l<library>
1676   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1677               you have headers in a nonstandard directory <include dir>
1678   CPP         C preprocessor
1679   CCAS        assembler compiler command (defaults to CC)
1680   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1681
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1684
1685 _ACEOF
1686 ac_status=$?
1687 fi
1688
1689 if test "$ac_init_help" = "recursive"; then
1690   # If there are subdirs, report their specific --help.
1691   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692     test -d "$ac_dir" ||
1693       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694       continue
1695     ac_builddir=.
1696
1697 case "$ac_dir" in
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 *)
1700   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701   # A ".." for each directory in $ac_dir_suffix.
1702   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703   case $ac_top_builddir_sub in
1704   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706   esac ;;
1707 esac
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1712
1713 case $srcdir in
1714   .)  # We are building in place.
1715     ac_srcdir=.
1716     ac_top_srcdir=$ac_top_builddir_sub
1717     ac_abs_top_srcdir=$ac_pwd ;;
1718   [\\/]* | ?:[\\/]* )  # Absolute name.
1719     ac_srcdir=$srcdir$ac_dir_suffix;
1720     ac_top_srcdir=$srcdir
1721     ac_abs_top_srcdir=$srcdir ;;
1722   *) # Relative name.
1723     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724     ac_top_srcdir=$ac_top_build_prefix$srcdir
1725     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 esac
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728
1729     cd "$ac_dir" || { ac_status=$?; continue; }
1730     # Check for guested configure.
1731     if test -f "$ac_srcdir/configure.gnu"; then
1732       echo &&
1733       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734     elif test -f "$ac_srcdir/configure"; then
1735       echo &&
1736       $SHELL "$ac_srcdir/configure" --help=recursive
1737     else
1738       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739     fi || ac_status=$?
1740     cd "$ac_pwd" || { ac_status=$?; break; }
1741   done
1742 fi
1743
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1746   cat <<\_ACEOF
1747 configure
1748 generated by GNU Autoconf 2.63
1749
1750 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1751 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755   exit
1756 fi
1757 cat >config.log <<_ACEOF
1758 This file contains any messages produced by compilers while
1759 running configure, to aid debugging if configure makes a mistake.
1760
1761 It was created by $as_me, which was
1762 generated by GNU Autoconf 2.63.  Invocation command line was
1763
1764   $ $0 $@
1765
1766 _ACEOF
1767 exec 5>>config.log
1768 {
1769 cat <<_ASUNAME
1770 ## --------- ##
1771 ## Platform. ##
1772 ## --------- ##
1773
1774 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1775 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1776 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1777 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1778 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1779
1780 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1781 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1782
1783 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1784 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1785 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1786 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1787 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1788 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1789 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1790
1791 _ASUNAME
1792
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   $as_echo "PATH: $as_dir"
1799 done
1800 IFS=$as_save_IFS
1801
1802 } >&5
1803
1804 cat >&5 <<_ACEOF
1805
1806
1807 ## ----------- ##
1808 ## Core tests. ##
1809 ## ----------- ##
1810
1811 _ACEOF
1812
1813
1814 # Keep a trace of the command line.
1815 # Strip out --no-create and --no-recursion so they do not pile up.
1816 # Strip out --silent because we don't want to record it for future runs.
1817 # Also quote any args containing shell meta-characters.
1818 # Make two passes to allow for proper duplicate-argument suppression.
1819 ac_configure_args=
1820 ac_configure_args0=
1821 ac_configure_args1=
1822 ac_must_keep_next=false
1823 for ac_pass in 1 2
1824 do
1825   for ac_arg
1826   do
1827     case $ac_arg in
1828     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1829     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1830     | -silent | --silent | --silen | --sile | --sil)
1831       continue ;;
1832     *\'*)
1833       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1834     esac
1835     case $ac_pass in
1836     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1837     2)
1838       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1839       if test $ac_must_keep_next = true; then
1840         ac_must_keep_next=false # Got value, back to normal.
1841       else
1842         case $ac_arg in
1843           *=* | --config-cache | -C | -disable-* | --disable-* \
1844           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1845           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1846           | -with-* | --with-* | -without-* | --without-* | --x)
1847             case "$ac_configure_args0 " in
1848               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1849             esac
1850             ;;
1851           -* ) ac_must_keep_next=true ;;
1852         esac
1853       fi
1854       ac_configure_args="$ac_configure_args '$ac_arg'"
1855       ;;
1856     esac
1857   done
1858 done
1859 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1860 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1861
1862 # When interrupted or exit'd, cleanup temporary files, and complete
1863 # config.log.  We remove comments because anyway the quotes in there
1864 # would cause problems or look ugly.
1865 # WARNING: Use '\'' to represent an apostrophe within the trap.
1866 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1867 trap 'exit_status=$?
1868   # Save into config.log some information that might help in debugging.
1869   {
1870     echo
1871
1872     cat <<\_ASBOX
1873 ## ---------------- ##
1874 ## Cache variables. ##
1875 ## ---------------- ##
1876 _ASBOX
1877     echo
1878     # The following way of writing the cache mishandles newlines in values,
1879 (
1880   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1881     eval ac_val=\$$ac_var
1882     case $ac_val in #(
1883     *${as_nl}*)
1884       case $ac_var in #(
1885       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1887       esac
1888       case $ac_var in #(
1889       _ | IFS | as_nl) ;; #(
1890       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1891       *) $as_unset $ac_var ;;
1892       esac ;;
1893     esac
1894   done
1895   (set) 2>&1 |
1896     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1897     *${as_nl}ac_space=\ *)
1898       sed -n \
1899         "s/'\''/'\''\\\\'\'''\''/g;
1900           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1901       ;; #(
1902     *)
1903       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1904       ;;
1905     esac |
1906     sort
1907 )
1908     echo
1909
1910     cat <<\_ASBOX
1911 ## ----------------- ##
1912 ## Output variables. ##
1913 ## ----------------- ##
1914 _ASBOX
1915     echo
1916     for ac_var in $ac_subst_vars
1917     do
1918       eval ac_val=\$$ac_var
1919       case $ac_val in
1920       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921       esac
1922       $as_echo "$ac_var='\''$ac_val'\''"
1923     done | sort
1924     echo
1925
1926     if test -n "$ac_subst_files"; then
1927       cat <<\_ASBOX
1928 ## ------------------- ##
1929 ## File substitutions. ##
1930 ## ------------------- ##
1931 _ASBOX
1932       echo
1933       for ac_var in $ac_subst_files
1934       do
1935         eval ac_val=\$$ac_var
1936         case $ac_val in
1937         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938         esac
1939         $as_echo "$ac_var='\''$ac_val'\''"
1940       done | sort
1941       echo
1942     fi
1943
1944     if test -s confdefs.h; then
1945       cat <<\_ASBOX
1946 ## ----------- ##
1947 ## confdefs.h. ##
1948 ## ----------- ##
1949 _ASBOX
1950       echo
1951       cat confdefs.h
1952       echo
1953     fi
1954     test "$ac_signal" != 0 &&
1955       $as_echo "$as_me: caught signal $ac_signal"
1956     $as_echo "$as_me: exit $exit_status"
1957   } >&5
1958   rm -f core *.core core.conftest.* &&
1959     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1960     exit $exit_status
1961 ' 0
1962 for ac_signal in 1 2 13 15; do
1963   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1964 done
1965 ac_signal=0
1966
1967 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1968 rm -f -r conftest* confdefs.h
1969
1970 # Predefined preprocessor variables.
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_NAME "$PACKAGE_NAME"
1974 _ACEOF
1975
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1979 _ACEOF
1980
1981
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1984 _ACEOF
1985
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_STRING "$PACKAGE_STRING"
1989 _ACEOF
1990
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1994 _ACEOF
1995
1996
1997 # Let the site file select an alternate cache file if it wants to.
1998 # Prefer an explicitly selected file to automatically selected ones.
1999 ac_site_file1=NONE
2000 ac_site_file2=NONE
2001 if test -n "$CONFIG_SITE"; then
2002   ac_site_file1=$CONFIG_SITE
2003 elif test "x$prefix" != xNONE; then
2004   ac_site_file1=$prefix/share/config.site
2005   ac_site_file2=$prefix/etc/config.site
2006 else
2007   ac_site_file1=$ac_default_prefix/share/config.site
2008   ac_site_file2=$ac_default_prefix/etc/config.site
2009 fi
2010 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2011 do
2012   test "x$ac_site_file" = xNONE && continue
2013   if test -r "$ac_site_file"; then
2014     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2015 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2016     sed 's/^/| /' "$ac_site_file" >&5
2017     . "$ac_site_file"
2018   fi
2019 done
2020
2021 if test -r "$cache_file"; then
2022   # Some versions of bash will fail to source /dev/null (special
2023   # files actually), so we avoid doing that.
2024   if test -f "$cache_file"; then
2025     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2026 $as_echo "$as_me: loading cache $cache_file" >&6;}
2027     case $cache_file in
2028       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2029       *)                      . "./$cache_file";;
2030     esac
2031   fi
2032 else
2033   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2034 $as_echo "$as_me: creating cache $cache_file" >&6;}
2035   >$cache_file
2036 fi
2037
2038 # Check that the precious variables saved in the cache have kept the same
2039 # value.
2040 ac_cache_corrupted=false
2041 for ac_var in $ac_precious_vars; do
2042   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2043   eval ac_new_set=\$ac_env_${ac_var}_set
2044   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2045   eval ac_new_val=\$ac_env_${ac_var}_value
2046   case $ac_old_set,$ac_new_set in
2047     set,)
2048       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2049 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2050       ac_cache_corrupted=: ;;
2051     ,set)
2052       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2053 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2054       ac_cache_corrupted=: ;;
2055     ,);;
2056     *)
2057       if test "x$ac_old_val" != "x$ac_new_val"; then
2058         # differences in whitespace do not lead to failure.
2059         ac_old_val_w=`echo x $ac_old_val`
2060         ac_new_val_w=`echo x $ac_new_val`
2061         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2062           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2063 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2064           ac_cache_corrupted=:
2065         else
2066           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2067 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2068           eval $ac_var=\$ac_old_val
2069         fi
2070         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2071 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2072         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2073 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2074       fi;;
2075   esac
2076   # Pass precious variables to config.status.
2077   if test "$ac_new_set" = set; then
2078     case $ac_new_val in
2079     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2080     *) ac_arg=$ac_var=$ac_new_val ;;
2081     esac
2082     case " $ac_configure_args " in
2083       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2084       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2085     esac
2086   fi
2087 done
2088 if $ac_cache_corrupted; then
2089   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2091   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2092 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2093   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2094 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2095    { (exit 1); exit 1; }; }
2096 fi
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114 ac_ext=c
2115 ac_cpp='$CPP $CPPFLAGS'
2116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119
2120
2121 ac_ext=c
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126
2127
2128
2129
2130
2131
2132         { $as_echo "$as_me:$LINENO: checking metadata" >&5
2133 $as_echo_n "checking metadata... " >&6; }
2134
2135         META="$srcdir/META"
2136         _zfs_ac_meta_got_file=no
2137         if test -f "$META"; then
2138                 _zfs_ac_meta_got_file=yes
2139
2140                 ZFS_META_NAME=`perl -n\
2141                 -e "BEGIN { \\$key=shift @ARGV; }"\
2142                 -e "next unless s/^\s*\\$key[:=]//i;"\
2143                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2144                 -e "s/^\s+//;"\
2145                 -e "s/\s+$//;"\
2146                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2147                 -e "\\$val=\\$_;"\
2148                 -e "END { print \\$val if defined \\$val; }"\
2149                 '(?:NAME|PROJECT|PACKAGE)' $META`;
2150                 if test -n "$ZFS_META_NAME"; then
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define ZFS_META_NAME "$ZFS_META_NAME"
2154 _ACEOF
2155
2156
2157                 fi
2158
2159                 ZFS_META_VERSION=`perl -n\
2160                 -e "BEGIN { \\$key=shift @ARGV; }"\
2161                 -e "next unless s/^\s*\\$key[:=]//i;"\
2162                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2163                 -e "s/^\s+//;"\
2164                 -e "s/\s+$//;"\
2165                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2166                 -e "\\$val=\\$_;"\
2167                 -e "END { print \\$val if defined \\$val; }"\
2168                 'VERSION' $META`;
2169                 if test -n "$ZFS_META_VERSION"; then
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2173 _ACEOF
2174
2175
2176                 fi
2177
2178                 ZFS_META_RELEASE=`perl -n\
2179                 -e "BEGIN { \\$key=shift @ARGV; }"\
2180                 -e "next unless s/^\s*\\$key[:=]//i;"\
2181                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2182                 -e "s/^\s+//;"\
2183                 -e "s/\s+$//;"\
2184                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2185                 -e "\\$val=\\$_;"\
2186                 -e "END { print \\$val if defined \\$val; }"\
2187                 'RELEASE' $META`;
2188                 if test -n "$ZFS_META_RELEASE"; then
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2192 _ACEOF
2193
2194
2195                 fi
2196
2197                 ZFS_META_LICENSE=`perl -n\
2198                 -e "BEGIN { \\$key=shift @ARGV; }"\
2199                 -e "next unless s/^\s*\\$key[:=]//i;"\
2200                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2201                 -e "s/^\s+//;"\
2202                 -e "s/\s+$//;"\
2203                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2204                 -e "\\$val=\\$_;"\
2205                 -e "END { print \\$val if defined \\$val; }"\
2206                 'LICENSE' $META`;
2207                 if test -n "$ZFS_META_LICENSE"; then
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2211 _ACEOF
2212
2213
2214                 fi
2215
2216                 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2217                                 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2218                                 test -n "$ZFS_META_RELEASE" &&
2219                                         ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2223 _ACEOF
2224
2225
2226                 fi
2227
2228                 ZFS_META_DATA=`perl -n\
2229                 -e "BEGIN { \\$key=shift @ARGV; }"\
2230                 -e "next unless s/^\s*\\$key[:=]//i;"\
2231                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2232                 -e "s/^\s+//;"\
2233                 -e "s/\s+$//;"\
2234                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2235                 -e "\\$val=\\$_;"\
2236                 -e "END { print \\$val if defined \\$val; }"\
2237                 'DATE' $META`;
2238                 if test -n "$ZFS_META_DATA"; then
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define ZFS_META_DATA "$ZFS_META_DATA"
2242 _ACEOF
2243
2244
2245                 fi
2246
2247                 ZFS_META_AUTHOR=`perl -n\
2248                 -e "BEGIN { \\$key=shift @ARGV; }"\
2249                 -e "next unless s/^\s*\\$key[:=]//i;"\
2250                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2251                 -e "s/^\s+//;"\
2252                 -e "s/\s+$//;"\
2253                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2254                 -e "\\$val=\\$_;"\
2255                 -e "END { print \\$val if defined \\$val; }"\
2256                 'AUTHOR' $META`;
2257                 if test -n "$ZFS_META_AUTHOR"; then
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2261 _ACEOF
2262
2263
2264                 fi
2265
2266
2267                 ZFS_META_LT_CURRENT=`perl -n\
2268                 -e "BEGIN { \\$key=shift @ARGV; }"\
2269                 -e "next unless s/^\s*\\$key[:=]//i;"\
2270                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2271                 -e "s/^\s+//;"\
2272                 -e "s/\s+$//;"\
2273                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2274                 -e "\\$val=\\$_;"\
2275                 -e "END { print \\$val if defined \\$val; }"\
2276                 'LT_CURRENT' $META`;
2277                 ZFS_META_LT_REVISION=`perl -n\
2278                 -e "BEGIN { \\$key=shift @ARGV; }"\
2279                 -e "next unless s/^\s*\\$key[:=]//i;"\
2280                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2281                 -e "s/^\s+//;"\
2282                 -e "s/\s+$//;"\
2283                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2284                 -e "\\$val=\\$_;"\
2285                 -e "END { print \\$val if defined \\$val; }"\
2286                 'LT_REVISION' $META`;
2287                 ZFS_META_LT_AGE=`perl -n\
2288                 -e "BEGIN { \\$key=shift @ARGV; }"\
2289                 -e "next unless s/^\s*\\$key[:=]//i;"\
2290                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2291                 -e "s/^\s+//;"\
2292                 -e "s/\s+$//;"\
2293                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2294                 -e "\\$val=\\$_;"\
2295                 -e "END { print \\$val if defined \\$val; }"\
2296                 'LT_AGE' $META`;
2297                 if test -n "$ZFS_META_LT_CURRENT" \
2298                                  -o -n "$ZFS_META_LT_REVISION" \
2299                                  -o -n "$ZFS_META_LT_AGE"; then
2300                         test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2301                         test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2302                         test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2306 _ACEOF
2307
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2311 _ACEOF
2312
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2316 _ACEOF
2317
2318
2319
2320
2321                 fi
2322         fi
2323
2324         { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2325 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2326
2327
2328 ac_aux_dir=
2329 for ac_dir in config "$srcdir"/config; do
2330   if test -f "$ac_dir/install-sh"; then
2331     ac_aux_dir=$ac_dir
2332     ac_install_sh="$ac_aux_dir/install-sh -c"
2333     break
2334   elif test -f "$ac_dir/install.sh"; then
2335     ac_aux_dir=$ac_dir
2336     ac_install_sh="$ac_aux_dir/install.sh -c"
2337     break
2338   elif test -f "$ac_dir/shtool"; then
2339     ac_aux_dir=$ac_dir
2340     ac_install_sh="$ac_aux_dir/shtool install -c"
2341     break
2342   fi
2343 done
2344 if test -z "$ac_aux_dir"; then
2345   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2346 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 # These three variables are undocumented and unsupported,
2351 # and are intended to be withdrawn in a future Autoconf release.
2352 # They can cause serious problems if a builder's source tree is in a directory
2353 # whose full name contains unusual characters.
2354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2356 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2357
2358
2359 # Make sure we can run config.sub.
2360 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2361   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2362 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2363    { (exit 1); exit 1; }; }
2364
2365 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2366 $as_echo_n "checking build system type... " >&6; }
2367 if test "${ac_cv_build+set}" = set; then
2368   $as_echo_n "(cached) " >&6
2369 else
2370   ac_build_alias=$build_alias
2371 test "x$ac_build_alias" = x &&
2372   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2373 test "x$ac_build_alias" = x &&
2374   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2375 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2376    { (exit 1); exit 1; }; }
2377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2378   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2379 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2380    { (exit 1); exit 1; }; }
2381
2382 fi
2383 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2384 $as_echo "$ac_cv_build" >&6; }
2385 case $ac_cv_build in
2386 *-*-*) ;;
2387 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2388 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2389    { (exit 1); exit 1; }; };;
2390 esac
2391 build=$ac_cv_build
2392 ac_save_IFS=$IFS; IFS='-'
2393 set x $ac_cv_build
2394 shift
2395 build_cpu=$1
2396 build_vendor=$2
2397 shift; shift
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2400 build_os=$*
2401 IFS=$ac_save_IFS
2402 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2403
2404
2405 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2406 $as_echo_n "checking host system type... " >&6; }
2407 if test "${ac_cv_host+set}" = set; then
2408   $as_echo_n "(cached) " >&6
2409 else
2410   if test "x$host_alias" = x; then
2411   ac_cv_host=$ac_cv_build
2412 else
2413   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2414     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2415 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2416    { (exit 1); exit 1; }; }
2417 fi
2418
2419 fi
2420 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2421 $as_echo "$ac_cv_host" >&6; }
2422 case $ac_cv_host in
2423 *-*-*) ;;
2424 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2425 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2426    { (exit 1); exit 1; }; };;
2427 esac
2428 host=$ac_cv_host
2429 ac_save_IFS=$IFS; IFS='-'
2430 set x $ac_cv_host
2431 shift
2432 host_cpu=$1
2433 host_vendor=$2
2434 shift; shift
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2437 host_os=$*
2438 IFS=$ac_save_IFS
2439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2440
2441
2442 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2443 $as_echo_n "checking target system type... " >&6; }
2444 if test "${ac_cv_target+set}" = set; then
2445   $as_echo_n "(cached) " >&6
2446 else
2447   if test "x$target_alias" = x; then
2448   ac_cv_target=$ac_cv_host
2449 else
2450   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2451     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2452 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2453    { (exit 1); exit 1; }; }
2454 fi
2455
2456 fi
2457 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2458 $as_echo "$ac_cv_target" >&6; }
2459 case $ac_cv_target in
2460 *-*-*) ;;
2461 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2462 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2463    { (exit 1); exit 1; }; };;
2464 esac
2465 target=$ac_cv_target
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_target
2468 shift
2469 target_cpu=$1
2470 target_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 target_os=$*
2475 IFS=$ac_save_IFS
2476 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2477
2478
2479 # The aliases save the names the user supplied, while $host etc.
2480 # will get canonicalized.
2481 test -n "$target_alias" &&
2482   test "$program_prefix$program_suffix$program_transform_name" = \
2483     NONENONEs,x,x, &&
2484   program_prefix=${target_alias}-
2485
2486 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2487 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2488     # Check whether --enable-maintainer-mode was given.
2489 if test "${enable_maintainer_mode+set}" = set; then
2490   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2491 else
2492   USE_MAINTAINER_MODE=no
2493 fi
2494
2495   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2496 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2497    if test $USE_MAINTAINER_MODE = yes; then
2498   MAINTAINER_MODE_TRUE=
2499   MAINTAINER_MODE_FALSE='#'
2500 else
2501   MAINTAINER_MODE_TRUE='#'
2502   MAINTAINER_MODE_FALSE=
2503 fi
2504
2505   MAINT=$MAINTAINER_MODE_TRUE
2506
2507
2508 # Check whether --enable-silent-rules was given.
2509 if test "${enable_silent_rules+set}" = set; then
2510   enableval=$enable_silent_rules;
2511 fi
2512
2513 case $enable_silent_rules in
2514 yes) AM_DEFAULT_VERBOSITY=0;;
2515 no)  AM_DEFAULT_VERBOSITY=1;;
2516 *)   AM_DEFAULT_VERBOSITY=1;;
2517 esac
2518 AM_BACKSLASH='\'
2519
2520 am__api_version='1.11'
2521
2522 # Find a good install program.  We prefer a C program (faster),
2523 # so one script is as good as another.  But avoid the broken or
2524 # incompatible versions:
2525 # SysV /etc/install, /usr/sbin/install
2526 # SunOS /usr/etc/install
2527 # IRIX /sbin/install
2528 # AIX /bin/install
2529 # AmigaOS /C/install, which installs bootblocks on floppy discs
2530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533 # OS/2's system install, which has a completely different semantic
2534 # ./install, which can be erroneously created by make from ./install.sh.
2535 # Reject install programs that cannot install multiple files.
2536 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2538 if test -z "$INSTALL"; then
2539 if test "${ac_cv_path_install+set}" = set; then
2540   $as_echo_n "(cached) " >&6
2541 else
2542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   # Account for people who put trailing slashes in PATH elements.
2548 case $as_dir/ in
2549   ./ | .// | /cC/* | \
2550   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2552   /usr/ucb/* ) ;;
2553   *)
2554     # OSF1 and SCO ODT 3.0 have their own names for install.
2555     # Don't use installbsd from OSF since it installs stuff as root
2556     # by default.
2557     for ac_prog in ginstall scoinst install; do
2558       for ac_exec_ext in '' $ac_executable_extensions; do
2559         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2560           if test $ac_prog = install &&
2561             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562             # AIX install.  It has an incompatible calling convention.
2563             :
2564           elif test $ac_prog = install &&
2565             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566             # program-specific install script used by HP pwplus--don't use.
2567             :
2568           else
2569             rm -rf conftest.one conftest.two conftest.dir
2570             echo one > conftest.one
2571             echo two > conftest.two
2572             mkdir conftest.dir
2573             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2574               test -s conftest.one && test -s conftest.two &&
2575               test -s conftest.dir/conftest.one &&
2576               test -s conftest.dir/conftest.two
2577             then
2578               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2579               break 3
2580             fi
2581           fi
2582         fi
2583       done
2584     done
2585     ;;
2586 esac
2587
2588 done
2589 IFS=$as_save_IFS
2590
2591 rm -rf conftest.one conftest.two conftest.dir
2592
2593 fi
2594   if test "${ac_cv_path_install+set}" = set; then
2595     INSTALL=$ac_cv_path_install
2596   else
2597     # As a last resort, use the slow shell script.  Don't cache a
2598     # value for INSTALL within a source directory, because that will
2599     # break other packages using the cache if that directory is
2600     # removed, or if the value is a relative name.
2601     INSTALL=$ac_install_sh
2602   fi
2603 fi
2604 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2605 $as_echo "$INSTALL" >&6; }
2606
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2610
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2612
2613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2614
2615 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2616 $as_echo_n "checking whether build environment is sane... " >&6; }
2617 # Just in case
2618 sleep 1
2619 echo timestamp > conftest.file
2620 # Reject unsafe characters in $srcdir or the absolute working directory
2621 # name.  Accept space and tab only in the latter.
2622 am_lf='
2623 '
2624 case `pwd` in
2625   *[\\\"\#\$\&\'\`$am_lf]*)
2626     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2627 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2628    { (exit 1); exit 1; }; };;
2629 esac
2630 case $srcdir in
2631   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2632     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2633 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2634    { (exit 1); exit 1; }; };;
2635 esac
2636
2637 # Do `set' in a subshell so we don't clobber the current shell's
2638 # arguments.  Must try -L first in case configure is actually a
2639 # symlink; some systems play weird games with the mod time of symlinks
2640 # (eg FreeBSD returns the mod time of the symlink's containing
2641 # directory).
2642 if (
2643    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2644    if test "$*" = "X"; then
2645       # -L didn't work.
2646       set X `ls -t "$srcdir/configure" conftest.file`
2647    fi
2648    rm -f conftest.file
2649    if test "$*" != "X $srcdir/configure conftest.file" \
2650       && test "$*" != "X conftest.file $srcdir/configure"; then
2651
2652       # If neither matched, then we have a broken ls.  This can happen
2653       # if, for instance, CONFIG_SHELL is bash and it inherits a
2654       # broken ls alias from the environment.  This has actually
2655       # happened.  Such a system could not be considered "sane".
2656       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2657 alias in your environment" >&5
2658 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2659 alias in your environment" >&2;}
2660    { (exit 1); exit 1; }; }
2661    fi
2662
2663    test "$2" = conftest.file
2664    )
2665 then
2666    # Ok.
2667    :
2668 else
2669    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2670 Check your system clock" >&5
2671 $as_echo "$as_me: error: newly created file is older than distributed files!
2672 Check your system clock" >&2;}
2673    { (exit 1); exit 1; }; }
2674 fi
2675 { $as_echo "$as_me:$LINENO: result: yes" >&5
2676 $as_echo "yes" >&6; }
2677 test "$program_prefix" != NONE &&
2678   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2679 # Use a double $ so make ignores it.
2680 test "$program_suffix" != NONE &&
2681   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2682 # Double any \ or $.
2683 # By default was `s,x,x', remove it if useless.
2684 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2685 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2686
2687 # expand $ac_aux_dir to an absolute path
2688 am_aux_dir=`cd $ac_aux_dir && pwd`
2689
2690 if test x"${MISSING+set}" != xset; then
2691   case $am_aux_dir in
2692   *\ * | *\     *)
2693     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2694   *)
2695     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2696   esac
2697 fi
2698 # Use eval to expand $SHELL
2699 if eval "$MISSING --run true"; then
2700   am_missing_run="$MISSING --run "
2701 else
2702   am_missing_run=
2703   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2704 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2705 fi
2706
2707 if test x"${install_sh}" != xset; then
2708   case $am_aux_dir in
2709   *\ * | *\     *)
2710     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2711   *)
2712     install_sh="\${SHELL} $am_aux_dir/install-sh"
2713   esac
2714 fi
2715
2716 # Installed binaries are usually stripped using `strip' when the user
2717 # run `make install-strip'.  However `strip' might not be the right
2718 # tool to use in cross-compilation environments, therefore Automake
2719 # will honor the `STRIP' environment variable to overrule this program.
2720 if test "$cross_compiling" != no; then
2721   if test -n "$ac_tool_prefix"; then
2722   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}strip; ac_word=$2
2724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_STRIP+set}" = set; then
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test -n "$STRIP"; then
2730   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737   for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2740     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 STRIP=$ac_cv_prog_STRIP
2750 if test -n "$STRIP"; then
2751   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2752 $as_echo "$STRIP" >&6; }
2753 else
2754   { $as_echo "$as_me:$LINENO: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759 fi
2760 if test -z "$ac_cv_prog_STRIP"; then
2761   ac_ct_STRIP=$STRIP
2762   # Extract the first word of "strip", so it can be a program name with args.
2763 set dummy strip; ac_word=$2
2764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2767   $as_echo_n "(cached) " >&6
2768 else
2769   if test -n "$ac_ct_STRIP"; then
2770   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777   for ac_exec_ext in '' $ac_executable_extensions; do
2778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779     ac_cv_prog_ac_ct_STRIP="strip"
2780     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2790 if test -n "$ac_ct_STRIP"; then
2791   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2792 $as_echo "$ac_ct_STRIP" >&6; }
2793 else
2794   { $as_echo "$as_me:$LINENO: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798   if test "x$ac_ct_STRIP" = x; then
2799     STRIP=":"
2800   else
2801     case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2806 esac
2807     STRIP=$ac_ct_STRIP
2808   fi
2809 else
2810   STRIP="$ac_cv_prog_STRIP"
2811 fi
2812
2813 fi
2814 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2815
2816 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2817 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2818 if test -z "$MKDIR_P"; then
2819   if test "${ac_cv_path_mkdir+set}" = set; then
2820   $as_echo_n "(cached) " >&6
2821 else
2822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_prog in mkdir gmkdir; do
2828          for ac_exec_ext in '' $ac_executable_extensions; do
2829            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2830            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2831              'mkdir (GNU coreutils) '* | \
2832              'mkdir (coreutils) '* | \
2833              'mkdir (fileutils) '4.1*)
2834                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2835                break 3;;
2836            esac
2837          done
2838        done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843
2844   if test "${ac_cv_path_mkdir+set}" = set; then
2845     MKDIR_P="$ac_cv_path_mkdir -p"
2846   else
2847     # As a last resort, use the slow shell script.  Don't cache a
2848     # value for MKDIR_P within a source directory, because that will
2849     # break other packages using the cache if that directory is
2850     # removed, or if the value is a relative name.
2851     test -d ./--version && rmdir ./--version
2852     MKDIR_P="$ac_install_sh -d"
2853   fi
2854 fi
2855 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2856 $as_echo "$MKDIR_P" >&6; }
2857
2858 mkdir_p="$MKDIR_P"
2859 case $mkdir_p in
2860   [\\/$]* | ?:[\\/]*) ;;
2861   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2862 esac
2863
2864 for ac_prog in gawk mawk nawk awk
2865 do
2866   # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy $ac_prog; ac_word=$2
2868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_AWK+set}" = set; then
2871   $as_echo_n "(cached) " >&6
2872 else
2873   if test -n "$AWK"; then
2874   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879   IFS=$as_save_IFS
2880   test -z "$as_dir" && as_dir=.
2881   for ac_exec_ext in '' $ac_executable_extensions; do
2882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883     ac_cv_prog_AWK="$ac_prog"
2884     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885     break 2
2886   fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892 fi
2893 AWK=$ac_cv_prog_AWK
2894 if test -n "$AWK"; then
2895   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2896 $as_echo "$AWK" >&6; }
2897 else
2898   { $as_echo "$as_me:$LINENO: result: no" >&5
2899 $as_echo "no" >&6; }
2900 fi
2901
2902
2903   test -n "$AWK" && break
2904 done
2905
2906 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2908 set x ${MAKE-make}
2909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2910 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2911   $as_echo_n "(cached) " >&6
2912 else
2913   cat >conftest.make <<\_ACEOF
2914 SHELL = /bin/sh
2915 all:
2916         @echo '@@@%%%=$(MAKE)=@@@%%%'
2917 _ACEOF
2918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2920   *@@@%%%=?*=@@@%%%*)
2921     eval ac_cv_prog_make_${ac_make}_set=yes;;
2922   *)
2923     eval ac_cv_prog_make_${ac_make}_set=no;;
2924 esac
2925 rm -f conftest.make
2926 fi
2927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2928   { $as_echo "$as_me:$LINENO: result: yes" >&5
2929 $as_echo "yes" >&6; }
2930   SET_MAKE=
2931 else
2932   { $as_echo "$as_me:$LINENO: result: no" >&5
2933 $as_echo "no" >&6; }
2934   SET_MAKE="MAKE=${MAKE-make}"
2935 fi
2936
2937 rm -rf .tst 2>/dev/null
2938 mkdir .tst 2>/dev/null
2939 if test -d .tst; then
2940   am__leading_dot=.
2941 else
2942   am__leading_dot=_
2943 fi
2944 rmdir .tst 2>/dev/null
2945
2946 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2947   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2948   # is not polluted with repeated "-I."
2949   am__isrc=' -I$(srcdir)'
2950   # test to see if srcdir already configured
2951   if test -f $srcdir/config.status; then
2952     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2953 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2954    { (exit 1); exit 1; }; }
2955   fi
2956 fi
2957
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960   if (cygpath --version) >/dev/null 2>/dev/null; then
2961     CYGPATH_W='cygpath -w'
2962   else
2963     CYGPATH_W=echo
2964   fi
2965 fi
2966
2967
2968 # Define the identity of the package.
2969  PACKAGE=$ZFS_META_NAME
2970  VERSION=$ZFS_META_VERSION
2971
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE "$PACKAGE"
2975 _ACEOF
2976
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define VERSION "$VERSION"
2980 _ACEOF
2981
2982 # Some tools Automake needs.
2983
2984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2985
2986
2987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2988
2989
2990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2991
2992
2993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2994
2995
2996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2997
2998 # We need awk for the "check" target.  The system "awk" is bad on
2999 # some platforms.
3000 # Always define AMTAR for backward compatibility.
3001
3002 AMTAR=${AMTAR-"${am_missing_run}tar"}
3003
3004 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers zfs_config.h"
3011
3012
3013 # Find a good install program.  We prefer a C program (faster),
3014 # so one script is as good as another.  But avoid the broken or
3015 # incompatible versions:
3016 # SysV /etc/install, /usr/sbin/install
3017 # SunOS /usr/etc/install
3018 # IRIX /sbin/install
3019 # AIX /bin/install
3020 # AmigaOS /C/install, which installs bootblocks on floppy discs
3021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3024 # OS/2's system install, which has a completely different semantic
3025 # ./install, which can be erroneously created by make from ./install.sh.
3026 # Reject install programs that cannot install multiple files.
3027 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3028 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3029 if test -z "$INSTALL"; then
3030 if test "${ac_cv_path_install+set}" = set; then
3031   $as_echo_n "(cached) " >&6
3032 else
3033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038   # Account for people who put trailing slashes in PATH elements.
3039 case $as_dir/ in
3040   ./ | .// | /cC/* | \
3041   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3042   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3043   /usr/ucb/* ) ;;
3044   *)
3045     # OSF1 and SCO ODT 3.0 have their own names for install.
3046     # Don't use installbsd from OSF since it installs stuff as root
3047     # by default.
3048     for ac_prog in ginstall scoinst install; do
3049       for ac_exec_ext in '' $ac_executable_extensions; do
3050         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3051           if test $ac_prog = install &&
3052             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3053             # AIX install.  It has an incompatible calling convention.
3054             :
3055           elif test $ac_prog = install &&
3056             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3057             # program-specific install script used by HP pwplus--don't use.
3058             :
3059           else
3060             rm -rf conftest.one conftest.two conftest.dir
3061             echo one > conftest.one
3062             echo two > conftest.two
3063             mkdir conftest.dir
3064             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3065               test -s conftest.one && test -s conftest.two &&
3066               test -s conftest.dir/conftest.one &&
3067               test -s conftest.dir/conftest.two
3068             then
3069               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070               break 3
3071             fi
3072           fi
3073         fi
3074       done
3075     done
3076     ;;
3077 esac
3078
3079 done
3080 IFS=$as_save_IFS
3081
3082 rm -rf conftest.one conftest.two conftest.dir
3083
3084 fi
3085   if test "${ac_cv_path_install+set}" = set; then
3086     INSTALL=$ac_cv_path_install
3087   else
3088     # As a last resort, use the slow shell script.  Don't cache a
3089     # value for INSTALL within a source directory, because that will
3090     # break other packages using the cache if that directory is
3091     # removed, or if the value is a relative name.
3092     INSTALL=$ac_install_sh
3093   fi
3094 fi
3095 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3096 $as_echo "$INSTALL" >&6; }
3097
3098 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3099 # It thinks the first close brace ends the variable substitution.
3100 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3101
3102 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3103
3104 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3105
3106 ac_ext=c
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 if test -n "$ac_tool_prefix"; then
3112   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$CC"; then
3120   ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127   for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144   { $as_echo "$as_me:$LINENO: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 if test -z "$ac_cv_prog_CC"; then
3151   ac_ct_CC=$CC
3152   # Extract the first word of "gcc", so it can be a program name with args.
3153 set dummy gcc; ac_word=$2
3154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157   $as_echo_n "(cached) " >&6
3158 else
3159   if test -n "$ac_ct_CC"; then
3160   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167   for ac_exec_ext in '' $ac_executable_extensions; do
3168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169     ac_cv_prog_ac_ct_CC="gcc"
3170     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 $as_echo "$ac_ct_CC" >&6; }
3183 else
3184   { $as_echo "$as_me:$LINENO: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188   if test "x$ac_ct_CC" = x; then
3189     CC=""
3190   else
3191     case $cross_compiling:$ac_tool_warned in
3192 yes:)
3193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3196 esac
3197     CC=$ac_ct_CC
3198   fi
3199 else
3200   CC="$ac_cv_prog_CC"
3201 fi
3202
3203 if test -z "$CC"; then
3204           if test -n "$ac_tool_prefix"; then
3205     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}cc; ac_word=$2
3207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if test "${ac_cv_prog_CC+set}" = set; then
3210   $as_echo_n "(cached) " >&6
3211 else
3212   if test -n "$CC"; then
3213   ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220   for ac_exec_ext in '' $ac_executable_extensions; do
3221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222     ac_cv_prog_CC="${ac_tool_prefix}cc"
3223     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224     break 2
3225   fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3236 else
3237   { $as_echo "$as_me:$LINENO: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242   fi
3243 fi
3244 if test -z "$CC"; then
3245   # Extract the first word of "cc", so it can be a program name with args.
3246 set dummy cc; ac_word=$2
3247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then
3250   $as_echo_n "(cached) " >&6
3251 else
3252   if test -n "$CC"; then
3253   ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255   ac_prog_rejected=no
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261   for ac_exec_ext in '' $ac_executable_extensions; do
3262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264        ac_prog_rejected=yes
3265        continue
3266      fi
3267     ac_cv_prog_CC="cc"
3268     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 if test $ac_prog_rejected = yes; then
3276   # We found a bogon in the path, so make sure we never use it.
3277   set dummy $ac_cv_prog_CC
3278   shift
3279   if test $# != 0; then
3280     # We chose a different compiler from the bogus one.
3281     # However, it has the same basename, so the bogon will be chosen
3282     # first if we set CC to just the basename; use the full file name.
3283     shift
3284     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285   fi
3286 fi
3287 fi
3288 fi
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294   { $as_echo "$as_me:$LINENO: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 fi
3300 if test -z "$CC"; then
3301   if test -n "$ac_tool_prefix"; then
3302   for ac_prog in cl.exe
3303   do
3304     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$CC"; then
3312   ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319   for ac_exec_ext in '' $ac_executable_extensions; do
3320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3322     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336   { $as_echo "$as_me:$LINENO: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341     test -n "$CC" && break
3342   done
3343 fi
3344 if test -z "$CC"; then
3345   ac_ct_CC=$CC
3346   for ac_prog in cl.exe
3347 do
3348   # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3353   $as_echo_n "(cached) " >&6
3354 else
3355   if test -n "$ac_ct_CC"; then
3356   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363   for ac_exec_ext in '' $ac_executable_extensions; do
3364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365     ac_cv_prog_ac_ct_CC="$ac_prog"
3366     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370 done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3376 if test -n "$ac_ct_CC"; then
3377   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3378 $as_echo "$ac_ct_CC" >&6; }
3379 else
3380   { $as_echo "$as_me:$LINENO: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385   test -n "$ac_ct_CC" && break
3386 done
3387
3388   if test "x$ac_ct_CC" = x; then
3389     CC=""
3390   else
3391     case $cross_compiling:$ac_tool_warned in
3392 yes:)
3393 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395 ac_tool_warned=yes ;;
3396 esac
3397     CC=$ac_ct_CC
3398   fi
3399 fi
3400
3401 fi
3402
3403
3404 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3407 See \`config.log' for more details." >&5
3408 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3409 See \`config.log' for more details." >&2;}
3410    { (exit 1); exit 1; }; }; }
3411
3412 # Provide some information about the compiler.
3413 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3414 set X $ac_compile
3415 ac_compiler=$2
3416 { (ac_try="$ac_compiler --version >&5"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423   (eval "$ac_compiler --version >&5") 2>&5
3424   ac_status=$?
3425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }
3427 { (ac_try="$ac_compiler -v >&5"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434   (eval "$ac_compiler -v >&5") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }
3438 { (ac_try="$ac_compiler -V >&5"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445   (eval "$ac_compiler -V >&5") 2>&5
3446   ac_status=$?
3447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); }
3449
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h.  */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h.  */
3456
3457 int
3458 main ()
3459 {
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 ac_clean_files_save=$ac_clean_files
3466 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3467 # Try to create an executable without -o first, disregard a.out.
3468 # It will help us diagnose broken compilers, and finding out an intuition
3469 # of exeext.
3470 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3471 $as_echo_n "checking for C compiler default output file name... " >&6; }
3472 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3473
3474 # The possible output files:
3475 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3476
3477 ac_rmfiles=
3478 for ac_file in $ac_files
3479 do
3480   case $ac_file in
3481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3482     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3483   esac
3484 done
3485 rm -f $ac_rmfiles
3486
3487 if { (ac_try="$ac_link_default"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494   (eval "$ac_link_default") 2>&5
3495   ac_status=$?
3496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); }; then
3498   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3499 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3500 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3501 # so that the user can short-circuit this test for compilers unknown to
3502 # Autoconf.
3503 for ac_file in $ac_files ''
3504 do
3505   test -f "$ac_file" || continue
3506   case $ac_file in
3507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3508         ;;
3509     [ab].out )
3510         # We found the default executable, but exeext='' is most
3511         # certainly right.
3512         break;;
3513     *.* )
3514         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3515         then :; else
3516            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3517         fi
3518         # We set ac_cv_exeext here because the later test for it is not
3519         # safe: cross compilers may not add the suffix if given an `-o'
3520         # argument, so we may need to know it at that point already.
3521         # Even if this section looks crufty: it has the advantage of
3522         # actually working.
3523         break;;
3524     * )
3525         break;;
3526   esac
3527 done
3528 test "$ac_cv_exeext" = no && ac_cv_exeext=
3529
3530 else
3531   ac_file=''
3532 fi
3533
3534 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3535 $as_echo "$ac_file" >&6; }
3536 if test -z "$ac_file"; then
3537   $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3543 See \`config.log' for more details." >&5
3544 $as_echo "$as_me: error: C compiler cannot create executables
3545 See \`config.log' for more details." >&2;}
3546    { (exit 77); exit 77; }; }; }
3547 fi
3548
3549 ac_exeext=$ac_cv_exeext
3550
3551 # Check that the compiler produces executables we can run.  If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3554 $as_echo_n "checking whether the C compiler works... " >&6; }
3555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3556 # If not cross compiling, check that we can run a simple program.
3557 if test "$cross_compiling" != yes; then
3558   if { ac_try='./$ac_file'
3559   { (case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3564 $as_echo "$ac_try_echo") >&5
3565   (eval "$ac_try") 2>&5
3566   ac_status=$?
3567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); }; }; then
3569     cross_compiling=no
3570   else
3571     if test "$cross_compiling" = maybe; then
3572         cross_compiling=yes
3573     else
3574         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3577 If you meant to cross compile, use \`--host'.
3578 See \`config.log' for more details." >&5
3579 $as_echo "$as_me: error: cannot run C compiled programs.
3580 If you meant to cross compile, use \`--host'.
3581 See \`config.log' for more details." >&2;}
3582    { (exit 1); exit 1; }; }; }
3583     fi
3584   fi
3585 fi
3586 { $as_echo "$as_me:$LINENO: result: yes" >&5
3587 $as_echo "yes" >&6; }
3588
3589 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3590 ac_clean_files=$ac_clean_files_save
3591 # Check that the compiler produces executables we can run.  If not, either
3592 # the compiler is broken, or we cross compile.
3593 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3594 $as_echo_n "checking whether we are cross compiling... " >&6; }
3595 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3596 $as_echo "$cross_compiling" >&6; }
3597
3598 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3599 $as_echo_n "checking for suffix of executables... " >&6; }
3600 if { (ac_try="$ac_link"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3606 $as_echo "$ac_try_echo") >&5
3607   (eval "$ac_link") 2>&5
3608   ac_status=$?
3609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; then
3611   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3612 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3613 # work properly (i.e., refer to `conftest.exe'), while it won't with
3614 # `rm'.
3615 for ac_file in conftest.exe conftest conftest.*; do
3616   test -f "$ac_file" || continue
3617   case $ac_file in
3618     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620           break;;
3621     * ) break;;
3622   esac
3623 done
3624 else
3625   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3628 See \`config.log' for more details." >&5
3629 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3630 See \`config.log' for more details." >&2;}
3631    { (exit 1); exit 1; }; }; }
3632 fi
3633
3634 rm -f conftest$ac_cv_exeext
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3636 $as_echo "$ac_cv_exeext" >&6; }
3637
3638 rm -f conftest.$ac_ext
3639 EXEEXT=$ac_cv_exeext
3640 ac_exeext=$EXEEXT
3641 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3642 $as_echo_n "checking for suffix of object files... " >&6; }
3643 if test "${ac_cv_objext+set}" = set; then
3644   $as_echo_n "(cached) " >&6
3645 else
3646   cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.o conftest.obj
3662 if { (ac_try="$ac_compile"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3668 $as_echo "$ac_try_echo") >&5
3669   (eval "$ac_compile") 2>&5
3670   ac_status=$?
3671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; then
3673   for ac_file in conftest.o conftest.obj conftest.*; do
3674   test -f "$ac_file" || continue;
3675   case $ac_file in
3676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3678        break;;
3679   esac
3680 done
3681 else
3682   $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3688 See \`config.log' for more details." >&5
3689 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3690 See \`config.log' for more details." >&2;}
3691    { (exit 1); exit 1; }; }; }
3692 fi
3693
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3695 fi
3696 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3703   $as_echo_n "(cached) " >&6
3704 else
3705   cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711
3712 int
3713 main ()
3714 {
3715 #ifndef __GNUC__
3716        choke me
3717 #endif
3718
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (ac_try="$ac_compile"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3730 $as_echo "$ac_try_echo") >&5
3731   (eval "$ac_compile") 2>conftest.er1
3732   ac_status=$?
3733   grep -v '^ *+' conftest.er1 >conftest.err
3734   rm -f conftest.er1
3735   cat conftest.err >&5
3736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); } && {
3738          test -z "$ac_c_werror_flag" ||
3739          test ! -s conftest.err
3740        } && test -s conftest.$ac_objext; then
3741   ac_compiler_gnu=yes
3742 else
3743   $as_echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746         ac_compiler_gnu=no
3747 fi
3748
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3751
3752 fi
3753 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3754 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3755 if test $ac_compiler_gnu = yes; then
3756   GCC=yes
3757 else
3758   GCC=
3759 fi
3760 ac_test_CFLAGS=${CFLAGS+set}
3761 ac_save_CFLAGS=$CFLAGS
3762 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3763 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3764 if test "${ac_cv_prog_cc_g+set}" = set; then
3765   $as_echo_n "(cached) " >&6
3766 else
3767   ac_save_c_werror_flag=$ac_c_werror_flag
3768    ac_c_werror_flag=yes
3769    ac_cv_prog_cc_g=no
3770    CFLAGS="-g"
3771    cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777
3778 int
3779 main ()
3780 {
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3788 case "(($ac_try" in
3789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790   *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793 $as_echo "$ac_try_echo") >&5
3794   (eval "$ac_compile") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } && {
3801          test -z "$ac_c_werror_flag" ||
3802          test ! -s conftest.err
3803        } && test -s conftest.$ac_objext; then
3804   ac_cv_prog_cc_g=yes
3805 else
3806   $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809         CFLAGS=""
3810       cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833   (eval "$ac_compile") 2>conftest.er1
3834   ac_status=$?
3835   grep -v '^ *+' conftest.er1 >conftest.err
3836   rm -f conftest.er1
3837   cat conftest.err >&5
3838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } && {
3840          test -z "$ac_c_werror_flag" ||
3841          test ! -s conftest.err
3842        } && test -s conftest.$ac_objext; then
3843   :
3844 else
3845   $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848         ac_c_werror_flag=$ac_save_c_werror_flag
3849          CFLAGS="-g"
3850          cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h.  */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h.  */
3856
3857 int
3858 main ()
3859 {
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3872 $as_echo "$ac_try_echo") >&5
3873   (eval "$ac_compile") 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } && {
3880          test -z "$ac_c_werror_flag" ||
3881          test ! -s conftest.err
3882        } && test -s conftest.$ac_objext; then
3883   ac_cv_prog_cc_g=yes
3884 else
3885   $as_echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888
3889 fi
3890
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 fi
3893
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 fi
3896
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898    ac_c_werror_flag=$ac_save_c_werror_flag
3899 fi
3900 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3901 $as_echo "$ac_cv_prog_cc_g" >&6; }
3902 if test "$ac_test_CFLAGS" = set; then
3903   CFLAGS=$ac_save_CFLAGS
3904 elif test $ac_cv_prog_cc_g = yes; then
3905   if test "$GCC" = yes; then
3906     CFLAGS="-g -O2"
3907   else
3908     CFLAGS="-g"
3909   fi
3910 else
3911   if test "$GCC" = yes; then
3912     CFLAGS="-O2"
3913   else
3914     CFLAGS=
3915   fi
3916 fi
3917 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3919 if test "${ac_cv_prog_cc_c89+set}" = set; then
3920   $as_echo_n "(cached) " >&6
3921 else
3922   ac_cv_prog_cc_c89=no
3923 ac_save_CC=$CC
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <stdarg.h>
3931 #include <stdio.h>
3932 #include <sys/types.h>
3933 #include <sys/stat.h>
3934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3935 struct buf { int x; };
3936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3937 static char *e (p, i)
3938      char **p;
3939      int i;
3940 {
3941   return p[i];
3942 }
3943 static char *f (char * (*g) (char **, int), char **p, ...)
3944 {
3945   char *s;
3946   va_list v;
3947   va_start (v,p);
3948   s = g (p, va_arg (v,int));
3949   va_end (v);
3950   return s;
3951 }
3952
3953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3954    function prototypes and stuff, but not '\xHH' hex character constants.
3955    These don't provoke an error unfortunately, instead are silently treated
3956    as 'x'.  The following induces an error, until -std is added to get
3957    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3958    array size at least.  It's necessary to write '\x00'==0 to get something
3959    that's true only with -std.  */
3960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3961
3962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3963    inside strings and character constants.  */
3964 #define FOO(x) 'x'
3965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3966
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3971 int argc;
3972 char **argv;
3973 int
3974 main ()
3975 {
3976 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3982         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983 do
3984   CC="$ac_save_CC $ac_arg"
3985   rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3987 case "(($ac_try" in
3988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989   *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3992 $as_echo "$ac_try_echo") >&5
3993   (eval "$ac_compile") 2>conftest.er1
3994   ac_status=$?
3995   grep -v '^ *+' conftest.er1 >conftest.err
3996   rm -f conftest.er1
3997   cat conftest.err >&5
3998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } && {
4000          test -z "$ac_c_werror_flag" ||
4001          test ! -s conftest.err
4002        } && test -s conftest.$ac_objext; then
4003   ac_cv_prog_cc_c89=$ac_arg
4004 else
4005   $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008
4009 fi
4010
4011 rm -f core conftest.err conftest.$ac_objext
4012   test "x$ac_cv_prog_cc_c89" != "xno" && break
4013 done
4014 rm -f conftest.$ac_ext
4015 CC=$ac_save_CC
4016
4017 fi
4018 # AC_CACHE_VAL
4019 case "x$ac_cv_prog_cc_c89" in
4020   x)
4021     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4023   xno)
4024     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4026   *)
4027     CC="$CC $ac_cv_prog_cc_c89"
4028     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4030 esac
4031
4032
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 DEPDIR="${am__leading_dot}deps"
4039
4040 ac_config_commands="$ac_config_commands depfiles"
4041
4042
4043 am_make=${MAKE-make}
4044 cat > confinc << 'END'
4045 am__doit:
4046         @echo this is the am__doit target
4047 .PHONY: am__doit
4048 END
4049 # If we don't find an include directive, just comment out the code.
4050 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4051 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4052 am__include="#"
4053 am__quote=
4054 _am_result=none
4055 # First try GNU make style include.
4056 echo "include confinc" > confmf
4057 # Ignore all kinds of additional output from `make'.
4058 case `$am_make -s -f confmf 2> /dev/null` in #(
4059 *the\ am__doit\ target*)
4060   am__include=include
4061   am__quote=
4062   _am_result=GNU
4063   ;;
4064 esac
4065 # Now try BSD make style include.
4066 if test "$am__include" = "#"; then
4067    echo '.include "confinc"' > confmf
4068    case `$am_make -s -f confmf 2> /dev/null` in #(
4069    *the\ am__doit\ target*)
4070      am__include=.include
4071      am__quote="\""
4072      _am_result=BSD
4073      ;;
4074    esac
4075 fi
4076
4077
4078 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4079 $as_echo "$_am_result" >&6; }
4080 rm -f confinc confmf
4081
4082 # Check whether --enable-dependency-tracking was given.
4083 if test "${enable_dependency_tracking+set}" = set; then
4084   enableval=$enable_dependency_tracking;
4085 fi
4086
4087 if test "x$enable_dependency_tracking" != xno; then
4088   am_depcomp="$ac_aux_dir/depcomp"
4089   AMDEPBACKSLASH='\'
4090 fi
4091  if test "x$enable_dependency_tracking" != xno; then
4092   AMDEP_TRUE=
4093   AMDEP_FALSE='#'
4094 else
4095   AMDEP_TRUE='#'
4096   AMDEP_FALSE=
4097 fi
4098
4099
4100
4101 depcc="$CC"   am_compiler_list=
4102
4103 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4104 $as_echo_n "checking dependency style of $depcc... " >&6; }
4105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4106   $as_echo_n "(cached) " >&6
4107 else
4108   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4109   # We make a subdir and do the tests there.  Otherwise we can end up
4110   # making bogus files that we don't know about and never remove.  For
4111   # instance it was reported that on HP-UX the gcc test will end up
4112   # making a dummy file named `D' -- because `-MD' means `put the output
4113   # in D'.
4114   mkdir conftest.dir
4115   # Copy depcomp to subdir because otherwise we won't find it if we're
4116   # using a relative directory.
4117   cp "$am_depcomp" conftest.dir
4118   cd conftest.dir
4119   # We will build objects and dependencies in a subdirectory because
4120   # it helps to detect inapplicable dependency modes.  For instance
4121   # both Tru64's cc and ICC support -MD to output dependencies as a
4122   # side effect of compilation, but ICC will put the dependencies in
4123   # the current directory while Tru64 will put them in the object
4124   # directory.
4125   mkdir sub
4126
4127   am_cv_CC_dependencies_compiler_type=none
4128   if test "$am_compiler_list" = ""; then
4129      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4130   fi
4131   am__universal=false
4132   case " $depcc " in #(
4133      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4134      esac
4135
4136   for depmode in $am_compiler_list; do
4137     # Setup a source with many dependencies, because some compilers
4138     # like to wrap large dependency lists on column 80 (with \), and
4139     # we should not choose a depcomp mode which is confused by this.
4140     #
4141     # We need to recreate these files for each test, as the compiler may
4142     # overwrite some of them when testing with obscure command lines.
4143     # This happens at least with the AIX C compiler.
4144     : > sub/conftest.c
4145     for i in 1 2 3 4 5 6; do
4146       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4147       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4148       # Solaris 8's {/usr,}/bin/sh.
4149       touch sub/conftst$i.h
4150     done
4151     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4152
4153     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4154     # mode.  It turns out that the SunPro C++ compiler does not properly
4155     # handle `-M -o', and we need to detect this.  Also, some Intel
4156     # versions had trouble with output in subdirs
4157     am__obj=sub/conftest.${OBJEXT-o}
4158     am__minus_obj="-o $am__obj"
4159     case $depmode in
4160     gcc)
4161       # This depmode causes a compiler race in universal mode.
4162       test "$am__universal" = false || continue
4163       ;;
4164     nosideeffect)
4165       # after this tag, mechanisms are not by side-effect, so they'll
4166       # only be used when explicitly requested
4167       if test "x$enable_dependency_tracking" = xyes; then
4168         continue
4169       else
4170         break
4171       fi
4172       ;;
4173     msvisualcpp | msvcmsys)
4174       # This compiler won't grok `-c -o', but also, the minuso test has
4175       # not run yet.  These depmodes are late enough in the game, and
4176       # so weak that their functioning should not be impacted.
4177       am__obj=conftest.${OBJEXT-o}
4178       am__minus_obj=
4179       ;;
4180     none) break ;;
4181     esac
4182     if depmode=$depmode \
4183        source=sub/conftest.c object=$am__obj \
4184        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4185        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4186          >/dev/null 2>conftest.err &&
4187        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4188        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4189        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4190        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4191       # icc doesn't choke on unknown options, it will just issue warnings
4192       # or remarks (even with -Werror).  So we grep stderr for any message
4193       # that says an option was ignored or not supported.
4194       # When given -MP, icc 7.0 and 7.1 complain thusly:
4195       #   icc: Command line warning: ignoring option '-M'; no argument required
4196       # The diagnosis changed in icc 8.0:
4197       #   icc: Command line remark: option '-MP' not supported
4198       if (grep 'ignoring option' conftest.err ||
4199           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4200         am_cv_CC_dependencies_compiler_type=$depmode
4201         break
4202       fi
4203     fi
4204   done
4205
4206   cd ..
4207   rm -rf conftest.dir
4208 else
4209   am_cv_CC_dependencies_compiler_type=none
4210 fi
4211
4212 fi
4213 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4214 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4215 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4216
4217  if
4218   test "x$enable_dependency_tracking" != xno \
4219   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4220   am__fastdepCC_TRUE=
4221   am__fastdepCC_FALSE='#'
4222 else
4223   am__fastdepCC_TRUE='#'
4224   am__fastdepCC_FALSE=
4225 fi
4226
4227
4228 case `pwd` in
4229   *\ * | *\     *)
4230     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4231 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4232 esac
4233
4234
4235
4236 macro_version='2.2.6b'
4237 macro_revision='1.3017'
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251 ltmain="$ac_aux_dir/ltmain.sh"
4252
4253 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4254 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4255 if test "${ac_cv_path_SED+set}" = set; then
4256   $as_echo_n "(cached) " >&6
4257 else
4258             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4259      for ac_i in 1 2 3 4 5 6 7; do
4260        ac_script="$ac_script$as_nl$ac_script"
4261      done
4262      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4263      $as_unset ac_script || ac_script=
4264      if test -z "$SED"; then
4265   ac_path_SED_found=false
4266   # Loop through the user's path and test for each of PROGNAME-LIST
4267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_prog in sed gsed; do
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4275       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4276 # Check for GNU ac_path_SED and select it if it is found.
4277   # Check for GNU $ac_path_SED
4278 case `"$ac_path_SED" --version 2>&1` in
4279 *GNU*)
4280   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4281 *)
4282   ac_count=0
4283   $as_echo_n 0123456789 >"conftest.in"
4284   while :
4285   do
4286     cat "conftest.in" "conftest.in" >"conftest.tmp"
4287     mv "conftest.tmp" "conftest.in"
4288     cp "conftest.in" "conftest.nl"
4289     $as_echo '' >> "conftest.nl"
4290     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292     ac_count=`expr $ac_count + 1`
4293     if test $ac_count -gt ${ac_path_SED_max-0}; then
4294       # Best one so far, save it but keep looking for a better one
4295       ac_cv_path_SED="$ac_path_SED"
4296       ac_path_SED_max=$ac_count
4297     fi
4298     # 10*(2^10) chars as input seems more than enough
4299     test $ac_count -gt 10 && break
4300   done
4301   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302 esac
4303
4304       $ac_path_SED_found && break 3
4305     done
4306   done
4307 done
4308 IFS=$as_save_IFS
4309   if test -z "$ac_cv_path_SED"; then
4310     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4311 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4312    { (exit 1); exit 1; }; }
4313   fi
4314 else
4315   ac_cv_path_SED=$SED
4316 fi
4317
4318 fi
4319 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4320 $as_echo "$ac_cv_path_SED" >&6; }
4321  SED="$ac_cv_path_SED"
4322   rm -f conftest.sed
4323
4324 test -z "$SED" && SED=sed
4325 Xsed="$SED -e 1s/^X//"
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4338 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4339 if test "${ac_cv_path_GREP+set}" = set; then
4340   $as_echo_n "(cached) " >&6
4341 else
4342   if test -z "$GREP"; then
4343   ac_path_GREP_found=false
4344   # Loop through the user's path and test for each of PROGNAME-LIST
4345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for ac_prog in grep ggrep; do
4351     for ac_exec_ext in '' $ac_executable_extensions; do
4352       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4353       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4354 # Check for GNU ac_path_GREP and select it if it is found.
4355   # Check for GNU $ac_path_GREP
4356 case `"$ac_path_GREP" --version 2>&1` in
4357 *GNU*)
4358   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4359 *)
4360   ac_count=0
4361   $as_echo_n 0123456789 >"conftest.in"
4362   while :
4363   do
4364     cat "conftest.in" "conftest.in" >"conftest.tmp"
4365     mv "conftest.tmp" "conftest.in"
4366     cp "conftest.in" "conftest.nl"
4367     $as_echo 'GREP' >> "conftest.nl"
4368     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370     ac_count=`expr $ac_count + 1`
4371     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4372       # Best one so far, save it but keep looking for a better one
4373       ac_cv_path_GREP="$ac_path_GREP"
4374       ac_path_GREP_max=$ac_count
4375     fi
4376     # 10*(2^10) chars as input seems more than enough
4377     test $ac_count -gt 10 && break
4378   done
4379   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4381
4382       $ac_path_GREP_found && break 3
4383     done
4384   done
4385 done
4386 IFS=$as_save_IFS
4387   if test -z "$ac_cv_path_GREP"; then
4388     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4389 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4390    { (exit 1); exit 1; }; }
4391   fi
4392 else
4393   ac_cv_path_GREP=$GREP
4394 fi
4395
4396 fi
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4398 $as_echo "$ac_cv_path_GREP" >&6; }
4399  GREP="$ac_cv_path_GREP"
4400
4401
4402 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4403 $as_echo_n "checking for egrep... " >&6; }
4404 if test "${ac_cv_path_EGREP+set}" = set; then
4405   $as_echo_n "(cached) " >&6
4406 else
4407   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4408    then ac_cv_path_EGREP="$GREP -E"
4409    else
4410      if test -z "$EGREP"; then
4411   ac_path_EGREP_found=false
4412   # Loop through the user's path and test for each of PROGNAME-LIST
4413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418   for ac_prog in egrep; do
4419     for ac_exec_ext in '' $ac_executable_extensions; do
4420       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4421       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4422 # Check for GNU ac_path_EGREP and select it if it is found.
4423   # Check for GNU $ac_path_EGREP
4424 case `"$ac_path_EGREP" --version 2>&1` in
4425 *GNU*)
4426   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4427 *)
4428   ac_count=0
4429   $as_echo_n 0123456789 >"conftest.in"
4430   while :
4431   do
4432     cat "conftest.in" "conftest.in" >"conftest.tmp"
4433     mv "conftest.tmp" "conftest.in"
4434     cp "conftest.in" "conftest.nl"
4435     $as_echo 'EGREP' >> "conftest.nl"
4436     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438     ac_count=`expr $ac_count + 1`
4439     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4440       # Best one so far, save it but keep looking for a better one
4441       ac_cv_path_EGREP="$ac_path_EGREP"
4442       ac_path_EGREP_max=$ac_count
4443     fi
4444     # 10*(2^10) chars as input seems more than enough
4445     test $ac_count -gt 10 && break
4446   done
4447   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448 esac
4449
4450       $ac_path_EGREP_found && break 3
4451     done
4452   done
4453 done
4454 IFS=$as_save_IFS
4455   if test -z "$ac_cv_path_EGREP"; then
4456     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4457 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4458    { (exit 1); exit 1; }; }
4459   fi
4460 else
4461   ac_cv_path_EGREP=$EGREP
4462 fi
4463
4464    fi
4465 fi
4466 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4467 $as_echo "$ac_cv_path_EGREP" >&6; }
4468  EGREP="$ac_cv_path_EGREP"
4469
4470
4471 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4472 $as_echo_n "checking for fgrep... " >&6; }
4473 if test "${ac_cv_path_FGREP+set}" = set; then
4474   $as_echo_n "(cached) " >&6
4475 else
4476   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4477    then ac_cv_path_FGREP="$GREP -F"
4478    else
4479      if test -z "$FGREP"; then
4480   ac_path_FGREP_found=false
4481   # Loop through the user's path and test for each of PROGNAME-LIST
4482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_prog in fgrep; do
4488     for ac_exec_ext in '' $ac_executable_extensions; do
4489       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4490       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4491 # Check for GNU ac_path_FGREP and select it if it is found.
4492   # Check for GNU $ac_path_FGREP
4493 case `"$ac_path_FGREP" --version 2>&1` in
4494 *GNU*)
4495   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4496 *)
4497   ac_count=0
4498   $as_echo_n 0123456789 >"conftest.in"
4499   while :
4500   do
4501     cat "conftest.in" "conftest.in" >"conftest.tmp"
4502     mv "conftest.tmp" "conftest.in"
4503     cp "conftest.in" "conftest.nl"
4504     $as_echo 'FGREP' >> "conftest.nl"
4505     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507     ac_count=`expr $ac_count + 1`
4508     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4509       # Best one so far, save it but keep looking for a better one
4510       ac_cv_path_FGREP="$ac_path_FGREP"
4511       ac_path_FGREP_max=$ac_count
4512     fi
4513     # 10*(2^10) chars as input seems more than enough
4514     test $ac_count -gt 10 && break
4515   done
4516   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517 esac
4518
4519       $ac_path_FGREP_found && break 3
4520     done
4521   done
4522 done
4523 IFS=$as_save_IFS
4524   if test -z "$ac_cv_path_FGREP"; then
4525     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4526 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4527    { (exit 1); exit 1; }; }
4528   fi
4529 else
4530   ac_cv_path_FGREP=$FGREP
4531 fi
4532
4533    fi
4534 fi
4535 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4536 $as_echo "$ac_cv_path_FGREP" >&6; }
4537  FGREP="$ac_cv_path_FGREP"
4538
4539
4540 test -z "$GREP" && GREP=grep
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560 # Check whether --with-gnu-ld was given.
4561 if test "${with_gnu_ld+set}" = set; then
4562   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4563 else
4564   with_gnu_ld=no
4565 fi
4566
4567 ac_prog=ld
4568 if test "$GCC" = yes; then
4569   # Check if gcc -print-prog-name=ld gives a path.
4570   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4571 $as_echo_n "checking for ld used by $CC... " >&6; }
4572   case $host in
4573   *-*-mingw*)
4574     # gcc leaves a trailing carriage return which upsets mingw
4575     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4576   *)
4577     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4578   esac
4579   case $ac_prog in
4580     # Accept absolute paths.
4581     [\\/]* | ?:[\\/]*)
4582       re_direlt='/[^/][^/]*/\.\./'
4583       # Canonicalize the pathname of ld
4584       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4585       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4586         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4587       done
4588       test -z "$LD" && LD="$ac_prog"
4589       ;;
4590   "")
4591     # If it fails, then pretend we aren't using GCC.
4592     ac_prog=ld
4593     ;;
4594   *)
4595     # If it is relative, then search for the first ld in PATH.
4596     with_gnu_ld=unknown
4597     ;;
4598   esac
4599 elif test "$with_gnu_ld" = yes; then
4600   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4601 $as_echo_n "checking for GNU ld... " >&6; }
4602 else
4603   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4604 $as_echo_n "checking for non-GNU ld... " >&6; }
4605 fi
4606 if test "${lt_cv_path_LD+set}" = set; then
4607   $as_echo_n "(cached) " >&6
4608 else
4609   if test -z "$LD"; then
4610   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4611   for ac_dir in $PATH; do
4612     IFS="$lt_save_ifs"
4613     test -z "$ac_dir" && ac_dir=.
4614     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4615       lt_cv_path_LD="$ac_dir/$ac_prog"
4616       # Check to see if the program is GNU ld.  I'd rather use --version,
4617       # but apparently some variants of GNU ld only accept -v.
4618       # Break only if it was the GNU/non-GNU ld that we prefer.
4619       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4620       *GNU* | *'with BFD'*)
4621         test "$with_gnu_ld" != no && break
4622         ;;
4623       *)
4624         test "$with_gnu_ld" != yes && break
4625         ;;
4626       esac
4627     fi
4628   done
4629   IFS="$lt_save_ifs"
4630 else
4631   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4632 fi
4633 fi
4634
4635 LD="$lt_cv_path_LD"
4636 if test -n "$LD"; then
4637   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4638 $as_echo "$LD" >&6; }
4639 else
4640   { $as_echo "$as_me:$LINENO: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4644 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4645    { (exit 1); exit 1; }; }
4646 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4648 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4649   $as_echo_n "(cached) " >&6
4650 else
4651   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4652 case `$LD -v 2>&1 </dev/null` in
4653 *GNU* | *'with BFD'*)
4654   lt_cv_prog_gnu_ld=yes
4655   ;;
4656 *)
4657   lt_cv_prog_gnu_ld=no
4658   ;;
4659 esac
4660 fi
4661 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4662 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4663 with_gnu_ld=$lt_cv_prog_gnu_ld
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4674 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4675 if test "${lt_cv_path_NM+set}" = set; then
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if test -n "$NM"; then
4679   # Let the user override the test.
4680   lt_cv_path_NM="$NM"
4681 else
4682   lt_nm_to_check="${ac_tool_prefix}nm"
4683   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4684     lt_nm_to_check="$lt_nm_to_check nm"
4685   fi
4686   for lt_tmp_nm in $lt_nm_to_check; do
4687     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4688     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4689       IFS="$lt_save_ifs"
4690       test -z "$ac_dir" && ac_dir=.
4691       tmp_nm="$ac_dir/$lt_tmp_nm"
4692       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4693         # Check to see if the nm accepts a BSD-compat flag.
4694         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4695         #   nm: unknown option "B" ignored
4696         # Tru64's nm complains that /dev/null is an invalid object file
4697         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4698         */dev/null* | *'Invalid file or object type'*)
4699           lt_cv_path_NM="$tmp_nm -B"
4700           break
4701           ;;
4702         *)
4703           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4704           */dev/null*)
4705             lt_cv_path_NM="$tmp_nm -p"
4706             break
4707             ;;
4708           *)
4709             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4710             continue # so that we can try to find one that supports BSD flags
4711             ;;
4712           esac
4713           ;;
4714         esac
4715       fi
4716     done
4717     IFS="$lt_save_ifs"
4718   done
4719   : ${lt_cv_path_NM=no}
4720 fi
4721 fi
4722 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4723 $as_echo "$lt_cv_path_NM" >&6; }
4724 if test "$lt_cv_path_NM" != "no"; then
4725   NM="$lt_cv_path_NM"
4726 else
4727   # Didn't find any BSD compatible name lister, look for dumpbin.
4728   if test -n "$ac_tool_prefix"; then
4729   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4730   do
4731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4736   $as_echo_n "(cached) " >&6
4737 else
4738   if test -n "$DUMPBIN"; then
4739   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4749     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756 fi
4757 fi
4758 DUMPBIN=$ac_cv_prog_DUMPBIN
4759 if test -n "$DUMPBIN"; then
4760   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4761 $as_echo "$DUMPBIN" >&6; }
4762 else
4763   { $as_echo "$as_me:$LINENO: result: no" >&5
4764 $as_echo "no" >&6; }
4765 fi
4766
4767
4768     test -n "$DUMPBIN" && break
4769   done
4770 fi
4771 if test -z "$DUMPBIN"; then
4772   ac_ct_DUMPBIN=$DUMPBIN
4773   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4774 do
4775   # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy $ac_prog; ac_word=$2
4777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4780   $as_echo_n "(cached) " >&6
4781 else
4782   if test -n "$ac_ct_DUMPBIN"; then
4783   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790   for ac_exec_ext in '' $ac_executable_extensions; do
4791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4793     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4803 if test -n "$ac_ct_DUMPBIN"; then
4804   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4805 $as_echo "$ac_ct_DUMPBIN" >&6; }
4806 else
4807   { $as_echo "$as_me:$LINENO: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812   test -n "$ac_ct_DUMPBIN" && break
4813 done
4814
4815   if test "x$ac_ct_DUMPBIN" = x; then
4816     DUMPBIN=":"
4817   else
4818     case $cross_compiling:$ac_tool_warned in
4819 yes:)
4820 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4823 esac
4824     DUMPBIN=$ac_ct_DUMPBIN
4825   fi
4826 fi
4827
4828
4829   if test "$DUMPBIN" != ":"; then
4830     NM="$DUMPBIN"
4831   fi
4832 fi
4833 test -z "$NM" && NM=nm
4834
4835
4836
4837
4838
4839
4840 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4841 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4842 if test "${lt_cv_nm_interface+set}" = set; then
4843   $as_echo_n "(cached) " >&6
4844 else
4845   lt_cv_nm_interface="BSD nm"
4846   echo "int some_variable = 0;" > conftest.$ac_ext
4847   (eval echo "\"\$as_me:4847: $ac_compile\"" >&5)
4848   (eval "$ac_compile" 2>conftest.err)
4849   cat conftest.err >&5
4850   (eval echo "\"\$as_me:4850: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4851   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4852   cat conftest.err >&5
4853   (eval echo "\"\$as_me:4853: output\"" >&5)
4854   cat conftest.out >&5
4855   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4856     lt_cv_nm_interface="MS dumpbin"
4857   fi
4858   rm -f conftest*
4859 fi
4860 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4861 $as_echo "$lt_cv_nm_interface" >&6; }
4862
4863 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4864 $as_echo_n "checking whether ln -s works... " >&6; }
4865 LN_S=$as_ln_s
4866 if test "$LN_S" = "ln -s"; then
4867   { $as_echo "$as_me:$LINENO: result: yes" >&5
4868 $as_echo "yes" >&6; }
4869 else
4870   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4871 $as_echo "no, using $LN_S" >&6; }
4872 fi
4873
4874 # find the maximum length of command line arguments
4875 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4876 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4877 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4878   $as_echo_n "(cached) " >&6
4879 else
4880     i=0
4881   teststring="ABCD"
4882
4883   case $build_os in
4884   msdosdjgpp*)
4885     # On DJGPP, this test can blow up pretty badly due to problems in libc
4886     # (any single argument exceeding 2000 bytes causes a buffer overrun
4887     # during glob expansion).  Even if it were fixed, the result of this
4888     # check would be larger than it should be.
4889     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4890     ;;
4891
4892   gnu*)
4893     # Under GNU Hurd, this test is not required because there is
4894     # no limit to the length of command line arguments.
4895     # Libtool will interpret -1 as no limit whatsoever
4896     lt_cv_sys_max_cmd_len=-1;
4897     ;;
4898
4899   cygwin* | mingw* | cegcc*)
4900     # On Win9x/ME, this test blows up -- it succeeds, but takes
4901     # about 5 minutes as the teststring grows exponentially.
4902     # Worse, since 9x/ME are not pre-emptively multitasking,
4903     # you end up with a "frozen" computer, even though with patience
4904     # the test eventually succeeds (with a max line length of 256k).
4905     # Instead, let's just punt: use the minimum linelength reported by
4906     # all of the supported platforms: 8192 (on NT/2K/XP).
4907     lt_cv_sys_max_cmd_len=8192;
4908     ;;
4909
4910   amigaos*)
4911     # On AmigaOS with pdksh, this test takes hours, literally.
4912     # So we just punt and use a minimum line length of 8192.
4913     lt_cv_sys_max_cmd_len=8192;
4914     ;;
4915
4916   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4917     # This has been around since 386BSD, at least.  Likely further.
4918     if test -x /sbin/sysctl; then
4919       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4920     elif test -x /usr/sbin/sysctl; then
4921       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4922     else
4923       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4924     fi
4925     # And add a safety zone
4926     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4927     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4928     ;;
4929
4930   interix*)
4931     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4932     lt_cv_sys_max_cmd_len=196608
4933     ;;
4934
4935   osf*)
4936     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4937     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4938     # nice to cause kernel panics so lets avoid the loop below.
4939     # First set a reasonable default.
4940     lt_cv_sys_max_cmd_len=16384
4941     #
4942     if test -x /sbin/sysconfig; then
4943       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4944         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4945       esac
4946     fi
4947     ;;
4948   sco3.2v5*)
4949     lt_cv_sys_max_cmd_len=102400
4950     ;;
4951   sysv5* | sco5v6* | sysv4.2uw2*)
4952     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4953     if test -n "$kargmax"; then
4954       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4955     else
4956       lt_cv_sys_max_cmd_len=32768
4957     fi
4958     ;;
4959   *)
4960     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4961     if test -n "$lt_cv_sys_max_cmd_len"; then
4962       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4963       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4964     else
4965       # Make teststring a little bigger before we do anything with it.
4966       # a 1K string should be a reasonable start.
4967       for i in 1 2 3 4 5 6 7 8 ; do
4968         teststring=$teststring$teststring
4969       done
4970       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4971       # If test is not a shell built-in, we'll probably end up computing a
4972       # maximum length that is only half of the actual maximum length, but
4973       # we can't tell.
4974       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4975                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4976               test $i != 17 # 1/2 MB should be enough
4977       do
4978         i=`expr $i + 1`
4979         teststring=$teststring$teststring
4980       done
4981       # Only check the string length outside the loop.
4982       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4983       teststring=
4984       # Add a significant safety factor because C++ compilers can tack on
4985       # massive amounts of additional arguments before passing them to the
4986       # linker.  It appears as though 1/2 is a usable value.
4987       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4988     fi
4989     ;;
4990   esac
4991
4992 fi
4993
4994 if test -n $lt_cv_sys_max_cmd_len ; then
4995   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4996 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4997 else
4998   { $as_echo "$as_me:$LINENO: result: none" >&5
4999 $as_echo "none" >&6; }
5000 fi
5001 max_cmd_len=$lt_cv_sys_max_cmd_len
5002
5003
5004
5005
5006
5007
5008 : ${CP="cp -f"}
5009 : ${MV="mv -f"}
5010 : ${RM="rm -f"}
5011
5012 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5013 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5014 # Try some XSI features
5015 xsi_shell=no
5016 ( _lt_dummy="a/b/c"
5017   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5018       = c,a/b,, \
5019     && eval 'test $(( 1 + 1 )) -eq 2 \
5020     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5021   && xsi_shell=yes
5022 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5023 $as_echo "$xsi_shell" >&6; }
5024
5025
5026 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5027 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5028 lt_shell_append=no
5029 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5030     >/dev/null 2>&1 \
5031   && lt_shell_append=yes
5032 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5033 $as_echo "$lt_shell_append" >&6; }
5034
5035
5036 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5037   lt_unset=unset
5038 else
5039   lt_unset=false
5040 fi
5041
5042
5043
5044
5045
5046 # test EBCDIC or ASCII
5047 case `echo X|tr X '\101'` in
5048  A) # ASCII based system
5049     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5050   lt_SP2NL='tr \040 \012'
5051   lt_NL2SP='tr \015\012 \040\040'
5052   ;;
5053  *) # EBCDIC based system
5054   lt_SP2NL='tr \100 \n'
5055   lt_NL2SP='tr \r\n \100\100'
5056   ;;
5057 esac
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5068 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5069 if test "${lt_cv_ld_reload_flag+set}" = set; then
5070   $as_echo_n "(cached) " >&6
5071 else
5072   lt_cv_ld_reload_flag='-r'
5073 fi
5074 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5075 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5076 reload_flag=$lt_cv_ld_reload_flag
5077 case $reload_flag in
5078 "" | " "*) ;;
5079 *) reload_flag=" $reload_flag" ;;
5080 esac
5081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082 case $host_os in
5083   darwin*)
5084     if test "$GCC" = yes; then
5085       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5086     else
5087       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5088     fi
5089     ;;
5090 esac
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 if test -n "$ac_tool_prefix"; then
5101   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5102 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5106   $as_echo_n "(cached) " >&6
5107 else
5108   if test -n "$OBJDUMP"; then
5109   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116   for ac_exec_ext in '' $ac_executable_extensions; do
5117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5119     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 OBJDUMP=$ac_cv_prog_OBJDUMP
5129 if test -n "$OBJDUMP"; then
5130   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5131 $as_echo "$OBJDUMP" >&6; }
5132 else
5133   { $as_echo "$as_me:$LINENO: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137
5138 fi
5139 if test -z "$ac_cv_prog_OBJDUMP"; then
5140   ac_ct_OBJDUMP=$OBJDUMP
5141   # Extract the first word of "objdump", so it can be a program name with args.
5142 set dummy objdump; ac_word=$2
5143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5146   $as_echo_n "(cached) " >&6
5147 else
5148   if test -n "$ac_ct_OBJDUMP"; then
5149   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5159     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5169 if test -n "$ac_ct_OBJDUMP"; then
5170   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5171 $as_echo "$ac_ct_OBJDUMP" >&6; }
5172 else
5173   { $as_echo "$as_me:$LINENO: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177   if test "x$ac_ct_OBJDUMP" = x; then
5178     OBJDUMP="false"
5179   else
5180     case $cross_compiling:$ac_tool_warned in
5181 yes:)
5182 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184 ac_tool_warned=yes ;;
5185 esac
5186     OBJDUMP=$ac_ct_OBJDUMP
5187   fi
5188 else
5189   OBJDUMP="$ac_cv_prog_OBJDUMP"
5190 fi
5191
5192 test -z "$OBJDUMP" && OBJDUMP=objdump
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5203 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5204 if test "${lt_cv_deplibs_check_method+set}" = set; then
5205   $as_echo_n "(cached) " >&6
5206 else
5207   lt_cv_file_magic_cmd='$MAGIC_CMD'
5208 lt_cv_file_magic_test_file=
5209 lt_cv_deplibs_check_method='unknown'
5210 # Need to set the preceding variable on all platforms that support
5211 # interlibrary dependencies.
5212 # 'none' -- dependencies not supported.
5213 # `unknown' -- same as none, but documents that we really don't know.
5214 # 'pass_all' -- all dependencies passed with no checks.
5215 # 'test_compile' -- check by making test program.
5216 # 'file_magic [[regex]]' -- check by looking for files in library path
5217 # which responds to the $file_magic_cmd with a given extended regex.
5218 # If you have `file' or equivalent on your system and you're not sure
5219 # whether `pass_all' will *always* work, you probably want this one.
5220
5221 case $host_os in
5222 aix[4-9]*)
5223   lt_cv_deplibs_check_method=pass_all
5224   ;;
5225
5226 beos*)
5227   lt_cv_deplibs_check_method=pass_all
5228   ;;
5229
5230 bsdi[45]*)
5231   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5232   lt_cv_file_magic_cmd='/usr/bin/file -L'
5233   lt_cv_file_magic_test_file=/shlib/libc.so
5234   ;;
5235
5236 cygwin*)
5237   # func_win32_libid is a shell function defined in ltmain.sh
5238   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5239   lt_cv_file_magic_cmd='func_win32_libid'
5240   ;;
5241
5242 mingw* | pw32*)
5243   # Base MSYS/MinGW do not provide the 'file' command needed by
5244   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5245   # unless we find 'file', for example because we are cross-compiling.
5246   if ( file / ) >/dev/null 2>&1; then
5247     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248     lt_cv_file_magic_cmd='func_win32_libid'
5249   else
5250     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5251     lt_cv_file_magic_cmd='$OBJDUMP -f'
5252   fi
5253   ;;
5254
5255 cegcc)
5256   # use the weaker test based on 'objdump'. See mingw*.
5257   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5258   lt_cv_file_magic_cmd='$OBJDUMP -f'
5259   ;;
5260
5261 darwin* | rhapsody*)
5262   lt_cv_deplibs_check_method=pass_all
5263   ;;
5264
5265 freebsd* | dragonfly*)
5266   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267     case $host_cpu in
5268     i*86 )
5269       # Not sure whether the presence of OpenBSD here was a mistake.
5270       # Let's accept both of them until this is cleared up.
5271       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5272       lt_cv_file_magic_cmd=/usr/bin/file
5273       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5274       ;;
5275     esac
5276   else
5277     lt_cv_deplibs_check_method=pass_all
5278   fi
5279   ;;
5280
5281 gnu*)
5282   lt_cv_deplibs_check_method=pass_all
5283   ;;
5284
5285 hpux10.20* | hpux11*)
5286   lt_cv_file_magic_cmd=/usr/bin/file
5287   case $host_cpu in
5288   ia64*)
5289     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5290     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5291     ;;
5292   hppa*64*)
5293     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]'
5294     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5295     ;;
5296   *)
5297     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5298     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5299     ;;
5300   esac
5301   ;;
5302
5303 interix[3-9]*)
5304   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5305   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5306   ;;
5307
5308 irix5* | irix6* | nonstopux*)
5309   case $LD in
5310   *-32|*"-32 ") libmagic=32-bit;;
5311   *-n32|*"-n32 ") libmagic=N32;;
5312   *-64|*"-64 ") libmagic=64-bit;;
5313   *) libmagic=never-match;;
5314   esac
5315   lt_cv_deplibs_check_method=pass_all
5316   ;;
5317
5318 # This must be Linux ELF.
5319 linux* | k*bsd*-gnu)
5320   lt_cv_deplibs_check_method=pass_all
5321   ;;
5322
5323 netbsd*)
5324   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5325     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5326   else
5327     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5328   fi
5329   ;;
5330
5331 newos6*)
5332   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5333   lt_cv_file_magic_cmd=/usr/bin/file
5334   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5335   ;;
5336
5337 *nto* | *qnx*)
5338   lt_cv_deplibs_check_method=pass_all
5339   ;;
5340
5341 openbsd*)
5342   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5343     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5344   else
5345     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5346   fi
5347   ;;
5348
5349 osf3* | osf4* | osf5*)
5350   lt_cv_deplibs_check_method=pass_all
5351   ;;
5352
5353 rdos*)
5354   lt_cv_deplibs_check_method=pass_all
5355   ;;
5356
5357 solaris*)
5358   lt_cv_deplibs_check_method=pass_all
5359   ;;
5360
5361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364
5365 sysv4 | sysv4.3*)
5366   case $host_vendor in
5367   motorola)
5368     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]'
5369     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5370     ;;
5371   ncr)
5372     lt_cv_deplibs_check_method=pass_all
5373     ;;
5374   sequent)
5375     lt_cv_file_magic_cmd='/bin/file'
5376     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5377     ;;
5378   sni)
5379     lt_cv_file_magic_cmd='/bin/file'
5380     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5381     lt_cv_file_magic_test_file=/lib/libc.so
5382     ;;
5383   siemens)
5384     lt_cv_deplibs_check_method=pass_all
5385     ;;
5386   pc)
5387     lt_cv_deplibs_check_method=pass_all
5388     ;;
5389   esac
5390   ;;
5391
5392 tpf*)
5393   lt_cv_deplibs_check_method=pass_all
5394   ;;
5395 esac
5396
5397 fi
5398 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5399 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5400 file_magic_cmd=$lt_cv_file_magic_cmd
5401 deplibs_check_method=$lt_cv_deplibs_check_method
5402 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 if test -n "$ac_tool_prefix"; then
5416   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}ar; ac_word=$2
5418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if test "${ac_cv_prog_AR+set}" = set; then
5421   $as_echo_n "(cached) " >&6
5422 else
5423   if test -n "$AR"; then
5424   ac_cv_prog_AR="$AR" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431   for ac_exec_ext in '' $ac_executable_extensions; do
5432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433     ac_cv_prog_AR="${ac_tool_prefix}ar"
5434     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438 done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 AR=$ac_cv_prog_AR
5444 if test -n "$AR"; then
5445   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5446 $as_echo "$AR" >&6; }
5447 else
5448   { $as_echo "$as_me:$LINENO: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 fi
5454 if test -z "$ac_cv_prog_AR"; then
5455   ac_ct_AR=$AR
5456   # Extract the first word of "ar", so it can be a program name with args.
5457 set dummy ar; ac_word=$2
5458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5461   $as_echo_n "(cached) " >&6
5462 else
5463   if test -n "$ac_ct_AR"; then
5464   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_exec_ext in '' $ac_executable_extensions; do
5472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473     ac_cv_prog_ac_ct_AR="ar"
5474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5484 if test -n "$ac_ct_AR"; then
5485   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5486 $as_echo "$ac_ct_AR" >&6; }
5487 else
5488   { $as_echo "$as_me:$LINENO: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492   if test "x$ac_ct_AR" = x; then
5493     AR="false"
5494   else
5495     case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501     AR=$ac_ct_AR
5502   fi
5503 else
5504   AR="$ac_cv_prog_AR"
5505 fi
5506
5507 test -z "$AR" && AR=ar
5508 test -z "$AR_FLAGS" && AR_FLAGS=cru
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 if test -n "$ac_tool_prefix"; then
5521   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5522 set dummy ${ac_tool_prefix}strip; ac_word=$2
5523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_prog_STRIP+set}" = set; then
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if test -n "$STRIP"; then
5529   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536   for ac_exec_ext in '' $ac_executable_extensions; do
5537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5539     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 STRIP=$ac_cv_prog_STRIP
5549 if test -n "$STRIP"; then
5550   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5551 $as_echo "$STRIP" >&6; }
5552 else
5553   { $as_echo "$as_me:$LINENO: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 fi
5559 if test -z "$ac_cv_prog_STRIP"; then
5560   ac_ct_STRIP=$STRIP
5561   # Extract the first word of "strip", so it can be a program name with args.
5562 set dummy strip; ac_word=$2
5563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5566   $as_echo_n "(cached) " >&6
5567 else
5568   if test -n "$ac_ct_STRIP"; then
5569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576   for ac_exec_ext in '' $ac_executable_extensions; do
5577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578     ac_cv_prog_ac_ct_STRIP="strip"
5579     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581   fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5589 if test -n "$ac_ct_STRIP"; then
5590   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5591 $as_echo "$ac_ct_STRIP" >&6; }
5592 else
5593   { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597   if test "x$ac_ct_STRIP" = x; then
5598     STRIP=":"
5599   else
5600     case $cross_compiling:$ac_tool_warned in
5601 yes:)
5602 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604 ac_tool_warned=yes ;;
5605 esac
5606     STRIP=$ac_ct_STRIP
5607   fi
5608 else
5609   STRIP="$ac_cv_prog_STRIP"
5610 fi
5611
5612 test -z "$STRIP" && STRIP=:
5613
5614
5615
5616
5617
5618
5619 if test -n "$ac_tool_prefix"; then
5620   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if test "${ac_cv_prog_RANLIB+set}" = set; then
5625   $as_echo_n "(cached) " >&6
5626 else
5627   if test -n "$RANLIB"; then
5628   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635   for ac_exec_ext in '' $ac_executable_extensions; do
5636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5638     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639     break 2
5640   fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 RANLIB=$ac_cv_prog_RANLIB
5648 if test -n "$RANLIB"; then
5649   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5650 $as_echo "$RANLIB" >&6; }
5651 else
5652   { $as_echo "$as_me:$LINENO: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656
5657 fi
5658 if test -z "$ac_cv_prog_RANLIB"; then
5659   ac_ct_RANLIB=$RANLIB
5660   # Extract the first word of "ranlib", so it can be a program name with args.
5661 set dummy ranlib; ac_word=$2
5662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5665   $as_echo_n "(cached) " >&6
5666 else
5667   if test -n "$ac_ct_RANLIB"; then
5668   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675   for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_prog_ac_ct_RANLIB="ranlib"
5678     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5688 if test -n "$ac_ct_RANLIB"; then
5689   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5690 $as_echo "$ac_ct_RANLIB" >&6; }
5691 else
5692   { $as_echo "$as_me:$LINENO: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696   if test "x$ac_ct_RANLIB" = x; then
5697     RANLIB=":"
5698   else
5699     case $cross_compiling:$ac_tool_warned in
5700 yes:)
5701 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703 ac_tool_warned=yes ;;
5704 esac
5705     RANLIB=$ac_ct_RANLIB
5706   fi
5707 else
5708   RANLIB="$ac_cv_prog_RANLIB"
5709 fi
5710
5711 test -z "$RANLIB" && RANLIB=:
5712
5713
5714
5715
5716
5717
5718 # Determine commands to create old-style static archives.
5719 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5720 old_postinstall_cmds='chmod 644 $oldlib'
5721 old_postuninstall_cmds=
5722
5723 if test -n "$RANLIB"; then
5724   case $host_os in
5725   openbsd*)
5726     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5727     ;;
5728   *)
5729     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5730     ;;
5731   esac
5732   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5733 fi
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 # If no C compiler was specified, use CC.
5769 LTCC=${LTCC-"$CC"}
5770
5771 # If no C compiler flags were specified, use CFLAGS.
5772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5773
5774 # Allow CC to be a program name with arguments.
5775 compiler=$CC
5776
5777
5778 # Check for command to grab the raw symbol name followed by C symbol from nm.
5779 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5780 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5781 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5782   $as_echo_n "(cached) " >&6
5783 else
5784
5785 # These are sane defaults that work on at least a few old systems.
5786 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5787
5788 # Character class describing NM global symbol codes.
5789 symcode='[BCDEGRST]'
5790
5791 # Regexp to match symbols that can be accessed directly from C.
5792 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5793
5794 # Define system-specific variables.
5795 case $host_os in
5796 aix*)
5797   symcode='[BCDT]'
5798   ;;
5799 cygwin* | mingw* | pw32* | cegcc*)
5800   symcode='[ABCDGISTW]'
5801   ;;
5802 hpux*)
5803   if test "$host_cpu" = ia64; then
5804     symcode='[ABCDEGRST]'
5805   fi
5806   ;;
5807 irix* | nonstopux*)
5808   symcode='[BCDEGRST]'
5809   ;;
5810 osf*)
5811   symcode='[BCDEGQRST]'
5812   ;;
5813 solaris*)
5814   symcode='[BDRT]'
5815   ;;
5816 sco3.2v5*)
5817   symcode='[DT]'
5818   ;;
5819 sysv4.2uw2*)
5820   symcode='[DT]'
5821   ;;
5822 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5823   symcode='[ABDT]'
5824   ;;
5825 sysv4)
5826   symcode='[DFNSTU]'
5827   ;;
5828 esac
5829
5830 # If we're using GNU nm, then use its standard symbol codes.
5831 case `$NM -V 2>&1` in
5832 *GNU* | *'with BFD'*)
5833   symcode='[ABCDGIRSTW]' ;;
5834 esac
5835
5836 # Transform an extracted symbol line into a proper C declaration.
5837 # Some systems (esp. on ia64) link data and code symbols differently,
5838 # so use this general approach.
5839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5840
5841 # Transform an extracted symbol line into symbol name and symbol address
5842 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5843 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'"
5844
5845 # Handle CRLF in mingw tool chain
5846 opt_cr=
5847 case $build_os in
5848 mingw*)
5849   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5850   ;;
5851 esac
5852
5853 # Try without a prefix underscore, then with it.
5854 for ac_symprfx in "" "_"; do
5855
5856   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5857   symxfrm="\\1 $ac_symprfx\\2 \\2"
5858
5859   # Write the raw and C identifiers.
5860   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5861     # Fake it for dumpbin and say T for any non-static function
5862     # and D for any global variable.
5863     # Also find C++ and __fastcall symbols from MSVC++,
5864     # which start with @ or ?.
5865     lt_cv_sys_global_symbol_pipe="$AWK '"\
5866 "     {last_section=section; section=\$ 3};"\
5867 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5868 "     \$ 0!~/External *\|/{next};"\
5869 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5870 "     {if(hide[section]) next};"\
5871 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5872 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5873 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5874 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5875 "     ' prfx=^$ac_symprfx"
5876   else
5877     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5878   fi
5879
5880   # Check to see that the pipe works correctly.
5881   pipe_works=no
5882
5883   rm -f conftest*
5884   cat > conftest.$ac_ext <<_LT_EOF
5885 #ifdef __cplusplus
5886 extern "C" {
5887 #endif
5888 char nm_test_var;
5889 void nm_test_func(void);
5890 void nm_test_func(void){}
5891 #ifdef __cplusplus
5892 }
5893 #endif
5894 int main(){nm_test_var='a';nm_test_func();return(0);}
5895 _LT_EOF
5896
5897   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898   (eval $ac_compile) 2>&5
5899   ac_status=$?
5900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; then
5902     # Now try to grab the symbols.
5903     nlist=conftest.nm
5904     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5905   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5906   ac_status=$?
5907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } && test -s "$nlist"; then
5909       # Try sorting and uniquifying the output.
5910       if sort "$nlist" | uniq > "$nlist"T; then
5911         mv -f "$nlist"T "$nlist"
5912       else
5913         rm -f "$nlist"T
5914       fi
5915
5916       # Make sure that we snagged all the symbols we need.
5917       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5918         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5919           cat <<_LT_EOF > conftest.$ac_ext
5920 #ifdef __cplusplus
5921 extern "C" {
5922 #endif
5923
5924 _LT_EOF
5925           # Now generate the symbol file.
5926           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5927
5928           cat <<_LT_EOF >> conftest.$ac_ext
5929
5930 /* The mapping between symbol names and symbols.  */
5931 const struct {
5932   const char *name;
5933   void       *address;
5934 }
5935 lt__PROGRAM__LTX_preloaded_symbols[] =
5936 {
5937   { "@PROGRAM@", (void *) 0 },
5938 _LT_EOF
5939           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5940           cat <<\_LT_EOF >> conftest.$ac_ext
5941   {0, (void *) 0}
5942 };
5943
5944 /* This works around a problem in FreeBSD linker */
5945 #ifdef FREEBSD_WORKAROUND
5946 static const void *lt_preloaded_setup() {
5947   return lt__PROGRAM__LTX_preloaded_symbols;
5948 }
5949 #endif
5950
5951 #ifdef __cplusplus
5952 }
5953 #endif
5954 _LT_EOF
5955           # Now try linking the two files.
5956           mv conftest.$ac_objext conftstm.$ac_objext
5957           lt_save_LIBS="$LIBS"
5958           lt_save_CFLAGS="$CFLAGS"
5959           LIBS="conftstm.$ac_objext"
5960           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5961           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962   (eval $ac_link) 2>&5
5963   ac_status=$?
5964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5966             pipe_works=yes
5967           fi
5968           LIBS="$lt_save_LIBS"
5969           CFLAGS="$lt_save_CFLAGS"
5970         else
5971           echo "cannot find nm_test_func in $nlist" >&5
5972         fi
5973       else
5974         echo "cannot find nm_test_var in $nlist" >&5
5975       fi
5976     else
5977       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5978     fi
5979   else
5980     echo "$progname: failed program was:" >&5
5981     cat conftest.$ac_ext >&5
5982   fi
5983   rm -rf conftest* conftst*
5984
5985   # Do not use the global_symbol_pipe unless it works.
5986   if test "$pipe_works" = yes; then
5987     break
5988   else
5989     lt_cv_sys_global_symbol_pipe=
5990   fi
5991 done
5992
5993 fi
5994
5995 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5996   lt_cv_sys_global_symbol_to_cdecl=
5997 fi
5998 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5999   { $as_echo "$as_me:$LINENO: result: failed" >&5
6000 $as_echo "failed" >&6; }
6001 else
6002   { $as_echo "$as_me:$LINENO: result: ok" >&5
6003 $as_echo "ok" >&6; }
6004 fi
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028 # Check whether --enable-libtool-lock was given.
6029 if test "${enable_libtool_lock+set}" = set; then
6030   enableval=$enable_libtool_lock;
6031 fi
6032
6033 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6034
6035 # Some flags need to be propagated to the compiler or linker for good
6036 # libtool support.
6037 case $host in
6038 ia64-*-hpux*)
6039   # Find out which ABI we are using.
6040   echo 'int i;' > conftest.$ac_ext
6041   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042   (eval $ac_compile) 2>&5
6043   ac_status=$?
6044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); }; then
6046     case `/usr/bin/file conftest.$ac_objext` in
6047       *ELF-32*)
6048         HPUX_IA64_MODE="32"
6049         ;;
6050       *ELF-64*)
6051         HPUX_IA64_MODE="64"
6052         ;;
6053     esac
6054   fi
6055   rm -rf conftest*
6056   ;;
6057 *-*-irix6*)
6058   # Find out which ABI we are using.
6059   echo '#line 6059 "configure"' > conftest.$ac_ext
6060   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061   (eval $ac_compile) 2>&5
6062   ac_status=$?
6063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }; then
6065     if test "$lt_cv_prog_gnu_ld" = yes; then
6066       case `/usr/bin/file conftest.$ac_objext` in
6067         *32-bit*)
6068           LD="${LD-ld} -melf32bsmip"
6069           ;;
6070         *N32*)
6071           LD="${LD-ld} -melf32bmipn32"
6072           ;;
6073         *64-bit*)
6074           LD="${LD-ld} -melf64bmip"
6075         ;;
6076       esac
6077     else
6078       case `/usr/bin/file conftest.$ac_objext` in
6079         *32-bit*)
6080           LD="${LD-ld} -32"
6081           ;;
6082         *N32*)
6083           LD="${LD-ld} -n32"
6084           ;;
6085         *64-bit*)
6086           LD="${LD-ld} -64"
6087           ;;
6088       esac
6089     fi
6090   fi
6091   rm -rf conftest*
6092   ;;
6093
6094 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6095 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6096   # Find out which ABI we are using.
6097   echo 'int i;' > conftest.$ac_ext
6098   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099   (eval $ac_compile) 2>&5
6100   ac_status=$?
6101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }; then
6103     case `/usr/bin/file conftest.o` in
6104       *32-bit*)
6105         case $host in
6106           x86_64-*kfreebsd*-gnu)
6107             LD="${LD-ld} -m elf_i386_fbsd"
6108             ;;
6109           x86_64-*linux*)
6110             LD="${LD-ld} -m elf_i386"
6111             ;;
6112           ppc64-*linux*|powerpc64-*linux*)
6113             LD="${LD-ld} -m elf32ppclinux"
6114             ;;
6115           s390x-*linux*)
6116             LD="${LD-ld} -m elf_s390"
6117             ;;
6118           sparc64-*linux*)
6119             LD="${LD-ld} -m elf32_sparc"
6120             ;;
6121         esac
6122         ;;
6123       *64-bit*)
6124         case $host in
6125           x86_64-*kfreebsd*-gnu)
6126             LD="${LD-ld} -m elf_x86_64_fbsd"
6127             ;;
6128           x86_64-*linux*)
6129             LD="${LD-ld} -m elf_x86_64"
6130             ;;
6131           ppc*-*linux*|powerpc*-*linux*)
6132             LD="${LD-ld} -m elf64ppc"
6133             ;;
6134           s390*-*linux*|s390*-*tpf*)
6135             LD="${LD-ld} -m elf64_s390"
6136             ;;
6137           sparc*-*linux*)
6138             LD="${LD-ld} -m elf64_sparc"
6139             ;;
6140         esac
6141         ;;
6142     esac
6143   fi
6144   rm -rf conftest*
6145   ;;
6146
6147 *-*-sco3.2v5*)
6148   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6149   SAVE_CFLAGS="$CFLAGS"
6150   CFLAGS="$CFLAGS -belf"
6151   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6152 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6153 if test "${lt_cv_cc_needs_belf+set}" = set; then
6154   $as_echo_n "(cached) " >&6
6155 else
6156   ac_ext=c
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162      cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168
6169 int
6170 main ()
6171 {
6172
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (ac_try="$ac_link"
6179 case "(($ac_try" in
6180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181   *) ac_try_echo=$ac_try;;
6182 esac
6183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6184 $as_echo "$ac_try_echo") >&5
6185   (eval "$ac_link") 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } && {
6192          test -z "$ac_c_werror_flag" ||
6193          test ! -s conftest.err
6194        } && test -s conftest$ac_exeext && {
6195          test "$cross_compiling" = yes ||
6196          $as_test_x conftest$ac_exeext
6197        }; then
6198   lt_cv_cc_needs_belf=yes
6199 else
6200   $as_echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203         lt_cv_cc_needs_belf=no
6204 fi
6205
6206 rm -rf conftest.dSYM
6207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6208       conftest$ac_exeext conftest.$ac_ext
6209      ac_ext=c
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214
6215 fi
6216 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6217 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6218   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6219     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6220     CFLAGS="$SAVE_CFLAGS"
6221   fi
6222   ;;
6223 sparc*-*solaris*)
6224   # Find out which ABI we are using.
6225   echo 'int i;' > conftest.$ac_ext
6226   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227   (eval $ac_compile) 2>&5
6228   ac_status=$?
6229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; then
6231     case `/usr/bin/file conftest.o` in
6232     *64-bit*)
6233       case $lt_cv_prog_gnu_ld in
6234       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6235       *)
6236         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6237           LD="${LD-ld} -64"
6238         fi
6239         ;;
6240       esac
6241       ;;
6242     esac
6243   fi
6244   rm -rf conftest*
6245   ;;
6246 esac
6247
6248 need_locks="$enable_libtool_lock"
6249
6250
6251   case $host_os in
6252     rhapsody* | darwin*)
6253     if test -n "$ac_tool_prefix"; then
6254   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6259   $as_echo_n "(cached) " >&6
6260 else
6261   if test -n "$DSYMUTIL"; then
6262   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269   for ac_exec_ext in '' $ac_executable_extensions; do
6270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6272     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279 fi
6280 fi
6281 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6282 if test -n "$DSYMUTIL"; then
6283   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6284 $as_echo "$DSYMUTIL" >&6; }
6285 else
6286   { $as_echo "$as_me:$LINENO: result: no" >&5
6287 $as_echo "no" >&6; }
6288 fi
6289
6290
6291 fi
6292 if test -z "$ac_cv_prog_DSYMUTIL"; then
6293   ac_ct_DSYMUTIL=$DSYMUTIL
6294   # Extract the first word of "dsymutil", so it can be a program name with args.
6295 set dummy dsymutil; ac_word=$2
6296 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6299   $as_echo_n "(cached) " >&6
6300 else
6301   if test -n "$ac_ct_DSYMUTIL"; then
6302   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309   for ac_exec_ext in '' $ac_executable_extensions; do
6310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6312     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6322 if test -n "$ac_ct_DSYMUTIL"; then
6323   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6324 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6325 else
6326   { $as_echo "$as_me:$LINENO: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330   if test "x$ac_ct_DSYMUTIL" = x; then
6331     DSYMUTIL=":"
6332   else
6333     case $cross_compiling:$ac_tool_warned in
6334 yes:)
6335 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339     DSYMUTIL=$ac_ct_DSYMUTIL
6340   fi
6341 else
6342   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6343 fi
6344
6345     if test -n "$ac_tool_prefix"; then
6346   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6351   $as_echo_n "(cached) " >&6
6352 else
6353   if test -n "$NMEDIT"; then
6354   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359   IFS=$as_save_IFS
6360   test -z "$as_dir" && as_dir=.
6361   for ac_exec_ext in '' $ac_executable_extensions; do
6362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365     break 2
6366   fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 NMEDIT=$ac_cv_prog_NMEDIT
6374 if test -n "$NMEDIT"; then
6375   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6376 $as_echo "$NMEDIT" >&6; }
6377 else
6378   { $as_echo "$as_me:$LINENO: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 fi
6384 if test -z "$ac_cv_prog_NMEDIT"; then
6385   ac_ct_NMEDIT=$NMEDIT
6386   # Extract the first word of "nmedit", so it can be a program name with args.
6387 set dummy nmedit; ac_word=$2
6388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6391   $as_echo_n "(cached) " >&6
6392 else
6393   if test -n "$ac_ct_NMEDIT"; then
6394   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401   for ac_exec_ext in '' $ac_executable_extensions; do
6402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6404     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6414 if test -n "$ac_ct_NMEDIT"; then
6415   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6416 $as_echo "$ac_ct_NMEDIT" >&6; }
6417 else
6418   { $as_echo "$as_me:$LINENO: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422   if test "x$ac_ct_NMEDIT" = x; then
6423     NMEDIT=":"
6424   else
6425     case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431     NMEDIT=$ac_ct_NMEDIT
6432   fi
6433 else
6434   NMEDIT="$ac_cv_prog_NMEDIT"
6435 fi
6436
6437     if test -n "$ac_tool_prefix"; then
6438   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_LIPO+set}" = set; then
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$LIPO"; then
6446   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453   for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 LIPO=$ac_cv_prog_LIPO
6466 if test -n "$LIPO"; then
6467   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6468 $as_echo "$LIPO" >&6; }
6469 else
6470   { $as_echo "$as_me:$LINENO: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_LIPO"; then
6477   ac_ct_LIPO=$LIPO
6478   # Extract the first word of "lipo", so it can be a program name with args.
6479 set dummy lipo; ac_word=$2
6480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6483   $as_echo_n "(cached) " >&6
6484 else
6485   if test -n "$ac_ct_LIPO"; then
6486   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493   for ac_exec_ext in '' $ac_executable_extensions; do
6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495     ac_cv_prog_ac_ct_LIPO="lipo"
6496     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6506 if test -n "$ac_ct_LIPO"; then
6507   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6508 $as_echo "$ac_ct_LIPO" >&6; }
6509 else
6510   { $as_echo "$as_me:$LINENO: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514   if test "x$ac_ct_LIPO" = x; then
6515     LIPO=":"
6516   else
6517     case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     LIPO=$ac_ct_LIPO
6524   fi
6525 else
6526   LIPO="$ac_cv_prog_LIPO"
6527 fi
6528
6529     if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}otool; ac_word=$2
6532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_OTOOL+set}" = set; then
6535   $as_echo_n "(cached) " >&6
6536 else
6537   if test -n "$OTOOL"; then
6538   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 OTOOL=$ac_cv_prog_OTOOL
6558 if test -n "$OTOOL"; then
6559   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6560 $as_echo "$OTOOL" >&6; }
6561 else
6562   { $as_echo "$as_me:$LINENO: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_OTOOL"; then
6569   ac_ct_OTOOL=$OTOOL
6570   # Extract the first word of "otool", so it can be a program name with args.
6571 set dummy otool; ac_word=$2
6572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_OTOOL"; then
6578   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_OTOOL="otool"
6588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6598 if test -n "$ac_ct_OTOOL"; then
6599   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6600 $as_echo "$ac_ct_OTOOL" >&6; }
6601 else
6602   { $as_echo "$as_me:$LINENO: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_OTOOL" = x; then
6607     OTOOL=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     OTOOL=$ac_ct_OTOOL
6616   fi
6617 else
6618   OTOOL="$ac_cv_prog_OTOOL"
6619 fi
6620
6621     if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6627   $as_echo_n "(cached) " >&6
6628 else
6629   if test -n "$OTOOL64"; then
6630   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6640     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 OTOOL64=$ac_cv_prog_OTOOL64
6650 if test -n "$OTOOL64"; then
6651   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6652 $as_echo "$OTOOL64" >&6; }
6653 else
6654   { $as_echo "$as_me:$LINENO: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_OTOOL64"; then
6661   ac_ct_OTOOL64=$OTOOL64
6662   # Extract the first word of "otool64", so it can be a program name with args.
6663 set dummy otool64; ac_word=$2
6664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$ac_ct_OTOOL64"; then
6670   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_OTOOL64="otool64"
6680     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6690 if test -n "$ac_ct_OTOOL64"; then
6691   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6692 $as_echo "$ac_ct_OTOOL64" >&6; }
6693 else
6694   { $as_echo "$as_me:$LINENO: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_OTOOL64" = x; then
6699     OTOOL64=":"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707     OTOOL64=$ac_ct_OTOOL64
6708   fi
6709 else
6710   OTOOL64="$ac_cv_prog_OTOOL64"
6711 fi
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6740 $as_echo_n "checking for -single_module linker flag... " >&6; }
6741 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6742   $as_echo_n "(cached) " >&6
6743 else
6744   lt_cv_apple_cc_single_mod=no
6745       if test -z "${LT_MULTI_MODULE}"; then
6746         # By default we will add the -single_module flag. You can override
6747         # by either setting the environment variable LT_MULTI_MODULE
6748         # non-empty at configure time, or by adding -multi_module to the
6749         # link flags.
6750         rm -rf libconftest.dylib*
6751         echo "int foo(void){return 1;}" > conftest.c
6752         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753 -dynamiclib -Wl,-single_module conftest.c" >&5
6754         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6755           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6756         _lt_result=$?
6757         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6758           lt_cv_apple_cc_single_mod=yes
6759         else
6760           cat conftest.err >&5
6761         fi
6762         rm -rf libconftest.dylib*
6763         rm -f conftest.*
6764       fi
6765 fi
6766 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6767 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6768     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6769 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6770 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6771   $as_echo_n "(cached) " >&6
6772 else
6773   lt_cv_ld_exported_symbols_list=no
6774       save_LDFLAGS=$LDFLAGS
6775       echo "_main" > conftest.sym
6776       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6777       cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h.  */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h.  */
6783
6784 int
6785 main ()
6786 {
6787
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (ac_try="$ac_link"
6794 case "(($ac_try" in
6795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796   *) ac_try_echo=$ac_try;;
6797 esac
6798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6799 $as_echo "$ac_try_echo") >&5
6800   (eval "$ac_link") 2>conftest.er1
6801   ac_status=$?
6802   grep -v '^ *+' conftest.er1 >conftest.err
6803   rm -f conftest.er1
6804   cat conftest.err >&5
6805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } && {
6807          test -z "$ac_c_werror_flag" ||
6808          test ! -s conftest.err
6809        } && test -s conftest$ac_exeext && {
6810          test "$cross_compiling" = yes ||
6811          $as_test_x conftest$ac_exeext
6812        }; then
6813   lt_cv_ld_exported_symbols_list=yes
6814 else
6815   $as_echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818         lt_cv_ld_exported_symbols_list=no
6819 fi
6820
6821 rm -rf conftest.dSYM
6822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6823       conftest$ac_exeext conftest.$ac_ext
6824         LDFLAGS="$save_LDFLAGS"
6825
6826 fi
6827 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6828 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6829     case $host_os in
6830     rhapsody* | darwin1.[012])
6831       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6832     darwin1.*)
6833       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6834     darwin*) # darwin 5.x on
6835       # if running on 10.5 or later, the deployment target defaults
6836       # to the OS version, if on x86, and 10.4, the deployment
6837       # target defaults to 10.4. Don't you love it?
6838       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6839         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6840           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6841         10.[012]*)
6842           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6843         10.*)
6844           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6845       esac
6846     ;;
6847   esac
6848     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6849       _lt_dar_single_mod='$single_module'
6850     fi
6851     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6852       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6853     else
6854       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6855     fi
6856     if test "$DSYMUTIL" != ":"; then
6857       _lt_dsymutil='~$DSYMUTIL $lib || :'
6858     else
6859       _lt_dsymutil=
6860     fi
6861     ;;
6862   esac
6863
6864 ac_ext=c
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6871 # On Suns, sometimes $CPP names a directory.
6872 if test -n "$CPP" && test -d "$CPP"; then
6873   CPP=
6874 fi
6875 if test -z "$CPP"; then
6876   if test "${ac_cv_prog_CPP+set}" = set; then
6877   $as_echo_n "(cached) " >&6
6878 else
6879       # Double quotes because CPP needs to be expanded
6880     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6881     do
6882       ac_preproc_ok=false
6883 for ac_c_preproc_warn_flag in '' yes
6884 do
6885   # Use a header file that comes with gcc, so configuring glibc
6886   # with a fresh cross-compiler works.
6887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6888   # <limits.h> exists even on freestanding compilers.
6889   # On the NeXT, cc -E runs the code through the compiler's parser,
6890   # not just through cpp. "Syntax error" is here to catch this case.
6891   cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #ifdef __STDC__
6898 # include <limits.h>
6899 #else
6900 # include <assert.h>
6901 #endif
6902                      Syntax error
6903 _ACEOF
6904 if { (ac_try="$ac_cpp conftest.$ac_ext"
6905 case "(($ac_try" in
6906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907   *) ac_try_echo=$ac_try;;
6908 esac
6909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6910 $as_echo "$ac_try_echo") >&5
6911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } >/dev/null && {
6918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6919          test ! -s conftest.err
6920        }; then
6921   :
6922 else
6923   $as_echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926   # Broken: fails on valid input.
6927 continue
6928 fi
6929
6930 rm -f conftest.err conftest.$ac_ext
6931
6932   # OK, works on sane cases.  Now check whether nonexistent headers
6933   # can be detected and how.
6934   cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940 #include <ac_nonexistent.h>
6941 _ACEOF
6942 if { (ac_try="$ac_cpp conftest.$ac_ext"
6943 case "(($ac_try" in
6944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945   *) ac_try_echo=$ac_try;;
6946 esac
6947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6948 $as_echo "$ac_try_echo") >&5
6949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6950   ac_status=$?
6951   grep -v '^ *+' conftest.er1 >conftest.err
6952   rm -f conftest.er1
6953   cat conftest.err >&5
6954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); } >/dev/null && {
6956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6957          test ! -s conftest.err
6958        }; then
6959   # Broken: success on invalid input.
6960 continue
6961 else
6962   $as_echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965   # Passes both tests.
6966 ac_preproc_ok=:
6967 break
6968 fi
6969
6970 rm -f conftest.err conftest.$ac_ext
6971
6972 done
6973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6974 rm -f conftest.err conftest.$ac_ext
6975 if $ac_preproc_ok; then
6976   break
6977 fi
6978
6979     done
6980     ac_cv_prog_CPP=$CPP
6981
6982 fi
6983   CPP=$ac_cv_prog_CPP
6984 else
6985   ac_cv_prog_CPP=$CPP
6986 fi
6987 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6988 $as_echo "$CPP" >&6; }
6989 ac_preproc_ok=false
6990 for ac_c_preproc_warn_flag in '' yes
6991 do
6992   # Use a header file that comes with gcc, so configuring glibc
6993   # with a fresh cross-compiler works.
6994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6995   # <limits.h> exists even on freestanding compilers.
6996   # On the NeXT, cc -E runs the code through the compiler's parser,
6997   # not just through cpp. "Syntax error" is here to catch this case.
6998   cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h.  */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h.  */
7004 #ifdef __STDC__
7005 # include <limits.h>
7006 #else
7007 # include <assert.h>
7008 #endif
7009                      Syntax error
7010 _ACEOF
7011 if { (ac_try="$ac_cpp conftest.$ac_ext"
7012 case "(($ac_try" in
7013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014   *) ac_try_echo=$ac_try;;
7015 esac
7016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7017 $as_echo "$ac_try_echo") >&5
7018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } >/dev/null && {
7025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7026          test ! -s conftest.err
7027        }; then
7028   :
7029 else
7030   $as_echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033   # Broken: fails on valid input.
7034 continue
7035 fi
7036
7037 rm -f conftest.err conftest.$ac_ext
7038
7039   # OK, works on sane cases.  Now check whether nonexistent headers
7040   # can be detected and how.
7041   cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047 #include <ac_nonexistent.h>
7048 _ACEOF
7049 if { (ac_try="$ac_cpp conftest.$ac_ext"
7050 case "(($ac_try" in
7051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052   *) ac_try_echo=$ac_try;;
7053 esac
7054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7055 $as_echo "$ac_try_echo") >&5
7056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7057   ac_status=$?
7058   grep -v '^ *+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } >/dev/null && {
7063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7064          test ! -s conftest.err
7065        }; then
7066   # Broken: success on invalid input.
7067 continue
7068 else
7069   $as_echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7071
7072   # Passes both tests.
7073 ac_preproc_ok=:
7074 break
7075 fi
7076
7077 rm -f conftest.err conftest.$ac_ext
7078
7079 done
7080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7081 rm -f conftest.err conftest.$ac_ext
7082 if $ac_preproc_ok; then
7083   :
7084 else
7085   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7087 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7088 See \`config.log' for more details." >&5
7089 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7090 See \`config.log' for more details." >&2;}
7091    { (exit 1); exit 1; }; }; }
7092 fi
7093
7094 ac_ext=c
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099
7100
7101 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7102 $as_echo_n "checking for ANSI C header files... " >&6; }
7103 if test "${ac_cv_header_stdc+set}" = set; then
7104   $as_echo_n "(cached) " >&6
7105 else
7106   cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 #include <stdlib.h>
7113 #include <stdarg.h>
7114 #include <string.h>
7115 #include <float.h>
7116
7117 int
7118 main ()
7119 {
7120
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7127 case "(($ac_try" in
7128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129   *) ac_try_echo=$ac_try;;
7130 esac
7131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7132 $as_echo "$ac_try_echo") >&5
7133   (eval "$ac_compile") 2>conftest.er1
7134   ac_status=$?
7135   grep -v '^ *+' conftest.er1 >conftest.err
7136   rm -f conftest.er1
7137   cat conftest.err >&5
7138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); } && {
7140          test -z "$ac_c_werror_flag" ||
7141          test ! -s conftest.err
7142        } && test -s conftest.$ac_objext; then
7143   ac_cv_header_stdc=yes
7144 else
7145   $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148         ac_cv_header_stdc=no
7149 fi
7150
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152
7153 if test $ac_cv_header_stdc = yes; then
7154   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7155   cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161 #include <string.h>
7162
7163 _ACEOF
7164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7165   $EGREP "memchr" >/dev/null 2>&1; then
7166   :
7167 else
7168   ac_cv_header_stdc=no
7169 fi
7170 rm -f conftest*
7171
7172 fi
7173
7174 if test $ac_cv_header_stdc = yes; then
7175   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7176   cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h.  */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h.  */
7182 #include <stdlib.h>
7183
7184 _ACEOF
7185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186   $EGREP "free" >/dev/null 2>&1; then
7187   :
7188 else
7189   ac_cv_header_stdc=no
7190 fi
7191 rm -f conftest*
7192
7193 fi
7194
7195 if test $ac_cv_header_stdc = yes; then
7196   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7197   if test "$cross_compiling" = yes; then
7198   :
7199 else
7200   cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 #include <ctype.h>
7207 #include <stdlib.h>
7208 #if ((' ' & 0x0FF) == 0x020)
7209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7211 #else
7212 # define ISLOWER(c) \
7213                    (('a' <= (c) && (c) <= 'i') \
7214                      || ('j' <= (c) && (c) <= 'r') \
7215                      || ('s' <= (c) && (c) <= 'z'))
7216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7217 #endif
7218
7219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7220 int
7221 main ()
7222 {
7223   int i;
7224   for (i = 0; i < 256; i++)
7225     if (XOR (islower (i), ISLOWER (i))
7226         || toupper (i) != TOUPPER (i))
7227       return 2;
7228   return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest$ac_exeext
7232 if { (ac_try="$ac_link"
7233 case "(($ac_try" in
7234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235   *) ac_try_echo=$ac_try;;
7236 esac
7237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7238 $as_echo "$ac_try_echo") >&5
7239   (eval "$ac_link") 2>&5
7240   ac_status=$?
7241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7243   { (case "(($ac_try" in
7244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245   *) ac_try_echo=$ac_try;;
7246 esac
7247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249   (eval "$ac_try") 2>&5
7250   ac_status=$?
7251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; }; then
7253   :
7254 else
7255   $as_echo "$as_me: program exited with status $ac_status" >&5
7256 $as_echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ( exit $ac_status )
7260 ac_cv_header_stdc=no
7261 fi
7262 rm -rf conftest.dSYM
7263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7264 fi
7265
7266
7267 fi
7268 fi
7269 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7270 $as_echo "$ac_cv_header_stdc" >&6; }
7271 if test $ac_cv_header_stdc = yes; then
7272
7273 cat >>confdefs.h <<\_ACEOF
7274 #define STDC_HEADERS 1
7275 _ACEOF
7276
7277 fi
7278
7279 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7290                   inttypes.h stdint.h unistd.h
7291 do
7292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7294 $as_echo_n "checking for $ac_header... " >&6; }
7295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7296   $as_echo_n "(cached) " >&6
7297 else
7298   cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 $ac_includes_default
7305
7306 #include <$ac_header>
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7310 case "(($ac_try" in
7311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312   *) ac_try_echo=$ac_try;;
7313 esac
7314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315 $as_echo "$ac_try_echo") >&5
7316   (eval "$ac_compile") 2>conftest.er1
7317   ac_status=$?
7318   grep -v '^ *+' conftest.er1 >conftest.err
7319   rm -f conftest.er1
7320   cat conftest.err >&5
7321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); } && {
7323          test -z "$ac_c_werror_flag" ||
7324          test ! -s conftest.err
7325        } && test -s conftest.$ac_objext; then
7326   eval "$as_ac_Header=yes"
7327 else
7328   $as_echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331         eval "$as_ac_Header=no"
7332 fi
7333
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 fi
7336 ac_res=`eval 'as_val=${'$as_ac_Header'}
7337                  $as_echo "$as_val"'`
7338                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7339 $as_echo "$ac_res" >&6; }
7340 as_val=`eval 'as_val=${'$as_ac_Header'}
7341                  $as_echo "$as_val"'`
7342    if test "x$as_val" = x""yes; then
7343   cat >>confdefs.h <<_ACEOF
7344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7345 _ACEOF
7346
7347 fi
7348
7349 done
7350
7351
7352
7353 for ac_header in dlfcn.h
7354 do
7355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7357 $as_echo_n "checking for $ac_header... " >&6; }
7358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7359   $as_echo_n "(cached) " >&6
7360 else
7361   cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h.  */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h.  */
7367 $ac_includes_default
7368
7369 #include <$ac_header>
7370 _ACEOF
7371 rm -f conftest.$ac_objext
7372 if { (ac_try="$ac_compile"
7373 case "(($ac_try" in
7374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375   *) ac_try_echo=$ac_try;;
7376 esac
7377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7378 $as_echo "$ac_try_echo") >&5
7379   (eval "$ac_compile") 2>conftest.er1
7380   ac_status=$?
7381   grep -v '^ *+' conftest.er1 >conftest.err
7382   rm -f conftest.er1
7383   cat conftest.err >&5
7384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } && {
7386          test -z "$ac_c_werror_flag" ||
7387          test ! -s conftest.err
7388        } && test -s conftest.$ac_objext; then
7389   eval "$as_ac_Header=yes"
7390 else
7391   $as_echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394         eval "$as_ac_Header=no"
7395 fi
7396
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 fi
7399 ac_res=`eval 'as_val=${'$as_ac_Header'}
7400                  $as_echo "$as_val"'`
7401                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7402 $as_echo "$ac_res" >&6; }
7403 as_val=`eval 'as_val=${'$as_ac_Header'}
7404                  $as_echo "$as_val"'`
7405    if test "x$as_val" = x""yes; then
7406   cat >>confdefs.h <<_ACEOF
7407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7408 _ACEOF
7409
7410 fi
7411
7412 done
7413
7414
7415
7416 # Set options
7417
7418
7419
7420         enable_dlopen=no
7421
7422
7423   enable_win32_dll=no
7424
7425
7426             # Check whether --enable-shared was given.
7427 if test "${enable_shared+set}" = set; then
7428   enableval=$enable_shared; p=${PACKAGE-default}
7429     case $enableval in
7430     yes) enable_shared=yes ;;
7431     no) enable_shared=no ;;
7432     *)
7433       enable_shared=no
7434       # Look at the argument we got.  We use all the common list separators.
7435       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7436       for pkg in $enableval; do
7437         IFS="$lt_save_ifs"
7438         if test "X$pkg" = "X$p"; then
7439           enable_shared=yes
7440         fi
7441       done
7442       IFS="$lt_save_ifs"
7443       ;;
7444     esac
7445 else
7446   enable_shared=yes
7447 fi
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457   # Check whether --enable-static was given.
7458 if test "${enable_static+set}" = set; then
7459   enableval=$enable_static; p=${PACKAGE-default}
7460     case $enableval in
7461     yes) enable_static=yes ;;
7462     no) enable_static=no ;;
7463     *)
7464      enable_static=no
7465       # Look at the argument we got.  We use all the common list separators.
7466       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7467       for pkg in $enableval; do
7468         IFS="$lt_save_ifs"
7469         if test "X$pkg" = "X$p"; then
7470           enable_static=yes
7471         fi
7472       done
7473       IFS="$lt_save_ifs"
7474       ;;
7475     esac
7476 else
7477   enable_static=yes
7478 fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489 # Check whether --with-pic was given.
7490 if test "${with_pic+set}" = set; then
7491   withval=$with_pic; pic_mode="$withval"
7492 else
7493   pic_mode=default
7494 fi
7495
7496
7497 test -z "$pic_mode" && pic_mode=default
7498
7499
7500
7501
7502
7503
7504
7505   # Check whether --enable-fast-install was given.
7506 if test "${enable_fast_install+set}" = set; then
7507   enableval=$enable_fast_install; p=${PACKAGE-default}
7508     case $enableval in
7509     yes) enable_fast_install=yes ;;
7510     no) enable_fast_install=no ;;
7511     *)
7512       enable_fast_install=no
7513       # Look at the argument we got.  We use all the common list separators.
7514       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7515       for pkg in $enableval; do
7516         IFS="$lt_save_ifs"
7517         if test "X$pkg" = "X$p"; then
7518           enable_fast_install=yes
7519         fi
7520       done
7521       IFS="$lt_save_ifs"
7522       ;;
7523     esac
7524 else
7525   enable_fast_install=yes
7526 fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 # This can be used to rebuild libtool when needed
7539 LIBTOOL_DEPS="$ltmain"
7540
7541 # Always use our own libtool.
7542 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 test -z "$LN_S" && LN_S="ln -s"
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583 if test -n "${ZSH_VERSION+set}" ; then
7584    setopt NO_GLOB_SUBST
7585 fi
7586
7587 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7588 $as_echo_n "checking for objdir... " >&6; }
7589 if test "${lt_cv_objdir+set}" = set; then
7590   $as_echo_n "(cached) " >&6
7591 else
7592   rm -f .libs 2>/dev/null
7593 mkdir .libs 2>/dev/null
7594 if test -d .libs; then
7595   lt_cv_objdir=.libs
7596 else
7597   # MS-DOS does not allow filenames that begin with a dot.
7598   lt_cv_objdir=_libs
7599 fi
7600 rmdir .libs 2>/dev/null
7601 fi
7602 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7603 $as_echo "$lt_cv_objdir" >&6; }
7604 objdir=$lt_cv_objdir
7605
7606
7607
7608
7609
7610 cat >>confdefs.h <<_ACEOF
7611 #define LT_OBJDIR "$lt_cv_objdir/"
7612 _ACEOF
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630 case $host_os in
7631 aix3*)
7632   # AIX sometimes has problems with the GCC collect2 program.  For some
7633   # reason, if we set the COLLECT_NAMES environment variable, the problems
7634   # vanish in a puff of smoke.
7635   if test "X${COLLECT_NAMES+set}" != Xset; then
7636     COLLECT_NAMES=
7637     export COLLECT_NAMES
7638   fi
7639   ;;
7640 esac
7641
7642 # Sed substitution that helps us do robust quoting.  It backslashifies
7643 # metacharacters that are still active within double-quoted strings.
7644 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7645
7646 # Same as above, but do not quote variable references.
7647 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7648
7649 # Sed substitution to delay expansion of an escaped shell variable in a
7650 # double_quote_subst'ed string.
7651 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7652
7653 # Sed substitution to delay expansion of an escaped single quote.
7654 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7655
7656 # Sed substitution to avoid accidental globbing in evaled expressions
7657 no_glob_subst='s/\*/\\\*/g'
7658
7659 # Global variables:
7660 ofile=libtool
7661 can_build_shared=yes
7662
7663 # All known linkers require a `.a' archive for static linking (except MSVC,
7664 # which needs '.lib').
7665 libext=a
7666
7667 with_gnu_ld="$lt_cv_prog_gnu_ld"
7668
7669 old_CC="$CC"
7670 old_CFLAGS="$CFLAGS"
7671
7672 # Set sane defaults for various variables
7673 test -z "$CC" && CC=cc
7674 test -z "$LTCC" && LTCC=$CC
7675 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7676 test -z "$LD" && LD=ld
7677 test -z "$ac_objext" && ac_objext=o
7678
7679 for cc_temp in $compiler""; do
7680   case $cc_temp in
7681     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7682     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7683     \-*) ;;
7684     *) break;;
7685   esac
7686 done
7687 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7688
7689
7690 # Only perform the check for file, if the check method requires it
7691 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7692 case $deplibs_check_method in
7693 file_magic*)
7694   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7695     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7696 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7698   $as_echo_n "(cached) " >&6
7699 else
7700   case $MAGIC_CMD in
7701 [\\/*] |  ?:[\\/]*)
7702   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7703   ;;
7704 *)
7705   lt_save_MAGIC_CMD="$MAGIC_CMD"
7706   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7707   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7708   for ac_dir in $ac_dummy; do
7709     IFS="$lt_save_ifs"
7710     test -z "$ac_dir" && ac_dir=.
7711     if test -f $ac_dir/${ac_tool_prefix}file; then
7712       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7713       if test -n "$file_magic_test_file"; then
7714         case $deplibs_check_method in
7715         "file_magic "*)
7716           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7717           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7718           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7719             $EGREP "$file_magic_regex" > /dev/null; then
7720             :
7721           else
7722             cat <<_LT_EOF 1>&2
7723
7724 *** Warning: the command libtool uses to detect shared libraries,
7725 *** $file_magic_cmd, produces output that libtool cannot recognize.
7726 *** The result is that libtool may fail to recognize shared libraries
7727 *** as such.  This will affect the creation of libtool libraries that
7728 *** depend on shared libraries, but programs linked with such libtool
7729 *** libraries will work regardless of this problem.  Nevertheless, you
7730 *** may want to report the problem to your system manager and/or to
7731 *** bug-libtool@gnu.org
7732
7733 _LT_EOF
7734           fi ;;
7735         esac
7736       fi
7737       break
7738     fi
7739   done
7740   IFS="$lt_save_ifs"
7741   MAGIC_CMD="$lt_save_MAGIC_CMD"
7742   ;;
7743 esac
7744 fi
7745
7746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7747 if test -n "$MAGIC_CMD"; then
7748   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7749 $as_echo "$MAGIC_CMD" >&6; }
7750 else
7751   { $as_echo "$as_me:$LINENO: result: no" >&5
7752 $as_echo "no" >&6; }
7753 fi
7754
7755
7756
7757
7758
7759 if test -z "$lt_cv_path_MAGIC_CMD"; then
7760   if test -n "$ac_tool_prefix"; then
7761     { $as_echo "$as_me:$LINENO: checking for file" >&5
7762 $as_echo_n "checking for file... " >&6; }
7763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7764   $as_echo_n "(cached) " >&6
7765 else
7766   case $MAGIC_CMD in
7767 [\\/*] |  ?:[\\/]*)
7768   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7769   ;;
7770 *)
7771   lt_save_MAGIC_CMD="$MAGIC_CMD"
7772   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7773   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7774   for ac_dir in $ac_dummy; do
7775     IFS="$lt_save_ifs"
7776     test -z "$ac_dir" && ac_dir=.
7777     if test -f $ac_dir/file; then
7778       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7779       if test -n "$file_magic_test_file"; then
7780         case $deplibs_check_method in
7781         "file_magic "*)
7782           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7785             $EGREP "$file_magic_regex" > /dev/null; then
7786             :
7787           else
7788             cat <<_LT_EOF 1>&2
7789
7790 *** Warning: the command libtool uses to detect shared libraries,
7791 *** $file_magic_cmd, produces output that libtool cannot recognize.
7792 *** The result is that libtool may fail to recognize shared libraries
7793 *** as such.  This will affect the creation of libtool libraries that
7794 *** depend on shared libraries, but programs linked with such libtool
7795 *** libraries will work regardless of this problem.  Nevertheless, you
7796 *** may want to report the problem to your system manager and/or to
7797 *** bug-libtool@gnu.org
7798
7799 _LT_EOF
7800           fi ;;
7801         esac
7802       fi
7803       break
7804     fi
7805   done
7806   IFS="$lt_save_ifs"
7807   MAGIC_CMD="$lt_save_MAGIC_CMD"
7808   ;;
7809 esac
7810 fi
7811
7812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813 if test -n "$MAGIC_CMD"; then
7814   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7815 $as_echo "$MAGIC_CMD" >&6; }
7816 else
7817   { $as_echo "$as_me:$LINENO: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822   else
7823     MAGIC_CMD=:
7824   fi
7825 fi
7826
7827   fi
7828   ;;
7829 esac
7830
7831 # Use C for the default configuration in the libtool script
7832
7833 lt_save_CC="$CC"
7834 ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840
7841 # Source file extension for C test sources.
7842 ac_ext=c
7843
7844 # Object file extension for compiled C test sources.
7845 objext=o
7846 objext=$objext
7847
7848 # Code to be used in simple compile tests
7849 lt_simple_compile_test_code="int some_variable = 0;"
7850
7851 # Code to be used in simple link tests
7852 lt_simple_link_test_code='int main(){return(0);}'
7853
7854
7855
7856
7857
7858
7859
7860 # If no C compiler was specified, use CC.
7861 LTCC=${LTCC-"$CC"}
7862
7863 # If no C compiler flags were specified, use CFLAGS.
7864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7865
7866 # Allow CC to be a program name with arguments.
7867 compiler=$CC
7868
7869 # Save the default compiler, since it gets overwritten when the other
7870 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7871 compiler_DEFAULT=$CC
7872
7873 # save warnings/boilerplate of simple test code
7874 ac_outfile=conftest.$ac_objext
7875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7877 _lt_compiler_boilerplate=`cat conftest.err`
7878 $RM conftest*
7879
7880 ac_outfile=conftest.$ac_objext
7881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7883 _lt_linker_boilerplate=`cat conftest.err`
7884 $RM -r conftest*
7885
7886
7887 if test -n "$compiler"; then
7888
7889 lt_prog_compiler_no_builtin_flag=
7890
7891 if test "$GCC" = yes; then
7892   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7893
7894   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7895 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7896 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7897   $as_echo_n "(cached) " >&6
7898 else
7899   lt_cv_prog_compiler_rtti_exceptions=no
7900    ac_outfile=conftest.$ac_objext
7901    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7902    lt_compiler_flag="-fno-rtti -fno-exceptions"
7903    # Insert the option either (1) after the last *FLAGS variable, or
7904    # (2) before a word containing "conftest.", or (3) at the end.
7905    # Note that $ac_compile itself does not contain backslashes and begins
7906    # with a dollar sign (not a hyphen), so the echo should work correctly.
7907    # The option is referenced via a variable to avoid confusing sed.
7908    lt_compile=`echo "$ac_compile" | $SED \
7909    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911    -e 's:$: $lt_compiler_flag:'`
7912    (eval echo "\"\$as_me:7912: $lt_compile\"" >&5)
7913    (eval "$lt_compile" 2>conftest.err)
7914    ac_status=$?
7915    cat conftest.err >&5
7916    echo "$as_me:7916: \$? = $ac_status" >&5
7917    if (exit $ac_status) && test -s "$ac_outfile"; then
7918      # The compiler can only warn and ignore the option if not recognized
7919      # So say no if there are warnings other than the usual output.
7920      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7921      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7922      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7923        lt_cv_prog_compiler_rtti_exceptions=yes
7924      fi
7925    fi
7926    $RM conftest*
7927
7928 fi
7929 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7930 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7931
7932 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7933     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7934 else
7935     :
7936 fi
7937
7938 fi
7939
7940
7941
7942
7943
7944
7945   lt_prog_compiler_wl=
7946 lt_prog_compiler_pic=
7947 lt_prog_compiler_static=
7948
7949 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7951
7952   if test "$GCC" = yes; then
7953     lt_prog_compiler_wl='-Wl,'
7954     lt_prog_compiler_static='-static'
7955
7956     case $host_os in
7957       aix*)
7958       # All AIX code is PIC.
7959       if test "$host_cpu" = ia64; then
7960         # AIX 5 now supports IA64 processor
7961         lt_prog_compiler_static='-Bstatic'
7962       fi
7963       ;;
7964
7965     amigaos*)
7966       case $host_cpu in
7967       powerpc)
7968             # see comment about AmigaOS4 .so support
7969             lt_prog_compiler_pic='-fPIC'
7970         ;;
7971       m68k)
7972             # FIXME: we need at least 68020 code to build shared libraries, but
7973             # adding the `-m68020' flag to GCC prevents building anything better,
7974             # like `-m68040'.
7975             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7976         ;;
7977       esac
7978       ;;
7979
7980     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7981       # PIC is the default for these OSes.
7982       ;;
7983
7984     mingw* | cygwin* | pw32* | os2* | cegcc*)
7985       # This hack is so that the source file can tell whether it is being
7986       # built for inclusion in a dll (and should export symbols for example).
7987       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7988       # (--disable-auto-import) libraries
7989       lt_prog_compiler_pic='-DDLL_EXPORT'
7990       ;;
7991
7992     darwin* | rhapsody*)
7993       # PIC is the default on this platform
7994       # Common symbols not allowed in MH_DYLIB files
7995       lt_prog_compiler_pic='-fno-common'
7996       ;;
7997
7998     hpux*)
7999       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8000       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8001       # sets the default TLS model and affects inlining.
8002       case $host_cpu in
8003       hppa*64*)
8004         # +Z the default
8005         ;;
8006       *)
8007         lt_prog_compiler_pic='-fPIC'
8008         ;;
8009       esac
8010       ;;
8011
8012     interix[3-9]*)
8013       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8014       # Instead, we relocate shared libraries at runtime.
8015       ;;
8016
8017     msdosdjgpp*)
8018       # Just because we use GCC doesn't mean we suddenly get shared libraries
8019       # on systems that don't support them.
8020       lt_prog_compiler_can_build_shared=no
8021       enable_shared=no
8022       ;;
8023
8024     *nto* | *qnx*)
8025       # QNX uses GNU C++, but need to define -shared option too, otherwise
8026       # it will coredump.
8027       lt_prog_compiler_pic='-fPIC -shared'
8028       ;;
8029
8030     sysv4*MP*)
8031       if test -d /usr/nec; then
8032         lt_prog_compiler_pic=-Kconform_pic
8033       fi
8034       ;;
8035
8036     *)
8037       lt_prog_compiler_pic='-fPIC'
8038       ;;
8039     esac
8040   else
8041     # PORTME Check for flag to pass linker flags through the system compiler.
8042     case $host_os in
8043     aix*)
8044       lt_prog_compiler_wl='-Wl,'
8045       if test "$host_cpu" = ia64; then
8046         # AIX 5 now supports IA64 processor
8047         lt_prog_compiler_static='-Bstatic'
8048       else
8049         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8050       fi
8051       ;;
8052
8053     mingw* | cygwin* | pw32* | os2* | cegcc*)
8054       # This hack is so that the source file can tell whether it is being
8055       # built for inclusion in a dll (and should export symbols for example).
8056       lt_prog_compiler_pic='-DDLL_EXPORT'
8057       ;;
8058
8059     hpux9* | hpux10* | hpux11*)
8060       lt_prog_compiler_wl='-Wl,'
8061       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8062       # not for PA HP-UX.
8063       case $host_cpu in
8064       hppa*64*|ia64*)
8065         # +Z the default
8066         ;;
8067       *)
8068         lt_prog_compiler_pic='+Z'
8069         ;;
8070       esac
8071       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8072       lt_prog_compiler_static='${wl}-a ${wl}archive'
8073       ;;
8074
8075     irix5* | irix6* | nonstopux*)
8076       lt_prog_compiler_wl='-Wl,'
8077       # PIC (with -KPIC) is the default.
8078       lt_prog_compiler_static='-non_shared'
8079       ;;
8080
8081     linux* | k*bsd*-gnu)
8082       case $cc_basename in
8083       # old Intel for x86_64 which still supported -KPIC.
8084       ecc*)
8085         lt_prog_compiler_wl='-Wl,'
8086         lt_prog_compiler_pic='-KPIC'
8087         lt_prog_compiler_static='-static'
8088         ;;
8089       # icc used to be incompatible with GCC.
8090       # ICC 10 doesn't accept -KPIC any more.
8091       icc* | ifort*)
8092         lt_prog_compiler_wl='-Wl,'
8093         lt_prog_compiler_pic='-fPIC'
8094         lt_prog_compiler_static='-static'
8095         ;;
8096       # Lahey Fortran 8.1.
8097       lf95*)
8098         lt_prog_compiler_wl='-Wl,'
8099         lt_prog_compiler_pic='--shared'
8100         lt_prog_compiler_static='--static'
8101         ;;
8102       pgcc* | pgf77* | pgf90* | pgf95*)
8103         # Portland Group compilers (*not* the Pentium gcc compiler,
8104         # which looks to be a dead project)
8105         lt_prog_compiler_wl='-Wl,'
8106         lt_prog_compiler_pic='-fpic'
8107         lt_prog_compiler_static='-Bstatic'
8108         ;;
8109       ccc*)
8110         lt_prog_compiler_wl='-Wl,'
8111         # All Alpha code is PIC.
8112         lt_prog_compiler_static='-non_shared'
8113         ;;
8114       xl*)
8115         # IBM XL C 8.0/Fortran 10.1 on PPC
8116         lt_prog_compiler_wl='-Wl,'
8117         lt_prog_compiler_pic='-qpic'
8118         lt_prog_compiler_static='-qstaticlink'
8119         ;;
8120       *)
8121         case `$CC -V 2>&1 | sed 5q` in
8122         *Sun\ C*)
8123           # Sun C 5.9
8124           lt_prog_compiler_pic='-KPIC'
8125           lt_prog_compiler_static='-Bstatic'
8126           lt_prog_compiler_wl='-Wl,'
8127           ;;
8128         *Sun\ F*)
8129           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8130           lt_prog_compiler_pic='-KPIC'
8131           lt_prog_compiler_static='-Bstatic'
8132           lt_prog_compiler_wl=''
8133           ;;
8134         esac
8135         ;;
8136       esac
8137       ;;
8138
8139     newsos6)
8140       lt_prog_compiler_pic='-KPIC'
8141       lt_prog_compiler_static='-Bstatic'
8142       ;;
8143
8144     *nto* | *qnx*)
8145       # QNX uses GNU C++, but need to define -shared option too, otherwise
8146       # it will coredump.
8147       lt_prog_compiler_pic='-fPIC -shared'
8148       ;;
8149
8150     osf3* | osf4* | osf5*)
8151       lt_prog_compiler_wl='-Wl,'
8152       # All OSF/1 code is PIC.
8153       lt_prog_compiler_static='-non_shared'
8154       ;;
8155
8156     rdos*)
8157       lt_prog_compiler_static='-non_shared'
8158       ;;
8159
8160     solaris*)
8161       lt_prog_compiler_pic='-KPIC'
8162       lt_prog_compiler_static='-Bstatic'
8163       case $cc_basename in
8164       f77* | f90* | f95*)
8165         lt_prog_compiler_wl='-Qoption ld ';;
8166       *)
8167         lt_prog_compiler_wl='-Wl,';;
8168       esac
8169       ;;
8170
8171     sunos4*)
8172       lt_prog_compiler_wl='-Qoption ld '
8173       lt_prog_compiler_pic='-PIC'
8174       lt_prog_compiler_static='-Bstatic'
8175       ;;
8176
8177     sysv4 | sysv4.2uw2* | sysv4.3*)
8178       lt_prog_compiler_wl='-Wl,'
8179       lt_prog_compiler_pic='-KPIC'
8180       lt_prog_compiler_static='-Bstatic'
8181       ;;
8182
8183     sysv4*MP*)
8184       if test -d /usr/nec ;then
8185         lt_prog_compiler_pic='-Kconform_pic'
8186         lt_prog_compiler_static='-Bstatic'
8187       fi
8188       ;;
8189
8190     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8191       lt_prog_compiler_wl='-Wl,'
8192       lt_prog_compiler_pic='-KPIC'
8193       lt_prog_compiler_static='-Bstatic'
8194       ;;
8195
8196     unicos*)
8197       lt_prog_compiler_wl='-Wl,'
8198       lt_prog_compiler_can_build_shared=no
8199       ;;
8200
8201     uts4*)
8202       lt_prog_compiler_pic='-pic'
8203       lt_prog_compiler_static='-Bstatic'
8204       ;;
8205
8206     *)
8207       lt_prog_compiler_can_build_shared=no
8208       ;;
8209     esac
8210   fi
8211
8212 case $host_os in
8213   # For platforms which do not support PIC, -DPIC is meaningless:
8214   *djgpp*)
8215     lt_prog_compiler_pic=
8216     ;;
8217   *)
8218     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8219     ;;
8220 esac
8221 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8222 $as_echo "$lt_prog_compiler_pic" >&6; }
8223
8224
8225
8226
8227
8228
8229 #
8230 # Check to make sure the PIC flag actually works.
8231 #
8232 if test -n "$lt_prog_compiler_pic"; then
8233   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8235 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8236   $as_echo_n "(cached) " >&6
8237 else
8238   lt_cv_prog_compiler_pic_works=no
8239    ac_outfile=conftest.$ac_objext
8240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8242    # Insert the option either (1) after the last *FLAGS variable, or
8243    # (2) before a word containing "conftest.", or (3) at the end.
8244    # Note that $ac_compile itself does not contain backslashes and begins
8245    # with a dollar sign (not a hyphen), so the echo should work correctly.
8246    # The option is referenced via a variable to avoid confusing sed.
8247    lt_compile=`echo "$ac_compile" | $SED \
8248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250    -e 's:$: $lt_compiler_flag:'`
8251    (eval echo "\"\$as_me:8251: $lt_compile\"" >&5)
8252    (eval "$lt_compile" 2>conftest.err)
8253    ac_status=$?
8254    cat conftest.err >&5
8255    echo "$as_me:8255: \$? = $ac_status" >&5
8256    if (exit $ac_status) && test -s "$ac_outfile"; then
8257      # The compiler can only warn and ignore the option if not recognized
8258      # So say no if there are warnings other than the usual output.
8259      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8260      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8261      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8262        lt_cv_prog_compiler_pic_works=yes
8263      fi
8264    fi
8265    $RM conftest*
8266
8267 fi
8268 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8270
8271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8272     case $lt_prog_compiler_pic in
8273      "" | " "*) ;;
8274      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8275      esac
8276 else
8277     lt_prog_compiler_pic=
8278      lt_prog_compiler_can_build_shared=no
8279 fi
8280
8281 fi
8282
8283
8284
8285
8286
8287
8288 #
8289 # Check to make sure the static flag actually works.
8290 #
8291 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8292 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8293 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8294 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8295   $as_echo_n "(cached) " >&6
8296 else
8297   lt_cv_prog_compiler_static_works=no
8298    save_LDFLAGS="$LDFLAGS"
8299    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8300    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8301    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8302      # The linker can only warn and ignore the option if not recognized
8303      # So say no if there are warnings
8304      if test -s conftest.err; then
8305        # Append any errors to the config.log.
8306        cat conftest.err 1>&5
8307        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8308        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8309        if diff conftest.exp conftest.er2 >/dev/null; then
8310          lt_cv_prog_compiler_static_works=yes
8311        fi
8312      else
8313        lt_cv_prog_compiler_static_works=yes
8314      fi
8315    fi
8316    $RM -r conftest*
8317    LDFLAGS="$save_LDFLAGS"
8318
8319 fi
8320 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8321 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8322
8323 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8324     :
8325 else
8326     lt_prog_compiler_static=
8327 fi
8328
8329
8330
8331
8332
8333
8334
8335   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8338   $as_echo_n "(cached) " >&6
8339 else
8340   lt_cv_prog_compiler_c_o=no
8341    $RM -r conftest 2>/dev/null
8342    mkdir conftest
8343    cd conftest
8344    mkdir out
8345    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8346
8347    lt_compiler_flag="-o out/conftest2.$ac_objext"
8348    # Insert the option either (1) after the last *FLAGS variable, or
8349    # (2) before a word containing "conftest.", or (3) at the end.
8350    # Note that $ac_compile itself does not contain backslashes and begins
8351    # with a dollar sign (not a hyphen), so the echo should work correctly.
8352    lt_compile=`echo "$ac_compile" | $SED \
8353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8355    -e 's:$: $lt_compiler_flag:'`
8356    (eval echo "\"\$as_me:8356: $lt_compile\"" >&5)
8357    (eval "$lt_compile" 2>out/conftest.err)
8358    ac_status=$?
8359    cat out/conftest.err >&5
8360    echo "$as_me:8360: \$? = $ac_status" >&5
8361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8362    then
8363      # The compiler can only warn and ignore the option if not recognized
8364      # So say no if there are warnings
8365      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8366      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8367      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8368        lt_cv_prog_compiler_c_o=yes
8369      fi
8370    fi
8371    chmod u+w . 2>&5
8372    $RM conftest*
8373    # SGI C++ compiler will create directory out/ii_files/ for
8374    # template instantiation
8375    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8376    $RM out/* && rmdir out
8377    cd ..
8378    $RM -r conftest
8379    $RM conftest*
8380
8381 fi
8382 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8384
8385
8386
8387
8388
8389
8390   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8393   $as_echo_n "(cached) " >&6
8394 else
8395   lt_cv_prog_compiler_c_o=no
8396    $RM -r conftest 2>/dev/null
8397    mkdir conftest
8398    cd conftest
8399    mkdir out
8400    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8401
8402    lt_compiler_flag="-o out/conftest2.$ac_objext"
8403    # Insert the option either (1) after the last *FLAGS variable, or
8404    # (2) before a word containing "conftest.", or (3) at the end.
8405    # Note that $ac_compile itself does not contain backslashes and begins
8406    # with a dollar sign (not a hyphen), so the echo should work correctly.
8407    lt_compile=`echo "$ac_compile" | $SED \
8408    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8409    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8410    -e 's:$: $lt_compiler_flag:'`
8411    (eval echo "\"\$as_me:8411: $lt_compile\"" >&5)
8412    (eval "$lt_compile" 2>out/conftest.err)
8413    ac_status=$?
8414    cat out/conftest.err >&5
8415    echo "$as_me:8415: \$? = $ac_status" >&5
8416    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8417    then
8418      # The compiler can only warn and ignore the option if not recognized
8419      # So say no if there are warnings
8420      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8421      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8422      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8423        lt_cv_prog_compiler_c_o=yes
8424      fi
8425    fi
8426    chmod u+w . 2>&5
8427    $RM conftest*
8428    # SGI C++ compiler will create directory out/ii_files/ for
8429    # template instantiation
8430    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8431    $RM out/* && rmdir out
8432    cd ..
8433    $RM -r conftest
8434    $RM conftest*
8435
8436 fi
8437 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8439
8440
8441
8442
8443 hard_links="nottested"
8444 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8445   # do not overwrite the value of need_locks provided by the user
8446   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8447 $as_echo_n "checking if we can lock with hard links... " >&6; }
8448   hard_links=yes
8449   $RM conftest*
8450   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8451   touch conftest.a
8452   ln conftest.a conftest.b 2>&5 || hard_links=no
8453   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8454   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8455 $as_echo "$hard_links" >&6; }
8456   if test "$hard_links" = no; then
8457     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8458 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8459     need_locks=warn
8460   fi
8461 else
8462   need_locks=no
8463 fi
8464
8465
8466
8467
8468
8469
8470   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8472
8473   runpath_var=
8474   allow_undefined_flag=
8475   always_export_symbols=no
8476   archive_cmds=
8477   archive_expsym_cmds=
8478   compiler_needs_object=no
8479   enable_shared_with_static_runtimes=no
8480   export_dynamic_flag_spec=
8481   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8482   hardcode_automatic=no
8483   hardcode_direct=no
8484   hardcode_direct_absolute=no
8485   hardcode_libdir_flag_spec=
8486   hardcode_libdir_flag_spec_ld=
8487   hardcode_libdir_separator=
8488   hardcode_minus_L=no
8489   hardcode_shlibpath_var=unsupported
8490   inherit_rpath=no
8491   link_all_deplibs=unknown
8492   module_cmds=
8493   module_expsym_cmds=
8494   old_archive_from_new_cmds=
8495   old_archive_from_expsyms_cmds=
8496   thread_safe_flag_spec=
8497   whole_archive_flag_spec=
8498   # include_expsyms should be a list of space-separated symbols to be *always*
8499   # included in the symbol list
8500   include_expsyms=
8501   # exclude_expsyms can be an extended regexp of symbols to exclude
8502   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8503   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8504   # as well as any symbol that contains `d'.
8505   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8506   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8507   # platforms (ab)use it in PIC code, but their linkers get confused if
8508   # the symbol is explicitly referenced.  Since portable code cannot
8509   # rely on this symbol name, it's probably fine to never include it in
8510   # preloaded symbol tables.
8511   # Exclude shared library initialization/finalization symbols.
8512   extract_expsyms_cmds=
8513
8514   case $host_os in
8515   cygwin* | mingw* | pw32* | cegcc*)
8516     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8517     # When not using gcc, we currently assume that we are using
8518     # Microsoft Visual C++.
8519     if test "$GCC" != yes; then
8520       with_gnu_ld=no
8521     fi
8522     ;;
8523   interix*)
8524     # we just hope/assume this is gcc and not c89 (= MSVC++)
8525     with_gnu_ld=yes
8526     ;;
8527   openbsd*)
8528     with_gnu_ld=no
8529     ;;
8530   esac
8531
8532   ld_shlibs=yes
8533   if test "$with_gnu_ld" = yes; then
8534     # If archive_cmds runs LD, not CC, wlarc should be empty
8535     wlarc='${wl}'
8536
8537     # Set some defaults for GNU ld with shared library support. These
8538     # are reset later if shared libraries are not supported. Putting them
8539     # here allows them to be overridden if necessary.
8540     runpath_var=LD_RUN_PATH
8541     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8542     export_dynamic_flag_spec='${wl}--export-dynamic'
8543     # ancient GNU ld didn't support --whole-archive et. al.
8544     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8545       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8546     else
8547       whole_archive_flag_spec=
8548     fi
8549     supports_anon_versioning=no
8550     case `$LD -v 2>&1` in
8551       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8552       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8553       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8554       *\ 2.11.*) ;; # other 2.11 versions
8555       *) supports_anon_versioning=yes ;;
8556     esac
8557
8558     # See if GNU ld supports shared libraries.
8559     case $host_os in
8560     aix[3-9]*)
8561       # On AIX/PPC, the GNU linker is very broken
8562       if test "$host_cpu" != ia64; then
8563         ld_shlibs=no
8564         cat <<_LT_EOF 1>&2
8565
8566 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8567 *** to be unable to reliably create shared libraries on AIX.
8568 *** Therefore, libtool is disabling shared libraries support.  If you
8569 *** really care for shared libraries, you may want to modify your PATH
8570 *** so that a non-GNU linker is found, and then restart.
8571
8572 _LT_EOF
8573       fi
8574       ;;
8575
8576     amigaos*)
8577       case $host_cpu in
8578       powerpc)
8579             # see comment about AmigaOS4 .so support
8580             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581             archive_expsym_cmds=''
8582         ;;
8583       m68k)
8584             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)'
8585             hardcode_libdir_flag_spec='-L$libdir'
8586             hardcode_minus_L=yes
8587         ;;
8588       esac
8589       ;;
8590
8591     beos*)
8592       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8593         allow_undefined_flag=unsupported
8594         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8595         # support --undefined.  This deserves some investigation.  FIXME
8596         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597       else
8598         ld_shlibs=no
8599       fi
8600       ;;
8601
8602     cygwin* | mingw* | pw32* | cegcc*)
8603       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8604       # as there is no search path for DLLs.
8605       hardcode_libdir_flag_spec='-L$libdir'
8606       allow_undefined_flag=unsupported
8607       always_export_symbols=no
8608       enable_shared_with_static_runtimes=yes
8609       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8610
8611       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8612         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8613         # If the export-symbols file already is a .def file (1st line
8614         # is EXPORTS), use it as is; otherwise, prepend...
8615         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8616           cp $export_symbols $output_objdir/$soname.def;
8617         else
8618           echo EXPORTS > $output_objdir/$soname.def;
8619           cat $export_symbols >> $output_objdir/$soname.def;
8620         fi~
8621         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8622       else
8623         ld_shlibs=no
8624       fi
8625       ;;
8626
8627     interix[3-9]*)
8628       hardcode_direct=no
8629       hardcode_shlibpath_var=no
8630       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8631       export_dynamic_flag_spec='${wl}-E'
8632       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8633       # Instead, shared libraries are loaded at an image base (0x10000000 by
8634       # default) and relocated if they conflict, which is a slow very memory
8635       # consuming and fragmenting process.  To avoid this, we pick a random,
8636       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8637       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8638       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8639       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'
8640       ;;
8641
8642     gnu* | linux* | tpf* | k*bsd*-gnu)
8643       tmp_diet=no
8644       if test "$host_os" = linux-dietlibc; then
8645         case $cc_basename in
8646           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8647         esac
8648       fi
8649       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8650          && test "$tmp_diet" = no
8651       then
8652         tmp_addflag=
8653         tmp_sharedflag='-shared'
8654         case $cc_basename,$host_cpu in
8655         pgcc*)                          # Portland Group C compiler
8656           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'
8657           tmp_addflag=' $pic_flag'
8658           ;;
8659         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8660           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'
8661           tmp_addflag=' $pic_flag -Mnomain' ;;
8662         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8663           tmp_addflag=' -i_dynamic' ;;
8664         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8665           tmp_addflag=' -i_dynamic -nofor_main' ;;
8666         ifc* | ifort*)                  # Intel Fortran compiler
8667           tmp_addflag=' -nofor_main' ;;
8668         lf95*)                          # Lahey Fortran 8.1
8669           whole_archive_flag_spec=
8670           tmp_sharedflag='--shared' ;;
8671         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8672           tmp_sharedflag='-qmkshrobj'
8673           tmp_addflag= ;;
8674         esac
8675         case `$CC -V 2>&1 | sed 5q` in
8676         *Sun\ C*)                       # Sun C 5.9
8677           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'
8678           compiler_needs_object=yes
8679           tmp_sharedflag='-G' ;;
8680         *Sun\ F*)                       # Sun Fortran 8.3
8681           tmp_sharedflag='-G' ;;
8682         esac
8683         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684
8685         if test "x$supports_anon_versioning" = xyes; then
8686           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8687             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8688             echo "local: *; };" >> $output_objdir/$libname.ver~
8689             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8690         fi
8691
8692         case $cc_basename in
8693         xlf*)
8694           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8695           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8696           hardcode_libdir_flag_spec=
8697           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8698           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8699           if test "x$supports_anon_versioning" = xyes; then
8700             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8701               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8702               echo "local: *; };" >> $output_objdir/$libname.ver~
8703               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8704           fi
8705           ;;
8706         esac
8707       else
8708         ld_shlibs=no
8709       fi
8710       ;;
8711
8712     netbsd*)
8713       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8714         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8715         wlarc=
8716       else
8717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8719       fi
8720       ;;
8721
8722     solaris*)
8723       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8724         ld_shlibs=no
8725         cat <<_LT_EOF 1>&2
8726
8727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8728 *** create shared libraries on Solaris systems.  Therefore, libtool
8729 *** is disabling shared libraries support.  We urge you to upgrade GNU
8730 *** binutils to release 2.9.1 or newer.  Another option is to modify
8731 *** your PATH or compiler configuration so that the native linker is
8732 *** used, and then restart.
8733
8734 _LT_EOF
8735       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738       else
8739         ld_shlibs=no
8740       fi
8741       ;;
8742
8743     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8744       case `$LD -v 2>&1` in
8745         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8746         ld_shlibs=no
8747         cat <<_LT_EOF 1>&2
8748
8749 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8750 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8751 *** is disabling shared libraries support.  We urge you to upgrade GNU
8752 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8753 *** your PATH or compiler configuration so that the native linker is
8754 *** used, and then restart.
8755
8756 _LT_EOF
8757         ;;
8758         *)
8759           # For security reasons, it is highly recommended that you always
8760           # use absolute paths for naming shared libraries, and exclude the
8761           # DT_RUNPATH tag from executables and libraries.  But doing so
8762           # requires that you compile everything twice, which is a pain.
8763           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8764             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767           else
8768             ld_shlibs=no
8769           fi
8770         ;;
8771       esac
8772       ;;
8773
8774     sunos4*)
8775       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8776       wlarc=
8777       hardcode_direct=yes
8778       hardcode_shlibpath_var=no
8779       ;;
8780
8781     *)
8782       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8783         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785       else
8786         ld_shlibs=no
8787       fi
8788       ;;
8789     esac
8790
8791     if test "$ld_shlibs" = no; then
8792       runpath_var=
8793       hardcode_libdir_flag_spec=
8794       export_dynamic_flag_spec=
8795       whole_archive_flag_spec=
8796     fi
8797   else
8798     # PORTME fill in a description of your system's linker (not GNU ld)
8799     case $host_os in
8800     aix3*)
8801       allow_undefined_flag=unsupported
8802       always_export_symbols=yes
8803       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'
8804       # Note: this linker hardcodes the directories in LIBPATH if there
8805       # are no directories specified by -L.
8806       hardcode_minus_L=yes
8807       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8808         # Neither direct hardcoding nor static linking is supported with a
8809         # broken collect2.
8810         hardcode_direct=unsupported
8811       fi
8812       ;;
8813
8814     aix[4-9]*)
8815       if test "$host_cpu" = ia64; then
8816         # On IA64, the linker does run time linking by default, so we don't
8817         # have to do anything special.
8818         aix_use_runtimelinking=no
8819         exp_sym_flag='-Bexport'
8820         no_entry_flag=""
8821       else
8822         # If we're using GNU nm, then we don't want the "-C" option.
8823         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8824         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8825           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'
8826         else
8827           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'
8828         fi
8829         aix_use_runtimelinking=no
8830
8831         # Test if we are trying to use run time linking or normal
8832         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8833         # need to do runtime linking.
8834         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8835           for ld_flag in $LDFLAGS; do
8836           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8837             aix_use_runtimelinking=yes
8838             break
8839           fi
8840           done
8841           ;;
8842         esac
8843
8844         exp_sym_flag='-bexport'
8845         no_entry_flag='-bnoentry'
8846       fi
8847
8848       # When large executables or shared objects are built, AIX ld can
8849       # have problems creating the table of contents.  If linking a library
8850       # or program results in "error TOC overflow" add -mminimal-toc to
8851       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8852       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8853
8854       archive_cmds=''
8855       hardcode_direct=yes
8856       hardcode_direct_absolute=yes
8857       hardcode_libdir_separator=':'
8858       link_all_deplibs=yes
8859       file_list_spec='${wl}-f,'
8860
8861       if test "$GCC" = yes; then
8862         case $host_os in aix4.[012]|aix4.[012].*)
8863         # We only want to do this on AIX 4.2 and lower, the check
8864         # below for broken collect2 doesn't work under 4.3+
8865           collect2name=`${CC} -print-prog-name=collect2`
8866           if test -f "$collect2name" &&
8867            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8868           then
8869           # We have reworked collect2
8870           :
8871           else
8872           # We have old collect2
8873           hardcode_direct=unsupported
8874           # It fails to find uninstalled libraries when the uninstalled
8875           # path is not listed in the libpath.  Setting hardcode_minus_L
8876           # to unsupported forces relinking
8877           hardcode_minus_L=yes
8878           hardcode_libdir_flag_spec='-L$libdir'
8879           hardcode_libdir_separator=
8880           fi
8881           ;;
8882         esac
8883         shared_flag='-shared'
8884         if test "$aix_use_runtimelinking" = yes; then
8885           shared_flag="$shared_flag "'${wl}-G'
8886         fi
8887       else
8888         # not using gcc
8889         if test "$host_cpu" = ia64; then
8890         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8891         # chokes on -Wl,-G. The following line is correct:
8892           shared_flag='-G'
8893         else
8894           if test "$aix_use_runtimelinking" = yes; then
8895             shared_flag='${wl}-G'
8896           else
8897             shared_flag='${wl}-bM:SRE'
8898           fi
8899         fi
8900       fi
8901
8902       export_dynamic_flag_spec='${wl}-bexpall'
8903       # It seems that -bexpall does not export symbols beginning with
8904       # underscore (_), so it is better to generate a list of symbols to export.
8905       always_export_symbols=yes
8906       if test "$aix_use_runtimelinking" = yes; then
8907         # Warning - without using the other runtime loading flags (-brtl),
8908         # -berok will link without error, but may produce a broken library.
8909         allow_undefined_flag='-berok'
8910         # Determine the default libpath from the value encoded in an
8911         # empty executable.
8912         cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918
8919 int
8920 main ()
8921 {
8922
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (ac_try="$ac_link"
8929 case "(($ac_try" in
8930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931   *) ac_try_echo=$ac_try;;
8932 esac
8933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8934 $as_echo "$ac_try_echo") >&5
8935   (eval "$ac_link") 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } && {
8942          test -z "$ac_c_werror_flag" ||
8943          test ! -s conftest.err
8944        } && test -s conftest$ac_exeext && {
8945          test "$cross_compiling" = yes ||
8946          $as_test_x conftest$ac_exeext
8947        }; then
8948
8949 lt_aix_libpath_sed='
8950     /Import File Strings/,/^$/ {
8951         /^0/ {
8952             s/^0  *\(.*\)$/\1/
8953             p
8954         }
8955     }'
8956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8957 # Check for a 64-bit object if we didn't find anything.
8958 if test -z "$aix_libpath"; then
8959   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 fi
8961 else
8962   $as_echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965
8966 fi
8967
8968 rm -rf conftest.dSYM
8969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8970       conftest$ac_exeext conftest.$ac_ext
8971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8972
8973         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8974         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"
8975       else
8976         if test "$host_cpu" = ia64; then
8977           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8978           allow_undefined_flag="-z nodefs"
8979           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"
8980         else
8981          # Determine the default libpath from the value encoded in an
8982          # empty executable.
8983          cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989
8990 int
8991 main ()
8992 {
8993
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (ac_try="$ac_link"
9000 case "(($ac_try" in
9001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002   *) ac_try_echo=$ac_try;;
9003 esac
9004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006   (eval "$ac_link") 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } && {
9013          test -z "$ac_c_werror_flag" ||
9014          test ! -s conftest.err
9015        } && test -s conftest$ac_exeext && {
9016          test "$cross_compiling" = yes ||
9017          $as_test_x conftest$ac_exeext
9018        }; then
9019
9020 lt_aix_libpath_sed='
9021     /Import File Strings/,/^$/ {
9022         /^0/ {
9023             s/^0  *\(.*\)$/\1/
9024             p
9025         }
9026     }'
9027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9028 # Check for a 64-bit object if we didn't find anything.
9029 if test -z "$aix_libpath"; then
9030   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9031 fi
9032 else
9033   $as_echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036
9037 fi
9038
9039 rm -rf conftest.dSYM
9040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9041       conftest$ac_exeext conftest.$ac_ext
9042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9043
9044          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9045           # Warning - without using the other run time loading flags,
9046           # -berok will link without error, but may produce a broken library.
9047           no_undefined_flag=' ${wl}-bernotok'
9048           allow_undefined_flag=' ${wl}-berok'
9049           # Exported symbols can be pulled into shared objects from archives
9050           whole_archive_flag_spec='$convenience'
9051           archive_cmds_need_lc=yes
9052           # This is similar to how AIX traditionally builds its shared libraries.
9053           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'
9054         fi
9055       fi
9056       ;;
9057
9058     amigaos*)
9059       case $host_cpu in
9060       powerpc)
9061             # see comment about AmigaOS4 .so support
9062             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063             archive_expsym_cmds=''
9064         ;;
9065       m68k)
9066             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)'
9067             hardcode_libdir_flag_spec='-L$libdir'
9068             hardcode_minus_L=yes
9069         ;;
9070       esac
9071       ;;
9072
9073     bsdi[45]*)
9074       export_dynamic_flag_spec=-rdynamic
9075       ;;
9076
9077     cygwin* | mingw* | pw32* | cegcc*)
9078       # When not using gcc, we currently assume that we are using
9079       # Microsoft Visual C++.
9080       # hardcode_libdir_flag_spec is actually meaningless, as there is
9081       # no search path for DLLs.
9082       hardcode_libdir_flag_spec=' '
9083       allow_undefined_flag=unsupported
9084       # Tell ltmain to make .lib files, not .a files.
9085       libext=lib
9086       # Tell ltmain to make .dll files, not .so files.
9087       shrext_cmds=".dll"
9088       # FIXME: Setting linknames here is a bad hack.
9089       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9090       # The linker will automatically build a .lib file if we build a DLL.
9091       old_archive_from_new_cmds='true'
9092       # FIXME: Should let the user specify the lib program.
9093       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9094       fix_srcfile_path='`cygpath -w "$srcfile"`'
9095       enable_shared_with_static_runtimes=yes
9096       ;;
9097
9098     darwin* | rhapsody*)
9099
9100
9101   archive_cmds_need_lc=no
9102   hardcode_direct=no
9103   hardcode_automatic=yes
9104   hardcode_shlibpath_var=unsupported
9105   whole_archive_flag_spec=''
9106   link_all_deplibs=yes
9107   allow_undefined_flag="$_lt_dar_allow_undefined"
9108   case $cc_basename in
9109      ifort*) _lt_dar_can_shared=yes ;;
9110      *) _lt_dar_can_shared=$GCC ;;
9111   esac
9112   if test "$_lt_dar_can_shared" = "yes"; then
9113     output_verbose_link_cmd=echo
9114     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9115     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9116     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}"
9117     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}"
9118
9119   else
9120   ld_shlibs=no
9121   fi
9122
9123       ;;
9124
9125     dgux*)
9126       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127       hardcode_libdir_flag_spec='-L$libdir'
9128       hardcode_shlibpath_var=no
9129       ;;
9130
9131     freebsd1*)
9132       ld_shlibs=no
9133       ;;
9134
9135     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9136     # support.  Future versions do this automatically, but an explicit c++rt0.o
9137     # does not break anything, and helps significantly (at the cost of a little
9138     # extra space).
9139     freebsd2.2*)
9140       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9141       hardcode_libdir_flag_spec='-R$libdir'
9142       hardcode_direct=yes
9143       hardcode_shlibpath_var=no
9144       ;;
9145
9146     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9147     freebsd2*)
9148       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9149       hardcode_direct=yes
9150       hardcode_minus_L=yes
9151       hardcode_shlibpath_var=no
9152       ;;
9153
9154     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9155     freebsd* | dragonfly*)
9156       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9157       hardcode_libdir_flag_spec='-R$libdir'
9158       hardcode_direct=yes
9159       hardcode_shlibpath_var=no
9160       ;;
9161
9162     hpux9*)
9163       if test "$GCC" = yes; then
9164         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'
9165       else
9166         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'
9167       fi
9168       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9169       hardcode_libdir_separator=:
9170       hardcode_direct=yes
9171
9172       # hardcode_minus_L: Not really in the search PATH,
9173       # but as the default location of the library.
9174       hardcode_minus_L=yes
9175       export_dynamic_flag_spec='${wl}-E'
9176       ;;
9177
9178     hpux10*)
9179       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9180         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9181       else
9182         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9183       fi
9184       if test "$with_gnu_ld" = no; then
9185         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186         hardcode_libdir_flag_spec_ld='+b $libdir'
9187         hardcode_libdir_separator=:
9188         hardcode_direct=yes
9189         hardcode_direct_absolute=yes
9190         export_dynamic_flag_spec='${wl}-E'
9191         # hardcode_minus_L: Not really in the search PATH,
9192         # but as the default location of the library.
9193         hardcode_minus_L=yes
9194       fi
9195       ;;
9196
9197     hpux11*)
9198       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9199         case $host_cpu in
9200         hppa*64*)
9201           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9202           ;;
9203         ia64*)
9204           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9205           ;;
9206         *)
9207           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208           ;;
9209         esac
9210       else
9211         case $host_cpu in
9212         hppa*64*)
9213           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214           ;;
9215         ia64*)
9216           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217           ;;
9218         *)
9219           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220           ;;
9221         esac
9222       fi
9223       if test "$with_gnu_ld" = no; then
9224         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9225         hardcode_libdir_separator=:
9226
9227         case $host_cpu in
9228         hppa*64*|ia64*)
9229           hardcode_direct=no
9230           hardcode_shlibpath_var=no
9231           ;;
9232         *)
9233           hardcode_direct=yes
9234           hardcode_direct_absolute=yes
9235           export_dynamic_flag_spec='${wl}-E'
9236
9237           # hardcode_minus_L: Not really in the search PATH,
9238           # but as the default location of the library.
9239           hardcode_minus_L=yes
9240           ;;
9241         esac
9242       fi
9243       ;;
9244
9245     irix5* | irix6* | nonstopux*)
9246       if test "$GCC" = yes; then
9247         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'
9248         # Try to use the -exported_symbol ld option, if it does not
9249         # work, assume that -exports_file does not work either and
9250         # implicitly export all symbols.
9251         save_LDFLAGS="$LDFLAGS"
9252         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9253         cat >conftest.$ac_ext <<_ACEOF
9254 int foo(void) {}
9255 _ACEOF
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (ac_try="$ac_link"
9258 case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9263 $as_echo "$ac_try_echo") >&5
9264   (eval "$ac_link") 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } && {
9271          test -z "$ac_c_werror_flag" ||
9272          test ! -s conftest.err
9273        } && test -s conftest$ac_exeext && {
9274          test "$cross_compiling" = yes ||
9275          $as_test_x conftest$ac_exeext
9276        }; then
9277   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'
9278
9279 else
9280   $as_echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283
9284 fi
9285
9286 rm -rf conftest.dSYM
9287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9288       conftest$ac_exeext conftest.$ac_ext
9289         LDFLAGS="$save_LDFLAGS"
9290       else
9291         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'
9292         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'
9293       fi
9294       archive_cmds_need_lc='no'
9295       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296       hardcode_libdir_separator=:
9297       inherit_rpath=yes
9298       link_all_deplibs=yes
9299       ;;
9300
9301     netbsd*)
9302       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9303         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9304       else
9305         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9306       fi
9307       hardcode_libdir_flag_spec='-R$libdir'
9308       hardcode_direct=yes
9309       hardcode_shlibpath_var=no
9310       ;;
9311
9312     newsos6)
9313       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314       hardcode_direct=yes
9315       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316       hardcode_libdir_separator=:
9317       hardcode_shlibpath_var=no
9318       ;;
9319
9320     *nto* | *qnx*)
9321       ;;
9322
9323     openbsd*)
9324       if test -f /usr/libexec/ld.so; then
9325         hardcode_direct=yes
9326         hardcode_shlibpath_var=no
9327         hardcode_direct_absolute=yes
9328         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9329           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9330           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9331           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9332           export_dynamic_flag_spec='${wl}-E'
9333         else
9334           case $host_os in
9335            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9336              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9337              hardcode_libdir_flag_spec='-R$libdir'
9338              ;;
9339            *)
9340              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9341              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9342              ;;
9343           esac
9344         fi
9345       else
9346         ld_shlibs=no
9347       fi
9348       ;;
9349
9350     os2*)
9351       hardcode_libdir_flag_spec='-L$libdir'
9352       hardcode_minus_L=yes
9353       allow_undefined_flag=unsupported
9354       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'
9355       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9356       ;;
9357
9358     osf3*)
9359       if test "$GCC" = yes; then
9360         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9361         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'
9362       else
9363         allow_undefined_flag=' -expect_unresolved \*'
9364         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'
9365       fi
9366       archive_cmds_need_lc='no'
9367       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368       hardcode_libdir_separator=:
9369       ;;
9370
9371     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9372       if test "$GCC" = yes; then
9373         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9374         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'
9375         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9376       else
9377         allow_undefined_flag=' -expect_unresolved \*'
9378         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'
9379         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~
9380         $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'
9381
9382         # Both c and cxx compiler support -rpath directly
9383         hardcode_libdir_flag_spec='-rpath $libdir'
9384       fi
9385       archive_cmds_need_lc='no'
9386       hardcode_libdir_separator=:
9387       ;;
9388
9389     solaris*)
9390       no_undefined_flag=' -z defs'
9391       if test "$GCC" = yes; then
9392         wlarc='${wl}'
9393         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9395           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9396       else
9397         case `$CC -V 2>&1` in
9398         *"Compilers 5.0"*)
9399           wlarc=''
9400           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9402           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9403           ;;
9404         *)
9405           wlarc='${wl}'
9406           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9407           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9408           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9409           ;;
9410         esac
9411       fi
9412       hardcode_libdir_flag_spec='-R$libdir'
9413       hardcode_shlibpath_var=no
9414       case $host_os in
9415       solaris2.[0-5] | solaris2.[0-5].*) ;;
9416       *)
9417         # The compiler driver will combine and reorder linker options,
9418         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9419         # but is careful enough not to reorder.
9420         # Supported since Solaris 2.6 (maybe 2.5.1?)
9421         if test "$GCC" = yes; then
9422           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9423         else
9424           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9425         fi
9426         ;;
9427       esac
9428       link_all_deplibs=yes
9429       ;;
9430
9431     sunos4*)
9432       if test "x$host_vendor" = xsequent; then
9433         # Use $CC to link under sequent, because it throws in some extra .o
9434         # files that make .init and .fini sections work.
9435         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9436       else
9437         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9438       fi
9439       hardcode_libdir_flag_spec='-L$libdir'
9440       hardcode_direct=yes
9441       hardcode_minus_L=yes
9442       hardcode_shlibpath_var=no
9443       ;;
9444
9445     sysv4)
9446       case $host_vendor in
9447         sni)
9448           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449           hardcode_direct=yes # is this really true???
9450         ;;
9451         siemens)
9452           ## LD is ld it makes a PLAMLIB
9453           ## CC just makes a GrossModule.
9454           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9455           reload_cmds='$CC -r -o $output$reload_objs'
9456           hardcode_direct=no
9457         ;;
9458         motorola)
9459           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9461         ;;
9462       esac
9463       runpath_var='LD_RUN_PATH'
9464       hardcode_shlibpath_var=no
9465       ;;
9466
9467     sysv4.3*)
9468       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469       hardcode_shlibpath_var=no
9470       export_dynamic_flag_spec='-Bexport'
9471       ;;
9472
9473     sysv4*MP*)
9474       if test -d /usr/nec; then
9475         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476         hardcode_shlibpath_var=no
9477         runpath_var=LD_RUN_PATH
9478         hardcode_runpath_var=yes
9479         ld_shlibs=yes
9480       fi
9481       ;;
9482
9483     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9484       no_undefined_flag='${wl}-z,text'
9485       archive_cmds_need_lc=no
9486       hardcode_shlibpath_var=no
9487       runpath_var='LD_RUN_PATH'
9488
9489       if test "$GCC" = yes; then
9490         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492       else
9493         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495       fi
9496       ;;
9497
9498     sysv5* | sco3.2v5* | sco5v6*)
9499       # Note: We can NOT use -z defs as we might desire, because we do not
9500       # link with -lc, and that would cause any symbols used from libc to
9501       # always be unresolved, which means just about no library would
9502       # ever link correctly.  If we're not using GNU ld we use -z text
9503       # though, which does catch some bad symbols but isn't as heavy-handed
9504       # as -z defs.
9505       no_undefined_flag='${wl}-z,text'
9506       allow_undefined_flag='${wl}-z,nodefs'
9507       archive_cmds_need_lc=no
9508       hardcode_shlibpath_var=no
9509       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9510       hardcode_libdir_separator=':'
9511       link_all_deplibs=yes
9512       export_dynamic_flag_spec='${wl}-Bexport'
9513       runpath_var='LD_RUN_PATH'
9514
9515       if test "$GCC" = yes; then
9516         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518       else
9519         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521       fi
9522       ;;
9523
9524     uts4*)
9525       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9526       hardcode_libdir_flag_spec='-L$libdir'
9527       hardcode_shlibpath_var=no
9528       ;;
9529
9530     *)
9531       ld_shlibs=no
9532       ;;
9533     esac
9534
9535     if test x$host_vendor = xsni; then
9536       case $host in
9537       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9538         export_dynamic_flag_spec='${wl}-Blargedynsym'
9539         ;;
9540       esac
9541     fi
9542   fi
9543
9544 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9545 $as_echo "$ld_shlibs" >&6; }
9546 test "$ld_shlibs" = no && can_build_shared=no
9547
9548 with_gnu_ld=$with_gnu_ld
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564 #
9565 # Do we need to explicitly link libc?
9566 #
9567 case "x$archive_cmds_need_lc" in
9568 x|xyes)
9569   # Assume -lc should be added
9570   archive_cmds_need_lc=yes
9571
9572   if test "$enable_shared" = yes && test "$GCC" = yes; then
9573     case $archive_cmds in
9574     *'~'*)
9575       # FIXME: we may have to deal with multi-command sequences.
9576       ;;
9577     '$CC '*)
9578       # Test whether the compiler implicitly links with -lc since on some
9579       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9580       # to ld, don't add -lc before -lgcc.
9581       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9582 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9583       $RM conftest*
9584       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9585
9586       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587   (eval $ac_compile) 2>&5
9588   ac_status=$?
9589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } 2>conftest.err; then
9591         soname=conftest
9592         lib=conftest
9593         libobjs=conftest.$ac_objext
9594         deplibs=
9595         wl=$lt_prog_compiler_wl
9596         pic_flag=$lt_prog_compiler_pic
9597         compiler_flags=-v
9598         linker_flags=-v
9599         verstring=
9600         output_objdir=.
9601         libname=conftest
9602         lt_save_allow_undefined_flag=$allow_undefined_flag
9603         allow_undefined_flag=
9604         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9605   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9606   ac_status=$?
9607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); }
9609         then
9610           archive_cmds_need_lc=no
9611         else
9612           archive_cmds_need_lc=yes
9613         fi
9614         allow_undefined_flag=$lt_save_allow_undefined_flag
9615       else
9616         cat conftest.err 1>&5
9617       fi
9618       $RM conftest*
9619       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9620 $as_echo "$archive_cmds_need_lc" >&6; }
9621       ;;
9622     esac
9623   fi
9624   ;;
9625 esac
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9784 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9785
9786 if test "$GCC" = yes; then
9787   case $host_os in
9788     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9789     *) lt_awk_arg="/^libraries:/" ;;
9790   esac
9791   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9792   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9793     # if the path contains ";" then we assume it to be the separator
9794     # otherwise default to the standard path separator (i.e. ":") - it is
9795     # assumed that no part of a normal pathname contains ";" but that should
9796     # okay in the real world where ";" in dirpaths is itself problematic.
9797     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9798   else
9799     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9800   fi
9801   # Ok, now we have the path, separated by spaces, we can step through it
9802   # and add multilib dir if necessary.
9803   lt_tmp_lt_search_path_spec=
9804   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9805   for lt_sys_path in $lt_search_path_spec; do
9806     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9807       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9808     else
9809       test -d "$lt_sys_path" && \
9810         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9811     fi
9812   done
9813   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9814 BEGIN {RS=" "; FS="/|\n";} {
9815   lt_foo="";
9816   lt_count=0;
9817   for (lt_i = NF; lt_i > 0; lt_i--) {
9818     if ($lt_i != "" && $lt_i != ".") {
9819       if ($lt_i == "..") {
9820         lt_count++;
9821       } else {
9822         if (lt_count == 0) {
9823           lt_foo="/" $lt_i lt_foo;
9824         } else {
9825           lt_count--;
9826         }
9827       }
9828     }
9829   }
9830   if (lt_foo != "") { lt_freq[lt_foo]++; }
9831   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9832 }'`
9833   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9834 else
9835   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9836 fi
9837 library_names_spec=
9838 libname_spec='lib$name'
9839 soname_spec=
9840 shrext_cmds=".so"
9841 postinstall_cmds=
9842 postuninstall_cmds=
9843 finish_cmds=
9844 finish_eval=
9845 shlibpath_var=
9846 shlibpath_overrides_runpath=unknown
9847 version_type=none
9848 dynamic_linker="$host_os ld.so"
9849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9850 need_lib_prefix=unknown
9851 hardcode_into_libs=no
9852
9853 # when you set need_version to no, make sure it does not cause -set_version
9854 # flags to be left without arguments
9855 need_version=unknown
9856
9857 case $host_os in
9858 aix3*)
9859   version_type=linux
9860   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9861   shlibpath_var=LIBPATH
9862
9863   # AIX 3 has no versioning support, so we append a major version to the name.
9864   soname_spec='${libname}${release}${shared_ext}$major'
9865   ;;
9866
9867 aix[4-9]*)
9868   version_type=linux
9869   need_lib_prefix=no
9870   need_version=no
9871   hardcode_into_libs=yes
9872   if test "$host_cpu" = ia64; then
9873     # AIX 5 supports IA64
9874     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9875     shlibpath_var=LD_LIBRARY_PATH
9876   else
9877     # With GCC up to 2.95.x, collect2 would create an import file
9878     # for dependence libraries.  The import file would start with
9879     # the line `#! .'.  This would cause the generated library to
9880     # depend on `.', always an invalid library.  This was fixed in
9881     # development snapshots of GCC prior to 3.0.
9882     case $host_os in
9883       aix4 | aix4.[01] | aix4.[01].*)
9884       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9885            echo ' yes '
9886            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9887         :
9888       else
9889         can_build_shared=no
9890       fi
9891       ;;
9892     esac
9893     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9894     # soname into executable. Probably we can add versioning support to
9895     # collect2, so additional links can be useful in future.
9896     if test "$aix_use_runtimelinking" = yes; then
9897       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9898       # instead of lib<name>.a to let people know that these are not
9899       # typical AIX shared libraries.
9900       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901     else
9902       # We preserve .a as extension for shared libraries through AIX4.2
9903       # and later when we are not doing run time linking.
9904       library_names_spec='${libname}${release}.a $libname.a'
9905       soname_spec='${libname}${release}${shared_ext}$major'
9906     fi
9907     shlibpath_var=LIBPATH
9908   fi
9909   ;;
9910
9911 amigaos*)
9912   case $host_cpu in
9913   powerpc)
9914     # Since July 2007 AmigaOS4 officially supports .so libraries.
9915     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917     ;;
9918   m68k)
9919     library_names_spec='$libname.ixlibrary $libname.a'
9920     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9921     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'
9922     ;;
9923   esac
9924   ;;
9925
9926 beos*)
9927   library_names_spec='${libname}${shared_ext}'
9928   dynamic_linker="$host_os ld.so"
9929   shlibpath_var=LIBRARY_PATH
9930   ;;
9931
9932 bsdi[45]*)
9933   version_type=linux
9934   need_version=no
9935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936   soname_spec='${libname}${release}${shared_ext}$major'
9937   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9938   shlibpath_var=LD_LIBRARY_PATH
9939   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9940   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9941   # the default ld.so.conf also contains /usr/contrib/lib and
9942   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9943   # libtool to hard-code these into programs
9944   ;;
9945
9946 cygwin* | mingw* | pw32* | cegcc*)
9947   version_type=windows
9948   shrext_cmds=".dll"
9949   need_version=no
9950   need_lib_prefix=no
9951
9952   case $GCC,$host_os in
9953   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9954     library_names_spec='$libname.dll.a'
9955     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9956     postinstall_cmds='base_file=`basename \${file}`~
9957       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9958       dldir=$destdir/`dirname \$dlpath`~
9959       test -d \$dldir || mkdir -p \$dldir~
9960       $install_prog $dir/$dlname \$dldir/$dlname~
9961       chmod a+x \$dldir/$dlname~
9962       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9963         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9964       fi'
9965     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9966       dlpath=$dir/\$dldll~
9967        $RM \$dlpath'
9968     shlibpath_overrides_runpath=yes
9969
9970     case $host_os in
9971     cygwin*)
9972       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9973       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9975       ;;
9976     mingw* | cegcc*)
9977       # MinGW DLLs use traditional 'lib' prefix
9978       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9980       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9981         # It is most probably a Windows format PATH printed by
9982         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9983         # path with ; separators, and with drive letters. We can handle the
9984         # drive letters (cygwin fileutils understands them), so leave them,
9985         # especially as we might pass files found there to a mingw objdump,
9986         # which wouldn't understand a cygwinified path. Ahh.
9987         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9988       else
9989         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9990       fi
9991       ;;
9992     pw32*)
9993       # pw32 DLLs use 'pw' prefix rather than 'lib'
9994       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9995       ;;
9996     esac
9997     ;;
9998
9999   *)
10000     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10001     ;;
10002   esac
10003   dynamic_linker='Win32 ld.exe'
10004   # FIXME: first we should search . and the directory the executable is in
10005   shlibpath_var=PATH
10006   ;;
10007
10008 darwin* | rhapsody*)
10009   dynamic_linker="$host_os dyld"
10010   version_type=darwin
10011   need_lib_prefix=no
10012   need_version=no
10013   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014   soname_spec='${libname}${release}${major}$shared_ext'
10015   shlibpath_overrides_runpath=yes
10016   shlibpath_var=DYLD_LIBRARY_PATH
10017   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10018
10019   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10020   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10021   ;;
10022
10023 dgux*)
10024   version_type=linux
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   ;;
10031
10032 freebsd1*)
10033   dynamic_linker=no
10034   ;;
10035
10036 freebsd* | dragonfly*)
10037   # DragonFly does not have aout.  When/if they implement a new
10038   # versioning mechanism, adjust this.
10039   if test -x /usr/bin/objformat; then
10040     objformat=`/usr/bin/objformat`
10041   else
10042     case $host_os in
10043     freebsd[123]*) objformat=aout ;;
10044     *) objformat=elf ;;
10045     esac
10046   fi
10047   version_type=freebsd-$objformat
10048   case $version_type in
10049     freebsd-elf*)
10050       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10051       need_version=no
10052       need_lib_prefix=no
10053       ;;
10054     freebsd-*)
10055       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10056       need_version=yes
10057       ;;
10058   esac
10059   shlibpath_var=LD_LIBRARY_PATH
10060   case $host_os in
10061   freebsd2*)
10062     shlibpath_overrides_runpath=yes
10063     ;;
10064   freebsd3.[01]* | freebsdelf3.[01]*)
10065     shlibpath_overrides_runpath=yes
10066     hardcode_into_libs=yes
10067     ;;
10068   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10069   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10070     shlibpath_overrides_runpath=no
10071     hardcode_into_libs=yes
10072     ;;
10073   *) # from 4.6 on, and DragonFly
10074     shlibpath_overrides_runpath=yes
10075     hardcode_into_libs=yes
10076     ;;
10077   esac
10078   ;;
10079
10080 gnu*)
10081   version_type=linux
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   shlibpath_var=LD_LIBRARY_PATH
10087   hardcode_into_libs=yes
10088   ;;
10089
10090 hpux9* | hpux10* | hpux11*)
10091   # Give a soname corresponding to the major version so that dld.sl refuses to
10092   # link against other versions.
10093   version_type=sunos
10094   need_lib_prefix=no
10095   need_version=no
10096   case $host_cpu in
10097   ia64*)
10098     shrext_cmds='.so'
10099     hardcode_into_libs=yes
10100     dynamic_linker="$host_os dld.so"
10101     shlibpath_var=LD_LIBRARY_PATH
10102     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104     soname_spec='${libname}${release}${shared_ext}$major'
10105     if test "X$HPUX_IA64_MODE" = X32; then
10106       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10107     else
10108       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10109     fi
10110     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111     ;;
10112   hppa*64*)
10113     shrext_cmds='.sl'
10114     hardcode_into_libs=yes
10115     dynamic_linker="$host_os dld.sl"
10116     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10117     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119     soname_spec='${libname}${release}${shared_ext}$major'
10120     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10121     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10122     ;;
10123   *)
10124     shrext_cmds='.sl'
10125     dynamic_linker="$host_os dld.sl"
10126     shlibpath_var=SHLIB_PATH
10127     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129     soname_spec='${libname}${release}${shared_ext}$major'
10130     ;;
10131   esac
10132   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10133   postinstall_cmds='chmod 555 $lib'
10134   ;;
10135
10136 interix[3-9]*)
10137   version_type=linux
10138   need_lib_prefix=no
10139   need_version=no
10140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141   soname_spec='${libname}${release}${shared_ext}$major'
10142   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10143   shlibpath_var=LD_LIBRARY_PATH
10144   shlibpath_overrides_runpath=no
10145   hardcode_into_libs=yes
10146   ;;
10147
10148 irix5* | irix6* | nonstopux*)
10149   case $host_os in
10150     nonstopux*) version_type=nonstopux ;;
10151     *)
10152         if test "$lt_cv_prog_gnu_ld" = yes; then
10153                 version_type=linux
10154         else
10155                 version_type=irix
10156         fi ;;
10157   esac
10158   need_lib_prefix=no
10159   need_version=no
10160   soname_spec='${libname}${release}${shared_ext}$major'
10161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10162   case $host_os in
10163   irix5* | nonstopux*)
10164     libsuff= shlibsuff=
10165     ;;
10166   *)
10167     case $LD in # libtool.m4 will add one of these switches to LD
10168     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10169       libsuff= shlibsuff= libmagic=32-bit;;
10170     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10171       libsuff=32 shlibsuff=N32 libmagic=N32;;
10172     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10173       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10174     *) libsuff= shlibsuff= libmagic=never-match;;
10175     esac
10176     ;;
10177   esac
10178   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10179   shlibpath_overrides_runpath=no
10180   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10181   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10182   hardcode_into_libs=yes
10183   ;;
10184
10185 # No shared lib support for Linux oldld, aout, or coff.
10186 linux*oldld* | linux*aout* | linux*coff*)
10187   dynamic_linker=no
10188   ;;
10189
10190 # This must be Linux ELF.
10191 linux* | k*bsd*-gnu)
10192   version_type=linux
10193   need_lib_prefix=no
10194   need_version=no
10195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196   soname_spec='${libname}${release}${shared_ext}$major'
10197   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10198   shlibpath_var=LD_LIBRARY_PATH
10199   shlibpath_overrides_runpath=no
10200   # Some binutils ld are patched to set DT_RUNPATH
10201   save_LDFLAGS=$LDFLAGS
10202   save_libdir=$libdir
10203   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10204        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10205   cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211
10212 int
10213 main ()
10214 {
10215
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224   *) ac_try_echo=$ac_try;;
10225 esac
10226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10227 $as_echo "$ac_try_echo") >&5
10228   (eval "$ac_link") 2>conftest.er1
10229   ac_status=$?
10230   grep -v '^ *+' conftest.er1 >conftest.err
10231   rm -f conftest.er1
10232   cat conftest.err >&5
10233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } && {
10235          test -z "$ac_c_werror_flag" ||
10236          test ! -s conftest.err
10237        } && test -s conftest$ac_exeext && {
10238          test "$cross_compiling" = yes ||
10239          $as_test_x conftest$ac_exeext
10240        }; then
10241   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10242   shlibpath_overrides_runpath=yes
10243 fi
10244
10245 else
10246   $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249
10250 fi
10251
10252 rm -rf conftest.dSYM
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254       conftest$ac_exeext conftest.$ac_ext
10255   LDFLAGS=$save_LDFLAGS
10256   libdir=$save_libdir
10257
10258   # This implies no fast_install, which is unacceptable.
10259   # Some rework will be needed to allow for fast_install
10260   # before this can be enabled.
10261   hardcode_into_libs=yes
10262
10263   # Add ABI-specific directories to the system library path.
10264   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10265
10266   # Append ld.so.conf contents to the search path
10267   if test -f /etc/ld.so.conf; then
10268     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' ' '`
10269     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10270   fi
10271
10272   # We used to test for /lib/ld.so.1 and disable shared libraries on
10273   # powerpc, because MkLinux only supported shared libraries with the
10274   # GNU dynamic linker.  Since this was broken with cross compilers,
10275   # most powerpc-linux boxes support dynamic linking these days and
10276   # people can always --disable-shared, the test was removed, and we
10277   # assume the GNU/Linux dynamic linker is in use.
10278   dynamic_linker='GNU/Linux ld.so'
10279   ;;
10280
10281 netbsd*)
10282   version_type=sunos
10283   need_lib_prefix=no
10284   need_version=no
10285   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10287     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10288     dynamic_linker='NetBSD (a.out) ld.so'
10289   else
10290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10291     soname_spec='${libname}${release}${shared_ext}$major'
10292     dynamic_linker='NetBSD ld.elf_so'
10293   fi
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=yes
10296   hardcode_into_libs=yes
10297   ;;
10298
10299 newsos6)
10300   version_type=linux
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   ;;
10305
10306 *nto* | *qnx*)
10307   version_type=qnx
10308   need_lib_prefix=no
10309   need_version=no
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311   soname_spec='${libname}${release}${shared_ext}$major'
10312   shlibpath_var=LD_LIBRARY_PATH
10313   shlibpath_overrides_runpath=no
10314   hardcode_into_libs=yes
10315   dynamic_linker='ldqnx.so'
10316   ;;
10317
10318 openbsd*)
10319   version_type=sunos
10320   sys_lib_dlsearch_path_spec="/usr/lib"
10321   need_lib_prefix=no
10322   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10323   case $host_os in
10324     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10325     *)                          need_version=no  ;;
10326   esac
10327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10331     case $host_os in
10332       openbsd2.[89] | openbsd2.[89].*)
10333         shlibpath_overrides_runpath=no
10334         ;;
10335       *)
10336         shlibpath_overrides_runpath=yes
10337         ;;
10338       esac
10339   else
10340     shlibpath_overrides_runpath=yes
10341   fi
10342   ;;
10343
10344 os2*)
10345   libname_spec='$name'
10346   shrext_cmds=".dll"
10347   need_lib_prefix=no
10348   library_names_spec='$libname${shared_ext} $libname.a'
10349   dynamic_linker='OS/2 ld.exe'
10350   shlibpath_var=LIBPATH
10351   ;;
10352
10353 osf3* | osf4* | osf5*)
10354   version_type=osf
10355   need_lib_prefix=no
10356   need_version=no
10357   soname_spec='${libname}${release}${shared_ext}$major'
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359   shlibpath_var=LD_LIBRARY_PATH
10360   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10361   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10362   ;;
10363
10364 rdos*)
10365   dynamic_linker=no
10366   ;;
10367
10368 solaris*)
10369   version_type=linux
10370   need_lib_prefix=no
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   shlibpath_overrides_runpath=yes
10376   hardcode_into_libs=yes
10377   # ldd complains unless libraries are executable
10378   postinstall_cmds='chmod +x $lib'
10379   ;;
10380
10381 sunos4*)
10382   version_type=sunos
10383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10384   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10385   shlibpath_var=LD_LIBRARY_PATH
10386   shlibpath_overrides_runpath=yes
10387   if test "$with_gnu_ld" = yes; then
10388     need_lib_prefix=no
10389   fi
10390   need_version=yes
10391   ;;
10392
10393 sysv4 | sysv4.3*)
10394   version_type=linux
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   case $host_vendor in
10399     sni)
10400       shlibpath_overrides_runpath=no
10401       need_lib_prefix=no
10402       runpath_var=LD_RUN_PATH
10403       ;;
10404     siemens)
10405       need_lib_prefix=no
10406       ;;
10407     motorola)
10408       need_lib_prefix=no
10409       need_version=no
10410       shlibpath_overrides_runpath=no
10411       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412       ;;
10413   esac
10414   ;;
10415
10416 sysv4*MP*)
10417   if test -d /usr/nec ;then
10418     version_type=linux
10419     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10420     soname_spec='$libname${shared_ext}.$major'
10421     shlibpath_var=LD_LIBRARY_PATH
10422   fi
10423   ;;
10424
10425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10426   version_type=freebsd-elf
10427   need_lib_prefix=no
10428   need_version=no
10429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10430   soname_spec='${libname}${release}${shared_ext}$major'
10431   shlibpath_var=LD_LIBRARY_PATH
10432   shlibpath_overrides_runpath=yes
10433   hardcode_into_libs=yes
10434   if test "$with_gnu_ld" = yes; then
10435     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10436   else
10437     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10438     case $host_os in
10439       sco3.2v5*)
10440         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10441         ;;
10442     esac
10443   fi
10444   sys_lib_dlsearch_path_spec='/usr/lib'
10445   ;;
10446
10447 tpf*)
10448   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10449   version_type=linux
10450   need_lib_prefix=no
10451   need_version=no
10452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453   shlibpath_var=LD_LIBRARY_PATH
10454   shlibpath_overrides_runpath=no
10455   hardcode_into_libs=yes
10456   ;;
10457
10458 uts4*)
10459   version_type=linux
10460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461   soname_spec='${libname}${release}${shared_ext}$major'
10462   shlibpath_var=LD_LIBRARY_PATH
10463   ;;
10464
10465 *)
10466   dynamic_linker=no
10467   ;;
10468 esac
10469 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10470 $as_echo "$dynamic_linker" >&6; }
10471 test "$dynamic_linker" = no && can_build_shared=no
10472
10473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10474 if test "$GCC" = yes; then
10475   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10476 fi
10477
10478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10479   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10480 fi
10481 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10482   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10483 fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10572 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10573 hardcode_action=
10574 if test -n "$hardcode_libdir_flag_spec" ||
10575    test -n "$runpath_var" ||
10576    test "X$hardcode_automatic" = "Xyes" ; then
10577
10578   # We can hardcode non-existent directories.
10579   if test "$hardcode_direct" != no &&
10580      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10581      # have to relink, otherwise we might link with an installed library
10582      # when we should be linking with a yet-to-be-installed one
10583      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10584      test "$hardcode_minus_L" != no; then
10585     # Linking always hardcodes the temporary library directory.
10586     hardcode_action=relink
10587   else
10588     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10589     hardcode_action=immediate
10590   fi
10591 else
10592   # We cannot hardcode anything, or else we can only hardcode existing
10593   # directories.
10594   hardcode_action=unsupported
10595 fi
10596 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10597 $as_echo "$hardcode_action" >&6; }
10598
10599 if test "$hardcode_action" = relink ||
10600    test "$inherit_rpath" = yes; then
10601   # Fast installation is not supported
10602   enable_fast_install=no
10603 elif test "$shlibpath_overrides_runpath" = yes ||
10604      test "$enable_shared" = no; then
10605   # Fast installation is not necessary
10606   enable_fast_install=needless
10607 fi
10608
10609
10610
10611
10612
10613
10614   if test "x$enable_dlopen" != xyes; then
10615   enable_dlopen=unknown
10616   enable_dlopen_self=unknown
10617   enable_dlopen_self_static=unknown
10618 else
10619   lt_cv_dlopen=no
10620   lt_cv_dlopen_libs=
10621
10622   case $host_os in
10623   beos*)
10624     lt_cv_dlopen="load_add_on"
10625     lt_cv_dlopen_libs=
10626     lt_cv_dlopen_self=yes
10627     ;;
10628
10629   mingw* | pw32* | cegcc*)
10630     lt_cv_dlopen="LoadLibrary"
10631     lt_cv_dlopen_libs=
10632     ;;
10633
10634   cygwin*)
10635     lt_cv_dlopen="dlopen"
10636     lt_cv_dlopen_libs=
10637     ;;
10638
10639   darwin*)
10640   # if libdl is installed we need to link against it
10641     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10644   $as_echo_n "(cached) " >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldl  $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654
10655 /* Override any GCC internal prototype to avoid an error.
10656    Use char because int might match the return type of a GCC
10657    builtin and then its argument prototype would still apply.  */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char dlopen ();
10662 int
10663 main ()
10664 {
10665 return dlopen ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678   (eval "$ac_link") 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } && {
10685          test -z "$ac_c_werror_flag" ||
10686          test ! -s conftest.err
10687        } && test -s conftest$ac_exeext && {
10688          test "$cross_compiling" = yes ||
10689          $as_test_x conftest$ac_exeext
10690        }; then
10691   ac_cv_lib_dl_dlopen=yes
10692 else
10693   $as_echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696         ac_cv_lib_dl_dlopen=no
10697 fi
10698
10699 rm -rf conftest.dSYM
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701       conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10703 fi
10704 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10706 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10707   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10708 else
10709
10710     lt_cv_dlopen="dyld"
10711     lt_cv_dlopen_libs=
10712     lt_cv_dlopen_self=yes
10713
10714 fi
10715
10716     ;;
10717
10718   *)
10719     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10720 $as_echo_n "checking for shl_load... " >&6; }
10721 if test "${ac_cv_func_shl_load+set}" = set; then
10722   $as_echo_n "(cached) " >&6
10723 else
10724   cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h.  */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h.  */
10730 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10732 #define shl_load innocuous_shl_load
10733
10734 /* System header to define __stub macros and hopefully few prototypes,
10735     which can conflict with char shl_load (); below.
10736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10737     <limits.h> exists even on freestanding compilers.  */
10738
10739 #ifdef __STDC__
10740 # include <limits.h>
10741 #else
10742 # include <assert.h>
10743 #endif
10744
10745 #undef shl_load
10746
10747 /* Override any GCC internal prototype to avoid an error.
10748    Use char because int might match the return type of a GCC
10749    builtin and then its argument prototype would still apply.  */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char shl_load ();
10754 /* The GNU C library defines this for functions which it implements
10755     to always fail with ENOSYS.  Some functions are actually named
10756     something starting with __ and the normal name is an alias.  */
10757 #if defined __stub_shl_load || defined __stub___shl_load
10758 choke me
10759 #endif
10760
10761 int
10762 main ()
10763 {
10764 return shl_load ();
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777   (eval "$ac_link") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } && {
10784          test -z "$ac_c_werror_flag" ||
10785          test ! -s conftest.err
10786        } && test -s conftest$ac_exeext && {
10787          test "$cross_compiling" = yes ||
10788          $as_test_x conftest$ac_exeext
10789        }; then
10790   ac_cv_func_shl_load=yes
10791 else
10792   $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795         ac_cv_func_shl_load=no
10796 fi
10797
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800       conftest$ac_exeext conftest.$ac_ext
10801 fi
10802 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10803 $as_echo "$ac_cv_func_shl_load" >&6; }
10804 if test "x$ac_cv_func_shl_load" = x""yes; then
10805   lt_cv_dlopen="shl_load"
10806 else
10807   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10808 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10809 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10810   $as_echo_n "(cached) " >&6
10811 else
10812   ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldld  $LIBS"
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820
10821 /* Override any GCC internal prototype to avoid an error.
10822    Use char because int might match the return type of a GCC
10823    builtin and then its argument prototype would still apply.  */
10824 #ifdef __cplusplus
10825 extern "C"
10826 #endif
10827 char shl_load ();
10828 int
10829 main ()
10830 {
10831 return shl_load ();
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10843 $as_echo "$ac_try_echo") >&5
10844   (eval "$ac_link") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } && {
10851          test -z "$ac_c_werror_flag" ||
10852          test ! -s conftest.err
10853        } && test -s conftest$ac_exeext && {
10854          test "$cross_compiling" = yes ||
10855          $as_test_x conftest$ac_exeext
10856        }; then
10857   ac_cv_lib_dld_shl_load=yes
10858 else
10859   $as_echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862         ac_cv_lib_dld_shl_load=no
10863 fi
10864
10865 rm -rf conftest.dSYM
10866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10867       conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10869 fi
10870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10871 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10872 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10873   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10874 else
10875   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10876 $as_echo_n "checking for dlopen... " >&6; }
10877 if test "${ac_cv_func_dlopen+set}" = set; then
10878   $as_echo_n "(cached) " >&6
10879 else
10880   cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h.  */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h.  */
10886 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10888 #define dlopen innocuous_dlopen
10889
10890 /* System header to define __stub macros and hopefully few prototypes,
10891     which can conflict with char dlopen (); below.
10892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893     <limits.h> exists even on freestanding compilers.  */
10894
10895 #ifdef __STDC__
10896 # include <limits.h>
10897 #else
10898 # include <assert.h>
10899 #endif
10900
10901 #undef dlopen
10902
10903 /* Override any GCC internal prototype to avoid an error.
10904    Use char because int might match the return type of a GCC
10905    builtin and then its argument prototype would still apply.  */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char dlopen ();
10910 /* The GNU C library defines this for functions which it implements
10911     to always fail with ENOSYS.  Some functions are actually named
10912     something starting with __ and the normal name is an alias.  */
10913 #if defined __stub_dlopen || defined __stub___dlopen
10914 choke me
10915 #endif
10916
10917 int
10918 main ()
10919 {
10920 return dlopen ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932 $as_echo "$ac_try_echo") >&5
10933   (eval "$ac_link") 2>conftest.er1
10934   ac_status=$?
10935   grep -v '^ *+' conftest.er1 >conftest.err
10936   rm -f conftest.er1
10937   cat conftest.err >&5
10938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); } && {
10940          test -z "$ac_c_werror_flag" ||
10941          test ! -s conftest.err
10942        } && test -s conftest$ac_exeext && {
10943          test "$cross_compiling" = yes ||
10944          $as_test_x conftest$ac_exeext
10945        }; then
10946   ac_cv_func_dlopen=yes
10947 else
10948   $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951         ac_cv_func_dlopen=no
10952 fi
10953
10954 rm -rf conftest.dSYM
10955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956       conftest$ac_exeext conftest.$ac_ext
10957 fi
10958 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10959 $as_echo "$ac_cv_func_dlopen" >&6; }
10960 if test "x$ac_cv_func_dlopen" = x""yes; then
10961   lt_cv_dlopen="dlopen"
10962 else
10963   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10966   $as_echo_n "(cached) " >&6
10967 else
10968   ac_check_lib_save_LIBS=$LIBS
10969 LIBS="-ldl  $LIBS"
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976
10977 /* Override any GCC internal prototype to avoid an error.
10978    Use char because int might match the return type of a GCC
10979    builtin and then its argument prototype would still apply.  */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char dlopen ();
10984 int
10985 main ()
10986 {
10987 return dlopen ();
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (ac_try="$ac_link"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000   (eval "$ac_link") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } && {
11007          test -z "$ac_c_werror_flag" ||
11008          test ! -s conftest.err
11009        } && test -s conftest$ac_exeext && {
11010          test "$cross_compiling" = yes ||
11011          $as_test_x conftest$ac_exeext
11012        }; then
11013   ac_cv_lib_dl_dlopen=yes
11014 else
11015   $as_echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018         ac_cv_lib_dl_dlopen=no
11019 fi
11020
11021 rm -rf conftest.dSYM
11022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11023       conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11025 fi
11026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11028 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11030 else
11031   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11032 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11033 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11034   $as_echo_n "(cached) " >&6
11035 else
11036   ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-lsvld  $LIBS"
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h.  */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h.  */
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046    Use char because int might match the return type of a GCC
11047    builtin and then its argument prototype would still apply.  */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dlopen ();
11052 int
11053 main ()
11054 {
11055 return dlopen ();
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068   (eval "$ac_link") 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } && {
11075          test -z "$ac_c_werror_flag" ||
11076          test ! -s conftest.err
11077        } && test -s conftest$ac_exeext && {
11078          test "$cross_compiling" = yes ||
11079          $as_test_x conftest$ac_exeext
11080        }; then
11081   ac_cv_lib_svld_dlopen=yes
11082 else
11083   $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086         ac_cv_lib_svld_dlopen=no
11087 fi
11088
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091       conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11093 fi
11094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11095 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11096 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11098 else
11099   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11100 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11102   $as_echo_n "(cached) " >&6
11103 else
11104   ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-ldld  $LIBS"
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112
11113 /* Override any GCC internal prototype to avoid an error.
11114    Use char because int might match the return type of a GCC
11115    builtin and then its argument prototype would still apply.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char dld_link ();
11120 int
11121 main ()
11122 {
11123 return dld_link ();
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132   *) ac_try_echo=$ac_try;;
11133 esac
11134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136   (eval "$ac_link") 2>conftest.er1
11137   ac_status=$?
11138   grep -v '^ *+' conftest.er1 >conftest.err
11139   rm -f conftest.er1
11140   cat conftest.err >&5
11141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); } && {
11143          test -z "$ac_c_werror_flag" ||
11144          test ! -s conftest.err
11145        } && test -s conftest$ac_exeext && {
11146          test "$cross_compiling" = yes ||
11147          $as_test_x conftest$ac_exeext
11148        }; then
11149   ac_cv_lib_dld_dld_link=yes
11150 else
11151   $as_echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154         ac_cv_lib_dld_dld_link=no
11155 fi
11156
11157 rm -rf conftest.dSYM
11158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11159       conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11161 fi
11162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11163 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11164 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11165   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11166 fi
11167
11168
11169 fi
11170
11171
11172 fi
11173
11174
11175 fi
11176
11177
11178 fi
11179
11180
11181 fi
11182
11183     ;;
11184   esac
11185
11186   if test "x$lt_cv_dlopen" != xno; then
11187     enable_dlopen=yes
11188   else
11189     enable_dlopen=no
11190   fi
11191
11192   case $lt_cv_dlopen in
11193   dlopen)
11194     save_CPPFLAGS="$CPPFLAGS"
11195     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11196
11197     save_LDFLAGS="$LDFLAGS"
11198     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11199
11200     save_LIBS="$LIBS"
11201     LIBS="$lt_cv_dlopen_libs $LIBS"
11202
11203     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11204 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11205 if test "${lt_cv_dlopen_self+set}" = set; then
11206   $as_echo_n "(cached) " >&6
11207 else
11208           if test "$cross_compiling" = yes; then :
11209   lt_cv_dlopen_self=cross
11210 else
11211   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11212   lt_status=$lt_dlunknown
11213   cat > conftest.$ac_ext <<_LT_EOF
11214 #line 11214 "configure"
11215 #include "confdefs.h"
11216
11217 #if HAVE_DLFCN_H
11218 #include <dlfcn.h>
11219 #endif
11220
11221 #include <stdio.h>
11222
11223 #ifdef RTLD_GLOBAL
11224 #  define LT_DLGLOBAL           RTLD_GLOBAL
11225 #else
11226 #  ifdef DL_GLOBAL
11227 #    define LT_DLGLOBAL         DL_GLOBAL
11228 #  else
11229 #    define LT_DLGLOBAL         0
11230 #  endif
11231 #endif
11232
11233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11234    find out it does not work in some platform. */
11235 #ifndef LT_DLLAZY_OR_NOW
11236 #  ifdef RTLD_LAZY
11237 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11238 #  else
11239 #    ifdef DL_LAZY
11240 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11241 #    else
11242 #      ifdef RTLD_NOW
11243 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11244 #      else
11245 #        ifdef DL_NOW
11246 #          define LT_DLLAZY_OR_NOW      DL_NOW
11247 #        else
11248 #          define LT_DLLAZY_OR_NOW      0
11249 #        endif
11250 #      endif
11251 #    endif
11252 #  endif
11253 #endif
11254
11255 void fnord() { int i=42;}
11256 int main ()
11257 {
11258   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11259   int status = $lt_dlunknown;
11260
11261   if (self)
11262     {
11263       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11264       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11265       /* dlclose (self); */
11266     }
11267   else
11268     puts (dlerror ());
11269
11270   return status;
11271 }
11272 _LT_EOF
11273   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274   (eval $ac_link) 2>&5
11275   ac_status=$?
11276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11278     (./conftest; exit; ) >&5 2>/dev/null
11279     lt_status=$?
11280     case x$lt_status in
11281       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11282       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11283       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11284     esac
11285   else :
11286     # compilation failed
11287     lt_cv_dlopen_self=no
11288   fi
11289 fi
11290 rm -fr conftest*
11291
11292
11293 fi
11294 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11295 $as_echo "$lt_cv_dlopen_self" >&6; }
11296
11297     if test "x$lt_cv_dlopen_self" = xyes; then
11298       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11299       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11300 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11301 if test "${lt_cv_dlopen_self_static+set}" = set; then
11302   $as_echo_n "(cached) " >&6
11303 else
11304           if test "$cross_compiling" = yes; then :
11305   lt_cv_dlopen_self_static=cross
11306 else
11307   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11308   lt_status=$lt_dlunknown
11309   cat > conftest.$ac_ext <<_LT_EOF
11310 #line 11310 "configure"
11311 #include "confdefs.h"
11312
11313 #if HAVE_DLFCN_H
11314 #include <dlfcn.h>
11315 #endif
11316
11317 #include <stdio.h>
11318
11319 #ifdef RTLD_GLOBAL
11320 #  define LT_DLGLOBAL           RTLD_GLOBAL
11321 #else
11322 #  ifdef DL_GLOBAL
11323 #    define LT_DLGLOBAL         DL_GLOBAL
11324 #  else
11325 #    define LT_DLGLOBAL         0
11326 #  endif
11327 #endif
11328
11329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11330    find out it does not work in some platform. */
11331 #ifndef LT_DLLAZY_OR_NOW
11332 #  ifdef RTLD_LAZY
11333 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11334 #  else
11335 #    ifdef DL_LAZY
11336 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11337 #    else
11338 #      ifdef RTLD_NOW
11339 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11340 #      else
11341 #        ifdef DL_NOW
11342 #          define LT_DLLAZY_OR_NOW      DL_NOW
11343 #        else
11344 #          define LT_DLLAZY_OR_NOW      0
11345 #        endif
11346 #      endif
11347 #    endif
11348 #  endif
11349 #endif
11350
11351 void fnord() { int i=42;}
11352 int main ()
11353 {
11354   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11355   int status = $lt_dlunknown;
11356
11357   if (self)
11358     {
11359       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11360       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11361       /* dlclose (self); */
11362     }
11363   else
11364     puts (dlerror ());
11365
11366   return status;
11367 }
11368 _LT_EOF
11369   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370   (eval $ac_link) 2>&5
11371   ac_status=$?
11372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11374     (./conftest; exit; ) >&5 2>/dev/null
11375     lt_status=$?
11376     case x$lt_status in
11377       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11378       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11379       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11380     esac
11381   else :
11382     # compilation failed
11383     lt_cv_dlopen_self_static=no
11384   fi
11385 fi
11386 rm -fr conftest*
11387
11388
11389 fi
11390 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11391 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11392     fi
11393
11394     CPPFLAGS="$save_CPPFLAGS"
11395     LDFLAGS="$save_LDFLAGS"
11396     LIBS="$save_LIBS"
11397     ;;
11398   esac
11399
11400   case $lt_cv_dlopen_self in
11401   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11402   *) enable_dlopen_self=unknown ;;
11403   esac
11404
11405   case $lt_cv_dlopen_self_static in
11406   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11407   *) enable_dlopen_self_static=unknown ;;
11408   esac
11409 fi
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427 striplib=
11428 old_striplib=
11429 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11430 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11431 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11432   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11433   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11434   { $as_echo "$as_me:$LINENO: result: yes" >&5
11435 $as_echo "yes" >&6; }
11436 else
11437 # FIXME - insert some real tests, host_os isn't really good enough
11438   case $host_os in
11439   darwin*)
11440     if test -n "$STRIP" ; then
11441       striplib="$STRIP -x"
11442       old_striplib="$STRIP -S"
11443       { $as_echo "$as_me:$LINENO: result: yes" >&5
11444 $as_echo "yes" >&6; }
11445     else
11446       { $as_echo "$as_me:$LINENO: result: no" >&5
11447 $as_echo "no" >&6; }
11448     fi
11449     ;;
11450   *)
11451     { $as_echo "$as_me:$LINENO: result: no" >&5
11452 $as_echo "no" >&6; }
11453     ;;
11454   esac
11455 fi
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468   # Report which library types will actually be built
11469   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11470 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11471   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11472 $as_echo "$can_build_shared" >&6; }
11473
11474   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11475 $as_echo_n "checking whether to build shared libraries... " >&6; }
11476   test "$can_build_shared" = "no" && enable_shared=no
11477
11478   # On AIX, shared libraries and static libraries use the same namespace, and
11479   # are all built from PIC.
11480   case $host_os in
11481   aix3*)
11482     test "$enable_shared" = yes && enable_static=no
11483     if test -n "$RANLIB"; then
11484       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11485       postinstall_cmds='$RANLIB $lib'
11486     fi
11487     ;;
11488
11489   aix[4-9]*)
11490     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11491       test "$enable_shared" = yes && enable_static=no
11492     fi
11493     ;;
11494   esac
11495   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11496 $as_echo "$enable_shared" >&6; }
11497
11498   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11499 $as_echo_n "checking whether to build static libraries... " >&6; }
11500   # Make sure either enable_shared or enable_static is yes.
11501   test "$enable_shared" = yes || enable_static=yes
11502   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11503 $as_echo "$enable_static" >&6; }
11504
11505
11506
11507
11508 fi
11509 ac_ext=c
11510 ac_cpp='$CPP $CPPFLAGS'
11511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11514
11515 CC="$lt_save_CC"
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529         ac_config_commands="$ac_config_commands libtool"
11530
11531
11532
11533
11534 # Only expand once:
11535
11536
11537 # By default we simply use the C compiler to build assembly code.
11538
11539 test "${CCAS+set}" = set || CCAS=$CC
11540 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11541
11542
11543
11544 depcc="$CCAS"   am_compiler_list=
11545
11546 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11547 $as_echo_n "checking dependency style of $depcc... " >&6; }
11548 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11549   $as_echo_n "(cached) " >&6
11550 else
11551   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11552   # We make a subdir and do the tests there.  Otherwise we can end up
11553   # making bogus files that we don't know about and never remove.  For
11554   # instance it was reported that on HP-UX the gcc test will end up
11555   # making a dummy file named `D' -- because `-MD' means `put the output
11556   # in D'.
11557   mkdir conftest.dir
11558   # Copy depcomp to subdir because otherwise we won't find it if we're
11559   # using a relative directory.
11560   cp "$am_depcomp" conftest.dir
11561   cd conftest.dir
11562   # We will build objects and dependencies in a subdirectory because
11563   # it helps to detect inapplicable dependency modes.  For instance
11564   # both Tru64's cc and ICC support -MD to output dependencies as a
11565   # side effect of compilation, but ICC will put the dependencies in
11566   # the current directory while Tru64 will put them in the object
11567   # directory.
11568   mkdir sub
11569
11570   am_cv_CCAS_dependencies_compiler_type=none
11571   if test "$am_compiler_list" = ""; then
11572      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11573   fi
11574   am__universal=false
11575
11576
11577   for depmode in $am_compiler_list; do
11578     # Setup a source with many dependencies, because some compilers
11579     # like to wrap large dependency lists on column 80 (with \), and
11580     # we should not choose a depcomp mode which is confused by this.
11581     #
11582     # We need to recreate these files for each test, as the compiler may
11583     # overwrite some of them when testing with obscure command lines.
11584     # This happens at least with the AIX C compiler.
11585     : > sub/conftest.c
11586     for i in 1 2 3 4 5 6; do
11587       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11588       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11589       # Solaris 8's {/usr,}/bin/sh.
11590       touch sub/conftst$i.h
11591     done
11592     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11593
11594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11595     # mode.  It turns out that the SunPro C++ compiler does not properly
11596     # handle `-M -o', and we need to detect this.  Also, some Intel
11597     # versions had trouble with output in subdirs
11598     am__obj=sub/conftest.${OBJEXT-o}
11599     am__minus_obj="-o $am__obj"
11600     case $depmode in
11601     gcc)
11602       # This depmode causes a compiler race in universal mode.
11603       test "$am__universal" = false || continue
11604       ;;
11605     nosideeffect)
11606       # after this tag, mechanisms are not by side-effect, so they'll
11607       # only be used when explicitly requested
11608       if test "x$enable_dependency_tracking" = xyes; then
11609         continue
11610       else
11611         break
11612       fi
11613       ;;
11614     msvisualcpp | msvcmsys)
11615       # This compiler won't grok `-c -o', but also, the minuso test has
11616       # not run yet.  These depmodes are late enough in the game, and
11617       # so weak that their functioning should not be impacted.
11618       am__obj=conftest.${OBJEXT-o}
11619       am__minus_obj=
11620       ;;
11621     none) break ;;
11622     esac
11623     if depmode=$depmode \
11624        source=sub/conftest.c object=$am__obj \
11625        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11626        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11627          >/dev/null 2>conftest.err &&
11628        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11629        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11630        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11631        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11632       # icc doesn't choke on unknown options, it will just issue warnings
11633       # or remarks (even with -Werror).  So we grep stderr for any message
11634       # that says an option was ignored or not supported.
11635       # When given -MP, icc 7.0 and 7.1 complain thusly:
11636       #   icc: Command line warning: ignoring option '-M'; no argument required
11637       # The diagnosis changed in icc 8.0:
11638       #   icc: Command line remark: option '-MP' not supported
11639       if (grep 'ignoring option' conftest.err ||
11640           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11641         am_cv_CCAS_dependencies_compiler_type=$depmode
11642         break
11643       fi
11644     fi
11645   done
11646
11647   cd ..
11648   rm -rf conftest.dir
11649 else
11650   am_cv_CCAS_dependencies_compiler_type=none
11651 fi
11652
11653 fi
11654 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11655 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11656 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11657
11658  if
11659   test "x$enable_dependency_tracking" != xno \
11660   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11661   am__fastdepCCAS_TRUE=
11662   am__fastdepCCAS_FALSE='#'
11663 else
11664   am__fastdepCCAS_TRUE='#'
11665   am__fastdepCCAS_FALSE=
11666 fi
11667
11668
11669
11670
11671         { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11672 $as_echo_n "checking zfs author... " >&6; }
11673         { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11674 $as_echo "$ZFS_META_AUTHOR" >&6; }
11675
11676         { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11677 $as_echo_n "checking zfs license... " >&6; }
11678         { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11679 $as_echo "$ZFS_META_LICENSE" >&6; }
11680
11681
11682
11683         { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11684 $as_echo_n "checking linux distribution... " >&6; }
11685         if test -f /etc/toss-release ; then
11686                 VENDOR=toss ;
11687         elif test -f /etc/fedora-release ; then
11688                 VENDOR=fedora ;
11689         elif test -f /etc/redhat-release ; then
11690                 VENDOR=redhat ;
11691         elif test -f /etc/gentoo-release ; then
11692                 VENDOR=gentoo ;
11693         elif test -f /etc/arch-release ; then
11694                 VENDOR=arch ;
11695         elif test -f /etc/SuSE-release ; then
11696                 VENDOR=sles ;
11697         elif test -f /etc/slackware-version ; then
11698                 VENDOR=slackware ;
11699         elif test -f /etc/lunar.release ; then
11700                 VENDOR=lunar ;
11701         elif test -f /etc/lsb-release ; then
11702                 VENDOR=ubuntu ;
11703         elif test -f /etc/debian_version ; then
11704                 VENDOR=debian ;
11705         else
11706                 VENDOR= ;
11707         fi
11708         { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11709 $as_echo "$VENDOR" >&6; }
11710
11711
11712         { $as_echo "$as_me:$LINENO: checking default package type" >&5
11713 $as_echo_n "checking default package type... " >&6; }
11714         case "$VENDOR" in
11715                 toss)       DEFAULT_PACKAGE=rpm  ;;
11716                 redhat)     DEFAULT_PACKAGE=rpm  ;;
11717                 fedora)     DEFAULT_PACKAGE=rpm  ;;
11718                 gentoo)     DEFAULT_PACKAGE=tgz  ;;
11719                 arch)       DEFAULT_PACKAGE=arch ;;
11720                 sles)       DEFAULT_PACKAGE=rpm  ;;
11721                 slackware)  DEFAULT_PACKAGE=tgz  ;;
11722                 lunar)      DEFAULT_PACKAGE=tgz  ;;
11723                 ubuntu)     DEFAULT_PACKAGE=deb  ;;
11724                 debian)     DEFAULT_PACKAGE=deb  ;;
11725                 *)          DEFAULT_PACKAGE=rpm  ;;
11726         esac
11727
11728         { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11729 $as_echo "$DEFAULT_PACKAGE" >&6; }
11730
11731
11732         { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11733 $as_echo_n "checking default init directory... " >&6; }
11734         case "$VENDOR" in
11735                 arch)       DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11736                 *)          DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11737         esac
11738
11739         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11740 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11741
11742
11743         { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11744 $as_echo_n "checking default init script type... " >&6; }
11745         case "$VENDOR" in
11746                 toss)       DEFAULT_INIT_SCRIPT=redhat ;;
11747                 redhat)     DEFAULT_INIT_SCRIPT=redhat ;;
11748                 fedora)     DEFAULT_INIT_SCRIPT=fedora ;;
11749                 gentoo)     DEFAULT_INIT_SCRIPT=gentoo ;;
11750                 arch)       DEFAULT_INIT_SCRIPT=arch   ;;
11751                 sles)       DEFAULT_INIT_SCRIPT=lsb    ;;
11752                 slackware)  DEFAULT_INIT_SCRIPT=lsb    ;;
11753                 lunar)      DEFAULT_INIT_SCRIPT=lunar  ;;
11754                 ubuntu)     DEFAULT_INIT_SCRIPT=lsb    ;;
11755                 debian)     DEFAULT_INIT_SCRIPT=lsb    ;;
11756                 *)          DEFAULT_INIT_SCRIPT=lsb    ;;
11757         esac
11758
11759         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11760 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11761
11762
11763
11764         RPM=rpm
11765         RPMBUILD=rpmbuild
11766
11767         { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11768 $as_echo_n "checking whether $RPM is available... " >&6; }
11769         if tmp=$($RPM --version 2>/dev/null); then
11770
11771                 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11772                 HAVE_RPM=yes
11773                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11774 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11775
11776 else
11777
11778                 HAVE_RPM=no
11779                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11780 $as_echo "$HAVE_RPM" >&6; }
11781
11782 fi
11783
11784
11785         { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11786 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11787         if tmp=$($RPMBUILD --version 2>/dev/null); then
11788
11789                 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11790                 HAVE_RPMBUILD=yes
11791                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11792 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11793
11794 else
11795
11796                 HAVE_RPMBUILD=no
11797                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11798 $as_echo "$HAVE_RPMBUILD" >&6; }
11799
11800 fi
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812         DPKG=dpkg
11813         DPKGBUILD=dpkg-buildpackage
11814
11815         { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11816 $as_echo_n "checking whether $DPKG is available... " >&6; }
11817         if tmp=$($DPKG --version 2>/dev/null); then
11818
11819                 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11820                 HAVE_DPKG=yes
11821                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11822 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11823
11824 else
11825
11826                 HAVE_DPKG=no
11827                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11828 $as_echo "$HAVE_DPKG" >&6; }
11829
11830 fi
11831
11832
11833         { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11834 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11835         if tmp=$($DPKGBUILD --version 2>/dev/null); then
11836
11837                 DPKGBUILD_VERSION=$(echo $tmp | \
11838                     $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11839                 HAVE_DPKGBUILD=yes
11840                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11841 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11842
11843 else
11844
11845                 HAVE_DPKGBUILD=no
11846                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11847 $as_echo "$HAVE_DPKGBUILD" >&6; }
11848
11849 fi
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861         ALIEN=alien
11862
11863         { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11864 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11865         if tmp=$($ALIEN --version 2>/dev/null); then
11866
11867                 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11868                 HAVE_ALIEN=yes
11869                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11870 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11871
11872 else
11873
11874                 HAVE_ALIEN=no
11875                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11876 $as_echo "$HAVE_ALIEN" >&6; }
11877
11878 fi
11879
11880
11881
11882
11883
11884
11885
11886         if test "$VENDOR" = "arch"; then
11887
11888         PACMAN=pacman
11889         MAKEPKG=makepkg
11890
11891         { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11892 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11893         tmp=$($PACMAN --version 2>/dev/null)
11894         if test -n "$tmp"; then
11895
11896                 PACMAN_VERSION=$(echo $tmp |
11897                                  $AWK '/Pacman/ { print $3 }' |
11898                                  $SED 's/^v//')
11899                 HAVE_PACMAN=yes
11900                 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11901 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11902
11903 else
11904
11905                 HAVE_PACMAN=no
11906                 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11907 $as_echo "$HAVE_PACMAN" >&6; }
11908
11909 fi
11910
11911
11912         { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11913 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11914         tmp=$($MAKEPKG --version 2>/dev/null)
11915         if test -n "$tmp"; then
11916
11917                 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11918                 HAVE_MAKEPKG=yes
11919                 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11920 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11921
11922 else
11923
11924                 HAVE_MAKEPKG=no
11925                 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11926 $as_echo "$HAVE_MAKEPKG" >&6; }
11927
11928 fi
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939 fi
11940
11941
11942
11943         TARGET_ASM_DIR=asm-generic
11944
11945
11946         ZFS_CONFIG=all
11947
11948 # Check whether --with-config was given.
11949 if test "${with_config+set}" = set; then
11950   withval=$with_config; ZFS_CONFIG="$withval"
11951 fi
11952
11953         # Check whether --enable-linux-builtin was given.
11954 if test "${enable_linux_builtin+set}" = set; then
11955   enableval=$enable_linux_builtin;
11956 else
11957   enable_linux_builtin=no
11958 fi
11959
11960
11961         { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11962 $as_echo_n "checking zfs config... " >&6; }
11963         { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11964 $as_echo "$ZFS_CONFIG" >&6; };
11965
11966
11967
11968
11969         { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11970 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11971
11972         saved_flags="$CFLAGS"
11973         CFLAGS="$CFLAGS -Wunused-but-set-variable"
11974
11975         if test "$cross_compiling" = yes; then
11976   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11978 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11979 See \`config.log' for more details." >&5
11980 $as_echo "$as_me: error: cannot run test program while cross compiling
11981 See \`config.log' for more details." >&2;}
11982    { (exit 1); exit 1; }; }; }
11983 else
11984   cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990
11991 int
11992 main ()
11993 {
11994
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest$ac_exeext
12000 if { (ac_try="$ac_link"
12001 case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12006 $as_echo "$ac_try_echo") >&5
12007   (eval "$ac_link") 2>&5
12008   ac_status=$?
12009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12011   { (case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12016 $as_echo "$ac_try_echo") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021
12022                 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12023                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12024 $as_echo "yes" >&6; }
12025
12026 else
12027   $as_echo "$as_me: program exited with status $ac_status" >&5
12028 $as_echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 ( exit $ac_status )
12032
12033                 NO_UNUSED_BUT_SET_VARIABLE=
12034                 { $as_echo "$as_me:$LINENO: result: no" >&5
12035 $as_echo "no" >&6; }
12036
12037 fi
12038 rm -rf conftest.dSYM
12039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12040 fi
12041
12042
12043
12044         CFLAGS="$saved_flags"
12045
12046
12047
12048
12049         case "$ZFS_CONFIG" in
12050                 kernel)
12051
12052
12053 # Check whether --with-linux was given.
12054 if test "${with_linux+set}" = set; then
12055   withval=$with_linux; kernelsrc="$withval"
12056 fi
12057
12058
12059
12060 # Check whether --with-linux-obj was given.
12061 if test "${with_linux_obj+set}" = set; then
12062   withval=$with_linux_obj; kernelbuild="$withval"
12063 fi
12064
12065
12066         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12067 $as_echo_n "checking kernel source directory... " >&6; }
12068         if test -z "$kernelsrc"; then
12069
12070                 if test -e "/lib/modules/$(uname -r)/source"; then
12071
12072                         headersdir="/lib/modules/$(uname -r)/source"
12073                         sourcelink=$(readlink -f "$headersdir")
12074
12075 elif test -e "/lib/modules/$(uname -r)/build"; then
12076
12077                         headersdir="/lib/modules/$(uname -r)/build"
12078                         sourcelink=$(readlink -f "$headersdir")
12079
12080 else
12081
12082                         sourcelink=$(ls -1d /usr/src/kernels/* \
12083                                      /usr/src/linux-* \
12084                                      2>/dev/null | grep -v obj | tail -1)
12085
12086 fi
12087
12088
12089                 if test -n "$sourcelink" && test -e ${sourcelink}; then
12090
12091                         kernelsrc=`readlink -f ${sourcelink}`
12092
12093 else
12094
12095                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12096 $as_echo "Not found" >&6; }
12097                         { { $as_echo "$as_me:$LINENO: error:
12098         *** Please make sure the kernel devel package for your distribution
12099         *** is installed then try again.  If that fails you can specify the
12100         *** location of the kernel source with the '--with-linux=PATH' option." >&5
12101 $as_echo "$as_me: error:
12102         *** Please make sure the kernel devel package for your distribution
12103         *** is installed then try again.  If that fails you can specify the
12104         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12105    { (exit 1); exit 1; }; }
12106
12107 fi
12108
12109
12110 else
12111
12112                 if test "$kernelsrc" = "NONE"; then
12113
12114                         kernsrcver=NONE
12115
12116 fi
12117
12118
12119 fi
12120
12121
12122         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12123 $as_echo "$kernelsrc" >&6; }
12124         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12125 $as_echo_n "checking kernel build directory... " >&6; }
12126         if test -z "$kernelbuild"; then
12127
12128                 if test -e "/lib/modules/$(uname -r)/build"; then
12129
12130                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12131
12132 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12133
12134                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12135
12136 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12137
12138                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12139
12140 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12141
12142                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12143
12144 else
12145
12146                         kernelbuild=${kernelsrc}
12147
12148 fi
12149
12150
12151 fi
12152
12153         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12154 $as_echo "$kernelbuild" >&6; }
12155
12156         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12157 $as_echo_n "checking kernel source version... " >&6; }
12158         utsrelease1=$kernelbuild/include/linux/version.h
12159         utsrelease2=$kernelbuild/include/linux/utsrelease.h
12160         utsrelease3=$kernelbuild/include/generated/utsrelease.h
12161         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12162
12163                 utsrelease=linux/version.h
12164
12165 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12166
12167                 utsrelease=linux/utsrelease.h
12168
12169 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12170
12171                 utsrelease=generated/utsrelease.h
12172
12173 fi
12174
12175
12176         if test "$utsrelease"; then
12177
12178                 kernsrcver=`(echo "#include <$utsrelease>";
12179                              echo "kernsrcver=UTS_RELEASE") |
12180                              cpp -I $kernelbuild/include |
12181                              grep "^kernsrcver=" | cut -d \" -f 2`
12182
12183                 if test -z "$kernsrcver"; then
12184
12185                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12186 $as_echo "Not found" >&6; }
12187                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12188 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12189    { (exit 1); exit 1; }; }
12190
12191 fi
12192
12193
12194 else
12195
12196                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12197 $as_echo "Not found" >&6; }
12198                 if test "x$enable_linux_builtin" != xyes; then
12199                         { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12200 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12201    { (exit 1); exit 1; }; }
12202                 else
12203                         { { $as_echo "$as_me:$LINENO: error:
12204         *** Cannot find UTS_RELEASE definition.
12205         *** Please run 'make prepare' inside the kernel source tree." >&5
12206 $as_echo "$as_me: error:
12207         *** Cannot find UTS_RELEASE definition.
12208         *** Please run 'make prepare' inside the kernel source tree." >&2;}
12209    { (exit 1); exit 1; }; }
12210                 fi
12211
12212 fi
12213
12214
12215         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12216 $as_echo "$kernsrcver" >&6; }
12217
12218         LINUX=${kernelsrc}
12219         LINUX_OBJ=${kernelbuild}
12220         LINUX_VERSION=${kernsrcver}
12221
12222
12223
12224
12225
12226
12227         modpost=$LINUX/scripts/Makefile.modpost
12228         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12229 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12230         if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
12231
12232                 if grep -q Modules.symvers $modpost; then
12233
12234                         LINUX_SYMBOLS=Modules.symvers
12235
12236 else
12237
12238                         LINUX_SYMBOLS=Module.symvers
12239
12240 fi
12241
12242
12243                 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12244
12245                         { { $as_echo "$as_me:$LINENO: error:
12246         *** Please make sure the kernel devel package for your distribution
12247         *** is installed.  If your building with a custom kernel make sure the
12248         *** kernel is configured, built, and the '--with-linux=PATH' configure
12249         *** option refers to the location of the kernel source." >&5
12250 $as_echo "$as_me: error:
12251         *** Please make sure the kernel devel package for your distribution
12252         *** is installed.  If your building with a custom kernel make sure the
12253         *** kernel is configured, built, and the '--with-linux=PATH' configure
12254         *** option refers to the location of the kernel source." >&2;}
12255    { (exit 1); exit 1; }; }
12256
12257 fi
12258
12259
12260 else
12261
12262                 LINUX_SYMBOLS=NONE
12263
12264 fi
12265
12266         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12267 $as_echo "$LINUX_SYMBOLS" >&6; }
12268
12269
12270
12271
12272
12273 # Check whether --with-spl was given.
12274 if test "${with_spl+set}" = set; then
12275   withval=$with_spl; splsrc="$withval"
12276 fi
12277
12278
12279
12280 # Check whether --with-spl-obj was given.
12281 if test "${with_spl_obj+set}" = set; then
12282   withval=$with_spl_obj; splbuild="$withval"
12283 fi
12284
12285
12286
12287         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12288 $as_echo_n "checking spl source directory... " >&6; }
12289         if test -z "$splsrc"; then
12290
12291                                                                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12292                             2>/dev/null | tail -1`
12293
12294                                                                 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
12295
12296                         sourcelink=`ls -1d /var/lib/dkms/spl/*/build \
12297                                     2>/dev/null | tail -1`
12298
12299 fi
12300
12301
12302                                                                 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
12303
12304                         sourcelink=../spl
12305
12306 fi
12307
12308
12309                                                                 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
12310
12311                         sourcelink="$LINUX"
12312
12313 fi
12314
12315
12316                 if test -e $sourcelink/spl_config.h; then
12317
12318                         splsrc=`readlink -f ${sourcelink}`
12319
12320 else
12321
12322                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12323 $as_echo "Not found" >&6; }
12324                         { { $as_echo "$as_me:$LINENO: error:
12325         *** Please make sure the spl devel package for your distribution
12326         *** is installed then try again.  If that fails you can specify the
12327         *** location of the spl source with the '--with-spl=PATH' option." >&5
12328 $as_echo "$as_me: error:
12329         *** Please make sure the spl devel package for your distribution
12330         *** is installed then try again.  If that fails you can specify the
12331         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12332    { (exit 1); exit 1; }; }
12333
12334 fi
12335
12336
12337 else
12338
12339                 if test "$splsrc" = "NONE"; then
12340
12341                         splbuild=NONE
12342                         splsrcver=NONE
12343
12344 fi
12345
12346
12347 fi
12348
12349
12350         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12351 $as_echo "$splsrc" >&6; }
12352         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12353 $as_echo_n "checking spl build directory... " >&6; }
12354         if test -z "$splbuild"; then
12355
12356                 splbuild=${splsrc}
12357
12358 fi
12359
12360         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12361 $as_echo "$splbuild" >&6; }
12362
12363         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12364 $as_echo_n "checking spl source version... " >&6; }
12365         if test -r $splbuild/spl_config.h &&
12366                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12367
12368
12369                 splsrcver=`(echo "#include <spl_config.h>";
12370                             echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12371                             cpp -I $splbuild |
12372                             grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12373
12374 fi
12375
12376
12377         if test -z "$splsrcver"; then
12378
12379                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12380 $as_echo "Not found" >&6; }
12381                 { { $as_echo "$as_me:$LINENO: error:
12382         *** Cannot determine the version of the spl source.
12383         *** Please prepare the spl source before running this script" >&5
12384 $as_echo "$as_me: error:
12385         *** Cannot determine the version of the spl source.
12386         *** Please prepare the spl source before running this script" >&2;}
12387    { (exit 1); exit 1; }; }
12388
12389 fi
12390
12391
12392         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12393 $as_echo "$splsrcver" >&6; }
12394
12395         SPL=${splsrc}
12396         SPL_OBJ=${splbuild}
12397         SPL_VERSION=${splsrcver}
12398
12399
12400
12401
12402
12403
12404
12405 # Check whether --with-spl-timeout was given.
12406 if test "${with_spl_timeout+set}" = set; then
12407   withval=$with_spl_timeout; timeout="$withval"
12408 else
12409   timeout=0
12410 fi
12411
12412
12413         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12414 $as_echo_n "checking spl file name for module symbols... " >&6; }
12415         SPL_SYMBOLS=NONE
12416
12417         while true; do
12418                 if test -r $SPL_OBJ/Module.symvers; then
12419
12420                         SPL_SYMBOLS=Module.symvers
12421
12422 elif test -r $SPL_OBJ/Modules.symvers; then
12423
12424                         SPL_SYMBOLS=Modules.symvers
12425
12426 elif test -r $SPL_OBJ/module/Module.symvers; then
12427
12428                         SPL_SYMBOLS=Module.symvers
12429
12430 elif test -r $SPL_OBJ/module/Modules.symvers; then
12431
12432                         SPL_SYMBOLS=Modules.symvers
12433
12434 fi
12435
12436
12437                 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
12438
12439                         break;
12440
12441 else
12442
12443                         sleep 1
12444                         timeout=$((timeout-1))
12445
12446 fi
12447
12448         done
12449
12450         if test "$SPL_SYMBOLS" = NONE; then
12451
12452                 SPL_SYMBOLS=$LINUX_SYMBOLS
12453
12454 fi
12455
12456
12457         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12458 $as_echo "$SPL_SYMBOLS" >&6; }
12459
12460
12461
12462         { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
12463 $as_echo_n "checking whether modules can be built... " >&6; }
12464
12465
12466 cat confdefs.h - <<_ACEOF >conftest.c
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472
12473
12474 int
12475 main (void)
12476 {
12477
12478   ;
12479   return 0;
12480 }
12481
12482 _ACEOF
12483
12484
12485         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12486         echo "obj-m := conftest.o" >build/Makefile
12487         modpost_flag=''
12488         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12489         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496   (eval $ac_try) 2>&5
12497   ac_status=$?
12498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; }; then
12500
12501                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12502 $as_echo "yes" >&6; }
12503
12504 else
12505   $as_echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508                 { $as_echo "$as_me:$LINENO: result: no" >&5
12509 $as_echo "no" >&6; }
12510                 if test "x$enable_linux_builtin" != xyes; then
12511                         { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12512 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12513    { (exit 1); exit 1; }; }
12514                 else
12515                         { { $as_echo "$as_me:$LINENO: error:
12516         *** Unable to build an empty module.
12517         *** Please run 'make scripts' inside the kernel source tree." >&5
12518 $as_echo "$as_me: error:
12519         *** Unable to build an empty module.
12520         *** Please run 'make scripts' inside the kernel source tree." >&2;}
12521    { (exit 1); exit 1; }; }
12522                 fi
12523
12524
12525
12526 fi
12527
12528         rm -Rf build
12529
12530
12531
12532
12533
12534         if test "$ZFS_META_LICENSE" = GPL; then
12535
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_GPL_ONLY_SYMBOLS 1
12539 _ACEOF
12540
12541
12542 fi
12543
12544
12545
12546
12547         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12548 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12549
12550
12551 cat confdefs.h - <<_ACEOF >conftest.c
12552 /* confdefs.h.  */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h.  */
12557
12558
12559                 #include <linux/module.h>
12560
12561 int
12562 main (void)
12563 {
12564
12565                 #ifndef CONFIG_PREEMPT
12566                 #error CONFIG_PREEMPT not #defined
12567                 #endif
12568
12569   ;
12570   return 0;
12571 }
12572
12573 _ACEOF
12574
12575
12576         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12577         echo "obj-m := conftest.o" >build/Makefile
12578         modpost_flag=''
12579         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12580         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582   (eval $ac_try) 2>&5
12583   ac_status=$?
12584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591
12592                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12593 $as_echo "yes" >&6; }
12594                 { { $as_echo "$as_me:$LINENO: error:
12595         *** Kernel built with CONFIG_PREEMPT which is not supported.
12596         *** You must rebuild your kernel without this option." >&5
12597 $as_echo "$as_me: error:
12598         *** Kernel built with CONFIG_PREEMPT which is not supported.
12599         *** You must rebuild your kernel without this option." >&2;}
12600    { (exit 1); exit 1; }; }
12601
12602 else
12603   $as_echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12605
12606                 { $as_echo "$as_me:$LINENO: result: no" >&5
12607 $as_echo "no" >&6; }
12608
12609
12610
12611
12612 fi
12613
12614         rm -Rf build
12615
12616
12617
12618
12619
12620
12621         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12622 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12623
12624
12625 cat confdefs.h - <<_ACEOF >conftest.c
12626 /* confdefs.h.  */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h.  */
12631
12632
12633                 #include <linux/module.h>
12634
12635 int
12636 main (void)
12637 {
12638
12639                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12640                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12641                 #endif
12642
12643   ;
12644   return 0;
12645 }
12646
12647 _ACEOF
12648
12649
12650         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12651         echo "obj-m := conftest.o" >build/Makefile
12652         modpost_flag=''
12653         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12654         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656   (eval $ac_try) 2>&5
12657   ac_status=$?
12658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661   (eval $ac_try) 2>&5
12662   ac_status=$?
12663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; }; then
12665
12666                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12667 $as_echo "yes" >&6; }
12668
12669                 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
12670 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12671                 tmp_flags="$EXTRA_KCFLAGS"
12672
12673
12674 cat confdefs.h - <<_ACEOF >conftest.c
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681
12682                         #include <linux/module.h>
12683                         #include <linux/mutex.h>
12684
12685                         MODULE_LICENSE("$ZFS_META_LICENSE");
12686
12687 int
12688 main (void)
12689 {
12690
12691                         struct mutex lock;
12692
12693                         mutex_init(&lock);
12694                         mutex_lock(&lock);
12695                         mutex_unlock(&lock);
12696
12697   ;
12698   return 0;
12699 }
12700
12701 _ACEOF
12702
12703
12704         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12705         echo "obj-m := conftest.o" >build/Makefile
12706         modpost_flag=''
12707         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12708         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710   (eval $ac_try) 2>&5
12711   ac_status=$?
12712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715   (eval $ac_try) 2>&5
12716   ac_status=$?
12717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719
12720                         { $as_echo "$as_me:$LINENO: result: no" >&5
12721 $as_echo "no" >&6; }
12722
12723 else
12724   $as_echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12728 $as_echo "yes" >&6; }
12729                         { { $as_echo "$as_me:$LINENO: error:
12730         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12731         *** with the CDDL license and will prevent the module linking stage
12732         *** from succeeding.  You must rebuild your kernel without this
12733         *** option enabled." >&5
12734 $as_echo "$as_me: error:
12735         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12736         *** with the CDDL license and will prevent the module linking stage
12737         *** from succeeding.  You must rebuild your kernel without this
12738         *** option enabled." >&2;}
12739    { (exit 1); exit 1; }; }
12740
12741
12742
12743 fi
12744
12745         rm -Rf build
12746
12747
12748                 EXTRA_KCFLAGS="$tmp_flags"
12749
12750
12751 else
12752   $as_echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755                 { $as_echo "$as_me:$LINENO: result: no" >&5
12756 $as_echo "no" >&6; }
12757
12758
12759
12760
12761 fi
12762
12763         rm -Rf build
12764
12765
12766
12767
12768
12769
12770         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12771 $as_echo_n "checking block device operation prototypes... " >&6; }
12772         tmp_flags="$EXTRA_KCFLAGS"
12773         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12774
12775
12776 cat confdefs.h - <<_ACEOF >conftest.c
12777 /* confdefs.h.  */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h.  */
12782
12783
12784                 #include <linux/blkdev.h>
12785
12786 int
12787 main (void)
12788 {
12789
12790                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12791                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12792                 int (*blk_ioctl) (struct block_device *, fmode_t,
12793                                   unsigned, unsigned long) = NULL;
12794                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12795                                          unsigned, unsigned long) = NULL;
12796                 struct block_device_operations blk_ops = {
12797                         .open           = blk_open,
12798                         .release        = blk_release,
12799                         .ioctl          = blk_ioctl,
12800                         .compat_ioctl   = blk_compat_ioctl,
12801                 };
12802
12803                 blk_ops.open(NULL, 0);
12804                 blk_ops.release(NULL, 0);
12805                 blk_ops.ioctl(NULL, 0, 0, 0);
12806                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12807
12808   ;
12809   return 0;
12810 }
12811
12812 _ACEOF
12813
12814
12815         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12816         echo "obj-m := conftest.o" >build/Makefile
12817         modpost_flag=''
12818         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12819         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; }; then
12830
12831                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12832 $as_echo "struct block_device" >&6; }
12833
12834 cat >>confdefs.h <<\_ACEOF
12835 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12836 _ACEOF
12837
12838
12839 else
12840   $as_echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12844 $as_echo "struct inode" >&6; }
12845
12846
12847
12848 fi
12849
12850         rm -Rf build
12851
12852
12853         EXTRA_KCFLAGS="$tmp_flags"
12854
12855         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12856 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12857
12858
12859 cat confdefs.h - <<_ACEOF >conftest.c
12860 /* confdefs.h.  */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h.  */
12865
12866
12867                 #include <linux/types.h>
12868
12869 int
12870 main (void)
12871 {
12872
12873                 fmode_t *ptr __attribute__ ((unused));
12874
12875   ;
12876   return 0;
12877 }
12878
12879 _ACEOF
12880
12881
12882         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12883         echo "obj-m := conftest.o" >build/Makefile
12884         modpost_flag=''
12885         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12886         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888   (eval $ac_try) 2>&5
12889   ac_status=$?
12890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893   (eval $ac_try) 2>&5
12894   ac_status=$?
12895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); }; }; then
12897
12898                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12899 $as_echo "yes" >&6; }
12900
12901 cat >>confdefs.h <<\_ACEOF
12902 #define HAVE_FMODE_T 1
12903 _ACEOF
12904
12905
12906 else
12907   $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910                 { $as_echo "$as_me:$LINENO: result: no" >&5
12911 $as_echo "no" >&6; }
12912
12913
12914
12915 fi
12916
12917         rm -Rf build
12918
12919
12920
12921
12922         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12923 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12924
12925
12926 cat confdefs.h - <<_ACEOF >conftest.c
12927 /* confdefs.h.  */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h.  */
12932
12933
12934                 #include <linux/kobject.h>
12935
12936 int
12937 main (void)
12938 {
12939
12940                 int val __attribute__ ((unused));
12941                 val = KOBJ_NAME_LEN;
12942
12943   ;
12944   return 0;
12945 }
12946
12947 _ACEOF
12948
12949
12950         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12951         echo "obj-m := conftest.o" >build/Makefile
12952         modpost_flag=''
12953         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12954         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956   (eval $ac_try) 2>&5
12957   ac_status=$?
12958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961   (eval $ac_try) 2>&5
12962   ac_status=$?
12963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; }; then
12965
12966                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12967 $as_echo "yes" >&6; }
12968
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_KOBJ_NAME_LEN 1
12971 _ACEOF
12972
12973
12974 else
12975   $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978                 { $as_echo "$as_me:$LINENO: result: no" >&5
12979 $as_echo "no" >&6; }
12980
12981
12982
12983 fi
12984
12985         rm -Rf build
12986
12987
12988
12989
12990         { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
12991 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12992
12993
12994 cat confdefs.h - <<_ACEOF >conftest.c
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000
13001
13002                 #include <linux/fs.h>
13003
13004 int
13005 main (void)
13006 {
13007
13008                 struct block_device *bdev = NULL;
13009                 (void) blkdev_get(bdev, 0, NULL);
13010
13011   ;
13012   return 0;
13013 }
13014
13015 _ACEOF
13016
13017
13018         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13019         echo "obj-m := conftest.o" >build/Makefile
13020         modpost_flag=''
13021         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13022         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024   (eval $ac_try) 2>&5
13025   ac_status=$?
13026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029   (eval $ac_try) 2>&5
13030   ac_status=$?
13031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); }; }; then
13033
13034                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13035 $as_echo "yes" >&6; }
13036
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_3ARG_BLKDEV_GET 1
13039 _ACEOF
13040
13041
13042 else
13043   $as_echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046                 { $as_echo "$as_me:$LINENO: result: no" >&5
13047 $as_echo "no" >&6; }
13048
13049
13050
13051 fi
13052
13053         rm -Rf build
13054
13055
13056
13057         { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
13058 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13059
13060
13061
13062 cat confdefs.h - <<_ACEOF >conftest.c
13063 /* confdefs.h.  */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h.  */
13068
13069
13070                 #include <linux/fs.h>
13071
13072 int
13073 main (void)
13074 {
13075
13076                 blkdev_get_by_path(NULL, 0, NULL);
13077
13078   ;
13079   return 0;
13080 }
13081
13082 _ACEOF
13083
13084
13085         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13086         echo "obj-m := conftest.o" >build/Makefile
13087         modpost_flag=''
13088         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13089         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091   (eval $ac_try) 2>&5
13092   ac_status=$?
13093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096   (eval $ac_try) 2>&5
13097   ac_status=$?
13098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; }; then
13100   rc=0
13101 else
13102   $as_echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104  rc=1
13105
13106
13107 fi
13108
13109         rm -Rf build
13110
13111
13112         if test $rc -ne 0; then :
13113
13114                 { $as_echo "$as_me:$LINENO: result: no" >&5
13115 $as_echo "no" >&6; }
13116
13117         else
13118                 if test "x$enable_linux_builtin" != xyes; then
13119
13120         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13121                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13122         rc=$?
13123         if test $rc -ne 0; then
13124                 export=0
13125                 for file in fs/block_dev.c; do
13126                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13127                                 "$LINUX/$file" 2>/dev/null
13128                         rc=$?
13129                         if test $rc -eq 0; then
13130                                 export=1
13131                                 break;
13132                         fi
13133                 done
13134                 if test $export -eq 0; then :
13135                         rc=1
13136                 else :
13137                         rc=0
13138                 fi
13139         else :
13140                 rc=0
13141         fi
13142
13143                 fi
13144                 if test $rc -ne 0; then :
13145
13146                 { $as_echo "$as_me:$LINENO: result: no" >&5
13147 $as_echo "no" >&6; }
13148
13149                 else :
13150
13151                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_BLKDEV_GET_BY_PATH 1
13156 _ACEOF
13157
13158
13159                 fi
13160         fi
13161
13162
13163         { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
13164 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13165
13166
13167
13168 cat confdefs.h - <<_ACEOF >conftest.c
13169 /* confdefs.h.  */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h.  */
13174
13175
13176                 #include <linux/fs.h>
13177
13178 int
13179 main (void)
13180 {
13181
13182                 open_bdev_exclusive(NULL, 0, NULL);
13183
13184   ;
13185   return 0;
13186 }
13187
13188 _ACEOF
13189
13190
13191         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13192         echo "obj-m := conftest.o" >build/Makefile
13193         modpost_flag=''
13194         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13195         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197   (eval $ac_try) 2>&5
13198   ac_status=$?
13199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206   rc=0
13207 else
13208   $as_echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210  rc=1
13211
13212
13213 fi
13214
13215         rm -Rf build
13216
13217
13218         if test $rc -ne 0; then :
13219
13220                 { $as_echo "$as_me:$LINENO: result: no" >&5
13221 $as_echo "no" >&6; }
13222
13223         else
13224                 if test "x$enable_linux_builtin" != xyes; then
13225
13226         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13227                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13228         rc=$?
13229         if test $rc -ne 0; then
13230                 export=0
13231                 for file in fs/block_dev.c; do
13232                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13233                                 "$LINUX/$file" 2>/dev/null
13234                         rc=$?
13235                         if test $rc -eq 0; then
13236                                 export=1
13237                                 break;
13238                         fi
13239                 done
13240                 if test $export -eq 0; then :
13241                         rc=1
13242                 else :
13243                         rc=0
13244                 fi
13245         else :
13246                 rc=0
13247         fi
13248
13249                 fi
13250                 if test $rc -ne 0; then :
13251
13252                 { $as_echo "$as_me:$LINENO: result: no" >&5
13253 $as_echo "no" >&6; }
13254
13255                 else :
13256
13257                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13258 $as_echo "yes" >&6; }
13259
13260 cat >>confdefs.h <<\_ACEOF
13261 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13262 _ACEOF
13263
13264
13265                 fi
13266         fi
13267
13268
13269
13270         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
13271 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13272
13273
13274 cat confdefs.h - <<_ACEOF >conftest.c
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280
13281
13282                 #include <linux/buffer_head.h>
13283
13284 int
13285 main (void)
13286 {
13287
13288                 struct block_device *bdev = NULL;
13289                 invalidate_bdev(bdev);
13290
13291   ;
13292   return 0;
13293 }
13294
13295 _ACEOF
13296
13297
13298         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13299         echo "obj-m := conftest.o" >build/Makefile
13300         modpost_flag=''
13301         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13302         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304   (eval $ac_try) 2>&5
13305   ac_status=$?
13306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; }; then
13313
13314                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13315 $as_echo "yes" >&6; }
13316
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_1ARG_INVALIDATE_BDEV 1
13319 _ACEOF
13320
13321
13322 else
13323   $as_echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326                 { $as_echo "$as_me:$LINENO: result: no" >&5
13327 $as_echo "no" >&6; }
13328
13329
13330
13331 fi
13332
13333         rm -Rf build
13334
13335
13336
13337
13338         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
13339 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13340         tmp_flags="$EXTRA_KCFLAGS"
13341         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13342
13343
13344 cat confdefs.h - <<_ACEOF >conftest.c
13345 /* confdefs.h.  */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h.  */
13350
13351
13352                 #include <linux/blkdev.h>
13353
13354 int
13355 main (void)
13356 {
13357
13358                 struct block_device *bdev = NULL;
13359                 bdev_logical_block_size(bdev);
13360
13361   ;
13362   return 0;
13363 }
13364
13365 _ACEOF
13366
13367
13368         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13369         echo "obj-m := conftest.o" >build/Makefile
13370         modpost_flag=''
13371         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13372         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383
13384                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13385 $as_echo "yes" >&6; }
13386
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
13389 _ACEOF
13390
13391
13392 else
13393   $as_echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396                 { $as_echo "$as_me:$LINENO: result: no" >&5
13397 $as_echo "no" >&6; }
13398
13399
13400
13401 fi
13402
13403         rm -Rf build
13404
13405
13406         EXTRA_KCFLAGS="$tmp_flags"
13407
13408
13409         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13410 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13411         EXTRA_KCFLAGS="-Werror"
13412
13413
13414 cat confdefs.h - <<_ACEOF >conftest.c
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420
13421
13422                 #include <linux/bio.h>
13423
13424 int
13425 main (void)
13426 {
13427
13428                 struct bio bio;
13429                 (void)bio_empty_barrier(&bio);
13430
13431   ;
13432   return 0;
13433 }
13434
13435 _ACEOF
13436
13437
13438         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13439         echo "obj-m := conftest.o" >build/Makefile
13440         modpost_flag=''
13441         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13442         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449   (eval $ac_try) 2>&5
13450   ac_status=$?
13451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }; then
13453
13454                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13455 $as_echo "yes" >&6; }
13456
13457 cat >>confdefs.h <<\_ACEOF
13458 #define HAVE_BIO_EMPTY_BARRIER 1
13459 _ACEOF
13460
13461
13462 else
13463   $as_echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466                 { $as_echo "$as_me:$LINENO: result: no" >&5
13467 $as_echo "no" >&6; }
13468
13469
13470
13471 fi
13472
13473         rm -Rf build
13474
13475
13476
13477
13478         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13479 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13480
13481
13482 cat confdefs.h - <<_ACEOF >conftest.c
13483 /* confdefs.h.  */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h.  */
13488
13489
13490                 #include <linux/bio.h>
13491
13492 int
13493 main (void)
13494 {
13495
13496                 int flags __attribute__ ((unused));
13497                 flags = (1 << BIO_RW_FAILFAST);
13498
13499   ;
13500   return 0;
13501 }
13502
13503 _ACEOF
13504
13505
13506         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13507         echo "obj-m := conftest.o" >build/Makefile
13508         modpost_flag=''
13509         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13510         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; }; then
13521
13522                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13523 $as_echo "yes" >&6; }
13524
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_BIO_RW_FAILFAST 1
13527 _ACEOF
13528
13529
13530 else
13531   $as_echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534                 { $as_echo "$as_me:$LINENO: result: no" >&5
13535 $as_echo "no" >&6; }
13536
13537
13538
13539 fi
13540
13541         rm -Rf build
13542
13543
13544
13545
13546         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13547 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13548
13549
13550 cat confdefs.h - <<_ACEOF >conftest.c
13551 /* confdefs.h.  */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h.  */
13556
13557
13558                 #include <linux/bio.h>
13559
13560 int
13561 main (void)
13562 {
13563
13564                 int flags __attribute__ ((unused));
13565                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13566                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
13567                          (1 << BIO_RW_FAILFAST_DRIVER));
13568
13569   ;
13570   return 0;
13571 }
13572
13573 _ACEOF
13574
13575
13576         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13577         echo "obj-m := conftest.o" >build/Makefile
13578         modpost_flag=''
13579         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13580         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582   (eval $ac_try) 2>&5
13583   ac_status=$?
13584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591
13592                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13593 $as_echo "yes" >&6; }
13594
13595 cat >>confdefs.h <<\_ACEOF
13596 #define HAVE_BIO_RW_FAILFAST_DTD 1
13597 _ACEOF
13598
13599
13600 else
13601   $as_echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13603
13604                 { $as_echo "$as_me:$LINENO: result: no" >&5
13605 $as_echo "no" >&6; }
13606
13607
13608
13609 fi
13610
13611         rm -Rf build
13612
13613
13614
13615
13616         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13617 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13618
13619
13620 cat confdefs.h - <<_ACEOF >conftest.c
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626
13627
13628                 #include <linux/bio.h>
13629
13630 int
13631 main (void)
13632 {
13633
13634                 int flags __attribute__ ((unused));
13635                 flags = REQ_FAILFAST_MASK;
13636
13637   ;
13638   return 0;
13639 }
13640
13641 _ACEOF
13642
13643
13644         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13645         echo "obj-m := conftest.o" >build/Makefile
13646         modpost_flag=''
13647         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13648         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; }; then
13659
13660                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13661 $as_echo "yes" >&6; }
13662
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13665 _ACEOF
13666
13667
13668 else
13669   $as_echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672                 { $as_echo "$as_me:$LINENO: result: no" >&5
13673 $as_echo "no" >&6; }
13674
13675
13676
13677 fi
13678
13679         rm -Rf build
13680
13681
13682
13683
13684         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13685 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13686         tmp_flags="$EXTRA_KCFLAGS"
13687         EXTRA_KCFLAGS="-Werror"
13688
13689
13690 cat confdefs.h - <<_ACEOF >conftest.c
13691 /* confdefs.h.  */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h.  */
13696
13697
13698                 #include <linux/bio.h>
13699
13700 int
13701 main (void)
13702 {
13703
13704                 void (*wanted_end_io)(struct bio *, int) = NULL;
13705                 bio_end_io_t *local_end_io __attribute__ ((unused));
13706
13707                 local_end_io = wanted_end_io;
13708
13709   ;
13710   return 0;
13711 }
13712
13713 _ACEOF
13714
13715
13716         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13717         echo "obj-m := conftest.o" >build/Makefile
13718         modpost_flag=''
13719         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13720         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731
13732                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13733 $as_echo "yes" >&6; }
13734
13735 cat >>confdefs.h <<\_ACEOF
13736 #define HAVE_2ARGS_BIO_END_IO_T 1
13737 _ACEOF
13738
13739
13740 else
13741   $as_echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13743
13744                 { $as_echo "$as_me:$LINENO: result: no" >&5
13745 $as_echo "no" >&6; }
13746
13747
13748
13749 fi
13750
13751         rm -Rf build
13752
13753
13754         EXTRA_KCFLAGS="$tmp_flags"
13755
13756
13757         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13758 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13759
13760
13761 cat confdefs.h - <<_ACEOF >conftest.c
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767
13768
13769                 #include <linux/bio.h>
13770
13771 int
13772 main (void)
13773 {
13774
13775                 int flags __attribute__ ((unused));
13776                 flags = BIO_RW_SYNC;
13777
13778   ;
13779   return 0;
13780 }
13781
13782 _ACEOF
13783
13784
13785         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13786         echo "obj-m := conftest.o" >build/Makefile
13787         modpost_flag=''
13788         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13789         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796   (eval $ac_try) 2>&5
13797   ac_status=$?
13798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800
13801                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13802 $as_echo "yes" >&6; }
13803
13804 cat >>confdefs.h <<\_ACEOF
13805 #define HAVE_BIO_RW_SYNC 1
13806 _ACEOF
13807
13808
13809 else
13810   $as_echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813                 { $as_echo "$as_me:$LINENO: result: no" >&5
13814 $as_echo "no" >&6; }
13815
13816
13817
13818 fi
13819
13820         rm -Rf build
13821
13822
13823
13824
13825         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13826 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13827
13828
13829 cat confdefs.h - <<_ACEOF >conftest.c
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835
13836
13837                 #include <linux/bio.h>
13838
13839 int
13840 main (void)
13841 {
13842
13843                 int flags __attribute__ ((unused));
13844                 flags = BIO_RW_SYNCIO;
13845
13846   ;
13847   return 0;
13848 }
13849
13850 _ACEOF
13851
13852
13853         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13854         echo "obj-m := conftest.o" >build/Makefile
13855         modpost_flag=''
13856         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13857         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; }; then
13868
13869                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13870 $as_echo "yes" >&6; }
13871
13872 cat >>confdefs.h <<\_ACEOF
13873 #define HAVE_BIO_RW_SYNCIO 1
13874 _ACEOF
13875
13876
13877 else
13878   $as_echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13880
13881                 { $as_echo "$as_me:$LINENO: result: no" >&5
13882 $as_echo "no" >&6; }
13883
13884
13885
13886 fi
13887
13888         rm -Rf build
13889
13890
13891
13892
13893         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13894 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13895
13896
13897 cat confdefs.h - <<_ACEOF >conftest.c
13898 /* confdefs.h.  */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h.  */
13903
13904
13905                 #include <linux/bio.h>
13906
13907 int
13908 main (void)
13909 {
13910
13911                 int flags __attribute__ ((unused));
13912                 flags = REQ_SYNC;
13913
13914   ;
13915   return 0;
13916 }
13917
13918 _ACEOF
13919
13920
13921         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13922         echo "obj-m := conftest.o" >build/Makefile
13923         modpost_flag=''
13924         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13925         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927   (eval $ac_try) 2>&5
13928   ac_status=$?
13929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }; then
13936
13937                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13938 $as_echo "yes" >&6; }
13939
13940 cat >>confdefs.h <<\_ACEOF
13941 #define HAVE_REQ_SYNC 1
13942 _ACEOF
13943
13944
13945 else
13946   $as_echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949                 { $as_echo "$as_me:$LINENO: result: no" >&5
13950 $as_echo "no" >&6; }
13951
13952
13953
13954 fi
13955
13956         rm -Rf build
13957
13958
13959
13960
13961         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13962 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13963         tmp_flags="$EXTRA_KCFLAGS"
13964         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13965
13966
13967 cat confdefs.h - <<_ACEOF >conftest.c
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973
13974
13975                 #include <linux/blkdev.h>
13976
13977 int
13978 main (void)
13979 {
13980
13981                 struct request *req = NULL;
13982                 (void) blk_end_request(req, 0, 0);
13983
13984   ;
13985   return 0;
13986 }
13987
13988 _ACEOF
13989
13990
13991         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13992         echo "obj-m := conftest.o" >build/Makefile
13993         modpost_flag=''
13994         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13995         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997   (eval $ac_try) 2>&5
13998   ac_status=$?
13999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002   (eval $ac_try) 2>&5
14003   ac_status=$?
14004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; }; then
14006
14007                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14008 $as_echo "yes" >&6; }
14009
14010 cat >>confdefs.h <<\_ACEOF
14011 #define HAVE_BLK_END_REQUEST 1
14012 _ACEOF
14013
14014
14015 else
14016   $as_echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019                 { $as_echo "$as_me:$LINENO: result: no" >&5
14020 $as_echo "no" >&6; }
14021
14022
14023
14024 fi
14025
14026         rm -Rf build
14027
14028
14029
14030         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
14031 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
14032
14033
14034 cat confdefs.h - <<_ACEOF >conftest.c
14035 /* confdefs.h.  */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h.  */
14040
14041
14042                 #include <linux/module.h>
14043                 #include <linux/blkdev.h>
14044
14045                 MODULE_LICENSE("CDDL");
14046
14047 int
14048 main (void)
14049 {
14050
14051                 struct request *req = NULL;
14052                 (void) blk_end_request(req, 0, 0);
14053
14054   ;
14055   return 0;
14056 }
14057
14058 _ACEOF
14059
14060
14061         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14062         echo "obj-m := conftest.o" >build/Makefile
14063         modpost_flag=''
14064         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14065         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067   (eval $ac_try) 2>&5
14068   ac_status=$?
14069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; }; then
14076
14077                 { $as_echo "$as_me:$LINENO: result: no" >&5
14078 $as_echo "no" >&6; }
14079
14080 else
14081   $as_echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14085 $as_echo "yes" >&6; }
14086
14087 cat >>confdefs.h <<\_ACEOF
14088 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
14089 _ACEOF
14090
14091
14092
14093
14094 fi
14095
14096         rm -Rf build
14097
14098
14099         EXTRA_KCFLAGS="$tmp_flags"
14100
14101
14102         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
14103 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14104         tmp_flags="$EXTRA_KCFLAGS"
14105         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14106
14107
14108 cat confdefs.h - <<_ACEOF >conftest.c
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114
14115
14116                 #include <linux/blkdev.h>
14117
14118 int
14119 main (void)
14120 {
14121
14122                 struct request_queue *q = NULL;
14123                 (void) blk_queue_flush(q, REQ_FLUSH);
14124
14125   ;
14126   return 0;
14127 }
14128
14129 _ACEOF
14130
14131
14132         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14133         echo "obj-m := conftest.o" >build/Makefile
14134         modpost_flag=''
14135         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14136         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138   (eval $ac_try) 2>&5
14139   ac_status=$?
14140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }; then
14147
14148                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14149 $as_echo "yes" >&6; }
14150
14151 cat >>confdefs.h <<\_ACEOF
14152 #define HAVE_BLK_QUEUE_FLUSH 1
14153 _ACEOF
14154
14155
14156 else
14157   $as_echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160                 { $as_echo "$as_me:$LINENO: result: no" >&5
14161 $as_echo "no" >&6; }
14162
14163
14164
14165 fi
14166
14167         rm -Rf build
14168
14169
14170
14171         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
14172 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14173
14174
14175 cat confdefs.h - <<_ACEOF >conftest.c
14176 /* confdefs.h.  */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h.  */
14181
14182
14183                 #include <linux/module.h>
14184                 #include <linux/blkdev.h>
14185
14186                 MODULE_LICENSE("CDDL");
14187
14188 int
14189 main (void)
14190 {
14191
14192                 struct request_queue *q = NULL;
14193                 (void) blk_queue_flush(q, REQ_FLUSH);
14194
14195   ;
14196   return 0;
14197 }
14198
14199 _ACEOF
14200
14201
14202         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14203         echo "obj-m := conftest.o" >build/Makefile
14204         modpost_flag=''
14205         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14206         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208   (eval $ac_try) 2>&5
14209   ac_status=$?
14210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213   (eval $ac_try) 2>&5
14214   ac_status=$?
14215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; }; then
14217
14218                 { $as_echo "$as_me:$LINENO: result: no" >&5
14219 $as_echo "no" >&6; }
14220
14221 else
14222   $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14226 $as_echo "yes" >&6; }
14227
14228 cat >>confdefs.h <<\_ACEOF
14229 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
14230 _ACEOF
14231
14232
14233
14234
14235 fi
14236
14237         rm -Rf build
14238
14239
14240         EXTRA_KCFLAGS="$tmp_flags"
14241
14242
14243         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
14244 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14245         tmp_flags="$EXTRA_KCFLAGS"
14246         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14247
14248
14249 cat confdefs.h - <<_ACEOF >conftest.c
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255
14256
14257                 #include <linux/blkdev.h>
14258
14259 int
14260 main (void)
14261 {
14262
14263                 struct request_queue *q = NULL;
14264                 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14265
14266   ;
14267   return 0;
14268 }
14269
14270 _ACEOF
14271
14272
14273         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14274         echo "obj-m := conftest.o" >build/Makefile
14275         modpost_flag=''
14276         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14277         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; }; then
14288
14289                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14290 $as_echo "yes" >&6; }
14291
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
14294 _ACEOF
14295
14296
14297 else
14298   $as_echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14300
14301                 { $as_echo "$as_me:$LINENO: result: no" >&5
14302 $as_echo "no" >&6; }
14303
14304
14305
14306 fi
14307
14308         rm -Rf build
14309
14310
14311         EXTRA_KCFLAGS="$tmp_flags"
14312
14313
14314         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
14315 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14316         tmp_flags="$EXTRA_KCFLAGS"
14317         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14318
14319
14320 cat confdefs.h - <<_ACEOF >conftest.c
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326
14327
14328                 #include <linux/blkdev.h>
14329
14330 int
14331 main (void)
14332 {
14333
14334                 struct request_queue *q = NULL;
14335                 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14336
14337   ;
14338   return 0;
14339 }
14340
14341 _ACEOF
14342
14343
14344         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14345         echo "obj-m := conftest.o" >build/Makefile
14346         modpost_flag=''
14347         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14348         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355   (eval $ac_try) 2>&5
14356   ac_status=$?
14357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359
14360                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14361 $as_echo "yes" >&6; }
14362
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
14365 _ACEOF
14366
14367
14368 else
14369   $as_echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372                 { $as_echo "$as_me:$LINENO: result: no" >&5
14373 $as_echo "no" >&6; }
14374
14375
14376
14377 fi
14378
14379         rm -Rf build
14380
14381
14382         EXTRA_KCFLAGS="$tmp_flags"
14383
14384
14385         { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
14386 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14387         tmp_flags="$EXTRA_KCFLAGS"
14388         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14389
14390
14391 cat confdefs.h - <<_ACEOF >conftest.c
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397
14398
14399                 #include <linux/blkdev.h>
14400
14401 int
14402 main (void)
14403 {
14404
14405                 struct request_queue *q = NULL;
14406                 unsigned short block_size = 1;
14407                 (void) blk_queue_physical_block_size(q, block_size);
14408
14409   ;
14410   return 0;
14411 }
14412
14413 _ACEOF
14414
14415
14416         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14417         echo "obj-m := conftest.o" >build/Makefile
14418         modpost_flag=''
14419         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14420         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427   (eval $ac_try) 2>&5
14428   ac_status=$?
14429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431
14432                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14433 $as_echo "yes" >&6; }
14434
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14437 _ACEOF
14438
14439
14440 else
14441   $as_echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444                 { $as_echo "$as_me:$LINENO: result: no" >&5
14445 $as_echo "no" >&6; }
14446
14447
14448
14449 fi
14450
14451         rm -Rf build
14452
14453
14454         EXTRA_KCFLAGS="$tmp_flags"
14455
14456
14457         { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14458 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14459         tmp_flags="$EXTRA_KCFLAGS"
14460         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14461
14462
14463 cat confdefs.h - <<_ACEOF >conftest.c
14464 /* confdefs.h.  */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h.  */
14469
14470
14471                 #include <linux/blkdev.h>
14472
14473 int
14474 main (void)
14475 {
14476
14477                 struct request_queue *q = NULL;
14478                 unsigned int opt = 1;
14479                 (void) blk_queue_io_opt(q, opt);
14480
14481   ;
14482   return 0;
14483 }
14484
14485 _ACEOF
14486
14487
14488         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14489         echo "obj-m := conftest.o" >build/Makefile
14490         modpost_flag=''
14491         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14492         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; }; then
14503
14504                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14505 $as_echo "yes" >&6; }
14506
14507 cat >>confdefs.h <<\_ACEOF
14508 #define HAVE_BLK_QUEUE_IO_OPT 1
14509 _ACEOF
14510
14511
14512 else
14513   $as_echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516                 { $as_echo "$as_me:$LINENO: result: no" >&5
14517 $as_echo "no" >&6; }
14518
14519
14520
14521 fi
14522
14523         rm -Rf build
14524
14525
14526         EXTRA_KCFLAGS="$tmp_flags"
14527
14528
14529         { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14530 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14531         tmp_flags="$EXTRA_KCFLAGS"
14532         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14533
14534
14535 cat confdefs.h - <<_ACEOF >conftest.c
14536 /* confdefs.h.  */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h.  */
14541
14542
14543                 #include <linux/blkdev.h>
14544
14545 int
14546 main (void)
14547 {
14548
14549                 struct request_queue *q = NULL;
14550                 (void) blk_queue_nonrot(q);
14551
14552   ;
14553   return 0;
14554 }
14555
14556 _ACEOF
14557
14558
14559         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14560         echo "obj-m := conftest.o" >build/Makefile
14561         modpost_flag=''
14562         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14563         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565   (eval $ac_try) 2>&5
14566   ac_status=$?
14567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570   (eval $ac_try) 2>&5
14571   ac_status=$?
14572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; }; then
14574
14575                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14576 $as_echo "yes" >&6; }
14577
14578 cat >>confdefs.h <<\_ACEOF
14579 #define HAVE_BLK_QUEUE_NONROT 1
14580 _ACEOF
14581
14582
14583 else
14584   $as_echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587                 { $as_echo "$as_me:$LINENO: result: no" >&5
14588 $as_echo "no" >&6; }
14589
14590
14591
14592 fi
14593
14594         rm -Rf build
14595
14596
14597         EXTRA_KCFLAGS="$tmp_flags"
14598
14599
14600         { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14601 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14602         tmp_flags="$EXTRA_KCFLAGS"
14603         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14604
14605
14606 cat confdefs.h - <<_ACEOF >conftest.c
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612
14613
14614                 #include <linux/blkdev.h>
14615
14616 int
14617 main (void)
14618 {
14619
14620                 struct request_queue *q = NULL;
14621                 (void) blk_queue_discard(q);
14622
14623   ;
14624   return 0;
14625 }
14626
14627 _ACEOF
14628
14629
14630         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14631         echo "obj-m := conftest.o" >build/Makefile
14632         modpost_flag=''
14633         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14634         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636   (eval $ac_try) 2>&5
14637   ac_status=$?
14638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; }; then
14645
14646                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14647 $as_echo "yes" >&6; }
14648
14649 cat >>confdefs.h <<\_ACEOF
14650 #define HAVE_BLK_QUEUE_DISCARD 1
14651 _ACEOF
14652
14653
14654 else
14655   $as_echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658                 { $as_echo "$as_me:$LINENO: result: no" >&5
14659 $as_echo "no" >&6; }
14660
14661
14662
14663 fi
14664
14665         rm -Rf build
14666
14667
14668         EXTRA_KCFLAGS="$tmp_flags"
14669
14670
14671         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14672 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14673         tmp_flags="$EXTRA_KCFLAGS"
14674         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14675
14676
14677 cat confdefs.h - <<_ACEOF >conftest.c
14678 /* confdefs.h.  */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h.  */
14683
14684
14685                 #include <linux/blkdev.h>
14686
14687 int
14688 main (void)
14689 {
14690
14691                 struct request_queue *q = NULL;
14692                 (void) blk_fetch_request(q);
14693
14694   ;
14695   return 0;
14696 }
14697
14698 _ACEOF
14699
14700
14701         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14702         echo "obj-m := conftest.o" >build/Makefile
14703         modpost_flag=''
14704         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14705         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; }; then
14716
14717                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14718 $as_echo "yes" >&6; }
14719
14720 cat >>confdefs.h <<\_ACEOF
14721 #define HAVE_BLK_FETCH_REQUEST 1
14722 _ACEOF
14723
14724
14725 else
14726   $as_echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729                 { $as_echo "$as_me:$LINENO: result: no" >&5
14730 $as_echo "no" >&6; }
14731
14732
14733
14734 fi
14735
14736         rm -Rf build
14737
14738
14739         EXTRA_KCFLAGS="$tmp_flags"
14740
14741
14742         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14743 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14744         tmp_flags="$EXTRA_KCFLAGS"
14745         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14746
14747
14748 cat confdefs.h - <<_ACEOF >conftest.c
14749 /* confdefs.h.  */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h.  */
14754
14755
14756                 #include <linux/blkdev.h>
14757
14758 int
14759 main (void)
14760 {
14761
14762                 struct request_queue *q = NULL;
14763                 struct request *req = NULL;
14764                 blk_requeue_request(q, req);
14765
14766   ;
14767   return 0;
14768 }
14769
14770 _ACEOF
14771
14772
14773         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14774         echo "obj-m := conftest.o" >build/Makefile
14775         modpost_flag=''
14776         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14777         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788
14789                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14790 $as_echo "yes" >&6; }
14791
14792 cat >>confdefs.h <<\_ACEOF
14793 #define HAVE_BLK_REQUEUE_REQUEST 1
14794 _ACEOF
14795
14796
14797 else
14798   $as_echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801                 { $as_echo "$as_me:$LINENO: result: no" >&5
14802 $as_echo "no" >&6; }
14803
14804
14805
14806 fi
14807
14808         rm -Rf build
14809
14810
14811         EXTRA_KCFLAGS="$tmp_flags"
14812
14813
14814         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14815 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14816         tmp_flags="$EXTRA_KCFLAGS"
14817         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14818
14819
14820 cat confdefs.h - <<_ACEOF >conftest.c
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826
14827
14828                 #include <linux/blkdev.h>
14829
14830 int
14831 main (void)
14832 {
14833
14834                 struct request *req = NULL;
14835                 (void) blk_rq_bytes(req);
14836
14837   ;
14838   return 0;
14839 }
14840
14841 _ACEOF
14842
14843
14844         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14845         echo "obj-m := conftest.o" >build/Makefile
14846         modpost_flag=''
14847         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14848         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; }; then
14859
14860                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14861 $as_echo "yes" >&6; }
14862
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_BLK_RQ_BYTES 1
14865 _ACEOF
14866
14867
14868 else
14869   $as_echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872                 { $as_echo "$as_me:$LINENO: result: no" >&5
14873 $as_echo "no" >&6; }
14874
14875
14876
14877 fi
14878
14879         rm -Rf build
14880
14881
14882
14883         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14884 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14885
14886
14887 cat confdefs.h - <<_ACEOF >conftest.c
14888 /* confdefs.h.  */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h.  */
14893
14894
14895                 #include <linux/module.h>
14896                 #include <linux/blkdev.h>
14897
14898                 MODULE_LICENSE("CDDL");
14899
14900 int
14901 main (void)
14902 {
14903
14904                 struct request *req = NULL;
14905                 (void) blk_rq_bytes(req);
14906
14907   ;
14908   return 0;
14909 }
14910
14911 _ACEOF
14912
14913
14914         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14915         echo "obj-m := conftest.o" >build/Makefile
14916         modpost_flag=''
14917         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14918         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920   (eval $ac_try) 2>&5
14921   ac_status=$?
14922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; }; then
14929
14930                 { $as_echo "$as_me:$LINENO: result: no" >&5
14931 $as_echo "no" >&6; }
14932
14933 else
14934   $as_echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14936
14937                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14938 $as_echo "yes" >&6; }
14939
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14942 _ACEOF
14943
14944
14945
14946
14947 fi
14948
14949         rm -Rf build
14950
14951
14952         EXTRA_KCFLAGS="$tmp_flags"
14953
14954
14955         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14956 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14957         tmp_flags="$EXTRA_KCFLAGS"
14958         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14959
14960
14961 cat confdefs.h - <<_ACEOF >conftest.c
14962 /* confdefs.h.  */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h.  */
14967
14968
14969                 #include <linux/blkdev.h>
14970
14971 int
14972 main (void)
14973 {
14974
14975                 struct request *req = NULL;
14976                 (void) blk_rq_pos(req);
14977
14978   ;
14979   return 0;
14980 }
14981
14982 _ACEOF
14983
14984
14985         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14986         echo "obj-m := conftest.o" >build/Makefile
14987         modpost_flag=''
14988         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14989         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991   (eval $ac_try) 2>&5
14992   ac_status=$?
14993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996   (eval $ac_try) 2>&5
14997   ac_status=$?
14998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; }; then
15000
15001                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15002 $as_echo "yes" >&6; }
15003
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_BLK_RQ_POS 1
15006 _ACEOF
15007
15008
15009 else
15010   $as_echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013                 { $as_echo "$as_me:$LINENO: result: no" >&5
15014 $as_echo "no" >&6; }
15015
15016
15017
15018 fi
15019
15020         rm -Rf build
15021
15022
15023         EXTRA_KCFLAGS="$tmp_flags"
15024
15025
15026         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
15027 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
15028         tmp_flags="$EXTRA_KCFLAGS"
15029         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
15030
15031
15032 cat confdefs.h - <<_ACEOF >conftest.c
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038
15039
15040                 #include <linux/blkdev.h>
15041
15042 int
15043 main (void)
15044 {
15045
15046                 struct request *req = NULL;
15047                 (void) blk_rq_sectors(req);
15048
15049   ;
15050   return 0;
15051 }
15052
15053 _ACEOF
15054
15055
15056         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15057         echo "obj-m := conftest.o" >build/Makefile
15058         modpost_flag=''
15059         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15060         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062   (eval $ac_try) 2>&5
15063   ac_status=$?
15064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; }; then
15071
15072                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15073 $as_echo "yes" >&6; }
15074
15075 cat >>confdefs.h <<\_ACEOF
15076 #define HAVE_BLK_RQ_SECTORS 1
15077 _ACEOF
15078
15079
15080 else
15081   $as_echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15083
15084                 { $as_echo "$as_me:$LINENO: result: no" >&5
15085 $as_echo "no" >&6; }
15086
15087
15088
15089 fi
15090
15091         rm -Rf build
15092
15093
15094         EXTRA_KCFLAGS="$tmp_flags"
15095
15096
15097         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
15098 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
15099         tmp_flags="$EXTRA_KCFLAGS"
15100         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
15101
15102
15103 cat confdefs.h - <<_ACEOF >conftest.c
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109
15110
15111                 #include <linux/blkdev.h>
15112
15113 int
15114 main (void)
15115 {
15116
15117                 struct gendisk *disk = NULL;
15118                 (void) get_disk_ro(disk);
15119
15120   ;
15121   return 0;
15122 }
15123
15124 _ACEOF
15125
15126
15127         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15128         echo "obj-m := conftest.o" >build/Makefile
15129         modpost_flag=''
15130         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15131         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133   (eval $ac_try) 2>&5
15134   ac_status=$?
15135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138   (eval $ac_try) 2>&5
15139   ac_status=$?
15140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }; }; then
15142
15143                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15144 $as_echo "yes" >&6; }
15145
15146 cat >>confdefs.h <<\_ACEOF
15147 #define HAVE_GET_DISK_RO 1
15148 _ACEOF
15149
15150
15151 else
15152   $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155                 { $as_echo "$as_me:$LINENO: result: no" >&5
15156 $as_echo "no" >&6; }
15157
15158
15159
15160 fi
15161
15162         rm -Rf build
15163
15164
15165         EXTRA_KCFLAGS="$tmp_flags"
15166
15167         { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
15168 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
15169
15170
15171
15172 cat confdefs.h - <<_ACEOF >conftest.c
15173 /* confdefs.h.  */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h.  */
15178
15179
15180                 #include <linux/genhd.h>
15181
15182 int
15183 main (void)
15184 {
15185
15186                 get_gendisk(0, NULL);
15187
15188   ;
15189   return 0;
15190 }
15191
15192 _ACEOF
15193
15194
15195         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15196         echo "obj-m := conftest.o" >build/Makefile
15197         modpost_flag=''
15198         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15199         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201   (eval $ac_try) 2>&5
15202   ac_status=$?
15203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206   (eval $ac_try) 2>&5
15207   ac_status=$?
15208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   rc=0
15211 else
15212   $as_echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214  rc=1
15215
15216
15217 fi
15218
15219         rm -Rf build
15220
15221
15222         if test $rc -ne 0; then :
15223
15224                 { $as_echo "$as_me:$LINENO: result: no" >&5
15225 $as_echo "no" >&6; }
15226
15227         else
15228                 if test "x$enable_linux_builtin" != xyes; then
15229
15230         grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
15231                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15232         rc=$?
15233         if test $rc -ne 0; then
15234                 export=0
15235                 for file in block/genhd.c; do
15236                         grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
15237                                 "$LINUX/$file" 2>/dev/null
15238                         rc=$?
15239                         if test $rc -eq 0; then
15240                                 export=1
15241                                 break;
15242                         fi
15243                 done
15244                 if test $export -eq 0; then :
15245                         rc=1
15246                 else :
15247                         rc=0
15248                 fi
15249         else :
15250                 rc=0
15251         fi
15252
15253                 fi
15254                 if test $rc -ne 0; then :
15255
15256                 { $as_echo "$as_me:$LINENO: result: no" >&5
15257 $as_echo "no" >&6; }
15258
15259                 else :
15260
15261                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15262 $as_echo "yes" >&6; }
15263
15264 cat >>confdefs.h <<\_ACEOF
15265 #define HAVE_GET_GENDISK 1
15266 _ACEOF
15267
15268
15269                 fi
15270         fi
15271
15272
15273
15274         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
15275 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
15276         tmp_flags="$EXTRA_KCFLAGS"
15277         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
15278
15279
15280 cat confdefs.h - <<_ACEOF >conftest.c
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286
15287
15288                 #include <linux/blkdev.h>
15289
15290 int
15291 main (void)
15292 {
15293
15294                 struct request *req = NULL;
15295                 (void) rq_is_sync(req);
15296
15297   ;
15298   return 0;
15299 }
15300
15301 _ACEOF
15302
15303
15304         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15305         echo "obj-m := conftest.o" >build/Makefile
15306         modpost_flag=''
15307         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15308         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310   (eval $ac_try) 2>&5
15311   ac_status=$?
15312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; }; then
15319
15320                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15321 $as_echo "yes" >&6; }
15322
15323 cat >>confdefs.h <<\_ACEOF
15324 #define HAVE_RQ_IS_SYNC 1
15325 _ACEOF
15326
15327
15328 else
15329   $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332                 { $as_echo "$as_me:$LINENO: result: no" >&5
15333 $as_echo "no" >&6; }
15334
15335
15336
15337 fi
15338
15339         rm -Rf build
15340
15341
15342         EXTRA_KCFLAGS="$tmp_flags"
15343
15344
15345         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
15346 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
15347         tmp_flags="$EXTRA_KCFLAGS"
15348         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
15349
15350
15351 cat confdefs.h - <<_ACEOF >conftest.c
15352 /* confdefs.h.  */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h.  */
15357
15358
15359                 #include <linux/blkdev.h>
15360
15361 int
15362 main (void)
15363 {
15364
15365                 struct bio_vec *bv;
15366                 struct req_iterator iter;
15367                 struct request *req = NULL;
15368                 rq_for_each_segment(bv, req, iter) { }
15369
15370   ;
15371   return 0;
15372 }
15373
15374 _ACEOF
15375
15376
15377         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15378         echo "obj-m := conftest.o" >build/Makefile
15379         modpost_flag=''
15380         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15381         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392
15393                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15394 $as_echo "yes" >&6; }
15395
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HAVE_RQ_FOR_EACH_SEGMENT 1
15398 _ACEOF
15399
15400
15401 else
15402   $as_echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15404
15405                 { $as_echo "$as_me:$LINENO: result: no" >&5
15406 $as_echo "no" >&6; }
15407
15408
15409
15410 fi
15411
15412         rm -Rf build
15413
15414
15415         EXTRA_KCFLAGS="$tmp_flags"
15416
15417
15418         { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
15419 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
15420
15421
15422 cat confdefs.h - <<_ACEOF >conftest.c
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428
15429
15430                 #include <linux/blkdev.h>
15431
15432 int
15433 main (void)
15434 {
15435
15436                 struct queue_limits ql __attribute__ ((unused));
15437
15438                 ql.discard_granularity = 0;
15439
15440   ;
15441   return 0;
15442 }
15443
15444 _ACEOF
15445
15446
15447         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15448         echo "obj-m := conftest.o" >build/Makefile
15449         modpost_flag=''
15450         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15451         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458   (eval $ac_try) 2>&5
15459   ac_status=$?
15460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; }; then
15462
15463                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15464 $as_echo "yes" >&6; }
15465
15466 cat >>confdefs.h <<\_ACEOF
15467 #define HAVE_DISCARD_GRANULARITY 1
15468 _ACEOF
15469
15470
15471 else
15472   $as_echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475                 { $as_echo "$as_me:$LINENO: result: no" >&5
15476 $as_echo "no" >&6; }
15477
15478
15479
15480 fi
15481
15482         rm -Rf build
15483
15484
15485
15486         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
15487 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15488
15489
15490 cat confdefs.h - <<_ACEOF >conftest.c
15491 /* confdefs.h.  */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h.  */
15496
15497
15498                 #include <linux/fs.h>
15499                 #include <linux/xattr.h>
15500
15501                 const struct xattr_handler xattr_test_handler = {
15502                         .prefix = "test",
15503                         .get    = NULL,
15504                         .set    = NULL,
15505                 };
15506
15507                 const struct xattr_handler *xattr_handlers[] = {
15508                         &xattr_test_handler,
15509                 };
15510
15511 int
15512 main (void)
15513 {
15514
15515                 struct super_block sb __attribute__ ((unused));
15516
15517                 sb.s_xattr = xattr_handlers;
15518
15519   ;
15520   return 0;
15521 }
15522
15523 _ACEOF
15524
15525
15526         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15527         echo "obj-m := conftest.o" >build/Makefile
15528         modpost_flag=''
15529         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15530         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532   (eval $ac_try) 2>&5
15533   ac_status=$?
15534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; }; then
15541
15542                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15543 $as_echo "yes" >&6; }
15544
15545 cat >>confdefs.h <<\_ACEOF
15546 #define HAVE_CONST_XATTR_HANDLER 1
15547 _ACEOF
15548
15549
15550 else
15551   $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554                 { $as_echo "$as_me:$LINENO: result: no" >&5
15555 $as_echo "no" >&6; }
15556
15557
15558
15559 fi
15560
15561         rm -Rf build
15562
15563
15564
15565
15566         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
15567 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15568
15569
15570 cat confdefs.h - <<_ACEOF >conftest.c
15571 /* confdefs.h.  */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h.  */
15576
15577
15578                 #include <linux/xattr.h>
15579
15580 int
15581 main (void)
15582 {
15583
15584                 int (*get)(struct dentry *dentry, const char *name,
15585                     void *buffer, size_t size, int handler_flags) = NULL;
15586                 struct xattr_handler xops __attribute__ ((unused));
15587
15588                 xops.get = get;
15589
15590   ;
15591   return 0;
15592 }
15593
15594 _ACEOF
15595
15596
15597         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15598         echo "obj-m := conftest.o" >build/Makefile
15599         modpost_flag=''
15600         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15601         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603   (eval $ac_try) 2>&5
15604   ac_status=$?
15605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612
15613                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15614 $as_echo "yes" >&6; }
15615
15616 cat >>confdefs.h <<\_ACEOF
15617 #define HAVE_DENTRY_XATTR_GET 1
15618 _ACEOF
15619
15620
15621 else
15622   $as_echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15624
15625                 { $as_echo "$as_me:$LINENO: result: no" >&5
15626 $as_echo "no" >&6; }
15627
15628
15629
15630 fi
15631
15632         rm -Rf build
15633
15634
15635
15636
15637         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15638 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15639
15640
15641 cat confdefs.h - <<_ACEOF >conftest.c
15642 /* confdefs.h.  */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h.  */
15647
15648
15649                 #include <linux/xattr.h>
15650
15651 int
15652 main (void)
15653 {
15654
15655                 int (*set)(struct dentry *dentry, const char *name,
15656                     const void *buffer, size_t size, int flags,
15657                     int handler_flags) = NULL;
15658                 struct xattr_handler xops __attribute__ ((unused));
15659
15660                 xops.set = set;
15661
15662   ;
15663   return 0;
15664 }
15665
15666 _ACEOF
15667
15668
15669         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15670         echo "obj-m := conftest.o" >build/Makefile
15671         modpost_flag=''
15672         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15673         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680   (eval $ac_try) 2>&5
15681   ac_status=$?
15682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); }; }; then
15684
15685                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15686 $as_echo "yes" >&6; }
15687
15688 cat >>confdefs.h <<\_ACEOF
15689 #define HAVE_DENTRY_XATTR_SET 1
15690 _ACEOF
15691
15692
15693 else
15694   $as_echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697                 { $as_echo "$as_me:$LINENO: result: no" >&5
15698 $as_echo "no" >&6; }
15699
15700
15701
15702 fi
15703
15704         rm -Rf build
15705
15706
15707
15708
15709         { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15710 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15711
15712
15713
15714 cat confdefs.h - <<_ACEOF >conftest.c
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720
15721
15722                 #include <linux/fs.h>
15723
15724                 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
15725                 static struct super_operations sops __attribute__ ((unused)) = {
15726                         .show_options = show_options,
15727                 };
15728
15729 int
15730 main (void)
15731 {
15732
15733
15734   ;
15735   return 0;
15736 }
15737
15738 _ACEOF
15739
15740
15741         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15742         echo "obj-m := conftest.o" >build/Makefile
15743         modpost_flag=''
15744         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15745         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747   (eval $ac_try) 2>&5
15748   ac_status=$?
15749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752   (eval $ac_try) 2>&5
15753   ac_status=$?
15754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; }; then
15756
15757                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15758 $as_echo "yes" >&6; }
15759
15760 cat >>confdefs.h <<\_ACEOF
15761 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15762 _ACEOF
15763
15764
15765 else
15766   $as_echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769                 { $as_echo "$as_me:$LINENO: result: no" >&5
15770 $as_echo "no" >&6; }
15771
15772
15773
15774 fi
15775
15776         rm -Rf build
15777
15778
15779
15780
15781         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15782 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15783
15784
15785
15786 cat confdefs.h - <<_ACEOF >conftest.c
15787 /* confdefs.h.  */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h.  */
15792
15793
15794                 #include <linux/fs.h>
15795
15796 int
15797 main (void)
15798 {
15799
15800                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15801                 struct file_operations fops __attribute__ ((unused));
15802
15803                 fops.fsync = fsync;
15804
15805   ;
15806   return 0;
15807 }
15808
15809 _ACEOF
15810
15811
15812         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15813         echo "obj-m := conftest.o" >build/Makefile
15814         modpost_flag=''
15815         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15816         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818   (eval $ac_try) 2>&5
15819   ac_status=$?
15820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823   (eval $ac_try) 2>&5
15824   ac_status=$?
15825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); }; }; then
15827
15828                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15829 $as_echo "dentry" >&6; }
15830
15831 cat >>confdefs.h <<\_ACEOF
15832 #define HAVE_FSYNC_WITH_DENTRY 1
15833 _ACEOF
15834
15835
15836 else
15837   $as_echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15839
15840
15841
15842
15843 fi
15844
15845         rm -Rf build
15846
15847
15848
15849
15850
15851
15852 cat confdefs.h - <<_ACEOF >conftest.c
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858
15859
15860                 #include <linux/fs.h>
15861
15862 int
15863 main (void)
15864 {
15865
15866                 int (*fsync) (struct file *, int) = NULL;
15867                 struct file_operations fops __attribute__ ((unused));
15868
15869                 fops.fsync = fsync;
15870
15871   ;
15872   return 0;
15873 }
15874
15875 _ACEOF
15876
15877
15878         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15879         echo "obj-m := conftest.o" >build/Makefile
15880         modpost_flag=''
15881         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15882         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884   (eval $ac_try) 2>&5
15885   ac_status=$?
15886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889   (eval $ac_try) 2>&5
15890   ac_status=$?
15891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; }; then
15893
15894                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15895 $as_echo "no dentry" >&6; }
15896
15897 cat >>confdefs.h <<\_ACEOF
15898 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15899 _ACEOF
15900
15901
15902 else
15903   $as_echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906
15907
15908
15909 fi
15910
15911         rm -Rf build
15912
15913
15914
15915
15916
15917
15918 cat confdefs.h - <<_ACEOF >conftest.c
15919 /* confdefs.h.  */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h.  */
15924
15925
15926                 #include <linux/fs.h>
15927
15928 int
15929 main (void)
15930 {
15931
15932                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15933                 struct file_operations fops __attribute__ ((unused));
15934
15935                 fops.fsync = fsync;
15936
15937   ;
15938   return 0;
15939 }
15940
15941 _ACEOF
15942
15943
15944         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15945         echo "obj-m := conftest.o" >build/Makefile
15946         modpost_flag=''
15947         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15948         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950   (eval $ac_try) 2>&5
15951   ac_status=$?
15952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955   (eval $ac_try) 2>&5
15956   ac_status=$?
15957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; }; then
15959
15960                 { $as_echo "$as_me:$LINENO: result: range" >&5
15961 $as_echo "range" >&6; }
15962
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_FSYNC_RANGE 1
15965 _ACEOF
15966
15967
15968 else
15969   $as_echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15971
15972
15973
15974
15975 fi
15976
15977         rm -Rf build
15978
15979
15980
15981
15982
15983
15984 cat confdefs.h - <<_ACEOF >conftest.c
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990
15991
15992                 #include <linux/fs.h>
15993
15994 int
15995 main (void)
15996 {
15997
15998                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15999                 file_operations_no_const fops __attribute__ ((unused));
16000
16001                 fops.fsync = fsync;
16002
16003   ;
16004   return 0;
16005 }
16006
16007 _ACEOF
16008
16009
16010         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16011         echo "obj-m := conftest.o" >build/Makefile
16012         modpost_flag=''
16013         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16014         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016   (eval $ac_try) 2>&5
16017   ac_status=$?
16018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021   (eval $ac_try) 2>&5
16022   ac_status=$?
16023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; }; then
16025
16026                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
16027 $as_echo "dentry" >&6; }
16028
16029 cat >>confdefs.h <<\_ACEOF
16030 #define HAVE_FSYNC_WITH_DENTRY 1
16031 _ACEOF
16032
16033
16034 else
16035   $as_echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038
16039
16040
16041 fi
16042
16043         rm -Rf build
16044
16045
16046
16047
16048
16049
16050 cat confdefs.h - <<_ACEOF >conftest.c
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056
16057
16058                 #include <linux/fs.h>
16059
16060 int
16061 main (void)
16062 {
16063
16064                 int (*fsync) (struct file *, int) = NULL;
16065                 file_operations_no_const fops __attribute__ ((unused));
16066
16067                 fops.fsync = fsync;
16068
16069   ;
16070   return 0;
16071 }
16072
16073 _ACEOF
16074
16075
16076         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16077         echo "obj-m := conftest.o" >build/Makefile
16078         modpost_flag=''
16079         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16080         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082   (eval $ac_try) 2>&5
16083   ac_status=$?
16084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087   (eval $ac_try) 2>&5
16088   ac_status=$?
16089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); }; }; then
16091
16092                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
16093 $as_echo "no dentry" >&6; }
16094
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_FSYNC_WITHOUT_DENTRY 1
16097 _ACEOF
16098
16099
16100 else
16101   $as_echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104
16105
16106
16107 fi
16108
16109         rm -Rf build
16110
16111
16112
16113
16114
16115
16116 cat confdefs.h - <<_ACEOF >conftest.c
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122
16123
16124                 #include <linux/fs.h>
16125
16126 int
16127 main (void)
16128 {
16129
16130                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
16131                 file_operations_no_const fops __attribute__ ((unused));
16132
16133                 fops.fsync = fsync;
16134
16135   ;
16136   return 0;
16137 }
16138
16139 _ACEOF
16140
16141
16142         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16143         echo "obj-m := conftest.o" >build/Makefile
16144         modpost_flag=''
16145         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16146         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148   (eval $ac_try) 2>&5
16149   ac_status=$?
16150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157
16158                 { $as_echo "$as_me:$LINENO: result: range" >&5
16159 $as_echo "range" >&6; }
16160
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_FSYNC_RANGE 1
16163 _ACEOF
16164
16165
16166 else
16167   $as_echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170
16171
16172
16173 fi
16174
16175         rm -Rf build
16176
16177
16178
16179
16180
16181         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
16182 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
16183
16184
16185 cat confdefs.h - <<_ACEOF >conftest.c
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191
16192
16193                 #include <linux/fs.h>
16194                 void evict_inode (struct inode * t) { return; }
16195                 static struct super_operations sops __attribute__ ((unused)) = {
16196                         .evict_inode = evict_inode,
16197                 };
16198
16199 int
16200 main (void)
16201 {
16202
16203
16204   ;
16205   return 0;
16206 }
16207
16208 _ACEOF
16209
16210
16211         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16212         echo "obj-m := conftest.o" >build/Makefile
16213         modpost_flag=''
16214         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16215         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217   (eval $ac_try) 2>&5
16218   ac_status=$?
16219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222   (eval $ac_try) 2>&5
16223   ac_status=$?
16224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; }; then
16226
16227                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16228 $as_echo "yes" >&6; }
16229
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_EVICT_INODE 1
16232 _ACEOF
16233
16234
16235 else
16236   $as_echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239                 { $as_echo "$as_me:$LINENO: result: no" >&5
16240 $as_echo "no" >&6; }
16241
16242
16243
16244 fi
16245
16246         rm -Rf build
16247
16248
16249
16250
16251         { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
16252 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
16253
16254
16255 cat confdefs.h - <<_ACEOF >conftest.c
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16261
16262
16263                 #include <linux/fs.h>
16264
16265 int
16266 main (void)
16267 {
16268
16269                 int (*nr_cached_objects)(struct super_block *)
16270                         __attribute__ ((unused)) = NULL;
16271                 struct super_operations sops __attribute__ ((unused)) = {
16272                         .nr_cached_objects = nr_cached_objects,
16273                 };
16274
16275   ;
16276   return 0;
16277 }
16278
16279 _ACEOF
16280
16281
16282         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16283         echo "obj-m := conftest.o" >build/Makefile
16284         modpost_flag=''
16285         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16286         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288   (eval $ac_try) 2>&5
16289   ac_status=$?
16290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; }; then
16297
16298                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16299 $as_echo "yes" >&6; }
16300
16301 cat >>confdefs.h <<\_ACEOF
16302 #define HAVE_NR_CACHED_OBJECTS 1
16303 _ACEOF
16304
16305
16306 else
16307   $as_echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310                 { $as_echo "$as_me:$LINENO: result: no" >&5
16311 $as_echo "no" >&6; }
16312
16313
16314
16315 fi
16316
16317         rm -Rf build
16318
16319
16320
16321
16322         { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
16323 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
16324
16325
16326 cat confdefs.h - <<_ACEOF >conftest.c
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332
16333
16334                 #include <linux/fs.h>
16335
16336 int
16337 main (void)
16338 {
16339
16340                 void (*free_cached_objects)(struct super_block *, int)
16341                         __attribute__ ((unused)) = NULL;
16342                 struct super_operations sops __attribute__ ((unused)) = {
16343                         .free_cached_objects = free_cached_objects,
16344                 };
16345
16346   ;
16347   return 0;
16348 }
16349
16350 _ACEOF
16351
16352
16353         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16354         echo "obj-m := conftest.o" >build/Makefile
16355         modpost_flag=''
16356         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16357         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359   (eval $ac_try) 2>&5
16360   ac_status=$?
16361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364   (eval $ac_try) 2>&5
16365   ac_status=$?
16366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; }; then
16368
16369                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16370 $as_echo "yes" >&6; }
16371
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_FREE_CACHED_OBJECTS 1
16374 _ACEOF
16375
16376
16377 else
16378   $as_echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16380
16381                 { $as_echo "$as_me:$LINENO: result: no" >&5
16382 $as_echo "no" >&6; }
16383
16384
16385
16386 fi
16387
16388         rm -Rf build
16389
16390
16391
16392
16393
16394         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16395 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16396
16397
16398 cat confdefs.h - <<_ACEOF >conftest.c
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404
16405
16406                 #include <linux/fs.h>
16407
16408 int
16409 main (void)
16410 {
16411
16412                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16413                 struct file_operations fops __attribute__ ((unused)) = {
16414                         .fallocate = fallocate,
16415                 };
16416
16417   ;
16418   return 0;
16419 }
16420
16421 _ACEOF
16422
16423
16424         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16425         echo "obj-m := conftest.o" >build/Makefile
16426         modpost_flag=''
16427         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16428         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435   (eval $ac_try) 2>&5
16436   ac_status=$?
16437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); }; }; then
16439
16440                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16441 $as_echo "yes" >&6; }
16442
16443 cat >>confdefs.h <<\_ACEOF
16444 #define HAVE_FILE_FALLOCATE 1
16445 _ACEOF
16446
16447
16448 else
16449   $as_echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452                 { $as_echo "$as_me:$LINENO: result: no" >&5
16453 $as_echo "no" >&6; }
16454
16455
16456
16457 fi
16458
16459         rm -Rf build
16460
16461
16462
16463
16464         { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
16465 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16466
16467
16468 cat confdefs.h - <<_ACEOF >conftest.c
16469 /* confdefs.h.  */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h.  */
16474
16475
16476                 #include <linux/fs.h>
16477
16478 int
16479 main (void)
16480 {
16481
16482                 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16483                 struct inode_operations fops __attribute__ ((unused)) = {
16484                         .fallocate = fallocate,
16485                 };
16486
16487   ;
16488   return 0;
16489 }
16490
16491 _ACEOF
16492
16493
16494         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16495         echo "obj-m := conftest.o" >build/Makefile
16496         modpost_flag=''
16497         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16498         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500   (eval $ac_try) 2>&5
16501   ac_status=$?
16502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505   (eval $ac_try) 2>&5
16506   ac_status=$?
16507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); }; }; then
16509
16510                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16511 $as_echo "yes" >&6; }
16512
16513 cat >>confdefs.h <<\_ACEOF
16514 #define HAVE_INODE_FALLOCATE 1
16515 _ACEOF
16516
16517
16518 else
16519   $as_echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522                 { $as_echo "$as_me:$LINENO: result: no" >&5
16523 $as_echo "no" >&6; }
16524
16525
16526
16527 fi
16528
16529         rm -Rf build
16530
16531
16532
16533
16534         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16535 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16536
16537
16538 cat confdefs.h - <<_ACEOF >conftest.c
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544
16545
16546                 #include <linux/fs.h>
16547
16548 int
16549 main (void)
16550 {
16551
16552                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16553                 struct file_operations_no_const fops __attribute__ ((unused)) = {
16554                         .fallocate = fallocate,
16555                 };
16556
16557   ;
16558   return 0;
16559 }
16560
16561 _ACEOF
16562
16563
16564         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16565         echo "obj-m := conftest.o" >build/Makefile
16566         modpost_flag=''
16567         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16568         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570   (eval $ac_try) 2>&5
16571   ac_status=$?
16572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575   (eval $ac_try) 2>&5
16576   ac_status=$?
16577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); }; }; then
16579
16580                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16581 $as_echo "yes" >&6; }
16582
16583 cat >>confdefs.h <<\_ACEOF
16584 #define HAVE_FILE_FALLOCATE 1
16585 _ACEOF
16586
16587
16588 else
16589   $as_echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592                 { $as_echo "$as_me:$LINENO: result: no" >&5
16593 $as_echo "no" >&6; }
16594
16595
16596
16597 fi
16598
16599         rm -Rf build
16600
16601
16602
16603
16604
16605         { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
16606 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
16607
16608
16609 cat confdefs.h - <<_ACEOF >conftest.c
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615
16616
16617                 #include <linux/fs.h>
16618                 void truncate_range(struct inode *inode, loff_t start,
16619                                     loff_t end) { return; }
16620                 static struct inode_operations iops __attribute__ ((unused)) = {
16621                         .truncate_range = truncate_range,
16622                 };
16623
16624 int
16625 main (void)
16626 {
16627
16628
16629   ;
16630   return 0;
16631 }
16632
16633 _ACEOF
16634
16635
16636         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16637         echo "obj-m := conftest.o" >build/Makefile
16638         modpost_flag=''
16639         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16640         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642   (eval $ac_try) 2>&5
16643   ac_status=$?
16644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647   (eval $ac_try) 2>&5
16648   ac_status=$?
16649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; }; then
16651
16652                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16653 $as_echo "yes" >&6; }
16654
16655 cat >>confdefs.h <<\_ACEOF
16656 #define HAVE_INODE_TRUNCATE_RANGE 1
16657 _ACEOF
16658
16659
16660 else
16661   $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664                 { $as_echo "$as_me:$LINENO: result: no" >&5
16665 $as_echo "no" >&6; }
16666
16667
16668
16669 fi
16670
16671         rm -Rf build
16672
16673
16674
16675
16676         { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
16677 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
16678
16679
16680 cat confdefs.h - <<_ACEOF >conftest.c
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686
16687
16688                 #include <linux/fs.h>
16689
16690 int
16691 main (void)
16692 {
16693
16694                 int (*create) (struct inode *, struct dentry *, umode_t,
16695                     struct nameidata *) = NULL;
16696                 struct inode_operations iops __attribute__ ((unused)) = {
16697                         .create = create,
16698                 };
16699
16700   ;
16701   return 0;
16702 }
16703
16704 _ACEOF
16705
16706
16707         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16708         echo "obj-m := conftest.o" >build/Makefile
16709         modpost_flag=''
16710         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16711         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713   (eval $ac_try) 2>&5
16714   ac_status=$?
16715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718   (eval $ac_try) 2>&5
16719   ac_status=$?
16720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }; }; then
16722
16723                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16724 $as_echo "yes" >&6; }
16725
16726 cat >>confdefs.h <<\_ACEOF
16727 #define HAVE_CREATE_UMODE_T 1
16728 _ACEOF
16729
16730
16731 else
16732   $as_echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16734
16735                 { $as_echo "$as_me:$LINENO: result: no" >&5
16736 $as_echo "no" >&6; }
16737
16738
16739
16740 fi
16741
16742         rm -Rf build
16743
16744
16745
16746
16747         { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
16748 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
16749
16750
16751 cat confdefs.h - <<_ACEOF >conftest.c
16752 /* confdefs.h.  */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h.  */
16757
16758
16759                 #include <linux/dcache.h>
16760                 struct vfsmount *d_automount(struct path *p) { return NULL; }
16761                 struct dentry_operations dops __attribute__ ((unused)) = {
16762                         .d_automount = d_automount,
16763                 };
16764
16765 int
16766 main (void)
16767 {
16768
16769
16770   ;
16771   return 0;
16772 }
16773
16774 _ACEOF
16775
16776
16777         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16778         echo "obj-m := conftest.o" >build/Makefile
16779         modpost_flag=''
16780         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16781         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783   (eval $ac_try) 2>&5
16784   ac_status=$?
16785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788   (eval $ac_try) 2>&5
16789   ac_status=$?
16790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792
16793                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16794 $as_echo "yes" >&6; }
16795
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_AUTOMOUNT 1
16798 _ACEOF
16799
16800
16801 else
16802   $as_echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805                 { $as_echo "$as_me:$LINENO: result: no" >&5
16806 $as_echo "no" >&6; }
16807
16808
16809
16810 fi
16811
16812         rm -Rf build
16813
16814
16815
16816
16817         { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
16818 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
16819
16820
16821 cat confdefs.h - <<_ACEOF >conftest.c
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827
16828
16829                 #include <linux/exportfs.h>
16830                 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
16831                               struct inode *parent) { return 0; }
16832                 static struct export_operations eops __attribute__ ((unused))={
16833                         .encode_fh = encode_fh,
16834                 };
16835
16836 int
16837 main (void)
16838 {
16839
16840
16841   ;
16842   return 0;
16843 }
16844
16845 _ACEOF
16846
16847
16848         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16849         echo "obj-m := conftest.o" >build/Makefile
16850         modpost_flag=''
16851         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16852         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863
16864                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16865 $as_echo "yes" >&6; }
16866
16867 cat >>confdefs.h <<\_ACEOF
16868 #define HAVE_ENCODE_FH_WITH_INODE 1
16869 _ACEOF
16870
16871
16872 else
16873   $as_echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876                 { $as_echo "$as_me:$LINENO: result: no" >&5
16877 $as_echo "no" >&6; }
16878
16879
16880
16881 fi
16882
16883         rm -Rf build
16884
16885
16886
16887         { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
16888 $as_echo_n "checking whether clear_inode() is available... " >&6; }
16889
16890
16891
16892 cat confdefs.h - <<_ACEOF >conftest.c
16893 /* confdefs.h.  */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h.  */
16898
16899
16900                 #include <linux/fs.h>
16901
16902 int
16903 main (void)
16904 {
16905
16906                 clear_inode(NULL);
16907
16908   ;
16909   return 0;
16910 }
16911
16912 _ACEOF
16913
16914
16915         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16916         echo "obj-m := conftest.o" >build/Makefile
16917         modpost_flag=''
16918         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16919         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921   (eval $ac_try) 2>&5
16922   ac_status=$?
16923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926   (eval $ac_try) 2>&5
16927   ac_status=$?
16928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; }; then
16930   rc=0
16931 else
16932   $as_echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934  rc=1
16935
16936
16937 fi
16938
16939         rm -Rf build
16940
16941
16942         if test $rc -ne 0; then :
16943
16944                 { $as_echo "$as_me:$LINENO: result: no" >&5
16945 $as_echo "no" >&6; }
16946
16947         else
16948                 if test "x$enable_linux_builtin" != xyes; then
16949
16950         grep -q -E '[[:space:]]clear_inode[[:space:]]' \
16951                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16952         rc=$?
16953         if test $rc -ne 0; then
16954                 export=0
16955                 for file in fs/inode.c; do
16956                         grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
16957                                 "$LINUX/$file" 2>/dev/null
16958                         rc=$?
16959                         if test $rc -eq 0; then
16960                                 export=1
16961                                 break;
16962                         fi
16963                 done
16964                 if test $export -eq 0; then :
16965                         rc=1
16966                 else :
16967                         rc=0
16968                 fi
16969         else :
16970                 rc=0
16971         fi
16972
16973                 fi
16974                 if test $rc -ne 0; then :
16975
16976                 { $as_echo "$as_me:$LINENO: result: no" >&5
16977 $as_echo "no" >&6; }
16978
16979                 else :
16980
16981                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16982 $as_echo "yes" >&6; }
16983
16984 cat >>confdefs.h <<\_ACEOF
16985 #define HAVE_CLEAR_INODE 1
16986 _ACEOF
16987
16988
16989                 fi
16990         fi
16991
16992
16993         { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
16994 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
16995
16996
16997
16998 cat confdefs.h - <<_ACEOF >conftest.c
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004
17005
17006                 #include <linux/fs.h>
17007
17008 int
17009 main (void)
17010 {
17011
17012                 insert_inode_locked(NULL);
17013
17014   ;
17015   return 0;
17016 }
17017
17018 _ACEOF
17019
17020
17021         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17022         echo "obj-m := conftest.o" >build/Makefile
17023         modpost_flag=''
17024         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17025         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027   (eval $ac_try) 2>&5
17028   ac_status=$?
17029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032   (eval $ac_try) 2>&5
17033   ac_status=$?
17034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; }; then
17036   rc=0
17037 else
17038   $as_echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040  rc=1
17041
17042
17043 fi
17044
17045         rm -Rf build
17046
17047
17048         if test $rc -ne 0; then :
17049
17050                 { $as_echo "$as_me:$LINENO: result: no" >&5
17051 $as_echo "no" >&6; }
17052
17053         else
17054                 if test "x$enable_linux_builtin" != xyes; then
17055
17056         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
17057                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17058         rc=$?
17059         if test $rc -ne 0; then
17060                 export=0
17061                 for file in fs/inode.c; do
17062                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
17063                                 "$LINUX/$file" 2>/dev/null
17064                         rc=$?
17065                         if test $rc -eq 0; then
17066                                 export=1
17067                                 break;
17068                         fi
17069                 done
17070                 if test $export -eq 0; then :
17071                         rc=1
17072                 else :
17073                         rc=0
17074                 fi
17075         else :
17076                 rc=0
17077         fi
17078
17079                 fi
17080                 if test $rc -ne 0; then :
17081
17082                 { $as_echo "$as_me:$LINENO: result: no" >&5
17083 $as_echo "no" >&6; }
17084
17085                 else :
17086
17087                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17088 $as_echo "yes" >&6; }
17089
17090 cat >>confdefs.h <<\_ACEOF
17091 #define HAVE_INSERT_INODE_LOCKED 1
17092 _ACEOF
17093
17094
17095                 fi
17096         fi
17097
17098
17099         { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
17100 $as_echo_n "checking whether d_make_root() is available... " >&6; }
17101
17102
17103
17104 cat confdefs.h - <<_ACEOF >conftest.c
17105 /* confdefs.h.  */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h.  */
17110
17111
17112                 #include <linux/dcache.h>
17113
17114 int
17115 main (void)
17116 {
17117
17118                 d_make_root(NULL);
17119
17120   ;
17121   return 0;
17122 }
17123
17124 _ACEOF
17125
17126
17127         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17128         echo "obj-m := conftest.o" >build/Makefile
17129         modpost_flag=''
17130         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17131         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133   (eval $ac_try) 2>&5
17134   ac_status=$?
17135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138   (eval $ac_try) 2>&5
17139   ac_status=$?
17140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); }; }; then
17142   rc=0
17143 else
17144   $as_echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146  rc=1
17147
17148
17149 fi
17150
17151         rm -Rf build
17152
17153
17154         if test $rc -ne 0; then :
17155
17156                 { $as_echo "$as_me:$LINENO: result: no" >&5
17157 $as_echo "no" >&6; }
17158
17159         else
17160                 if test "x$enable_linux_builtin" != xyes; then
17161
17162         grep -q -E '[[:space:]]d_make_root[[:space:]]' \
17163                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17164         rc=$?
17165         if test $rc -ne 0; then
17166                 export=0
17167                 for file in fs/dcache.c; do
17168                         grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
17169                                 "$LINUX/$file" 2>/dev/null
17170                         rc=$?
17171                         if test $rc -eq 0; then
17172                                 export=1
17173                                 break;
17174                         fi
17175                 done
17176                 if test $export -eq 0; then :
17177                         rc=1
17178                 else :
17179                         rc=0
17180                 fi
17181         else :
17182                 rc=0
17183         fi
17184
17185                 fi
17186                 if test $rc -ne 0; then :
17187
17188                 { $as_echo "$as_me:$LINENO: result: no" >&5
17189 $as_echo "no" >&6; }
17190
17191                 else :
17192
17193                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17194 $as_echo "yes" >&6; }
17195
17196 cat >>confdefs.h <<\_ACEOF
17197 #define HAVE_D_MAKE_ROOT 1
17198 _ACEOF
17199
17200
17201                 fi
17202         fi
17203
17204
17205         { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
17206 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
17207
17208
17209
17210 cat confdefs.h - <<_ACEOF >conftest.c
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217
17218                 #include <linux/dcache.h>
17219
17220 int
17221 main (void)
17222 {
17223
17224                 d_obtain_alias(NULL);
17225
17226   ;
17227   return 0;
17228 }
17229
17230 _ACEOF
17231
17232
17233         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17234         echo "obj-m := conftest.o" >build/Makefile
17235         modpost_flag=''
17236         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17237         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239   (eval $ac_try) 2>&5
17240   ac_status=$?
17241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244   (eval $ac_try) 2>&5
17245   ac_status=$?
17246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; }; then
17248   rc=0
17249 else
17250   $as_echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17252  rc=1
17253
17254
17255 fi
17256
17257         rm -Rf build
17258
17259
17260         if test $rc -ne 0; then :
17261
17262                 { $as_echo "$as_me:$LINENO: result: no" >&5
17263 $as_echo "no" >&6; }
17264
17265         else
17266                 if test "x$enable_linux_builtin" != xyes; then
17267
17268         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
17269                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17270         rc=$?
17271         if test $rc -ne 0; then
17272                 export=0
17273                 for file in fs/dcache.c; do
17274                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
17275                                 "$LINUX/$file" 2>/dev/null
17276                         rc=$?
17277                         if test $rc -eq 0; then
17278                                 export=1
17279                                 break;
17280                         fi
17281                 done
17282                 if test $export -eq 0; then :
17283                         rc=1
17284                 else :
17285                         rc=0
17286                 fi
17287         else :
17288                 rc=0
17289         fi
17290
17291                 fi
17292                 if test $rc -ne 0; then :
17293
17294                 { $as_echo "$as_me:$LINENO: result: no" >&5
17295 $as_echo "no" >&6; }
17296
17297                 else :
17298
17299                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17300 $as_echo "yes" >&6; }
17301
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_D_OBTAIN_ALIAS 1
17304 _ACEOF
17305
17306
17307                 fi
17308         fi
17309
17310
17311         { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
17312 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
17313
17314
17315
17316 cat confdefs.h - <<_ACEOF >conftest.c
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322
17323
17324                 #include <linux/fs.h>
17325
17326 int
17327 main (void)
17328 {
17329
17330                 check_disk_size_change(NULL, NULL);
17331
17332   ;
17333   return 0;
17334 }
17335
17336 _ACEOF
17337
17338
17339         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17340         echo "obj-m := conftest.o" >build/Makefile
17341         modpost_flag=''
17342         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17343         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345   (eval $ac_try) 2>&5
17346   ac_status=$?
17347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350   (eval $ac_try) 2>&5
17351   ac_status=$?
17352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   rc=0
17355 else
17356   $as_echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358  rc=1
17359
17360
17361 fi
17362
17363         rm -Rf build
17364
17365
17366         if test $rc -ne 0; then :
17367
17368                 { $as_echo "$as_me:$LINENO: result: no" >&5
17369 $as_echo "no" >&6; }
17370
17371         else
17372                 if test "x$enable_linux_builtin" != xyes; then
17373
17374         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
17375                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17376         rc=$?
17377         if test $rc -ne 0; then
17378                 export=0
17379                 for file in fs/block_dev.c; do
17380                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
17381                                 "$LINUX/$file" 2>/dev/null
17382                         rc=$?
17383                         if test $rc -eq 0; then
17384                                 export=1
17385                                 break;
17386                         fi
17387                 done
17388                 if test $export -eq 0; then :
17389                         rc=1
17390                 else :
17391                         rc=0
17392                 fi
17393         else :
17394                 rc=0
17395         fi
17396
17397                 fi
17398                 if test $rc -ne 0; then :
17399
17400                 { $as_echo "$as_me:$LINENO: result: no" >&5
17401 $as_echo "no" >&6; }
17402
17403                 else :
17404
17405                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17406 $as_echo "yes" >&6; }
17407
17408 cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
17410 _ACEOF
17411
17412
17413                 fi
17414         fi
17415
17416
17417         { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
17418 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
17419
17420
17421
17422 cat confdefs.h - <<_ACEOF >conftest.c
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428
17429
17430                 #include <linux/mm.h>
17431
17432 int
17433 main (void)
17434 {
17435
17436                 truncate_setsize(NULL, 0);
17437
17438   ;
17439   return 0;
17440 }
17441
17442 _ACEOF
17443
17444
17445         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17446         echo "obj-m := conftest.o" >build/Makefile
17447         modpost_flag=''
17448         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17449         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451   (eval $ac_try) 2>&5
17452   ac_status=$?
17453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; }; then
17460   rc=0
17461 else
17462   $as_echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464  rc=1
17465
17466
17467 fi
17468
17469         rm -Rf build
17470
17471
17472         if test $rc -ne 0; then :
17473
17474                 { $as_echo "$as_me:$LINENO: result: no" >&5
17475 $as_echo "no" >&6; }
17476
17477         else
17478                 if test "x$enable_linux_builtin" != xyes; then
17479
17480         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
17481                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17482         rc=$?
17483         if test $rc -ne 0; then
17484                 export=0
17485                 for file in mm/truncate.c; do
17486                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
17487                                 "$LINUX/$file" 2>/dev/null
17488                         rc=$?
17489                         if test $rc -eq 0; then
17490                                 export=1
17491                                 break;
17492                         fi
17493                 done
17494                 if test $export -eq 0; then :
17495                         rc=1
17496                 else :
17497                         rc=0
17498                 fi
17499         else :
17500                 rc=0
17501         fi
17502
17503                 fi
17504                 if test $rc -ne 0; then :
17505
17506                 { $as_echo "$as_me:$LINENO: result: no" >&5
17507 $as_echo "no" >&6; }
17508
17509                 else :
17510
17511                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17512 $as_echo "yes" >&6; }
17513
17514 cat >>confdefs.h <<\_ACEOF
17515 #define HAVE_TRUNCATE_SETSIZE 1
17516 _ACEOF
17517
17518
17519                 fi
17520         fi
17521
17522
17523
17524         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
17525 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
17526         tmp_flags="$EXTRA_KCFLAGS"
17527         EXTRA_KCFLAGS="-Werror"
17528
17529
17530 cat confdefs.h - <<_ACEOF >conftest.c
17531 /* confdefs.h.  */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h.  */
17536
17537
17538                 #include <linux/security.h>
17539
17540 int
17541 main (void)
17542 {
17543
17544                 struct inode *ip __attribute__ ((unused)) = NULL;
17545                 struct inode *dip __attribute__ ((unused)) = NULL;
17546                 const struct qstr *str __attribute__ ((unused)) = NULL;
17547                 char *name __attribute__ ((unused)) = NULL;
17548                 void *value __attribute__ ((unused)) = NULL;
17549                 size_t len __attribute__ ((unused)) = 0;
17550
17551                 security_inode_init_security(ip, dip, str, &name, &value, &len);
17552
17553   ;
17554   return 0;
17555 }
17556
17557 _ACEOF
17558
17559
17560         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17561         echo "obj-m := conftest.o" >build/Makefile
17562         modpost_flag=''
17563         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17564         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571   (eval $ac_try) 2>&5
17572   ac_status=$?
17573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); }; }; then
17575
17576                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17577 $as_echo "yes" >&6; }
17578
17579 cat >>confdefs.h <<\_ACEOF
17580 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
17581 _ACEOF
17582
17583
17584 else
17585   $as_echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588                 { $as_echo "$as_me:$LINENO: result: no" >&5
17589 $as_echo "no" >&6; }
17590
17591
17592
17593 fi
17594
17595         rm -Rf build
17596
17597
17598         EXTRA_KCFLAGS="$tmp_flags"
17599
17600
17601         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
17602 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
17603         tmp_flags="$EXTRA_KCFLAGS"
17604         EXTRA_KCFLAGS="-Werror"
17605
17606
17607 cat confdefs.h - <<_ACEOF >conftest.c
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613
17614
17615                 #include <linux/security.h>
17616
17617 int
17618 main (void)
17619 {
17620
17621                 struct inode *ip __attribute__ ((unused)) = NULL;
17622                 struct inode *dip __attribute__ ((unused)) = NULL;
17623                 const struct qstr *str __attribute__ ((unused)) = NULL;
17624                 initxattrs func __attribute__ ((unused)) = NULL;
17625
17626                 security_inode_init_security(ip, dip, str, func, NULL);
17627
17628   ;
17629   return 0;
17630 }
17631
17632 _ACEOF
17633
17634
17635         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17636         echo "obj-m := conftest.o" >build/Makefile
17637         modpost_flag=''
17638         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17639         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641   (eval $ac_try) 2>&5
17642   ac_status=$?
17643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646   (eval $ac_try) 2>&5
17647   ac_status=$?
17648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; }; then
17650
17651                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17652 $as_echo "yes" >&6; }
17653
17654 cat >>confdefs.h <<\_ACEOF
17655 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
17656 _ACEOF
17657
17658
17659 else
17660   $as_echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663                 { $as_echo "$as_me:$LINENO: result: no" >&5
17664 $as_echo "no" >&6; }
17665
17666
17667
17668 fi
17669
17670         rm -Rf build
17671
17672
17673         EXTRA_KCFLAGS="$tmp_flags"
17674
17675         { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
17676 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
17677
17678
17679
17680 cat confdefs.h - <<_ACEOF >conftest.c
17681 /* confdefs.h.  */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h.  */
17686
17687
17688                 #include <linux/fs.h>
17689
17690 int
17691 main (void)
17692 {
17693
17694                 mount_nodev(NULL, 0, NULL, NULL);
17695
17696   ;
17697   return 0;
17698 }
17699
17700 _ACEOF
17701
17702
17703         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17704         echo "obj-m := conftest.o" >build/Makefile
17705         modpost_flag=''
17706         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17707         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709   (eval $ac_try) 2>&5
17710   ac_status=$?
17711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714   (eval $ac_try) 2>&5
17715   ac_status=$?
17716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); }; }; then
17718   rc=0
17719 else
17720   $as_echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722  rc=1
17723
17724
17725 fi
17726
17727         rm -Rf build
17728
17729
17730         if test $rc -ne 0; then :
17731
17732                 { $as_echo "$as_me:$LINENO: result: no" >&5
17733 $as_echo "no" >&6; }
17734
17735         else
17736                 if test "x$enable_linux_builtin" != xyes; then
17737
17738         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
17739                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17740         rc=$?
17741         if test $rc -ne 0; then
17742                 export=0
17743                 for file in fs/super.c; do
17744                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
17745                                 "$LINUX/$file" 2>/dev/null
17746                         rc=$?
17747                         if test $rc -eq 0; then
17748                                 export=1
17749                                 break;
17750                         fi
17751                 done
17752                 if test $export -eq 0; then :
17753                         rc=1
17754                 else :
17755                         rc=0
17756                 fi
17757         else :
17758                 rc=0
17759         fi
17760
17761                 fi
17762                 if test $rc -ne 0; then :
17763
17764                 { $as_echo "$as_me:$LINENO: result: no" >&5
17765 $as_echo "no" >&6; }
17766
17767                 else :
17768
17769                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17770 $as_echo "yes" >&6; }
17771
17772 cat >>confdefs.h <<\_ACEOF
17773 #define HAVE_MOUNT_NODEV 1
17774 _ACEOF
17775
17776
17777                 fi
17778         fi
17779
17780
17781
17782         { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
17783 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
17784
17785
17786 cat confdefs.h - <<_ACEOF >conftest.c
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792
17793
17794                 #include <linux/fs.h>
17795
17796 int
17797 main (void)
17798 {
17799
17800                 int (*shrink)(struct shrinker *, struct shrink_control *sc)
17801                         __attribute__ ((unused)) = NULL;
17802                 struct super_block sb __attribute__ ((unused)) = {
17803                         .s_shrink.shrink = shrink,
17804                         .s_shrink.seeks = DEFAULT_SEEKS,
17805                         .s_shrink.batch = 0,
17806                 };
17807
17808   ;
17809   return 0;
17810 }
17811
17812 _ACEOF
17813
17814
17815         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17816         echo "obj-m := conftest.o" >build/Makefile
17817         modpost_flag=''
17818         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17819         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821   (eval $ac_try) 2>&5
17822   ac_status=$?
17823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826   (eval $ac_try) 2>&5
17827   ac_status=$?
17828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; }; then
17830
17831                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17832 $as_echo "yes" >&6; }
17833
17834 cat >>confdefs.h <<\_ACEOF
17835 #define HAVE_SHRINK 1
17836 _ACEOF
17837
17838
17839
17840 else
17841   $as_echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844                 { $as_echo "$as_me:$LINENO: result: no" >&5
17845 $as_echo "no" >&6; }
17846
17847
17848
17849 fi
17850
17851         rm -Rf build
17852
17853
17854
17855
17856         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
17857 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
17858
17859
17860 cat confdefs.h - <<_ACEOF >conftest.c
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866
17867
17868                 #include <linux/fs.h>
17869
17870 int
17871 main (void)
17872 {
17873
17874                 struct super_block sb __attribute__ ((unused));
17875                 sb.s_bdi = NULL;
17876
17877   ;
17878   return 0;
17879 }
17880
17881 _ACEOF
17882
17883
17884         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17885         echo "obj-m := conftest.o" >build/Makefile
17886         modpost_flag=''
17887         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17888         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899
17900                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17901 $as_echo "yes" >&6; }
17902
17903 cat >>confdefs.h <<\_ACEOF
17904 #define HAVE_BDI 1
17905 _ACEOF
17906
17907
17908 else
17909   $as_echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912                 { $as_echo "$as_me:$LINENO: result: no" >&5
17913 $as_echo "no" >&6; }
17914
17915
17916
17917 fi
17918
17919         rm -Rf build
17920
17921
17922
17923         { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() is available" >&5
17924 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
17925
17926
17927
17928 cat confdefs.h - <<_ACEOF >conftest.c
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934
17935
17936                 #include <linux/backing-dev.h>
17937
17938 int
17939 main (void)
17940 {
17941
17942                 bdi_setup_and_register(NULL, NULL, 0);
17943
17944   ;
17945   return 0;
17946 }
17947
17948 _ACEOF
17949
17950
17951         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17952         echo "obj-m := conftest.o" >build/Makefile
17953         modpost_flag=''
17954         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17955         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957   (eval $ac_try) 2>&5
17958   ac_status=$?
17959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962   (eval $ac_try) 2>&5
17963   ac_status=$?
17964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; }; then
17966   rc=0
17967 else
17968   $as_echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970  rc=1
17971
17972
17973 fi
17974
17975         rm -Rf build
17976
17977
17978         if test $rc -ne 0; then :
17979
17980                 { $as_echo "$as_me:$LINENO: result: no" >&5
17981 $as_echo "no" >&6; }
17982
17983         else
17984                 if test "x$enable_linux_builtin" != xyes; then
17985
17986         grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
17987                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17988         rc=$?
17989         if test $rc -ne 0; then
17990                 export=0
17991                 for file in mm/backing-dev.c; do
17992                         grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
17993                                 "$LINUX/$file" 2>/dev/null
17994                         rc=$?
17995                         if test $rc -eq 0; then
17996                                 export=1
17997                                 break;
17998                         fi
17999                 done
18000                 if test $export -eq 0; then :
18001                         rc=1
18002                 else :
18003                         rc=0
18004                 fi
18005         else :
18006                 rc=0
18007         fi
18008
18009                 fi
18010                 if test $rc -ne 0; then :
18011
18012                 { $as_echo "$as_me:$LINENO: result: no" >&5
18013 $as_echo "no" >&6; }
18014
18015                 else :
18016
18017                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18018 $as_echo "yes" >&6; }
18019
18020 cat >>confdefs.h <<\_ACEOF
18021 #define HAVE_BDI_SETUP_AND_REGISTER 1
18022 _ACEOF
18023
18024
18025                 fi
18026         fi
18027
18028
18029
18030         { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
18031 $as_echo_n "checking whether set_nlink() is available... " >&6; }
18032
18033
18034 cat confdefs.h - <<_ACEOF >conftest.c
18035 /* confdefs.h.  */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h.  */
18040
18041
18042                 #include <linux/fs.h>
18043
18044 int
18045 main (void)
18046 {
18047
18048                 struct inode node;
18049                 unsigned int link = 0;
18050                 (void) set_nlink(&node, link);
18051
18052   ;
18053   return 0;
18054 }
18055
18056 _ACEOF
18057
18058
18059         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18060         echo "obj-m := conftest.o" >build/Makefile
18061         modpost_flag=''
18062         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18063         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065   (eval $ac_try) 2>&5
18066   ac_status=$?
18067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; }; then
18074
18075                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18076 $as_echo "yes" >&6; }
18077
18078 cat >>confdefs.h <<\_ACEOF
18079 #define HAVE_SET_NLINK 1
18080 _ACEOF
18081
18082
18083 else
18084   $as_echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087                 { $as_echo "$as_me:$LINENO: result: no" >&5
18088 $as_echo "no" >&6; }
18089
18090
18091
18092 fi
18093
18094         rm -Rf build
18095
18096
18097
18098
18099         if test "$LINUX_OBJ" != "$LINUX"; then
18100
18101                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18102
18103 fi
18104
18105
18106
18107
18108                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
18109         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18110         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18111
18112
18113  ;;
18114                 user)
18115
18116
18117 # Check whether --with-udevdir was given.
18118 if test "${with_udevdir+set}" = set; then
18119   withval=$with_udevdir; udevdir=$withval
18120 else
18121   udevdir='${exec_prefix}/lib/udev'
18122 fi
18123
18124
18125
18126 # Check whether --with-udevruledir was given.
18127 if test "${with_udevruledir+set}" = set; then
18128   withval=$with_udevruledir; udevruledir=$withval
18129 else
18130   udevruledir='${udevdir}/rules.d'
18131 fi
18132
18133
18134
18135
18136
18137
18138         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18139 $as_echo_n "checking for target asm dir... " >&6; }
18140         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
18141
18142         case $TARGET_ARCH in
18143         i386|x86_64)
18144                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
18145                 ;;
18146         *)
18147                 TARGET_ASM_DIR=asm-generic
18148                 ;;
18149         esac
18150
18151
18152         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18153 $as_echo "$TARGET_ASM_DIR" >&6; }
18154
18155
18156         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18157 $as_echo_n "checking for ioctl()... " >&6; }
18158         cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 #include <unistd.h>
18165
18166 _ACEOF
18167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18168   $EGREP "ioctl" >/dev/null 2>&1; then
18169   is_unistd=yes
18170 else
18171   is_unistd=no
18172 fi
18173 rm -f conftest*
18174
18175         cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181 #include <sys/ioctl.h>
18182
18183 _ACEOF
18184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18185   $EGREP "ioctl" >/dev/null 2>&1; then
18186   is_sys_ioctl=yes
18187 else
18188   is_sys_ioctl=no
18189 fi
18190 rm -f conftest*
18191
18192         cat >conftest.$ac_ext <<_ACEOF
18193 /* confdefs.h.  */
18194 _ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h.  */
18198 #include <stropts.h>
18199
18200 _ACEOF
18201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18202   $EGREP "ioctl" >/dev/null 2>&1; then
18203   is_stropts=yes
18204 else
18205   is_stropts=no
18206 fi
18207 rm -f conftest*
18208
18209
18210         if test $is_unistd = yes; then
18211                 result=unistd.h
18212
18213 cat >>confdefs.h <<\_ACEOF
18214 #define HAVE_IOCTL_IN_UNISTD_H 1
18215 _ACEOF
18216
18217         else
18218
18219                 if test $is_sys_ioctl = yes; then
18220                         result=sys/ioctl.h
18221
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18224 _ACEOF
18225
18226                 elif test $is_stropts = yes; then
18227
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_IOCTL_IN_STROPTS_H 1
18230 _ACEOF
18231
18232                 else
18233                         result=no
18234                 fi
18235         fi
18236
18237         if test $result = no; then
18238                 { $as_echo "$as_me:$LINENO: result: no" >&5
18239 $as_echo "no" >&6; }
18240                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18241 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18242    { (exit 1); exit 1; }; }
18243         else
18244                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18245 $as_echo "yes" >&6; }
18246         fi
18247
18248
18249         ZLIB=
18250
18251         if test "${ac_cv_header_zlib_h+set}" = set; then
18252   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18253 $as_echo_n "checking for zlib.h... " >&6; }
18254 if test "${ac_cv_header_zlib_h+set}" = set; then
18255   $as_echo_n "(cached) " >&6
18256 fi
18257 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18258 $as_echo "$ac_cv_header_zlib_h" >&6; }
18259 else
18260   # Is the header compilable?
18261 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18262 $as_echo_n "checking zlib.h usability... " >&6; }
18263 cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h.  */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h.  */
18269 $ac_includes_default
18270 #include <zlib.h>
18271 _ACEOF
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
18290   ac_header_compiler=yes
18291 else
18292   $as_echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18294
18295         ac_header_compiler=no
18296 fi
18297
18298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18300 $as_echo "$ac_header_compiler" >&6; }
18301
18302 # Is the header present?
18303 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18304 $as_echo_n "checking zlib.h presence... " >&6; }
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h.  */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h.  */
18311 #include <zlib.h>
18312 _ACEOF
18313 if { (ac_try="$ac_cpp conftest.$ac_ext"
18314 case "(($ac_try" in
18315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316   *) ac_try_echo=$ac_try;;
18317 esac
18318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18319 $as_echo "$ac_try_echo") >&5
18320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18321   ac_status=$?
18322   grep -v '^ *+' conftest.er1 >conftest.err
18323   rm -f conftest.er1
18324   cat conftest.err >&5
18325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } >/dev/null && {
18327          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18328          test ! -s conftest.err
18329        }; then
18330   ac_header_preproc=yes
18331 else
18332   $as_echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335   ac_header_preproc=no
18336 fi
18337
18338 rm -f conftest.err conftest.$ac_ext
18339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18340 $as_echo "$ac_header_preproc" >&6; }
18341
18342 # So?  What about this header?
18343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18344   yes:no: )
18345     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18346 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18347     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18348 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18349     ac_header_preproc=yes
18350     ;;
18351   no:yes:* )
18352     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18353 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18354     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
18355 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
18356     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18357 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18358     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
18359 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18360     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18361 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18362     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18363 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18364
18365     ;;
18366 esac
18367 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18368 $as_echo_n "checking for zlib.h... " >&6; }
18369 if test "${ac_cv_header_zlib_h+set}" = set; then
18370   $as_echo_n "(cached) " >&6
18371 else
18372   ac_cv_header_zlib_h=$ac_header_preproc
18373 fi
18374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18375 $as_echo "$ac_cv_header_zlib_h" >&6; }
18376
18377 fi
18378 if test "x$ac_cv_header_zlib_h" = x""yes; then
18379   :
18380 else
18381   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18383 { { $as_echo "$as_me:$LINENO: error:
18384         *** zlib.h missing, zlib-devel package required
18385 See \`config.log' for more details." >&5
18386 $as_echo "$as_me: error:
18387         *** zlib.h missing, zlib-devel package required
18388 See \`config.log' for more details." >&2;}
18389    { (exit 1); exit 1; }; }; }
18390 fi
18391
18392
18393
18394
18395 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18396 $as_echo_n "checking for compress2 in -lz... " >&6; }
18397 if test "${ac_cv_lib_z_compress2+set}" = set; then
18398   $as_echo_n "(cached) " >&6
18399 else
18400   ac_check_lib_save_LIBS=$LIBS
18401 LIBS="-lz  $LIBS"
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408
18409 /* Override any GCC internal prototype to avoid an error.
18410    Use char because int might match the return type of a GCC
18411    builtin and then its argument prototype would still apply.  */
18412 #ifdef __cplusplus
18413 extern "C"
18414 #endif
18415 char compress2 ();
18416 int
18417 main ()
18418 {
18419 return compress2 ();
18420   ;
18421   return 0;
18422 }
18423 _ACEOF
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (ac_try="$ac_link"
18426 case "(($ac_try" in
18427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428   *) ac_try_echo=$ac_try;;
18429 esac
18430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18431 $as_echo "$ac_try_echo") >&5
18432   (eval "$ac_link") 2>conftest.er1
18433   ac_status=$?
18434   grep -v '^ *+' conftest.er1 >conftest.err
18435   rm -f conftest.er1
18436   cat conftest.err >&5
18437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); } && {
18439          test -z "$ac_c_werror_flag" ||
18440          test ! -s conftest.err
18441        } && test -s conftest$ac_exeext && {
18442          test "$cross_compiling" = yes ||
18443          $as_test_x conftest$ac_exeext
18444        }; then
18445   ac_cv_lib_z_compress2=yes
18446 else
18447   $as_echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450         ac_cv_lib_z_compress2=no
18451 fi
18452
18453 rm -rf conftest.dSYM
18454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18455       conftest$ac_exeext conftest.$ac_ext
18456 LIBS=$ac_check_lib_save_LIBS
18457 fi
18458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18459 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18460 if test "x$ac_cv_lib_z_compress2" = x""yes; then
18461   cat >>confdefs.h <<_ACEOF
18462 #define HAVE_LIBZ 1
18463 _ACEOF
18464
18465   LIBS="-lz $LIBS"
18466
18467 else
18468   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18470 { { $as_echo "$as_me:$LINENO: error:
18471         *** compress2() missing, zlib-devel package required
18472 See \`config.log' for more details." >&5
18473 $as_echo "$as_me: error:
18474         *** compress2() missing, zlib-devel package required
18475 See \`config.log' for more details." >&2;}
18476    { (exit 1); exit 1; }; }; }
18477 fi
18478
18479
18480
18481 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18482 $as_echo_n "checking for uncompress in -lz... " >&6; }
18483 if test "${ac_cv_lib_z_uncompress+set}" = set; then
18484   $as_echo_n "(cached) " >&6
18485 else
18486   ac_check_lib_save_LIBS=$LIBS
18487 LIBS="-lz  $LIBS"
18488 cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h.  */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h.  */
18494
18495 /* Override any GCC internal prototype to avoid an error.
18496    Use char because int might match the return type of a GCC
18497    builtin and then its argument prototype would still apply.  */
18498 #ifdef __cplusplus
18499 extern "C"
18500 #endif
18501 char uncompress ();
18502 int
18503 main ()
18504 {
18505 return uncompress ();
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (ac_try="$ac_link"
18512 case "(($ac_try" in
18513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514   *) ac_try_echo=$ac_try;;
18515 esac
18516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18517 $as_echo "$ac_try_echo") >&5
18518   (eval "$ac_link") 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } && {
18525          test -z "$ac_c_werror_flag" ||
18526          test ! -s conftest.err
18527        } && test -s conftest$ac_exeext && {
18528          test "$cross_compiling" = yes ||
18529          $as_test_x conftest$ac_exeext
18530        }; then
18531   ac_cv_lib_z_uncompress=yes
18532 else
18533   $as_echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536         ac_cv_lib_z_uncompress=no
18537 fi
18538
18539 rm -rf conftest.dSYM
18540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18541       conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18543 fi
18544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18545 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
18546 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
18547   cat >>confdefs.h <<_ACEOF
18548 #define HAVE_LIBZ 1
18549 _ACEOF
18550
18551   LIBS="-lz $LIBS"
18552
18553 else
18554   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18556 { { $as_echo "$as_me:$LINENO: error:
18557         *** uncompress() missing, zlib-devel package required
18558 See \`config.log' for more details." >&5
18559 $as_echo "$as_me: error:
18560         *** uncompress() missing, zlib-devel package required
18561 See \`config.log' for more details." >&2;}
18562    { (exit 1); exit 1; }; }; }
18563 fi
18564
18565
18566
18567 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
18568 $as_echo_n "checking for crc32 in -lz... " >&6; }
18569 if test "${ac_cv_lib_z_crc32+set}" = set; then
18570   $as_echo_n "(cached) " >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lz  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char crc32 ();
18588 int
18589 main ()
18590 {
18591 return crc32 ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604   (eval "$ac_link") 2>conftest.er1
18605   ac_status=$?
18606   grep -v '^ *+' conftest.er1 >conftest.err
18607   rm -f conftest.er1
18608   cat conftest.err >&5
18609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); } && {
18611          test -z "$ac_c_werror_flag" ||
18612          test ! -s conftest.err
18613        } && test -s conftest$ac_exeext && {
18614          test "$cross_compiling" = yes ||
18615          $as_test_x conftest$ac_exeext
18616        }; then
18617   ac_cv_lib_z_crc32=yes
18618 else
18619   $as_echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622         ac_cv_lib_z_crc32=no
18623 fi
18624
18625 rm -rf conftest.dSYM
18626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18627       conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_check_lib_save_LIBS
18629 fi
18630 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
18631 $as_echo "$ac_cv_lib_z_crc32" >&6; }
18632 if test "x$ac_cv_lib_z_crc32" = x""yes; then
18633   cat >>confdefs.h <<_ACEOF
18634 #define HAVE_LIBZ 1
18635 _ACEOF
18636
18637   LIBS="-lz $LIBS"
18638
18639 else
18640   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18642 { { $as_echo "$as_me:$LINENO: error:
18643         *** crc32() missing, zlib-devel package required
18644 See \`config.log' for more details." >&5
18645 $as_echo "$as_me: error:
18646         *** crc32() missing, zlib-devel package required
18647 See \`config.log' for more details." >&2;}
18648    { (exit 1); exit 1; }; }; }
18649 fi
18650
18651
18652         ZLIB="-lz"
18653
18654
18655 cat >>confdefs.h <<\_ACEOF
18656 #define HAVE_ZLIB 1
18657 _ACEOF
18658
18659
18660
18661         LIBUUID=
18662
18663         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18664   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18665 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18666 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18667   $as_echo_n "(cached) " >&6
18668 fi
18669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18670 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18671 else
18672   # Is the header compilable?
18673 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
18674 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h.  */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h.  */
18681 $ac_includes_default
18682 #include <uuid/uuid.h>
18683 _ACEOF
18684 rm -f conftest.$ac_objext
18685 if { (ac_try="$ac_compile"
18686 case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18691 $as_echo "$ac_try_echo") >&5
18692   (eval "$ac_compile") 2>conftest.er1
18693   ac_status=$?
18694   grep -v '^ *+' conftest.er1 >conftest.err
18695   rm -f conftest.er1
18696   cat conftest.err >&5
18697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); } && {
18699          test -z "$ac_c_werror_flag" ||
18700          test ! -s conftest.err
18701        } && test -s conftest.$ac_objext; then
18702   ac_header_compiler=yes
18703 else
18704   $as_echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707         ac_header_compiler=no
18708 fi
18709
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18712 $as_echo "$ac_header_compiler" >&6; }
18713
18714 # Is the header present?
18715 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
18716 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723 #include <uuid/uuid.h>
18724 _ACEOF
18725 if { (ac_try="$ac_cpp conftest.$ac_ext"
18726 case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18731 $as_echo "$ac_try_echo") >&5
18732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18733   ac_status=$?
18734   grep -v '^ *+' conftest.er1 >conftest.err
18735   rm -f conftest.er1
18736   cat conftest.err >&5
18737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); } >/dev/null && {
18739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18740          test ! -s conftest.err
18741        }; then
18742   ac_header_preproc=yes
18743 else
18744   $as_echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746
18747   ac_header_preproc=no
18748 fi
18749
18750 rm -f conftest.err conftest.$ac_ext
18751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18752 $as_echo "$ac_header_preproc" >&6; }
18753
18754 # So?  What about this header?
18755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18756   yes:no: )
18757     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
18758 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18759     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
18760 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
18761     ac_header_preproc=yes
18762     ;;
18763   no:yes:* )
18764     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
18765 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
18766     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
18767 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
18768     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
18769 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
18770     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
18771 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18772     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
18773 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
18774     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
18775 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
18776
18777     ;;
18778 esac
18779 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18780 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18781 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18782   $as_echo_n "(cached) " >&6
18783 else
18784   ac_cv_header_uuid_uuid_h=$ac_header_preproc
18785 fi
18786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18787 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18788
18789 fi
18790 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
18791   :
18792 else
18793   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18795 { { $as_echo "$as_me:$LINENO: error:
18796         *** uuid/uuid.h missing, libuuid-devel package required
18797 See \`config.log' for more details." >&5
18798 $as_echo "$as_me: error:
18799         *** uuid/uuid.h missing, libuuid-devel package required
18800 See \`config.log' for more details." >&2;}
18801    { (exit 1); exit 1; }; }; }
18802 fi
18803
18804
18805
18806
18807 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
18808 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
18809 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
18810   $as_echo_n "(cached) " >&6
18811 else
18812   ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-luuid  $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h.  */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h.  */
18820
18821 /* Override any GCC internal prototype to avoid an error.
18822    Use char because int might match the return type of a GCC
18823    builtin and then its argument prototype would still apply.  */
18824 #ifdef __cplusplus
18825 extern "C"
18826 #endif
18827 char uuid_generate ();
18828 int
18829 main ()
18830 {
18831 return uuid_generate ();
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844   (eval "$ac_link") 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } && {
18851          test -z "$ac_c_werror_flag" ||
18852          test ! -s conftest.err
18853        } && test -s conftest$ac_exeext && {
18854          test "$cross_compiling" = yes ||
18855          $as_test_x conftest$ac_exeext
18856        }; then
18857   ac_cv_lib_uuid_uuid_generate=yes
18858 else
18859   $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862         ac_cv_lib_uuid_uuid_generate=no
18863 fi
18864
18865 rm -rf conftest.dSYM
18866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18867       conftest$ac_exeext conftest.$ac_ext
18868 LIBS=$ac_check_lib_save_LIBS
18869 fi
18870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
18871 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
18872 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
18873   cat >>confdefs.h <<_ACEOF
18874 #define HAVE_LIBUUID 1
18875 _ACEOF
18876
18877   LIBS="-luuid $LIBS"
18878
18879 else
18880   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18882 { { $as_echo "$as_me:$LINENO: error:
18883         *** uuid_generate() missing, libuuid-devel package required
18884 See \`config.log' for more details." >&5
18885 $as_echo "$as_me: error:
18886         *** uuid_generate() missing, libuuid-devel package required
18887 See \`config.log' for more details." >&2;}
18888    { (exit 1); exit 1; }; }; }
18889 fi
18890
18891
18892
18893 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
18894 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
18895 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
18896   $as_echo_n "(cached) " >&6
18897 else
18898   ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-luuid  $LIBS"
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906
18907 /* Override any GCC internal prototype to avoid an error.
18908    Use char because int might match the return type of a GCC
18909    builtin and then its argument prototype would still apply.  */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 char uuid_is_null ();
18914 int
18915 main ()
18916 {
18917 return uuid_is_null ();
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926   *) ac_try_echo=$ac_try;;
18927 esac
18928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18929 $as_echo "$ac_try_echo") >&5
18930   (eval "$ac_link") 2>conftest.er1
18931   ac_status=$?
18932   grep -v '^ *+' conftest.er1 >conftest.err
18933   rm -f conftest.er1
18934   cat conftest.err >&5
18935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); } && {
18937          test -z "$ac_c_werror_flag" ||
18938          test ! -s conftest.err
18939        } && test -s conftest$ac_exeext && {
18940          test "$cross_compiling" = yes ||
18941          $as_test_x conftest$ac_exeext
18942        }; then
18943   ac_cv_lib_uuid_uuid_is_null=yes
18944 else
18945   $as_echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18947
18948         ac_cv_lib_uuid_uuid_is_null=no
18949 fi
18950
18951 rm -rf conftest.dSYM
18952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18953       conftest$ac_exeext conftest.$ac_ext
18954 LIBS=$ac_check_lib_save_LIBS
18955 fi
18956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
18957 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
18958 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
18959   cat >>confdefs.h <<_ACEOF
18960 #define HAVE_LIBUUID 1
18961 _ACEOF
18962
18963   LIBS="-luuid $LIBS"
18964
18965 else
18966   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18968 { { $as_echo "$as_me:$LINENO: error:
18969         *** uuid_is_null() missing, libuuid-devel package required
18970 See \`config.log' for more details." >&5
18971 $as_echo "$as_me: error:
18972         *** uuid_is_null() missing, libuuid-devel package required
18973 See \`config.log' for more details." >&2;}
18974    { (exit 1); exit 1; }; }; }
18975 fi
18976
18977
18978         LIBUUID="-luuid"
18979
18980
18981 cat >>confdefs.h <<\_ACEOF
18982 #define HAVE_LIBUUID 1
18983 _ACEOF
18984
18985
18986
18987
18988 # Check whether --with-blkid was given.
18989 if test "${with_blkid+set}" = set; then
18990   withval=$with_blkid;
18991 else
18992   with_blkid=check
18993 fi
18994
18995
18996         LIBBLKID=
18997         if test "x$with_blkid" != xno; then
18998
18999                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
19000 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
19001 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
19002   $as_echo_n "(cached) " >&6
19003 else
19004   ac_check_lib_save_LIBS=$LIBS
19005 LIBS="-lblkid  $LIBS"
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012
19013 /* Override any GCC internal prototype to avoid an error.
19014    Use char because int might match the return type of a GCC
19015    builtin and then its argument prototype would still apply.  */
19016 #ifdef __cplusplus
19017 extern "C"
19018 #endif
19019 char blkid_get_cache ();
19020 int
19021 main ()
19022 {
19023 return blkid_get_cache ();
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19035 $as_echo "$ac_try_echo") >&5
19036   (eval "$ac_link") 2>conftest.er1
19037   ac_status=$?
19038   grep -v '^ *+' conftest.er1 >conftest.err
19039   rm -f conftest.er1
19040   cat conftest.err >&5
19041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); } && {
19043          test -z "$ac_c_werror_flag" ||
19044          test ! -s conftest.err
19045        } && test -s conftest$ac_exeext && {
19046          test "$cross_compiling" = yes ||
19047          $as_test_x conftest$ac_exeext
19048        }; then
19049   ac_cv_lib_blkid_blkid_get_cache=yes
19050 else
19051   $as_echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         ac_cv_lib_blkid_blkid_get_cache=no
19055 fi
19056
19057 rm -rf conftest.dSYM
19058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19059       conftest$ac_exeext conftest.$ac_ext
19060 LIBS=$ac_check_lib_save_LIBS
19061 fi
19062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
19063 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19064 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
19065
19066                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
19067 $as_echo_n "checking for blkid zfs support... " >&6; }
19068
19069                         ZFS_DEV=`mktemp`
19070                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
19071                                 >/dev/null 2>/dev/null
19072                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
19073                                 dd of=$ZFS_DEV bs=1k count=8 \
19074                                 seek=132 conv=notrunc &>/dev/null \
19075                                 >/dev/null 2>/dev/null
19076
19077                         saved_LDFLAGS="$LDFLAGS"
19078                         LDFLAGS="-lblkid"
19079
19080                         if test "$cross_compiling" = yes; then
19081   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19083 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19084 See \`config.log' for more details." >&5
19085 $as_echo "$as_me: error: cannot run test program while cross compiling
19086 See \`config.log' for more details." >&2;}
19087    { (exit 1); exit 1; }; }; }
19088 else
19089   cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h.  */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h.  */
19095
19096                                 #include <stdio.h>
19097                                 #include <blkid/blkid.h>
19098
19099 int
19100 main ()
19101 {
19102
19103                                 blkid_cache cache;
19104                                 char *value;
19105
19106                                 if (blkid_get_cache(&cache, NULL) < 0)
19107                                         return 1;
19108
19109                                 value = blkid_get_tag_value(cache, "TYPE",
19110                                                             "$ZFS_DEV");
19111                                 if (!value) {
19112                                         blkid_put_cache(cache);
19113                                         return 2;
19114                                 }
19115
19116                                 if (strcmp(value, "zfs")) {
19117                                         free(value);
19118                                         blkid_put_cache(cache);
19119                                         return 3;
19120                                 }
19121
19122                                 free(value);
19123                                 blkid_put_cache(cache);
19124
19125   ;
19126   return 0;
19127 }
19128 _ACEOF
19129 rm -f conftest$ac_exeext
19130 if { (ac_try="$ac_link"
19131 case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19136 $as_echo "$ac_try_echo") >&5
19137   (eval "$ac_link") 2>&5
19138   ac_status=$?
19139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19146 $as_echo "$ac_try_echo") >&5
19147   (eval "$ac_try") 2>&5
19148   ac_status=$?
19149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); }; }; then
19151
19152                                 rm -f $ZFS_DEV
19153                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19154 $as_echo "yes" >&6; }
19155                                 LIBBLKID="-lblkid"
19156
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE_LIBBLKID 1
19160 _ACEOF
19161
19162
19163 else
19164   $as_echo "$as_me: program exited with status $ac_status" >&5
19165 $as_echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168 ( exit $ac_status )
19169
19170                                 rm -f $ZFS_DEV
19171                                 { $as_echo "$as_me:$LINENO: result: no" >&5
19172 $as_echo "no" >&6; }
19173                                 if test "x$with_blkid" != xcheck; then
19174   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19176 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19177 See \`config.log' for more details." >&5
19178 $as_echo "$as_me: error: --with-blkid given but unavailable
19179 See \`config.log' for more details." >&2;}
19180    { (exit 1); exit 1; }; }; }
19181 fi
19182
19183
19184 fi
19185 rm -rf conftest.dSYM
19186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19187 fi
19188
19189
19190
19191                         LDFLAGS="$saved_LDFLAGS"
19192
19193 else
19194
19195                         if test "x$with_blkid" != xcheck; then
19196   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19198 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19199 See \`config.log' for more details." >&5
19200 $as_echo "$as_me: error: --with-blkid given but unavailable
19201 See \`config.log' for more details." >&2;}
19202    { (exit 1); exit 1; }; }; }
19203 fi
19204
19205
19206
19207 fi
19208
19209
19210 fi
19211
19212
19213
19214
19215 # Check whether --with-selinux was given.
19216 if test "${with_selinux+set}" = set; then
19217   withval=$with_selinux;
19218 else
19219   with_selinux=check
19220 fi
19221
19222
19223         LIBSELINUX=
19224         if test "x$with_selinux" != xno; then
19225
19226                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19227   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19228 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19229 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19230   $as_echo_n "(cached) " >&6
19231 fi
19232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19233 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19234 else
19235   # Is the header compilable?
19236 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19237 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 $ac_includes_default
19245 #include <selinux/selinux.h>
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254 $as_echo "$ac_try_echo") >&5
19255   (eval "$ac_compile") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } && {
19262          test -z "$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        } && test -s conftest.$ac_objext; then
19265   ac_header_compiler=yes
19266 else
19267   $as_echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270         ac_header_compiler=no
19271 fi
19272
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19275 $as_echo "$ac_header_compiler" >&6; }
19276
19277 # Is the header present?
19278 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19279 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
19280 cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h.  */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h.  */
19286 #include <selinux/selinux.h>
19287 _ACEOF
19288 if { (ac_try="$ac_cpp conftest.$ac_ext"
19289 case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19294 $as_echo "$ac_try_echo") >&5
19295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } >/dev/null && {
19302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19303          test ! -s conftest.err
19304        }; then
19305   ac_header_preproc=yes
19306 else
19307   $as_echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310   ac_header_preproc=no
19311 fi
19312
19313 rm -f conftest.err conftest.$ac_ext
19314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19315 $as_echo "$ac_header_preproc" >&6; }
19316
19317 # So?  What about this header?
19318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19319   yes:no: )
19320     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19321 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19322     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19323 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19324     ac_header_preproc=yes
19325     ;;
19326   no:yes:* )
19327     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19328 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19329     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
19330 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
19331     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19332 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19333     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
19334 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19335     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19336 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19337     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19338 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19339
19340     ;;
19341 esac
19342 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19343 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19344 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19345   $as_echo_n "(cached) " >&6
19346 else
19347   ac_cv_header_selinux_selinux_h=$ac_header_preproc
19348 fi
19349 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19350 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19351
19352 fi
19353 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
19354
19355                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19356 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19357 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19358   $as_echo_n "(cached) " >&6
19359 else
19360   ac_check_lib_save_LIBS=$LIBS
19361 LIBS="-lselinux  $LIBS"
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368
19369 /* Override any GCC internal prototype to avoid an error.
19370    Use char because int might match the return type of a GCC
19371    builtin and then its argument prototype would still apply.  */
19372 #ifdef __cplusplus
19373 extern "C"
19374 #endif
19375 char is_selinux_enabled ();
19376 int
19377 main ()
19378 {
19379 return is_selinux_enabled ();
19380   ;
19381   return 0;
19382 }
19383 _ACEOF
19384 rm -f conftest.$ac_objext conftest$ac_exeext
19385 if { (ac_try="$ac_link"
19386 case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19391 $as_echo "$ac_try_echo") >&5
19392   (eval "$ac_link") 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } && {
19399          test -z "$ac_c_werror_flag" ||
19400          test ! -s conftest.err
19401        } && test -s conftest$ac_exeext && {
19402          test "$cross_compiling" = yes ||
19403          $as_test_x conftest$ac_exeext
19404        }; then
19405   ac_cv_lib_selinux_is_selinux_enabled=yes
19406 else
19407   $as_echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410         ac_cv_lib_selinux_is_selinux_enabled=no
19411 fi
19412
19413 rm -rf conftest.dSYM
19414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19415       conftest$ac_exeext conftest.$ac_ext
19416 LIBS=$ac_check_lib_save_LIBS
19417 fi
19418 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19419 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19420 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19421
19422                                 LIBSELINUX="-lselinux"
19423
19424
19425 cat >>confdefs.h <<\_ACEOF
19426 #define HAVE_LIBSELINUX 1
19427 _ACEOF
19428
19429
19430 else
19431
19432                                 if test "x$with_selinux" != xcheck; then
19433   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19435 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19436 See \`config.log' for more details." >&5
19437 $as_echo "$as_me: error: --with-selinux given but unavailable
19438 See \`config.log' for more details." >&2;}
19439    { (exit 1); exit 1; }; }; }
19440
19441 fi
19442
19443
19444 fi
19445
19446
19447 else
19448
19449                         if test "x$with_selinux" != xcheck; then
19450   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19452 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19453 See \`config.log' for more details." >&5
19454 $as_echo "$as_me: error: --with-selinux given but unavailable
19455 See \`config.log' for more details." >&2;}
19456    { (exit 1); exit 1; }; }; }
19457
19458 fi
19459
19460
19461 fi
19462
19463
19464
19465 else
19466
19467                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
19468 $as_echo_n "checking for selinux support... " >&6; }
19469                 { $as_echo "$as_me:$LINENO: result: no" >&5
19470 $as_echo "no" >&6; }
19471
19472 fi
19473
19474
19475
19476         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
19477 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
19478
19479         saved_flags="$CFLAGS"
19480         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
19481
19482         if test "$cross_compiling" = yes; then
19483   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19485 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19486 See \`config.log' for more details." >&5
19487 $as_echo "$as_me: error: cannot run test program while cross compiling
19488 See \`config.log' for more details." >&2;}
19489    { (exit 1); exit 1; }; }; }
19490 else
19491   cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497
19498 int
19499 main ()
19500 {
19501
19502   ;
19503   return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest$ac_exeext
19507 if { (ac_try="$ac_link"
19508 case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19513 $as_echo "$ac_try_echo") >&5
19514   (eval "$ac_link") 2>&5
19515   ac_status=$?
19516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19518   { (case "(($ac_try" in
19519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520   *) ac_try_echo=$ac_try;;
19521 esac
19522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 $as_echo "$ac_try_echo") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528
19529                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
19530                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19531 $as_echo "yes" >&6; }
19532
19533 else
19534   $as_echo "$as_me: program exited with status $ac_status" >&5
19535 $as_echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 ( exit $ac_status )
19539
19540                 FRAME_LARGER_THAN=
19541                 { $as_echo "$as_me:$LINENO: result: no" >&5
19542 $as_echo "no" >&6; }
19543
19544 fi
19545 rm -rf conftest.dSYM
19546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19547 fi
19548
19549
19550
19551         CFLAGS="$saved_flags"
19552
19553
19554
19555
19556         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
19557 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
19558
19559         saved_CFLAGS="$CFLAGS"
19560         CFLAGS="-fstack-check"
19561         saved_LDFLAGS="$LDFLAGS"
19562         LDFLAGS="-lpthread"
19563
19564         if test "$cross_compiling" = yes; then
19565   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19567 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19568 See \`config.log' for more details." >&5
19569 $as_echo "$as_me: error: cannot run test program while cross compiling
19570 See \`config.log' for more details." >&2;}
19571    { (exit 1); exit 1; }; }; }
19572 else
19573   cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h.  */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h.  */
19579
19580                 #include <pthread.h>
19581                 #include <sys/resource.h>
19582                 #include <unistd.h>
19583                 #include <bits/local_lim.h>
19584
19585                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
19586                 #define STACK_SIZE 8192
19587                 #define BUFSIZE 4096
19588
19589                 void * func(void *arg)
19590                 {
19591                         char buf[BUFSIZE];
19592                 }
19593
19594 int
19595 main ()
19596 {
19597
19598                 pthread_t tid;
19599                 pthread_attr_t attr;
19600                 struct rlimit l;
19601
19602                 l.rlim_cur = 0;
19603                 l.rlim_max = 0;
19604                 setrlimit(RLIMIT_CORE, &l);
19605                 pthread_attr_init(&attr);
19606                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
19607                 pthread_attr_setguardsize(&attr, PAGESIZE);
19608                 pthread_create(&tid, &attr, func, NULL);
19609                 pthread_join(tid, NULL);
19610
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19622 $as_echo "$ac_try_echo") >&5
19623   (eval "$ac_link") 2>&5
19624   ac_status=$?
19625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19627   { (case "(($ac_try" in
19628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629   *) ac_try_echo=$ac_try;;
19630 esac
19631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19632 $as_echo "$ac_try_echo") >&5
19633   (eval "$ac_try") 2>&5
19634   ac_status=$?
19635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }; }; then
19637
19638                 { $as_echo "$as_me:$LINENO: result: no" >&5
19639 $as_echo "no" >&6; }
19640
19641 else
19642   $as_echo "$as_me: program exited with status $ac_status" >&5
19643 $as_echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19645
19646 ( exit $ac_status )
19647
19648
19649 cat >>confdefs.h <<\_ACEOF
19650 #define NPTL_GUARD_WITHIN_STACK 1
19651 _ACEOF
19652
19653                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19654 $as_echo "yes" >&6; }
19655
19656 fi
19657 rm -rf conftest.dSYM
19658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19659 fi
19660
19661
19662         CFLAGS="$saved_CFLAGS"
19663         LDFLAGS="$saved_LDFLAGS"
19664
19665    ;;
19666                 all)
19667
19668
19669 # Check whether --with-linux was given.
19670 if test "${with_linux+set}" = set; then
19671   withval=$with_linux; kernelsrc="$withval"
19672 fi
19673
19674
19675
19676 # Check whether --with-linux-obj was given.
19677 if test "${with_linux_obj+set}" = set; then
19678   withval=$with_linux_obj; kernelbuild="$withval"
19679 fi
19680
19681
19682         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
19683 $as_echo_n "checking kernel source directory... " >&6; }
19684         if test -z "$kernelsrc"; then
19685
19686                 if test -e "/lib/modules/$(uname -r)/source"; then
19687
19688                         headersdir="/lib/modules/$(uname -r)/source"
19689                         sourcelink=$(readlink -f "$headersdir")
19690
19691 elif test -e "/lib/modules/$(uname -r)/build"; then
19692
19693                         headersdir="/lib/modules/$(uname -r)/build"
19694                         sourcelink=$(readlink -f "$headersdir")
19695
19696 else
19697
19698                         sourcelink=$(ls -1d /usr/src/kernels/* \
19699                                      /usr/src/linux-* \
19700                                      2>/dev/null | grep -v obj | tail -1)
19701
19702 fi
19703
19704
19705                 if test -n "$sourcelink" && test -e ${sourcelink}; then
19706
19707                         kernelsrc=`readlink -f ${sourcelink}`
19708
19709 else
19710
19711                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
19712 $as_echo "Not found" >&6; }
19713                         { { $as_echo "$as_me:$LINENO: error:
19714         *** Please make sure the kernel devel package for your distribution
19715         *** is installed then try again.  If that fails you can specify the
19716         *** location of the kernel source with the '--with-linux=PATH' option." >&5
19717 $as_echo "$as_me: error:
19718         *** Please make sure the kernel devel package for your distribution
19719         *** is installed then try again.  If that fails you can specify the
19720         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
19721    { (exit 1); exit 1; }; }
19722
19723 fi
19724
19725
19726 else
19727
19728                 if test "$kernelsrc" = "NONE"; then
19729
19730                         kernsrcver=NONE
19731
19732 fi
19733
19734
19735 fi
19736
19737
19738         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
19739 $as_echo "$kernelsrc" >&6; }
19740         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
19741 $as_echo_n "checking kernel build directory... " >&6; }
19742         if test -z "$kernelbuild"; then
19743
19744                 if test -e "/lib/modules/$(uname -r)/build"; then
19745
19746                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
19747
19748 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
19749
19750                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
19751
19752 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
19753
19754                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
19755
19756 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
19757
19758                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
19759
19760 else
19761
19762                         kernelbuild=${kernelsrc}
19763
19764 fi
19765
19766
19767 fi
19768
19769         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
19770 $as_echo "$kernelbuild" >&6; }
19771
19772         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
19773 $as_echo_n "checking kernel source version... " >&6; }
19774         utsrelease1=$kernelbuild/include/linux/version.h
19775         utsrelease2=$kernelbuild/include/linux/utsrelease.h
19776         utsrelease3=$kernelbuild/include/generated/utsrelease.h
19777         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
19778
19779                 utsrelease=linux/version.h
19780
19781 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
19782
19783                 utsrelease=linux/utsrelease.h
19784
19785 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
19786
19787                 utsrelease=generated/utsrelease.h
19788
19789 fi
19790
19791
19792         if test "$utsrelease"; then
19793
19794                 kernsrcver=`(echo "#include <$utsrelease>";
19795                              echo "kernsrcver=UTS_RELEASE") |
19796                              cpp -I $kernelbuild/include |
19797                              grep "^kernsrcver=" | cut -d \" -f 2`
19798
19799                 if test -z "$kernsrcver"; then
19800
19801                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
19802 $as_echo "Not found" >&6; }
19803                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
19804 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
19805    { (exit 1); exit 1; }; }
19806
19807 fi
19808
19809
19810 else
19811
19812                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19813 $as_echo "Not found" >&6; }
19814                 if test "x$enable_linux_builtin" != xyes; then
19815                         { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
19816 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
19817    { (exit 1); exit 1; }; }
19818                 else
19819                         { { $as_echo "$as_me:$LINENO: error:
19820         *** Cannot find UTS_RELEASE definition.
19821         *** Please run 'make prepare' inside the kernel source tree." >&5
19822 $as_echo "$as_me: error:
19823         *** Cannot find UTS_RELEASE definition.
19824         *** Please run 'make prepare' inside the kernel source tree." >&2;}
19825    { (exit 1); exit 1; }; }
19826                 fi
19827
19828 fi
19829
19830
19831         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
19832 $as_echo "$kernsrcver" >&6; }
19833
19834         LINUX=${kernelsrc}
19835         LINUX_OBJ=${kernelbuild}
19836         LINUX_VERSION=${kernsrcver}
19837
19838
19839
19840
19841
19842
19843         modpost=$LINUX/scripts/Makefile.modpost
19844         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19845 $as_echo_n "checking kernel file name for module symbols... " >&6; }
19846         if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
19847
19848                 if grep -q Modules.symvers $modpost; then
19849
19850                         LINUX_SYMBOLS=Modules.symvers
19851
19852 else
19853
19854                         LINUX_SYMBOLS=Module.symvers
19855
19856 fi
19857
19858
19859                 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
19860
19861                         { { $as_echo "$as_me:$LINENO: error:
19862         *** Please make sure the kernel devel package for your distribution
19863         *** is installed.  If your building with a custom kernel make sure the
19864         *** kernel is configured, built, and the '--with-linux=PATH' configure
19865         *** option refers to the location of the kernel source." >&5
19866 $as_echo "$as_me: error:
19867         *** Please make sure the kernel devel package for your distribution
19868         *** is installed.  If your building with a custom kernel make sure the
19869         *** kernel is configured, built, and the '--with-linux=PATH' configure
19870         *** option refers to the location of the kernel source." >&2;}
19871    { (exit 1); exit 1; }; }
19872
19873 fi
19874
19875
19876 else
19877
19878                 LINUX_SYMBOLS=NONE
19879
19880 fi
19881
19882         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19883 $as_echo "$LINUX_SYMBOLS" >&6; }
19884
19885
19886
19887
19888
19889 # Check whether --with-spl was given.
19890 if test "${with_spl+set}" = set; then
19891   withval=$with_spl; splsrc="$withval"
19892 fi
19893
19894
19895
19896 # Check whether --with-spl-obj was given.
19897 if test "${with_spl_obj+set}" = set; then
19898   withval=$with_spl_obj; splbuild="$withval"
19899 fi
19900
19901
19902
19903         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
19904 $as_echo_n "checking spl source directory... " >&6; }
19905         if test -z "$splsrc"; then
19906
19907                                                                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
19908                             2>/dev/null | tail -1`
19909
19910                                                                 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
19911
19912                         sourcelink=`ls -1d /var/lib/dkms/spl/*/build \
19913                                     2>/dev/null | tail -1`
19914
19915 fi
19916
19917
19918                                                                 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
19919
19920                         sourcelink=../spl
19921
19922 fi
19923
19924
19925                                                                 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
19926
19927                         sourcelink="$LINUX"
19928
19929 fi
19930
19931
19932                 if test -e $sourcelink/spl_config.h; then
19933
19934                         splsrc=`readlink -f ${sourcelink}`
19935
19936 else
19937
19938                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
19939 $as_echo "Not found" >&6; }
19940                         { { $as_echo "$as_me:$LINENO: error:
19941         *** Please make sure the spl devel package for your distribution
19942         *** is installed then try again.  If that fails you can specify the
19943         *** location of the spl source with the '--with-spl=PATH' option." >&5
19944 $as_echo "$as_me: error:
19945         *** Please make sure the spl devel package for your distribution
19946         *** is installed then try again.  If that fails you can specify the
19947         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
19948    { (exit 1); exit 1; }; }
19949
19950 fi
19951
19952
19953 else
19954
19955                 if test "$splsrc" = "NONE"; then
19956
19957                         splbuild=NONE
19958                         splsrcver=NONE
19959
19960 fi
19961
19962
19963 fi
19964
19965
19966         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
19967 $as_echo "$splsrc" >&6; }
19968         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
19969 $as_echo_n "checking spl build directory... " >&6; }
19970         if test -z "$splbuild"; then
19971
19972                 splbuild=${splsrc}
19973
19974 fi
19975
19976         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
19977 $as_echo "$splbuild" >&6; }
19978
19979         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
19980 $as_echo_n "checking spl source version... " >&6; }
19981         if test -r $splbuild/spl_config.h &&
19982                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
19983
19984
19985                 splsrcver=`(echo "#include <spl_config.h>";
19986                             echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
19987                             cpp -I $splbuild |
19988                             grep "^splsrcver=" | tr -d \" | cut -d= -f2`
19989
19990 fi
19991
19992
19993         if test -z "$splsrcver"; then
19994
19995                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19996 $as_echo "Not found" >&6; }
19997                 { { $as_echo "$as_me:$LINENO: error:
19998         *** Cannot determine the version of the spl source.
19999         *** Please prepare the spl source before running this script" >&5
20000 $as_echo "$as_me: error:
20001         *** Cannot determine the version of the spl source.
20002         *** Please prepare the spl source before running this script" >&2;}
20003    { (exit 1); exit 1; }; }
20004
20005 fi
20006
20007
20008         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
20009 $as_echo "$splsrcver" >&6; }
20010
20011         SPL=${splsrc}
20012         SPL_OBJ=${splbuild}
20013         SPL_VERSION=${splsrcver}
20014
20015
20016
20017
20018
20019
20020
20021 # Check whether --with-spl-timeout was given.
20022 if test "${with_spl_timeout+set}" = set; then
20023   withval=$with_spl_timeout; timeout="$withval"
20024 else
20025   timeout=0
20026 fi
20027
20028
20029         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
20030 $as_echo_n "checking spl file name for module symbols... " >&6; }
20031         SPL_SYMBOLS=NONE
20032
20033         while true; do
20034                 if test -r $SPL_OBJ/Module.symvers; then
20035
20036                         SPL_SYMBOLS=Module.symvers
20037
20038 elif test -r $SPL_OBJ/Modules.symvers; then
20039
20040                         SPL_SYMBOLS=Modules.symvers
20041
20042 elif test -r $SPL_OBJ/module/Module.symvers; then
20043
20044                         SPL_SYMBOLS=Module.symvers
20045
20046 elif test -r $SPL_OBJ/module/Modules.symvers; then
20047
20048                         SPL_SYMBOLS=Modules.symvers
20049
20050 fi
20051
20052
20053                 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
20054
20055                         break;
20056
20057 else
20058
20059                         sleep 1
20060                         timeout=$((timeout-1))
20061
20062 fi
20063
20064         done
20065
20066         if test "$SPL_SYMBOLS" = NONE; then
20067
20068                 SPL_SYMBOLS=$LINUX_SYMBOLS
20069
20070 fi
20071
20072
20073         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
20074 $as_echo "$SPL_SYMBOLS" >&6; }
20075
20076
20077
20078         { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
20079 $as_echo_n "checking whether modules can be built... " >&6; }
20080
20081
20082 cat confdefs.h - <<_ACEOF >conftest.c
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088
20089
20090 int
20091 main (void)
20092 {
20093
20094   ;
20095   return 0;
20096 }
20097
20098 _ACEOF
20099
20100
20101         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20102         echo "obj-m := conftest.o" >build/Makefile
20103         modpost_flag=''
20104         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20105         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112   (eval $ac_try) 2>&5
20113   ac_status=$?
20114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116
20117                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20118 $as_echo "yes" >&6; }
20119
20120 else
20121   $as_echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124                 { $as_echo "$as_me:$LINENO: result: no" >&5
20125 $as_echo "no" >&6; }
20126                 if test "x$enable_linux_builtin" != xyes; then
20127                         { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
20128 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
20129    { (exit 1); exit 1; }; }
20130                 else
20131                         { { $as_echo "$as_me:$LINENO: error:
20132         *** Unable to build an empty module.
20133         *** Please run 'make scripts' inside the kernel source tree." >&5
20134 $as_echo "$as_me: error:
20135         *** Unable to build an empty module.
20136         *** Please run 'make scripts' inside the kernel source tree." >&2;}
20137    { (exit 1); exit 1; }; }
20138                 fi
20139
20140
20141
20142 fi
20143
20144         rm -Rf build
20145
20146
20147
20148
20149
20150         if test "$ZFS_META_LICENSE" = GPL; then
20151
20152
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_GPL_ONLY_SYMBOLS 1
20155 _ACEOF
20156
20157
20158 fi
20159
20160
20161
20162
20163         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
20164 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
20165
20166
20167 cat confdefs.h - <<_ACEOF >conftest.c
20168 /* confdefs.h.  */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h.  */
20173
20174
20175                 #include <linux/module.h>
20176
20177 int
20178 main (void)
20179 {
20180
20181                 #ifndef CONFIG_PREEMPT
20182                 #error CONFIG_PREEMPT not #defined
20183                 #endif
20184
20185   ;
20186   return 0;
20187 }
20188
20189 _ACEOF
20190
20191
20192         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20193         echo "obj-m := conftest.o" >build/Makefile
20194         modpost_flag=''
20195         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20196         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; }; then
20207
20208                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20209 $as_echo "yes" >&6; }
20210                 { { $as_echo "$as_me:$LINENO: error:
20211         *** Kernel built with CONFIG_PREEMPT which is not supported.
20212         *** You must rebuild your kernel without this option." >&5
20213 $as_echo "$as_me: error:
20214         *** Kernel built with CONFIG_PREEMPT which is not supported.
20215         *** You must rebuild your kernel without this option." >&2;}
20216    { (exit 1); exit 1; }; }
20217
20218 else
20219   $as_echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20221
20222                 { $as_echo "$as_me:$LINENO: result: no" >&5
20223 $as_echo "no" >&6; }
20224
20225
20226
20227
20228 fi
20229
20230         rm -Rf build
20231
20232
20233
20234
20235
20236
20237         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
20238 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
20239
20240
20241 cat confdefs.h - <<_ACEOF >conftest.c
20242 /* confdefs.h.  */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h.  */
20247
20248
20249                 #include <linux/module.h>
20250
20251 int
20252 main (void)
20253 {
20254
20255                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
20256                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
20257                 #endif
20258
20259   ;
20260   return 0;
20261 }
20262
20263 _ACEOF
20264
20265
20266         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20267         echo "obj-m := conftest.o" >build/Makefile
20268         modpost_flag=''
20269         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20270         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272   (eval $ac_try) 2>&5
20273   ac_status=$?
20274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277   (eval $ac_try) 2>&5
20278   ac_status=$?
20279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; }; then
20281
20282                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20283 $as_echo "yes" >&6; }
20284
20285                 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
20286 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
20287                 tmp_flags="$EXTRA_KCFLAGS"
20288
20289
20290 cat confdefs.h - <<_ACEOF >conftest.c
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296
20297
20298                         #include <linux/module.h>
20299                         #include <linux/mutex.h>
20300
20301                         MODULE_LICENSE("$ZFS_META_LICENSE");
20302
20303 int
20304 main (void)
20305 {
20306
20307                         struct mutex lock;
20308
20309                         mutex_init(&lock);
20310                         mutex_lock(&lock);
20311                         mutex_unlock(&lock);
20312
20313   ;
20314   return 0;
20315 }
20316
20317 _ACEOF
20318
20319
20320         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20321         echo "obj-m := conftest.o" >build/Makefile
20322         modpost_flag=''
20323         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20324         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326   (eval $ac_try) 2>&5
20327   ac_status=$?
20328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331   (eval $ac_try) 2>&5
20332   ac_status=$?
20333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); }; }; then
20335
20336                         { $as_echo "$as_me:$LINENO: result: no" >&5
20337 $as_echo "no" >&6; }
20338
20339 else
20340   $as_echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343                         { $as_echo "$as_me:$LINENO: result: yes" >&5
20344 $as_echo "yes" >&6; }
20345                         { { $as_echo "$as_me:$LINENO: error:
20346         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
20347         *** with the CDDL license and will prevent the module linking stage
20348         *** from succeeding.  You must rebuild your kernel without this
20349         *** option enabled." >&5
20350 $as_echo "$as_me: error:
20351         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
20352         *** with the CDDL license and will prevent the module linking stage
20353         *** from succeeding.  You must rebuild your kernel without this
20354         *** option enabled." >&2;}
20355    { (exit 1); exit 1; }; }
20356
20357
20358
20359 fi
20360
20361         rm -Rf build
20362
20363
20364                 EXTRA_KCFLAGS="$tmp_flags"
20365
20366
20367 else
20368   $as_echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371                 { $as_echo "$as_me:$LINENO: result: no" >&5
20372 $as_echo "no" >&6; }
20373
20374
20375
20376
20377 fi
20378
20379         rm -Rf build
20380
20381
20382
20383
20384
20385
20386         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
20387 $as_echo_n "checking block device operation prototypes... " >&6; }
20388         tmp_flags="$EXTRA_KCFLAGS"
20389         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20390
20391
20392 cat confdefs.h - <<_ACEOF >conftest.c
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398
20399
20400                 #include <linux/blkdev.h>
20401
20402 int
20403 main (void)
20404 {
20405
20406                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
20407                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
20408                 int (*blk_ioctl) (struct block_device *, fmode_t,
20409                                   unsigned, unsigned long) = NULL;
20410                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
20411                                          unsigned, unsigned long) = NULL;
20412                 struct block_device_operations blk_ops = {
20413                         .open           = blk_open,
20414                         .release        = blk_release,
20415                         .ioctl          = blk_ioctl,
20416                         .compat_ioctl   = blk_compat_ioctl,
20417                 };
20418
20419                 blk_ops.open(NULL, 0);
20420                 blk_ops.release(NULL, 0);
20421                 blk_ops.ioctl(NULL, 0, 0, 0);
20422                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
20423
20424   ;
20425   return 0;
20426 }
20427
20428 _ACEOF
20429
20430
20431         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20432         echo "obj-m := conftest.o" >build/Makefile
20433         modpost_flag=''
20434         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20435         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437   (eval $ac_try) 2>&5
20438   ac_status=$?
20439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442   (eval $ac_try) 2>&5
20443   ac_status=$?
20444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; }; then
20446
20447                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
20448 $as_echo "struct block_device" >&6; }
20449
20450 cat >>confdefs.h <<\_ACEOF
20451 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
20452 _ACEOF
20453
20454
20455 else
20456   $as_echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
20460 $as_echo "struct inode" >&6; }
20461
20462
20463
20464 fi
20465
20466         rm -Rf build
20467
20468
20469         EXTRA_KCFLAGS="$tmp_flags"
20470
20471         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
20472 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
20473
20474
20475 cat confdefs.h - <<_ACEOF >conftest.c
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481
20482
20483                 #include <linux/types.h>
20484
20485 int
20486 main (void)
20487 {
20488
20489                 fmode_t *ptr __attribute__ ((unused));
20490
20491   ;
20492   return 0;
20493 }
20494
20495 _ACEOF
20496
20497
20498         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20499         echo "obj-m := conftest.o" >build/Makefile
20500         modpost_flag=''
20501         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20502         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504   (eval $ac_try) 2>&5
20505   ac_status=$?
20506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509   (eval $ac_try) 2>&5
20510   ac_status=$?
20511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); }; }; then
20513
20514                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20515 $as_echo "yes" >&6; }
20516
20517 cat >>confdefs.h <<\_ACEOF
20518 #define HAVE_FMODE_T 1
20519 _ACEOF
20520
20521
20522 else
20523   $as_echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526                 { $as_echo "$as_me:$LINENO: result: no" >&5
20527 $as_echo "no" >&6; }
20528
20529
20530
20531 fi
20532
20533         rm -Rf build
20534
20535
20536
20537
20538         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
20539 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
20540
20541
20542 cat confdefs.h - <<_ACEOF >conftest.c
20543 /* confdefs.h.  */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h.  */
20548
20549
20550                 #include <linux/kobject.h>
20551
20552 int
20553 main (void)
20554 {
20555
20556                 int val __attribute__ ((unused));
20557                 val = KOBJ_NAME_LEN;
20558
20559   ;
20560   return 0;
20561 }
20562
20563 _ACEOF
20564
20565
20566         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20567         echo "obj-m := conftest.o" >build/Makefile
20568         modpost_flag=''
20569         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20570         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572   (eval $ac_try) 2>&5
20573   ac_status=$?
20574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577   (eval $ac_try) 2>&5
20578   ac_status=$?
20579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); }; }; then
20581
20582                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20583 $as_echo "yes" >&6; }
20584
20585 cat >>confdefs.h <<\_ACEOF
20586 #define HAVE_KOBJ_NAME_LEN 1
20587 _ACEOF
20588
20589
20590 else
20591   $as_echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594                 { $as_echo "$as_me:$LINENO: result: no" >&5
20595 $as_echo "no" >&6; }
20596
20597
20598
20599 fi
20600
20601         rm -Rf build
20602
20603
20604
20605
20606         { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
20607 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
20608
20609
20610 cat confdefs.h - <<_ACEOF >conftest.c
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616
20617
20618                 #include <linux/fs.h>
20619
20620 int
20621 main (void)
20622 {
20623
20624                 struct block_device *bdev = NULL;
20625                 (void) blkdev_get(bdev, 0, NULL);
20626
20627   ;
20628   return 0;
20629 }
20630
20631 _ACEOF
20632
20633
20634         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20635         echo "obj-m := conftest.o" >build/Makefile
20636         modpost_flag=''
20637         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20638         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640   (eval $ac_try) 2>&5
20641   ac_status=$?
20642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645   (eval $ac_try) 2>&5
20646   ac_status=$?
20647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); }; }; then
20649
20650                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20651 $as_echo "yes" >&6; }
20652
20653 cat >>confdefs.h <<\_ACEOF
20654 #define HAVE_3ARG_BLKDEV_GET 1
20655 _ACEOF
20656
20657
20658 else
20659   $as_echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662                 { $as_echo "$as_me:$LINENO: result: no" >&5
20663 $as_echo "no" >&6; }
20664
20665
20666
20667 fi
20668
20669         rm -Rf build
20670
20671
20672
20673         { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
20674 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
20675
20676
20677
20678 cat confdefs.h - <<_ACEOF >conftest.c
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684
20685
20686                 #include <linux/fs.h>
20687
20688 int
20689 main (void)
20690 {
20691
20692                 blkdev_get_by_path(NULL, 0, NULL);
20693
20694   ;
20695   return 0;
20696 }
20697
20698 _ACEOF
20699
20700
20701         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20702         echo "obj-m := conftest.o" >build/Makefile
20703         modpost_flag=''
20704         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20705         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712   (eval $ac_try) 2>&5
20713   ac_status=$?
20714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); }; }; then
20716   rc=0
20717 else
20718   $as_echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720  rc=1
20721
20722
20723 fi
20724
20725         rm -Rf build
20726
20727
20728         if test $rc -ne 0; then :
20729
20730                 { $as_echo "$as_me:$LINENO: result: no" >&5
20731 $as_echo "no" >&6; }
20732
20733         else
20734                 if test "x$enable_linux_builtin" != xyes; then
20735
20736         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
20737                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20738         rc=$?
20739         if test $rc -ne 0; then
20740                 export=0
20741                 for file in fs/block_dev.c; do
20742                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
20743                                 "$LINUX/$file" 2>/dev/null
20744                         rc=$?
20745                         if test $rc -eq 0; then
20746                                 export=1
20747                                 break;
20748                         fi
20749                 done
20750                 if test $export -eq 0; then :
20751                         rc=1
20752                 else :
20753                         rc=0
20754                 fi
20755         else :
20756                 rc=0
20757         fi
20758
20759                 fi
20760                 if test $rc -ne 0; then :
20761
20762                 { $as_echo "$as_me:$LINENO: result: no" >&5
20763 $as_echo "no" >&6; }
20764
20765                 else :
20766
20767                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20768 $as_echo "yes" >&6; }
20769
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_BLKDEV_GET_BY_PATH 1
20772 _ACEOF
20773
20774
20775                 fi
20776         fi
20777
20778
20779         { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
20780 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
20781
20782
20783
20784 cat confdefs.h - <<_ACEOF >conftest.c
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790
20791
20792                 #include <linux/fs.h>
20793
20794 int
20795 main (void)
20796 {
20797
20798                 open_bdev_exclusive(NULL, 0, NULL);
20799
20800   ;
20801   return 0;
20802 }
20803
20804 _ACEOF
20805
20806
20807         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20808         echo "obj-m := conftest.o" >build/Makefile
20809         modpost_flag=''
20810         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20811         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813   (eval $ac_try) 2>&5
20814   ac_status=$?
20815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818   (eval $ac_try) 2>&5
20819   ac_status=$?
20820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   rc=0
20823 else
20824   $as_echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826  rc=1
20827
20828
20829 fi
20830
20831         rm -Rf build
20832
20833
20834         if test $rc -ne 0; then :
20835
20836                 { $as_echo "$as_me:$LINENO: result: no" >&5
20837 $as_echo "no" >&6; }
20838
20839         else
20840                 if test "x$enable_linux_builtin" != xyes; then
20841
20842         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
20843                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20844         rc=$?
20845         if test $rc -ne 0; then
20846                 export=0
20847                 for file in fs/block_dev.c; do
20848                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
20849                                 "$LINUX/$file" 2>/dev/null
20850                         rc=$?
20851                         if test $rc -eq 0; then
20852                                 export=1
20853                                 break;
20854                         fi
20855                 done
20856                 if test $export -eq 0; then :
20857                         rc=1
20858                 else :
20859                         rc=0
20860                 fi
20861         else :
20862                 rc=0
20863         fi
20864
20865                 fi
20866                 if test $rc -ne 0; then :
20867
20868                 { $as_echo "$as_me:$LINENO: result: no" >&5
20869 $as_echo "no" >&6; }
20870
20871                 else :
20872
20873                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20874 $as_echo "yes" >&6; }
20875
20876 cat >>confdefs.h <<\_ACEOF
20877 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
20878 _ACEOF
20879
20880
20881                 fi
20882         fi
20883
20884
20885
20886         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
20887 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
20888
20889
20890 cat confdefs.h - <<_ACEOF >conftest.c
20891 /* confdefs.h.  */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h.  */
20896
20897
20898                 #include <linux/buffer_head.h>
20899
20900 int
20901 main (void)
20902 {
20903
20904                 struct block_device *bdev = NULL;
20905                 invalidate_bdev(bdev);
20906
20907   ;
20908   return 0;
20909 }
20910
20911 _ACEOF
20912
20913
20914         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20915         echo "obj-m := conftest.o" >build/Makefile
20916         modpost_flag=''
20917         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20918         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920   (eval $ac_try) 2>&5
20921   ac_status=$?
20922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925   (eval $ac_try) 2>&5
20926   ac_status=$?
20927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); }; }; then
20929
20930                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20931 $as_echo "yes" >&6; }
20932
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_1ARG_INVALIDATE_BDEV 1
20935 _ACEOF
20936
20937
20938 else
20939   $as_echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942                 { $as_echo "$as_me:$LINENO: result: no" >&5
20943 $as_echo "no" >&6; }
20944
20945
20946
20947 fi
20948
20949         rm -Rf build
20950
20951
20952
20953
20954         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
20955 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
20956         tmp_flags="$EXTRA_KCFLAGS"
20957         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20958
20959
20960 cat confdefs.h - <<_ACEOF >conftest.c
20961 /* confdefs.h.  */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h.  */
20966
20967
20968                 #include <linux/blkdev.h>
20969
20970 int
20971 main (void)
20972 {
20973
20974                 struct block_device *bdev = NULL;
20975                 bdev_logical_block_size(bdev);
20976
20977   ;
20978   return 0;
20979 }
20980
20981 _ACEOF
20982
20983
20984         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20985         echo "obj-m := conftest.o" >build/Makefile
20986         modpost_flag=''
20987         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20988         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990   (eval $ac_try) 2>&5
20991   ac_status=$?
20992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995   (eval $ac_try) 2>&5
20996   ac_status=$?
20997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; }; then
20999
21000                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21001 $as_echo "yes" >&6; }
21002
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
21005 _ACEOF
21006
21007
21008 else
21009   $as_echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012                 { $as_echo "$as_me:$LINENO: result: no" >&5
21013 $as_echo "no" >&6; }
21014
21015
21016
21017 fi
21018
21019         rm -Rf build
21020
21021
21022         EXTRA_KCFLAGS="$tmp_flags"
21023
21024
21025         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
21026 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
21027         EXTRA_KCFLAGS="-Werror"
21028
21029
21030 cat confdefs.h - <<_ACEOF >conftest.c
21031 /* confdefs.h.  */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h.  */
21036
21037
21038                 #include <linux/bio.h>
21039
21040 int
21041 main (void)
21042 {
21043
21044                 struct bio bio;
21045                 (void)bio_empty_barrier(&bio);
21046
21047   ;
21048   return 0;
21049 }
21050
21051 _ACEOF
21052
21053
21054         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21055         echo "obj-m := conftest.o" >build/Makefile
21056         modpost_flag=''
21057         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21058         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060   (eval $ac_try) 2>&5
21061   ac_status=$?
21062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065   (eval $ac_try) 2>&5
21066   ac_status=$?
21067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; }; then
21069
21070                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21071 $as_echo "yes" >&6; }
21072
21073 cat >>confdefs.h <<\_ACEOF
21074 #define HAVE_BIO_EMPTY_BARRIER 1
21075 _ACEOF
21076
21077
21078 else
21079   $as_echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082                 { $as_echo "$as_me:$LINENO: result: no" >&5
21083 $as_echo "no" >&6; }
21084
21085
21086
21087 fi
21088
21089         rm -Rf build
21090
21091
21092
21093
21094         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
21095 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
21096
21097
21098 cat confdefs.h - <<_ACEOF >conftest.c
21099 /* confdefs.h.  */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h.  */
21104
21105
21106                 #include <linux/bio.h>
21107
21108 int
21109 main (void)
21110 {
21111
21112                 int flags __attribute__ ((unused));
21113                 flags = (1 << BIO_RW_FAILFAST);
21114
21115   ;
21116   return 0;
21117 }
21118
21119 _ACEOF
21120
21121
21122         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21123         echo "obj-m := conftest.o" >build/Makefile
21124         modpost_flag=''
21125         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21126         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128   (eval $ac_try) 2>&5
21129   ac_status=$?
21130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133   (eval $ac_try) 2>&5
21134   ac_status=$?
21135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); }; }; then
21137
21138                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21139 $as_echo "yes" >&6; }
21140
21141 cat >>confdefs.h <<\_ACEOF
21142 #define HAVE_BIO_RW_FAILFAST 1
21143 _ACEOF
21144
21145
21146 else
21147   $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150                 { $as_echo "$as_me:$LINENO: result: no" >&5
21151 $as_echo "no" >&6; }
21152
21153
21154
21155 fi
21156
21157         rm -Rf build
21158
21159
21160
21161
21162         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
21163 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
21164
21165
21166 cat confdefs.h - <<_ACEOF >conftest.c
21167 /* confdefs.h.  */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h.  */
21172
21173
21174                 #include <linux/bio.h>
21175
21176 int
21177 main (void)
21178 {
21179
21180                 int flags __attribute__ ((unused));
21181                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
21182                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
21183                          (1 << BIO_RW_FAILFAST_DRIVER));
21184
21185   ;
21186   return 0;
21187 }
21188
21189 _ACEOF
21190
21191
21192         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21193         echo "obj-m := conftest.o" >build/Makefile
21194         modpost_flag=''
21195         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21196         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207
21208                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21209 $as_echo "yes" >&6; }
21210
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_BIO_RW_FAILFAST_DTD 1
21213 _ACEOF
21214
21215
21216 else
21217   $as_echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220                 { $as_echo "$as_me:$LINENO: result: no" >&5
21221 $as_echo "no" >&6; }
21222
21223
21224
21225 fi
21226
21227         rm -Rf build
21228
21229
21230
21231
21232         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
21233 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
21234
21235
21236 cat confdefs.h - <<_ACEOF >conftest.c
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242
21243
21244                 #include <linux/bio.h>
21245
21246 int
21247 main (void)
21248 {
21249
21250                 int flags __attribute__ ((unused));
21251                 flags = REQ_FAILFAST_MASK;
21252
21253   ;
21254   return 0;
21255 }
21256
21257 _ACEOF
21258
21259
21260         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21261         echo "obj-m := conftest.o" >build/Makefile
21262         modpost_flag=''
21263         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21264         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271   (eval $ac_try) 2>&5
21272   ac_status=$?
21273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; }; then
21275
21276                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21277 $as_echo "yes" >&6; }
21278
21279 cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_BIO_REQ_FAILFAST_MASK 1
21281 _ACEOF
21282
21283
21284 else
21285   $as_echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21287
21288                 { $as_echo "$as_me:$LINENO: result: no" >&5
21289 $as_echo "no" >&6; }
21290
21291
21292
21293 fi
21294
21295         rm -Rf build
21296
21297
21298
21299
21300         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
21301 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
21302         tmp_flags="$EXTRA_KCFLAGS"
21303         EXTRA_KCFLAGS="-Werror"
21304
21305
21306 cat confdefs.h - <<_ACEOF >conftest.c
21307 /* confdefs.h.  */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h.  */
21312
21313
21314                 #include <linux/bio.h>
21315
21316 int
21317 main (void)
21318 {
21319
21320                 void (*wanted_end_io)(struct bio *, int) = NULL;
21321                 bio_end_io_t *local_end_io __attribute__ ((unused));
21322
21323                 local_end_io = wanted_end_io;
21324
21325   ;
21326   return 0;
21327 }
21328
21329 _ACEOF
21330
21331
21332         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21333         echo "obj-m := conftest.o" >build/Makefile
21334         modpost_flag=''
21335         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21336         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338   (eval $ac_try) 2>&5
21339   ac_status=$?
21340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347
21348                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21349 $as_echo "yes" >&6; }
21350
21351 cat >>confdefs.h <<\_ACEOF
21352 #define HAVE_2ARGS_BIO_END_IO_T 1
21353 _ACEOF
21354
21355
21356 else
21357   $as_echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360                 { $as_echo "$as_me:$LINENO: result: no" >&5
21361 $as_echo "no" >&6; }
21362
21363
21364
21365 fi
21366
21367         rm -Rf build
21368
21369
21370         EXTRA_KCFLAGS="$tmp_flags"
21371
21372
21373         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
21374 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
21375
21376
21377 cat confdefs.h - <<_ACEOF >conftest.c
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383
21384
21385                 #include <linux/bio.h>
21386
21387 int
21388 main (void)
21389 {
21390
21391                 int flags __attribute__ ((unused));
21392                 flags = BIO_RW_SYNC;
21393
21394   ;
21395   return 0;
21396 }
21397
21398 _ACEOF
21399
21400
21401         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21402         echo "obj-m := conftest.o" >build/Makefile
21403         modpost_flag=''
21404         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21405         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407   (eval $ac_try) 2>&5
21408   ac_status=$?
21409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412   (eval $ac_try) 2>&5
21413   ac_status=$?
21414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; }; then
21416
21417                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21418 $as_echo "yes" >&6; }
21419
21420 cat >>confdefs.h <<\_ACEOF
21421 #define HAVE_BIO_RW_SYNC 1
21422 _ACEOF
21423
21424
21425 else
21426   $as_echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429                 { $as_echo "$as_me:$LINENO: result: no" >&5
21430 $as_echo "no" >&6; }
21431
21432
21433
21434 fi
21435
21436         rm -Rf build
21437
21438
21439
21440
21441         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
21442 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
21443
21444
21445 cat confdefs.h - <<_ACEOF >conftest.c
21446 /* confdefs.h.  */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h.  */
21451
21452
21453                 #include <linux/bio.h>
21454
21455 int
21456 main (void)
21457 {
21458
21459                 int flags __attribute__ ((unused));
21460                 flags = BIO_RW_SYNCIO;
21461
21462   ;
21463   return 0;
21464 }
21465
21466 _ACEOF
21467
21468
21469         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21470         echo "obj-m := conftest.o" >build/Makefile
21471         modpost_flag=''
21472         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21473         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475   (eval $ac_try) 2>&5
21476   ac_status=$?
21477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; }; then
21484
21485                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21486 $as_echo "yes" >&6; }
21487
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_BIO_RW_SYNCIO 1
21490 _ACEOF
21491
21492
21493 else
21494   $as_echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21496
21497                 { $as_echo "$as_me:$LINENO: result: no" >&5
21498 $as_echo "no" >&6; }
21499
21500
21501
21502 fi
21503
21504         rm -Rf build
21505
21506
21507
21508
21509         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
21510 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
21511
21512
21513 cat confdefs.h - <<_ACEOF >conftest.c
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519
21520
21521                 #include <linux/bio.h>
21522
21523 int
21524 main (void)
21525 {
21526
21527                 int flags __attribute__ ((unused));
21528                 flags = REQ_SYNC;
21529
21530   ;
21531   return 0;
21532 }
21533
21534 _ACEOF
21535
21536
21537         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21538         echo "obj-m := conftest.o" >build/Makefile
21539         modpost_flag=''
21540         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21541         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543   (eval $ac_try) 2>&5
21544   ac_status=$?
21545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548   (eval $ac_try) 2>&5
21549   ac_status=$?
21550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); }; }; then
21552
21553                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21554 $as_echo "yes" >&6; }
21555
21556 cat >>confdefs.h <<\_ACEOF
21557 #define HAVE_REQ_SYNC 1
21558 _ACEOF
21559
21560
21561 else
21562   $as_echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565                 { $as_echo "$as_me:$LINENO: result: no" >&5
21566 $as_echo "no" >&6; }
21567
21568
21569
21570 fi
21571
21572         rm -Rf build
21573
21574
21575
21576
21577         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
21578 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
21579         tmp_flags="$EXTRA_KCFLAGS"
21580         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21581
21582
21583 cat confdefs.h - <<_ACEOF >conftest.c
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589
21590
21591                 #include <linux/blkdev.h>
21592
21593 int
21594 main (void)
21595 {
21596
21597                 struct request *req = NULL;
21598                 (void) blk_end_request(req, 0, 0);
21599
21600   ;
21601   return 0;
21602 }
21603
21604 _ACEOF
21605
21606
21607         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21608         echo "obj-m := conftest.o" >build/Makefile
21609         modpost_flag=''
21610         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21611         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613   (eval $ac_try) 2>&5
21614   ac_status=$?
21615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618   (eval $ac_try) 2>&5
21619   ac_status=$?
21620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); }; }; then
21622
21623                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21624 $as_echo "yes" >&6; }
21625
21626 cat >>confdefs.h <<\_ACEOF
21627 #define HAVE_BLK_END_REQUEST 1
21628 _ACEOF
21629
21630
21631 else
21632   $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635                 { $as_echo "$as_me:$LINENO: result: no" >&5
21636 $as_echo "no" >&6; }
21637
21638
21639
21640 fi
21641
21642         rm -Rf build
21643
21644
21645
21646         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
21647 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
21648
21649
21650 cat confdefs.h - <<_ACEOF >conftest.c
21651 /* confdefs.h.  */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h.  */
21656
21657
21658                 #include <linux/module.h>
21659                 #include <linux/blkdev.h>
21660
21661                 MODULE_LICENSE("CDDL");
21662
21663 int
21664 main (void)
21665 {
21666
21667                 struct request *req = NULL;
21668                 (void) blk_end_request(req, 0, 0);
21669
21670   ;
21671   return 0;
21672 }
21673
21674 _ACEOF
21675
21676
21677         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21678         echo "obj-m := conftest.o" >build/Makefile
21679         modpost_flag=''
21680         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21681         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683   (eval $ac_try) 2>&5
21684   ac_status=$?
21685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; }; then
21692
21693                 { $as_echo "$as_me:$LINENO: result: no" >&5
21694 $as_echo "no" >&6; }
21695
21696 else
21697   $as_echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21699
21700                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21701 $as_echo "yes" >&6; }
21702
21703 cat >>confdefs.h <<\_ACEOF
21704 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
21705 _ACEOF
21706
21707
21708
21709
21710 fi
21711
21712         rm -Rf build
21713
21714
21715         EXTRA_KCFLAGS="$tmp_flags"
21716
21717
21718         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
21719 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
21720         tmp_flags="$EXTRA_KCFLAGS"
21721         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21722
21723
21724 cat confdefs.h - <<_ACEOF >conftest.c
21725 /* confdefs.h.  */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h.  */
21730
21731
21732                 #include <linux/blkdev.h>
21733
21734 int
21735 main (void)
21736 {
21737
21738                 struct request_queue *q = NULL;
21739                 (void) blk_queue_flush(q, REQ_FLUSH);
21740
21741   ;
21742   return 0;
21743 }
21744
21745 _ACEOF
21746
21747
21748         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21749         echo "obj-m := conftest.o" >build/Makefile
21750         modpost_flag=''
21751         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21752         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759   (eval $ac_try) 2>&5
21760   ac_status=$?
21761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); }; }; then
21763
21764                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21765 $as_echo "yes" >&6; }
21766
21767 cat >>confdefs.h <<\_ACEOF
21768 #define HAVE_BLK_QUEUE_FLUSH 1
21769 _ACEOF
21770
21771
21772 else
21773   $as_echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21775
21776                 { $as_echo "$as_me:$LINENO: result: no" >&5
21777 $as_echo "no" >&6; }
21778
21779
21780
21781 fi
21782
21783         rm -Rf build
21784
21785
21786
21787         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
21788 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
21789
21790
21791 cat confdefs.h - <<_ACEOF >conftest.c
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797
21798
21799                 #include <linux/module.h>
21800                 #include <linux/blkdev.h>
21801
21802                 MODULE_LICENSE("CDDL");
21803
21804 int
21805 main (void)
21806 {
21807
21808                 struct request_queue *q = NULL;
21809                 (void) blk_queue_flush(q, REQ_FLUSH);
21810
21811   ;
21812   return 0;
21813 }
21814
21815 _ACEOF
21816
21817
21818         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21819         echo "obj-m := conftest.o" >build/Makefile
21820         modpost_flag=''
21821         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21822         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829   (eval $ac_try) 2>&5
21830   ac_status=$?
21831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; }; then
21833
21834                 { $as_echo "$as_me:$LINENO: result: no" >&5
21835 $as_echo "no" >&6; }
21836
21837 else
21838   $as_echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21842 $as_echo "yes" >&6; }
21843
21844 cat >>confdefs.h <<\_ACEOF
21845 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
21846 _ACEOF
21847
21848
21849
21850
21851 fi
21852
21853         rm -Rf build
21854
21855
21856         EXTRA_KCFLAGS="$tmp_flags"
21857
21858
21859         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
21860 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
21861         tmp_flags="$EXTRA_KCFLAGS"
21862         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21863
21864
21865 cat confdefs.h - <<_ACEOF >conftest.c
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871
21872
21873                 #include <linux/blkdev.h>
21874
21875 int
21876 main (void)
21877 {
21878
21879                 struct request_queue *q = NULL;
21880                 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
21881
21882   ;
21883   return 0;
21884 }
21885
21886 _ACEOF
21887
21888
21889         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21890         echo "obj-m := conftest.o" >build/Makefile
21891         modpost_flag=''
21892         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21893         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895   (eval $ac_try) 2>&5
21896   ac_status=$?
21897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900   (eval $ac_try) 2>&5
21901   ac_status=$?
21902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); }; }; then
21904
21905                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21906 $as_echo "yes" >&6; }
21907
21908 cat >>confdefs.h <<\_ACEOF
21909 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
21910 _ACEOF
21911
21912
21913 else
21914   $as_echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917                 { $as_echo "$as_me:$LINENO: result: no" >&5
21918 $as_echo "no" >&6; }
21919
21920
21921
21922 fi
21923
21924         rm -Rf build
21925
21926
21927         EXTRA_KCFLAGS="$tmp_flags"
21928
21929
21930         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
21931 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
21932         tmp_flags="$EXTRA_KCFLAGS"
21933         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21934
21935
21936 cat confdefs.h - <<_ACEOF >conftest.c
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942
21943
21944                 #include <linux/blkdev.h>
21945
21946 int
21947 main (void)
21948 {
21949
21950                 struct request_queue *q = NULL;
21951                 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
21952
21953   ;
21954   return 0;
21955 }
21956
21957 _ACEOF
21958
21959
21960         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21961         echo "obj-m := conftest.o" >build/Makefile
21962         modpost_flag=''
21963         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21964         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971   (eval $ac_try) 2>&5
21972   ac_status=$?
21973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); }; }; then
21975
21976                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21977 $as_echo "yes" >&6; }
21978
21979 cat >>confdefs.h <<\_ACEOF
21980 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
21981 _ACEOF
21982
21983
21984 else
21985   $as_echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988                 { $as_echo "$as_me:$LINENO: result: no" >&5
21989 $as_echo "no" >&6; }
21990
21991
21992
21993 fi
21994
21995         rm -Rf build
21996
21997
21998         EXTRA_KCFLAGS="$tmp_flags"
21999
22000
22001         { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
22002 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
22003         tmp_flags="$EXTRA_KCFLAGS"
22004         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22005
22006
22007 cat confdefs.h - <<_ACEOF >conftest.c
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013
22014
22015                 #include <linux/blkdev.h>
22016
22017 int
22018 main (void)
22019 {
22020
22021                 struct request_queue *q = NULL;
22022                 unsigned short block_size = 1;
22023                 (void) blk_queue_physical_block_size(q, block_size);
22024
22025   ;
22026   return 0;
22027 }
22028
22029 _ACEOF
22030
22031
22032         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22033         echo "obj-m := conftest.o" >build/Makefile
22034         modpost_flag=''
22035         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22036         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038   (eval $ac_try) 2>&5
22039   ac_status=$?
22040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047
22048                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22049 $as_echo "yes" >&6; }
22050
22051 cat >>confdefs.h <<\_ACEOF
22052 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
22053 _ACEOF
22054
22055
22056 else
22057   $as_echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060                 { $as_echo "$as_me:$LINENO: result: no" >&5
22061 $as_echo "no" >&6; }
22062
22063
22064
22065 fi
22066
22067         rm -Rf build
22068
22069
22070         EXTRA_KCFLAGS="$tmp_flags"
22071
22072
22073         { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
22074 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
22075         tmp_flags="$EXTRA_KCFLAGS"
22076         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22077
22078
22079 cat confdefs.h - <<_ACEOF >conftest.c
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085
22086
22087                 #include <linux/blkdev.h>
22088
22089 int
22090 main (void)
22091 {
22092
22093                 struct request_queue *q = NULL;
22094                 unsigned int opt = 1;
22095                 (void) blk_queue_io_opt(q, opt);
22096
22097   ;
22098   return 0;
22099 }
22100
22101 _ACEOF
22102
22103
22104         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22105         echo "obj-m := conftest.o" >build/Makefile
22106         modpost_flag=''
22107         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22108         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110   (eval $ac_try) 2>&5
22111   ac_status=$?
22112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115   (eval $ac_try) 2>&5
22116   ac_status=$?
22117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); }; }; then
22119
22120                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22121 $as_echo "yes" >&6; }
22122
22123 cat >>confdefs.h <<\_ACEOF
22124 #define HAVE_BLK_QUEUE_IO_OPT 1
22125 _ACEOF
22126
22127
22128 else
22129   $as_echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132                 { $as_echo "$as_me:$LINENO: result: no" >&5
22133 $as_echo "no" >&6; }
22134
22135
22136
22137 fi
22138
22139         rm -Rf build
22140
22141
22142         EXTRA_KCFLAGS="$tmp_flags"
22143
22144
22145         { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
22146 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
22147         tmp_flags="$EXTRA_KCFLAGS"
22148         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22149
22150
22151 cat confdefs.h - <<_ACEOF >conftest.c
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157
22158
22159                 #include <linux/blkdev.h>
22160
22161 int
22162 main (void)
22163 {
22164
22165                 struct request_queue *q = NULL;
22166                 (void) blk_queue_nonrot(q);
22167
22168   ;
22169   return 0;
22170 }
22171
22172 _ACEOF
22173
22174
22175         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22176         echo "obj-m := conftest.o" >build/Makefile
22177         modpost_flag=''
22178         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22179         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181   (eval $ac_try) 2>&5
22182   ac_status=$?
22183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186   (eval $ac_try) 2>&5
22187   ac_status=$?
22188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); }; }; then
22190
22191                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22192 $as_echo "yes" >&6; }
22193
22194 cat >>confdefs.h <<\_ACEOF
22195 #define HAVE_BLK_QUEUE_NONROT 1
22196 _ACEOF
22197
22198
22199 else
22200   $as_echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22202
22203                 { $as_echo "$as_me:$LINENO: result: no" >&5
22204 $as_echo "no" >&6; }
22205
22206
22207
22208 fi
22209
22210         rm -Rf build
22211
22212
22213         EXTRA_KCFLAGS="$tmp_flags"
22214
22215
22216         { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
22217 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
22218         tmp_flags="$EXTRA_KCFLAGS"
22219         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22220
22221
22222 cat confdefs.h - <<_ACEOF >conftest.c
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228
22229
22230                 #include <linux/blkdev.h>
22231
22232 int
22233 main (void)
22234 {
22235
22236                 struct request_queue *q = NULL;
22237                 (void) blk_queue_discard(q);
22238
22239   ;
22240   return 0;
22241 }
22242
22243 _ACEOF
22244
22245
22246         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22247         echo "obj-m := conftest.o" >build/Makefile
22248         modpost_flag=''
22249         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22250         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257   (eval $ac_try) 2>&5
22258   ac_status=$?
22259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); }; }; then
22261
22262                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22263 $as_echo "yes" >&6; }
22264
22265 cat >>confdefs.h <<\_ACEOF
22266 #define HAVE_BLK_QUEUE_DISCARD 1
22267 _ACEOF
22268
22269
22270 else
22271   $as_echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274                 { $as_echo "$as_me:$LINENO: result: no" >&5
22275 $as_echo "no" >&6; }
22276
22277
22278
22279 fi
22280
22281         rm -Rf build
22282
22283
22284         EXTRA_KCFLAGS="$tmp_flags"
22285
22286
22287         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
22288 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
22289         tmp_flags="$EXTRA_KCFLAGS"
22290         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22291
22292
22293 cat confdefs.h - <<_ACEOF >conftest.c
22294 /* confdefs.h.  */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h.  */
22299
22300
22301                 #include <linux/blkdev.h>
22302
22303 int
22304 main (void)
22305 {
22306
22307                 struct request_queue *q = NULL;
22308                 (void) blk_fetch_request(q);
22309
22310   ;
22311   return 0;
22312 }
22313
22314 _ACEOF
22315
22316
22317         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22318         echo "obj-m := conftest.o" >build/Makefile
22319         modpost_flag=''
22320         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22321         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323   (eval $ac_try) 2>&5
22324   ac_status=$?
22325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22328   (eval $ac_try) 2>&5
22329   ac_status=$?
22330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); }; }; then
22332
22333                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22334 $as_echo "yes" >&6; }
22335
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_BLK_FETCH_REQUEST 1
22338 _ACEOF
22339
22340
22341 else
22342   $as_echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345                 { $as_echo "$as_me:$LINENO: result: no" >&5
22346 $as_echo "no" >&6; }
22347
22348
22349
22350 fi
22351
22352         rm -Rf build
22353
22354
22355         EXTRA_KCFLAGS="$tmp_flags"
22356
22357
22358         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
22359 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
22360         tmp_flags="$EXTRA_KCFLAGS"
22361         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22362
22363
22364 cat confdefs.h - <<_ACEOF >conftest.c
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370
22371
22372                 #include <linux/blkdev.h>
22373
22374 int
22375 main (void)
22376 {
22377
22378                 struct request_queue *q = NULL;
22379                 struct request *req = NULL;
22380                 blk_requeue_request(q, req);
22381
22382   ;
22383   return 0;
22384 }
22385
22386 _ACEOF
22387
22388
22389         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22390         echo "obj-m := conftest.o" >build/Makefile
22391         modpost_flag=''
22392         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22393         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400   (eval $ac_try) 2>&5
22401   ac_status=$?
22402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); }; }; then
22404
22405                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22406 $as_echo "yes" >&6; }
22407
22408 cat >>confdefs.h <<\_ACEOF
22409 #define HAVE_BLK_REQUEUE_REQUEST 1
22410 _ACEOF
22411
22412
22413 else
22414   $as_echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416
22417                 { $as_echo "$as_me:$LINENO: result: no" >&5
22418 $as_echo "no" >&6; }
22419
22420
22421
22422 fi
22423
22424         rm -Rf build
22425
22426
22427         EXTRA_KCFLAGS="$tmp_flags"
22428
22429
22430         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
22431 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
22432         tmp_flags="$EXTRA_KCFLAGS"
22433         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22434
22435
22436 cat confdefs.h - <<_ACEOF >conftest.c
22437 /* confdefs.h.  */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h.  */
22442
22443
22444                 #include <linux/blkdev.h>
22445
22446 int
22447 main (void)
22448 {
22449
22450                 struct request *req = NULL;
22451                 (void) blk_rq_bytes(req);
22452
22453   ;
22454   return 0;
22455 }
22456
22457 _ACEOF
22458
22459
22460         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22461         echo "obj-m := conftest.o" >build/Makefile
22462         modpost_flag=''
22463         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22464         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466   (eval $ac_try) 2>&5
22467   ac_status=$?
22468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471   (eval $ac_try) 2>&5
22472   ac_status=$?
22473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); }; }; then
22475
22476                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22477 $as_echo "yes" >&6; }
22478
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_BLK_RQ_BYTES 1
22481 _ACEOF
22482
22483
22484 else
22485   $as_echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488                 { $as_echo "$as_me:$LINENO: result: no" >&5
22489 $as_echo "no" >&6; }
22490
22491
22492
22493 fi
22494
22495         rm -Rf build
22496
22497
22498
22499         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
22500 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
22501
22502
22503 cat confdefs.h - <<_ACEOF >conftest.c
22504 /* confdefs.h.  */
22505 _ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h.  */
22509
22510
22511                 #include <linux/module.h>
22512                 #include <linux/blkdev.h>
22513
22514                 MODULE_LICENSE("CDDL");
22515
22516 int
22517 main (void)
22518 {
22519
22520                 struct request *req = NULL;
22521                 (void) blk_rq_bytes(req);
22522
22523   ;
22524   return 0;
22525 }
22526
22527 _ACEOF
22528
22529
22530         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22531         echo "obj-m := conftest.o" >build/Makefile
22532         modpost_flag=''
22533         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22534         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536   (eval $ac_try) 2>&5
22537   ac_status=$?
22538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541   (eval $ac_try) 2>&5
22542   ac_status=$?
22543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); }; }; then
22545
22546                 { $as_echo "$as_me:$LINENO: result: no" >&5
22547 $as_echo "no" >&6; }
22548
22549 else
22550   $as_echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22552
22553                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22554 $as_echo "yes" >&6; }
22555
22556 cat >>confdefs.h <<\_ACEOF
22557 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
22558 _ACEOF
22559
22560
22561
22562
22563 fi
22564
22565         rm -Rf build
22566
22567
22568         EXTRA_KCFLAGS="$tmp_flags"
22569
22570
22571         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
22572 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
22573         tmp_flags="$EXTRA_KCFLAGS"
22574         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22575
22576
22577 cat confdefs.h - <<_ACEOF >conftest.c
22578 /* confdefs.h.  */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h.  */
22583
22584
22585                 #include <linux/blkdev.h>
22586
22587 int
22588 main (void)
22589 {
22590
22591                 struct request *req = NULL;
22592                 (void) blk_rq_pos(req);
22593
22594   ;
22595   return 0;
22596 }
22597
22598 _ACEOF
22599
22600
22601         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22602         echo "obj-m := conftest.o" >build/Makefile
22603         modpost_flag=''
22604         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22605         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607   (eval $ac_try) 2>&5
22608   ac_status=$?
22609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612   (eval $ac_try) 2>&5
22613   ac_status=$?
22614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); }; }; then
22616
22617                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22618 $as_echo "yes" >&6; }
22619
22620 cat >>confdefs.h <<\_ACEOF
22621 #define HAVE_BLK_RQ_POS 1
22622 _ACEOF
22623
22624
22625 else
22626   $as_echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629                 { $as_echo "$as_me:$LINENO: result: no" >&5
22630 $as_echo "no" >&6; }
22631
22632
22633
22634 fi
22635
22636         rm -Rf build
22637
22638
22639         EXTRA_KCFLAGS="$tmp_flags"
22640
22641
22642         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
22643 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
22644         tmp_flags="$EXTRA_KCFLAGS"
22645         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22646
22647
22648 cat confdefs.h - <<_ACEOF >conftest.c
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654
22655
22656                 #include <linux/blkdev.h>
22657
22658 int
22659 main (void)
22660 {
22661
22662                 struct request *req = NULL;
22663                 (void) blk_rq_sectors(req);
22664
22665   ;
22666   return 0;
22667 }
22668
22669 _ACEOF
22670
22671
22672         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22673         echo "obj-m := conftest.o" >build/Makefile
22674         modpost_flag=''
22675         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22676         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; }; then
22687
22688                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22689 $as_echo "yes" >&6; }
22690
22691 cat >>confdefs.h <<\_ACEOF
22692 #define HAVE_BLK_RQ_SECTORS 1
22693 _ACEOF
22694
22695
22696 else
22697   $as_echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700                 { $as_echo "$as_me:$LINENO: result: no" >&5
22701 $as_echo "no" >&6; }
22702
22703
22704
22705 fi
22706
22707         rm -Rf build
22708
22709
22710         EXTRA_KCFLAGS="$tmp_flags"
22711
22712
22713         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
22714 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
22715         tmp_flags="$EXTRA_KCFLAGS"
22716         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22717
22718
22719 cat confdefs.h - <<_ACEOF >conftest.c
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725
22726
22727                 #include <linux/blkdev.h>
22728
22729 int
22730 main (void)
22731 {
22732
22733                 struct gendisk *disk = NULL;
22734                 (void) get_disk_ro(disk);
22735
22736   ;
22737   return 0;
22738 }
22739
22740 _ACEOF
22741
22742
22743         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22744         echo "obj-m := conftest.o" >build/Makefile
22745         modpost_flag=''
22746         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22747         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754   (eval $ac_try) 2>&5
22755   ac_status=$?
22756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); }; }; then
22758
22759                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22760 $as_echo "yes" >&6; }
22761
22762 cat >>confdefs.h <<\_ACEOF
22763 #define HAVE_GET_DISK_RO 1
22764 _ACEOF
22765
22766
22767 else
22768   $as_echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771                 { $as_echo "$as_me:$LINENO: result: no" >&5
22772 $as_echo "no" >&6; }
22773
22774
22775
22776 fi
22777
22778         rm -Rf build
22779
22780
22781         EXTRA_KCFLAGS="$tmp_flags"
22782
22783         { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
22784 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
22785
22786
22787
22788 cat confdefs.h - <<_ACEOF >conftest.c
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794
22795
22796                 #include <linux/genhd.h>
22797
22798 int
22799 main (void)
22800 {
22801
22802                 get_gendisk(0, NULL);
22803
22804   ;
22805   return 0;
22806 }
22807
22808 _ACEOF
22809
22810
22811         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22812         echo "obj-m := conftest.o" >build/Makefile
22813         modpost_flag=''
22814         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22815         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817   (eval $ac_try) 2>&5
22818   ac_status=$?
22819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; }; then
22826   rc=0
22827 else
22828   $as_echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830  rc=1
22831
22832
22833 fi
22834
22835         rm -Rf build
22836
22837
22838         if test $rc -ne 0; then :
22839
22840                 { $as_echo "$as_me:$LINENO: result: no" >&5
22841 $as_echo "no" >&6; }
22842
22843         else
22844                 if test "x$enable_linux_builtin" != xyes; then
22845
22846         grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
22847                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22848         rc=$?
22849         if test $rc -ne 0; then
22850                 export=0
22851                 for file in block/genhd.c; do
22852                         grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
22853                                 "$LINUX/$file" 2>/dev/null
22854                         rc=$?
22855                         if test $rc -eq 0; then
22856                                 export=1
22857                                 break;
22858                         fi
22859                 done
22860                 if test $export -eq 0; then :
22861                         rc=1
22862                 else :
22863                         rc=0
22864                 fi
22865         else :
22866                 rc=0
22867         fi
22868
22869                 fi
22870                 if test $rc -ne 0; then :
22871
22872                 { $as_echo "$as_me:$LINENO: result: no" >&5
22873 $as_echo "no" >&6; }
22874
22875                 else :
22876
22877                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22878 $as_echo "yes" >&6; }
22879
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_GET_GENDISK 1
22882 _ACEOF
22883
22884
22885                 fi
22886         fi
22887
22888
22889
22890         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
22891 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
22892         tmp_flags="$EXTRA_KCFLAGS"
22893         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22894
22895
22896 cat confdefs.h - <<_ACEOF >conftest.c
22897 /* confdefs.h.  */
22898 _ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h.  */
22902
22903
22904                 #include <linux/blkdev.h>
22905
22906 int
22907 main (void)
22908 {
22909
22910                 struct request *req = NULL;
22911                 (void) rq_is_sync(req);
22912
22913   ;
22914   return 0;
22915 }
22916
22917 _ACEOF
22918
22919
22920         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22921         echo "obj-m := conftest.o" >build/Makefile
22922         modpost_flag=''
22923         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22924         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926   (eval $ac_try) 2>&5
22927   ac_status=$?
22928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931   (eval $ac_try) 2>&5
22932   ac_status=$?
22933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); }; }; then
22935
22936                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22937 $as_echo "yes" >&6; }
22938
22939 cat >>confdefs.h <<\_ACEOF
22940 #define HAVE_RQ_IS_SYNC 1
22941 _ACEOF
22942
22943
22944 else
22945   $as_echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948                 { $as_echo "$as_me:$LINENO: result: no" >&5
22949 $as_echo "no" >&6; }
22950
22951
22952
22953 fi
22954
22955         rm -Rf build
22956
22957
22958         EXTRA_KCFLAGS="$tmp_flags"
22959
22960
22961         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
22962 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
22963         tmp_flags="$EXTRA_KCFLAGS"
22964         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22965
22966
22967 cat confdefs.h - <<_ACEOF >conftest.c
22968 /* confdefs.h.  */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h.  */
22973
22974
22975                 #include <linux/blkdev.h>
22976
22977 int
22978 main (void)
22979 {
22980
22981                 struct bio_vec *bv;
22982                 struct req_iterator iter;
22983                 struct request *req = NULL;
22984                 rq_for_each_segment(bv, req, iter) { }
22985
22986   ;
22987   return 0;
22988 }
22989
22990 _ACEOF
22991
22992
22993         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22994         echo "obj-m := conftest.o" >build/Makefile
22995         modpost_flag=''
22996         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22997         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999   (eval $ac_try) 2>&5
23000   ac_status=$?
23001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004   (eval $ac_try) 2>&5
23005   ac_status=$?
23006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); }; }; then
23008
23009                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23010 $as_echo "yes" >&6; }
23011
23012 cat >>confdefs.h <<\_ACEOF
23013 #define HAVE_RQ_FOR_EACH_SEGMENT 1
23014 _ACEOF
23015
23016
23017 else
23018   $as_echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23020
23021                 { $as_echo "$as_me:$LINENO: result: no" >&5
23022 $as_echo "no" >&6; }
23023
23024
23025
23026 fi
23027
23028         rm -Rf build
23029
23030
23031         EXTRA_KCFLAGS="$tmp_flags"
23032
23033
23034         { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
23035 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
23036
23037
23038 cat confdefs.h - <<_ACEOF >conftest.c
23039 /* confdefs.h.  */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h.  */
23044
23045
23046                 #include <linux/blkdev.h>
23047
23048 int
23049 main (void)
23050 {
23051
23052                 struct queue_limits ql __attribute__ ((unused));
23053
23054                 ql.discard_granularity = 0;
23055
23056   ;
23057   return 0;
23058 }
23059
23060 _ACEOF
23061
23062
23063         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23064         echo "obj-m := conftest.o" >build/Makefile
23065         modpost_flag=''
23066         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23067         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069   (eval $ac_try) 2>&5
23070   ac_status=$?
23071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23074   (eval $ac_try) 2>&5
23075   ac_status=$?
23076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); }; }; then
23078
23079                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23080 $as_echo "yes" >&6; }
23081
23082 cat >>confdefs.h <<\_ACEOF
23083 #define HAVE_DISCARD_GRANULARITY 1
23084 _ACEOF
23085
23086
23087 else
23088   $as_echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091                 { $as_echo "$as_me:$LINENO: result: no" >&5
23092 $as_echo "no" >&6; }
23093
23094
23095
23096 fi
23097
23098         rm -Rf build
23099
23100
23101
23102         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
23103 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
23104
23105
23106 cat confdefs.h - <<_ACEOF >conftest.c
23107 /* confdefs.h.  */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h.  */
23112
23113
23114                 #include <linux/fs.h>
23115                 #include <linux/xattr.h>
23116
23117                 const struct xattr_handler xattr_test_handler = {
23118                         .prefix = "test",
23119                         .get    = NULL,
23120                         .set    = NULL,
23121                 };
23122
23123                 const struct xattr_handler *xattr_handlers[] = {
23124                         &xattr_test_handler,
23125                 };
23126
23127 int
23128 main (void)
23129 {
23130
23131                 struct super_block sb __attribute__ ((unused));
23132
23133                 sb.s_xattr = xattr_handlers;
23134
23135   ;
23136   return 0;
23137 }
23138
23139 _ACEOF
23140
23141
23142         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23143         echo "obj-m := conftest.o" >build/Makefile
23144         modpost_flag=''
23145         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23146         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148   (eval $ac_try) 2>&5
23149   ac_status=$?
23150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153   (eval $ac_try) 2>&5
23154   ac_status=$?
23155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); }; }; then
23157
23158                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23159 $as_echo "yes" >&6; }
23160
23161 cat >>confdefs.h <<\_ACEOF
23162 #define HAVE_CONST_XATTR_HANDLER 1
23163 _ACEOF
23164
23165
23166 else
23167   $as_echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170                 { $as_echo "$as_me:$LINENO: result: no" >&5
23171 $as_echo "no" >&6; }
23172
23173
23174
23175 fi
23176
23177         rm -Rf build
23178
23179
23180
23181
23182         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
23183 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
23184
23185
23186 cat confdefs.h - <<_ACEOF >conftest.c
23187 /* confdefs.h.  */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h.  */
23192
23193
23194                 #include <linux/xattr.h>
23195
23196 int
23197 main (void)
23198 {
23199
23200                 int (*get)(struct dentry *dentry, const char *name,
23201                     void *buffer, size_t size, int handler_flags) = NULL;
23202                 struct xattr_handler xops __attribute__ ((unused));
23203
23204                 xops.get = get;
23205
23206   ;
23207   return 0;
23208 }
23209
23210 _ACEOF
23211
23212
23213         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23214         echo "obj-m := conftest.o" >build/Makefile
23215         modpost_flag=''
23216         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23217         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219   (eval $ac_try) 2>&5
23220   ac_status=$?
23221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; }; then
23228
23229                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23230 $as_echo "yes" >&6; }
23231
23232 cat >>confdefs.h <<\_ACEOF
23233 #define HAVE_DENTRY_XATTR_GET 1
23234 _ACEOF
23235
23236
23237 else
23238   $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241                 { $as_echo "$as_me:$LINENO: result: no" >&5
23242 $as_echo "no" >&6; }
23243
23244
23245
23246 fi
23247
23248         rm -Rf build
23249
23250
23251
23252
23253         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
23254 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
23255
23256
23257 cat confdefs.h - <<_ACEOF >conftest.c
23258 /* confdefs.h.  */
23259 _ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h.  */
23263
23264
23265                 #include <linux/xattr.h>
23266
23267 int
23268 main (void)
23269 {
23270
23271                 int (*set)(struct dentry *dentry, const char *name,
23272                     const void *buffer, size_t size, int flags,
23273                     int handler_flags) = NULL;
23274                 struct xattr_handler xops __attribute__ ((unused));
23275
23276                 xops.set = set;
23277
23278   ;
23279   return 0;
23280 }
23281
23282 _ACEOF
23283
23284
23285         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23286         echo "obj-m := conftest.o" >build/Makefile
23287         modpost_flag=''
23288         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23289         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296   (eval $ac_try) 2>&5
23297   ac_status=$?
23298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); }; }; then
23300
23301                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23302 $as_echo "yes" >&6; }
23303
23304 cat >>confdefs.h <<\_ACEOF
23305 #define HAVE_DENTRY_XATTR_SET 1
23306 _ACEOF
23307
23308
23309 else
23310   $as_echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23312
23313                 { $as_echo "$as_me:$LINENO: result: no" >&5
23314 $as_echo "no" >&6; }
23315
23316
23317
23318 fi
23319
23320         rm -Rf build
23321
23322
23323
23324
23325         { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
23326 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
23327
23328
23329
23330 cat confdefs.h - <<_ACEOF >conftest.c
23331 /* confdefs.h.  */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h.  */
23336
23337
23338                 #include <linux/fs.h>
23339
23340                 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
23341                 static struct super_operations sops __attribute__ ((unused)) = {
23342                         .show_options = show_options,
23343                 };
23344
23345 int
23346 main (void)
23347 {
23348
23349
23350   ;
23351   return 0;
23352 }
23353
23354 _ACEOF
23355
23356
23357         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23358         echo "obj-m := conftest.o" >build/Makefile
23359         modpost_flag=''
23360         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23361         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363   (eval $ac_try) 2>&5
23364   ac_status=$?
23365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368   (eval $ac_try) 2>&5
23369   ac_status=$?
23370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); }; }; then
23372
23373                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23374 $as_echo "yes" >&6; }
23375
23376 cat >>confdefs.h <<\_ACEOF
23377 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
23378 _ACEOF
23379
23380
23381 else
23382   $as_echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23384
23385                 { $as_echo "$as_me:$LINENO: result: no" >&5
23386 $as_echo "no" >&6; }
23387
23388
23389
23390 fi
23391
23392         rm -Rf build
23393
23394
23395
23396
23397         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
23398 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
23399
23400
23401
23402 cat confdefs.h - <<_ACEOF >conftest.c
23403 /* confdefs.h.  */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h.  */
23408
23409
23410                 #include <linux/fs.h>
23411
23412 int
23413 main (void)
23414 {
23415
23416                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
23417                 struct file_operations fops __attribute__ ((unused));
23418
23419                 fops.fsync = fsync;
23420
23421   ;
23422   return 0;
23423 }
23424
23425 _ACEOF
23426
23427
23428         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23429         echo "obj-m := conftest.o" >build/Makefile
23430         modpost_flag=''
23431         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23432         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439   (eval $ac_try) 2>&5
23440   ac_status=$?
23441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); }; }; then
23443
23444                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
23445 $as_echo "dentry" >&6; }
23446
23447 cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_FSYNC_WITH_DENTRY 1
23449 _ACEOF
23450
23451
23452 else
23453   $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456
23457
23458
23459 fi
23460
23461         rm -Rf build
23462
23463
23464
23465
23466
23467
23468 cat confdefs.h - <<_ACEOF >conftest.c
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474
23475
23476                 #include <linux/fs.h>
23477
23478 int
23479 main (void)
23480 {
23481
23482                 int (*fsync) (struct file *, int) = NULL;
23483                 struct file_operations fops __attribute__ ((unused));
23484
23485                 fops.fsync = fsync;
23486
23487   ;
23488   return 0;
23489 }
23490
23491 _ACEOF
23492
23493
23494         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23495         echo "obj-m := conftest.o" >build/Makefile
23496         modpost_flag=''
23497         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23498         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500   (eval $ac_try) 2>&5
23501   ac_status=$?
23502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505   (eval $ac_try) 2>&5
23506   ac_status=$?
23507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); }; }; then
23509
23510                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
23511 $as_echo "no dentry" >&6; }
23512
23513 cat >>confdefs.h <<\_ACEOF
23514 #define HAVE_FSYNC_WITHOUT_DENTRY 1
23515 _ACEOF
23516
23517
23518 else
23519   $as_echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522
23523
23524
23525 fi
23526
23527         rm -Rf build
23528
23529
23530
23531
23532
23533
23534 cat confdefs.h - <<_ACEOF >conftest.c
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540
23541
23542                 #include <linux/fs.h>
23543
23544 int
23545 main (void)
23546 {
23547
23548                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
23549                 struct file_operations fops __attribute__ ((unused));
23550
23551                 fops.fsync = fsync;
23552
23553   ;
23554   return 0;
23555 }
23556
23557 _ACEOF
23558
23559
23560         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23561         echo "obj-m := conftest.o" >build/Makefile
23562         modpost_flag=''
23563         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23564         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566   (eval $ac_try) 2>&5
23567   ac_status=$?
23568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571   (eval $ac_try) 2>&5
23572   ac_status=$?
23573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574   (exit $ac_status); }; }; then
23575
23576                 { $as_echo "$as_me:$LINENO: result: range" >&5
23577 $as_echo "range" >&6; }
23578
23579 cat >>confdefs.h <<\_ACEOF
23580 #define HAVE_FSYNC_RANGE 1
23581 _ACEOF
23582
23583
23584 else
23585   $as_echo "$as_me: failed program was:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23587
23588
23589
23590
23591 fi
23592
23593         rm -Rf build
23594
23595
23596
23597
23598
23599
23600 cat confdefs.h - <<_ACEOF >conftest.c
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606
23607
23608                 #include <linux/fs.h>
23609
23610 int
23611 main (void)
23612 {
23613
23614                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
23615                 file_operations_no_const fops __attribute__ ((unused));
23616
23617                 fops.fsync = fsync;
23618
23619   ;
23620   return 0;
23621 }
23622
23623 _ACEOF
23624
23625
23626         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23627         echo "obj-m := conftest.o" >build/Makefile
23628         modpost_flag=''
23629         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23630         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632   (eval $ac_try) 2>&5
23633   ac_status=$?
23634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637   (eval $ac_try) 2>&5
23638   ac_status=$?
23639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); }; }; then
23641
23642                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
23643 $as_echo "dentry" >&6; }
23644
23645 cat >>confdefs.h <<\_ACEOF
23646 #define HAVE_FSYNC_WITH_DENTRY 1
23647 _ACEOF
23648
23649
23650 else
23651   $as_echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654
23655
23656
23657 fi
23658
23659         rm -Rf build
23660
23661
23662
23663
23664
23665
23666 cat confdefs.h - <<_ACEOF >conftest.c
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672
23673
23674                 #include <linux/fs.h>
23675
23676 int
23677 main (void)
23678 {
23679
23680                 int (*fsync) (struct file *, int) = NULL;
23681                 file_operations_no_const fops __attribute__ ((unused));
23682
23683                 fops.fsync = fsync;
23684
23685   ;
23686   return 0;
23687 }
23688
23689 _ACEOF
23690
23691
23692         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23693         echo "obj-m := conftest.o" >build/Makefile
23694         modpost_flag=''
23695         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23696         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698   (eval $ac_try) 2>&5
23699   ac_status=$?
23700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703   (eval $ac_try) 2>&5
23704   ac_status=$?
23705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); }; }; then
23707
23708                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
23709 $as_echo "no dentry" >&6; }
23710
23711 cat >>confdefs.h <<\_ACEOF
23712 #define HAVE_FSYNC_WITHOUT_DENTRY 1
23713 _ACEOF
23714
23715
23716 else
23717   $as_echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720
23721
23722
23723 fi
23724
23725         rm -Rf build
23726
23727
23728
23729
23730
23731
23732 cat confdefs.h - <<_ACEOF >conftest.c
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738
23739
23740                 #include <linux/fs.h>
23741
23742 int
23743 main (void)
23744 {
23745
23746                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
23747                 file_operations_no_const fops __attribute__ ((unused));
23748
23749                 fops.fsync = fsync;
23750
23751   ;
23752   return 0;
23753 }
23754
23755 _ACEOF
23756
23757
23758         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23759         echo "obj-m := conftest.o" >build/Makefile
23760         modpost_flag=''
23761         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23762         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764   (eval $ac_try) 2>&5
23765   ac_status=$?
23766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769   (eval $ac_try) 2>&5
23770   ac_status=$?
23771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); }; }; then
23773
23774                 { $as_echo "$as_me:$LINENO: result: range" >&5
23775 $as_echo "range" >&6; }
23776
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_FSYNC_RANGE 1
23779 _ACEOF
23780
23781
23782 else
23783   $as_echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23785
23786
23787
23788
23789 fi
23790
23791         rm -Rf build
23792
23793
23794
23795
23796
23797         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
23798 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
23799
23800
23801 cat confdefs.h - <<_ACEOF >conftest.c
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807
23808
23809                 #include <linux/fs.h>
23810                 void evict_inode (struct inode * t) { return; }
23811                 static struct super_operations sops __attribute__ ((unused)) = {
23812                         .evict_inode = evict_inode,
23813                 };
23814
23815 int
23816 main (void)
23817 {
23818
23819
23820   ;
23821   return 0;
23822 }
23823
23824 _ACEOF
23825
23826
23827         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23828         echo "obj-m := conftest.o" >build/Makefile
23829         modpost_flag=''
23830         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23831         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833   (eval $ac_try) 2>&5
23834   ac_status=$?
23835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838   (eval $ac_try) 2>&5
23839   ac_status=$?
23840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); }; }; then
23842
23843                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23844 $as_echo "yes" >&6; }
23845
23846 cat >>confdefs.h <<\_ACEOF
23847 #define HAVE_EVICT_INODE 1
23848 _ACEOF
23849
23850
23851 else
23852   $as_echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855                 { $as_echo "$as_me:$LINENO: result: no" >&5
23856 $as_echo "no" >&6; }
23857
23858
23859
23860 fi
23861
23862         rm -Rf build
23863
23864
23865
23866
23867         { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
23868 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
23869
23870
23871 cat confdefs.h - <<_ACEOF >conftest.c
23872 /* confdefs.h.  */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h.  */
23877
23878
23879                 #include <linux/fs.h>
23880
23881 int
23882 main (void)
23883 {
23884
23885                 int (*nr_cached_objects)(struct super_block *)
23886                         __attribute__ ((unused)) = NULL;
23887                 struct super_operations sops __attribute__ ((unused)) = {
23888                         .nr_cached_objects = nr_cached_objects,
23889                 };
23890
23891   ;
23892   return 0;
23893 }
23894
23895 _ACEOF
23896
23897
23898         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23899         echo "obj-m := conftest.o" >build/Makefile
23900         modpost_flag=''
23901         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23902         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904   (eval $ac_try) 2>&5
23905   ac_status=$?
23906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909   (eval $ac_try) 2>&5
23910   ac_status=$?
23911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); }; }; then
23913
23914                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23915 $as_echo "yes" >&6; }
23916
23917 cat >>confdefs.h <<\_ACEOF
23918 #define HAVE_NR_CACHED_OBJECTS 1
23919 _ACEOF
23920
23921
23922 else
23923   $as_echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23925
23926                 { $as_echo "$as_me:$LINENO: result: no" >&5
23927 $as_echo "no" >&6; }
23928
23929
23930
23931 fi
23932
23933         rm -Rf build
23934
23935
23936
23937
23938         { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
23939 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
23940
23941
23942 cat confdefs.h - <<_ACEOF >conftest.c
23943 /* confdefs.h.  */
23944 _ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h.  */
23948
23949
23950                 #include <linux/fs.h>
23951
23952 int
23953 main (void)
23954 {
23955
23956                 void (*free_cached_objects)(struct super_block *, int)
23957                         __attribute__ ((unused)) = NULL;
23958                 struct super_operations sops __attribute__ ((unused)) = {
23959                         .free_cached_objects = free_cached_objects,
23960                 };
23961
23962   ;
23963   return 0;
23964 }
23965
23966 _ACEOF
23967
23968
23969         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23970         echo "obj-m := conftest.o" >build/Makefile
23971         modpost_flag=''
23972         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23973         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975   (eval $ac_try) 2>&5
23976   ac_status=$?
23977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980   (eval $ac_try) 2>&5
23981   ac_status=$?
23982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); }; }; then
23984
23985                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23986 $as_echo "yes" >&6; }
23987
23988 cat >>confdefs.h <<\_ACEOF
23989 #define HAVE_FREE_CACHED_OBJECTS 1
23990 _ACEOF
23991
23992
23993 else
23994   $as_echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23996
23997                 { $as_echo "$as_me:$LINENO: result: no" >&5
23998 $as_echo "no" >&6; }
23999
24000
24001
24002 fi
24003
24004         rm -Rf build
24005
24006
24007
24008
24009
24010         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
24011 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
24012
24013
24014 cat confdefs.h - <<_ACEOF >conftest.c
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020
24021
24022                 #include <linux/fs.h>
24023
24024 int
24025 main (void)
24026 {
24027
24028                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
24029                 struct file_operations fops __attribute__ ((unused)) = {
24030                         .fallocate = fallocate,
24031                 };
24032
24033   ;
24034   return 0;
24035 }
24036
24037 _ACEOF
24038
24039
24040         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24041         echo "obj-m := conftest.o" >build/Makefile
24042         modpost_flag=''
24043         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24044         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24046   (eval $ac_try) 2>&5
24047   ac_status=$?
24048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051   (eval $ac_try) 2>&5
24052   ac_status=$?
24053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); }; }; then
24055
24056                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24057 $as_echo "yes" >&6; }
24058
24059 cat >>confdefs.h <<\_ACEOF
24060 #define HAVE_FILE_FALLOCATE 1
24061 _ACEOF
24062
24063
24064 else
24065   $as_echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068                 { $as_echo "$as_me:$LINENO: result: no" >&5
24069 $as_echo "no" >&6; }
24070
24071
24072
24073 fi
24074
24075         rm -Rf build
24076
24077
24078
24079
24080         { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
24081 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
24082
24083
24084 cat confdefs.h - <<_ACEOF >conftest.c
24085 /* confdefs.h.  */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h.  */
24090
24091
24092                 #include <linux/fs.h>
24093
24094 int
24095 main (void)
24096 {
24097
24098                 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
24099                 struct inode_operations fops __attribute__ ((unused)) = {
24100                         .fallocate = fallocate,
24101                 };
24102
24103   ;
24104   return 0;
24105 }
24106
24107 _ACEOF
24108
24109
24110         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24111         echo "obj-m := conftest.o" >build/Makefile
24112         modpost_flag=''
24113         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24114         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116   (eval $ac_try) 2>&5
24117   ac_status=$?
24118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121   (eval $ac_try) 2>&5
24122   ac_status=$?
24123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); }; }; then
24125
24126                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24127 $as_echo "yes" >&6; }
24128
24129 cat >>confdefs.h <<\_ACEOF
24130 #define HAVE_INODE_FALLOCATE 1
24131 _ACEOF
24132
24133
24134 else
24135   $as_echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24137
24138                 { $as_echo "$as_me:$LINENO: result: no" >&5
24139 $as_echo "no" >&6; }
24140
24141
24142
24143 fi
24144
24145         rm -Rf build
24146
24147
24148
24149
24150         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
24151 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
24152
24153
24154 cat confdefs.h - <<_ACEOF >conftest.c
24155 /* confdefs.h.  */
24156 _ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h.  */
24160
24161
24162                 #include <linux/fs.h>
24163
24164 int
24165 main (void)
24166 {
24167
24168                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
24169                 struct file_operations_no_const fops __attribute__ ((unused)) = {
24170                         .fallocate = fallocate,
24171                 };
24172
24173   ;
24174   return 0;
24175 }
24176
24177 _ACEOF
24178
24179
24180         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24181         echo "obj-m := conftest.o" >build/Makefile
24182         modpost_flag=''
24183         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24184         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24186   (eval $ac_try) 2>&5
24187   ac_status=$?
24188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191   (eval $ac_try) 2>&5
24192   ac_status=$?
24193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); }; }; then
24195
24196                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24197 $as_echo "yes" >&6; }
24198
24199 cat >>confdefs.h <<\_ACEOF
24200 #define HAVE_FILE_FALLOCATE 1
24201 _ACEOF
24202
24203
24204 else
24205   $as_echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24207
24208                 { $as_echo "$as_me:$LINENO: result: no" >&5
24209 $as_echo "no" >&6; }
24210
24211
24212
24213 fi
24214
24215         rm -Rf build
24216
24217
24218
24219
24220
24221         { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
24222 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
24223
24224
24225 cat confdefs.h - <<_ACEOF >conftest.c
24226 /* confdefs.h.  */
24227 _ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h.  */
24231
24232
24233                 #include <linux/fs.h>
24234                 void truncate_range(struct inode *inode, loff_t start,
24235                                     loff_t end) { return; }
24236                 static struct inode_operations iops __attribute__ ((unused)) = {
24237                         .truncate_range = truncate_range,
24238                 };
24239
24240 int
24241 main (void)
24242 {
24243
24244
24245   ;
24246   return 0;
24247 }
24248
24249 _ACEOF
24250
24251
24252         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24253         echo "obj-m := conftest.o" >build/Makefile
24254         modpost_flag=''
24255         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24256         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258   (eval $ac_try) 2>&5
24259   ac_status=$?
24260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263   (eval $ac_try) 2>&5
24264   ac_status=$?
24265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); }; }; then
24267
24268                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24269 $as_echo "yes" >&6; }
24270
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_INODE_TRUNCATE_RANGE 1
24273 _ACEOF
24274
24275
24276 else
24277   $as_echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24279
24280                 { $as_echo "$as_me:$LINENO: result: no" >&5
24281 $as_echo "no" >&6; }
24282
24283
24284
24285 fi
24286
24287         rm -Rf build
24288
24289
24290
24291
24292         { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
24293 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
24294
24295
24296 cat confdefs.h - <<_ACEOF >conftest.c
24297 /* confdefs.h.  */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h.  */
24302
24303
24304                 #include <linux/fs.h>
24305
24306 int
24307 main (void)
24308 {
24309
24310                 int (*create) (struct inode *, struct dentry *, umode_t,
24311                     struct nameidata *) = NULL;
24312                 struct inode_operations iops __attribute__ ((unused)) = {
24313                         .create = create,
24314                 };
24315
24316   ;
24317   return 0;
24318 }
24319
24320 _ACEOF
24321
24322
24323         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24324         echo "obj-m := conftest.o" >build/Makefile
24325         modpost_flag=''
24326         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24327         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329   (eval $ac_try) 2>&5
24330   ac_status=$?
24331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334   (eval $ac_try) 2>&5
24335   ac_status=$?
24336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); }; }; then
24338
24339                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24340 $as_echo "yes" >&6; }
24341
24342 cat >>confdefs.h <<\_ACEOF
24343 #define HAVE_CREATE_UMODE_T 1
24344 _ACEOF
24345
24346
24347 else
24348   $as_echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351                 { $as_echo "$as_me:$LINENO: result: no" >&5
24352 $as_echo "no" >&6; }
24353
24354
24355
24356 fi
24357
24358         rm -Rf build
24359
24360
24361
24362
24363         { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
24364 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
24365
24366
24367 cat confdefs.h - <<_ACEOF >conftest.c
24368 /* confdefs.h.  */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h.  */
24373
24374
24375                 #include <linux/dcache.h>
24376                 struct vfsmount *d_automount(struct path *p) { return NULL; }
24377                 struct dentry_operations dops __attribute__ ((unused)) = {
24378                         .d_automount = d_automount,
24379                 };
24380
24381 int
24382 main (void)
24383 {
24384
24385
24386   ;
24387   return 0;
24388 }
24389
24390 _ACEOF
24391
24392
24393         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24394         echo "obj-m := conftest.o" >build/Makefile
24395         modpost_flag=''
24396         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24397         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399   (eval $ac_try) 2>&5
24400   ac_status=$?
24401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404   (eval $ac_try) 2>&5
24405   ac_status=$?
24406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); }; }; then
24408
24409                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24410 $as_echo "yes" >&6; }
24411
24412 cat >>confdefs.h <<\_ACEOF
24413 #define HAVE_AUTOMOUNT 1
24414 _ACEOF
24415
24416
24417 else
24418   $as_echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24420
24421                 { $as_echo "$as_me:$LINENO: result: no" >&5
24422 $as_echo "no" >&6; }
24423
24424
24425
24426 fi
24427
24428         rm -Rf build
24429
24430
24431
24432
24433         { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
24434 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
24435
24436
24437 cat confdefs.h - <<_ACEOF >conftest.c
24438 /* confdefs.h.  */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h.  */
24443
24444
24445                 #include <linux/exportfs.h>
24446                 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
24447                               struct inode *parent) { return 0; }
24448                 static struct export_operations eops __attribute__ ((unused))={
24449                         .encode_fh = encode_fh,
24450                 };
24451
24452 int
24453 main (void)
24454 {
24455
24456
24457   ;
24458   return 0;
24459 }
24460
24461 _ACEOF
24462
24463
24464         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24465         echo "obj-m := conftest.o" >build/Makefile
24466         modpost_flag=''
24467         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24468         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475   (eval $ac_try) 2>&5
24476   ac_status=$?
24477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); }; }; then
24479
24480                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24481 $as_echo "yes" >&6; }
24482
24483 cat >>confdefs.h <<\_ACEOF
24484 #define HAVE_ENCODE_FH_WITH_INODE 1
24485 _ACEOF
24486
24487
24488 else
24489   $as_echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24491
24492                 { $as_echo "$as_me:$LINENO: result: no" >&5
24493 $as_echo "no" >&6; }
24494
24495
24496
24497 fi
24498
24499         rm -Rf build
24500
24501
24502
24503         { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
24504 $as_echo_n "checking whether clear_inode() is available... " >&6; }
24505
24506
24507
24508 cat confdefs.h - <<_ACEOF >conftest.c
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514
24515
24516                 #include <linux/fs.h>
24517
24518 int
24519 main (void)
24520 {
24521
24522                 clear_inode(NULL);
24523
24524   ;
24525   return 0;
24526 }
24527
24528 _ACEOF
24529
24530
24531         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24532         echo "obj-m := conftest.o" >build/Makefile
24533         modpost_flag=''
24534         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24535         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537   (eval $ac_try) 2>&5
24538   ac_status=$?
24539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24542   (eval $ac_try) 2>&5
24543   ac_status=$?
24544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545   (exit $ac_status); }; }; then
24546   rc=0
24547 else
24548   $as_echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550  rc=1
24551
24552
24553 fi
24554
24555         rm -Rf build
24556
24557
24558         if test $rc -ne 0; then :
24559
24560                 { $as_echo "$as_me:$LINENO: result: no" >&5
24561 $as_echo "no" >&6; }
24562
24563         else
24564                 if test "x$enable_linux_builtin" != xyes; then
24565
24566         grep -q -E '[[:space:]]clear_inode[[:space:]]' \
24567                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24568         rc=$?
24569         if test $rc -ne 0; then
24570                 export=0
24571                 for file in fs/inode.c; do
24572                         grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
24573                                 "$LINUX/$file" 2>/dev/null
24574                         rc=$?
24575                         if test $rc -eq 0; then
24576                                 export=1
24577                                 break;
24578                         fi
24579                 done
24580                 if test $export -eq 0; then :
24581                         rc=1
24582                 else :
24583                         rc=0
24584                 fi
24585         else :
24586                 rc=0
24587         fi
24588
24589                 fi
24590                 if test $rc -ne 0; then :
24591
24592                 { $as_echo "$as_me:$LINENO: result: no" >&5
24593 $as_echo "no" >&6; }
24594
24595                 else :
24596
24597                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24598 $as_echo "yes" >&6; }
24599
24600 cat >>confdefs.h <<\_ACEOF
24601 #define HAVE_CLEAR_INODE 1
24602 _ACEOF
24603
24604
24605                 fi
24606         fi
24607
24608
24609         { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
24610 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
24611
24612
24613
24614 cat confdefs.h - <<_ACEOF >conftest.c
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620
24621
24622                 #include <linux/fs.h>
24623
24624 int
24625 main (void)
24626 {
24627
24628                 insert_inode_locked(NULL);
24629
24630   ;
24631   return 0;
24632 }
24633
24634 _ACEOF
24635
24636
24637         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24638         echo "obj-m := conftest.o" >build/Makefile
24639         modpost_flag=''
24640         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24641         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24643   (eval $ac_try) 2>&5
24644   ac_status=$?
24645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648   (eval $ac_try) 2>&5
24649   ac_status=$?
24650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); }; }; then
24652   rc=0
24653 else
24654   $as_echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24656  rc=1
24657
24658
24659 fi
24660
24661         rm -Rf build
24662
24663
24664         if test $rc -ne 0; then :
24665
24666                 { $as_echo "$as_me:$LINENO: result: no" >&5
24667 $as_echo "no" >&6; }
24668
24669         else
24670                 if test "x$enable_linux_builtin" != xyes; then
24671
24672         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
24673                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24674         rc=$?
24675         if test $rc -ne 0; then
24676                 export=0
24677                 for file in fs/inode.c; do
24678                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
24679                                 "$LINUX/$file" 2>/dev/null
24680                         rc=$?
24681                         if test $rc -eq 0; then
24682                                 export=1
24683                                 break;
24684                         fi
24685                 done
24686                 if test $export -eq 0; then :
24687                         rc=1
24688                 else :
24689                         rc=0
24690                 fi
24691         else :
24692                 rc=0
24693         fi
24694
24695                 fi
24696                 if test $rc -ne 0; then :
24697
24698                 { $as_echo "$as_me:$LINENO: result: no" >&5
24699 $as_echo "no" >&6; }
24700
24701                 else :
24702
24703                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24704 $as_echo "yes" >&6; }
24705
24706 cat >>confdefs.h <<\_ACEOF
24707 #define HAVE_INSERT_INODE_LOCKED 1
24708 _ACEOF
24709
24710
24711                 fi
24712         fi
24713
24714
24715         { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
24716 $as_echo_n "checking whether d_make_root() is available... " >&6; }
24717
24718
24719
24720 cat confdefs.h - <<_ACEOF >conftest.c
24721 /* confdefs.h.  */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h.  */
24726
24727
24728                 #include <linux/dcache.h>
24729
24730 int
24731 main (void)
24732 {
24733
24734                 d_make_root(NULL);
24735
24736   ;
24737   return 0;
24738 }
24739
24740 _ACEOF
24741
24742
24743         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24744         echo "obj-m := conftest.o" >build/Makefile
24745         modpost_flag=''
24746         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24747         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749   (eval $ac_try) 2>&5
24750   ac_status=$?
24751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24754   (eval $ac_try) 2>&5
24755   ac_status=$?
24756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757   (exit $ac_status); }; }; then
24758   rc=0
24759 else
24760   $as_echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24762  rc=1
24763
24764
24765 fi
24766
24767         rm -Rf build
24768
24769
24770         if test $rc -ne 0; then :
24771
24772                 { $as_echo "$as_me:$LINENO: result: no" >&5
24773 $as_echo "no" >&6; }
24774
24775         else
24776                 if test "x$enable_linux_builtin" != xyes; then
24777
24778         grep -q -E '[[:space:]]d_make_root[[:space:]]' \
24779                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24780         rc=$?
24781         if test $rc -ne 0; then
24782                 export=0
24783                 for file in fs/dcache.c; do
24784                         grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
24785                                 "$LINUX/$file" 2>/dev/null
24786                         rc=$?
24787                         if test $rc -eq 0; then
24788                                 export=1
24789                                 break;
24790                         fi
24791                 done
24792                 if test $export -eq 0; then :
24793                         rc=1
24794                 else :
24795                         rc=0
24796                 fi
24797         else :
24798                 rc=0
24799         fi
24800
24801                 fi
24802                 if test $rc -ne 0; then :
24803
24804                 { $as_echo "$as_me:$LINENO: result: no" >&5
24805 $as_echo "no" >&6; }
24806
24807                 else :
24808
24809                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24810 $as_echo "yes" >&6; }
24811
24812 cat >>confdefs.h <<\_ACEOF
24813 #define HAVE_D_MAKE_ROOT 1
24814 _ACEOF
24815
24816
24817                 fi
24818         fi
24819
24820
24821         { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
24822 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
24823
24824
24825
24826 cat confdefs.h - <<_ACEOF >conftest.c
24827 /* confdefs.h.  */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h.  */
24832
24833
24834                 #include <linux/dcache.h>
24835
24836 int
24837 main (void)
24838 {
24839
24840                 d_obtain_alias(NULL);
24841
24842   ;
24843   return 0;
24844 }
24845
24846 _ACEOF
24847
24848
24849         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24850         echo "obj-m := conftest.o" >build/Makefile
24851         modpost_flag=''
24852         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24853         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855   (eval $ac_try) 2>&5
24856   ac_status=$?
24857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24860   (eval $ac_try) 2>&5
24861   ac_status=$?
24862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863   (exit $ac_status); }; }; then
24864   rc=0
24865 else
24866   $as_echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868  rc=1
24869
24870
24871 fi
24872
24873         rm -Rf build
24874
24875
24876         if test $rc -ne 0; then :
24877
24878                 { $as_echo "$as_me:$LINENO: result: no" >&5
24879 $as_echo "no" >&6; }
24880
24881         else
24882                 if test "x$enable_linux_builtin" != xyes; then
24883
24884         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
24885                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24886         rc=$?
24887         if test $rc -ne 0; then
24888                 export=0
24889                 for file in fs/dcache.c; do
24890                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
24891                                 "$LINUX/$file" 2>/dev/null
24892                         rc=$?
24893                         if test $rc -eq 0; then
24894                                 export=1
24895                                 break;
24896                         fi
24897                 done
24898                 if test $export -eq 0; then :
24899                         rc=1
24900                 else :
24901                         rc=0
24902                 fi
24903         else :
24904                 rc=0
24905         fi
24906
24907                 fi
24908                 if test $rc -ne 0; then :
24909
24910                 { $as_echo "$as_me:$LINENO: result: no" >&5
24911 $as_echo "no" >&6; }
24912
24913                 else :
24914
24915                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24916 $as_echo "yes" >&6; }
24917
24918 cat >>confdefs.h <<\_ACEOF
24919 #define HAVE_D_OBTAIN_ALIAS 1
24920 _ACEOF
24921
24922
24923                 fi
24924         fi
24925
24926
24927         { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
24928 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
24929
24930
24931
24932 cat confdefs.h - <<_ACEOF >conftest.c
24933 /* confdefs.h.  */
24934 _ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h.  */
24938
24939
24940                 #include <linux/fs.h>
24941
24942 int
24943 main (void)
24944 {
24945
24946                 check_disk_size_change(NULL, NULL);
24947
24948   ;
24949   return 0;
24950 }
24951
24952 _ACEOF
24953
24954
24955         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24956         echo "obj-m := conftest.o" >build/Makefile
24957         modpost_flag=''
24958         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24959         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961   (eval $ac_try) 2>&5
24962   ac_status=$?
24963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966   (eval $ac_try) 2>&5
24967   ac_status=$?
24968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); }; }; then
24970   rc=0
24971 else
24972   $as_echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974  rc=1
24975
24976
24977 fi
24978
24979         rm -Rf build
24980
24981
24982         if test $rc -ne 0; then :
24983
24984                 { $as_echo "$as_me:$LINENO: result: no" >&5
24985 $as_echo "no" >&6; }
24986
24987         else
24988                 if test "x$enable_linux_builtin" != xyes; then
24989
24990         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
24991                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24992         rc=$?
24993         if test $rc -ne 0; then
24994                 export=0
24995                 for file in fs/block_dev.c; do
24996                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
24997                                 "$LINUX/$file" 2>/dev/null
24998                         rc=$?
24999                         if test $rc -eq 0; then
25000                                 export=1
25001                                 break;
25002                         fi
25003                 done
25004                 if test $export -eq 0; then :
25005                         rc=1
25006                 else :
25007                         rc=0
25008                 fi
25009         else :
25010                 rc=0
25011         fi
25012
25013                 fi
25014                 if test $rc -ne 0; then :
25015
25016                 { $as_echo "$as_me:$LINENO: result: no" >&5
25017 $as_echo "no" >&6; }
25018
25019                 else :
25020
25021                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25022 $as_echo "yes" >&6; }
25023
25024 cat >>confdefs.h <<\_ACEOF
25025 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
25026 _ACEOF
25027
25028
25029                 fi
25030         fi
25031
25032
25033         { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
25034 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
25035
25036
25037
25038 cat confdefs.h - <<_ACEOF >conftest.c
25039 /* confdefs.h.  */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h.  */
25044
25045
25046                 #include <linux/mm.h>
25047
25048 int
25049 main (void)
25050 {
25051
25052                 truncate_setsize(NULL, 0);
25053
25054   ;
25055   return 0;
25056 }
25057
25058 _ACEOF
25059
25060
25061         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25062         echo "obj-m := conftest.o" >build/Makefile
25063         modpost_flag=''
25064         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25065         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072   (eval $ac_try) 2>&5
25073   ac_status=$?
25074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); }; }; then
25076   rc=0
25077 else
25078   $as_echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080  rc=1
25081
25082
25083 fi
25084
25085         rm -Rf build
25086
25087
25088         if test $rc -ne 0; then :
25089
25090                 { $as_echo "$as_me:$LINENO: result: no" >&5
25091 $as_echo "no" >&6; }
25092
25093         else
25094                 if test "x$enable_linux_builtin" != xyes; then
25095
25096         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
25097                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25098         rc=$?
25099         if test $rc -ne 0; then
25100                 export=0
25101                 for file in mm/truncate.c; do
25102                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
25103                                 "$LINUX/$file" 2>/dev/null
25104                         rc=$?
25105                         if test $rc -eq 0; then
25106                                 export=1
25107                                 break;
25108                         fi
25109                 done
25110                 if test $export -eq 0; then :
25111                         rc=1
25112                 else :
25113                         rc=0
25114                 fi
25115         else :
25116                 rc=0
25117         fi
25118
25119                 fi
25120                 if test $rc -ne 0; then :
25121
25122                 { $as_echo "$as_me:$LINENO: result: no" >&5
25123 $as_echo "no" >&6; }
25124
25125                 else :
25126
25127                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25128 $as_echo "yes" >&6; }
25129
25130 cat >>confdefs.h <<\_ACEOF
25131 #define HAVE_TRUNCATE_SETSIZE 1
25132 _ACEOF
25133
25134
25135                 fi
25136         fi
25137
25138
25139
25140         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
25141 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
25142         tmp_flags="$EXTRA_KCFLAGS"
25143         EXTRA_KCFLAGS="-Werror"
25144
25145
25146 cat confdefs.h - <<_ACEOF >conftest.c
25147 /* confdefs.h.  */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h.  */
25152
25153
25154                 #include <linux/security.h>
25155
25156 int
25157 main (void)
25158 {
25159
25160                 struct inode *ip __attribute__ ((unused)) = NULL;
25161                 struct inode *dip __attribute__ ((unused)) = NULL;
25162                 const struct qstr *str __attribute__ ((unused)) = NULL;
25163                 char *name __attribute__ ((unused)) = NULL;
25164                 void *value __attribute__ ((unused)) = NULL;
25165                 size_t len __attribute__ ((unused)) = 0;
25166
25167                 security_inode_init_security(ip, dip, str, &name, &value, &len);
25168
25169   ;
25170   return 0;
25171 }
25172
25173 _ACEOF
25174
25175
25176         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25177         echo "obj-m := conftest.o" >build/Makefile
25178         modpost_flag=''
25179         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25180         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182   (eval $ac_try) 2>&5
25183   ac_status=$?
25184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187   (eval $ac_try) 2>&5
25188   ac_status=$?
25189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; }; then
25191
25192                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25193 $as_echo "yes" >&6; }
25194
25195 cat >>confdefs.h <<\_ACEOF
25196 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
25197 _ACEOF
25198
25199
25200 else
25201   $as_echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25203
25204                 { $as_echo "$as_me:$LINENO: result: no" >&5
25205 $as_echo "no" >&6; }
25206
25207
25208
25209 fi
25210
25211         rm -Rf build
25212
25213
25214         EXTRA_KCFLAGS="$tmp_flags"
25215
25216
25217         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
25218 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
25219         tmp_flags="$EXTRA_KCFLAGS"
25220         EXTRA_KCFLAGS="-Werror"
25221
25222
25223 cat confdefs.h - <<_ACEOF >conftest.c
25224 /* confdefs.h.  */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h.  */
25229
25230
25231                 #include <linux/security.h>
25232
25233 int
25234 main (void)
25235 {
25236
25237                 struct inode *ip __attribute__ ((unused)) = NULL;
25238                 struct inode *dip __attribute__ ((unused)) = NULL;
25239                 const struct qstr *str __attribute__ ((unused)) = NULL;
25240                 initxattrs func __attribute__ ((unused)) = NULL;
25241
25242                 security_inode_init_security(ip, dip, str, func, NULL);
25243
25244   ;
25245   return 0;
25246 }
25247
25248 _ACEOF
25249
25250
25251         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25252         echo "obj-m := conftest.o" >build/Makefile
25253         modpost_flag=''
25254         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25255         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25257   (eval $ac_try) 2>&5
25258   ac_status=$?
25259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262   (eval $ac_try) 2>&5
25263   ac_status=$?
25264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); }; }; then
25266
25267                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25268 $as_echo "yes" >&6; }
25269
25270 cat >>confdefs.h <<\_ACEOF
25271 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
25272 _ACEOF
25273
25274
25275 else
25276   $as_echo "$as_me: failed program was:" >&5
25277 sed 's/^/| /' conftest.$ac_ext >&5
25278
25279                 { $as_echo "$as_me:$LINENO: result: no" >&5
25280 $as_echo "no" >&6; }
25281
25282
25283
25284 fi
25285
25286         rm -Rf build
25287
25288
25289         EXTRA_KCFLAGS="$tmp_flags"
25290
25291         { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
25292 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
25293
25294
25295
25296 cat confdefs.h - <<_ACEOF >conftest.c
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303
25304                 #include <linux/fs.h>
25305
25306 int
25307 main (void)
25308 {
25309
25310                 mount_nodev(NULL, 0, NULL, NULL);
25311
25312   ;
25313   return 0;
25314 }
25315
25316 _ACEOF
25317
25318
25319         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25320         echo "obj-m := conftest.o" >build/Makefile
25321         modpost_flag=''
25322         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25323         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325   (eval $ac_try) 2>&5
25326   ac_status=$?
25327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330   (eval $ac_try) 2>&5
25331   ac_status=$?
25332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); }; }; then
25334   rc=0
25335 else
25336   $as_echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25338  rc=1
25339
25340
25341 fi
25342
25343         rm -Rf build
25344
25345
25346         if test $rc -ne 0; then :
25347
25348                 { $as_echo "$as_me:$LINENO: result: no" >&5
25349 $as_echo "no" >&6; }
25350
25351         else
25352                 if test "x$enable_linux_builtin" != xyes; then
25353
25354         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
25355                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25356         rc=$?
25357         if test $rc -ne 0; then
25358                 export=0
25359                 for file in fs/super.c; do
25360                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
25361                                 "$LINUX/$file" 2>/dev/null
25362                         rc=$?
25363                         if test $rc -eq 0; then
25364                                 export=1
25365                                 break;
25366                         fi
25367                 done
25368                 if test $export -eq 0; then :
25369                         rc=1
25370                 else :
25371                         rc=0
25372                 fi
25373         else :
25374                 rc=0
25375         fi
25376
25377                 fi
25378                 if test $rc -ne 0; then :
25379
25380                 { $as_echo "$as_me:$LINENO: result: no" >&5
25381 $as_echo "no" >&6; }
25382
25383                 else :
25384
25385                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25386 $as_echo "yes" >&6; }
25387
25388 cat >>confdefs.h <<\_ACEOF
25389 #define HAVE_MOUNT_NODEV 1
25390 _ACEOF
25391
25392
25393                 fi
25394         fi
25395
25396
25397
25398         { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
25399 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
25400
25401
25402 cat confdefs.h - <<_ACEOF >conftest.c
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408
25409
25410                 #include <linux/fs.h>
25411
25412 int
25413 main (void)
25414 {
25415
25416                 int (*shrink)(struct shrinker *, struct shrink_control *sc)
25417                         __attribute__ ((unused)) = NULL;
25418                 struct super_block sb __attribute__ ((unused)) = {
25419                         .s_shrink.shrink = shrink,
25420                         .s_shrink.seeks = DEFAULT_SEEKS,
25421                         .s_shrink.batch = 0,
25422                 };
25423
25424   ;
25425   return 0;
25426 }
25427
25428 _ACEOF
25429
25430
25431         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25432         echo "obj-m := conftest.o" >build/Makefile
25433         modpost_flag=''
25434         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25435         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437   (eval $ac_try) 2>&5
25438   ac_status=$?
25439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442   (eval $ac_try) 2>&5
25443   ac_status=$?
25444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); }; }; then
25446
25447                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25448 $as_echo "yes" >&6; }
25449
25450 cat >>confdefs.h <<\_ACEOF
25451 #define HAVE_SHRINK 1
25452 _ACEOF
25453
25454
25455
25456 else
25457   $as_echo "$as_me: failed program was:" >&5
25458 sed 's/^/| /' conftest.$ac_ext >&5
25459
25460                 { $as_echo "$as_me:$LINENO: result: no" >&5
25461 $as_echo "no" >&6; }
25462
25463
25464
25465 fi
25466
25467         rm -Rf build
25468
25469
25470
25471
25472         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
25473 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
25474
25475
25476 cat confdefs.h - <<_ACEOF >conftest.c
25477 /* confdefs.h.  */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h.  */
25482
25483
25484                 #include <linux/fs.h>
25485
25486 int
25487 main (void)
25488 {
25489
25490                 struct super_block sb __attribute__ ((unused));
25491                 sb.s_bdi = NULL;
25492
25493   ;
25494   return 0;
25495 }
25496
25497 _ACEOF
25498
25499
25500         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25501         echo "obj-m := conftest.o" >build/Makefile
25502         modpost_flag=''
25503         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25504         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506   (eval $ac_try) 2>&5
25507   ac_status=$?
25508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511   (eval $ac_try) 2>&5
25512   ac_status=$?
25513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); }; }; then
25515
25516                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25517 $as_echo "yes" >&6; }
25518
25519 cat >>confdefs.h <<\_ACEOF
25520 #define HAVE_BDI 1
25521 _ACEOF
25522
25523
25524 else
25525   $as_echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25527
25528                 { $as_echo "$as_me:$LINENO: result: no" >&5
25529 $as_echo "no" >&6; }
25530
25531
25532
25533 fi
25534
25535         rm -Rf build
25536
25537
25538
25539         { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() is available" >&5
25540 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
25541
25542
25543
25544 cat confdefs.h - <<_ACEOF >conftest.c
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550
25551
25552                 #include <linux/backing-dev.h>
25553
25554 int
25555 main (void)
25556 {
25557
25558                 bdi_setup_and_register(NULL, NULL, 0);
25559
25560   ;
25561   return 0;
25562 }
25563
25564 _ACEOF
25565
25566
25567         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25568         echo "obj-m := conftest.o" >build/Makefile
25569         modpost_flag=''
25570         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25571         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573   (eval $ac_try) 2>&5
25574   ac_status=$?
25575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25578   (eval $ac_try) 2>&5
25579   ac_status=$?
25580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581   (exit $ac_status); }; }; then
25582   rc=0
25583 else
25584   $as_echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25586  rc=1
25587
25588
25589 fi
25590
25591         rm -Rf build
25592
25593
25594         if test $rc -ne 0; then :
25595
25596                 { $as_echo "$as_me:$LINENO: result: no" >&5
25597 $as_echo "no" >&6; }
25598
25599         else
25600                 if test "x$enable_linux_builtin" != xyes; then
25601
25602         grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25603                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25604         rc=$?
25605         if test $rc -ne 0; then
25606                 export=0
25607                 for file in mm/backing-dev.c; do
25608                         grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25609                                 "$LINUX/$file" 2>/dev/null
25610                         rc=$?
25611                         if test $rc -eq 0; then
25612                                 export=1
25613                                 break;
25614                         fi
25615                 done
25616                 if test $export -eq 0; then :
25617                         rc=1
25618                 else :
25619                         rc=0
25620                 fi
25621         else :
25622                 rc=0
25623         fi
25624
25625                 fi
25626                 if test $rc -ne 0; then :
25627
25628                 { $as_echo "$as_me:$LINENO: result: no" >&5
25629 $as_echo "no" >&6; }
25630
25631                 else :
25632
25633                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25634 $as_echo "yes" >&6; }
25635
25636 cat >>confdefs.h <<\_ACEOF
25637 #define HAVE_BDI_SETUP_AND_REGISTER 1
25638 _ACEOF
25639
25640
25641                 fi
25642         fi
25643
25644
25645
25646         { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25647 $as_echo_n "checking whether set_nlink() is available... " >&6; }
25648
25649
25650 cat confdefs.h - <<_ACEOF >conftest.c
25651 /* confdefs.h.  */
25652 _ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h.  */
25656
25657
25658                 #include <linux/fs.h>
25659
25660 int
25661 main (void)
25662 {
25663
25664                 struct inode node;
25665                 unsigned int link = 0;
25666                 (void) set_nlink(&node, link);
25667
25668   ;
25669   return 0;
25670 }
25671
25672 _ACEOF
25673
25674
25675         rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25676         echo "obj-m := conftest.o" >build/Makefile
25677         modpost_flag=''
25678         test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25679         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681   (eval $ac_try) 2>&5
25682   ac_status=$?
25683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; }; then
25690
25691                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25692 $as_echo "yes" >&6; }
25693
25694 cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_SET_NLINK 1
25696 _ACEOF
25697
25698
25699 else
25700   $as_echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25702
25703                 { $as_echo "$as_me:$LINENO: result: no" >&5
25704 $as_echo "no" >&6; }
25705
25706
25707
25708 fi
25709
25710         rm -Rf build
25711
25712
25713
25714
25715         if test "$LINUX_OBJ" != "$LINUX"; then
25716
25717                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25718
25719 fi
25720
25721
25722
25723
25724                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25725         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25726         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25727
25728
25729
25730
25731
25732
25733 # Check whether --with-udevdir was given.
25734 if test "${with_udevdir+set}" = set; then
25735   withval=$with_udevdir; udevdir=$withval
25736 else
25737   udevdir='${exec_prefix}/lib/udev'
25738 fi
25739
25740
25741
25742 # Check whether --with-udevruledir was given.
25743 if test "${with_udevruledir+set}" = set; then
25744   withval=$with_udevruledir; udevruledir=$withval
25745 else
25746   udevruledir='${udevdir}/rules.d'
25747 fi
25748
25749
25750
25751
25752
25753
25754         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
25755 $as_echo_n "checking for target asm dir... " >&6; }
25756         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
25757
25758         case $TARGET_ARCH in
25759         i386|x86_64)
25760                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
25761                 ;;
25762         *)
25763                 TARGET_ASM_DIR=asm-generic
25764                 ;;
25765         esac
25766
25767
25768         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
25769 $as_echo "$TARGET_ASM_DIR" >&6; }
25770
25771
25772         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
25773 $as_echo_n "checking for ioctl()... " >&6; }
25774         cat >conftest.$ac_ext <<_ACEOF
25775 /* confdefs.h.  */
25776 _ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h.  */
25780 #include <unistd.h>
25781
25782 _ACEOF
25783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25784   $EGREP "ioctl" >/dev/null 2>&1; then
25785   is_unistd=yes
25786 else
25787   is_unistd=no
25788 fi
25789 rm -f conftest*
25790
25791         cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h.  */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h.  */
25797 #include <sys/ioctl.h>
25798
25799 _ACEOF
25800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25801   $EGREP "ioctl" >/dev/null 2>&1; then
25802   is_sys_ioctl=yes
25803 else
25804   is_sys_ioctl=no
25805 fi
25806 rm -f conftest*
25807
25808         cat >conftest.$ac_ext <<_ACEOF
25809 /* confdefs.h.  */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h.  */
25814 #include <stropts.h>
25815
25816 _ACEOF
25817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25818   $EGREP "ioctl" >/dev/null 2>&1; then
25819   is_stropts=yes
25820 else
25821   is_stropts=no
25822 fi
25823 rm -f conftest*
25824
25825
25826         if test $is_unistd = yes; then
25827                 result=unistd.h
25828
25829 cat >>confdefs.h <<\_ACEOF
25830 #define HAVE_IOCTL_IN_UNISTD_H 1
25831 _ACEOF
25832
25833         else
25834
25835                 if test $is_sys_ioctl = yes; then
25836                         result=sys/ioctl.h
25837
25838 cat >>confdefs.h <<\_ACEOF
25839 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
25840 _ACEOF
25841
25842                 elif test $is_stropts = yes; then
25843
25844 cat >>confdefs.h <<\_ACEOF
25845 #define HAVE_IOCTL_IN_STROPTS_H 1
25846 _ACEOF
25847
25848                 else
25849                         result=no
25850                 fi
25851         fi
25852
25853         if test $result = no; then
25854                 { $as_echo "$as_me:$LINENO: result: no" >&5
25855 $as_echo "no" >&6; }
25856                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
25857 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
25858    { (exit 1); exit 1; }; }
25859         else
25860                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25861 $as_echo "yes" >&6; }
25862         fi
25863
25864
25865         ZLIB=
25866
25867         if test "${ac_cv_header_zlib_h+set}" = set; then
25868   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25869 $as_echo_n "checking for zlib.h... " >&6; }
25870 if test "${ac_cv_header_zlib_h+set}" = set; then
25871   $as_echo_n "(cached) " >&6
25872 fi
25873 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25874 $as_echo "$ac_cv_header_zlib_h" >&6; }
25875 else
25876   # Is the header compilable?
25877 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
25878 $as_echo_n "checking zlib.h usability... " >&6; }
25879 cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 $ac_includes_default
25886 #include <zlib.h>
25887 _ACEOF
25888 rm -f conftest.$ac_objext
25889 if { (ac_try="$ac_compile"
25890 case "(($ac_try" in
25891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892   *) ac_try_echo=$ac_try;;
25893 esac
25894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25895 $as_echo "$ac_try_echo") >&5
25896   (eval "$ac_compile") 2>conftest.er1
25897   ac_status=$?
25898   grep -v '^ *+' conftest.er1 >conftest.err
25899   rm -f conftest.er1
25900   cat conftest.err >&5
25901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); } && {
25903          test -z "$ac_c_werror_flag" ||
25904          test ! -s conftest.err
25905        } && test -s conftest.$ac_objext; then
25906   ac_header_compiler=yes
25907 else
25908   $as_echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25910
25911         ac_header_compiler=no
25912 fi
25913
25914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25916 $as_echo "$ac_header_compiler" >&6; }
25917
25918 # Is the header present?
25919 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
25920 $as_echo_n "checking zlib.h presence... " >&6; }
25921 cat >conftest.$ac_ext <<_ACEOF
25922 /* confdefs.h.  */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h.  */
25927 #include <zlib.h>
25928 _ACEOF
25929 if { (ac_try="$ac_cpp conftest.$ac_ext"
25930 case "(($ac_try" in
25931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25932   *) ac_try_echo=$ac_try;;
25933 esac
25934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25935 $as_echo "$ac_try_echo") >&5
25936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25937   ac_status=$?
25938   grep -v '^ *+' conftest.er1 >conftest.err
25939   rm -f conftest.er1
25940   cat conftest.err >&5
25941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } >/dev/null && {
25943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25944          test ! -s conftest.err
25945        }; then
25946   ac_header_preproc=yes
25947 else
25948   $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25950
25951   ac_header_preproc=no
25952 fi
25953
25954 rm -f conftest.err conftest.$ac_ext
25955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25956 $as_echo "$ac_header_preproc" >&6; }
25957
25958 # So?  What about this header?
25959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25960   yes:no: )
25961     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25962 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25963     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25964 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25965     ac_header_preproc=yes
25966     ;;
25967   no:yes:* )
25968     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25969 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25970     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25971 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25972     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25973 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25974     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25975 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25976     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25977 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25978     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25979 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25980
25981     ;;
25982 esac
25983 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25984 $as_echo_n "checking for zlib.h... " >&6; }
25985 if test "${ac_cv_header_zlib_h+set}" = set; then
25986   $as_echo_n "(cached) " >&6
25987 else
25988   ac_cv_header_zlib_h=$ac_header_preproc
25989 fi
25990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25991 $as_echo "$ac_cv_header_zlib_h" >&6; }
25992
25993 fi
25994 if test "x$ac_cv_header_zlib_h" = x""yes; then
25995   :
25996 else
25997   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25999 { { $as_echo "$as_me:$LINENO: error:
26000         *** zlib.h missing, zlib-devel package required
26001 See \`config.log' for more details." >&5
26002 $as_echo "$as_me: error:
26003         *** zlib.h missing, zlib-devel package required
26004 See \`config.log' for more details." >&2;}
26005    { (exit 1); exit 1; }; }; }
26006 fi
26007
26008
26009
26010
26011 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
26012 $as_echo_n "checking for compress2 in -lz... " >&6; }
26013 if test "${ac_cv_lib_z_compress2+set}" = set; then
26014   $as_echo_n "(cached) " >&6
26015 else
26016   ac_check_lib_save_LIBS=$LIBS
26017 LIBS="-lz  $LIBS"
26018 cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h.  */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h.  */
26024
26025 /* Override any GCC internal prototype to avoid an error.
26026    Use char because int might match the return type of a GCC
26027    builtin and then its argument prototype would still apply.  */
26028 #ifdef __cplusplus
26029 extern "C"
26030 #endif
26031 char compress2 ();
26032 int
26033 main ()
26034 {
26035 return compress2 ();
26036   ;
26037   return 0;
26038 }
26039 _ACEOF
26040 rm -f conftest.$ac_objext conftest$ac_exeext
26041 if { (ac_try="$ac_link"
26042 case "(($ac_try" in
26043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044   *) ac_try_echo=$ac_try;;
26045 esac
26046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26047 $as_echo "$ac_try_echo") >&5
26048   (eval "$ac_link") 2>conftest.er1
26049   ac_status=$?
26050   grep -v '^ *+' conftest.er1 >conftest.err
26051   rm -f conftest.er1
26052   cat conftest.err >&5
26053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); } && {
26055          test -z "$ac_c_werror_flag" ||
26056          test ! -s conftest.err
26057        } && test -s conftest$ac_exeext && {
26058          test "$cross_compiling" = yes ||
26059          $as_test_x conftest$ac_exeext
26060        }; then
26061   ac_cv_lib_z_compress2=yes
26062 else
26063   $as_echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26065
26066         ac_cv_lib_z_compress2=no
26067 fi
26068
26069 rm -rf conftest.dSYM
26070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26071       conftest$ac_exeext conftest.$ac_ext
26072 LIBS=$ac_check_lib_save_LIBS
26073 fi
26074 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
26075 $as_echo "$ac_cv_lib_z_compress2" >&6; }
26076 if test "x$ac_cv_lib_z_compress2" = x""yes; then
26077   cat >>confdefs.h <<_ACEOF
26078 #define HAVE_LIBZ 1
26079 _ACEOF
26080
26081   LIBS="-lz $LIBS"
26082
26083 else
26084   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26086 { { $as_echo "$as_me:$LINENO: error:
26087         *** compress2() missing, zlib-devel package required
26088 See \`config.log' for more details." >&5
26089 $as_echo "$as_me: error:
26090         *** compress2() missing, zlib-devel package required
26091 See \`config.log' for more details." >&2;}
26092    { (exit 1); exit 1; }; }; }
26093 fi
26094
26095
26096
26097 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
26098 $as_echo_n "checking for uncompress in -lz... " >&6; }
26099 if test "${ac_cv_lib_z_uncompress+set}" = set; then
26100   $as_echo_n "(cached) " >&6
26101 else
26102   ac_check_lib_save_LIBS=$LIBS
26103 LIBS="-lz  $LIBS"
26104 cat >conftest.$ac_ext <<_ACEOF
26105 /* confdefs.h.  */
26106 _ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h.  */
26110
26111 /* Override any GCC internal prototype to avoid an error.
26112    Use char because int might match the return type of a GCC
26113    builtin and then its argument prototype would still apply.  */
26114 #ifdef __cplusplus
26115 extern "C"
26116 #endif
26117 char uncompress ();
26118 int
26119 main ()
26120 {
26121 return uncompress ();
26122   ;
26123   return 0;
26124 }
26125 _ACEOF
26126 rm -f conftest.$ac_objext conftest$ac_exeext
26127 if { (ac_try="$ac_link"
26128 case "(($ac_try" in
26129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26130   *) ac_try_echo=$ac_try;;
26131 esac
26132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26133 $as_echo "$ac_try_echo") >&5
26134   (eval "$ac_link") 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } && {
26141          test -z "$ac_c_werror_flag" ||
26142          test ! -s conftest.err
26143        } && test -s conftest$ac_exeext && {
26144          test "$cross_compiling" = yes ||
26145          $as_test_x conftest$ac_exeext
26146        }; then
26147   ac_cv_lib_z_uncompress=yes
26148 else
26149   $as_echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26151
26152         ac_cv_lib_z_uncompress=no
26153 fi
26154
26155 rm -rf conftest.dSYM
26156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26157       conftest$ac_exeext conftest.$ac_ext
26158 LIBS=$ac_check_lib_save_LIBS
26159 fi
26160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
26161 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26162 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
26163   cat >>confdefs.h <<_ACEOF
26164 #define HAVE_LIBZ 1
26165 _ACEOF
26166
26167   LIBS="-lz $LIBS"
26168
26169 else
26170   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26172 { { $as_echo "$as_me:$LINENO: error:
26173         *** uncompress() missing, zlib-devel package required
26174 See \`config.log' for more details." >&5
26175 $as_echo "$as_me: error:
26176         *** uncompress() missing, zlib-devel package required
26177 See \`config.log' for more details." >&2;}
26178    { (exit 1); exit 1; }; }; }
26179 fi
26180
26181
26182
26183 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
26184 $as_echo_n "checking for crc32 in -lz... " >&6; }
26185 if test "${ac_cv_lib_z_crc32+set}" = set; then
26186   $as_echo_n "(cached) " >&6
26187 else
26188   ac_check_lib_save_LIBS=$LIBS
26189 LIBS="-lz  $LIBS"
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196
26197 /* Override any GCC internal prototype to avoid an error.
26198    Use char because int might match the return type of a GCC
26199    builtin and then its argument prototype would still apply.  */
26200 #ifdef __cplusplus
26201 extern "C"
26202 #endif
26203 char crc32 ();
26204 int
26205 main ()
26206 {
26207 return crc32 ();
26208   ;
26209   return 0;
26210 }
26211 _ACEOF
26212 rm -f conftest.$ac_objext conftest$ac_exeext
26213 if { (ac_try="$ac_link"
26214 case "(($ac_try" in
26215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216   *) ac_try_echo=$ac_try;;
26217 esac
26218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26219 $as_echo "$ac_try_echo") >&5
26220   (eval "$ac_link") 2>conftest.er1
26221   ac_status=$?
26222   grep -v '^ *+' conftest.er1 >conftest.err
26223   rm -f conftest.er1
26224   cat conftest.err >&5
26225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); } && {
26227          test -z "$ac_c_werror_flag" ||
26228          test ! -s conftest.err
26229        } && test -s conftest$ac_exeext && {
26230          test "$cross_compiling" = yes ||
26231          $as_test_x conftest$ac_exeext
26232        }; then
26233   ac_cv_lib_z_crc32=yes
26234 else
26235   $as_echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26237
26238         ac_cv_lib_z_crc32=no
26239 fi
26240
26241 rm -rf conftest.dSYM
26242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26243       conftest$ac_exeext conftest.$ac_ext
26244 LIBS=$ac_check_lib_save_LIBS
26245 fi
26246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
26247 $as_echo "$ac_cv_lib_z_crc32" >&6; }
26248 if test "x$ac_cv_lib_z_crc32" = x""yes; then
26249   cat >>confdefs.h <<_ACEOF
26250 #define HAVE_LIBZ 1
26251 _ACEOF
26252
26253   LIBS="-lz $LIBS"
26254
26255 else
26256   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26258 { { $as_echo "$as_me:$LINENO: error:
26259         *** crc32() missing, zlib-devel package required
26260 See \`config.log' for more details." >&5
26261 $as_echo "$as_me: error:
26262         *** crc32() missing, zlib-devel package required
26263 See \`config.log' for more details." >&2;}
26264    { (exit 1); exit 1; }; }; }
26265 fi
26266
26267
26268         ZLIB="-lz"
26269
26270
26271 cat >>confdefs.h <<\_ACEOF
26272 #define HAVE_ZLIB 1
26273 _ACEOF
26274
26275
26276
26277         LIBUUID=
26278
26279         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26280   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
26281 $as_echo_n "checking for uuid/uuid.h... " >&6; }
26282 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26283   $as_echo_n "(cached) " >&6
26284 fi
26285 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
26286 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
26287 else
26288   # Is the header compilable?
26289 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
26290 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
26291 cat >conftest.$ac_ext <<_ACEOF
26292 /* confdefs.h.  */
26293 _ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h.  */
26297 $ac_includes_default
26298 #include <uuid/uuid.h>
26299 _ACEOF
26300 rm -f conftest.$ac_objext
26301 if { (ac_try="$ac_compile"
26302 case "(($ac_try" in
26303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26304   *) ac_try_echo=$ac_try;;
26305 esac
26306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26307 $as_echo "$ac_try_echo") >&5
26308   (eval "$ac_compile") 2>conftest.er1
26309   ac_status=$?
26310   grep -v '^ *+' conftest.er1 >conftest.err
26311   rm -f conftest.er1
26312   cat conftest.err >&5
26313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); } && {
26315          test -z "$ac_c_werror_flag" ||
26316          test ! -s conftest.err
26317        } && test -s conftest.$ac_objext; then
26318   ac_header_compiler=yes
26319 else
26320   $as_echo "$as_me: failed program was:" >&5
26321 sed 's/^/| /' conftest.$ac_ext >&5
26322
26323         ac_header_compiler=no
26324 fi
26325
26326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26327 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26328 $as_echo "$ac_header_compiler" >&6; }
26329
26330 # Is the header present?
26331 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
26332 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
26333 cat >conftest.$ac_ext <<_ACEOF
26334 /* confdefs.h.  */
26335 _ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h.  */
26339 #include <uuid/uuid.h>
26340 _ACEOF
26341 if { (ac_try="$ac_cpp conftest.$ac_ext"
26342 case "(($ac_try" in
26343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344   *) ac_try_echo=$ac_try;;
26345 esac
26346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26347 $as_echo "$ac_try_echo") >&5
26348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26349   ac_status=$?
26350   grep -v '^ *+' conftest.er1 >conftest.err
26351   rm -f conftest.er1
26352   cat conftest.err >&5
26353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); } >/dev/null && {
26355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26356          test ! -s conftest.err
26357        }; then
26358   ac_header_preproc=yes
26359 else
26360   $as_echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363   ac_header_preproc=no
26364 fi
26365
26366 rm -f conftest.err conftest.$ac_ext
26367 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26368 $as_echo "$ac_header_preproc" >&6; }
26369
26370 # So?  What about this header?
26371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26372   yes:no: )
26373     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
26374 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26375     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
26376 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
26377     ac_header_preproc=yes
26378     ;;
26379   no:yes:* )
26380     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
26381 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
26382     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
26383 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
26384     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
26385 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
26386     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
26387 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26388     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
26389 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
26390     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
26391 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
26392
26393     ;;
26394 esac
26395 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
26396 $as_echo_n "checking for uuid/uuid.h... " >&6; }
26397 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26398   $as_echo_n "(cached) " >&6
26399 else
26400   ac_cv_header_uuid_uuid_h=$ac_header_preproc
26401 fi
26402 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
26403 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
26404
26405 fi
26406 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
26407   :
26408 else
26409   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26411 { { $as_echo "$as_me:$LINENO: error:
26412         *** uuid/uuid.h missing, libuuid-devel package required
26413 See \`config.log' for more details." >&5
26414 $as_echo "$as_me: error:
26415         *** uuid/uuid.h missing, libuuid-devel package required
26416 See \`config.log' for more details." >&2;}
26417    { (exit 1); exit 1; }; }; }
26418 fi
26419
26420
26421
26422
26423 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
26424 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
26425 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
26426   $as_echo_n "(cached) " >&6
26427 else
26428   ac_check_lib_save_LIBS=$LIBS
26429 LIBS="-luuid  $LIBS"
26430 cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436
26437 /* Override any GCC internal prototype to avoid an error.
26438    Use char because int might match the return type of a GCC
26439    builtin and then its argument prototype would still apply.  */
26440 #ifdef __cplusplus
26441 extern "C"
26442 #endif
26443 char uuid_generate ();
26444 int
26445 main ()
26446 {
26447 return uuid_generate ();
26448   ;
26449   return 0;
26450 }
26451 _ACEOF
26452 rm -f conftest.$ac_objext conftest$ac_exeext
26453 if { (ac_try="$ac_link"
26454 case "(($ac_try" in
26455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26456   *) ac_try_echo=$ac_try;;
26457 esac
26458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26459 $as_echo "$ac_try_echo") >&5
26460   (eval "$ac_link") 2>conftest.er1
26461   ac_status=$?
26462   grep -v '^ *+' conftest.er1 >conftest.err
26463   rm -f conftest.er1
26464   cat conftest.err >&5
26465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466   (exit $ac_status); } && {
26467          test -z "$ac_c_werror_flag" ||
26468          test ! -s conftest.err
26469        } && test -s conftest$ac_exeext && {
26470          test "$cross_compiling" = yes ||
26471          $as_test_x conftest$ac_exeext
26472        }; then
26473   ac_cv_lib_uuid_uuid_generate=yes
26474 else
26475   $as_echo "$as_me: failed program was:" >&5
26476 sed 's/^/| /' conftest.$ac_ext >&5
26477
26478         ac_cv_lib_uuid_uuid_generate=no
26479 fi
26480
26481 rm -rf conftest.dSYM
26482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26483       conftest$ac_exeext conftest.$ac_ext
26484 LIBS=$ac_check_lib_save_LIBS
26485 fi
26486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
26487 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
26488 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
26489   cat >>confdefs.h <<_ACEOF
26490 #define HAVE_LIBUUID 1
26491 _ACEOF
26492
26493   LIBS="-luuid $LIBS"
26494
26495 else
26496   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26498 { { $as_echo "$as_me:$LINENO: error:
26499         *** uuid_generate() missing, libuuid-devel package required
26500 See \`config.log' for more details." >&5
26501 $as_echo "$as_me: error:
26502         *** uuid_generate() missing, libuuid-devel package required
26503 See \`config.log' for more details." >&2;}
26504    { (exit 1); exit 1; }; }; }
26505 fi
26506
26507
26508
26509 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
26510 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
26511 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
26512   $as_echo_n "(cached) " >&6
26513 else
26514   ac_check_lib_save_LIBS=$LIBS
26515 LIBS="-luuid  $LIBS"
26516 cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h.  */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h.  */
26522
26523 /* Override any GCC internal prototype to avoid an error.
26524    Use char because int might match the return type of a GCC
26525    builtin and then its argument prototype would still apply.  */
26526 #ifdef __cplusplus
26527 extern "C"
26528 #endif
26529 char uuid_is_null ();
26530 int
26531 main ()
26532 {
26533 return uuid_is_null ();
26534   ;
26535   return 0;
26536 }
26537 _ACEOF
26538 rm -f conftest.$ac_objext conftest$ac_exeext
26539 if { (ac_try="$ac_link"
26540 case "(($ac_try" in
26541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542   *) ac_try_echo=$ac_try;;
26543 esac
26544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26545 $as_echo "$ac_try_echo") >&5
26546   (eval "$ac_link") 2>conftest.er1
26547   ac_status=$?
26548   grep -v '^ *+' conftest.er1 >conftest.err
26549   rm -f conftest.er1
26550   cat conftest.err >&5
26551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); } && {
26553          test -z "$ac_c_werror_flag" ||
26554          test ! -s conftest.err
26555        } && test -s conftest$ac_exeext && {
26556          test "$cross_compiling" = yes ||
26557          $as_test_x conftest$ac_exeext
26558        }; then
26559   ac_cv_lib_uuid_uuid_is_null=yes
26560 else
26561   $as_echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564         ac_cv_lib_uuid_uuid_is_null=no
26565 fi
26566
26567 rm -rf conftest.dSYM
26568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26569       conftest$ac_exeext conftest.$ac_ext
26570 LIBS=$ac_check_lib_save_LIBS
26571 fi
26572 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
26573 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
26574 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
26575   cat >>confdefs.h <<_ACEOF
26576 #define HAVE_LIBUUID 1
26577 _ACEOF
26578
26579   LIBS="-luuid $LIBS"
26580
26581 else
26582   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26584 { { $as_echo "$as_me:$LINENO: error:
26585         *** uuid_is_null() missing, libuuid-devel package required
26586 See \`config.log' for more details." >&5
26587 $as_echo "$as_me: error:
26588         *** uuid_is_null() missing, libuuid-devel package required
26589 See \`config.log' for more details." >&2;}
26590    { (exit 1); exit 1; }; }; }
26591 fi
26592
26593
26594         LIBUUID="-luuid"
26595
26596
26597 cat >>confdefs.h <<\_ACEOF
26598 #define HAVE_LIBUUID 1
26599 _ACEOF
26600
26601
26602
26603
26604 # Check whether --with-blkid was given.
26605 if test "${with_blkid+set}" = set; then
26606   withval=$with_blkid;
26607 else
26608   with_blkid=check
26609 fi
26610
26611
26612         LIBBLKID=
26613         if test "x$with_blkid" != xno; then
26614
26615                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
26616 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
26617 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
26618   $as_echo_n "(cached) " >&6
26619 else
26620   ac_check_lib_save_LIBS=$LIBS
26621 LIBS="-lblkid  $LIBS"
26622 cat >conftest.$ac_ext <<_ACEOF
26623 /* confdefs.h.  */
26624 _ACEOF
26625 cat confdefs.h >>conftest.$ac_ext
26626 cat >>conftest.$ac_ext <<_ACEOF
26627 /* end confdefs.h.  */
26628
26629 /* Override any GCC internal prototype to avoid an error.
26630    Use char because int might match the return type of a GCC
26631    builtin and then its argument prototype would still apply.  */
26632 #ifdef __cplusplus
26633 extern "C"
26634 #endif
26635 char blkid_get_cache ();
26636 int
26637 main ()
26638 {
26639 return blkid_get_cache ();
26640   ;
26641   return 0;
26642 }
26643 _ACEOF
26644 rm -f conftest.$ac_objext conftest$ac_exeext
26645 if { (ac_try="$ac_link"
26646 case "(($ac_try" in
26647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648   *) ac_try_echo=$ac_try;;
26649 esac
26650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26651 $as_echo "$ac_try_echo") >&5
26652   (eval "$ac_link") 2>conftest.er1
26653   ac_status=$?
26654   grep -v '^ *+' conftest.er1 >conftest.err
26655   rm -f conftest.er1
26656   cat conftest.err >&5
26657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); } && {
26659          test -z "$ac_c_werror_flag" ||
26660          test ! -s conftest.err
26661        } && test -s conftest$ac_exeext && {
26662          test "$cross_compiling" = yes ||
26663          $as_test_x conftest$ac_exeext
26664        }; then
26665   ac_cv_lib_blkid_blkid_get_cache=yes
26666 else
26667   $as_echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26669
26670         ac_cv_lib_blkid_blkid_get_cache=no
26671 fi
26672
26673 rm -rf conftest.dSYM
26674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26675       conftest$ac_exeext conftest.$ac_ext
26676 LIBS=$ac_check_lib_save_LIBS
26677 fi
26678 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
26679 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
26680 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
26681
26682                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
26683 $as_echo_n "checking for blkid zfs support... " >&6; }
26684
26685                         ZFS_DEV=`mktemp`
26686                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
26687                                 >/dev/null 2>/dev/null
26688                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
26689                                 dd of=$ZFS_DEV bs=1k count=8 \
26690                                 seek=132 conv=notrunc &>/dev/null \
26691                                 >/dev/null 2>/dev/null
26692
26693                         saved_LDFLAGS="$LDFLAGS"
26694                         LDFLAGS="-lblkid"
26695
26696                         if test "$cross_compiling" = yes; then
26697   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26699 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26700 See \`config.log' for more details." >&5
26701 $as_echo "$as_me: error: cannot run test program while cross compiling
26702 See \`config.log' for more details." >&2;}
26703    { (exit 1); exit 1; }; }; }
26704 else
26705   cat >conftest.$ac_ext <<_ACEOF
26706 /* confdefs.h.  */
26707 _ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h.  */
26711
26712                                 #include <stdio.h>
26713                                 #include <blkid/blkid.h>
26714
26715 int
26716 main ()
26717 {
26718
26719                                 blkid_cache cache;
26720                                 char *value;
26721
26722                                 if (blkid_get_cache(&cache, NULL) < 0)
26723                                         return 1;
26724
26725                                 value = blkid_get_tag_value(cache, "TYPE",
26726                                                             "$ZFS_DEV");
26727                                 if (!value) {
26728                                         blkid_put_cache(cache);
26729                                         return 2;
26730                                 }
26731
26732                                 if (strcmp(value, "zfs")) {
26733                                         free(value);
26734                                         blkid_put_cache(cache);
26735                                         return 3;
26736                                 }
26737
26738                                 free(value);
26739                                 blkid_put_cache(cache);
26740
26741   ;
26742   return 0;
26743 }
26744 _ACEOF
26745 rm -f conftest$ac_exeext
26746 if { (ac_try="$ac_link"
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_link") 2>&5
26754   ac_status=$?
26755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26757   { (case "(($ac_try" in
26758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759   *) ac_try_echo=$ac_try;;
26760 esac
26761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26762 $as_echo "$ac_try_echo") >&5
26763   (eval "$ac_try") 2>&5
26764   ac_status=$?
26765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); }; }; then
26767
26768                                 rm -f $ZFS_DEV
26769                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
26770 $as_echo "yes" >&6; }
26771                                 LIBBLKID="-lblkid"
26772
26773
26774 cat >>confdefs.h <<\_ACEOF
26775 #define HAVE_LIBBLKID 1
26776 _ACEOF
26777
26778
26779 else
26780   $as_echo "$as_me: program exited with status $ac_status" >&5
26781 $as_echo "$as_me: failed program was:" >&5
26782 sed 's/^/| /' conftest.$ac_ext >&5
26783
26784 ( exit $ac_status )
26785
26786                                 rm -f $ZFS_DEV
26787                                 { $as_echo "$as_me:$LINENO: result: no" >&5
26788 $as_echo "no" >&6; }
26789                                 if test "x$with_blkid" != xcheck; then
26790   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26792 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26793 See \`config.log' for more details." >&5
26794 $as_echo "$as_me: error: --with-blkid given but unavailable
26795 See \`config.log' for more details." >&2;}
26796    { (exit 1); exit 1; }; }; }
26797 fi
26798
26799
26800 fi
26801 rm -rf conftest.dSYM
26802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26803 fi
26804
26805
26806
26807                         LDFLAGS="$saved_LDFLAGS"
26808
26809 else
26810
26811                         if test "x$with_blkid" != xcheck; then
26812   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26814 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26815 See \`config.log' for more details." >&5
26816 $as_echo "$as_me: error: --with-blkid given but unavailable
26817 See \`config.log' for more details." >&2;}
26818    { (exit 1); exit 1; }; }; }
26819 fi
26820
26821
26822
26823 fi
26824
26825
26826 fi
26827
26828
26829
26830
26831 # Check whether --with-selinux was given.
26832 if test "${with_selinux+set}" = set; then
26833   withval=$with_selinux;
26834 else
26835   with_selinux=check
26836 fi
26837
26838
26839         LIBSELINUX=
26840         if test "x$with_selinux" != xno; then
26841
26842                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26843   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26844 $as_echo_n "checking for selinux/selinux.h... " >&6; }
26845 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26846   $as_echo_n "(cached) " >&6
26847 fi
26848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26849 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
26850 else
26851   # Is the header compilable?
26852 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
26853 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
26854 cat >conftest.$ac_ext <<_ACEOF
26855 /* confdefs.h.  */
26856 _ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h.  */
26860 $ac_includes_default
26861 #include <selinux/selinux.h>
26862 _ACEOF
26863 rm -f conftest.$ac_objext
26864 if { (ac_try="$ac_compile"
26865 case "(($ac_try" in
26866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867   *) ac_try_echo=$ac_try;;
26868 esac
26869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26870 $as_echo "$ac_try_echo") >&5
26871   (eval "$ac_compile") 2>conftest.er1
26872   ac_status=$?
26873   grep -v '^ *+' conftest.er1 >conftest.err
26874   rm -f conftest.er1
26875   cat conftest.err >&5
26876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); } && {
26878          test -z "$ac_c_werror_flag" ||
26879          test ! -s conftest.err
26880        } && test -s conftest.$ac_objext; then
26881   ac_header_compiler=yes
26882 else
26883   $as_echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26885
26886         ac_header_compiler=no
26887 fi
26888
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26891 $as_echo "$ac_header_compiler" >&6; }
26892
26893 # Is the header present?
26894 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
26895 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
26896 cat >conftest.$ac_ext <<_ACEOF
26897 /* confdefs.h.  */
26898 _ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h.  */
26902 #include <selinux/selinux.h>
26903 _ACEOF
26904 if { (ac_try="$ac_cpp conftest.$ac_ext"
26905 case "(($ac_try" in
26906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26907   *) ac_try_echo=$ac_try;;
26908 esac
26909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26910 $as_echo "$ac_try_echo") >&5
26911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26912   ac_status=$?
26913   grep -v '^ *+' conftest.er1 >conftest.err
26914   rm -f conftest.er1
26915   cat conftest.err >&5
26916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); } >/dev/null && {
26918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26919          test ! -s conftest.err
26920        }; then
26921   ac_header_preproc=yes
26922 else
26923   $as_echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926   ac_header_preproc=no
26927 fi
26928
26929 rm -f conftest.err conftest.$ac_ext
26930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26931 $as_echo "$ac_header_preproc" >&6; }
26932
26933 # So?  What about this header?
26934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26935   yes:no: )
26936     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
26937 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26938     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
26939 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
26940     ac_header_preproc=yes
26941     ;;
26942   no:yes:* )
26943     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
26944 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
26945     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
26946 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
26947     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
26948 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
26949     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
26950 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26951     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
26952 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
26953     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
26954 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
26955
26956     ;;
26957 esac
26958 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26959 $as_echo_n "checking for selinux/selinux.h... " >&6; }
26960 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26961   $as_echo_n "(cached) " >&6
26962 else
26963   ac_cv_header_selinux_selinux_h=$ac_header_preproc
26964 fi
26965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26966 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
26967
26968 fi
26969 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
26970
26971                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
26972 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
26973 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
26974   $as_echo_n "(cached) " >&6
26975 else
26976   ac_check_lib_save_LIBS=$LIBS
26977 LIBS="-lselinux  $LIBS"
26978 cat >conftest.$ac_ext <<_ACEOF
26979 /* confdefs.h.  */
26980 _ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h.  */
26984
26985 /* Override any GCC internal prototype to avoid an error.
26986    Use char because int might match the return type of a GCC
26987    builtin and then its argument prototype would still apply.  */
26988 #ifdef __cplusplus
26989 extern "C"
26990 #endif
26991 char is_selinux_enabled ();
26992 int
26993 main ()
26994 {
26995 return is_selinux_enabled ();
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 rm -f conftest.$ac_objext conftest$ac_exeext
27001 if { (ac_try="$ac_link"
27002 case "(($ac_try" in
27003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004   *) ac_try_echo=$ac_try;;
27005 esac
27006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27007 $as_echo "$ac_try_echo") >&5
27008   (eval "$ac_link") 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } && {
27015          test -z "$ac_c_werror_flag" ||
27016          test ! -s conftest.err
27017        } && test -s conftest$ac_exeext && {
27018          test "$cross_compiling" = yes ||
27019          $as_test_x conftest$ac_exeext
27020        }; then
27021   ac_cv_lib_selinux_is_selinux_enabled=yes
27022 else
27023   $as_echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.$ac_ext >&5
27025
27026         ac_cv_lib_selinux_is_selinux_enabled=no
27027 fi
27028
27029 rm -rf conftest.dSYM
27030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27031       conftest$ac_exeext conftest.$ac_ext
27032 LIBS=$ac_check_lib_save_LIBS
27033 fi
27034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
27035 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
27036 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
27037
27038                                 LIBSELINUX="-lselinux"
27039
27040
27041 cat >>confdefs.h <<\_ACEOF
27042 #define HAVE_LIBSELINUX 1
27043 _ACEOF
27044
27045
27046 else
27047
27048                                 if test "x$with_selinux" != xcheck; then
27049   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27051 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
27052 See \`config.log' for more details." >&5
27053 $as_echo "$as_me: error: --with-selinux given but unavailable
27054 See \`config.log' for more details." >&2;}
27055    { (exit 1); exit 1; }; }; }
27056
27057 fi
27058
27059
27060 fi
27061
27062
27063 else
27064
27065                         if test "x$with_selinux" != xcheck; then
27066   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27068 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
27069 See \`config.log' for more details." >&5
27070 $as_echo "$as_me: error: --with-selinux given but unavailable
27071 See \`config.log' for more details." >&2;}
27072    { (exit 1); exit 1; }; }; }
27073
27074 fi
27075
27076
27077 fi
27078
27079
27080
27081 else
27082
27083                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
27084 $as_echo_n "checking for selinux support... " >&6; }
27085                 { $as_echo "$as_me:$LINENO: result: no" >&5
27086 $as_echo "no" >&6; }
27087
27088 fi
27089
27090
27091
27092         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
27093 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
27094
27095         saved_flags="$CFLAGS"
27096         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
27097
27098         if test "$cross_compiling" = yes; then
27099   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27101 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27102 See \`config.log' for more details." >&5
27103 $as_echo "$as_me: error: cannot run test program while cross compiling
27104 See \`config.log' for more details." >&2;}
27105    { (exit 1); exit 1; }; }; }
27106 else
27107   cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113
27114 int
27115 main ()
27116 {
27117
27118   ;
27119   return 0;
27120 }
27121 _ACEOF
27122 rm -f conftest$ac_exeext
27123 if { (ac_try="$ac_link"
27124 case "(($ac_try" in
27125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126   *) ac_try_echo=$ac_try;;
27127 esac
27128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27129 $as_echo "$ac_try_echo") >&5
27130   (eval "$ac_link") 2>&5
27131   ac_status=$?
27132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27134   { (case "(($ac_try" in
27135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136   *) ac_try_echo=$ac_try;;
27137 esac
27138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27139 $as_echo "$ac_try_echo") >&5
27140   (eval "$ac_try") 2>&5
27141   ac_status=$?
27142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); }; }; then
27144
27145                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
27146                 { $as_echo "$as_me:$LINENO: result: yes" >&5
27147 $as_echo "yes" >&6; }
27148
27149 else
27150   $as_echo "$as_me: program exited with status $ac_status" >&5
27151 $as_echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27153
27154 ( exit $ac_status )
27155
27156                 FRAME_LARGER_THAN=
27157                 { $as_echo "$as_me:$LINENO: result: no" >&5
27158 $as_echo "no" >&6; }
27159
27160 fi
27161 rm -rf conftest.dSYM
27162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27163 fi
27164
27165
27166
27167         CFLAGS="$saved_flags"
27168
27169
27170
27171
27172         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
27173 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
27174
27175         saved_CFLAGS="$CFLAGS"
27176         CFLAGS="-fstack-check"
27177         saved_LDFLAGS="$LDFLAGS"
27178         LDFLAGS="-lpthread"
27179
27180         if test "$cross_compiling" = yes; then
27181   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27183 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27184 See \`config.log' for more details." >&5
27185 $as_echo "$as_me: error: cannot run test program while cross compiling
27186 See \`config.log' for more details." >&2;}
27187    { (exit 1); exit 1; }; }; }
27188 else
27189   cat >conftest.$ac_ext <<_ACEOF
27190 /* confdefs.h.  */
27191 _ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h.  */
27195
27196                 #include <pthread.h>
27197                 #include <sys/resource.h>
27198                 #include <unistd.h>
27199                 #include <bits/local_lim.h>
27200
27201                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
27202                 #define STACK_SIZE 8192
27203                 #define BUFSIZE 4096
27204
27205                 void * func(void *arg)
27206                 {
27207                         char buf[BUFSIZE];
27208                 }
27209
27210 int
27211 main ()
27212 {
27213
27214                 pthread_t tid;
27215                 pthread_attr_t attr;
27216                 struct rlimit l;
27217
27218                 l.rlim_cur = 0;
27219                 l.rlim_max = 0;
27220                 setrlimit(RLIMIT_CORE, &l);
27221                 pthread_attr_init(&attr);
27222                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
27223                 pthread_attr_setguardsize(&attr, PAGESIZE);
27224                 pthread_create(&tid, &attr, func, NULL);
27225                 pthread_join(tid, NULL);
27226
27227   ;
27228   return 0;
27229 }
27230 _ACEOF
27231 rm -f conftest$ac_exeext
27232 if { (ac_try="$ac_link"
27233 case "(($ac_try" in
27234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235   *) ac_try_echo=$ac_try;;
27236 esac
27237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27238 $as_echo "$ac_try_echo") >&5
27239   (eval "$ac_link") 2>&5
27240   ac_status=$?
27241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27243   { (case "(($ac_try" in
27244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245   *) ac_try_echo=$ac_try;;
27246 esac
27247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27248 $as_echo "$ac_try_echo") >&5
27249   (eval "$ac_try") 2>&5
27250   ac_status=$?
27251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); }; }; then
27253
27254                 { $as_echo "$as_me:$LINENO: result: no" >&5
27255 $as_echo "no" >&6; }
27256
27257 else
27258   $as_echo "$as_me: program exited with status $ac_status" >&5
27259 $as_echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27261
27262 ( exit $ac_status )
27263
27264
27265 cat >>confdefs.h <<\_ACEOF
27266 #define NPTL_GUARD_WITHIN_STACK 1
27267 _ACEOF
27268
27269                 { $as_echo "$as_me:$LINENO: result: yes" >&5
27270 $as_echo "yes" >&6; }
27271
27272 fi
27273 rm -rf conftest.dSYM
27274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27275 fi
27276
27277
27278         CFLAGS="$saved_CFLAGS"
27279         LDFLAGS="$saved_LDFLAGS"
27280
27281    ;;
27282                 srpm)                        ;;
27283                 *)
27284                 { $as_echo "$as_me:$LINENO: result: Error!" >&5
27285 $as_echo "Error!" >&6; }
27286                 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
27287                               user kernel|user|all|srpm" >&5
27288 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
27289                               user kernel|user|all|srpm" >&2;}
27290    { (exit 1); exit 1; }; } ;;
27291         esac
27292
27293          if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
27294   CONFIG_USER_TRUE=
27295   CONFIG_USER_FALSE='#'
27296 else
27297   CONFIG_USER_TRUE='#'
27298   CONFIG_USER_FALSE=
27299 fi
27300
27301          if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
27302                        test "x$enable_linux_builtin" != xyes ; then
27303   CONFIG_KERNEL_TRUE=
27304   CONFIG_KERNEL_FALSE='#'
27305 else
27306   CONFIG_KERNEL_TRUE='#'
27307   CONFIG_KERNEL_FALSE=
27308 fi
27309
27310
27311
27312         { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
27313 $as_echo_n "checking whether debugging is enabled... " >&6; }
27314         # Check whether --enable-debug was given.
27315 if test "${enable_debug+set}" = set; then
27316   enableval=$enable_debug;
27317 else
27318   enable_debug=no
27319 fi
27320
27321
27322         if test "x$enable_debug" = xyes; then
27323
27324                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
27325                 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
27326                 DEBUG_CFLAGS="-DDEBUG -Werror"
27327                 DEBUG_STACKFLAGS="-fstack-check"
27328                 DEBUG_ZFS="_with_debug"
27329
27330 cat >>confdefs.h <<\_ACEOF
27331 #define ZFS_DEBUG 1
27332 _ACEOF
27333
27334
27335 else
27336
27337                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
27338                 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
27339                 DEBUG_CFLAGS="-DNDEBUG"
27340                 DEBUG_STACKFLAGS=""
27341                 DEBUG_ZFS="_without_debug"
27342
27343 fi
27344
27345
27346
27347
27348
27349         { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
27350 $as_echo "$enable_debug" >&6; }
27351
27352
27353         # Check whether --enable-debug-dmu-tx was given.
27354 if test "${enable_debug_dmu_tx+set}" = set; then
27355   enableval=$enable_debug_dmu_tx;
27356 else
27357   enable_debug_dmu_tx=no
27358 fi
27359
27360
27361         if test "x$enable_debug_dmu_tx" = xyes; then
27362
27363                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
27364                 DEBUG_DMU_TX="_with_debug_dmu_tx"
27365
27366 cat >>confdefs.h <<\_ACEOF
27367 #define DEBUG_DMU_TX 1
27368 _ACEOF
27369
27370
27371 else
27372
27373                 DEBUG_DMU_TX="_without_debug_dmu_tx"
27374
27375 fi
27376
27377
27378
27379         { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
27380 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
27381         { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
27382 $as_echo "$enable_debug_dmu_tx" >&6; }
27383
27384
27385 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/vdev_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec PKGBUILD-zfs PKGBUILD-zfs-modules zfs-script-config.sh zfs.release dkms.conf"
27386
27387
27388 cat >confcache <<\_ACEOF
27389 # This file is a shell script that caches the results of configure
27390 # tests run on this system so they can be shared between configure
27391 # scripts and configure runs, see configure's option --config-cache.
27392 # It is not useful on other systems.  If it contains results you don't
27393 # want to keep, you may remove or edit it.
27394 #
27395 # config.status only pays attention to the cache file if you give it
27396 # the --recheck option to rerun configure.
27397 #
27398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27400 # following values.
27401
27402 _ACEOF
27403
27404 # The following way of writing the cache mishandles newlines in values,
27405 # but we know of no workaround that is simple, portable, and efficient.
27406 # So, we kill variables containing newlines.
27407 # Ultrix sh set writes to stderr and can't be redirected directly,
27408 # and sets the high bit in the cache file unless we assign to the vars.
27409 (
27410   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27411     eval ac_val=\$$ac_var
27412     case $ac_val in #(
27413     *${as_nl}*)
27414       case $ac_var in #(
27415       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27417       esac
27418       case $ac_var in #(
27419       _ | IFS | as_nl) ;; #(
27420       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27421       *) $as_unset $ac_var ;;
27422       esac ;;
27423     esac
27424   done
27425
27426   (set) 2>&1 |
27427     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27428     *${as_nl}ac_space=\ *)
27429       # `set' does not quote correctly, so add quotes (double-quote
27430       # substitution turns \\\\ into \\, and sed turns \\ into \).
27431       sed -n \
27432         "s/'/'\\\\''/g;
27433           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27434       ;; #(
27435     *)
27436       # `set' quotes correctly as required by POSIX, so do not add quotes.
27437       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27438       ;;
27439     esac |
27440     sort
27441 ) |
27442   sed '
27443      /^ac_cv_env_/b end
27444      t clear
27445      :clear
27446      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27447      t end
27448      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27449      :end' >>confcache
27450 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27451   if test -w "$cache_file"; then
27452     test "x$cache_file" != "x/dev/null" &&
27453       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27454 $as_echo "$as_me: updating cache $cache_file" >&6;}
27455     cat confcache >$cache_file
27456   else
27457     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27458 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27459   fi
27460 fi
27461 rm -f confcache
27462
27463 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27464 # Let make expand exec_prefix.
27465 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27466
27467 DEFS=-DHAVE_CONFIG_H
27468
27469 ac_libobjs=
27470 ac_ltlibobjs=
27471 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27472   # 1. Remove the extension, and $U if already installed.
27473   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27474   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27475   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27476   #    will be set to the directory where LIBOBJS objects are built.
27477   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27478   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27479 done
27480 LIBOBJS=$ac_libobjs
27481
27482 LTLIBOBJS=$ac_ltlibobjs
27483
27484
27485 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27486   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27487 Usually this means the macro was only invoked conditionally." >&5
27488 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27489 Usually this means the macro was only invoked conditionally." >&2;}
27490    { (exit 1); exit 1; }; }
27491 fi
27492  if test -n "$EXEEXT"; then
27493   am__EXEEXT_TRUE=
27494   am__EXEEXT_FALSE='#'
27495 else
27496   am__EXEEXT_TRUE='#'
27497   am__EXEEXT_FALSE=
27498 fi
27499
27500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27501   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27502 Usually this means the macro was only invoked conditionally." >&5
27503 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
27504 Usually this means the macro was only invoked conditionally." >&2;}
27505    { (exit 1); exit 1; }; }
27506 fi
27507 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27508   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27509 Usually this means the macro was only invoked conditionally." >&5
27510 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27511 Usually this means the macro was only invoked conditionally." >&2;}
27512    { (exit 1); exit 1; }; }
27513 fi
27514 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
27515   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
27516 Usually this means the macro was only invoked conditionally." >&5
27517 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
27518 Usually this means the macro was only invoked conditionally." >&2;}
27519    { (exit 1); exit 1; }; }
27520 fi
27521 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
27522   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
27523 Usually this means the macro was only invoked conditionally." >&5
27524 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
27525 Usually this means the macro was only invoked conditionally." >&2;}
27526    { (exit 1); exit 1; }; }
27527 fi
27528 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
27529   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
27530 Usually this means the macro was only invoked conditionally." >&5
27531 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
27532 Usually this means the macro was only invoked conditionally." >&2;}
27533    { (exit 1); exit 1; }; }
27534 fi
27535
27536 : ${CONFIG_STATUS=./config.status}
27537 ac_write_fail=0
27538 ac_clean_files_save=$ac_clean_files
27539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27540 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27541 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27542 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27543 #! $SHELL
27544 # Generated by $as_me.
27545 # Run this file to recreate the current configuration.
27546 # Compiler output produced by configure, useful for debugging
27547 # configure, is in config.log if it exists.
27548
27549 debug=false
27550 ac_cs_recheck=false
27551 ac_cs_silent=false
27552 SHELL=\${CONFIG_SHELL-$SHELL}
27553 _ACEOF
27554
27555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27556 ## --------------------- ##
27557 ## M4sh Initialization.  ##
27558 ## --------------------- ##
27559
27560 # Be more Bourne compatible
27561 DUALCASE=1; export DUALCASE # for MKS sh
27562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27563   emulate sh
27564   NULLCMD=:
27565   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27566   # is contrary to our usage.  Disable this feature.
27567   alias -g '${1+"$@"}'='"$@"'
27568   setopt NO_GLOB_SUBST
27569 else
27570   case `(set -o) 2>/dev/null` in
27571   *posix*) set -o posix ;;
27572 esac
27573
27574 fi
27575
27576
27577
27578
27579 # PATH needs CR
27580 # Avoid depending upon Character Ranges.
27581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27584 as_cr_digits='0123456789'
27585 as_cr_alnum=$as_cr_Letters$as_cr_digits
27586
27587 as_nl='
27588 '
27589 export as_nl
27590 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27591 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27593 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27594 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27595   as_echo='printf %s\n'
27596   as_echo_n='printf %s'
27597 else
27598   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27599     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27600     as_echo_n='/usr/ucb/echo -n'
27601   else
27602     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27603     as_echo_n_body='eval
27604       arg=$1;
27605       case $arg in
27606       *"$as_nl"*)
27607         expr "X$arg" : "X\\(.*\\)$as_nl";
27608         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27609       esac;
27610       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27611     '
27612     export as_echo_n_body
27613     as_echo_n='sh -c $as_echo_n_body as_echo'
27614   fi
27615   export as_echo_body
27616   as_echo='sh -c $as_echo_body as_echo'
27617 fi
27618
27619 # The user is always right.
27620 if test "${PATH_SEPARATOR+set}" != set; then
27621   PATH_SEPARATOR=:
27622   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27623     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27624       PATH_SEPARATOR=';'
27625   }
27626 fi
27627
27628 # Support unset when possible.
27629 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27630   as_unset=unset
27631 else
27632   as_unset=false
27633 fi
27634
27635
27636 # IFS
27637 # We need space, tab and new line, in precisely that order.  Quoting is
27638 # there to prevent editors from complaining about space-tab.
27639 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27640 # splitting by setting IFS to empty value.)
27641 IFS=" ""        $as_nl"
27642
27643 # Find who we are.  Look in the path if we contain no directory separator.
27644 case $0 in
27645   *[\\/]* ) as_myself=$0 ;;
27646   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27647 for as_dir in $PATH
27648 do
27649   IFS=$as_save_IFS
27650   test -z "$as_dir" && as_dir=.
27651   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27652 done
27653 IFS=$as_save_IFS
27654
27655      ;;
27656 esac
27657 # We did not find ourselves, most probably we were run as `sh COMMAND'
27658 # in which case we are not to be found in the path.
27659 if test "x$as_myself" = x; then
27660   as_myself=$0
27661 fi
27662 if test ! -f "$as_myself"; then
27663   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27664   { (exit 1); exit 1; }
27665 fi
27666
27667 # Work around bugs in pre-3.0 UWIN ksh.
27668 for as_var in ENV MAIL MAILPATH
27669 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27670 done
27671 PS1='$ '
27672 PS2='> '
27673 PS4='+ '
27674
27675 # NLS nuisances.
27676 LC_ALL=C
27677 export LC_ALL
27678 LANGUAGE=C
27679 export LANGUAGE
27680
27681 # Required to use basename.
27682 if expr a : '\(a\)' >/dev/null 2>&1 &&
27683    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27684   as_expr=expr
27685 else
27686   as_expr=false
27687 fi
27688
27689 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27690   as_basename=basename
27691 else
27692   as_basename=false
27693 fi
27694
27695
27696 # Name of the executable.
27697 as_me=`$as_basename -- "$0" ||
27698 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27699          X"$0" : 'X\(//\)$' \| \
27700          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27701 $as_echo X/"$0" |
27702     sed '/^.*\/\([^/][^/]*\)\/*$/{
27703             s//\1/
27704             q
27705           }
27706           /^X\/\(\/\/\)$/{
27707             s//\1/
27708             q
27709           }
27710           /^X\/\(\/\).*/{
27711             s//\1/
27712             q
27713           }
27714           s/.*/./; q'`
27715
27716 # CDPATH.
27717 $as_unset CDPATH
27718
27719
27720
27721   as_lineno_1=$LINENO
27722   as_lineno_2=$LINENO
27723   test "x$as_lineno_1" != "x$as_lineno_2" &&
27724   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27725
27726   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27727   # uniformly replaced by the line number.  The first 'sed' inserts a
27728   # line-number line after each line using $LINENO; the second 'sed'
27729   # does the real work.  The second script uses 'N' to pair each
27730   # line-number line with the line containing $LINENO, and appends
27731   # trailing '-' during substitution so that $LINENO is not a special
27732   # case at line end.
27733   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27734   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27735   # E. McMahon (1931-1989) for sed's syntax.  :-)
27736   sed -n '
27737     p
27738     /[$]LINENO/=
27739   ' <$as_myself |
27740     sed '
27741       s/[$]LINENO.*/&-/
27742       t lineno
27743       b
27744       :lineno
27745       N
27746       :loop
27747       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27748       t loop
27749       s/-\n.*//
27750     ' >$as_me.lineno &&
27751   chmod +x "$as_me.lineno" ||
27752     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27753    { (exit 1); exit 1; }; }
27754
27755   # Don't try to exec as it changes $[0], causing all sort of problems
27756   # (the dirname of $[0] is not the place where we might find the
27757   # original and so on.  Autoconf is especially sensitive to this).
27758   . "./$as_me.lineno"
27759   # Exit status is that of the last command.
27760   exit
27761 }
27762
27763
27764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27765   as_dirname=dirname
27766 else
27767   as_dirname=false
27768 fi
27769
27770 ECHO_C= ECHO_N= ECHO_T=
27771 case `echo -n x` in
27772 -n*)
27773   case `echo 'x\c'` in
27774   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27775   *)   ECHO_C='\c';;
27776   esac;;
27777 *)
27778   ECHO_N='-n';;
27779 esac
27780 if expr a : '\(a\)' >/dev/null 2>&1 &&
27781    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27782   as_expr=expr
27783 else
27784   as_expr=false
27785 fi
27786
27787 rm -f conf$$ conf$$.exe conf$$.file
27788 if test -d conf$$.dir; then
27789   rm -f conf$$.dir/conf$$.file
27790 else
27791   rm -f conf$$.dir
27792   mkdir conf$$.dir 2>/dev/null
27793 fi
27794 if (echo >conf$$.file) 2>/dev/null; then
27795   if ln -s conf$$.file conf$$ 2>/dev/null; then
27796     as_ln_s='ln -s'
27797     # ... but there are two gotchas:
27798     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27799     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27800     # In both cases, we have to default to `cp -p'.
27801     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27802       as_ln_s='cp -p'
27803   elif ln conf$$.file conf$$ 2>/dev/null; then
27804     as_ln_s=ln
27805   else
27806     as_ln_s='cp -p'
27807   fi
27808 else
27809   as_ln_s='cp -p'
27810 fi
27811 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27812 rmdir conf$$.dir 2>/dev/null
27813
27814 if mkdir -p . 2>/dev/null; then
27815   as_mkdir_p=:
27816 else
27817   test -d ./-p && rmdir ./-p
27818   as_mkdir_p=false
27819 fi
27820
27821 if test -x / >/dev/null 2>&1; then
27822   as_test_x='test -x'
27823 else
27824   if ls -dL / >/dev/null 2>&1; then
27825     as_ls_L_option=L
27826   else
27827     as_ls_L_option=
27828   fi
27829   as_test_x='
27830     eval sh -c '\''
27831       if test -d "$1"; then
27832         test -d "$1/.";
27833       else
27834         case $1 in
27835         -*)set "./$1";;
27836         esac;
27837         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27838         ???[sx]*):;;*)false;;esac;fi
27839     '\'' sh
27840   '
27841 fi
27842 as_executable_p=$as_test_x
27843
27844 # Sed expression to map a string onto a valid CPP name.
27845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27846
27847 # Sed expression to map a string onto a valid variable name.
27848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27849
27850
27851 exec 6>&1
27852
27853 # Save the log message, to keep $[0] and so on meaningful, and to
27854 # report actual input values of CONFIG_FILES etc. instead of their
27855 # values after options handling.
27856 ac_log="
27857 This file was extended by $as_me, which was
27858 generated by GNU Autoconf 2.63.  Invocation command line was
27859
27860   CONFIG_FILES    = $CONFIG_FILES
27861   CONFIG_HEADERS  = $CONFIG_HEADERS
27862   CONFIG_LINKS    = $CONFIG_LINKS
27863   CONFIG_COMMANDS = $CONFIG_COMMANDS
27864   $ $0 $@
27865
27866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27867 "
27868
27869 _ACEOF
27870
27871 case $ac_config_files in *"
27872 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27873 esac
27874
27875 case $ac_config_headers in *"
27876 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27877 esac
27878
27879
27880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27881 # Files that config.status was made for.
27882 config_files="$ac_config_files"
27883 config_headers="$ac_config_headers"
27884 config_commands="$ac_config_commands"
27885
27886 _ACEOF
27887
27888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27889 ac_cs_usage="\
27890 \`$as_me' instantiates files from templates according to the
27891 current configuration.
27892
27893 Usage: $0 [OPTION]... [FILE]...
27894
27895   -h, --help       print this help, then exit
27896   -V, --version    print version number and configuration settings, then exit
27897   -q, --quiet, --silent
27898                    do not print progress messages
27899   -d, --debug      don't remove temporary files
27900       --recheck    update $as_me by reconfiguring in the same conditions
27901       --file=FILE[:TEMPLATE]
27902                    instantiate the configuration file FILE
27903       --header=FILE[:TEMPLATE]
27904                    instantiate the configuration header FILE
27905
27906 Configuration files:
27907 $config_files
27908
27909 Configuration headers:
27910 $config_headers
27911
27912 Configuration commands:
27913 $config_commands
27914
27915 Report bugs to <bug-autoconf@gnu.org>."
27916
27917 _ACEOF
27918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27919 ac_cs_version="\\
27920 config.status
27921 configured by $0, generated by GNU Autoconf 2.63,
27922   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27923
27924 Copyright (C) 2008 Free Software Foundation, Inc.
27925 This config.status script is free software; the Free Software Foundation
27926 gives unlimited permission to copy, distribute and modify it."
27927
27928 ac_pwd='$ac_pwd'
27929 srcdir='$srcdir'
27930 INSTALL='$INSTALL'
27931 MKDIR_P='$MKDIR_P'
27932 AWK='$AWK'
27933 test -n "\$AWK" || AWK=awk
27934 _ACEOF
27935
27936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27937 # The default lists apply if the user does not specify any file.
27938 ac_need_defaults=:
27939 while test $# != 0
27940 do
27941   case $1 in
27942   --*=*)
27943     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27944     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27945     ac_shift=:
27946     ;;
27947   *)
27948     ac_option=$1
27949     ac_optarg=$2
27950     ac_shift=shift
27951     ;;
27952   esac
27953
27954   case $ac_option in
27955   # Handling of the options.
27956   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27957     ac_cs_recheck=: ;;
27958   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27959     $as_echo "$ac_cs_version"; exit ;;
27960   --debug | --debu | --deb | --de | --d | -d )
27961     debug=: ;;
27962   --file | --fil | --fi | --f )
27963     $ac_shift
27964     case $ac_optarg in
27965     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27966     esac
27967     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27968     ac_need_defaults=false;;
27969   --header | --heade | --head | --hea )
27970     $ac_shift
27971     case $ac_optarg in
27972     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27973     esac
27974     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27975     ac_need_defaults=false;;
27976   --he | --h)
27977     # Conflict between --help and --header
27978     { $as_echo "$as_me: error: ambiguous option: $1
27979 Try \`$0 --help' for more information." >&2
27980    { (exit 1); exit 1; }; };;
27981   --help | --hel | -h )
27982     $as_echo "$ac_cs_usage"; exit ;;
27983   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27984   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27985     ac_cs_silent=: ;;
27986
27987   # This is an error.
27988   -*) { $as_echo "$as_me: error: unrecognized option: $1
27989 Try \`$0 --help' for more information." >&2
27990    { (exit 1); exit 1; }; } ;;
27991
27992   *) ac_config_targets="$ac_config_targets $1"
27993      ac_need_defaults=false ;;
27994
27995   esac
27996   shift
27997 done
27998
27999 ac_configure_extra_args=
28000
28001 if $ac_cs_silent; then
28002   exec 6>/dev/null
28003   ac_configure_extra_args="$ac_configure_extra_args --silent"
28004 fi
28005
28006 _ACEOF
28007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28008 if \$ac_cs_recheck; then
28009   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28010   shift
28011   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28012   CONFIG_SHELL='$SHELL'
28013   export CONFIG_SHELL
28014   exec "\$@"
28015 fi
28016
28017 _ACEOF
28018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28019 exec 5>>config.log
28020 {
28021   echo
28022   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28023 ## Running $as_me. ##
28024 _ASBOX
28025   $as_echo "$ac_log"
28026 } >&5
28027
28028 _ACEOF
28029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28030 #
28031 # INIT-COMMANDS
28032 #
28033 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28034
28035
28036 # The HP-UX ksh and POSIX shell print the target directory to stdout
28037 # if CDPATH is set.
28038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28039
28040 sed_quote_subst='$sed_quote_subst'
28041 double_quote_subst='$double_quote_subst'
28042 delay_variable_subst='$delay_variable_subst'
28043 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28044 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28045 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28046 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28047 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28048 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28049 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28050 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28051 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28052 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28053 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28054 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28055 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28056 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28057 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28058 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28059 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28060 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28061 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28062 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28063 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28064 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28065 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28066 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28067 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28068 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28069 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28070 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28071 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28072 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28073 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28074 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28075 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28076 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28077 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28078 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28079 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28080 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28081 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28082 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28083 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28084 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28085 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28086 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28087 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"`'
28088 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"`'
28089 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28090 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28091 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28092 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28093 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28094 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28095 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28096 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28097 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28098 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28099 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28100 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28101 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28102 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28103 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28104 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28105 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28106 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28107 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28108 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28109 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28110 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28111 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28112 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28113 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28114 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28115 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28116 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28117 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28118 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28119 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28120 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28121 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28122 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28123 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28124 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28125 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28126 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28127 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28128 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28129 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28130 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28131 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28132 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28133 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28134 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28135 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28136 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28137 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28138 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28139 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28140 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28141 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28142 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28143 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28144 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28145 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28146 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28147 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28148 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28149 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28150 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28151 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28152 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28153 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28154 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28155 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28156 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28157 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28158 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28159 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28160 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28161
28162 LTCC='$LTCC'
28163 LTCFLAGS='$LTCFLAGS'
28164 compiler='$compiler_DEFAULT'
28165
28166 # Quote evaled strings.
28167 for var in SED \
28168 GREP \
28169 EGREP \
28170 FGREP \
28171 LD \
28172 NM \
28173 LN_S \
28174 lt_SP2NL \
28175 lt_NL2SP \
28176 reload_flag \
28177 OBJDUMP \
28178 deplibs_check_method \
28179 file_magic_cmd \
28180 AR \
28181 AR_FLAGS \
28182 STRIP \
28183 RANLIB \
28184 CC \
28185 CFLAGS \
28186 compiler \
28187 lt_cv_sys_global_symbol_pipe \
28188 lt_cv_sys_global_symbol_to_cdecl \
28189 lt_cv_sys_global_symbol_to_c_name_address \
28190 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28191 SHELL \
28192 ECHO \
28193 lt_prog_compiler_no_builtin_flag \
28194 lt_prog_compiler_wl \
28195 lt_prog_compiler_pic \
28196 lt_prog_compiler_static \
28197 lt_cv_prog_compiler_c_o \
28198 need_locks \
28199 DSYMUTIL \
28200 NMEDIT \
28201 LIPO \
28202 OTOOL \
28203 OTOOL64 \
28204 shrext_cmds \
28205 export_dynamic_flag_spec \
28206 whole_archive_flag_spec \
28207 compiler_needs_object \
28208 with_gnu_ld \
28209 allow_undefined_flag \
28210 no_undefined_flag \
28211 hardcode_libdir_flag_spec \
28212 hardcode_libdir_flag_spec_ld \
28213 hardcode_libdir_separator \
28214 fix_srcfile_path \
28215 exclude_expsyms \
28216 include_expsyms \
28217 file_list_spec \
28218 variables_saved_for_relink \
28219 libname_spec \
28220 library_names_spec \
28221 soname_spec \
28222 finish_eval \
28223 old_striplib \
28224 striplib; do
28225     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28226     *[\\\\\\\`\\"\\\$]*)
28227       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28228       ;;
28229     *)
28230       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28231       ;;
28232     esac
28233 done
28234
28235 # Double-quote double-evaled strings.
28236 for var in reload_cmds \
28237 old_postinstall_cmds \
28238 old_postuninstall_cmds \
28239 old_archive_cmds \
28240 extract_expsyms_cmds \
28241 old_archive_from_new_cmds \
28242 old_archive_from_expsyms_cmds \
28243 archive_cmds \
28244 archive_expsym_cmds \
28245 module_cmds \
28246 module_expsym_cmds \
28247 export_symbols_cmds \
28248 prelink_cmds \
28249 postinstall_cmds \
28250 postuninstall_cmds \
28251 finish_cmds \
28252 sys_lib_search_path_spec \
28253 sys_lib_dlsearch_path_spec; do
28254     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28255     *[\\\\\\\`\\"\\\$]*)
28256       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28257       ;;
28258     *)
28259       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28260       ;;
28261     esac
28262 done
28263
28264 # Fix-up fallback echo if it was mangled by the above quoting rules.
28265 case \$lt_ECHO in
28266 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28267   ;;
28268 esac
28269
28270 ac_aux_dir='$ac_aux_dir'
28271 xsi_shell='$xsi_shell'
28272 lt_shell_append='$lt_shell_append'
28273
28274 # See if we are running on zsh, and set the options which allow our
28275 # commands through without removal of \ escapes INIT.
28276 if test -n "\${ZSH_VERSION+set}" ; then
28277    setopt NO_GLOB_SUBST
28278 fi
28279
28280
28281     PACKAGE='$PACKAGE'
28282     VERSION='$VERSION'
28283     TIMESTAMP='$TIMESTAMP'
28284     RM='$RM'
28285     ofile='$ofile'
28286
28287
28288
28289
28290 _ACEOF
28291
28292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28293
28294 # Handling of arguments.
28295 for ac_config_target in $ac_config_targets
28296 do
28297   case $ac_config_target in
28298     "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
28299     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28300     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28301     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28302     "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
28303     "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
28304     "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
28305     "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
28306     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
28307     "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
28308     "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
28309     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
28310     "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
28311     "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
28312     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28313     "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
28314     "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
28315     "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
28316     "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
28317     "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
28318     "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
28319     "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
28320     "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
28321     "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
28322     "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
28323     "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
28324     "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
28325     "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
28326     "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
28327     "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
28328     "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
28329     "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
28330     "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
28331     "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
28332     "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
28333     "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
28334     "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
28335     "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
28336     "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
28337     "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
28338     "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
28339     "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
28340     "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
28341     "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
28342     "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
28343     "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
28344     "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
28345     "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
28346     "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
28347     "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
28348     "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
28349     "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
28350     "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
28351     "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
28352     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28353     "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
28354     "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
28355     "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
28356     "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
28357     "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
28358     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
28359     "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
28360     "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
28361     "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
28362     "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
28363     "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
28364     "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
28365     "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
28366     "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
28367     "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
28368     "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
28369     "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
28370     "dkms.conf") CONFIG_FILES="$CONFIG_FILES dkms.conf" ;;
28371
28372   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28373 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28374    { (exit 1); exit 1; }; };;
28375   esac
28376 done
28377
28378
28379 # If the user did not use the arguments to specify the items to instantiate,
28380 # then the envvar interface is used.  Set only those that are not.
28381 # We use the long form for the default assignment because of an extremely
28382 # bizarre bug on SunOS 4.1.3.
28383 if $ac_need_defaults; then
28384   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28385   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28386   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28387 fi
28388
28389 # Have a temporary directory for convenience.  Make it in the build tree
28390 # simply because there is no reason against having it here, and in addition,
28391 # creating and moving files from /tmp can sometimes cause problems.
28392 # Hook for its removal unless debugging.
28393 # Note that there is a small window in which the directory will not be cleaned:
28394 # after its creation but before its name has been assigned to `$tmp'.
28395 $debug ||
28396 {
28397   tmp=
28398   trap 'exit_status=$?
28399   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28400 ' 0
28401   trap '{ (exit 1); exit 1; }' 1 2 13 15
28402 }
28403 # Create a (secure) tmp directory for tmp files.
28404
28405 {
28406   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28407   test -n "$tmp" && test -d "$tmp"
28408 }  ||
28409 {
28410   tmp=./conf$$-$RANDOM
28411   (umask 077 && mkdir "$tmp")
28412 } ||
28413 {
28414    $as_echo "$as_me: cannot create a temporary directory in ." >&2
28415    { (exit 1); exit 1; }
28416 }
28417
28418 # Set up the scripts for CONFIG_FILES section.
28419 # No need to generate them if there are no CONFIG_FILES.
28420 # This happens for instance with `./config.status config.h'.
28421 if test -n "$CONFIG_FILES"; then
28422
28423
28424 ac_cr='\r'
28425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28427   ac_cs_awk_cr='\\r'
28428 else
28429   ac_cs_awk_cr=$ac_cr
28430 fi
28431
28432 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28433 _ACEOF
28434
28435
28436 {
28437   echo "cat >conf$$subs.awk <<_ACEOF" &&
28438   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28439   echo "_ACEOF"
28440 } >conf$$subs.sh ||
28441   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28442 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28443    { (exit 1); exit 1; }; }
28444 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28445 ac_delim='%!_!# '
28446 for ac_last_try in false false false false false :; do
28447   . ./conf$$subs.sh ||
28448     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28449 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28450    { (exit 1); exit 1; }; }
28451
28452   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28453   if test $ac_delim_n = $ac_delim_num; then
28454     break
28455   elif $ac_last_try; then
28456     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28457 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28458    { (exit 1); exit 1; }; }
28459   else
28460     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28461   fi
28462 done
28463 rm -f conf$$subs.sh
28464
28465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28466 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28467 _ACEOF
28468 sed -n '
28469 h
28470 s/^/S["/; s/!.*/"]=/
28471 p
28472 g
28473 s/^[^!]*!//
28474 :repl
28475 t repl
28476 s/'"$ac_delim"'$//
28477 t delim
28478 :nl
28479 h
28480 s/\(.\{148\}\).*/\1/
28481 t more1
28482 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28483 p
28484 n
28485 b repl
28486 :more1
28487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28488 p
28489 g
28490 s/.\{148\}//
28491 t nl
28492 :delim
28493 h
28494 s/\(.\{148\}\).*/\1/
28495 t more2
28496 s/["\\]/\\&/g; s/^/"/; s/$/"/
28497 p
28498 b
28499 :more2
28500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28501 p
28502 g
28503 s/.\{148\}//
28504 t delim
28505 ' <conf$$subs.awk | sed '
28506 /^[^""]/{
28507   N
28508   s/\n//
28509 }
28510 ' >>$CONFIG_STATUS || ac_write_fail=1
28511 rm -f conf$$subs.awk
28512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28513 _ACAWK
28514 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28515   for (key in S) S_is_set[key] = 1
28516   FS = "\a"
28517
28518 }
28519 {
28520   line = $ 0
28521   nfields = split(line, field, "@")
28522   substed = 0
28523   len = length(field[1])
28524   for (i = 2; i < nfields; i++) {
28525     key = field[i]
28526     keylen = length(key)
28527     if (S_is_set[key]) {
28528       value = S[key]
28529       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28530       len += length(value) + length(field[++i])
28531       substed = 1
28532     } else
28533       len += 1 + keylen
28534   }
28535
28536   print line
28537 }
28538
28539 _ACAWK
28540 _ACEOF
28541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28542 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28543   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28544 else
28545   cat
28546 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28547   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
28548 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
28549    { (exit 1); exit 1; }; }
28550 _ACEOF
28551
28552 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28553 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28554 # trailing colons and then remove the whole line if VPATH becomes empty
28555 # (actually we leave an empty line to preserve line numbers).
28556 if test "x$srcdir" = x.; then
28557   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28558 s/:*\$(srcdir):*/:/
28559 s/:*\${srcdir}:*/:/
28560 s/:*@srcdir@:*/:/
28561 s/^\([^=]*=[     ]*\):*/\1/
28562 s/:*$//
28563 s/^[^=]*=[       ]*$//
28564 }'
28565 fi
28566
28567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28568 fi # test -n "$CONFIG_FILES"
28569
28570 # Set up the scripts for CONFIG_HEADERS section.
28571 # No need to generate them if there are no CONFIG_HEADERS.
28572 # This happens for instance with `./config.status Makefile'.
28573 if test -n "$CONFIG_HEADERS"; then
28574 cat >"$tmp/defines.awk" <<\_ACAWK ||
28575 BEGIN {
28576 _ACEOF
28577
28578 # Transform confdefs.h into an awk script `defines.awk', embedded as
28579 # here-document in config.status, that substitutes the proper values into
28580 # config.h.in to produce config.h.
28581
28582 # Create a delimiter string that does not exist in confdefs.h, to ease
28583 # handling of long lines.
28584 ac_delim='%!_!# '
28585 for ac_last_try in false false :; do
28586   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28587   if test -z "$ac_t"; then
28588     break
28589   elif $ac_last_try; then
28590     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
28591 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
28592    { (exit 1); exit 1; }; }
28593   else
28594     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28595   fi
28596 done
28597
28598 # For the awk script, D is an array of macro values keyed by name,
28599 # likewise P contains macro parameters if any.  Preserve backslash
28600 # newline sequences.
28601
28602 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28603 sed -n '
28604 s/.\{148\}/&'"$ac_delim"'/g
28605 t rset
28606 :rset
28607 s/^[     ]*#[    ]*define[       ][      ]*/ /
28608 t def
28609 d
28610 :def
28611 s/\\$//
28612 t bsnl
28613 s/["\\]/\\&/g
28614 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28615 D["\1"]=" \3"/p
28616 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28617 d
28618 :bsnl
28619 s/["\\]/\\&/g
28620 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28621 D["\1"]=" \3\\\\\\n"\\/p
28622 t cont
28623 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28624 t cont
28625 d
28626 :cont
28627 n
28628 s/.\{148\}/&'"$ac_delim"'/g
28629 t clear
28630 :clear
28631 s/\\$//
28632 t bsnlc
28633 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28634 d
28635 :bsnlc
28636 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28637 b cont
28638 ' <confdefs.h | sed '
28639 s/'"$ac_delim"'/"\\\
28640 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28641
28642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28643   for (key in D) D_is_set[key] = 1
28644   FS = "\a"
28645 }
28646 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28647   line = \$ 0
28648   split(line, arg, " ")
28649   if (arg[1] == "#") {
28650     defundef = arg[2]
28651     mac1 = arg[3]
28652   } else {
28653     defundef = substr(arg[1], 2)
28654     mac1 = arg[2]
28655   }
28656   split(mac1, mac2, "(") #)
28657   macro = mac2[1]
28658   prefix = substr(line, 1, index(line, defundef) - 1)
28659   if (D_is_set[macro]) {
28660     # Preserve the white space surrounding the "#".
28661     print prefix "define", macro P[macro] D[macro]
28662     next
28663   } else {
28664     # Replace #undef with comments.  This is necessary, for example,
28665     # in the case of _POSIX_SOURCE, which is predefined and required
28666     # on some systems where configure will not decide to define it.
28667     if (defundef == "undef") {
28668       print "/*", prefix defundef, macro, "*/"
28669       next
28670     }
28671   }
28672 }
28673 { print }
28674 _ACAWK
28675 _ACEOF
28676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28677   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
28678 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
28679    { (exit 1); exit 1; }; }
28680 fi # test -n "$CONFIG_HEADERS"
28681
28682
28683 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28684 shift
28685 for ac_tag
28686 do
28687   case $ac_tag in
28688   :[FHLC]) ac_mode=$ac_tag; continue;;
28689   esac
28690   case $ac_mode$ac_tag in
28691   :[FHL]*:*);;
28692   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
28693 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
28694    { (exit 1); exit 1; }; };;
28695   :[FH]-) ac_tag=-:-;;
28696   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28697   esac
28698   ac_save_IFS=$IFS
28699   IFS=:
28700   set x $ac_tag
28701   IFS=$ac_save_IFS
28702   shift
28703   ac_file=$1
28704   shift
28705
28706   case $ac_mode in
28707   :L) ac_source=$1;;
28708   :[FH])
28709     ac_file_inputs=
28710     for ac_f
28711     do
28712       case $ac_f in
28713       -) ac_f="$tmp/stdin";;
28714       *) # Look for the file first in the build tree, then in the source tree
28715          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28716          # because $ac_f cannot contain `:'.
28717          test -f "$ac_f" ||
28718            case $ac_f in
28719            [\\/$]*) false;;
28720            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28721            esac ||
28722            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28723 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28724    { (exit 1); exit 1; }; };;
28725       esac
28726       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28727       ac_file_inputs="$ac_file_inputs '$ac_f'"
28728     done
28729
28730     # Let's still pretend it is `configure' which instantiates (i.e., don't
28731     # use $as_me), people would be surprised to read:
28732     #    /* config.h.  Generated by config.status.  */
28733     configure_input='Generated from '`
28734           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28735         `' by configure.'
28736     if test x"$ac_file" != x-; then
28737       configure_input="$ac_file.  $configure_input"
28738       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
28739 $as_echo "$as_me: creating $ac_file" >&6;}
28740     fi
28741     # Neutralize special characters interpreted by sed in replacement strings.
28742     case $configure_input in #(
28743     *\&* | *\|* | *\\* )
28744        ac_sed_conf_input=`$as_echo "$configure_input" |
28745        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28746     *) ac_sed_conf_input=$configure_input;;
28747     esac
28748
28749     case $ac_tag in
28750     *:-:* | *:-) cat >"$tmp/stdin" \
28751       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28752 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28753    { (exit 1); exit 1; }; } ;;
28754     esac
28755     ;;
28756   esac
28757
28758   ac_dir=`$as_dirname -- "$ac_file" ||
28759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28760          X"$ac_file" : 'X\(//\)[^/]' \| \
28761          X"$ac_file" : 'X\(//\)$' \| \
28762          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28763 $as_echo X"$ac_file" |
28764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28765             s//\1/
28766             q
28767           }
28768           /^X\(\/\/\)[^/].*/{
28769             s//\1/
28770             q
28771           }
28772           /^X\(\/\/\)$/{
28773             s//\1/
28774             q
28775           }
28776           /^X\(\/\).*/{
28777             s//\1/
28778             q
28779           }
28780           s/.*/./; q'`
28781   { as_dir="$ac_dir"
28782   case $as_dir in #(
28783   -*) as_dir=./$as_dir;;
28784   esac
28785   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28786     as_dirs=
28787     while :; do
28788       case $as_dir in #(
28789       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28790       *) as_qdir=$as_dir;;
28791       esac
28792       as_dirs="'$as_qdir' $as_dirs"
28793       as_dir=`$as_dirname -- "$as_dir" ||
28794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28795          X"$as_dir" : 'X\(//\)[^/]' \| \
28796          X"$as_dir" : 'X\(//\)$' \| \
28797          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28798 $as_echo X"$as_dir" |
28799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28800             s//\1/
28801             q
28802           }
28803           /^X\(\/\/\)[^/].*/{
28804             s//\1/
28805             q
28806           }
28807           /^X\(\/\/\)$/{
28808             s//\1/
28809             q
28810           }
28811           /^X\(\/\).*/{
28812             s//\1/
28813             q
28814           }
28815           s/.*/./; q'`
28816       test -d "$as_dir" && break
28817     done
28818     test -z "$as_dirs" || eval "mkdir $as_dirs"
28819   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28820 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28821    { (exit 1); exit 1; }; }; }
28822   ac_builddir=.
28823
28824 case "$ac_dir" in
28825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28826 *)
28827   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28828   # A ".." for each directory in $ac_dir_suffix.
28829   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28830   case $ac_top_builddir_sub in
28831   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28832   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28833   esac ;;
28834 esac
28835 ac_abs_top_builddir=$ac_pwd
28836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28837 # for backward compatibility:
28838 ac_top_builddir=$ac_top_build_prefix
28839
28840 case $srcdir in
28841   .)  # We are building in place.
28842     ac_srcdir=.
28843     ac_top_srcdir=$ac_top_builddir_sub
28844     ac_abs_top_srcdir=$ac_pwd ;;
28845   [\\/]* | ?:[\\/]* )  # Absolute name.
28846     ac_srcdir=$srcdir$ac_dir_suffix;
28847     ac_top_srcdir=$srcdir
28848     ac_abs_top_srcdir=$srcdir ;;
28849   *) # Relative name.
28850     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28851     ac_top_srcdir=$ac_top_build_prefix$srcdir
28852     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28853 esac
28854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28855
28856
28857   case $ac_mode in
28858   :F)
28859   #
28860   # CONFIG_FILE
28861   #
28862
28863   case $INSTALL in
28864   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28865   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28866   esac
28867   ac_MKDIR_P=$MKDIR_P
28868   case $MKDIR_P in
28869   [\\/$]* | ?:[\\/]* ) ;;
28870   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28871   esac
28872 _ACEOF
28873
28874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28875 # If the template does not know about datarootdir, expand it.
28876 # FIXME: This hack should be removed a few years after 2.60.
28877 ac_datarootdir_hack=; ac_datarootdir_seen=
28878
28879 ac_sed_dataroot='
28880 /datarootdir/ {
28881   p
28882   q
28883 }
28884 /@datadir@/p
28885 /@docdir@/p
28886 /@infodir@/p
28887 /@localedir@/p
28888 /@mandir@/p
28889 '
28890 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28891 *datarootdir*) ac_datarootdir_seen=yes;;
28892 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28893   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28894 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28895 _ACEOF
28896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28897   ac_datarootdir_hack='
28898   s&@datadir@&$datadir&g
28899   s&@docdir@&$docdir&g
28900   s&@infodir@&$infodir&g
28901   s&@localedir@&$localedir&g
28902   s&@mandir@&$mandir&g
28903     s&\\\${datarootdir}&$datarootdir&g' ;;
28904 esac
28905 _ACEOF
28906
28907 # Neutralize VPATH when `$srcdir' = `.'.
28908 # Shell code in configure.ac might set extrasub.
28909 # FIXME: do we really want to maintain this feature?
28910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28911 ac_sed_extra="$ac_vpsub
28912 $extrasub
28913 _ACEOF
28914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28915 :t
28916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28917 s|@configure_input@|$ac_sed_conf_input|;t t
28918 s&@top_builddir@&$ac_top_builddir_sub&;t t
28919 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28920 s&@srcdir@&$ac_srcdir&;t t
28921 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28922 s&@top_srcdir@&$ac_top_srcdir&;t t
28923 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28924 s&@builddir@&$ac_builddir&;t t
28925 s&@abs_builddir@&$ac_abs_builddir&;t t
28926 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28927 s&@INSTALL@&$ac_INSTALL&;t t
28928 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28929 $ac_datarootdir_hack
28930 "
28931 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28932   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28934    { (exit 1); exit 1; }; }
28935
28936 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28937   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28938   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28939   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28940 which seems to be undefined.  Please make sure it is defined." >&5
28941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28942 which seems to be undefined.  Please make sure it is defined." >&2;}
28943
28944   rm -f "$tmp/stdin"
28945   case $ac_file in
28946   -) cat "$tmp/out" && rm -f "$tmp/out";;
28947   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28948   esac \
28949   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28950 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28951    { (exit 1); exit 1; }; }
28952  ;;
28953   :H)
28954   #
28955   # CONFIG_HEADER
28956   #
28957   if test x"$ac_file" != x-; then
28958     {
28959       $as_echo "/* $configure_input  */" \
28960       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28961     } >"$tmp/config.h" \
28962       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28963 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28964    { (exit 1); exit 1; }; }
28965     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28966       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28967 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28968     else
28969       rm -f "$ac_file"
28970       mv "$tmp/config.h" "$ac_file" \
28971         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28972 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28973    { (exit 1); exit 1; }; }
28974     fi
28975   else
28976     $as_echo "/* $configure_input  */" \
28977       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28978       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28979 $as_echo "$as_me: error: could not create -" >&2;}
28980    { (exit 1); exit 1; }; }
28981   fi
28982 # Compute "$ac_file"'s index in $config_headers.
28983 _am_arg="$ac_file"
28984 _am_stamp_count=1
28985 for _am_header in $config_headers :; do
28986   case $_am_header in
28987     $_am_arg | $_am_arg:* )
28988       break ;;
28989     * )
28990       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28991   esac
28992 done
28993 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28994 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28995          X"$_am_arg" : 'X\(//\)[^/]' \| \
28996          X"$_am_arg" : 'X\(//\)$' \| \
28997          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28998 $as_echo X"$_am_arg" |
28999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29000             s//\1/
29001             q
29002           }
29003           /^X\(\/\/\)[^/].*/{
29004             s//\1/
29005             q
29006           }
29007           /^X\(\/\/\)$/{
29008             s//\1/
29009             q
29010           }
29011           /^X\(\/\).*/{
29012             s//\1/
29013             q
29014           }
29015           s/.*/./; q'`/stamp-h$_am_stamp_count
29016  ;;
29017
29018   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29019 $as_echo "$as_me: executing $ac_file commands" >&6;}
29020  ;;
29021   esac
29022
29023
29024   case $ac_file$ac_mode in
29025     "zfs_config.h":H)
29026         (mv zfs_config.h zfs_config.h.tmp &&
29027         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
29028         rm zfs_config.h.tmp) || exit 1 ;;
29029     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29030   # Autoconf 2.62 quotes --file arguments for eval, but not when files
29031   # are listed without --file.  Let's play safe and only enable the eval
29032   # if we detect the quoting.
29033   case $CONFIG_FILES in
29034   *\'*) eval set x "$CONFIG_FILES" ;;
29035   *)   set x $CONFIG_FILES ;;
29036   esac
29037   shift
29038   for mf
29039   do
29040     # Strip MF so we end up with the name of the file.
29041     mf=`echo "$mf" | sed -e 's/:.*$//'`
29042     # Check whether this is an Automake generated Makefile or not.
29043     # We used to match only the files named `Makefile.in', but
29044     # some people rename them; so instead we look at the file content.
29045     # Grep'ing the first line is not enough: some people post-process
29046     # each Makefile.in and add a new line on top of each file to say so.
29047     # Grep'ing the whole file is not good either: AIX grep has a line
29048     # limit of 2048, but all sed's we know have understand at least 4000.
29049     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29050       dirpart=`$as_dirname -- "$mf" ||
29051 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29052          X"$mf" : 'X\(//\)[^/]' \| \
29053          X"$mf" : 'X\(//\)$' \| \
29054          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29055 $as_echo X"$mf" |
29056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29057             s//\1/
29058             q
29059           }
29060           /^X\(\/\/\)[^/].*/{
29061             s//\1/
29062             q
29063           }
29064           /^X\(\/\/\)$/{
29065             s//\1/
29066             q
29067           }
29068           /^X\(\/\).*/{
29069             s//\1/
29070             q
29071           }
29072           s/.*/./; q'`
29073     else
29074       continue
29075     fi
29076     # Extract the definition of DEPDIR, am__include, and am__quote
29077     # from the Makefile without running `make'.
29078     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29079     test -z "$DEPDIR" && continue
29080     am__include=`sed -n 's/^am__include = //p' < "$mf"`
29081     test -z "am__include" && continue
29082     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29083     # When using ansi2knr, U may be empty or an underscore; expand it
29084     U=`sed -n 's/^U = //p' < "$mf"`
29085     # Find all dependency output files, they are included files with
29086     # $(DEPDIR) in their names.  We invoke sed twice because it is the
29087     # simplest approach to changing $(DEPDIR) to its actual value in the
29088     # expansion.
29089     for file in `sed -n "
29090       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29091          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29092       # Make sure the directory exists.
29093       test -f "$dirpart/$file" && continue
29094       fdir=`$as_dirname -- "$file" ||
29095 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29096          X"$file" : 'X\(//\)[^/]' \| \
29097          X"$file" : 'X\(//\)$' \| \
29098          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29099 $as_echo X"$file" |
29100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29101             s//\1/
29102             q
29103           }
29104           /^X\(\/\/\)[^/].*/{
29105             s//\1/
29106             q
29107           }
29108           /^X\(\/\/\)$/{
29109             s//\1/
29110             q
29111           }
29112           /^X\(\/\).*/{
29113             s//\1/
29114             q
29115           }
29116           s/.*/./; q'`
29117       { as_dir=$dirpart/$fdir
29118   case $as_dir in #(
29119   -*) as_dir=./$as_dir;;
29120   esac
29121   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29122     as_dirs=
29123     while :; do
29124       case $as_dir in #(
29125       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29126       *) as_qdir=$as_dir;;
29127       esac
29128       as_dirs="'$as_qdir' $as_dirs"
29129       as_dir=`$as_dirname -- "$as_dir" ||
29130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29131          X"$as_dir" : 'X\(//\)[^/]' \| \
29132          X"$as_dir" : 'X\(//\)$' \| \
29133          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29134 $as_echo X"$as_dir" |
29135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29136             s//\1/
29137             q
29138           }
29139           /^X\(\/\/\)[^/].*/{
29140             s//\1/
29141             q
29142           }
29143           /^X\(\/\/\)$/{
29144             s//\1/
29145             q
29146           }
29147           /^X\(\/\).*/{
29148             s//\1/
29149             q
29150           }
29151           s/.*/./; q'`
29152       test -d "$as_dir" && break
29153     done
29154     test -z "$as_dirs" || eval "mkdir $as_dirs"
29155   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29156 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29157    { (exit 1); exit 1; }; }; }
29158       # echo "creating $dirpart/$file"
29159       echo '# dummy' > "$dirpart/$file"
29160     done
29161   done
29162 }
29163  ;;
29164     "libtool":C)
29165
29166     # See if we are running on zsh, and set the options which allow our
29167     # commands through without removal of \ escapes.
29168     if test -n "${ZSH_VERSION+set}" ; then
29169       setopt NO_GLOB_SUBST
29170     fi
29171
29172     cfgfile="${ofile}T"
29173     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29174     $RM "$cfgfile"
29175
29176     cat <<_LT_EOF >> "$cfgfile"
29177 #! $SHELL
29178
29179 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29180 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29183 #
29184 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29185 #                 2006, 2007, 2008 Free Software Foundation, Inc.
29186 #   Written by Gordon Matzigkeit, 1996
29187 #
29188 #   This file is part of GNU Libtool.
29189 #
29190 # GNU Libtool is free software; you can redistribute it and/or
29191 # modify it under the terms of the GNU General Public License as
29192 # published by the Free Software Foundation; either version 2 of
29193 # the License, or (at your option) any later version.
29194 #
29195 # As a special exception to the GNU General Public License,
29196 # if you distribute this file as part of a program or library that
29197 # is built using GNU Libtool, you may include this file under the
29198 # same distribution terms that you use for the rest of that program.
29199 #
29200 # GNU Libtool is distributed in the hope that it will be useful,
29201 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29203 # GNU General Public License for more details.
29204 #
29205 # You should have received a copy of the GNU General Public License
29206 # along with GNU Libtool; see the file COPYING.  If not, a copy
29207 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29208 # obtained by writing to the Free Software Foundation, Inc.,
29209 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29210
29211
29212 # The names of the tagged configurations supported by this script.
29213 available_tags=""
29214
29215 # ### BEGIN LIBTOOL CONFIG
29216
29217 # Which release of libtool.m4 was used?
29218 macro_version=$macro_version
29219 macro_revision=$macro_revision
29220
29221 # Whether or not to build shared libraries.
29222 build_libtool_libs=$enable_shared
29223
29224 # Whether or not to build static libraries.
29225 build_old_libs=$enable_static
29226
29227 # What type of objects to build.
29228 pic_mode=$pic_mode
29229
29230 # Whether or not to optimize for fast installation.
29231 fast_install=$enable_fast_install
29232
29233 # The host system.
29234 host_alias=$host_alias
29235 host=$host
29236 host_os=$host_os
29237
29238 # The build system.
29239 build_alias=$build_alias
29240 build=$build
29241 build_os=$build_os
29242
29243 # A sed program that does not truncate output.
29244 SED=$lt_SED
29245
29246 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29247 Xsed="\$SED -e 1s/^X//"
29248
29249 # A grep program that handles long lines.
29250 GREP=$lt_GREP
29251
29252 # An ERE matcher.
29253 EGREP=$lt_EGREP
29254
29255 # A literal string matcher.
29256 FGREP=$lt_FGREP
29257
29258 # A BSD- or MS-compatible name lister.
29259 NM=$lt_NM
29260
29261 # Whether we need soft or hard links.
29262 LN_S=$lt_LN_S
29263
29264 # What is the maximum length of a command?
29265 max_cmd_len=$max_cmd_len
29266
29267 # Object file suffix (normally "o").
29268 objext=$ac_objext
29269
29270 # Executable file suffix (normally "").
29271 exeext=$exeext
29272
29273 # whether the shell understands "unset".
29274 lt_unset=$lt_unset
29275
29276 # turn spaces into newlines.
29277 SP2NL=$lt_lt_SP2NL
29278
29279 # turn newlines into spaces.
29280 NL2SP=$lt_lt_NL2SP
29281
29282 # How to create reloadable object files.
29283 reload_flag=$lt_reload_flag
29284 reload_cmds=$lt_reload_cmds
29285
29286 # An object symbol dumper.
29287 OBJDUMP=$lt_OBJDUMP
29288
29289 # Method to check whether dependent libraries are shared objects.
29290 deplibs_check_method=$lt_deplibs_check_method
29291
29292 # Command to use when deplibs_check_method == "file_magic".
29293 file_magic_cmd=$lt_file_magic_cmd
29294
29295 # The archiver.
29296 AR=$lt_AR
29297 AR_FLAGS=$lt_AR_FLAGS
29298
29299 # A symbol stripping program.
29300 STRIP=$lt_STRIP
29301
29302 # Commands used to install an old-style archive.
29303 RANLIB=$lt_RANLIB
29304 old_postinstall_cmds=$lt_old_postinstall_cmds
29305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29306
29307 # A C compiler.
29308 LTCC=$lt_CC
29309
29310 # LTCC compiler flags.
29311 LTCFLAGS=$lt_CFLAGS
29312
29313 # Take the output of nm and produce a listing of raw symbols and C names.
29314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29315
29316 # Transform the output of nm in a proper C declaration.
29317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29318
29319 # Transform the output of nm in a C name address pair.
29320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29321
29322 # Transform the output of nm in a C name address pair when lib prefix is needed.
29323 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29324
29325 # The name of the directory that contains temporary libtool files.
29326 objdir=$objdir
29327
29328 # Shell to use when invoking shell scripts.
29329 SHELL=$lt_SHELL
29330
29331 # An echo program that does not interpret backslashes.
29332 ECHO=$lt_ECHO
29333
29334 # Used to examine libraries when file_magic_cmd begins with "file".
29335 MAGIC_CMD=$MAGIC_CMD
29336
29337 # Must we lock files when doing compilation?
29338 need_locks=$lt_need_locks
29339
29340 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29341 DSYMUTIL=$lt_DSYMUTIL
29342
29343 # Tool to change global to local symbols on Mac OS X.
29344 NMEDIT=$lt_NMEDIT
29345
29346 # Tool to manipulate fat objects and archives on Mac OS X.
29347 LIPO=$lt_LIPO
29348
29349 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29350 OTOOL=$lt_OTOOL
29351
29352 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29353 OTOOL64=$lt_OTOOL64
29354
29355 # Old archive suffix (normally "a").
29356 libext=$libext
29357
29358 # Shared library suffix (normally ".so").
29359 shrext_cmds=$lt_shrext_cmds
29360
29361 # The commands to extract the exported symbol list from a shared archive.
29362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29363
29364 # Variables whose values should be saved in libtool wrapper scripts and
29365 # restored at link time.
29366 variables_saved_for_relink=$lt_variables_saved_for_relink
29367
29368 # Do we need the "lib" prefix for modules?
29369 need_lib_prefix=$need_lib_prefix
29370
29371 # Do we need a version for libraries?
29372 need_version=$need_version
29373
29374 # Library versioning type.
29375 version_type=$version_type
29376
29377 # Shared library runtime path variable.
29378 runpath_var=$runpath_var
29379
29380 # Shared library path variable.
29381 shlibpath_var=$shlibpath_var
29382
29383 # Is shlibpath searched before the hard-coded library search path?
29384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29385
29386 # Format of library name prefix.
29387 libname_spec=$lt_libname_spec
29388
29389 # List of archive names.  First name is the real one, the rest are links.
29390 # The last name is the one that the linker finds with -lNAME
29391 library_names_spec=$lt_library_names_spec
29392
29393 # The coded name of the library, if different from the real name.
29394 soname_spec=$lt_soname_spec
29395
29396 # Command to use after installation of a shared archive.
29397 postinstall_cmds=$lt_postinstall_cmds
29398
29399 # Command to use after uninstallation of a shared archive.
29400 postuninstall_cmds=$lt_postuninstall_cmds
29401
29402 # Commands used to finish a libtool library installation in a directory.
29403 finish_cmds=$lt_finish_cmds
29404
29405 # As "finish_cmds", except a single script fragment to be evaled but
29406 # not shown.
29407 finish_eval=$lt_finish_eval
29408
29409 # Whether we should hardcode library paths into libraries.
29410 hardcode_into_libs=$hardcode_into_libs
29411
29412 # Compile-time system search path for libraries.
29413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29414
29415 # Run-time system search path for libraries.
29416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29417
29418 # Whether dlopen is supported.
29419 dlopen_support=$enable_dlopen
29420
29421 # Whether dlopen of programs is supported.
29422 dlopen_self=$enable_dlopen_self
29423
29424 # Whether dlopen of statically linked programs is supported.
29425 dlopen_self_static=$enable_dlopen_self_static
29426
29427 # Commands to strip libraries.
29428 old_striplib=$lt_old_striplib
29429 striplib=$lt_striplib
29430
29431
29432 # The linker used to build libraries.
29433 LD=$lt_LD
29434
29435 # Commands used to build an old-style archive.
29436 old_archive_cmds=$lt_old_archive_cmds
29437
29438 # A language specific compiler.
29439 CC=$lt_compiler
29440
29441 # Is the compiler the GNU compiler?
29442 with_gcc=$GCC
29443
29444 # Compiler flag to turn off builtin functions.
29445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29446
29447 # How to pass a linker flag through the compiler.
29448 wl=$lt_lt_prog_compiler_wl
29449
29450 # Additional compiler flags for building library objects.
29451 pic_flag=$lt_lt_prog_compiler_pic
29452
29453 # Compiler flag to prevent dynamic linking.
29454 link_static_flag=$lt_lt_prog_compiler_static
29455
29456 # Does compiler simultaneously support -c and -o options?
29457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29458
29459 # Whether or not to add -lc for building shared libraries.
29460 build_libtool_need_lc=$archive_cmds_need_lc
29461
29462 # Whether or not to disallow shared libs when runtime libs are static.
29463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29464
29465 # Compiler flag to allow reflexive dlopens.
29466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29467
29468 # Compiler flag to generate shared objects directly from archives.
29469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29470
29471 # Whether the compiler copes with passing no objects directly.
29472 compiler_needs_object=$lt_compiler_needs_object
29473
29474 # Create an old-style archive from a shared archive.
29475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29476
29477 # Create a temporary old-style archive to link instead of a shared archive.
29478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29479
29480 # Commands used to build a shared archive.
29481 archive_cmds=$lt_archive_cmds
29482 archive_expsym_cmds=$lt_archive_expsym_cmds
29483
29484 # Commands used to build a loadable module if different from building
29485 # a shared archive.
29486 module_cmds=$lt_module_cmds
29487 module_expsym_cmds=$lt_module_expsym_cmds
29488
29489 # Whether we are building with GNU ld or not.
29490 with_gnu_ld=$lt_with_gnu_ld
29491
29492 # Flag that allows shared libraries with undefined symbols to be built.
29493 allow_undefined_flag=$lt_allow_undefined_flag
29494
29495 # Flag that enforces no undefined symbols.
29496 no_undefined_flag=$lt_no_undefined_flag
29497
29498 # Flag to hardcode \$libdir into a binary during linking.
29499 # This must work even if \$libdir does not exist
29500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29501
29502 # If ld is used when linking, flag to hardcode \$libdir into a binary
29503 # during linking.  This must work even if \$libdir does not exist.
29504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29505
29506 # Whether we need a single "-rpath" flag with a separated argument.
29507 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29508
29509 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29510 # DIR into the resulting binary.
29511 hardcode_direct=$hardcode_direct
29512
29513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29514 # DIR into the resulting binary and the resulting library dependency is
29515 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29516 # library is relocated.
29517 hardcode_direct_absolute=$hardcode_direct_absolute
29518
29519 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29520 # into the resulting binary.
29521 hardcode_minus_L=$hardcode_minus_L
29522
29523 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29524 # into the resulting binary.
29525 hardcode_shlibpath_var=$hardcode_shlibpath_var
29526
29527 # Set to "yes" if building a shared library automatically hardcodes DIR
29528 # into the library and all subsequent libraries and executables linked
29529 # against it.
29530 hardcode_automatic=$hardcode_automatic
29531
29532 # Set to yes if linker adds runtime paths of dependent libraries
29533 # to runtime path list.
29534 inherit_rpath=$inherit_rpath
29535
29536 # Whether libtool must link a program against all its dependency libraries.
29537 link_all_deplibs=$link_all_deplibs
29538
29539 # Fix the shell variable \$srcfile for the compiler.
29540 fix_srcfile_path=$lt_fix_srcfile_path
29541
29542 # Set to "yes" if exported symbols are required.
29543 always_export_symbols=$always_export_symbols
29544
29545 # The commands to list exported symbols.
29546 export_symbols_cmds=$lt_export_symbols_cmds
29547
29548 # Symbols that should not be listed in the preloaded symbols.
29549 exclude_expsyms=$lt_exclude_expsyms
29550
29551 # Symbols that must always be exported.
29552 include_expsyms=$lt_include_expsyms
29553
29554 # Commands necessary for linking programs (against libraries) with templates.
29555 prelink_cmds=$lt_prelink_cmds
29556
29557 # Specify filename containing input files.
29558 file_list_spec=$lt_file_list_spec
29559
29560 # How to hardcode a shared library path into an executable.
29561 hardcode_action=$hardcode_action
29562
29563 # ### END LIBTOOL CONFIG
29564
29565 _LT_EOF
29566
29567   case $host_os in
29568   aix3*)
29569     cat <<\_LT_EOF >> "$cfgfile"
29570 # AIX sometimes has problems with the GCC collect2 program.  For some
29571 # reason, if we set the COLLECT_NAMES environment variable, the problems
29572 # vanish in a puff of smoke.
29573 if test "X${COLLECT_NAMES+set}" != Xset; then
29574   COLLECT_NAMES=
29575   export COLLECT_NAMES
29576 fi
29577 _LT_EOF
29578     ;;
29579   esac
29580
29581
29582 ltmain="$ac_aux_dir/ltmain.sh"
29583
29584
29585   # We use sed instead of cat because bash on DJGPP gets confused if
29586   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29587   # text mode, it properly converts lines to CR/LF.  This bash problem
29588   # is reportedly fixed, but why not run on old versions too?
29589   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29590     || (rm -f "$cfgfile"; exit 1)
29591
29592   case $xsi_shell in
29593   yes)
29594     cat << \_LT_EOF >> "$cfgfile"
29595
29596 # func_dirname file append nondir_replacement
29597 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
29598 # otherwise set result to NONDIR_REPLACEMENT.
29599 func_dirname ()
29600 {
29601   case ${1} in
29602     */*) func_dirname_result="${1%/*}${2}" ;;
29603     *  ) func_dirname_result="${3}" ;;
29604   esac
29605 }
29606
29607 # func_basename file
29608 func_basename ()
29609 {
29610   func_basename_result="${1##*/}"
29611 }
29612
29613 # func_dirname_and_basename file append nondir_replacement
29614 # perform func_basename and func_dirname in a single function
29615 # call:
29616 #   dirname:  Compute the dirname of FILE.  If nonempty,
29617 #             add APPEND to the result, otherwise set result
29618 #             to NONDIR_REPLACEMENT.
29619 #             value returned in "$func_dirname_result"
29620 #   basename: Compute filename of FILE.
29621 #             value retuned in "$func_basename_result"
29622 # Implementation must be kept synchronized with func_dirname
29623 # and func_basename. For efficiency, we do not delegate to
29624 # those functions but instead duplicate the functionality here.
29625 func_dirname_and_basename ()
29626 {
29627   case ${1} in
29628     */*) func_dirname_result="${1%/*}${2}" ;;
29629     *  ) func_dirname_result="${3}" ;;
29630   esac
29631   func_basename_result="${1##*/}"
29632 }
29633
29634 # func_stripname prefix suffix name
29635 # strip PREFIX and SUFFIX off of NAME.
29636 # PREFIX and SUFFIX must not contain globbing or regex special
29637 # characters, hashes, percent signs, but SUFFIX may contain a leading
29638 # dot (in which case that matches only a dot).
29639 func_stripname ()
29640 {
29641   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29642   # positional parameters, so assign one to ordinary parameter first.
29643   func_stripname_result=${3}
29644   func_stripname_result=${func_stripname_result#"${1}"}
29645   func_stripname_result=${func_stripname_result%"${2}"}
29646 }
29647
29648 # func_opt_split
29649 func_opt_split ()
29650 {
29651   func_opt_split_opt=${1%%=*}
29652   func_opt_split_arg=${1#*=}
29653 }
29654
29655 # func_lo2o object
29656 func_lo2o ()
29657 {
29658   case ${1} in
29659     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29660     *)    func_lo2o_result=${1} ;;
29661   esac
29662 }
29663
29664 # func_xform libobj-or-source
29665 func_xform ()
29666 {
29667   func_xform_result=${1%.*}.lo
29668 }
29669
29670 # func_arith arithmetic-term...
29671 func_arith ()
29672 {
29673   func_arith_result=$(( $* ))
29674 }
29675
29676 # func_len string
29677 # STRING may not start with a hyphen.
29678 func_len ()
29679 {
29680   func_len_result=${#1}
29681 }
29682
29683 _LT_EOF
29684     ;;
29685   *) # Bourne compatible functions.
29686     cat << \_LT_EOF >> "$cfgfile"
29687
29688 # func_dirname file append nondir_replacement
29689 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
29690 # otherwise set result to NONDIR_REPLACEMENT.
29691 func_dirname ()
29692 {
29693   # Extract subdirectory from the argument.
29694   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
29695   if test "X$func_dirname_result" = "X${1}"; then
29696     func_dirname_result="${3}"
29697   else
29698     func_dirname_result="$func_dirname_result${2}"
29699   fi
29700 }
29701
29702 # func_basename file
29703 func_basename ()
29704 {
29705   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
29706 }
29707
29708
29709 # func_stripname prefix suffix name
29710 # strip PREFIX and SUFFIX off of NAME.
29711 # PREFIX and SUFFIX must not contain globbing or regex special
29712 # characters, hashes, percent signs, but SUFFIX may contain a leading
29713 # dot (in which case that matches only a dot).
29714 # func_strip_suffix prefix name
29715 func_stripname ()
29716 {
29717   case ${2} in
29718     .*) func_stripname_result=`$ECHO "X${3}" \
29719            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
29720     *)  func_stripname_result=`$ECHO "X${3}" \
29721            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
29722   esac
29723 }
29724
29725 # sed scripts:
29726 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29727 my_sed_long_arg='1s/^-[^=]*=//'
29728
29729 # func_opt_split
29730 func_opt_split ()
29731 {
29732   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
29733   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
29734 }
29735
29736 # func_lo2o object
29737 func_lo2o ()
29738 {
29739   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
29740 }
29741
29742 # func_xform libobj-or-source
29743 func_xform ()
29744 {
29745   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
29746 }
29747
29748 # func_arith arithmetic-term...
29749 func_arith ()
29750 {
29751   func_arith_result=`expr "$@"`
29752 }
29753
29754 # func_len string
29755 # STRING may not start with a hyphen.
29756 func_len ()
29757 {
29758   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29759 }
29760
29761 _LT_EOF
29762 esac
29763
29764 case $lt_shell_append in
29765   yes)
29766     cat << \_LT_EOF >> "$cfgfile"
29767
29768 # func_append var value
29769 # Append VALUE to the end of shell variable VAR.
29770 func_append ()
29771 {
29772   eval "$1+=\$2"
29773 }
29774 _LT_EOF
29775     ;;
29776   *)
29777     cat << \_LT_EOF >> "$cfgfile"
29778
29779 # func_append var value
29780 # Append VALUE to the end of shell variable VAR.
29781 func_append ()
29782 {
29783   eval "$1=\$$1\$2"
29784 }
29785
29786 _LT_EOF
29787     ;;
29788   esac
29789
29790
29791   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29792     || (rm -f "$cfgfile"; exit 1)
29793
29794   mv -f "$cfgfile" "$ofile" ||
29795     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29796   chmod +x "$ofile"
29797
29798  ;;
29799
29800   esac
29801 done # for ac_tag
29802
29803
29804 { (exit 0); exit 0; }
29805 _ACEOF
29806 chmod +x $CONFIG_STATUS
29807 ac_clean_files=$ac_clean_files_save
29808
29809 test $ac_write_fail = 0 ||
29810   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29811 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29812    { (exit 1); exit 1; }; }
29813
29814
29815 # configure is writing to config.log, and then calls config.status.
29816 # config.status does its own redirection, appending to config.log.
29817 # Unfortunately, on DOS this fails, as config.log is still kept open
29818 # by configure, so config.status won't be able to write to it; its
29819 # output is simply discarded.  So we exec the FD to /dev/null,
29820 # effectively closing config.log, so it can be properly (re)opened and
29821 # appended to by config.status.  When coming back to configure, we
29822 # need to make the FD available again.
29823 if test "$no_create" != yes; then
29824   ac_cs_success=:
29825   ac_config_status_args=
29826   test "$silent" = yes &&
29827     ac_config_status_args="$ac_config_status_args --quiet"
29828   exec 5>/dev/null
29829   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29830   exec 5>>config.log
29831   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29832   # would make configure fail if this is the last instruction.
29833   $ac_cs_success || { (exit 1); exit 1; }
29834 fi
29835 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29836   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29837 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29838 fi
29839