497c9931b56847fe335fa18f53ad0583cffa554a
[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_STACKFLAGS
791 DEBUG_CFLAGS
792 CONFIG_KERNEL_FALSE
793 CONFIG_KERNEL_TRUE
794 CONFIG_USER_FALSE
795 CONFIG_USER_TRUE
796 FRAME_LARGER_THAN
797 LIBSELINUX
798 LIBBLKID
799 LIBUUID
800 ZLIB
801 KERNELCPPFLAGS
802 KERNELMAKE_PARAMS
803 SPL_SYMBOLS
804 SPL_VERSION
805 SPL_OBJ
806 SPL
807 LINUX_SYMBOLS
808 LINUX_VERSION
809 LINUX_OBJ
810 LINUX
811 NO_UNUSED_BUT_SET_VARIABLE
812 ZFS_CONFIG
813 TARGET_ASM_DIR
814 DEFAULT_INIT_SCRIPT
815 DEFAULT_PACKAGE
816 VENDOR
817 ALIEN_VERSION
818 ALIEN
819 HAVE_ALIEN
820 DPKGBUILD_VERSION
821 DPKGBUILD
822 HAVE_DPKGBUILD
823 DPKG_VERSION
824 DPKG
825 HAVE_DPKG
826 RPMBUILD_VERSION
827 RPMBUILD
828 HAVE_RPMBUILD
829 RPM_VERSION
830 RPM
831 HAVE_RPM
832 am__fastdepCCAS_FALSE
833 am__fastdepCCAS_TRUE
834 CCASDEPMODE
835 CCASFLAGS
836 CCAS
837 CPP
838 OTOOL64
839 OTOOL
840 LIPO
841 NMEDIT
842 DSYMUTIL
843 lt_ECHO
844 RANLIB
845 AR
846 OBJDUMP
847 LN_S
848 NM
849 ac_ct_DUMPBIN
850 DUMPBIN
851 LD
852 FGREP
853 EGREP
854 GREP
855 SED
856 LIBTOOL
857 am__fastdepCC_FALSE
858 am__fastdepCC_TRUE
859 CCDEPMODE
860 AMDEPBACKSLASH
861 AMDEP_FALSE
862 AMDEP_TRUE
863 am__quote
864 am__include
865 DEPDIR
866 OBJEXT
867 EXEEXT
868 ac_ct_CC
869 CPPFLAGS
870 LDFLAGS
871 CFLAGS
872 CC
873 am__untar
874 am__tar
875 AMTAR
876 am__leading_dot
877 SET_MAKE
878 AWK
879 mkdir_p
880 MKDIR_P
881 INSTALL_STRIP_PROGRAM
882 STRIP
883 install_sh
884 MAKEINFO
885 AUTOHEADER
886 AUTOMAKE
887 AUTOCONF
888 ACLOCAL
889 VERSION
890 PACKAGE
891 CYGPATH_W
892 am__isrc
893 INSTALL_DATA
894 INSTALL_SCRIPT
895 INSTALL_PROGRAM
896 AM_BACKSLASH
897 AM_DEFAULT_VERBOSITY
898 MAINT
899 MAINTAINER_MODE_FALSE
900 MAINTAINER_MODE_TRUE
901 target_os
902 target_vendor
903 target_cpu
904 target
905 host_os
906 host_vendor
907 host_cpu
908 host
909 build_os
910 build_vendor
911 build_cpu
912 build
913 ZFS_META_LT_AGE
914 ZFS_META_LT_REVISION
915 ZFS_META_LT_CURRENT
916 ZFS_META_AUTHOR
917 ZFS_META_DATA
918 ZFS_META_ALIAS
919 ZFS_META_LICENSE
920 ZFS_META_RELEASE
921 ZFS_META_VERSION
922 ZFS_META_NAME
923 target_alias
924 host_alias
925 build_alias
926 LIBS
927 ECHO_T
928 ECHO_N
929 ECHO_C
930 DEFS
931 mandir
932 localedir
933 libdir
934 psdir
935 pdfdir
936 dvidir
937 htmldir
938 infodir
939 docdir
940 oldincludedir
941 includedir
942 localstatedir
943 sharedstatedir
944 sysconfdir
945 datadir
946 datarootdir
947 libexecdir
948 sbindir
949 bindir
950 program_transform_name
951 prefix
952 exec_prefix
953 PACKAGE_BUGREPORT
954 PACKAGE_STRING
955 PACKAGE_VERSION
956 PACKAGE_TARNAME
957 PACKAGE_NAME
958 PATH_SEPARATOR
959 SHELL'
960 ac_subst_files=''
961 ac_user_opts='
962 enable_option_checking
963 enable_maintainer_mode
964 enable_silent_rules
965 enable_dependency_tracking
966 enable_shared
967 enable_static
968 with_pic
969 enable_fast_install
970 with_gnu_ld
971 enable_libtool_lock
972 with_config
973 with_linux
974 with_linux_obj
975 with_spl
976 with_spl_obj
977 with_blkid
978 with_selinux
979 enable_debug
980 '
981       ac_precious_vars='build_alias
982 host_alias
983 target_alias
984 CC
985 CFLAGS
986 LDFLAGS
987 LIBS
988 CPPFLAGS
989 CPP
990 CCAS
991 CCASFLAGS'
992
993
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1015
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1041
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1045 do
1046   # If the previous option needs an argument, assign it.
1047   if test -n "$ac_prev"; then
1048     eval $ac_prev=\$ac_option
1049     ac_prev=
1050     continue
1051   fi
1052
1053   case $ac_option in
1054   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055   *)    ac_optarg=yes ;;
1056   esac
1057
1058   # Accept the important Cygnus configure options, so we can diagnose typos.
1059
1060   case $ac_dashdash$ac_option in
1061   --)
1062     ac_dashdash=yes ;;
1063
1064   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065     ac_prev=bindir ;;
1066   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067     bindir=$ac_optarg ;;
1068
1069   -build | --build | --buil | --bui | --bu)
1070     ac_prev=build_alias ;;
1071   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072     build_alias=$ac_optarg ;;
1073
1074   -cache-file | --cache-file | --cache-fil | --cache-fi \
1075   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076     ac_prev=cache_file ;;
1077   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079     cache_file=$ac_optarg ;;
1080
1081   --config-cache | -C)
1082     cache_file=config.cache ;;
1083
1084   -datadir | --datadir | --datadi | --datad)
1085     ac_prev=datadir ;;
1086   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087     datadir=$ac_optarg ;;
1088
1089   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090   | --dataroo | --dataro | --datar)
1091     ac_prev=datarootdir ;;
1092   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094     datarootdir=$ac_optarg ;;
1095
1096   -disable-* | --disable-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "enable_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval enable_$ac_useropt=no ;;
1112
1113   -docdir | --docdir | --docdi | --doc | --do)
1114     ac_prev=docdir ;;
1115   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116     docdir=$ac_optarg ;;
1117
1118   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119     ac_prev=dvidir ;;
1120   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121     dvidir=$ac_optarg ;;
1122
1123   -enable-* | --enable-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1128    { (exit 1); exit 1; }; }
1129     ac_useropt_orig=$ac_useropt
1130     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131     case $ac_user_opts in
1132       *"
1133 "enable_$ac_useropt"
1134 "*) ;;
1135       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136          ac_unrecognized_sep=', ';;
1137     esac
1138     eval enable_$ac_useropt=\$ac_optarg ;;
1139
1140   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142   | --exec | --exe | --ex)
1143     ac_prev=exec_prefix ;;
1144   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146   | --exec=* | --exe=* | --ex=*)
1147     exec_prefix=$ac_optarg ;;
1148
1149   -gas | --gas | --ga | --g)
1150     # Obsolete; use --with-gas.
1151     with_gas=yes ;;
1152
1153   -help | --help | --hel | --he | -h)
1154     ac_init_help=long ;;
1155   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156     ac_init_help=recursive ;;
1157   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158     ac_init_help=short ;;
1159
1160   -host | --host | --hos | --ho)
1161     ac_prev=host_alias ;;
1162   -host=* | --host=* | --hos=* | --ho=*)
1163     host_alias=$ac_optarg ;;
1164
1165   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166     ac_prev=htmldir ;;
1167   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168   | --ht=*)
1169     htmldir=$ac_optarg ;;
1170
1171   -includedir | --includedir | --includedi | --included | --include \
1172   | --includ | --inclu | --incl | --inc)
1173     ac_prev=includedir ;;
1174   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175   | --includ=* | --inclu=* | --incl=* | --inc=*)
1176     includedir=$ac_optarg ;;
1177
1178   -infodir | --infodir | --infodi | --infod | --info | --inf)
1179     ac_prev=infodir ;;
1180   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181     infodir=$ac_optarg ;;
1182
1183   -libdir | --libdir | --libdi | --libd)
1184     ac_prev=libdir ;;
1185   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186     libdir=$ac_optarg ;;
1187
1188   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189   | --libexe | --libex | --libe)
1190     ac_prev=libexecdir ;;
1191   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192   | --libexe=* | --libex=* | --libe=*)
1193     libexecdir=$ac_optarg ;;
1194
1195   -localedir | --localedir | --localedi | --localed | --locale)
1196     ac_prev=localedir ;;
1197   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198     localedir=$ac_optarg ;;
1199
1200   -localstatedir | --localstatedir | --localstatedi | --localstated \
1201   | --localstate | --localstat | --localsta | --localst | --locals)
1202     ac_prev=localstatedir ;;
1203   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205     localstatedir=$ac_optarg ;;
1206
1207   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208     ac_prev=mandir ;;
1209   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210     mandir=$ac_optarg ;;
1211
1212   -nfp | --nfp | --nf)
1213     # Obsolete; use --without-fp.
1214     with_fp=no ;;
1215
1216   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217   | --no-cr | --no-c | -n)
1218     no_create=yes ;;
1219
1220   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222     no_recursion=yes ;;
1223
1224   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226   | --oldin | --oldi | --old | --ol | --o)
1227     ac_prev=oldincludedir ;;
1228   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231     oldincludedir=$ac_optarg ;;
1232
1233   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234     ac_prev=prefix ;;
1235   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236     prefix=$ac_optarg ;;
1237
1238   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239   | --program-pre | --program-pr | --program-p)
1240     ac_prev=program_prefix ;;
1241   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243     program_prefix=$ac_optarg ;;
1244
1245   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246   | --program-suf | --program-su | --program-s)
1247     ac_prev=program_suffix ;;
1248   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250     program_suffix=$ac_optarg ;;
1251
1252   -program-transform-name | --program-transform-name \
1253   | --program-transform-nam | --program-transform-na \
1254   | --program-transform-n | --program-transform- \
1255   | --program-transform | --program-transfor \
1256   | --program-transfo | --program-transf \
1257   | --program-trans | --program-tran \
1258   | --progr-tra | --program-tr | --program-t)
1259     ac_prev=program_transform_name ;;
1260   -program-transform-name=* | --program-transform-name=* \
1261   | --program-transform-nam=* | --program-transform-na=* \
1262   | --program-transform-n=* | --program-transform-=* \
1263   | --program-transform=* | --program-transfor=* \
1264   | --program-transfo=* | --program-transf=* \
1265   | --program-trans=* | --program-tran=* \
1266   | --progr-tra=* | --program-tr=* | --program-t=*)
1267     program_transform_name=$ac_optarg ;;
1268
1269   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270     ac_prev=pdfdir ;;
1271   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272     pdfdir=$ac_optarg ;;
1273
1274   -psdir | --psdir | --psdi | --psd | --ps)
1275     ac_prev=psdir ;;
1276   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277     psdir=$ac_optarg ;;
1278
1279   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280   | -silent | --silent | --silen | --sile | --sil)
1281     silent=yes ;;
1282
1283   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284     ac_prev=sbindir ;;
1285   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286   | --sbi=* | --sb=*)
1287     sbindir=$ac_optarg ;;
1288
1289   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291   | --sharedst | --shareds | --shared | --share | --shar \
1292   | --sha | --sh)
1293     ac_prev=sharedstatedir ;;
1294   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297   | --sha=* | --sh=*)
1298     sharedstatedir=$ac_optarg ;;
1299
1300   -site | --site | --sit)
1301     ac_prev=site ;;
1302   -site=* | --site=* | --sit=*)
1303     site=$ac_optarg ;;
1304
1305   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306     ac_prev=srcdir ;;
1307   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1308     srcdir=$ac_optarg ;;
1309
1310   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311   | --syscon | --sysco | --sysc | --sys | --sy)
1312     ac_prev=sysconfdir ;;
1313   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1315     sysconfdir=$ac_optarg ;;
1316
1317   -target | --target | --targe | --targ | --tar | --ta | --t)
1318     ac_prev=target_alias ;;
1319   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1320     target_alias=$ac_optarg ;;
1321
1322   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323     verbose=yes ;;
1324
1325   -version | --version | --versio | --versi | --vers | -V)
1326     ac_init_version=: ;;
1327
1328   -with-* | --with-*)
1329     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1333    { (exit 1); exit 1; }; }
1334     ac_useropt_orig=$ac_useropt
1335     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336     case $ac_user_opts in
1337       *"
1338 "with_$ac_useropt"
1339 "*) ;;
1340       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341          ac_unrecognized_sep=', ';;
1342     esac
1343     eval with_$ac_useropt=\$ac_optarg ;;
1344
1345   -without-* | --without-*)
1346     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347     # Reject names that are not valid shell variable names.
1348     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1350    { (exit 1); exit 1; }; }
1351     ac_useropt_orig=$ac_useropt
1352     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353     case $ac_user_opts in
1354       *"
1355 "with_$ac_useropt"
1356 "*) ;;
1357       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358          ac_unrecognized_sep=', ';;
1359     esac
1360     eval with_$ac_useropt=no ;;
1361
1362   --x)
1363     # Obsolete; use --with-x.
1364     with_x=yes ;;
1365
1366   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367   | --x-incl | --x-inc | --x-in | --x-i)
1368     ac_prev=x_includes ;;
1369   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371     x_includes=$ac_optarg ;;
1372
1373   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375     ac_prev=x_libraries ;;
1376   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378     x_libraries=$ac_optarg ;;
1379
1380   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1381 Try \`$0 --help' for more information." >&2
1382    { (exit 1); exit 1; }; }
1383     ;;
1384
1385   *=*)
1386     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1387     # Reject names that are not valid shell variable names.
1388     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1389       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1390    { (exit 1); exit 1; }; }
1391     eval $ac_envvar=\$ac_optarg
1392     export $ac_envvar ;;
1393
1394   *)
1395     # FIXME: should be removed in autoconf 3.0.
1396     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1400     ;;
1401
1402   esac
1403 done
1404
1405 if test -n "$ac_prev"; then
1406   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1408    { (exit 1); exit 1; }; }
1409 fi
1410
1411 if test -n "$ac_unrecognized_opts"; then
1412   case $enable_option_checking in
1413     no) ;;
1414     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1415    { (exit 1); exit 1; }; } ;;
1416     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1417   esac
1418 fi
1419
1420 # Check all directory arguments for consistency.
1421 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422                 datadir sysconfdir sharedstatedir localstatedir includedir \
1423                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424                 libdir localedir mandir
1425 do
1426   eval ac_val=\$$ac_var
1427   # Remove trailing slashes.
1428   case $ac_val in
1429     */ )
1430       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431       eval $ac_var=\$ac_val;;
1432   esac
1433   # Be sure to have absolute directory names.
1434   case $ac_val in
1435     [\\/$]* | ?:[\\/]* )  continue;;
1436     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1437   esac
1438   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1439    { (exit 1); exit 1; }; }
1440 done
1441
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1445 build=$build_alias
1446 host=$host_alias
1447 target=$target_alias
1448
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451   if test "x$build_alias" = x; then
1452     cross_compiling=maybe
1453     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454     If a cross compiler is detected then cross compile mode will be used." >&2
1455   elif test "x$build_alias" != "x$host_alias"; then
1456     cross_compiling=yes
1457   fi
1458 fi
1459
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463 test "$silent" = yes && exec 6>/dev/null
1464
1465
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1470    { (exit 1); exit 1; }; }
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1473    { (exit 1); exit 1; }; }
1474
1475
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478   ac_srcdir_defaulted=yes
1479   # Try the directory containing this script, then the parent directory.
1480   ac_confdir=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482          X"$as_myself" : 'X\(//\)[^/]' \| \
1483          X"$as_myself" : 'X\(//\)$' \| \
1484          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487             s//\1/
1488             q
1489           }
1490           /^X\(\/\/\)[^/].*/{
1491             s//\1/
1492             q
1493           }
1494           /^X\(\/\/\)$/{
1495             s//\1/
1496             q
1497           }
1498           /^X\(\/\).*/{
1499             s//\1/
1500             q
1501           }
1502           s/.*/./; q'`
1503   srcdir=$ac_confdir
1504   if test ! -r "$srcdir/$ac_unique_file"; then
1505     srcdir=..
1506   fi
1507 else
1508   ac_srcdir_defaulted=no
1509 fi
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1513    { (exit 1); exit 1; }; }
1514 fi
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 ac_abs_confdir=`(
1517         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1518    { (exit 1); exit 1; }; }
1519         pwd)`
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522   srcdir=.
1523 fi
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1527 case $srcdir in
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 esac
1530 for ac_var in $ac_precious_vars; do
1531   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532   eval ac_env_${ac_var}_value=\$${ac_var}
1533   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 done
1536
1537 #
1538 # Report the --help message.
1539 #
1540 if test "$ac_init_help" = "long"; then
1541   # Omit some internal or obsolete options to make the list less imposing.
1542   # This message is too long to be a string in the A/UX 3.1 sh.
1543   cat <<_ACEOF
1544 \`configure' configures this package to adapt to many kinds of systems.
1545
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1547
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE.  See below for descriptions of some of the useful variables.
1550
1551 Defaults for the options are specified in brackets.
1552
1553 Configuration:
1554   -h, --help              display this help and exit
1555       --help=short        display options specific to this package
1556       --help=recursive    display the short help of all the included packages
1557   -V, --version           display version information and exit
1558   -q, --quiet, --silent   do not print \`checking...' messages
1559       --cache-file=FILE   cache test results in FILE [disabled]
1560   -C, --config-cache      alias for \`--cache-file=config.cache'
1561   -n, --no-create         do not create output files
1562       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1563
1564 Installation directories:
1565   --prefix=PREFIX         install architecture-independent files in PREFIX
1566                           [$ac_default_prefix]
1567   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1568                           [PREFIX]
1569
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1574
1575 For better control, use the options below.
1576
1577 Fine tuning of the installation directories:
1578   --bindir=DIR            user executables [EPREFIX/bin]
1579   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1580   --libexecdir=DIR        program executables [EPREFIX/libexec]
1581   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1582   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1583   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1584   --libdir=DIR            object code libraries [EPREFIX/lib]
1585   --includedir=DIR        C header files [PREFIX/include]
1586   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1587   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1588   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1589   --infodir=DIR           info documentation [DATAROOTDIR/info]
1590   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1591   --mandir=DIR            man documentation [DATAROOTDIR/man]
1592   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1593   --htmldir=DIR           html documentation [DOCDIR]
1594   --dvidir=DIR            dvi documentation [DOCDIR]
1595   --pdfdir=DIR            pdf documentation [DOCDIR]
1596   --psdir=DIR             ps documentation [DOCDIR]
1597 _ACEOF
1598
1599   cat <<\_ACEOF
1600
1601 Program names:
1602   --program-prefix=PREFIX            prepend PREFIX to installed program names
1603   --program-suffix=SUFFIX            append SUFFIX to installed program names
1604   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1605
1606 System types:
1607   --build=BUILD     configure for building on BUILD [guessed]
1608   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1609   --target=TARGET   configure for building compilers for TARGET [HOST]
1610 _ACEOF
1611 fi
1612
1613 if test -n "$ac_init_help"; then
1614
1615   cat <<\_ACEOF
1616
1617 Optional Features:
1618   --disable-option-checking  ignore unrecognized --enable/--with options
1619   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1620   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1621   --enable-maintainer-mode  enable make rules and dependencies not useful
1622                           (and sometimes confusing) to the casual installer
1623   --enable-silent-rules          less verbose build output (undo: `make V=1')
1624   --disable-silent-rules         verbose build output (undo: `make V=0')
1625   --disable-dependency-tracking  speeds up one-time build
1626   --enable-dependency-tracking   do not reject slow dependency extractors
1627   --enable-shared[=PKGS]  build shared libraries [default=yes]
1628   --enable-static[=PKGS]  build static libraries [default=yes]
1629   --enable-fast-install[=PKGS]
1630                           optimize for fast installation [default=yes]
1631   --disable-libtool-lock  avoid locking (might break parallel builds)
1632   --enable-debug          Enable generic debug support [default=no]
1633
1634 Optional Packages:
1635   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1636   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1637   --with-pic              try to use only PIC/non-PIC objects [default=use
1638                           both]
1639   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1640   --with-config=CONFIG    Config file 'kernel|user|all|srpm'
1641   --with-linux=PATH       Path to kernel source
1642   --with-linux-obj=PATH   Path to kernel build objects
1643   --with-spl=PATH         Path to spl source
1644   --with-spl-obj=PATH     Path to spl build objects
1645   --with-blkid            support blkid caching [default=check]
1646   --with-selinux          support selinux [default=check]
1647
1648 Some influential environment variables:
1649   CC          C compiler command
1650   CFLAGS      C compiler flags
1651   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1652               nonstandard directory <lib dir>
1653   LIBS        libraries to pass to the linker, e.g. -l<library>
1654   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1655               you have headers in a nonstandard directory <include dir>
1656   CPP         C preprocessor
1657   CCAS        assembler compiler command (defaults to CC)
1658   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1659
1660 Use these variables to override the choices made by `configure' or to help
1661 it to find libraries and programs with nonstandard names/locations.
1662
1663 _ACEOF
1664 ac_status=$?
1665 fi
1666
1667 if test "$ac_init_help" = "recursive"; then
1668   # If there are subdirs, report their specific --help.
1669   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670     test -d "$ac_dir" ||
1671       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672       continue
1673     ac_builddir=.
1674
1675 case "$ac_dir" in
1676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *)
1678   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1679   # A ".." for each directory in $ac_dir_suffix.
1680   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1681   case $ac_top_builddir_sub in
1682   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684   esac ;;
1685 esac
1686 ac_abs_top_builddir=$ac_pwd
1687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1688 # for backward compatibility:
1689 ac_top_builddir=$ac_top_build_prefix
1690
1691 case $srcdir in
1692   .)  # We are building in place.
1693     ac_srcdir=.
1694     ac_top_srcdir=$ac_top_builddir_sub
1695     ac_abs_top_srcdir=$ac_pwd ;;
1696   [\\/]* | ?:[\\/]* )  # Absolute name.
1697     ac_srcdir=$srcdir$ac_dir_suffix;
1698     ac_top_srcdir=$srcdir
1699     ac_abs_top_srcdir=$srcdir ;;
1700   *) # Relative name.
1701     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702     ac_top_srcdir=$ac_top_build_prefix$srcdir
1703     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1704 esac
1705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706
1707     cd "$ac_dir" || { ac_status=$?; continue; }
1708     # Check for guested configure.
1709     if test -f "$ac_srcdir/configure.gnu"; then
1710       echo &&
1711       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712     elif test -f "$ac_srcdir/configure"; then
1713       echo &&
1714       $SHELL "$ac_srcdir/configure" --help=recursive
1715     else
1716       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717     fi || ac_status=$?
1718     cd "$ac_pwd" || { ac_status=$?; break; }
1719   done
1720 fi
1721
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1724   cat <<\_ACEOF
1725 configure
1726 generated by GNU Autoconf 2.63
1727
1728 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1729 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1730 This configure script is free software; the Free Software Foundation
1731 gives unlimited permission to copy, distribute and modify it.
1732 _ACEOF
1733   exit
1734 fi
1735 cat >config.log <<_ACEOF
1736 This file contains any messages produced by compilers while
1737 running configure, to aid debugging if configure makes a mistake.
1738
1739 It was created by $as_me, which was
1740 generated by GNU Autoconf 2.63.  Invocation command line was
1741
1742   $ $0 $@
1743
1744 _ACEOF
1745 exec 5>>config.log
1746 {
1747 cat <<_ASUNAME
1748 ## --------- ##
1749 ## Platform. ##
1750 ## --------- ##
1751
1752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1757
1758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1759 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1760
1761 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1762 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1764 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1765 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1766 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1767 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1768
1769 _ASUNAME
1770
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1773 do
1774   IFS=$as_save_IFS
1775   test -z "$as_dir" && as_dir=.
1776   $as_echo "PATH: $as_dir"
1777 done
1778 IFS=$as_save_IFS
1779
1780 } >&5
1781
1782 cat >&5 <<_ACEOF
1783
1784
1785 ## ----------- ##
1786 ## Core tests. ##
1787 ## ----------- ##
1788
1789 _ACEOF
1790
1791
1792 # Keep a trace of the command line.
1793 # Strip out --no-create and --no-recursion so they do not pile up.
1794 # Strip out --silent because we don't want to record it for future runs.
1795 # Also quote any args containing shell meta-characters.
1796 # Make two passes to allow for proper duplicate-argument suppression.
1797 ac_configure_args=
1798 ac_configure_args0=
1799 ac_configure_args1=
1800 ac_must_keep_next=false
1801 for ac_pass in 1 2
1802 do
1803   for ac_arg
1804   do
1805     case $ac_arg in
1806     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1807     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1808     | -silent | --silent | --silen | --sile | --sil)
1809       continue ;;
1810     *\'*)
1811       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812     esac
1813     case $ac_pass in
1814     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1815     2)
1816       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1817       if test $ac_must_keep_next = true; then
1818         ac_must_keep_next=false # Got value, back to normal.
1819       else
1820         case $ac_arg in
1821           *=* | --config-cache | -C | -disable-* | --disable-* \
1822           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1823           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1824           | -with-* | --with-* | -without-* | --without-* | --x)
1825             case "$ac_configure_args0 " in
1826               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827             esac
1828             ;;
1829           -* ) ac_must_keep_next=true ;;
1830         esac
1831       fi
1832       ac_configure_args="$ac_configure_args '$ac_arg'"
1833       ;;
1834     esac
1835   done
1836 done
1837 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1838 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1839
1840 # When interrupted or exit'd, cleanup temporary files, and complete
1841 # config.log.  We remove comments because anyway the quotes in there
1842 # would cause problems or look ugly.
1843 # WARNING: Use '\'' to represent an apostrophe within the trap.
1844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1845 trap 'exit_status=$?
1846   # Save into config.log some information that might help in debugging.
1847   {
1848     echo
1849
1850     cat <<\_ASBOX
1851 ## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##
1854 _ASBOX
1855     echo
1856     # The following way of writing the cache mishandles newlines in values,
1857 (
1858   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859     eval ac_val=\$$ac_var
1860     case $ac_val in #(
1861     *${as_nl}*)
1862       case $ac_var in #(
1863       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865       esac
1866       case $ac_var in #(
1867       _ | IFS | as_nl) ;; #(
1868       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869       *) $as_unset $ac_var ;;
1870       esac ;;
1871     esac
1872   done
1873   (set) 2>&1 |
1874     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875     *${as_nl}ac_space=\ *)
1876       sed -n \
1877         "s/'\''/'\''\\\\'\'''\''/g;
1878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879       ;; #(
1880     *)
1881       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882       ;;
1883     esac |
1884     sort
1885 )
1886     echo
1887
1888     cat <<\_ASBOX
1889 ## ----------------- ##
1890 ## Output variables. ##
1891 ## ----------------- ##
1892 _ASBOX
1893     echo
1894     for ac_var in $ac_subst_vars
1895     do
1896       eval ac_val=\$$ac_var
1897       case $ac_val in
1898       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899       esac
1900       $as_echo "$ac_var='\''$ac_val'\''"
1901     done | sort
1902     echo
1903
1904     if test -n "$ac_subst_files"; then
1905       cat <<\_ASBOX
1906 ## ------------------- ##
1907 ## File substitutions. ##
1908 ## ------------------- ##
1909 _ASBOX
1910       echo
1911       for ac_var in $ac_subst_files
1912       do
1913         eval ac_val=\$$ac_var
1914         case $ac_val in
1915         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916         esac
1917         $as_echo "$ac_var='\''$ac_val'\''"
1918       done | sort
1919       echo
1920     fi
1921
1922     if test -s confdefs.h; then
1923       cat <<\_ASBOX
1924 ## ----------- ##
1925 ## confdefs.h. ##
1926 ## ----------- ##
1927 _ASBOX
1928       echo
1929       cat confdefs.h
1930       echo
1931     fi
1932     test "$ac_signal" != 0 &&
1933       $as_echo "$as_me: caught signal $ac_signal"
1934     $as_echo "$as_me: exit $exit_status"
1935   } >&5
1936   rm -f core *.core core.conftest.* &&
1937     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938     exit $exit_status
1939 ' 0
1940 for ac_signal in 1 2 13 15; do
1941   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1942 done
1943 ac_signal=0
1944
1945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1946 rm -f -r conftest* confdefs.h
1947
1948 # Predefined preprocessor variables.
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_NAME "$PACKAGE_NAME"
1952 _ACEOF
1953
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1957 _ACEOF
1958
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1962 _ACEOF
1963
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_STRING "$PACKAGE_STRING"
1967 _ACEOF
1968
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972 _ACEOF
1973
1974
1975 # Let the site file select an alternate cache file if it wants to.
1976 # Prefer an explicitly selected file to automatically selected ones.
1977 ac_site_file1=NONE
1978 ac_site_file2=NONE
1979 if test -n "$CONFIG_SITE"; then
1980   ac_site_file1=$CONFIG_SITE
1981 elif test "x$prefix" != xNONE; then
1982   ac_site_file1=$prefix/share/config.site
1983   ac_site_file2=$prefix/etc/config.site
1984 else
1985   ac_site_file1=$ac_default_prefix/share/config.site
1986   ac_site_file2=$ac_default_prefix/etc/config.site
1987 fi
1988 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1989 do
1990   test "x$ac_site_file" = xNONE && continue
1991   if test -r "$ac_site_file"; then
1992     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994     sed 's/^/| /' "$ac_site_file" >&5
1995     . "$ac_site_file"
1996   fi
1997 done
1998
1999 if test -r "$cache_file"; then
2000   # Some versions of bash will fail to source /dev/null (special
2001   # files actually), so we avoid doing that.
2002   if test -f "$cache_file"; then
2003     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2004 $as_echo "$as_me: loading cache $cache_file" >&6;}
2005     case $cache_file in
2006       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2007       *)                      . "./$cache_file";;
2008     esac
2009   fi
2010 else
2011   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2012 $as_echo "$as_me: creating cache $cache_file" >&6;}
2013   >$cache_file
2014 fi
2015
2016 # Check that the precious variables saved in the cache have kept the same
2017 # value.
2018 ac_cache_corrupted=false
2019 for ac_var in $ac_precious_vars; do
2020   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2021   eval ac_new_set=\$ac_env_${ac_var}_set
2022   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2023   eval ac_new_val=\$ac_env_${ac_var}_value
2024   case $ac_old_set,$ac_new_set in
2025     set,)
2026       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2027 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2028       ac_cache_corrupted=: ;;
2029     ,set)
2030       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2032       ac_cache_corrupted=: ;;
2033     ,);;
2034     *)
2035       if test "x$ac_old_val" != "x$ac_new_val"; then
2036         # differences in whitespace do not lead to failure.
2037         ac_old_val_w=`echo x $ac_old_val`
2038         ac_new_val_w=`echo x $ac_new_val`
2039         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2040           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2041 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2042           ac_cache_corrupted=:
2043         else
2044           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2045 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2046           eval $ac_var=\$ac_old_val
2047         fi
2048         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2049 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2050         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2051 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2052       fi;;
2053   esac
2054   # Pass precious variables to config.status.
2055   if test "$ac_new_set" = set; then
2056     case $ac_new_val in
2057     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2058     *) ac_arg=$ac_var=$ac_new_val ;;
2059     esac
2060     case " $ac_configure_args " in
2061       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2062       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2063     esac
2064   fi
2065 done
2066 if $ac_cache_corrupted; then
2067   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2069   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2070 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2071   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2072 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092 ac_ext=c
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097
2098
2099 ac_ext=c
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104
2105
2106
2107
2108
2109
2110         { $as_echo "$as_me:$LINENO: checking metadata" >&5
2111 $as_echo_n "checking metadata... " >&6; }
2112
2113         META="$srcdir/META"
2114         _zfs_ac_meta_got_file=no
2115         if test -f "$META"; then
2116                 _zfs_ac_meta_got_file=yes
2117
2118                 ZFS_META_NAME=`perl -n\
2119                 -e "BEGIN { \\$key=shift @ARGV; }"\
2120                 -e "next unless s/^\s*\\$key[:=]//i;"\
2121                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2122                 -e "s/^\s+//;"\
2123                 -e "s/\s+$//;"\
2124                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2125                 -e "\\$val=\\$_;"\
2126                 -e "END { print \\$val if defined \\$val; }"\
2127                 '(?:NAME|PROJECT|PACKAGE)' $META`;
2128                 if test -n "$ZFS_META_NAME"; then
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define ZFS_META_NAME "$ZFS_META_NAME"
2132 _ACEOF
2133
2134
2135                 fi
2136
2137                 ZFS_META_VERSION=`perl -n\
2138                 -e "BEGIN { \\$key=shift @ARGV; }"\
2139                 -e "next unless s/^\s*\\$key[:=]//i;"\
2140                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2141                 -e "s/^\s+//;"\
2142                 -e "s/\s+$//;"\
2143                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2144                 -e "\\$val=\\$_;"\
2145                 -e "END { print \\$val if defined \\$val; }"\
2146                 'VERSION' $META`;
2147                 if test -n "$ZFS_META_VERSION"; then
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2151 _ACEOF
2152
2153
2154                 fi
2155
2156                 ZFS_META_RELEASE=`perl -n\
2157                 -e "BEGIN { \\$key=shift @ARGV; }"\
2158                 -e "next unless s/^\s*\\$key[:=]//i;"\
2159                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2160                 -e "s/^\s+//;"\
2161                 -e "s/\s+$//;"\
2162                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2163                 -e "\\$val=\\$_;"\
2164                 -e "END { print \\$val if defined \\$val; }"\
2165                 'RELEASE' $META`;
2166                 if test -n "$ZFS_META_RELEASE"; then
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2170 _ACEOF
2171
2172
2173                 fi
2174
2175                 ZFS_META_LICENSE=`perl -n\
2176                 -e "BEGIN { \\$key=shift @ARGV; }"\
2177                 -e "next unless s/^\s*\\$key[:=]//i;"\
2178                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2179                 -e "s/^\s+//;"\
2180                 -e "s/\s+$//;"\
2181                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2182                 -e "\\$val=\\$_;"\
2183                 -e "END { print \\$val if defined \\$val; }"\
2184                 'LICENSE' $META`;
2185                 if test -n "$ZFS_META_LICENSE"; then
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2189 _ACEOF
2190
2191
2192                 fi
2193
2194                 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2195                                 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2196                                 test -n "$ZFS_META_RELEASE" &&
2197                                         ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2201 _ACEOF
2202
2203
2204                 fi
2205
2206                 ZFS_META_DATA=`perl -n\
2207                 -e "BEGIN { \\$key=shift @ARGV; }"\
2208                 -e "next unless s/^\s*\\$key[:=]//i;"\
2209                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2210                 -e "s/^\s+//;"\
2211                 -e "s/\s+$//;"\
2212                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2213                 -e "\\$val=\\$_;"\
2214                 -e "END { print \\$val if defined \\$val; }"\
2215                 'DATE' $META`;
2216                 if test -n "$ZFS_META_DATA"; then
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define ZFS_META_DATA "$ZFS_META_DATA"
2220 _ACEOF
2221
2222
2223                 fi
2224
2225                 ZFS_META_AUTHOR=`perl -n\
2226                 -e "BEGIN { \\$key=shift @ARGV; }"\
2227                 -e "next unless s/^\s*\\$key[:=]//i;"\
2228                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2229                 -e "s/^\s+//;"\
2230                 -e "s/\s+$//;"\
2231                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2232                 -e "\\$val=\\$_;"\
2233                 -e "END { print \\$val if defined \\$val; }"\
2234                 'AUTHOR' $META`;
2235                 if test -n "$ZFS_META_AUTHOR"; then
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2239 _ACEOF
2240
2241
2242                 fi
2243
2244
2245                 ZFS_META_LT_CURRENT=`perl -n\
2246                 -e "BEGIN { \\$key=shift @ARGV; }"\
2247                 -e "next unless s/^\s*\\$key[:=]//i;"\
2248                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2249                 -e "s/^\s+//;"\
2250                 -e "s/\s+$//;"\
2251                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2252                 -e "\\$val=\\$_;"\
2253                 -e "END { print \\$val if defined \\$val; }"\
2254                 'LT_CURRENT' $META`;
2255                 ZFS_META_LT_REVISION=`perl -n\
2256                 -e "BEGIN { \\$key=shift @ARGV; }"\
2257                 -e "next unless s/^\s*\\$key[:=]//i;"\
2258                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2259                 -e "s/^\s+//;"\
2260                 -e "s/\s+$//;"\
2261                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2262                 -e "\\$val=\\$_;"\
2263                 -e "END { print \\$val if defined \\$val; }"\
2264                 'LT_REVISION' $META`;
2265                 ZFS_META_LT_AGE=`perl -n\
2266                 -e "BEGIN { \\$key=shift @ARGV; }"\
2267                 -e "next unless s/^\s*\\$key[:=]//i;"\
2268                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2269                 -e "s/^\s+//;"\
2270                 -e "s/\s+$//;"\
2271                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2272                 -e "\\$val=\\$_;"\
2273                 -e "END { print \\$val if defined \\$val; }"\
2274                 'LT_AGE' $META`;
2275                 if test -n "$ZFS_META_LT_CURRENT" \
2276                                  -o -n "$ZFS_META_LT_REVISION" \
2277                                  -o -n "$ZFS_META_LT_AGE"; then
2278                         test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2279                         test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2280                         test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2284 _ACEOF
2285
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2289 _ACEOF
2290
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2294 _ACEOF
2295
2296
2297
2298
2299                 fi
2300         fi
2301
2302         { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2303 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2304
2305
2306 ac_aux_dir=
2307 for ac_dir in config "$srcdir"/config; do
2308   if test -f "$ac_dir/install-sh"; then
2309     ac_aux_dir=$ac_dir
2310     ac_install_sh="$ac_aux_dir/install-sh -c"
2311     break
2312   elif test -f "$ac_dir/install.sh"; then
2313     ac_aux_dir=$ac_dir
2314     ac_install_sh="$ac_aux_dir/install.sh -c"
2315     break
2316   elif test -f "$ac_dir/shtool"; then
2317     ac_aux_dir=$ac_dir
2318     ac_install_sh="$ac_aux_dir/shtool install -c"
2319     break
2320   fi
2321 done
2322 if test -z "$ac_aux_dir"; then
2323   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2324 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2334 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2335
2336
2337 # Make sure we can run config.sub.
2338 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2339   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2340 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2341    { (exit 1); exit 1; }; }
2342
2343 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2344 $as_echo_n "checking build system type... " >&6; }
2345 if test "${ac_cv_build+set}" = set; then
2346   $as_echo_n "(cached) " >&6
2347 else
2348   ac_build_alias=$build_alias
2349 test "x$ac_build_alias" = x &&
2350   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2351 test "x$ac_build_alias" = x &&
2352   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2353 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2354    { (exit 1); exit 1; }; }
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2357 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2358    { (exit 1); exit 1; }; }
2359
2360 fi
2361 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2362 $as_echo "$ac_cv_build" >&6; }
2363 case $ac_cv_build in
2364 *-*-*) ;;
2365 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2366 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2367    { (exit 1); exit 1; }; };;
2368 esac
2369 build=$ac_cv_build
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_build
2372 shift
2373 build_cpu=$1
2374 build_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 build_os=$*
2379 IFS=$ac_save_IFS
2380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2381
2382
2383 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2384 $as_echo_n "checking host system type... " >&6; }
2385 if test "${ac_cv_host+set}" = set; then
2386   $as_echo_n "(cached) " >&6
2387 else
2388   if test "x$host_alias" = x; then
2389   ac_cv_host=$ac_cv_build
2390 else
2391   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2393 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2394    { (exit 1); exit 1; }; }
2395 fi
2396
2397 fi
2398 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2399 $as_echo "$ac_cv_host" >&6; }
2400 case $ac_cv_host in
2401 *-*-*) ;;
2402 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2403 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2404    { (exit 1); exit 1; }; };;
2405 esac
2406 host=$ac_cv_host
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_host
2409 shift
2410 host_cpu=$1
2411 host_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 host_os=$*
2416 IFS=$ac_save_IFS
2417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2418
2419
2420 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2421 $as_echo_n "checking target system type... " >&6; }
2422 if test "${ac_cv_target+set}" = set; then
2423   $as_echo_n "(cached) " >&6
2424 else
2425   if test "x$target_alias" = x; then
2426   ac_cv_target=$ac_cv_host
2427 else
2428   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2429     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2430 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2431    { (exit 1); exit 1; }; }
2432 fi
2433
2434 fi
2435 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2436 $as_echo "$ac_cv_target" >&6; }
2437 case $ac_cv_target in
2438 *-*-*) ;;
2439 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2440 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2441    { (exit 1); exit 1; }; };;
2442 esac
2443 target=$ac_cv_target
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_target
2446 shift
2447 target_cpu=$1
2448 target_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 target_os=$*
2453 IFS=$ac_save_IFS
2454 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 # The aliases save the names the user supplied, while $host etc.
2458 # will get canonicalized.
2459 test -n "$target_alias" &&
2460   test "$program_prefix$program_suffix$program_transform_name" = \
2461     NONENONEs,x,x, &&
2462   program_prefix=${target_alias}-
2463
2464 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2465 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2466     # Check whether --enable-maintainer-mode was given.
2467 if test "${enable_maintainer_mode+set}" = set; then
2468   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2469 else
2470   USE_MAINTAINER_MODE=no
2471 fi
2472
2473   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2474 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2475    if test $USE_MAINTAINER_MODE = yes; then
2476   MAINTAINER_MODE_TRUE=
2477   MAINTAINER_MODE_FALSE='#'
2478 else
2479   MAINTAINER_MODE_TRUE='#'
2480   MAINTAINER_MODE_FALSE=
2481 fi
2482
2483   MAINT=$MAINTAINER_MODE_TRUE
2484
2485
2486 # Check whether --enable-silent-rules was given.
2487 if test "${enable_silent_rules+set}" = set; then
2488   enableval=$enable_silent_rules;
2489 fi
2490
2491 case $enable_silent_rules in
2492 yes) AM_DEFAULT_VERBOSITY=0;;
2493 no)  AM_DEFAULT_VERBOSITY=1;;
2494 *)   AM_DEFAULT_VERBOSITY=1;;
2495 esac
2496 AM_BACKSLASH='\'
2497
2498 am__api_version='1.11'
2499
2500 # Find a good install program.  We prefer a C program (faster),
2501 # so one script is as good as another.  But avoid the broken or
2502 # incompatible versions:
2503 # SysV /etc/install, /usr/sbin/install
2504 # SunOS /usr/etc/install
2505 # IRIX /sbin/install
2506 # AIX /bin/install
2507 # AmigaOS /C/install, which installs bootblocks on floppy discs
2508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511 # OS/2's system install, which has a completely different semantic
2512 # ./install, which can be erroneously created by make from ./install.sh.
2513 # Reject install programs that cannot install multiple files.
2514 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2515 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2516 if test -z "$INSTALL"; then
2517 if test "${ac_cv_path_install+set}" = set; then
2518   $as_echo_n "(cached) " >&6
2519 else
2520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   # Account for people who put trailing slashes in PATH elements.
2526 case $as_dir/ in
2527   ./ | .// | /cC/* | \
2528   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2529   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2530   /usr/ucb/* ) ;;
2531   *)
2532     # OSF1 and SCO ODT 3.0 have their own names for install.
2533     # Don't use installbsd from OSF since it installs stuff as root
2534     # by default.
2535     for ac_prog in ginstall scoinst install; do
2536       for ac_exec_ext in '' $ac_executable_extensions; do
2537         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2538           if test $ac_prog = install &&
2539             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540             # AIX install.  It has an incompatible calling convention.
2541             :
2542           elif test $ac_prog = install &&
2543             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544             # program-specific install script used by HP pwplus--don't use.
2545             :
2546           else
2547             rm -rf conftest.one conftest.two conftest.dir
2548             echo one > conftest.one
2549             echo two > conftest.two
2550             mkdir conftest.dir
2551             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2552               test -s conftest.one && test -s conftest.two &&
2553               test -s conftest.dir/conftest.one &&
2554               test -s conftest.dir/conftest.two
2555             then
2556               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2557               break 3
2558             fi
2559           fi
2560         fi
2561       done
2562     done
2563     ;;
2564 esac
2565
2566 done
2567 IFS=$as_save_IFS
2568
2569 rm -rf conftest.one conftest.two conftest.dir
2570
2571 fi
2572   if test "${ac_cv_path_install+set}" = set; then
2573     INSTALL=$ac_cv_path_install
2574   else
2575     # As a last resort, use the slow shell script.  Don't cache a
2576     # value for INSTALL within a source directory, because that will
2577     # break other packages using the cache if that directory is
2578     # removed, or if the value is a relative name.
2579     INSTALL=$ac_install_sh
2580   fi
2581 fi
2582 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2583 $as_echo "$INSTALL" >&6; }
2584
2585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586 # It thinks the first close brace ends the variable substitution.
2587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588
2589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590
2591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592
2593 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2594 $as_echo_n "checking whether build environment is sane... " >&6; }
2595 # Just in case
2596 sleep 1
2597 echo timestamp > conftest.file
2598 # Reject unsafe characters in $srcdir or the absolute working directory
2599 # name.  Accept space and tab only in the latter.
2600 am_lf='
2601 '
2602 case `pwd` in
2603   *[\\\"\#\$\&\'\`$am_lf]*)
2604     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2605 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2606    { (exit 1); exit 1; }; };;
2607 esac
2608 case $srcdir in
2609   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2610     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2611 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2612    { (exit 1); exit 1; }; };;
2613 esac
2614
2615 # Do `set' in a subshell so we don't clobber the current shell's
2616 # arguments.  Must try -L first in case configure is actually a
2617 # symlink; some systems play weird games with the mod time of symlinks
2618 # (eg FreeBSD returns the mod time of the symlink's containing
2619 # directory).
2620 if (
2621    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2622    if test "$*" = "X"; then
2623       # -L didn't work.
2624       set X `ls -t "$srcdir/configure" conftest.file`
2625    fi
2626    rm -f conftest.file
2627    if test "$*" != "X $srcdir/configure conftest.file" \
2628       && test "$*" != "X conftest.file $srcdir/configure"; then
2629
2630       # If neither matched, then we have a broken ls.  This can happen
2631       # if, for instance, CONFIG_SHELL is bash and it inherits a
2632       # broken ls alias from the environment.  This has actually
2633       # happened.  Such a system could not be considered "sane".
2634       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2635 alias in your environment" >&5
2636 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2637 alias in your environment" >&2;}
2638    { (exit 1); exit 1; }; }
2639    fi
2640
2641    test "$2" = conftest.file
2642    )
2643 then
2644    # Ok.
2645    :
2646 else
2647    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2648 Check your system clock" >&5
2649 $as_echo "$as_me: error: newly created file is older than distributed files!
2650 Check your system clock" >&2;}
2651    { (exit 1); exit 1; }; }
2652 fi
2653 { $as_echo "$as_me:$LINENO: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 test "$program_prefix" != NONE &&
2656   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2657 # Use a double $ so make ignores it.
2658 test "$program_suffix" != NONE &&
2659   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2660 # Double any \ or $.
2661 # By default was `s,x,x', remove it if useless.
2662 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2663 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2664
2665 # expand $ac_aux_dir to an absolute path
2666 am_aux_dir=`cd $ac_aux_dir && pwd`
2667
2668 if test x"${MISSING+set}" != xset; then
2669   case $am_aux_dir in
2670   *\ * | *\     *)
2671     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2672   *)
2673     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2674   esac
2675 fi
2676 # Use eval to expand $SHELL
2677 if eval "$MISSING --run true"; then
2678   am_missing_run="$MISSING --run "
2679 else
2680   am_missing_run=
2681   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2682 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2683 fi
2684
2685 if test x"${install_sh}" != xset; then
2686   case $am_aux_dir in
2687   *\ * | *\     *)
2688     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2689   *)
2690     install_sh="\${SHELL} $am_aux_dir/install-sh"
2691   esac
2692 fi
2693
2694 # Installed binaries are usually stripped using `strip' when the user
2695 # run `make install-strip'.  However `strip' might not be the right
2696 # tool to use in cross-compilation environments, therefore Automake
2697 # will honor the `STRIP' environment variable to overrule this program.
2698 if test "$cross_compiling" != no; then
2699   if test -n "$ac_tool_prefix"; then
2700   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}strip; ac_word=$2
2702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_STRIP+set}" = set; then
2705   $as_echo_n "(cached) " >&6
2706 else
2707   if test -n "$STRIP"; then
2708   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715   for ac_exec_ext in '' $ac_executable_extensions; do
2716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2718     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719     break 2
2720   fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 STRIP=$ac_cv_prog_STRIP
2728 if test -n "$STRIP"; then
2729   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2730 $as_echo "$STRIP" >&6; }
2731 else
2732   { $as_echo "$as_me:$LINENO: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 fi
2738 if test -z "$ac_cv_prog_STRIP"; then
2739   ac_ct_STRIP=$STRIP
2740   # Extract the first word of "strip", so it can be a program name with args.
2741 set dummy strip; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2745   $as_echo_n "(cached) " >&6
2746 else
2747   if test -n "$ac_ct_STRIP"; then
2748   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755   for ac_exec_ext in '' $ac_executable_extensions; do
2756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757     ac_cv_prog_ac_ct_STRIP="strip"
2758     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2768 if test -n "$ac_ct_STRIP"; then
2769   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2770 $as_echo "$ac_ct_STRIP" >&6; }
2771 else
2772   { $as_echo "$as_me:$LINENO: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776   if test "x$ac_ct_STRIP" = x; then
2777     STRIP=":"
2778   else
2779     case $cross_compiling:$ac_tool_warned in
2780 yes:)
2781 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783 ac_tool_warned=yes ;;
2784 esac
2785     STRIP=$ac_ct_STRIP
2786   fi
2787 else
2788   STRIP="$ac_cv_prog_STRIP"
2789 fi
2790
2791 fi
2792 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2793
2794 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2795 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2796 if test -z "$MKDIR_P"; then
2797   if test "${ac_cv_path_mkdir+set}" = set; then
2798   $as_echo_n "(cached) " >&6
2799 else
2800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805   for ac_prog in mkdir gmkdir; do
2806          for ac_exec_ext in '' $ac_executable_extensions; do
2807            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2808            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2809              'mkdir (GNU coreutils) '* | \
2810              'mkdir (coreutils) '* | \
2811              'mkdir (fileutils) '4.1*)
2812                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2813                break 3;;
2814            esac
2815          done
2816        done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821
2822   if test "${ac_cv_path_mkdir+set}" = set; then
2823     MKDIR_P="$ac_cv_path_mkdir -p"
2824   else
2825     # As a last resort, use the slow shell script.  Don't cache a
2826     # value for MKDIR_P within a source directory, because that will
2827     # break other packages using the cache if that directory is
2828     # removed, or if the value is a relative name.
2829     test -d ./--version && rmdir ./--version
2830     MKDIR_P="$ac_install_sh -d"
2831   fi
2832 fi
2833 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2834 $as_echo "$MKDIR_P" >&6; }
2835
2836 mkdir_p="$MKDIR_P"
2837 case $mkdir_p in
2838   [\\/$]* | ?:[\\/]*) ;;
2839   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2840 esac
2841
2842 for ac_prog in gawk mawk nawk awk
2843 do
2844   # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if test "${ac_cv_prog_AWK+set}" = set; then
2849   $as_echo_n "(cached) " >&6
2850 else
2851   if test -n "$AWK"; then
2852   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857   IFS=$as_save_IFS
2858   test -z "$as_dir" && as_dir=.
2859   for ac_exec_ext in '' $ac_executable_extensions; do
2860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861     ac_cv_prog_AWK="$ac_prog"
2862     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863     break 2
2864   fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 AWK=$ac_cv_prog_AWK
2872 if test -n "$AWK"; then
2873   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2874 $as_echo "$AWK" >&6; }
2875 else
2876   { $as_echo "$as_me:$LINENO: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880
2881   test -n "$AWK" && break
2882 done
2883
2884 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2885 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2886 set x ${MAKE-make}
2887 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2888 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2889   $as_echo_n "(cached) " >&6
2890 else
2891   cat >conftest.make <<\_ACEOF
2892 SHELL = /bin/sh
2893 all:
2894         @echo '@@@%%%=$(MAKE)=@@@%%%'
2895 _ACEOF
2896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2897 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898   *@@@%%%=?*=@@@%%%*)
2899     eval ac_cv_prog_make_${ac_make}_set=yes;;
2900   *)
2901     eval ac_cv_prog_make_${ac_make}_set=no;;
2902 esac
2903 rm -f conftest.make
2904 fi
2905 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2906   { $as_echo "$as_me:$LINENO: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908   SET_MAKE=
2909 else
2910   { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2912   SET_MAKE="MAKE=${MAKE-make}"
2913 fi
2914
2915 rm -rf .tst 2>/dev/null
2916 mkdir .tst 2>/dev/null
2917 if test -d .tst; then
2918   am__leading_dot=.
2919 else
2920   am__leading_dot=_
2921 fi
2922 rmdir .tst 2>/dev/null
2923
2924 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2925   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2926   # is not polluted with repeated "-I."
2927   am__isrc=' -I$(srcdir)'
2928   # test to see if srcdir already configured
2929   if test -f $srcdir/config.status; then
2930     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2931 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2932    { (exit 1); exit 1; }; }
2933   fi
2934 fi
2935
2936 # test whether we have cygpath
2937 if test -z "$CYGPATH_W"; then
2938   if (cygpath --version) >/dev/null 2>/dev/null; then
2939     CYGPATH_W='cygpath -w'
2940   else
2941     CYGPATH_W=echo
2942   fi
2943 fi
2944
2945
2946 # Define the identity of the package.
2947  PACKAGE=$ZFS_META_NAME
2948  VERSION=$ZFS_META_VERSION
2949
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE "$PACKAGE"
2953 _ACEOF
2954
2955
2956 cat >>confdefs.h <<_ACEOF
2957 #define VERSION "$VERSION"
2958 _ACEOF
2959
2960 # Some tools Automake needs.
2961
2962 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2963
2964
2965 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2966
2967
2968 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2969
2970
2971 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2972
2973
2974 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2975
2976 # We need awk for the "check" target.  The system "awk" is bad on
2977 # some platforms.
2978 # Always define AMTAR for backward compatibility.
2979
2980 AMTAR=${AMTAR-"${am_missing_run}tar"}
2981
2982 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2983
2984
2985
2986
2987
2988 ac_config_headers="$ac_config_headers zfs_config.h"
2989
2990
2991 # Find a good install program.  We prefer a C program (faster),
2992 # so one script is as good as another.  But avoid the broken or
2993 # incompatible versions:
2994 # SysV /etc/install, /usr/sbin/install
2995 # SunOS /usr/etc/install
2996 # IRIX /sbin/install
2997 # AIX /bin/install
2998 # AmigaOS /C/install, which installs bootblocks on floppy discs
2999 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3000 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3001 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3002 # OS/2's system install, which has a completely different semantic
3003 # ./install, which can be erroneously created by make from ./install.sh.
3004 # Reject install programs that cannot install multiple files.
3005 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3006 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3007 if test -z "$INSTALL"; then
3008 if test "${ac_cv_path_install+set}" = set; then
3009   $as_echo_n "(cached) " >&6
3010 else
3011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016   # Account for people who put trailing slashes in PATH elements.
3017 case $as_dir/ in
3018   ./ | .// | /cC/* | \
3019   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3020   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3021   /usr/ucb/* ) ;;
3022   *)
3023     # OSF1 and SCO ODT 3.0 have their own names for install.
3024     # Don't use installbsd from OSF since it installs stuff as root
3025     # by default.
3026     for ac_prog in ginstall scoinst install; do
3027       for ac_exec_ext in '' $ac_executable_extensions; do
3028         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3029           if test $ac_prog = install &&
3030             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3031             # AIX install.  It has an incompatible calling convention.
3032             :
3033           elif test $ac_prog = install &&
3034             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3035             # program-specific install script used by HP pwplus--don't use.
3036             :
3037           else
3038             rm -rf conftest.one conftest.two conftest.dir
3039             echo one > conftest.one
3040             echo two > conftest.two
3041             mkdir conftest.dir
3042             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3043               test -s conftest.one && test -s conftest.two &&
3044               test -s conftest.dir/conftest.one &&
3045               test -s conftest.dir/conftest.two
3046             then
3047               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3048               break 3
3049             fi
3050           fi
3051         fi
3052       done
3053     done
3054     ;;
3055 esac
3056
3057 done
3058 IFS=$as_save_IFS
3059
3060 rm -rf conftest.one conftest.two conftest.dir
3061
3062 fi
3063   if test "${ac_cv_path_install+set}" = set; then
3064     INSTALL=$ac_cv_path_install
3065   else
3066     # As a last resort, use the slow shell script.  Don't cache a
3067     # value for INSTALL within a source directory, because that will
3068     # break other packages using the cache if that directory is
3069     # removed, or if the value is a relative name.
3070     INSTALL=$ac_install_sh
3071   fi
3072 fi
3073 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3074 $as_echo "$INSTALL" >&6; }
3075
3076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077 # It thinks the first close brace ends the variable substitution.
3078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3079
3080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3081
3082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3083
3084 ac_ext=c
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 if test -n "$ac_tool_prefix"; then
3090   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if test "${ac_cv_prog_CC+set}" = set; then
3095   $as_echo_n "(cached) " >&6
3096 else
3097   if test -n "$CC"; then
3098   ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103   IFS=$as_save_IFS
3104   test -z "$as_dir" && as_dir=.
3105   for ac_exec_ext in '' $ac_executable_extensions; do
3106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3108     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109     break 2
3110   fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3121 else
3122   { $as_echo "$as_me:$LINENO: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 fi
3128 if test -z "$ac_cv_prog_CC"; then
3129   ac_ct_CC=$CC
3130   # Extract the first word of "gcc", so it can be a program name with args.
3131 set dummy gcc; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$ac_ct_CC"; then
3138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_ac_ct_CC="gcc"
3148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162   { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166   if test "x$ac_ct_CC" = x; then
3167     CC=""
3168   else
3169     case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175     CC=$ac_ct_CC
3176   fi
3177 else
3178   CC="$ac_cv_prog_CC"
3179 fi
3180
3181 if test -z "$CC"; then
3182           if test -n "$ac_tool_prefix"; then
3183     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}cc; ac_word=$2
3185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_prog_CC+set}" = set; then
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$CC"; then
3191   ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198   for ac_exec_ext in '' $ac_executable_extensions; do
3199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200     ac_cv_prog_CC="${ac_tool_prefix}cc"
3201     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215   { $as_echo "$as_me:$LINENO: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220   fi
3221 fi
3222 if test -z "$CC"; then
3223   # Extract the first word of "cc", so it can be a program name with args.
3224 set dummy cc; ac_word=$2
3225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if test "${ac_cv_prog_CC+set}" = set; then
3228   $as_echo_n "(cached) " >&6
3229 else
3230   if test -n "$CC"; then
3231   ac_cv_prog_CC="$CC" # Let the user override the test.
3232 else
3233   ac_prog_rejected=no
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3242        ac_prog_rejected=yes
3243        continue
3244      fi
3245     ac_cv_prog_CC="cc"
3246     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247     break 2
3248   fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 if test $ac_prog_rejected = yes; then
3254   # We found a bogon in the path, so make sure we never use it.
3255   set dummy $ac_cv_prog_CC
3256   shift
3257   if test $# != 0; then
3258     # We chose a different compiler from the bogus one.
3259     # However, it has the same basename, so the bogon will be chosen
3260     # first if we set CC to just the basename; use the full file name.
3261     shift
3262     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3263   fi
3264 fi
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272   { $as_echo "$as_me:$LINENO: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 fi
3278 if test -z "$CC"; then
3279   if test -n "$ac_tool_prefix"; then
3280   for ac_prog in cl.exe
3281   do
3282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_CC+set}" = set; then
3287   $as_echo_n "(cached) " >&6
3288 else
3289   if test -n "$CC"; then
3290   ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3300     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3313 else
3314   { $as_echo "$as_me:$LINENO: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318
3319     test -n "$CC" && break
3320   done
3321 fi
3322 if test -z "$CC"; then
3323   ac_ct_CC=$CC
3324   for ac_prog in cl.exe
3325 do
3326   # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if test -n "$ac_ct_CC"; then
3334   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341   for ac_exec_ext in '' $ac_executable_extensions; do
3342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343     ac_cv_prog_ac_ct_CC="$ac_prog"
3344     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345     break 2
3346   fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3354 if test -n "$ac_ct_CC"; then
3355   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3356 $as_echo "$ac_ct_CC" >&6; }
3357 else
3358   { $as_echo "$as_me:$LINENO: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363   test -n "$ac_ct_CC" && break
3364 done
3365
3366   if test "x$ac_ct_CC" = x; then
3367     CC=""
3368   else
3369     case $cross_compiling:$ac_tool_warned in
3370 yes:)
3371 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375     CC=$ac_ct_CC
3376   fi
3377 fi
3378
3379 fi
3380
3381
3382 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3385 See \`config.log' for more details." >&5
3386 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3387 See \`config.log' for more details." >&2;}
3388    { (exit 1); exit 1; }; }; }
3389
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 { (ac_try="$ac_compiler --version >&5"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400 $as_echo "$ac_try_echo") >&5
3401   (eval "$ac_compiler --version >&5") 2>&5
3402   ac_status=$?
3403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }
3405 { (ac_try="$ac_compiler -v >&5"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3411 $as_echo "$ac_try_echo") >&5
3412   (eval "$ac_compiler -v >&5") 2>&5
3413   ac_status=$?
3414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); }
3416 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
3424   ac_status=$?
3425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }
3427
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 ac_clean_files_save=$ac_clean_files
3444 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3445 # Try to create an executable without -o first, disregard a.out.
3446 # It will help us diagnose broken compilers, and finding out an intuition
3447 # of exeext.
3448 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3449 $as_echo_n "checking for C compiler default output file name... " >&6; }
3450 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3451
3452 # The possible output files:
3453 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3454
3455 ac_rmfiles=
3456 for ac_file in $ac_files
3457 do
3458   case $ac_file in
3459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461   esac
3462 done
3463 rm -f $ac_rmfiles
3464
3465 if { (ac_try="$ac_link_default"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472   (eval "$ac_link_default") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; then
3476   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3479 # so that the user can short-circuit this test for compilers unknown to
3480 # Autoconf.
3481 for ac_file in $ac_files ''
3482 do
3483   test -f "$ac_file" || continue
3484   case $ac_file in
3485     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3486         ;;
3487     [ab].out )
3488         # We found the default executable, but exeext='' is most
3489         # certainly right.
3490         break;;
3491     *.* )
3492         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3493         then :; else
3494            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495         fi
3496         # We set ac_cv_exeext here because the later test for it is not
3497         # safe: cross compilers may not add the suffix if given an `-o'
3498         # argument, so we may need to know it at that point already.
3499         # Even if this section looks crufty: it has the advantage of
3500         # actually working.
3501         break;;
3502     * )
3503         break;;
3504   esac
3505 done
3506 test "$ac_cv_exeext" = no && ac_cv_exeext=
3507
3508 else
3509   ac_file=''
3510 fi
3511
3512 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3513 $as_echo "$ac_file" >&6; }
3514 if test -z "$ac_file"; then
3515   $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3521 See \`config.log' for more details." >&5
3522 $as_echo "$as_me: error: C compiler cannot create executables
3523 See \`config.log' for more details." >&2;}
3524    { (exit 77); exit 77; }; }; }
3525 fi
3526
3527 ac_exeext=$ac_cv_exeext
3528
3529 # Check that the compiler produces executables we can run.  If not, either
3530 # the compiler is broken, or we cross compile.
3531 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3532 $as_echo_n "checking whether the C compiler works... " >&6; }
3533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3534 # If not cross compiling, check that we can run a simple program.
3535 if test "$cross_compiling" != yes; then
3536   if { ac_try='./$ac_file'
3537   { (case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543   (eval "$ac_try") 2>&5
3544   ac_status=$?
3545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }; }; then
3547     cross_compiling=no
3548   else
3549     if test "$cross_compiling" = maybe; then
3550         cross_compiling=yes
3551     else
3552         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3555 If you meant to cross compile, use \`--host'.
3556 See \`config.log' for more details." >&5
3557 $as_echo "$as_me: error: cannot run C compiled programs.
3558 If you meant to cross compile, use \`--host'.
3559 See \`config.log' for more details." >&2;}
3560    { (exit 1); exit 1; }; }; }
3561     fi
3562   fi
3563 fi
3564 { $as_echo "$as_me:$LINENO: result: yes" >&5
3565 $as_echo "yes" >&6; }
3566
3567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3568 ac_clean_files=$ac_clean_files_save
3569 # Check that the compiler produces executables we can run.  If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3574 $as_echo "$cross_compiling" >&6; }
3575
3576 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3577 $as_echo_n "checking for suffix of executables... " >&6; }
3578 if { (ac_try="$ac_link"
3579 case "(($ac_try" in
3580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581   *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3584 $as_echo "$ac_try_echo") >&5
3585   (eval "$ac_link") 2>&5
3586   ac_status=$?
3587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }; then
3589   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3590 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3591 # work properly (i.e., refer to `conftest.exe'), while it won't with
3592 # `rm'.
3593 for ac_file in conftest.exe conftest conftest.*; do
3594   test -f "$ac_file" || continue
3595   case $ac_file in
3596     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3597     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598           break;;
3599     * ) break;;
3600   esac
3601 done
3602 else
3603   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3606 See \`config.log' for more details." >&5
3607 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3608 See \`config.log' for more details." >&2;}
3609    { (exit 1); exit 1; }; }; }
3610 fi
3611
3612 rm -f conftest$ac_cv_exeext
3613 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3614 $as_echo "$ac_cv_exeext" >&6; }
3615
3616 rm -f conftest.$ac_ext
3617 EXEEXT=$ac_cv_exeext
3618 ac_exeext=$EXEEXT
3619 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3620 $as_echo_n "checking for suffix of object files... " >&6; }
3621 if test "${ac_cv_objext+set}" = set; then
3622   $as_echo_n "(cached) " >&6
3623 else
3624   cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630
3631 int
3632 main ()
3633 {
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.o conftest.obj
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647   (eval "$ac_compile") 2>&5
3648   ac_status=$?
3649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); }; then
3651   for ac_file in conftest.o conftest.obj conftest.*; do
3652   test -f "$ac_file" || continue;
3653   case $ac_file in
3654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3655     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3656        break;;
3657   esac
3658 done
3659 else
3660   $as_echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3666 See \`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3668 See \`config.log' for more details." >&2;}
3669    { (exit 1); exit 1; }; }; }
3670 fi
3671
3672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3673 fi
3674 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3675 $as_echo "$ac_cv_objext" >&6; }
3676 OBJEXT=$ac_cv_objext
3677 ac_objext=$OBJEXT
3678 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3679 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3680 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3681   $as_echo_n "(cached) " >&6
3682 else
3683   cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689
3690 int
3691 main ()
3692 {
3693 #ifndef __GNUC__
3694        choke me
3695 #endif
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709   (eval "$ac_compile") 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } && {
3716          test -z "$ac_c_werror_flag" ||
3717          test ! -s conftest.err
3718        } && test -s conftest.$ac_objext; then
3719   ac_compiler_gnu=yes
3720 else
3721   $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724         ac_compiler_gnu=no
3725 fi
3726
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729
3730 fi
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733 if test $ac_compiler_gnu = yes; then
3734   GCC=yes
3735 else
3736   GCC=
3737 fi
3738 ac_test_CFLAGS=${CFLAGS+set}
3739 ac_save_CFLAGS=$CFLAGS
3740 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3742 if test "${ac_cv_prog_cc_g+set}" = set; then
3743   $as_echo_n "(cached) " >&6
3744 else
3745   ac_save_c_werror_flag=$ac_c_werror_flag
3746    ac_c_werror_flag=yes
3747    ac_cv_prog_cc_g=no
3748    CFLAGS="-g"
3749    cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h.  */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h.  */
3755
3756 int
3757 main ()
3758 {
3759
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3766 case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772   (eval "$ac_compile") 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } && {
3779          test -z "$ac_c_werror_flag" ||
3780          test ! -s conftest.err
3781        } && test -s conftest.$ac_objext; then
3782   ac_cv_prog_cc_g=yes
3783 else
3784   $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787         CFLAGS=""
3788       cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794
3795 int
3796 main ()
3797 {
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3810 $as_echo "$ac_try_echo") >&5
3811   (eval "$ac_compile") 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } && {
3818          test -z "$ac_c_werror_flag" ||
3819          test ! -s conftest.err
3820        } && test -s conftest.$ac_objext; then
3821   :
3822 else
3823   $as_echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826         ac_c_werror_flag=$ac_save_c_werror_flag
3827          CFLAGS="-g"
3828          cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h.  */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h.  */
3834
3835 int
3836 main ()
3837 {
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3850 $as_echo "$ac_try_echo") >&5
3851   (eval "$ac_compile") 2>conftest.er1
3852   ac_status=$?
3853   grep -v '^ *+' conftest.er1 >conftest.err
3854   rm -f conftest.er1
3855   cat conftest.err >&5
3856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); } && {
3858          test -z "$ac_c_werror_flag" ||
3859          test ! -s conftest.err
3860        } && test -s conftest.$ac_objext; then
3861   ac_cv_prog_cc_g=yes
3862 else
3863   $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866
3867 fi
3868
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 fi
3871
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 fi
3874
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876    ac_c_werror_flag=$ac_save_c_werror_flag
3877 fi
3878 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3879 $as_echo "$ac_cv_prog_cc_g" >&6; }
3880 if test "$ac_test_CFLAGS" = set; then
3881   CFLAGS=$ac_save_CFLAGS
3882 elif test $ac_cv_prog_cc_g = yes; then
3883   if test "$GCC" = yes; then
3884     CFLAGS="-g -O2"
3885   else
3886     CFLAGS="-g"
3887   fi
3888 else
3889   if test "$GCC" = yes; then
3890     CFLAGS="-O2"
3891   else
3892     CFLAGS=
3893   fi
3894 fi
3895 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3896 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3897 if test "${ac_cv_prog_cc_c89+set}" = set; then
3898   $as_echo_n "(cached) " >&6
3899 else
3900   ac_cv_prog_cc_c89=no
3901 ac_save_CC=$CC
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #include <stdarg.h>
3909 #include <stdio.h>
3910 #include <sys/types.h>
3911 #include <sys/stat.h>
3912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3913 struct buf { int x; };
3914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915 static char *e (p, i)
3916      char **p;
3917      int i;
3918 {
3919   return p[i];
3920 }
3921 static char *f (char * (*g) (char **, int), char **p, ...)
3922 {
3923   char *s;
3924   va_list v;
3925   va_start (v,p);
3926   s = g (p, va_arg (v,int));
3927   va_end (v);
3928   return s;
3929 }
3930
3931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3932    function prototypes and stuff, but not '\xHH' hex character constants.
3933    These don't provoke an error unfortunately, instead are silently treated
3934    as 'x'.  The following induces an error, until -std is added to get
3935    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3936    array size at least.  It's necessary to write '\x00'==0 to get something
3937    that's true only with -std.  */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939
3940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941    inside strings and character constants.  */
3942 #define FOO(x) 'x'
3943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3944
3945 int test (int i, double x);
3946 struct s1 {int (*f) (int a);};
3947 struct s2 {int (*f) (double a);};
3948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949 int argc;
3950 char **argv;
3951 int
3952 main ()
3953 {
3954 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961 do
3962   CC="$ac_save_CC $ac_arg"
3963   rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971   (eval "$ac_compile") 2>conftest.er1
3972   ac_status=$?
3973   grep -v '^ *+' conftest.er1 >conftest.err
3974   rm -f conftest.er1
3975   cat conftest.err >&5
3976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); } && {
3978          test -z "$ac_c_werror_flag" ||
3979          test ! -s conftest.err
3980        } && test -s conftest.$ac_objext; then
3981   ac_cv_prog_cc_c89=$ac_arg
3982 else
3983   $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986
3987 fi
3988
3989 rm -f core conftest.err conftest.$ac_objext
3990   test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 done
3992 rm -f conftest.$ac_ext
3993 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3998   x)
3999     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001   xno)
4002     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004   *)
4005     CC="$CC $ac_cv_prog_cc_c89"
4006     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009
4010
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 DEPDIR="${am__leading_dot}deps"
4017
4018 ac_config_commands="$ac_config_commands depfiles"
4019
4020
4021 am_make=${MAKE-make}
4022 cat > confinc << 'END'
4023 am__doit:
4024         @echo this is the am__doit target
4025 .PHONY: am__doit
4026 END
4027 # If we don't find an include directive, just comment out the code.
4028 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4030 am__include="#"
4031 am__quote=
4032 _am_result=none
4033 # First try GNU make style include.
4034 echo "include confinc" > confmf
4035 # Ignore all kinds of additional output from `make'.
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038   am__include=include
4039   am__quote=
4040   _am_result=GNU
4041   ;;
4042 esac
4043 # Now try BSD make style include.
4044 if test "$am__include" = "#"; then
4045    echo '.include "confinc"' > confmf
4046    case `$am_make -s -f confmf 2> /dev/null` in #(
4047    *the\ am__doit\ target*)
4048      am__include=.include
4049      am__quote="\""
4050      _am_result=BSD
4051      ;;
4052    esac
4053 fi
4054
4055
4056 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4057 $as_echo "$_am_result" >&6; }
4058 rm -f confinc confmf
4059
4060 # Check whether --enable-dependency-tracking was given.
4061 if test "${enable_dependency_tracking+set}" = set; then
4062   enableval=$enable_dependency_tracking;
4063 fi
4064
4065 if test "x$enable_dependency_tracking" != xno; then
4066   am_depcomp="$ac_aux_dir/depcomp"
4067   AMDEPBACKSLASH='\'
4068 fi
4069  if test "x$enable_dependency_tracking" != xno; then
4070   AMDEP_TRUE=
4071   AMDEP_FALSE='#'
4072 else
4073   AMDEP_TRUE='#'
4074   AMDEP_FALSE=
4075 fi
4076
4077
4078
4079 depcc="$CC"   am_compiler_list=
4080
4081 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4082 $as_echo_n "checking dependency style of $depcc... " >&6; }
4083 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4084   $as_echo_n "(cached) " >&6
4085 else
4086   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087   # We make a subdir and do the tests there.  Otherwise we can end up
4088   # making bogus files that we don't know about and never remove.  For
4089   # instance it was reported that on HP-UX the gcc test will end up
4090   # making a dummy file named `D' -- because `-MD' means `put the output
4091   # in D'.
4092   mkdir conftest.dir
4093   # Copy depcomp to subdir because otherwise we won't find it if we're
4094   # using a relative directory.
4095   cp "$am_depcomp" conftest.dir
4096   cd conftest.dir
4097   # We will build objects and dependencies in a subdirectory because
4098   # it helps to detect inapplicable dependency modes.  For instance
4099   # both Tru64's cc and ICC support -MD to output dependencies as a
4100   # side effect of compilation, but ICC will put the dependencies in
4101   # the current directory while Tru64 will put them in the object
4102   # directory.
4103   mkdir sub
4104
4105   am_cv_CC_dependencies_compiler_type=none
4106   if test "$am_compiler_list" = ""; then
4107      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108   fi
4109   am__universal=false
4110   case " $depcc " in #(
4111      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112      esac
4113
4114   for depmode in $am_compiler_list; do
4115     # Setup a source with many dependencies, because some compilers
4116     # like to wrap large dependency lists on column 80 (with \), and
4117     # we should not choose a depcomp mode which is confused by this.
4118     #
4119     # We need to recreate these files for each test, as the compiler may
4120     # overwrite some of them when testing with obscure command lines.
4121     # This happens at least with the AIX C compiler.
4122     : > sub/conftest.c
4123     for i in 1 2 3 4 5 6; do
4124       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4126       # Solaris 8's {/usr,}/bin/sh.
4127       touch sub/conftst$i.h
4128     done
4129     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130
4131     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4132     # mode.  It turns out that the SunPro C++ compiler does not properly
4133     # handle `-M -o', and we need to detect this.  Also, some Intel
4134     # versions had trouble with output in subdirs
4135     am__obj=sub/conftest.${OBJEXT-o}
4136     am__minus_obj="-o $am__obj"
4137     case $depmode in
4138     gcc)
4139       # This depmode causes a compiler race in universal mode.
4140       test "$am__universal" = false || continue
4141       ;;
4142     nosideeffect)
4143       # after this tag, mechanisms are not by side-effect, so they'll
4144       # only be used when explicitly requested
4145       if test "x$enable_dependency_tracking" = xyes; then
4146         continue
4147       else
4148         break
4149       fi
4150       ;;
4151     msvisualcpp | msvcmsys)
4152       # This compiler won't grok `-c -o', but also, the minuso test has
4153       # not run yet.  These depmodes are late enough in the game, and
4154       # so weak that their functioning should not be impacted.
4155       am__obj=conftest.${OBJEXT-o}
4156       am__minus_obj=
4157       ;;
4158     none) break ;;
4159     esac
4160     if depmode=$depmode \
4161        source=sub/conftest.c object=$am__obj \
4162        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164          >/dev/null 2>conftest.err &&
4165        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169       # icc doesn't choke on unknown options, it will just issue warnings
4170       # or remarks (even with -Werror).  So we grep stderr for any message
4171       # that says an option was ignored or not supported.
4172       # When given -MP, icc 7.0 and 7.1 complain thusly:
4173       #   icc: Command line warning: ignoring option '-M'; no argument required
4174       # The diagnosis changed in icc 8.0:
4175       #   icc: Command line remark: option '-MP' not supported
4176       if (grep 'ignoring option' conftest.err ||
4177           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178         am_cv_CC_dependencies_compiler_type=$depmode
4179         break
4180       fi
4181     fi
4182   done
4183
4184   cd ..
4185   rm -rf conftest.dir
4186 else
4187   am_cv_CC_dependencies_compiler_type=none
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194
4195  if
4196   test "x$enable_dependency_tracking" != xno \
4197   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4198   am__fastdepCC_TRUE=
4199   am__fastdepCC_FALSE='#'
4200 else
4201   am__fastdepCC_TRUE='#'
4202   am__fastdepCC_FALSE=
4203 fi
4204
4205
4206 case `pwd` in
4207   *\ * | *\     *)
4208     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4209 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4210 esac
4211
4212
4213
4214 macro_version='2.2.6b'
4215 macro_revision='1.3017'
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229 ltmain="$ac_aux_dir/ltmain.sh"
4230
4231 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4232 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4233 if test "${ac_cv_path_SED+set}" = set; then
4234   $as_echo_n "(cached) " >&6
4235 else
4236             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4237      for ac_i in 1 2 3 4 5 6 7; do
4238        ac_script="$ac_script$as_nl$ac_script"
4239      done
4240      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4241      $as_unset ac_script || ac_script=
4242      if test -z "$SED"; then
4243   ac_path_SED_found=false
4244   # Loop through the user's path and test for each of PROGNAME-LIST
4245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   for ac_prog in sed gsed; do
4251     for ac_exec_ext in '' $ac_executable_extensions; do
4252       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4253       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4254 # Check for GNU ac_path_SED and select it if it is found.
4255   # Check for GNU $ac_path_SED
4256 case `"$ac_path_SED" --version 2>&1` in
4257 *GNU*)
4258   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4259 *)
4260   ac_count=0
4261   $as_echo_n 0123456789 >"conftest.in"
4262   while :
4263   do
4264     cat "conftest.in" "conftest.in" >"conftest.tmp"
4265     mv "conftest.tmp" "conftest.in"
4266     cp "conftest.in" "conftest.nl"
4267     $as_echo '' >> "conftest.nl"
4268     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270     ac_count=`expr $ac_count + 1`
4271     if test $ac_count -gt ${ac_path_SED_max-0}; then
4272       # Best one so far, save it but keep looking for a better one
4273       ac_cv_path_SED="$ac_path_SED"
4274       ac_path_SED_max=$ac_count
4275     fi
4276     # 10*(2^10) chars as input seems more than enough
4277     test $ac_count -gt 10 && break
4278   done
4279   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 esac
4281
4282       $ac_path_SED_found && break 3
4283     done
4284   done
4285 done
4286 IFS=$as_save_IFS
4287   if test -z "$ac_cv_path_SED"; then
4288     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4289 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4290    { (exit 1); exit 1; }; }
4291   fi
4292 else
4293   ac_cv_path_SED=$SED
4294 fi
4295
4296 fi
4297 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4298 $as_echo "$ac_cv_path_SED" >&6; }
4299  SED="$ac_cv_path_SED"
4300   rm -f conftest.sed
4301
4302 test -z "$SED" && SED=sed
4303 Xsed="$SED -e 1s/^X//"
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4317 if test "${ac_cv_path_GREP+set}" = set; then
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -z "$GREP"; then
4321   ac_path_GREP_found=false
4322   # Loop through the user's path and test for each of PROGNAME-LIST
4323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328   for ac_prog in grep ggrep; do
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4331       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4332 # Check for GNU ac_path_GREP and select it if it is found.
4333   # Check for GNU $ac_path_GREP
4334 case `"$ac_path_GREP" --version 2>&1` in
4335 *GNU*)
4336   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4337 *)
4338   ac_count=0
4339   $as_echo_n 0123456789 >"conftest.in"
4340   while :
4341   do
4342     cat "conftest.in" "conftest.in" >"conftest.tmp"
4343     mv "conftest.tmp" "conftest.in"
4344     cp "conftest.in" "conftest.nl"
4345     $as_echo 'GREP' >> "conftest.nl"
4346     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348     ac_count=`expr $ac_count + 1`
4349     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4350       # Best one so far, save it but keep looking for a better one
4351       ac_cv_path_GREP="$ac_path_GREP"
4352       ac_path_GREP_max=$ac_count
4353     fi
4354     # 10*(2^10) chars as input seems more than enough
4355     test $ac_count -gt 10 && break
4356   done
4357   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 esac
4359
4360       $ac_path_GREP_found && break 3
4361     done
4362   done
4363 done
4364 IFS=$as_save_IFS
4365   if test -z "$ac_cv_path_GREP"; then
4366     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4367 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4368    { (exit 1); exit 1; }; }
4369   fi
4370 else
4371   ac_cv_path_GREP=$GREP
4372 fi
4373
4374 fi
4375 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4376 $as_echo "$ac_cv_path_GREP" >&6; }
4377  GREP="$ac_cv_path_GREP"
4378
4379
4380 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4381 $as_echo_n "checking for egrep... " >&6; }
4382 if test "${ac_cv_path_EGREP+set}" = set; then
4383   $as_echo_n "(cached) " >&6
4384 else
4385   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4386    then ac_cv_path_EGREP="$GREP -E"
4387    else
4388      if test -z "$EGREP"; then
4389   ac_path_EGREP_found=false
4390   # Loop through the user's path and test for each of PROGNAME-LIST
4391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396   for ac_prog in egrep; do
4397     for ac_exec_ext in '' $ac_executable_extensions; do
4398       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4399       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4400 # Check for GNU ac_path_EGREP and select it if it is found.
4401   # Check for GNU $ac_path_EGREP
4402 case `"$ac_path_EGREP" --version 2>&1` in
4403 *GNU*)
4404   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4405 *)
4406   ac_count=0
4407   $as_echo_n 0123456789 >"conftest.in"
4408   while :
4409   do
4410     cat "conftest.in" "conftest.in" >"conftest.tmp"
4411     mv "conftest.tmp" "conftest.in"
4412     cp "conftest.in" "conftest.nl"
4413     $as_echo 'EGREP' >> "conftest.nl"
4414     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416     ac_count=`expr $ac_count + 1`
4417     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418       # Best one so far, save it but keep looking for a better one
4419       ac_cv_path_EGREP="$ac_path_EGREP"
4420       ac_path_EGREP_max=$ac_count
4421     fi
4422     # 10*(2^10) chars as input seems more than enough
4423     test $ac_count -gt 10 && break
4424   done
4425   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4427
4428       $ac_path_EGREP_found && break 3
4429     done
4430   done
4431 done
4432 IFS=$as_save_IFS
4433   if test -z "$ac_cv_path_EGREP"; then
4434     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4435 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4436    { (exit 1); exit 1; }; }
4437   fi
4438 else
4439   ac_cv_path_EGREP=$EGREP
4440 fi
4441
4442    fi
4443 fi
4444 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4445 $as_echo "$ac_cv_path_EGREP" >&6; }
4446  EGREP="$ac_cv_path_EGREP"
4447
4448
4449 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4450 $as_echo_n "checking for fgrep... " >&6; }
4451 if test "${ac_cv_path_FGREP+set}" = set; then
4452   $as_echo_n "(cached) " >&6
4453 else
4454   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4455    then ac_cv_path_FGREP="$GREP -F"
4456    else
4457      if test -z "$FGREP"; then
4458   ac_path_FGREP_found=false
4459   # Loop through the user's path and test for each of PROGNAME-LIST
4460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465   for ac_prog in fgrep; do
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4468       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4469 # Check for GNU ac_path_FGREP and select it if it is found.
4470   # Check for GNU $ac_path_FGREP
4471 case `"$ac_path_FGREP" --version 2>&1` in
4472 *GNU*)
4473   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4474 *)
4475   ac_count=0
4476   $as_echo_n 0123456789 >"conftest.in"
4477   while :
4478   do
4479     cat "conftest.in" "conftest.in" >"conftest.tmp"
4480     mv "conftest.tmp" "conftest.in"
4481     cp "conftest.in" "conftest.nl"
4482     $as_echo 'FGREP' >> "conftest.nl"
4483     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485     ac_count=`expr $ac_count + 1`
4486     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4487       # Best one so far, save it but keep looking for a better one
4488       ac_cv_path_FGREP="$ac_path_FGREP"
4489       ac_path_FGREP_max=$ac_count
4490     fi
4491     # 10*(2^10) chars as input seems more than enough
4492     test $ac_count -gt 10 && break
4493   done
4494   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4496
4497       $ac_path_FGREP_found && break 3
4498     done
4499   done
4500 done
4501 IFS=$as_save_IFS
4502   if test -z "$ac_cv_path_FGREP"; then
4503     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4504 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4505    { (exit 1); exit 1; }; }
4506   fi
4507 else
4508   ac_cv_path_FGREP=$FGREP
4509 fi
4510
4511    fi
4512 fi
4513 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4514 $as_echo "$ac_cv_path_FGREP" >&6; }
4515  FGREP="$ac_cv_path_FGREP"
4516
4517
4518 test -z "$GREP" && GREP=grep
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538 # Check whether --with-gnu-ld was given.
4539 if test "${with_gnu_ld+set}" = set; then
4540   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4541 else
4542   with_gnu_ld=no
4543 fi
4544
4545 ac_prog=ld
4546 if test "$GCC" = yes; then
4547   # Check if gcc -print-prog-name=ld gives a path.
4548   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4549 $as_echo_n "checking for ld used by $CC... " >&6; }
4550   case $host in
4551   *-*-mingw*)
4552     # gcc leaves a trailing carriage return which upsets mingw
4553     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4554   *)
4555     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556   esac
4557   case $ac_prog in
4558     # Accept absolute paths.
4559     [\\/]* | ?:[\\/]*)
4560       re_direlt='/[^/][^/]*/\.\./'
4561       # Canonicalize the pathname of ld
4562       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4564         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4565       done
4566       test -z "$LD" && LD="$ac_prog"
4567       ;;
4568   "")
4569     # If it fails, then pretend we aren't using GCC.
4570     ac_prog=ld
4571     ;;
4572   *)
4573     # If it is relative, then search for the first ld in PATH.
4574     with_gnu_ld=unknown
4575     ;;
4576   esac
4577 elif test "$with_gnu_ld" = yes; then
4578   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4579 $as_echo_n "checking for GNU ld... " >&6; }
4580 else
4581   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4582 $as_echo_n "checking for non-GNU ld... " >&6; }
4583 fi
4584 if test "${lt_cv_path_LD+set}" = set; then
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -z "$LD"; then
4588   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589   for ac_dir in $PATH; do
4590     IFS="$lt_save_ifs"
4591     test -z "$ac_dir" && ac_dir=.
4592     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593       lt_cv_path_LD="$ac_dir/$ac_prog"
4594       # Check to see if the program is GNU ld.  I'd rather use --version,
4595       # but apparently some variants of GNU ld only accept -v.
4596       # Break only if it was the GNU/non-GNU ld that we prefer.
4597       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598       *GNU* | *'with BFD'*)
4599         test "$with_gnu_ld" != no && break
4600         ;;
4601       *)
4602         test "$with_gnu_ld" != yes && break
4603         ;;
4604       esac
4605     fi
4606   done
4607   IFS="$lt_save_ifs"
4608 else
4609   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4610 fi
4611 fi
4612
4613 LD="$lt_cv_path_LD"
4614 if test -n "$LD"; then
4615   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4616 $as_echo "$LD" >&6; }
4617 else
4618   { $as_echo "$as_me:$LINENO: result: no" >&5
4619 $as_echo "no" >&6; }
4620 fi
4621 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4622 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4623    { (exit 1); exit 1; }; }
4624 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4627   $as_echo_n "(cached) " >&6
4628 else
4629   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4630 case `$LD -v 2>&1 </dev/null` in
4631 *GNU* | *'with BFD'*)
4632   lt_cv_prog_gnu_ld=yes
4633   ;;
4634 *)
4635   lt_cv_prog_gnu_ld=no
4636   ;;
4637 esac
4638 fi
4639 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4641 with_gnu_ld=$lt_cv_prog_gnu_ld
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4652 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4653 if test "${lt_cv_path_NM+set}" = set; then
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if test -n "$NM"; then
4657   # Let the user override the test.
4658   lt_cv_path_NM="$NM"
4659 else
4660   lt_nm_to_check="${ac_tool_prefix}nm"
4661   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4662     lt_nm_to_check="$lt_nm_to_check nm"
4663   fi
4664   for lt_tmp_nm in $lt_nm_to_check; do
4665     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4666     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4667       IFS="$lt_save_ifs"
4668       test -z "$ac_dir" && ac_dir=.
4669       tmp_nm="$ac_dir/$lt_tmp_nm"
4670       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4671         # Check to see if the nm accepts a BSD-compat flag.
4672         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4673         #   nm: unknown option "B" ignored
4674         # Tru64's nm complains that /dev/null is an invalid object file
4675         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4676         */dev/null* | *'Invalid file or object type'*)
4677           lt_cv_path_NM="$tmp_nm -B"
4678           break
4679           ;;
4680         *)
4681           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4682           */dev/null*)
4683             lt_cv_path_NM="$tmp_nm -p"
4684             break
4685             ;;
4686           *)
4687             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4688             continue # so that we can try to find one that supports BSD flags
4689             ;;
4690           esac
4691           ;;
4692         esac
4693       fi
4694     done
4695     IFS="$lt_save_ifs"
4696   done
4697   : ${lt_cv_path_NM=no}
4698 fi
4699 fi
4700 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4701 $as_echo "$lt_cv_path_NM" >&6; }
4702 if test "$lt_cv_path_NM" != "no"; then
4703   NM="$lt_cv_path_NM"
4704 else
4705   # Didn't find any BSD compatible name lister, look for dumpbin.
4706   if test -n "$ac_tool_prefix"; then
4707   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4708   do
4709     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4714   $as_echo_n "(cached) " >&6
4715 else
4716   if test -n "$DUMPBIN"; then
4717   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724   for ac_exec_ext in '' $ac_executable_extensions; do
4725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4727     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731 done
4732 IFS=$as_save_IFS
4733
4734 fi
4735 fi
4736 DUMPBIN=$ac_cv_prog_DUMPBIN
4737 if test -n "$DUMPBIN"; then
4738   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4739 $as_echo "$DUMPBIN" >&6; }
4740 else
4741   { $as_echo "$as_me:$LINENO: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745
4746     test -n "$DUMPBIN" && break
4747   done
4748 fi
4749 if test -z "$DUMPBIN"; then
4750   ac_ct_DUMPBIN=$DUMPBIN
4751   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4752 do
4753   # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -n "$ac_ct_DUMPBIN"; then
4761   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768   for ac_exec_ext in '' $ac_executable_extensions; do
4769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772     break 2
4773   fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4781 if test -n "$ac_ct_DUMPBIN"; then
4782   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4783 $as_echo "$ac_ct_DUMPBIN" >&6; }
4784 else
4785   { $as_echo "$as_me:$LINENO: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790   test -n "$ac_ct_DUMPBIN" && break
4791 done
4792
4793   if test "x$ac_ct_DUMPBIN" = x; then
4794     DUMPBIN=":"
4795   else
4796     case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802     DUMPBIN=$ac_ct_DUMPBIN
4803   fi
4804 fi
4805
4806
4807   if test "$DUMPBIN" != ":"; then
4808     NM="$DUMPBIN"
4809   fi
4810 fi
4811 test -z "$NM" && NM=nm
4812
4813
4814
4815
4816
4817
4818 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4819 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4820 if test "${lt_cv_nm_interface+set}" = set; then
4821   $as_echo_n "(cached) " >&6
4822 else
4823   lt_cv_nm_interface="BSD nm"
4824   echo "int some_variable = 0;" > conftest.$ac_ext
4825   (eval echo "\"\$as_me:4825: $ac_compile\"" >&5)
4826   (eval "$ac_compile" 2>conftest.err)
4827   cat conftest.err >&5
4828   (eval echo "\"\$as_me:4828: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4829   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4830   cat conftest.err >&5
4831   (eval echo "\"\$as_me:4831: output\"" >&5)
4832   cat conftest.out >&5
4833   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4834     lt_cv_nm_interface="MS dumpbin"
4835   fi
4836   rm -f conftest*
4837 fi
4838 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4839 $as_echo "$lt_cv_nm_interface" >&6; }
4840
4841 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4842 $as_echo_n "checking whether ln -s works... " >&6; }
4843 LN_S=$as_ln_s
4844 if test "$LN_S" = "ln -s"; then
4845   { $as_echo "$as_me:$LINENO: result: yes" >&5
4846 $as_echo "yes" >&6; }
4847 else
4848   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4849 $as_echo "no, using $LN_S" >&6; }
4850 fi
4851
4852 # find the maximum length of command line arguments
4853 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4854 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4855 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4856   $as_echo_n "(cached) " >&6
4857 else
4858     i=0
4859   teststring="ABCD"
4860
4861   case $build_os in
4862   msdosdjgpp*)
4863     # On DJGPP, this test can blow up pretty badly due to problems in libc
4864     # (any single argument exceeding 2000 bytes causes a buffer overrun
4865     # during glob expansion).  Even if it were fixed, the result of this
4866     # check would be larger than it should be.
4867     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4868     ;;
4869
4870   gnu*)
4871     # Under GNU Hurd, this test is not required because there is
4872     # no limit to the length of command line arguments.
4873     # Libtool will interpret -1 as no limit whatsoever
4874     lt_cv_sys_max_cmd_len=-1;
4875     ;;
4876
4877   cygwin* | mingw* | cegcc*)
4878     # On Win9x/ME, this test blows up -- it succeeds, but takes
4879     # about 5 minutes as the teststring grows exponentially.
4880     # Worse, since 9x/ME are not pre-emptively multitasking,
4881     # you end up with a "frozen" computer, even though with patience
4882     # the test eventually succeeds (with a max line length of 256k).
4883     # Instead, let's just punt: use the minimum linelength reported by
4884     # all of the supported platforms: 8192 (on NT/2K/XP).
4885     lt_cv_sys_max_cmd_len=8192;
4886     ;;
4887
4888   amigaos*)
4889     # On AmigaOS with pdksh, this test takes hours, literally.
4890     # So we just punt and use a minimum line length of 8192.
4891     lt_cv_sys_max_cmd_len=8192;
4892     ;;
4893
4894   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4895     # This has been around since 386BSD, at least.  Likely further.
4896     if test -x /sbin/sysctl; then
4897       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4898     elif test -x /usr/sbin/sysctl; then
4899       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4900     else
4901       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4902     fi
4903     # And add a safety zone
4904     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4906     ;;
4907
4908   interix*)
4909     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4910     lt_cv_sys_max_cmd_len=196608
4911     ;;
4912
4913   osf*)
4914     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4915     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4916     # nice to cause kernel panics so lets avoid the loop below.
4917     # First set a reasonable default.
4918     lt_cv_sys_max_cmd_len=16384
4919     #
4920     if test -x /sbin/sysconfig; then
4921       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4922         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4923       esac
4924     fi
4925     ;;
4926   sco3.2v5*)
4927     lt_cv_sys_max_cmd_len=102400
4928     ;;
4929   sysv5* | sco5v6* | sysv4.2uw2*)
4930     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4931     if test -n "$kargmax"; then
4932       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4933     else
4934       lt_cv_sys_max_cmd_len=32768
4935     fi
4936     ;;
4937   *)
4938     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4939     if test -n "$lt_cv_sys_max_cmd_len"; then
4940       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4941       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4942     else
4943       # Make teststring a little bigger before we do anything with it.
4944       # a 1K string should be a reasonable start.
4945       for i in 1 2 3 4 5 6 7 8 ; do
4946         teststring=$teststring$teststring
4947       done
4948       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4949       # If test is not a shell built-in, we'll probably end up computing a
4950       # maximum length that is only half of the actual maximum length, but
4951       # we can't tell.
4952       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4953                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4954               test $i != 17 # 1/2 MB should be enough
4955       do
4956         i=`expr $i + 1`
4957         teststring=$teststring$teststring
4958       done
4959       # Only check the string length outside the loop.
4960       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4961       teststring=
4962       # Add a significant safety factor because C++ compilers can tack on
4963       # massive amounts of additional arguments before passing them to the
4964       # linker.  It appears as though 1/2 is a usable value.
4965       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4966     fi
4967     ;;
4968   esac
4969
4970 fi
4971
4972 if test -n $lt_cv_sys_max_cmd_len ; then
4973   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4974 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4975 else
4976   { $as_echo "$as_me:$LINENO: result: none" >&5
4977 $as_echo "none" >&6; }
4978 fi
4979 max_cmd_len=$lt_cv_sys_max_cmd_len
4980
4981
4982
4983
4984
4985
4986 : ${CP="cp -f"}
4987 : ${MV="mv -f"}
4988 : ${RM="rm -f"}
4989
4990 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4991 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4992 # Try some XSI features
4993 xsi_shell=no
4994 ( _lt_dummy="a/b/c"
4995   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4996       = c,a/b,, \
4997     && eval 'test $(( 1 + 1 )) -eq 2 \
4998     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4999   && xsi_shell=yes
5000 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5001 $as_echo "$xsi_shell" >&6; }
5002
5003
5004 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5005 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5006 lt_shell_append=no
5007 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5008     >/dev/null 2>&1 \
5009   && lt_shell_append=yes
5010 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5011 $as_echo "$lt_shell_append" >&6; }
5012
5013
5014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5015   lt_unset=unset
5016 else
5017   lt_unset=false
5018 fi
5019
5020
5021
5022
5023
5024 # test EBCDIC or ASCII
5025 case `echo X|tr X '\101'` in
5026  A) # ASCII based system
5027     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5028   lt_SP2NL='tr \040 \012'
5029   lt_NL2SP='tr \015\012 \040\040'
5030   ;;
5031  *) # EBCDIC based system
5032   lt_SP2NL='tr \100 \n'
5033   lt_NL2SP='tr \r\n \100\100'
5034   ;;
5035 esac
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5046 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5047 if test "${lt_cv_ld_reload_flag+set}" = set; then
5048   $as_echo_n "(cached) " >&6
5049 else
5050   lt_cv_ld_reload_flag='-r'
5051 fi
5052 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5053 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5054 reload_flag=$lt_cv_ld_reload_flag
5055 case $reload_flag in
5056 "" | " "*) ;;
5057 *) reload_flag=" $reload_flag" ;;
5058 esac
5059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5060 case $host_os in
5061   darwin*)
5062     if test "$GCC" = yes; then
5063       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5064     else
5065       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5066     fi
5067     ;;
5068 esac
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 if test -n "$ac_tool_prefix"; then
5079   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5084   $as_echo_n "(cached) " >&6
5085 else
5086   if test -n "$OBJDUMP"; then
5087   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094   for ac_exec_ext in '' $ac_executable_extensions; do
5095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5097     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 OBJDUMP=$ac_cv_prog_OBJDUMP
5107 if test -n "$OBJDUMP"; then
5108   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5109 $as_echo "$OBJDUMP" >&6; }
5110 else
5111   { $as_echo "$as_me:$LINENO: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116 fi
5117 if test -z "$ac_cv_prog_OBJDUMP"; then
5118   ac_ct_OBJDUMP=$OBJDUMP
5119   # Extract the first word of "objdump", so it can be a program name with args.
5120 set dummy objdump; ac_word=$2
5121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test -n "$ac_ct_OBJDUMP"; then
5127   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for ac_exec_ext in '' $ac_executable_extensions; do
5135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5137     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5147 if test -n "$ac_ct_OBJDUMP"; then
5148   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5149 $as_echo "$ac_ct_OBJDUMP" >&6; }
5150 else
5151   { $as_echo "$as_me:$LINENO: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155   if test "x$ac_ct_OBJDUMP" = x; then
5156     OBJDUMP="false"
5157   else
5158     case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164     OBJDUMP=$ac_ct_OBJDUMP
5165   fi
5166 else
5167   OBJDUMP="$ac_cv_prog_OBJDUMP"
5168 fi
5169
5170 test -z "$OBJDUMP" && OBJDUMP=objdump
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5181 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5182 if test "${lt_cv_deplibs_check_method+set}" = set; then
5183   $as_echo_n "(cached) " >&6
5184 else
5185   lt_cv_file_magic_cmd='$MAGIC_CMD'
5186 lt_cv_file_magic_test_file=
5187 lt_cv_deplibs_check_method='unknown'
5188 # Need to set the preceding variable on all platforms that support
5189 # interlibrary dependencies.
5190 # 'none' -- dependencies not supported.
5191 # `unknown' -- same as none, but documents that we really don't know.
5192 # 'pass_all' -- all dependencies passed with no checks.
5193 # 'test_compile' -- check by making test program.
5194 # 'file_magic [[regex]]' -- check by looking for files in library path
5195 # which responds to the $file_magic_cmd with a given extended regex.
5196 # If you have `file' or equivalent on your system and you're not sure
5197 # whether `pass_all' will *always* work, you probably want this one.
5198
5199 case $host_os in
5200 aix[4-9]*)
5201   lt_cv_deplibs_check_method=pass_all
5202   ;;
5203
5204 beos*)
5205   lt_cv_deplibs_check_method=pass_all
5206   ;;
5207
5208 bsdi[45]*)
5209   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5210   lt_cv_file_magic_cmd='/usr/bin/file -L'
5211   lt_cv_file_magic_test_file=/shlib/libc.so
5212   ;;
5213
5214 cygwin*)
5215   # func_win32_libid is a shell function defined in ltmain.sh
5216   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5217   lt_cv_file_magic_cmd='func_win32_libid'
5218   ;;
5219
5220 mingw* | pw32*)
5221   # Base MSYS/MinGW do not provide the 'file' command needed by
5222   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5223   # unless we find 'file', for example because we are cross-compiling.
5224   if ( file / ) >/dev/null 2>&1; then
5225     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5226     lt_cv_file_magic_cmd='func_win32_libid'
5227   else
5228     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5229     lt_cv_file_magic_cmd='$OBJDUMP -f'
5230   fi
5231   ;;
5232
5233 cegcc)
5234   # use the weaker test based on 'objdump'. See mingw*.
5235   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5236   lt_cv_file_magic_cmd='$OBJDUMP -f'
5237   ;;
5238
5239 darwin* | rhapsody*)
5240   lt_cv_deplibs_check_method=pass_all
5241   ;;
5242
5243 freebsd* | dragonfly*)
5244   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5245     case $host_cpu in
5246     i*86 )
5247       # Not sure whether the presence of OpenBSD here was a mistake.
5248       # Let's accept both of them until this is cleared up.
5249       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5250       lt_cv_file_magic_cmd=/usr/bin/file
5251       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5252       ;;
5253     esac
5254   else
5255     lt_cv_deplibs_check_method=pass_all
5256   fi
5257   ;;
5258
5259 gnu*)
5260   lt_cv_deplibs_check_method=pass_all
5261   ;;
5262
5263 hpux10.20* | hpux11*)
5264   lt_cv_file_magic_cmd=/usr/bin/file
5265   case $host_cpu in
5266   ia64*)
5267     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5268     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5269     ;;
5270   hppa*64*)
5271     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]'
5272     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5273     ;;
5274   *)
5275     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5276     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5277     ;;
5278   esac
5279   ;;
5280
5281 interix[3-9]*)
5282   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5283   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5284   ;;
5285
5286 irix5* | irix6* | nonstopux*)
5287   case $LD in
5288   *-32|*"-32 ") libmagic=32-bit;;
5289   *-n32|*"-n32 ") libmagic=N32;;
5290   *-64|*"-64 ") libmagic=64-bit;;
5291   *) libmagic=never-match;;
5292   esac
5293   lt_cv_deplibs_check_method=pass_all
5294   ;;
5295
5296 # This must be Linux ELF.
5297 linux* | k*bsd*-gnu)
5298   lt_cv_deplibs_check_method=pass_all
5299   ;;
5300
5301 netbsd*)
5302   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5303     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5304   else
5305     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5306   fi
5307   ;;
5308
5309 newos6*)
5310   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5311   lt_cv_file_magic_cmd=/usr/bin/file
5312   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5313   ;;
5314
5315 *nto* | *qnx*)
5316   lt_cv_deplibs_check_method=pass_all
5317   ;;
5318
5319 openbsd*)
5320   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5321     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5322   else
5323     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5324   fi
5325   ;;
5326
5327 osf3* | osf4* | osf5*)
5328   lt_cv_deplibs_check_method=pass_all
5329   ;;
5330
5331 rdos*)
5332   lt_cv_deplibs_check_method=pass_all
5333   ;;
5334
5335 solaris*)
5336   lt_cv_deplibs_check_method=pass_all
5337   ;;
5338
5339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5340   lt_cv_deplibs_check_method=pass_all
5341   ;;
5342
5343 sysv4 | sysv4.3*)
5344   case $host_vendor in
5345   motorola)
5346     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]'
5347     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5348     ;;
5349   ncr)
5350     lt_cv_deplibs_check_method=pass_all
5351     ;;
5352   sequent)
5353     lt_cv_file_magic_cmd='/bin/file'
5354     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5355     ;;
5356   sni)
5357     lt_cv_file_magic_cmd='/bin/file'
5358     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5359     lt_cv_file_magic_test_file=/lib/libc.so
5360     ;;
5361   siemens)
5362     lt_cv_deplibs_check_method=pass_all
5363     ;;
5364   pc)
5365     lt_cv_deplibs_check_method=pass_all
5366     ;;
5367   esac
5368   ;;
5369
5370 tpf*)
5371   lt_cv_deplibs_check_method=pass_all
5372   ;;
5373 esac
5374
5375 fi
5376 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5377 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5378 file_magic_cmd=$lt_cv_file_magic_cmd
5379 deplibs_check_method=$lt_cv_deplibs_check_method
5380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 if test -n "$ac_tool_prefix"; then
5394   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}ar; ac_word=$2
5396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_AR+set}" = set; then
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$AR"; then
5402   ac_cv_prog_AR="$AR" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409   for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_prog_AR="${ac_tool_prefix}ar"
5412     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 AR=$ac_cv_prog_AR
5422 if test -n "$AR"; then
5423   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5424 $as_echo "$AR" >&6; }
5425 else
5426   { $as_echo "$as_me:$LINENO: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 fi
5432 if test -z "$ac_cv_prog_AR"; then
5433   ac_ct_AR=$AR
5434   # Extract the first word of "ar", so it can be a program name with args.
5435 set dummy ar; ac_word=$2
5436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5439   $as_echo_n "(cached) " >&6
5440 else
5441   if test -n "$ac_ct_AR"; then
5442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449   for ac_exec_ext in '' $ac_executable_extensions; do
5450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451     ac_cv_prog_ac_ct_AR="ar"
5452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5462 if test -n "$ac_ct_AR"; then
5463   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5464 $as_echo "$ac_ct_AR" >&6; }
5465 else
5466   { $as_echo "$as_me:$LINENO: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470   if test "x$ac_ct_AR" = x; then
5471     AR="false"
5472   else
5473     case $cross_compiling:$ac_tool_warned in
5474 yes:)
5475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned=yes ;;
5478 esac
5479     AR=$ac_ct_AR
5480   fi
5481 else
5482   AR="$ac_cv_prog_AR"
5483 fi
5484
5485 test -z "$AR" && AR=ar
5486 test -z "$AR_FLAGS" && AR_FLAGS=cru
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 if test -n "$ac_tool_prefix"; then
5499   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}strip; ac_word=$2
5501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if test "${ac_cv_prog_STRIP+set}" = set; then
5504   $as_echo_n "(cached) " >&6
5505 else
5506   if test -n "$STRIP"; then
5507   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 STRIP=$ac_cv_prog_STRIP
5527 if test -n "$STRIP"; then
5528   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5529 $as_echo "$STRIP" >&6; }
5530 else
5531   { $as_echo "$as_me:$LINENO: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535
5536 fi
5537 if test -z "$ac_cv_prog_STRIP"; then
5538   ac_ct_STRIP=$STRIP
5539   # Extract the first word of "strip", so it can be a program name with args.
5540 set dummy strip; ac_word=$2
5541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5544   $as_echo_n "(cached) " >&6
5545 else
5546   if test -n "$ac_ct_STRIP"; then
5547   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556     ac_cv_prog_ac_ct_STRIP="strip"
5557     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5567 if test -n "$ac_ct_STRIP"; then
5568   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5569 $as_echo "$ac_ct_STRIP" >&6; }
5570 else
5571   { $as_echo "$as_me:$LINENO: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575   if test "x$ac_ct_STRIP" = x; then
5576     STRIP=":"
5577   else
5578     case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584     STRIP=$ac_ct_STRIP
5585   fi
5586 else
5587   STRIP="$ac_cv_prog_STRIP"
5588 fi
5589
5590 test -z "$STRIP" && STRIP=:
5591
5592
5593
5594
5595
5596
5597 if test -n "$ac_tool_prefix"; then
5598   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_RANLIB+set}" = set; then
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$RANLIB"; then
5606   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613   for ac_exec_ext in '' $ac_executable_extensions; do
5614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 RANLIB=$ac_cv_prog_RANLIB
5626 if test -n "$RANLIB"; then
5627   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5628 $as_echo "$RANLIB" >&6; }
5629 else
5630   { $as_echo "$as_me:$LINENO: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 fi
5636 if test -z "$ac_cv_prog_RANLIB"; then
5637   ac_ct_RANLIB=$RANLIB
5638   # Extract the first word of "ranlib", so it can be a program name with args.
5639 set dummy ranlib; ac_word=$2
5640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if test -n "$ac_ct_RANLIB"; then
5646   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653   for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_prog_ac_ct_RANLIB="ranlib"
5656     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5666 if test -n "$ac_ct_RANLIB"; then
5667   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5668 $as_echo "$ac_ct_RANLIB" >&6; }
5669 else
5670   { $as_echo "$as_me:$LINENO: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674   if test "x$ac_ct_RANLIB" = x; then
5675     RANLIB=":"
5676   else
5677     case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683     RANLIB=$ac_ct_RANLIB
5684   fi
5685 else
5686   RANLIB="$ac_cv_prog_RANLIB"
5687 fi
5688
5689 test -z "$RANLIB" && RANLIB=:
5690
5691
5692
5693
5694
5695
5696 # Determine commands to create old-style static archives.
5697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5698 old_postinstall_cmds='chmod 644 $oldlib'
5699 old_postuninstall_cmds=
5700
5701 if test -n "$RANLIB"; then
5702   case $host_os in
5703   openbsd*)
5704     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5705     ;;
5706   *)
5707     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5708     ;;
5709   esac
5710   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5711 fi
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746 # If no C compiler was specified, use CC.
5747 LTCC=${LTCC-"$CC"}
5748
5749 # If no C compiler flags were specified, use CFLAGS.
5750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5751
5752 # Allow CC to be a program name with arguments.
5753 compiler=$CC
5754
5755
5756 # Check for command to grab the raw symbol name followed by C symbol from nm.
5757 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5758 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5759 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5760   $as_echo_n "(cached) " >&6
5761 else
5762
5763 # These are sane defaults that work on at least a few old systems.
5764 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5765
5766 # Character class describing NM global symbol codes.
5767 symcode='[BCDEGRST]'
5768
5769 # Regexp to match symbols that can be accessed directly from C.
5770 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5771
5772 # Define system-specific variables.
5773 case $host_os in
5774 aix*)
5775   symcode='[BCDT]'
5776   ;;
5777 cygwin* | mingw* | pw32* | cegcc*)
5778   symcode='[ABCDGISTW]'
5779   ;;
5780 hpux*)
5781   if test "$host_cpu" = ia64; then
5782     symcode='[ABCDEGRST]'
5783   fi
5784   ;;
5785 irix* | nonstopux*)
5786   symcode='[BCDEGRST]'
5787   ;;
5788 osf*)
5789   symcode='[BCDEGQRST]'
5790   ;;
5791 solaris*)
5792   symcode='[BDRT]'
5793   ;;
5794 sco3.2v5*)
5795   symcode='[DT]'
5796   ;;
5797 sysv4.2uw2*)
5798   symcode='[DT]'
5799   ;;
5800 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5801   symcode='[ABDT]'
5802   ;;
5803 sysv4)
5804   symcode='[DFNSTU]'
5805   ;;
5806 esac
5807
5808 # If we're using GNU nm, then use its standard symbol codes.
5809 case `$NM -V 2>&1` in
5810 *GNU* | *'with BFD'*)
5811   symcode='[ABCDGIRSTW]' ;;
5812 esac
5813
5814 # Transform an extracted symbol line into a proper C declaration.
5815 # Some systems (esp. on ia64) link data and code symbols differently,
5816 # so use this general approach.
5817 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5818
5819 # Transform an extracted symbol line into symbol name and symbol address
5820 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5821 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'"
5822
5823 # Handle CRLF in mingw tool chain
5824 opt_cr=
5825 case $build_os in
5826 mingw*)
5827   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5828   ;;
5829 esac
5830
5831 # Try without a prefix underscore, then with it.
5832 for ac_symprfx in "" "_"; do
5833
5834   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5835   symxfrm="\\1 $ac_symprfx\\2 \\2"
5836
5837   # Write the raw and C identifiers.
5838   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5839     # Fake it for dumpbin and say T for any non-static function
5840     # and D for any global variable.
5841     # Also find C++ and __fastcall symbols from MSVC++,
5842     # which start with @ or ?.
5843     lt_cv_sys_global_symbol_pipe="$AWK '"\
5844 "     {last_section=section; section=\$ 3};"\
5845 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5846 "     \$ 0!~/External *\|/{next};"\
5847 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5848 "     {if(hide[section]) next};"\
5849 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5850 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5851 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5852 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5853 "     ' prfx=^$ac_symprfx"
5854   else
5855     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5856   fi
5857
5858   # Check to see that the pipe works correctly.
5859   pipe_works=no
5860
5861   rm -f conftest*
5862   cat > conftest.$ac_ext <<_LT_EOF
5863 #ifdef __cplusplus
5864 extern "C" {
5865 #endif
5866 char nm_test_var;
5867 void nm_test_func(void);
5868 void nm_test_func(void){}
5869 #ifdef __cplusplus
5870 }
5871 #endif
5872 int main(){nm_test_var='a';nm_test_func();return(0);}
5873 _LT_EOF
5874
5875   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876   (eval $ac_compile) 2>&5
5877   ac_status=$?
5878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; then
5880     # Now try to grab the symbols.
5881     nlist=conftest.nm
5882     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5883   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5884   ac_status=$?
5885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); } && test -s "$nlist"; then
5887       # Try sorting and uniquifying the output.
5888       if sort "$nlist" | uniq > "$nlist"T; then
5889         mv -f "$nlist"T "$nlist"
5890       else
5891         rm -f "$nlist"T
5892       fi
5893
5894       # Make sure that we snagged all the symbols we need.
5895       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5896         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5897           cat <<_LT_EOF > conftest.$ac_ext
5898 #ifdef __cplusplus
5899 extern "C" {
5900 #endif
5901
5902 _LT_EOF
5903           # Now generate the symbol file.
5904           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5905
5906           cat <<_LT_EOF >> conftest.$ac_ext
5907
5908 /* The mapping between symbol names and symbols.  */
5909 const struct {
5910   const char *name;
5911   void       *address;
5912 }
5913 lt__PROGRAM__LTX_preloaded_symbols[] =
5914 {
5915   { "@PROGRAM@", (void *) 0 },
5916 _LT_EOF
5917           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5918           cat <<\_LT_EOF >> conftest.$ac_ext
5919   {0, (void *) 0}
5920 };
5921
5922 /* This works around a problem in FreeBSD linker */
5923 #ifdef FREEBSD_WORKAROUND
5924 static const void *lt_preloaded_setup() {
5925   return lt__PROGRAM__LTX_preloaded_symbols;
5926 }
5927 #endif
5928
5929 #ifdef __cplusplus
5930 }
5931 #endif
5932 _LT_EOF
5933           # Now try linking the two files.
5934           mv conftest.$ac_objext conftstm.$ac_objext
5935           lt_save_LIBS="$LIBS"
5936           lt_save_CFLAGS="$CFLAGS"
5937           LIBS="conftstm.$ac_objext"
5938           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5939           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940   (eval $ac_link) 2>&5
5941   ac_status=$?
5942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5944             pipe_works=yes
5945           fi
5946           LIBS="$lt_save_LIBS"
5947           CFLAGS="$lt_save_CFLAGS"
5948         else
5949           echo "cannot find nm_test_func in $nlist" >&5
5950         fi
5951       else
5952         echo "cannot find nm_test_var in $nlist" >&5
5953       fi
5954     else
5955       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5956     fi
5957   else
5958     echo "$progname: failed program was:" >&5
5959     cat conftest.$ac_ext >&5
5960   fi
5961   rm -rf conftest* conftst*
5962
5963   # Do not use the global_symbol_pipe unless it works.
5964   if test "$pipe_works" = yes; then
5965     break
5966   else
5967     lt_cv_sys_global_symbol_pipe=
5968   fi
5969 done
5970
5971 fi
5972
5973 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5974   lt_cv_sys_global_symbol_to_cdecl=
5975 fi
5976 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5977   { $as_echo "$as_me:$LINENO: result: failed" >&5
5978 $as_echo "failed" >&6; }
5979 else
5980   { $as_echo "$as_me:$LINENO: result: ok" >&5
5981 $as_echo "ok" >&6; }
5982 fi
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006 # Check whether --enable-libtool-lock was given.
6007 if test "${enable_libtool_lock+set}" = set; then
6008   enableval=$enable_libtool_lock;
6009 fi
6010
6011 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6012
6013 # Some flags need to be propagated to the compiler or linker for good
6014 # libtool support.
6015 case $host in
6016 ia64-*-hpux*)
6017   # Find out which ABI we are using.
6018   echo 'int i;' > conftest.$ac_ext
6019   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020   (eval $ac_compile) 2>&5
6021   ac_status=$?
6022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; then
6024     case `/usr/bin/file conftest.$ac_objext` in
6025       *ELF-32*)
6026         HPUX_IA64_MODE="32"
6027         ;;
6028       *ELF-64*)
6029         HPUX_IA64_MODE="64"
6030         ;;
6031     esac
6032   fi
6033   rm -rf conftest*
6034   ;;
6035 *-*-irix6*)
6036   # Find out which ABI we are using.
6037   echo '#line 6037 "configure"' > conftest.$ac_ext
6038   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039   (eval $ac_compile) 2>&5
6040   ac_status=$?
6041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; then
6043     if test "$lt_cv_prog_gnu_ld" = yes; then
6044       case `/usr/bin/file conftest.$ac_objext` in
6045         *32-bit*)
6046           LD="${LD-ld} -melf32bsmip"
6047           ;;
6048         *N32*)
6049           LD="${LD-ld} -melf32bmipn32"
6050           ;;
6051         *64-bit*)
6052           LD="${LD-ld} -melf64bmip"
6053         ;;
6054       esac
6055     else
6056       case `/usr/bin/file conftest.$ac_objext` in
6057         *32-bit*)
6058           LD="${LD-ld} -32"
6059           ;;
6060         *N32*)
6061           LD="${LD-ld} -n32"
6062           ;;
6063         *64-bit*)
6064           LD="${LD-ld} -64"
6065           ;;
6066       esac
6067     fi
6068   fi
6069   rm -rf conftest*
6070   ;;
6071
6072 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6073 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6074   # Find out which ABI we are using.
6075   echo 'int i;' > conftest.$ac_ext
6076   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077   (eval $ac_compile) 2>&5
6078   ac_status=$?
6079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; then
6081     case `/usr/bin/file conftest.o` in
6082       *32-bit*)
6083         case $host in
6084           x86_64-*kfreebsd*-gnu)
6085             LD="${LD-ld} -m elf_i386_fbsd"
6086             ;;
6087           x86_64-*linux*)
6088             LD="${LD-ld} -m elf_i386"
6089             ;;
6090           ppc64-*linux*|powerpc64-*linux*)
6091             LD="${LD-ld} -m elf32ppclinux"
6092             ;;
6093           s390x-*linux*)
6094             LD="${LD-ld} -m elf_s390"
6095             ;;
6096           sparc64-*linux*)
6097             LD="${LD-ld} -m elf32_sparc"
6098             ;;
6099         esac
6100         ;;
6101       *64-bit*)
6102         case $host in
6103           x86_64-*kfreebsd*-gnu)
6104             LD="${LD-ld} -m elf_x86_64_fbsd"
6105             ;;
6106           x86_64-*linux*)
6107             LD="${LD-ld} -m elf_x86_64"
6108             ;;
6109           ppc*-*linux*|powerpc*-*linux*)
6110             LD="${LD-ld} -m elf64ppc"
6111             ;;
6112           s390*-*linux*|s390*-*tpf*)
6113             LD="${LD-ld} -m elf64_s390"
6114             ;;
6115           sparc*-*linux*)
6116             LD="${LD-ld} -m elf64_sparc"
6117             ;;
6118         esac
6119         ;;
6120     esac
6121   fi
6122   rm -rf conftest*
6123   ;;
6124
6125 *-*-sco3.2v5*)
6126   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6127   SAVE_CFLAGS="$CFLAGS"
6128   CFLAGS="$CFLAGS -belf"
6129   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6130 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6131 if test "${lt_cv_cc_needs_belf+set}" = set; then
6132   $as_echo_n "(cached) " >&6
6133 else
6134   ac_ext=c
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140      cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146
6147 int
6148 main ()
6149 {
6150
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (ac_try="$ac_link"
6157 case "(($ac_try" in
6158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159   *) ac_try_echo=$ac_try;;
6160 esac
6161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6162 $as_echo "$ac_try_echo") >&5
6163   (eval "$ac_link") 2>conftest.er1
6164   ac_status=$?
6165   grep -v '^ *+' conftest.er1 >conftest.err
6166   rm -f conftest.er1
6167   cat conftest.err >&5
6168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); } && {
6170          test -z "$ac_c_werror_flag" ||
6171          test ! -s conftest.err
6172        } && test -s conftest$ac_exeext && {
6173          test "$cross_compiling" = yes ||
6174          $as_test_x conftest$ac_exeext
6175        }; then
6176   lt_cv_cc_needs_belf=yes
6177 else
6178   $as_echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181         lt_cv_cc_needs_belf=no
6182 fi
6183
6184 rm -rf conftest.dSYM
6185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6186       conftest$ac_exeext conftest.$ac_ext
6187      ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193 fi
6194 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6195 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6196   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6197     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6198     CFLAGS="$SAVE_CFLAGS"
6199   fi
6200   ;;
6201 sparc*-*solaris*)
6202   # Find out which ABI we are using.
6203   echo 'int i;' > conftest.$ac_ext
6204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205   (eval $ac_compile) 2>&5
6206   ac_status=$?
6207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; then
6209     case `/usr/bin/file conftest.o` in
6210     *64-bit*)
6211       case $lt_cv_prog_gnu_ld in
6212       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6213       *)
6214         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6215           LD="${LD-ld} -64"
6216         fi
6217         ;;
6218       esac
6219       ;;
6220     esac
6221   fi
6222   rm -rf conftest*
6223   ;;
6224 esac
6225
6226 need_locks="$enable_libtool_lock"
6227
6228
6229   case $host_os in
6230     rhapsody* | darwin*)
6231     if test -n "$ac_tool_prefix"; then
6232   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6237   $as_echo_n "(cached) " >&6
6238 else
6239   if test -n "$DSYMUTIL"; then
6240   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6250     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6260 if test -n "$DSYMUTIL"; then
6261   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6262 $as_echo "$DSYMUTIL" >&6; }
6263 else
6264   { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268
6269 fi
6270 if test -z "$ac_cv_prog_DSYMUTIL"; then
6271   ac_ct_DSYMUTIL=$DSYMUTIL
6272   # Extract the first word of "dsymutil", so it can be a program name with args.
6273 set dummy dsymutil; ac_word=$2
6274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6277   $as_echo_n "(cached) " >&6
6278 else
6279   if test -n "$ac_ct_DSYMUTIL"; then
6280   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6290     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6300 if test -n "$ac_ct_DSYMUTIL"; then
6301   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6302 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6303 else
6304   { $as_echo "$as_me:$LINENO: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308   if test "x$ac_ct_DSYMUTIL" = x; then
6309     DSYMUTIL=":"
6310   else
6311     case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317     DSYMUTIL=$ac_ct_DSYMUTIL
6318   fi
6319 else
6320   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6321 fi
6322
6323     if test -n "$ac_tool_prefix"; then
6324   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6325 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if test -n "$NMEDIT"; then
6332   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339   for ac_exec_ext in '' $ac_executable_extensions; do
6340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6342     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 NMEDIT=$ac_cv_prog_NMEDIT
6352 if test -n "$NMEDIT"; then
6353   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6354 $as_echo "$NMEDIT" >&6; }
6355 else
6356   { $as_echo "$as_me:$LINENO: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360
6361 fi
6362 if test -z "$ac_cv_prog_NMEDIT"; then
6363   ac_ct_NMEDIT=$NMEDIT
6364   # Extract the first word of "nmedit", so it can be a program name with args.
6365 set dummy nmedit; ac_word=$2
6366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6369   $as_echo_n "(cached) " >&6
6370 else
6371   if test -n "$ac_ct_NMEDIT"; then
6372   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   test -z "$as_dir" && as_dir=.
6379   for ac_exec_ext in '' $ac_executable_extensions; do
6380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6382     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384   fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6392 if test -n "$ac_ct_NMEDIT"; then
6393   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6394 $as_echo "$ac_ct_NMEDIT" >&6; }
6395 else
6396   { $as_echo "$as_me:$LINENO: result: no" >&5
6397 $as_echo "no" >&6; }
6398 fi
6399
6400   if test "x$ac_ct_NMEDIT" = x; then
6401     NMEDIT=":"
6402   else
6403     case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409     NMEDIT=$ac_ct_NMEDIT
6410   fi
6411 else
6412   NMEDIT="$ac_cv_prog_NMEDIT"
6413 fi
6414
6415     if test -n "$ac_tool_prefix"; then
6416   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if test "${ac_cv_prog_LIPO+set}" = set; then
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$LIPO"; then
6424   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431   for ac_exec_ext in '' $ac_executable_extensions; do
6432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6434     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 LIPO=$ac_cv_prog_LIPO
6444 if test -n "$LIPO"; then
6445   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6446 $as_echo "$LIPO" >&6; }
6447 else
6448   { $as_echo "$as_me:$LINENO: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452
6453 fi
6454 if test -z "$ac_cv_prog_LIPO"; then
6455   ac_ct_LIPO=$LIPO
6456   # Extract the first word of "lipo", so it can be a program name with args.
6457 set dummy lipo; ac_word=$2
6458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6461   $as_echo_n "(cached) " >&6
6462 else
6463   if test -n "$ac_ct_LIPO"; then
6464   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471   for ac_exec_ext in '' $ac_executable_extensions; do
6472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473     ac_cv_prog_ac_ct_LIPO="lipo"
6474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6484 if test -n "$ac_ct_LIPO"; then
6485   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6486 $as_echo "$ac_ct_LIPO" >&6; }
6487 else
6488   { $as_echo "$as_me:$LINENO: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492   if test "x$ac_ct_LIPO" = x; then
6493     LIPO=":"
6494   else
6495     case $cross_compiling:$ac_tool_warned in
6496 yes:)
6497 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6500 esac
6501     LIPO=$ac_ct_LIPO
6502   fi
6503 else
6504   LIPO="$ac_cv_prog_LIPO"
6505 fi
6506
6507     if test -n "$ac_tool_prefix"; then
6508   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}otool; ac_word=$2
6510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_prog_OTOOL+set}" = set; then
6513   $as_echo_n "(cached) " >&6
6514 else
6515   if test -n "$OTOOL"; then
6516   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521   IFS=$as_save_IFS
6522   test -z "$as_dir" && as_dir=.
6523   for ac_exec_ext in '' $ac_executable_extensions; do
6524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6526     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527     break 2
6528   fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 OTOOL=$ac_cv_prog_OTOOL
6536 if test -n "$OTOOL"; then
6537   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6538 $as_echo "$OTOOL" >&6; }
6539 else
6540   { $as_echo "$as_me:$LINENO: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544
6545 fi
6546 if test -z "$ac_cv_prog_OTOOL"; then
6547   ac_ct_OTOOL=$OTOOL
6548   # Extract the first word of "otool", so it can be a program name with args.
6549 set dummy otool; ac_word=$2
6550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6553   $as_echo_n "(cached) " >&6
6554 else
6555   if test -n "$ac_ct_OTOOL"; then
6556   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563   for ac_exec_ext in '' $ac_executable_extensions; do
6564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565     ac_cv_prog_ac_ct_OTOOL="otool"
6566     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6576 if test -n "$ac_ct_OTOOL"; then
6577   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6578 $as_echo "$ac_ct_OTOOL" >&6; }
6579 else
6580   { $as_echo "$as_me:$LINENO: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584   if test "x$ac_ct_OTOOL" = x; then
6585     OTOOL=":"
6586   else
6587     case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593     OTOOL=$ac_ct_OTOOL
6594   fi
6595 else
6596   OTOOL="$ac_cv_prog_OTOOL"
6597 fi
6598
6599     if test -n "$ac_tool_prefix"; then
6600   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6605   $as_echo_n "(cached) " >&6
6606 else
6607   if test -n "$OTOOL64"; then
6608   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6618     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 OTOOL64=$ac_cv_prog_OTOOL64
6628 if test -n "$OTOOL64"; then
6629   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6630 $as_echo "$OTOOL64" >&6; }
6631 else
6632   { $as_echo "$as_me:$LINENO: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636
6637 fi
6638 if test -z "$ac_cv_prog_OTOOL64"; then
6639   ac_ct_OTOOL64=$OTOOL64
6640   # Extract the first word of "otool64", so it can be a program name with args.
6641 set dummy otool64; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6645   $as_echo_n "(cached) " >&6
6646 else
6647   if test -n "$ac_ct_OTOOL64"; then
6648   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_prog_ac_ct_OTOOL64="otool64"
6658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6668 if test -n "$ac_ct_OTOOL64"; then
6669   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6670 $as_echo "$ac_ct_OTOOL64" >&6; }
6671 else
6672   { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676   if test "x$ac_ct_OTOOL64" = x; then
6677     OTOOL64=":"
6678   else
6679     case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685     OTOOL64=$ac_ct_OTOOL64
6686   fi
6687 else
6688   OTOOL64="$ac_cv_prog_OTOOL64"
6689 fi
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6718 $as_echo_n "checking for -single_module linker flag... " >&6; }
6719 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6720   $as_echo_n "(cached) " >&6
6721 else
6722   lt_cv_apple_cc_single_mod=no
6723       if test -z "${LT_MULTI_MODULE}"; then
6724         # By default we will add the -single_module flag. You can override
6725         # by either setting the environment variable LT_MULTI_MODULE
6726         # non-empty at configure time, or by adding -multi_module to the
6727         # link flags.
6728         rm -rf libconftest.dylib*
6729         echo "int foo(void){return 1;}" > conftest.c
6730         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6731 -dynamiclib -Wl,-single_module conftest.c" >&5
6732         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6733           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6734         _lt_result=$?
6735         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6736           lt_cv_apple_cc_single_mod=yes
6737         else
6738           cat conftest.err >&5
6739         fi
6740         rm -rf libconftest.dylib*
6741         rm -f conftest.*
6742       fi
6743 fi
6744 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6745 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6746     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6747 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6748 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6749   $as_echo_n "(cached) " >&6
6750 else
6751   lt_cv_ld_exported_symbols_list=no
6752       save_LDFLAGS=$LDFLAGS
6753       echo "_main" > conftest.sym
6754       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6755       cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h.  */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h.  */
6761
6762 int
6763 main ()
6764 {
6765
6766   ;
6767   return 0;
6768 }
6769 _ACEOF
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (ac_try="$ac_link"
6772 case "(($ac_try" in
6773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774   *) ac_try_echo=$ac_try;;
6775 esac
6776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6777 $as_echo "$ac_try_echo") >&5
6778   (eval "$ac_link") 2>conftest.er1
6779   ac_status=$?
6780   grep -v '^ *+' conftest.er1 >conftest.err
6781   rm -f conftest.er1
6782   cat conftest.err >&5
6783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); } && {
6785          test -z "$ac_c_werror_flag" ||
6786          test ! -s conftest.err
6787        } && test -s conftest$ac_exeext && {
6788          test "$cross_compiling" = yes ||
6789          $as_test_x conftest$ac_exeext
6790        }; then
6791   lt_cv_ld_exported_symbols_list=yes
6792 else
6793   $as_echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796         lt_cv_ld_exported_symbols_list=no
6797 fi
6798
6799 rm -rf conftest.dSYM
6800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6801       conftest$ac_exeext conftest.$ac_ext
6802         LDFLAGS="$save_LDFLAGS"
6803
6804 fi
6805 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6806 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6807     case $host_os in
6808     rhapsody* | darwin1.[012])
6809       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6810     darwin1.*)
6811       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6812     darwin*) # darwin 5.x on
6813       # if running on 10.5 or later, the deployment target defaults
6814       # to the OS version, if on x86, and 10.4, the deployment
6815       # target defaults to 10.4. Don't you love it?
6816       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6817         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6818           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6819         10.[012]*)
6820           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6821         10.*)
6822           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6823       esac
6824     ;;
6825   esac
6826     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6827       _lt_dar_single_mod='$single_module'
6828     fi
6829     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6830       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6831     else
6832       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6833     fi
6834     if test "$DSYMUTIL" != ":"; then
6835       _lt_dsymutil='~$DSYMUTIL $lib || :'
6836     else
6837       _lt_dsymutil=
6838     fi
6839     ;;
6840   esac
6841
6842 ac_ext=c
6843 ac_cpp='$CPP $CPPFLAGS'
6844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6848 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6849 # On Suns, sometimes $CPP names a directory.
6850 if test -n "$CPP" && test -d "$CPP"; then
6851   CPP=
6852 fi
6853 if test -z "$CPP"; then
6854   if test "${ac_cv_prog_CPP+set}" = set; then
6855   $as_echo_n "(cached) " >&6
6856 else
6857       # Double quotes because CPP needs to be expanded
6858     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6859     do
6860       ac_preproc_ok=false
6861 for ac_c_preproc_warn_flag in '' yes
6862 do
6863   # Use a header file that comes with gcc, so configuring glibc
6864   # with a fresh cross-compiler works.
6865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6866   # <limits.h> exists even on freestanding compilers.
6867   # On the NeXT, cc -E runs the code through the compiler's parser,
6868   # not just through cpp. "Syntax error" is here to catch this case.
6869   cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875 #ifdef __STDC__
6876 # include <limits.h>
6877 #else
6878 # include <assert.h>
6879 #endif
6880                      Syntax error
6881 _ACEOF
6882 if { (ac_try="$ac_cpp conftest.$ac_ext"
6883 case "(($ac_try" in
6884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885   *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6890   ac_status=$?
6891   grep -v '^ *+' conftest.er1 >conftest.err
6892   rm -f conftest.er1
6893   cat conftest.err >&5
6894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } >/dev/null && {
6896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6897          test ! -s conftest.err
6898        }; then
6899   :
6900 else
6901   $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904   # Broken: fails on valid input.
6905 continue
6906 fi
6907
6908 rm -f conftest.err conftest.$ac_ext
6909
6910   # OK, works on sane cases.  Now check whether nonexistent headers
6911   # can be detected and how.
6912   cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h.  */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h.  */
6918 #include <ac_nonexistent.h>
6919 _ACEOF
6920 if { (ac_try="$ac_cpp conftest.$ac_ext"
6921 case "(($ac_try" in
6922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923   *) ac_try_echo=$ac_try;;
6924 esac
6925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6926 $as_echo "$ac_try_echo") >&5
6927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6928   ac_status=$?
6929   grep -v '^ *+' conftest.er1 >conftest.err
6930   rm -f conftest.er1
6931   cat conftest.err >&5
6932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); } >/dev/null && {
6934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6935          test ! -s conftest.err
6936        }; then
6937   # Broken: success on invalid input.
6938 continue
6939 else
6940   $as_echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943   # Passes both tests.
6944 ac_preproc_ok=:
6945 break
6946 fi
6947
6948 rm -f conftest.err conftest.$ac_ext
6949
6950 done
6951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6952 rm -f conftest.err conftest.$ac_ext
6953 if $ac_preproc_ok; then
6954   break
6955 fi
6956
6957     done
6958     ac_cv_prog_CPP=$CPP
6959
6960 fi
6961   CPP=$ac_cv_prog_CPP
6962 else
6963   ac_cv_prog_CPP=$CPP
6964 fi
6965 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6966 $as_echo "$CPP" >&6; }
6967 ac_preproc_ok=false
6968 for ac_c_preproc_warn_flag in '' yes
6969 do
6970   # Use a header file that comes with gcc, so configuring glibc
6971   # with a fresh cross-compiler works.
6972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6973   # <limits.h> exists even on freestanding compilers.
6974   # On the NeXT, cc -E runs the code through the compiler's parser,
6975   # not just through cpp. "Syntax error" is here to catch this case.
6976   cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h.  */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h.  */
6982 #ifdef __STDC__
6983 # include <limits.h>
6984 #else
6985 # include <assert.h>
6986 #endif
6987                      Syntax error
6988 _ACEOF
6989 if { (ac_try="$ac_cpp conftest.$ac_ext"
6990 case "(($ac_try" in
6991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992   *) ac_try_echo=$ac_try;;
6993 esac
6994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6995 $as_echo "$ac_try_echo") >&5
6996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6997   ac_status=$?
6998   grep -v '^ *+' conftest.er1 >conftest.err
6999   rm -f conftest.er1
7000   cat conftest.err >&5
7001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); } >/dev/null && {
7003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7004          test ! -s conftest.err
7005        }; then
7006   :
7007 else
7008   $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011   # Broken: fails on valid input.
7012 continue
7013 fi
7014
7015 rm -f conftest.err conftest.$ac_ext
7016
7017   # OK, works on sane cases.  Now check whether nonexistent headers
7018   # can be detected and how.
7019   cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h.  */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h.  */
7025 #include <ac_nonexistent.h>
7026 _ACEOF
7027 if { (ac_try="$ac_cpp conftest.$ac_ext"
7028 case "(($ac_try" in
7029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030   *) ac_try_echo=$ac_try;;
7031 esac
7032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7033 $as_echo "$ac_try_echo") >&5
7034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7035   ac_status=$?
7036   grep -v '^ *+' conftest.er1 >conftest.err
7037   rm -f conftest.er1
7038   cat conftest.err >&5
7039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } >/dev/null && {
7041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7042          test ! -s conftest.err
7043        }; then
7044   # Broken: success on invalid input.
7045 continue
7046 else
7047   $as_echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050   # Passes both tests.
7051 ac_preproc_ok=:
7052 break
7053 fi
7054
7055 rm -f conftest.err conftest.$ac_ext
7056
7057 done
7058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7059 rm -f conftest.err conftest.$ac_ext
7060 if $ac_preproc_ok; then
7061   :
7062 else
7063   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7065 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7066 See \`config.log' for more details." >&5
7067 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7068 See \`config.log' for more details." >&2;}
7069    { (exit 1); exit 1; }; }; }
7070 fi
7071
7072 ac_ext=c
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077
7078
7079 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7080 $as_echo_n "checking for ANSI C header files... " >&6; }
7081 if test "${ac_cv_header_stdc+set}" = set; then
7082   $as_echo_n "(cached) " >&6
7083 else
7084   cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 #include <stdlib.h>
7091 #include <stdarg.h>
7092 #include <string.h>
7093 #include <float.h>
7094
7095 int
7096 main ()
7097 {
7098
7099   ;
7100   return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7105 case "(($ac_try" in
7106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107   *) ac_try_echo=$ac_try;;
7108 esac
7109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7110 $as_echo "$ac_try_echo") >&5
7111   (eval "$ac_compile") 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } && {
7118          test -z "$ac_c_werror_flag" ||
7119          test ! -s conftest.err
7120        } && test -s conftest.$ac_objext; then
7121   ac_cv_header_stdc=yes
7122 else
7123   $as_echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126         ac_cv_header_stdc=no
7127 fi
7128
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130
7131 if test $ac_cv_header_stdc = yes; then
7132   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7133   cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h.  */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h.  */
7139 #include <string.h>
7140
7141 _ACEOF
7142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7143   $EGREP "memchr" >/dev/null 2>&1; then
7144   :
7145 else
7146   ac_cv_header_stdc=no
7147 fi
7148 rm -f conftest*
7149
7150 fi
7151
7152 if test $ac_cv_header_stdc = yes; then
7153   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7154   cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 #include <stdlib.h>
7161
7162 _ACEOF
7163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164   $EGREP "free" >/dev/null 2>&1; then
7165   :
7166 else
7167   ac_cv_header_stdc=no
7168 fi
7169 rm -f conftest*
7170
7171 fi
7172
7173 if test $ac_cv_header_stdc = yes; then
7174   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7175   if test "$cross_compiling" = yes; then
7176   :
7177 else
7178   cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h.  */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h.  */
7184 #include <ctype.h>
7185 #include <stdlib.h>
7186 #if ((' ' & 0x0FF) == 0x020)
7187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7189 #else
7190 # define ISLOWER(c) \
7191                    (('a' <= (c) && (c) <= 'i') \
7192                      || ('j' <= (c) && (c) <= 'r') \
7193                      || ('s' <= (c) && (c) <= 'z'))
7194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7195 #endif
7196
7197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7198 int
7199 main ()
7200 {
7201   int i;
7202   for (i = 0; i < 256; i++)
7203     if (XOR (islower (i), ISLOWER (i))
7204         || toupper (i) != TOUPPER (i))
7205       return 2;
7206   return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest$ac_exeext
7210 if { (ac_try="$ac_link"
7211 case "(($ac_try" in
7212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213   *) ac_try_echo=$ac_try;;
7214 esac
7215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7216 $as_echo "$ac_try_echo") >&5
7217   (eval "$ac_link") 2>&5
7218   ac_status=$?
7219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7221   { (case "(($ac_try" in
7222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223   *) ac_try_echo=$ac_try;;
7224 esac
7225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226 $as_echo "$ac_try_echo") >&5
7227   (eval "$ac_try") 2>&5
7228   ac_status=$?
7229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }; }; then
7231   :
7232 else
7233   $as_echo "$as_me: program exited with status $ac_status" >&5
7234 $as_echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 ( exit $ac_status )
7238 ac_cv_header_stdc=no
7239 fi
7240 rm -rf conftest.dSYM
7241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7242 fi
7243
7244
7245 fi
7246 fi
7247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7248 $as_echo "$ac_cv_header_stdc" >&6; }
7249 if test $ac_cv_header_stdc = yes; then
7250
7251 cat >>confdefs.h <<\_ACEOF
7252 #define STDC_HEADERS 1
7253 _ACEOF
7254
7255 fi
7256
7257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7268                   inttypes.h stdint.h unistd.h
7269 do
7270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 $as_echo_n "checking for $ac_header... " >&6; }
7273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7274   $as_echo_n "(cached) " >&6
7275 else
7276   cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282 $ac_includes_default
7283
7284 #include <$ac_header>
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (ac_try="$ac_compile"
7288 case "(($ac_try" in
7289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290   *) ac_try_echo=$ac_try;;
7291 esac
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294   (eval "$ac_compile") 2>conftest.er1
7295   ac_status=$?
7296   grep -v '^ *+' conftest.er1 >conftest.err
7297   rm -f conftest.er1
7298   cat conftest.err >&5
7299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); } && {
7301          test -z "$ac_c_werror_flag" ||
7302          test ! -s conftest.err
7303        } && test -s conftest.$ac_objext; then
7304   eval "$as_ac_Header=yes"
7305 else
7306   $as_echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309         eval "$as_ac_Header=no"
7310 fi
7311
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 fi
7314 ac_res=`eval 'as_val=${'$as_ac_Header'}
7315                  $as_echo "$as_val"'`
7316                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7317 $as_echo "$ac_res" >&6; }
7318 as_val=`eval 'as_val=${'$as_ac_Header'}
7319                  $as_echo "$as_val"'`
7320    if test "x$as_val" = x""yes; then
7321   cat >>confdefs.h <<_ACEOF
7322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7323 _ACEOF
7324
7325 fi
7326
7327 done
7328
7329
7330
7331 for ac_header in dlfcn.h
7332 do
7333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7335 $as_echo_n "checking for $ac_header... " >&6; }
7336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7337   $as_echo_n "(cached) " >&6
7338 else
7339   cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345 $ac_includes_default
7346
7347 #include <$ac_header>
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7351 case "(($ac_try" in
7352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353   *) ac_try_echo=$ac_try;;
7354 esac
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357   (eval "$ac_compile") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest.$ac_objext; then
7367   eval "$as_ac_Header=yes"
7368 else
7369   $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372         eval "$as_ac_Header=no"
7373 fi
7374
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 fi
7377 ac_res=`eval 'as_val=${'$as_ac_Header'}
7378                  $as_echo "$as_val"'`
7379                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7380 $as_echo "$ac_res" >&6; }
7381 as_val=`eval 'as_val=${'$as_ac_Header'}
7382                  $as_echo "$as_val"'`
7383    if test "x$as_val" = x""yes; then
7384   cat >>confdefs.h <<_ACEOF
7385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7386 _ACEOF
7387
7388 fi
7389
7390 done
7391
7392
7393
7394 # Set options
7395
7396
7397
7398         enable_dlopen=no
7399
7400
7401   enable_win32_dll=no
7402
7403
7404             # Check whether --enable-shared was given.
7405 if test "${enable_shared+set}" = set; then
7406   enableval=$enable_shared; p=${PACKAGE-default}
7407     case $enableval in
7408     yes) enable_shared=yes ;;
7409     no) enable_shared=no ;;
7410     *)
7411       enable_shared=no
7412       # Look at the argument we got.  We use all the common list separators.
7413       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414       for pkg in $enableval; do
7415         IFS="$lt_save_ifs"
7416         if test "X$pkg" = "X$p"; then
7417           enable_shared=yes
7418         fi
7419       done
7420       IFS="$lt_save_ifs"
7421       ;;
7422     esac
7423 else
7424   enable_shared=yes
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435   # Check whether --enable-static was given.
7436 if test "${enable_static+set}" = set; then
7437   enableval=$enable_static; p=${PACKAGE-default}
7438     case $enableval in
7439     yes) enable_static=yes ;;
7440     no) enable_static=no ;;
7441     *)
7442      enable_static=no
7443       # Look at the argument we got.  We use all the common list separators.
7444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445       for pkg in $enableval; do
7446         IFS="$lt_save_ifs"
7447         if test "X$pkg" = "X$p"; then
7448           enable_static=yes
7449         fi
7450       done
7451       IFS="$lt_save_ifs"
7452       ;;
7453     esac
7454 else
7455   enable_static=yes
7456 fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467 # Check whether --with-pic was given.
7468 if test "${with_pic+set}" = set; then
7469   withval=$with_pic; pic_mode="$withval"
7470 else
7471   pic_mode=default
7472 fi
7473
7474
7475 test -z "$pic_mode" && pic_mode=default
7476
7477
7478
7479
7480
7481
7482
7483   # Check whether --enable-fast-install was given.
7484 if test "${enable_fast_install+set}" = set; then
7485   enableval=$enable_fast_install; p=${PACKAGE-default}
7486     case $enableval in
7487     yes) enable_fast_install=yes ;;
7488     no) enable_fast_install=no ;;
7489     *)
7490       enable_fast_install=no
7491       # Look at the argument we got.  We use all the common list separators.
7492       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7493       for pkg in $enableval; do
7494         IFS="$lt_save_ifs"
7495         if test "X$pkg" = "X$p"; then
7496           enable_fast_install=yes
7497         fi
7498       done
7499       IFS="$lt_save_ifs"
7500       ;;
7501     esac
7502 else
7503   enable_fast_install=yes
7504 fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 # This can be used to rebuild libtool when needed
7517 LIBTOOL_DEPS="$ltmain"
7518
7519 # Always use our own libtool.
7520 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 test -z "$LN_S" && LN_S="ln -s"
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 if test -n "${ZSH_VERSION+set}" ; then
7562    setopt NO_GLOB_SUBST
7563 fi
7564
7565 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7566 $as_echo_n "checking for objdir... " >&6; }
7567 if test "${lt_cv_objdir+set}" = set; then
7568   $as_echo_n "(cached) " >&6
7569 else
7570   rm -f .libs 2>/dev/null
7571 mkdir .libs 2>/dev/null
7572 if test -d .libs; then
7573   lt_cv_objdir=.libs
7574 else
7575   # MS-DOS does not allow filenames that begin with a dot.
7576   lt_cv_objdir=_libs
7577 fi
7578 rmdir .libs 2>/dev/null
7579 fi
7580 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7581 $as_echo "$lt_cv_objdir" >&6; }
7582 objdir=$lt_cv_objdir
7583
7584
7585
7586
7587
7588 cat >>confdefs.h <<_ACEOF
7589 #define LT_OBJDIR "$lt_cv_objdir/"
7590 _ACEOF
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608 case $host_os in
7609 aix3*)
7610   # AIX sometimes has problems with the GCC collect2 program.  For some
7611   # reason, if we set the COLLECT_NAMES environment variable, the problems
7612   # vanish in a puff of smoke.
7613   if test "X${COLLECT_NAMES+set}" != Xset; then
7614     COLLECT_NAMES=
7615     export COLLECT_NAMES
7616   fi
7617   ;;
7618 esac
7619
7620 # Sed substitution that helps us do robust quoting.  It backslashifies
7621 # metacharacters that are still active within double-quoted strings.
7622 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7623
7624 # Same as above, but do not quote variable references.
7625 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7626
7627 # Sed substitution to delay expansion of an escaped shell variable in a
7628 # double_quote_subst'ed string.
7629 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7630
7631 # Sed substitution to delay expansion of an escaped single quote.
7632 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7633
7634 # Sed substitution to avoid accidental globbing in evaled expressions
7635 no_glob_subst='s/\*/\\\*/g'
7636
7637 # Global variables:
7638 ofile=libtool
7639 can_build_shared=yes
7640
7641 # All known linkers require a `.a' archive for static linking (except MSVC,
7642 # which needs '.lib').
7643 libext=a
7644
7645 with_gnu_ld="$lt_cv_prog_gnu_ld"
7646
7647 old_CC="$CC"
7648 old_CFLAGS="$CFLAGS"
7649
7650 # Set sane defaults for various variables
7651 test -z "$CC" && CC=cc
7652 test -z "$LTCC" && LTCC=$CC
7653 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7654 test -z "$LD" && LD=ld
7655 test -z "$ac_objext" && ac_objext=o
7656
7657 for cc_temp in $compiler""; do
7658   case $cc_temp in
7659     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7660     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7661     \-*) ;;
7662     *) break;;
7663   esac
7664 done
7665 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7666
7667
7668 # Only perform the check for file, if the check method requires it
7669 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7670 case $deplibs_check_method in
7671 file_magic*)
7672   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7673     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7674 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7676   $as_echo_n "(cached) " >&6
7677 else
7678   case $MAGIC_CMD in
7679 [\\/*] |  ?:[\\/]*)
7680   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7681   ;;
7682 *)
7683   lt_save_MAGIC_CMD="$MAGIC_CMD"
7684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7685   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7686   for ac_dir in $ac_dummy; do
7687     IFS="$lt_save_ifs"
7688     test -z "$ac_dir" && ac_dir=.
7689     if test -f $ac_dir/${ac_tool_prefix}file; then
7690       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7691       if test -n "$file_magic_test_file"; then
7692         case $deplibs_check_method in
7693         "file_magic "*)
7694           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7695           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7696           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7697             $EGREP "$file_magic_regex" > /dev/null; then
7698             :
7699           else
7700             cat <<_LT_EOF 1>&2
7701
7702 *** Warning: the command libtool uses to detect shared libraries,
7703 *** $file_magic_cmd, produces output that libtool cannot recognize.
7704 *** The result is that libtool may fail to recognize shared libraries
7705 *** as such.  This will affect the creation of libtool libraries that
7706 *** depend on shared libraries, but programs linked with such libtool
7707 *** libraries will work regardless of this problem.  Nevertheless, you
7708 *** may want to report the problem to your system manager and/or to
7709 *** bug-libtool@gnu.org
7710
7711 _LT_EOF
7712           fi ;;
7713         esac
7714       fi
7715       break
7716     fi
7717   done
7718   IFS="$lt_save_ifs"
7719   MAGIC_CMD="$lt_save_MAGIC_CMD"
7720   ;;
7721 esac
7722 fi
7723
7724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725 if test -n "$MAGIC_CMD"; then
7726   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7727 $as_echo "$MAGIC_CMD" >&6; }
7728 else
7729   { $as_echo "$as_me:$LINENO: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733
7734
7735
7736
7737 if test -z "$lt_cv_path_MAGIC_CMD"; then
7738   if test -n "$ac_tool_prefix"; then
7739     { $as_echo "$as_me:$LINENO: checking for file" >&5
7740 $as_echo_n "checking for file... " >&6; }
7741 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7742   $as_echo_n "(cached) " >&6
7743 else
7744   case $MAGIC_CMD in
7745 [\\/*] |  ?:[\\/]*)
7746   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7747   ;;
7748 *)
7749   lt_save_MAGIC_CMD="$MAGIC_CMD"
7750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7751   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7752   for ac_dir in $ac_dummy; do
7753     IFS="$lt_save_ifs"
7754     test -z "$ac_dir" && ac_dir=.
7755     if test -f $ac_dir/file; then
7756       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7757       if test -n "$file_magic_test_file"; then
7758         case $deplibs_check_method in
7759         "file_magic "*)
7760           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7761           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7763             $EGREP "$file_magic_regex" > /dev/null; then
7764             :
7765           else
7766             cat <<_LT_EOF 1>&2
7767
7768 *** Warning: the command libtool uses to detect shared libraries,
7769 *** $file_magic_cmd, produces output that libtool cannot recognize.
7770 *** The result is that libtool may fail to recognize shared libraries
7771 *** as such.  This will affect the creation of libtool libraries that
7772 *** depend on shared libraries, but programs linked with such libtool
7773 *** libraries will work regardless of this problem.  Nevertheless, you
7774 *** may want to report the problem to your system manager and/or to
7775 *** bug-libtool@gnu.org
7776
7777 _LT_EOF
7778           fi ;;
7779         esac
7780       fi
7781       break
7782     fi
7783   done
7784   IFS="$lt_save_ifs"
7785   MAGIC_CMD="$lt_save_MAGIC_CMD"
7786   ;;
7787 esac
7788 fi
7789
7790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7791 if test -n "$MAGIC_CMD"; then
7792   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7793 $as_echo "$MAGIC_CMD" >&6; }
7794 else
7795   { $as_echo "$as_me:$LINENO: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800   else
7801     MAGIC_CMD=:
7802   fi
7803 fi
7804
7805   fi
7806   ;;
7807 esac
7808
7809 # Use C for the default configuration in the libtool script
7810
7811 lt_save_CC="$CC"
7812 ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818
7819 # Source file extension for C test sources.
7820 ac_ext=c
7821
7822 # Object file extension for compiled C test sources.
7823 objext=o
7824 objext=$objext
7825
7826 # Code to be used in simple compile tests
7827 lt_simple_compile_test_code="int some_variable = 0;"
7828
7829 # Code to be used in simple link tests
7830 lt_simple_link_test_code='int main(){return(0);}'
7831
7832
7833
7834
7835
7836
7837
7838 # If no C compiler was specified, use CC.
7839 LTCC=${LTCC-"$CC"}
7840
7841 # If no C compiler flags were specified, use CFLAGS.
7842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7843
7844 # Allow CC to be a program name with arguments.
7845 compiler=$CC
7846
7847 # Save the default compiler, since it gets overwritten when the other
7848 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7849 compiler_DEFAULT=$CC
7850
7851 # save warnings/boilerplate of simple test code
7852 ac_outfile=conftest.$ac_objext
7853 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7854 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7855 _lt_compiler_boilerplate=`cat conftest.err`
7856 $RM conftest*
7857
7858 ac_outfile=conftest.$ac_objext
7859 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7860 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7861 _lt_linker_boilerplate=`cat conftest.err`
7862 $RM -r conftest*
7863
7864
7865 if test -n "$compiler"; then
7866
7867 lt_prog_compiler_no_builtin_flag=
7868
7869 if test "$GCC" = yes; then
7870   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7871
7872   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7873 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7874 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7875   $as_echo_n "(cached) " >&6
7876 else
7877   lt_cv_prog_compiler_rtti_exceptions=no
7878    ac_outfile=conftest.$ac_objext
7879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7880    lt_compiler_flag="-fno-rtti -fno-exceptions"
7881    # Insert the option either (1) after the last *FLAGS variable, or
7882    # (2) before a word containing "conftest.", or (3) at the end.
7883    # Note that $ac_compile itself does not contain backslashes and begins
7884    # with a dollar sign (not a hyphen), so the echo should work correctly.
7885    # The option is referenced via a variable to avoid confusing sed.
7886    lt_compile=`echo "$ac_compile" | $SED \
7887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7889    -e 's:$: $lt_compiler_flag:'`
7890    (eval echo "\"\$as_me:7890: $lt_compile\"" >&5)
7891    (eval "$lt_compile" 2>conftest.err)
7892    ac_status=$?
7893    cat conftest.err >&5
7894    echo "$as_me:7894: \$? = $ac_status" >&5
7895    if (exit $ac_status) && test -s "$ac_outfile"; then
7896      # The compiler can only warn and ignore the option if not recognized
7897      # So say no if there are warnings other than the usual output.
7898      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7899      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7900      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7901        lt_cv_prog_compiler_rtti_exceptions=yes
7902      fi
7903    fi
7904    $RM conftest*
7905
7906 fi
7907 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7908 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7909
7910 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7911     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7912 else
7913     :
7914 fi
7915
7916 fi
7917
7918
7919
7920
7921
7922
7923   lt_prog_compiler_wl=
7924 lt_prog_compiler_pic=
7925 lt_prog_compiler_static=
7926
7927 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7928 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7929
7930   if test "$GCC" = yes; then
7931     lt_prog_compiler_wl='-Wl,'
7932     lt_prog_compiler_static='-static'
7933
7934     case $host_os in
7935       aix*)
7936       # All AIX code is PIC.
7937       if test "$host_cpu" = ia64; then
7938         # AIX 5 now supports IA64 processor
7939         lt_prog_compiler_static='-Bstatic'
7940       fi
7941       ;;
7942
7943     amigaos*)
7944       case $host_cpu in
7945       powerpc)
7946             # see comment about AmigaOS4 .so support
7947             lt_prog_compiler_pic='-fPIC'
7948         ;;
7949       m68k)
7950             # FIXME: we need at least 68020 code to build shared libraries, but
7951             # adding the `-m68020' flag to GCC prevents building anything better,
7952             # like `-m68040'.
7953             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7954         ;;
7955       esac
7956       ;;
7957
7958     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7959       # PIC is the default for these OSes.
7960       ;;
7961
7962     mingw* | cygwin* | pw32* | os2* | cegcc*)
7963       # This hack is so that the source file can tell whether it is being
7964       # built for inclusion in a dll (and should export symbols for example).
7965       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7966       # (--disable-auto-import) libraries
7967       lt_prog_compiler_pic='-DDLL_EXPORT'
7968       ;;
7969
7970     darwin* | rhapsody*)
7971       # PIC is the default on this platform
7972       # Common symbols not allowed in MH_DYLIB files
7973       lt_prog_compiler_pic='-fno-common'
7974       ;;
7975
7976     hpux*)
7977       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7978       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7979       # sets the default TLS model and affects inlining.
7980       case $host_cpu in
7981       hppa*64*)
7982         # +Z the default
7983         ;;
7984       *)
7985         lt_prog_compiler_pic='-fPIC'
7986         ;;
7987       esac
7988       ;;
7989
7990     interix[3-9]*)
7991       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7992       # Instead, we relocate shared libraries at runtime.
7993       ;;
7994
7995     msdosdjgpp*)
7996       # Just because we use GCC doesn't mean we suddenly get shared libraries
7997       # on systems that don't support them.
7998       lt_prog_compiler_can_build_shared=no
7999       enable_shared=no
8000       ;;
8001
8002     *nto* | *qnx*)
8003       # QNX uses GNU C++, but need to define -shared option too, otherwise
8004       # it will coredump.
8005       lt_prog_compiler_pic='-fPIC -shared'
8006       ;;
8007
8008     sysv4*MP*)
8009       if test -d /usr/nec; then
8010         lt_prog_compiler_pic=-Kconform_pic
8011       fi
8012       ;;
8013
8014     *)
8015       lt_prog_compiler_pic='-fPIC'
8016       ;;
8017     esac
8018   else
8019     # PORTME Check for flag to pass linker flags through the system compiler.
8020     case $host_os in
8021     aix*)
8022       lt_prog_compiler_wl='-Wl,'
8023       if test "$host_cpu" = ia64; then
8024         # AIX 5 now supports IA64 processor
8025         lt_prog_compiler_static='-Bstatic'
8026       else
8027         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8028       fi
8029       ;;
8030
8031     mingw* | cygwin* | pw32* | os2* | cegcc*)
8032       # This hack is so that the source file can tell whether it is being
8033       # built for inclusion in a dll (and should export symbols for example).
8034       lt_prog_compiler_pic='-DDLL_EXPORT'
8035       ;;
8036
8037     hpux9* | hpux10* | hpux11*)
8038       lt_prog_compiler_wl='-Wl,'
8039       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8040       # not for PA HP-UX.
8041       case $host_cpu in
8042       hppa*64*|ia64*)
8043         # +Z the default
8044         ;;
8045       *)
8046         lt_prog_compiler_pic='+Z'
8047         ;;
8048       esac
8049       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8050       lt_prog_compiler_static='${wl}-a ${wl}archive'
8051       ;;
8052
8053     irix5* | irix6* | nonstopux*)
8054       lt_prog_compiler_wl='-Wl,'
8055       # PIC (with -KPIC) is the default.
8056       lt_prog_compiler_static='-non_shared'
8057       ;;
8058
8059     linux* | k*bsd*-gnu)
8060       case $cc_basename in
8061       # old Intel for x86_64 which still supported -KPIC.
8062       ecc*)
8063         lt_prog_compiler_wl='-Wl,'
8064         lt_prog_compiler_pic='-KPIC'
8065         lt_prog_compiler_static='-static'
8066         ;;
8067       # icc used to be incompatible with GCC.
8068       # ICC 10 doesn't accept -KPIC any more.
8069       icc* | ifort*)
8070         lt_prog_compiler_wl='-Wl,'
8071         lt_prog_compiler_pic='-fPIC'
8072         lt_prog_compiler_static='-static'
8073         ;;
8074       # Lahey Fortran 8.1.
8075       lf95*)
8076         lt_prog_compiler_wl='-Wl,'
8077         lt_prog_compiler_pic='--shared'
8078         lt_prog_compiler_static='--static'
8079         ;;
8080       pgcc* | pgf77* | pgf90* | pgf95*)
8081         # Portland Group compilers (*not* the Pentium gcc compiler,
8082         # which looks to be a dead project)
8083         lt_prog_compiler_wl='-Wl,'
8084         lt_prog_compiler_pic='-fpic'
8085         lt_prog_compiler_static='-Bstatic'
8086         ;;
8087       ccc*)
8088         lt_prog_compiler_wl='-Wl,'
8089         # All Alpha code is PIC.
8090         lt_prog_compiler_static='-non_shared'
8091         ;;
8092       xl*)
8093         # IBM XL C 8.0/Fortran 10.1 on PPC
8094         lt_prog_compiler_wl='-Wl,'
8095         lt_prog_compiler_pic='-qpic'
8096         lt_prog_compiler_static='-qstaticlink'
8097         ;;
8098       *)
8099         case `$CC -V 2>&1 | sed 5q` in
8100         *Sun\ C*)
8101           # Sun C 5.9
8102           lt_prog_compiler_pic='-KPIC'
8103           lt_prog_compiler_static='-Bstatic'
8104           lt_prog_compiler_wl='-Wl,'
8105           ;;
8106         *Sun\ F*)
8107           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8108           lt_prog_compiler_pic='-KPIC'
8109           lt_prog_compiler_static='-Bstatic'
8110           lt_prog_compiler_wl=''
8111           ;;
8112         esac
8113         ;;
8114       esac
8115       ;;
8116
8117     newsos6)
8118       lt_prog_compiler_pic='-KPIC'
8119       lt_prog_compiler_static='-Bstatic'
8120       ;;
8121
8122     *nto* | *qnx*)
8123       # QNX uses GNU C++, but need to define -shared option too, otherwise
8124       # it will coredump.
8125       lt_prog_compiler_pic='-fPIC -shared'
8126       ;;
8127
8128     osf3* | osf4* | osf5*)
8129       lt_prog_compiler_wl='-Wl,'
8130       # All OSF/1 code is PIC.
8131       lt_prog_compiler_static='-non_shared'
8132       ;;
8133
8134     rdos*)
8135       lt_prog_compiler_static='-non_shared'
8136       ;;
8137
8138     solaris*)
8139       lt_prog_compiler_pic='-KPIC'
8140       lt_prog_compiler_static='-Bstatic'
8141       case $cc_basename in
8142       f77* | f90* | f95*)
8143         lt_prog_compiler_wl='-Qoption ld ';;
8144       *)
8145         lt_prog_compiler_wl='-Wl,';;
8146       esac
8147       ;;
8148
8149     sunos4*)
8150       lt_prog_compiler_wl='-Qoption ld '
8151       lt_prog_compiler_pic='-PIC'
8152       lt_prog_compiler_static='-Bstatic'
8153       ;;
8154
8155     sysv4 | sysv4.2uw2* | sysv4.3*)
8156       lt_prog_compiler_wl='-Wl,'
8157       lt_prog_compiler_pic='-KPIC'
8158       lt_prog_compiler_static='-Bstatic'
8159       ;;
8160
8161     sysv4*MP*)
8162       if test -d /usr/nec ;then
8163         lt_prog_compiler_pic='-Kconform_pic'
8164         lt_prog_compiler_static='-Bstatic'
8165       fi
8166       ;;
8167
8168     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8169       lt_prog_compiler_wl='-Wl,'
8170       lt_prog_compiler_pic='-KPIC'
8171       lt_prog_compiler_static='-Bstatic'
8172       ;;
8173
8174     unicos*)
8175       lt_prog_compiler_wl='-Wl,'
8176       lt_prog_compiler_can_build_shared=no
8177       ;;
8178
8179     uts4*)
8180       lt_prog_compiler_pic='-pic'
8181       lt_prog_compiler_static='-Bstatic'
8182       ;;
8183
8184     *)
8185       lt_prog_compiler_can_build_shared=no
8186       ;;
8187     esac
8188   fi
8189
8190 case $host_os in
8191   # For platforms which do not support PIC, -DPIC is meaningless:
8192   *djgpp*)
8193     lt_prog_compiler_pic=
8194     ;;
8195   *)
8196     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8197     ;;
8198 esac
8199 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8200 $as_echo "$lt_prog_compiler_pic" >&6; }
8201
8202
8203
8204
8205
8206
8207 #
8208 # Check to make sure the PIC flag actually works.
8209 #
8210 if test -n "$lt_prog_compiler_pic"; then
8211   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8212 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8213 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8214   $as_echo_n "(cached) " >&6
8215 else
8216   lt_cv_prog_compiler_pic_works=no
8217    ac_outfile=conftest.$ac_objext
8218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8219    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8220    # Insert the option either (1) after the last *FLAGS variable, or
8221    # (2) before a word containing "conftest.", or (3) at the end.
8222    # Note that $ac_compile itself does not contain backslashes and begins
8223    # with a dollar sign (not a hyphen), so the echo should work correctly.
8224    # The option is referenced via a variable to avoid confusing sed.
8225    lt_compile=`echo "$ac_compile" | $SED \
8226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8228    -e 's:$: $lt_compiler_flag:'`
8229    (eval echo "\"\$as_me:8229: $lt_compile\"" >&5)
8230    (eval "$lt_compile" 2>conftest.err)
8231    ac_status=$?
8232    cat conftest.err >&5
8233    echo "$as_me:8233: \$? = $ac_status" >&5
8234    if (exit $ac_status) && test -s "$ac_outfile"; then
8235      # The compiler can only warn and ignore the option if not recognized
8236      # So say no if there are warnings other than the usual output.
8237      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8238      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8239      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8240        lt_cv_prog_compiler_pic_works=yes
8241      fi
8242    fi
8243    $RM conftest*
8244
8245 fi
8246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8247 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8248
8249 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8250     case $lt_prog_compiler_pic in
8251      "" | " "*) ;;
8252      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8253      esac
8254 else
8255     lt_prog_compiler_pic=
8256      lt_prog_compiler_can_build_shared=no
8257 fi
8258
8259 fi
8260
8261
8262
8263
8264
8265
8266 #
8267 # Check to make sure the static flag actually works.
8268 #
8269 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8270 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8271 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8272 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8273   $as_echo_n "(cached) " >&6
8274 else
8275   lt_cv_prog_compiler_static_works=no
8276    save_LDFLAGS="$LDFLAGS"
8277    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8278    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8279    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8280      # The linker can only warn and ignore the option if not recognized
8281      # So say no if there are warnings
8282      if test -s conftest.err; then
8283        # Append any errors to the config.log.
8284        cat conftest.err 1>&5
8285        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8286        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8287        if diff conftest.exp conftest.er2 >/dev/null; then
8288          lt_cv_prog_compiler_static_works=yes
8289        fi
8290      else
8291        lt_cv_prog_compiler_static_works=yes
8292      fi
8293    fi
8294    $RM -r conftest*
8295    LDFLAGS="$save_LDFLAGS"
8296
8297 fi
8298 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8299 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8300
8301 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8302     :
8303 else
8304     lt_prog_compiler_static=
8305 fi
8306
8307
8308
8309
8310
8311
8312
8313   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8315 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8316   $as_echo_n "(cached) " >&6
8317 else
8318   lt_cv_prog_compiler_c_o=no
8319    $RM -r conftest 2>/dev/null
8320    mkdir conftest
8321    cd conftest
8322    mkdir out
8323    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8324
8325    lt_compiler_flag="-o out/conftest2.$ac_objext"
8326    # Insert the option either (1) after the last *FLAGS variable, or
8327    # (2) before a word containing "conftest.", or (3) at the end.
8328    # Note that $ac_compile itself does not contain backslashes and begins
8329    # with a dollar sign (not a hyphen), so the echo should work correctly.
8330    lt_compile=`echo "$ac_compile" | $SED \
8331    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333    -e 's:$: $lt_compiler_flag:'`
8334    (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8335    (eval "$lt_compile" 2>out/conftest.err)
8336    ac_status=$?
8337    cat out/conftest.err >&5
8338    echo "$as_me:8338: \$? = $ac_status" >&5
8339    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8340    then
8341      # The compiler can only warn and ignore the option if not recognized
8342      # So say no if there are warnings
8343      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8344      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8345      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8346        lt_cv_prog_compiler_c_o=yes
8347      fi
8348    fi
8349    chmod u+w . 2>&5
8350    $RM conftest*
8351    # SGI C++ compiler will create directory out/ii_files/ for
8352    # template instantiation
8353    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8354    $RM out/* && rmdir out
8355    cd ..
8356    $RM -r conftest
8357    $RM conftest*
8358
8359 fi
8360 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8362
8363
8364
8365
8366
8367
8368   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8370 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8371   $as_echo_n "(cached) " >&6
8372 else
8373   lt_cv_prog_compiler_c_o=no
8374    $RM -r conftest 2>/dev/null
8375    mkdir conftest
8376    cd conftest
8377    mkdir out
8378    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379
8380    lt_compiler_flag="-o out/conftest2.$ac_objext"
8381    # Insert the option either (1) after the last *FLAGS variable, or
8382    # (2) before a word containing "conftest.", or (3) at the end.
8383    # Note that $ac_compile itself does not contain backslashes and begins
8384    # with a dollar sign (not a hyphen), so the echo should work correctly.
8385    lt_compile=`echo "$ac_compile" | $SED \
8386    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388    -e 's:$: $lt_compiler_flag:'`
8389    (eval echo "\"\$as_me:8389: $lt_compile\"" >&5)
8390    (eval "$lt_compile" 2>out/conftest.err)
8391    ac_status=$?
8392    cat out/conftest.err >&5
8393    echo "$as_me:8393: \$? = $ac_status" >&5
8394    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8395    then
8396      # The compiler can only warn and ignore the option if not recognized
8397      # So say no if there are warnings
8398      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8399      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8400      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8401        lt_cv_prog_compiler_c_o=yes
8402      fi
8403    fi
8404    chmod u+w . 2>&5
8405    $RM conftest*
8406    # SGI C++ compiler will create directory out/ii_files/ for
8407    # template instantiation
8408    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8409    $RM out/* && rmdir out
8410    cd ..
8411    $RM -r conftest
8412    $RM conftest*
8413
8414 fi
8415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8417
8418
8419
8420
8421 hard_links="nottested"
8422 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8423   # do not overwrite the value of need_locks provided by the user
8424   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8425 $as_echo_n "checking if we can lock with hard links... " >&6; }
8426   hard_links=yes
8427   $RM conftest*
8428   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8429   touch conftest.a
8430   ln conftest.a conftest.b 2>&5 || hard_links=no
8431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8432   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8433 $as_echo "$hard_links" >&6; }
8434   if test "$hard_links" = no; then
8435     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8436 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8437     need_locks=warn
8438   fi
8439 else
8440   need_locks=no
8441 fi
8442
8443
8444
8445
8446
8447
8448   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8450
8451   runpath_var=
8452   allow_undefined_flag=
8453   always_export_symbols=no
8454   archive_cmds=
8455   archive_expsym_cmds=
8456   compiler_needs_object=no
8457   enable_shared_with_static_runtimes=no
8458   export_dynamic_flag_spec=
8459   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8460   hardcode_automatic=no
8461   hardcode_direct=no
8462   hardcode_direct_absolute=no
8463   hardcode_libdir_flag_spec=
8464   hardcode_libdir_flag_spec_ld=
8465   hardcode_libdir_separator=
8466   hardcode_minus_L=no
8467   hardcode_shlibpath_var=unsupported
8468   inherit_rpath=no
8469   link_all_deplibs=unknown
8470   module_cmds=
8471   module_expsym_cmds=
8472   old_archive_from_new_cmds=
8473   old_archive_from_expsyms_cmds=
8474   thread_safe_flag_spec=
8475   whole_archive_flag_spec=
8476   # include_expsyms should be a list of space-separated symbols to be *always*
8477   # included in the symbol list
8478   include_expsyms=
8479   # exclude_expsyms can be an extended regexp of symbols to exclude
8480   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8481   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8482   # as well as any symbol that contains `d'.
8483   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8484   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8485   # platforms (ab)use it in PIC code, but their linkers get confused if
8486   # the symbol is explicitly referenced.  Since portable code cannot
8487   # rely on this symbol name, it's probably fine to never include it in
8488   # preloaded symbol tables.
8489   # Exclude shared library initialization/finalization symbols.
8490   extract_expsyms_cmds=
8491
8492   case $host_os in
8493   cygwin* | mingw* | pw32* | cegcc*)
8494     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8495     # When not using gcc, we currently assume that we are using
8496     # Microsoft Visual C++.
8497     if test "$GCC" != yes; then
8498       with_gnu_ld=no
8499     fi
8500     ;;
8501   interix*)
8502     # we just hope/assume this is gcc and not c89 (= MSVC++)
8503     with_gnu_ld=yes
8504     ;;
8505   openbsd*)
8506     with_gnu_ld=no
8507     ;;
8508   esac
8509
8510   ld_shlibs=yes
8511   if test "$with_gnu_ld" = yes; then
8512     # If archive_cmds runs LD, not CC, wlarc should be empty
8513     wlarc='${wl}'
8514
8515     # Set some defaults for GNU ld with shared library support. These
8516     # are reset later if shared libraries are not supported. Putting them
8517     # here allows them to be overridden if necessary.
8518     runpath_var=LD_RUN_PATH
8519     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8520     export_dynamic_flag_spec='${wl}--export-dynamic'
8521     # ancient GNU ld didn't support --whole-archive et. al.
8522     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8523       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8524     else
8525       whole_archive_flag_spec=
8526     fi
8527     supports_anon_versioning=no
8528     case `$LD -v 2>&1` in
8529       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8530       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8531       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8532       *\ 2.11.*) ;; # other 2.11 versions
8533       *) supports_anon_versioning=yes ;;
8534     esac
8535
8536     # See if GNU ld supports shared libraries.
8537     case $host_os in
8538     aix[3-9]*)
8539       # On AIX/PPC, the GNU linker is very broken
8540       if test "$host_cpu" != ia64; then
8541         ld_shlibs=no
8542         cat <<_LT_EOF 1>&2
8543
8544 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8545 *** to be unable to reliably create shared libraries on AIX.
8546 *** Therefore, libtool is disabling shared libraries support.  If you
8547 *** really care for shared libraries, you may want to modify your PATH
8548 *** so that a non-GNU linker is found, and then restart.
8549
8550 _LT_EOF
8551       fi
8552       ;;
8553
8554     amigaos*)
8555       case $host_cpu in
8556       powerpc)
8557             # see comment about AmigaOS4 .so support
8558             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559             archive_expsym_cmds=''
8560         ;;
8561       m68k)
8562             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)'
8563             hardcode_libdir_flag_spec='-L$libdir'
8564             hardcode_minus_L=yes
8565         ;;
8566       esac
8567       ;;
8568
8569     beos*)
8570       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8571         allow_undefined_flag=unsupported
8572         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8573         # support --undefined.  This deserves some investigation.  FIXME
8574         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575       else
8576         ld_shlibs=no
8577       fi
8578       ;;
8579
8580     cygwin* | mingw* | pw32* | cegcc*)
8581       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8582       # as there is no search path for DLLs.
8583       hardcode_libdir_flag_spec='-L$libdir'
8584       allow_undefined_flag=unsupported
8585       always_export_symbols=no
8586       enable_shared_with_static_runtimes=yes
8587       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8588
8589       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8590         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8591         # If the export-symbols file already is a .def file (1st line
8592         # is EXPORTS), use it as is; otherwise, prepend...
8593         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8594           cp $export_symbols $output_objdir/$soname.def;
8595         else
8596           echo EXPORTS > $output_objdir/$soname.def;
8597           cat $export_symbols >> $output_objdir/$soname.def;
8598         fi~
8599         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8600       else
8601         ld_shlibs=no
8602       fi
8603       ;;
8604
8605     interix[3-9]*)
8606       hardcode_direct=no
8607       hardcode_shlibpath_var=no
8608       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8609       export_dynamic_flag_spec='${wl}-E'
8610       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8611       # Instead, shared libraries are loaded at an image base (0x10000000 by
8612       # default) and relocated if they conflict, which is a slow very memory
8613       # consuming and fragmenting process.  To avoid this, we pick a random,
8614       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8615       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8616       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8617       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'
8618       ;;
8619
8620     gnu* | linux* | tpf* | k*bsd*-gnu)
8621       tmp_diet=no
8622       if test "$host_os" = linux-dietlibc; then
8623         case $cc_basename in
8624           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8625         esac
8626       fi
8627       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8628          && test "$tmp_diet" = no
8629       then
8630         tmp_addflag=
8631         tmp_sharedflag='-shared'
8632         case $cc_basename,$host_cpu in
8633         pgcc*)                          # Portland Group C compiler
8634           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'
8635           tmp_addflag=' $pic_flag'
8636           ;;
8637         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8638           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'
8639           tmp_addflag=' $pic_flag -Mnomain' ;;
8640         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8641           tmp_addflag=' -i_dynamic' ;;
8642         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8643           tmp_addflag=' -i_dynamic -nofor_main' ;;
8644         ifc* | ifort*)                  # Intel Fortran compiler
8645           tmp_addflag=' -nofor_main' ;;
8646         lf95*)                          # Lahey Fortran 8.1
8647           whole_archive_flag_spec=
8648           tmp_sharedflag='--shared' ;;
8649         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8650           tmp_sharedflag='-qmkshrobj'
8651           tmp_addflag= ;;
8652         esac
8653         case `$CC -V 2>&1 | sed 5q` in
8654         *Sun\ C*)                       # Sun C 5.9
8655           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'
8656           compiler_needs_object=yes
8657           tmp_sharedflag='-G' ;;
8658         *Sun\ F*)                       # Sun Fortran 8.3
8659           tmp_sharedflag='-G' ;;
8660         esac
8661         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662
8663         if test "x$supports_anon_versioning" = xyes; then
8664           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8665             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8666             echo "local: *; };" >> $output_objdir/$libname.ver~
8667             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8668         fi
8669
8670         case $cc_basename in
8671         xlf*)
8672           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8673           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8674           hardcode_libdir_flag_spec=
8675           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8676           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8677           if test "x$supports_anon_versioning" = xyes; then
8678             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8679               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8680               echo "local: *; };" >> $output_objdir/$libname.ver~
8681               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8682           fi
8683           ;;
8684         esac
8685       else
8686         ld_shlibs=no
8687       fi
8688       ;;
8689
8690     netbsd*)
8691       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8692         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8693         wlarc=
8694       else
8695         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8697       fi
8698       ;;
8699
8700     solaris*)
8701       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8702         ld_shlibs=no
8703         cat <<_LT_EOF 1>&2
8704
8705 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8706 *** create shared libraries on Solaris systems.  Therefore, libtool
8707 *** is disabling shared libraries support.  We urge you to upgrade GNU
8708 *** binutils to release 2.9.1 or newer.  Another option is to modify
8709 *** your PATH or compiler configuration so that the native linker is
8710 *** used, and then restart.
8711
8712 _LT_EOF
8713       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8714         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8715         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8716       else
8717         ld_shlibs=no
8718       fi
8719       ;;
8720
8721     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8722       case `$LD -v 2>&1` in
8723         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8724         ld_shlibs=no
8725         cat <<_LT_EOF 1>&2
8726
8727 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8728 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8729 *** is disabling shared libraries support.  We urge you to upgrade GNU
8730 *** binutils to release 2.16.91.0.3 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         ;;
8736         *)
8737           # For security reasons, it is highly recommended that you always
8738           # use absolute paths for naming shared libraries, and exclude the
8739           # DT_RUNPATH tag from executables and libraries.  But doing so
8740           # requires that you compile everything twice, which is a pain.
8741           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8742             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745           else
8746             ld_shlibs=no
8747           fi
8748         ;;
8749       esac
8750       ;;
8751
8752     sunos4*)
8753       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8754       wlarc=
8755       hardcode_direct=yes
8756       hardcode_shlibpath_var=no
8757       ;;
8758
8759     *)
8760       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8761         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763       else
8764         ld_shlibs=no
8765       fi
8766       ;;
8767     esac
8768
8769     if test "$ld_shlibs" = no; then
8770       runpath_var=
8771       hardcode_libdir_flag_spec=
8772       export_dynamic_flag_spec=
8773       whole_archive_flag_spec=
8774     fi
8775   else
8776     # PORTME fill in a description of your system's linker (not GNU ld)
8777     case $host_os in
8778     aix3*)
8779       allow_undefined_flag=unsupported
8780       always_export_symbols=yes
8781       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'
8782       # Note: this linker hardcodes the directories in LIBPATH if there
8783       # are no directories specified by -L.
8784       hardcode_minus_L=yes
8785       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8786         # Neither direct hardcoding nor static linking is supported with a
8787         # broken collect2.
8788         hardcode_direct=unsupported
8789       fi
8790       ;;
8791
8792     aix[4-9]*)
8793       if test "$host_cpu" = ia64; then
8794         # On IA64, the linker does run time linking by default, so we don't
8795         # have to do anything special.
8796         aix_use_runtimelinking=no
8797         exp_sym_flag='-Bexport'
8798         no_entry_flag=""
8799       else
8800         # If we're using GNU nm, then we don't want the "-C" option.
8801         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8802         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8803           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'
8804         else
8805           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'
8806         fi
8807         aix_use_runtimelinking=no
8808
8809         # Test if we are trying to use run time linking or normal
8810         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8811         # need to do runtime linking.
8812         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8813           for ld_flag in $LDFLAGS; do
8814           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8815             aix_use_runtimelinking=yes
8816             break
8817           fi
8818           done
8819           ;;
8820         esac
8821
8822         exp_sym_flag='-bexport'
8823         no_entry_flag='-bnoentry'
8824       fi
8825
8826       # When large executables or shared objects are built, AIX ld can
8827       # have problems creating the table of contents.  If linking a library
8828       # or program results in "error TOC overflow" add -mminimal-toc to
8829       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8830       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8831
8832       archive_cmds=''
8833       hardcode_direct=yes
8834       hardcode_direct_absolute=yes
8835       hardcode_libdir_separator=':'
8836       link_all_deplibs=yes
8837       file_list_spec='${wl}-f,'
8838
8839       if test "$GCC" = yes; then
8840         case $host_os in aix4.[012]|aix4.[012].*)
8841         # We only want to do this on AIX 4.2 and lower, the check
8842         # below for broken collect2 doesn't work under 4.3+
8843           collect2name=`${CC} -print-prog-name=collect2`
8844           if test -f "$collect2name" &&
8845            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8846           then
8847           # We have reworked collect2
8848           :
8849           else
8850           # We have old collect2
8851           hardcode_direct=unsupported
8852           # It fails to find uninstalled libraries when the uninstalled
8853           # path is not listed in the libpath.  Setting hardcode_minus_L
8854           # to unsupported forces relinking
8855           hardcode_minus_L=yes
8856           hardcode_libdir_flag_spec='-L$libdir'
8857           hardcode_libdir_separator=
8858           fi
8859           ;;
8860         esac
8861         shared_flag='-shared'
8862         if test "$aix_use_runtimelinking" = yes; then
8863           shared_flag="$shared_flag "'${wl}-G'
8864         fi
8865       else
8866         # not using gcc
8867         if test "$host_cpu" = ia64; then
8868         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8869         # chokes on -Wl,-G. The following line is correct:
8870           shared_flag='-G'
8871         else
8872           if test "$aix_use_runtimelinking" = yes; then
8873             shared_flag='${wl}-G'
8874           else
8875             shared_flag='${wl}-bM:SRE'
8876           fi
8877         fi
8878       fi
8879
8880       export_dynamic_flag_spec='${wl}-bexpall'
8881       # It seems that -bexpall does not export symbols beginning with
8882       # underscore (_), so it is better to generate a list of symbols to export.
8883       always_export_symbols=yes
8884       if test "$aix_use_runtimelinking" = yes; then
8885         # Warning - without using the other runtime loading flags (-brtl),
8886         # -berok will link without error, but may produce a broken library.
8887         allow_undefined_flag='-berok'
8888         # Determine the default libpath from the value encoded in an
8889         # empty executable.
8890         cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 int
8898 main ()
8899 {
8900
8901   ;
8902   return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (ac_try="$ac_link"
8907 case "(($ac_try" in
8908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909   *) ac_try_echo=$ac_try;;
8910 esac
8911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913   (eval "$ac_link") 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } && {
8920          test -z "$ac_c_werror_flag" ||
8921          test ! -s conftest.err
8922        } && test -s conftest$ac_exeext && {
8923          test "$cross_compiling" = yes ||
8924          $as_test_x conftest$ac_exeext
8925        }; then
8926
8927 lt_aix_libpath_sed='
8928     /Import File Strings/,/^$/ {
8929         /^0/ {
8930             s/^0  *\(.*\)$/\1/
8931             p
8932         }
8933     }'
8934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8935 # Check for a 64-bit object if we didn't find anything.
8936 if test -z "$aix_libpath"; then
8937   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 fi
8939 else
8940   $as_echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943
8944 fi
8945
8946 rm -rf conftest.dSYM
8947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8948       conftest$ac_exeext conftest.$ac_ext
8949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8950
8951         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952         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"
8953       else
8954         if test "$host_cpu" = ia64; then
8955           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8956           allow_undefined_flag="-z nodefs"
8957           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"
8958         else
8959          # Determine the default libpath from the value encoded in an
8960          # empty executable.
8961          cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967
8968 int
8969 main ()
8970 {
8971
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (ac_try="$ac_link"
8978 case "(($ac_try" in
8979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980   *) ac_try_echo=$ac_try;;
8981 esac
8982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8983 $as_echo "$ac_try_echo") >&5
8984   (eval "$ac_link") 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && {
8991          test -z "$ac_c_werror_flag" ||
8992          test ! -s conftest.err
8993        } && test -s conftest$ac_exeext && {
8994          test "$cross_compiling" = yes ||
8995          $as_test_x conftest$ac_exeext
8996        }; then
8997
8998 lt_aix_libpath_sed='
8999     /Import File Strings/,/^$/ {
9000         /^0/ {
9001             s/^0  *\(.*\)$/\1/
9002             p
9003         }
9004     }'
9005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9006 # Check for a 64-bit object if we didn't find anything.
9007 if test -z "$aix_libpath"; then
9008   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9009 fi
9010 else
9011   $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014
9015 fi
9016
9017 rm -rf conftest.dSYM
9018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9019       conftest$ac_exeext conftest.$ac_ext
9020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9021
9022          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9023           # Warning - without using the other run time loading flags,
9024           # -berok will link without error, but may produce a broken library.
9025           no_undefined_flag=' ${wl}-bernotok'
9026           allow_undefined_flag=' ${wl}-berok'
9027           # Exported symbols can be pulled into shared objects from archives
9028           whole_archive_flag_spec='$convenience'
9029           archive_cmds_need_lc=yes
9030           # This is similar to how AIX traditionally builds its shared libraries.
9031           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'
9032         fi
9033       fi
9034       ;;
9035
9036     amigaos*)
9037       case $host_cpu in
9038       powerpc)
9039             # see comment about AmigaOS4 .so support
9040             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041             archive_expsym_cmds=''
9042         ;;
9043       m68k)
9044             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)'
9045             hardcode_libdir_flag_spec='-L$libdir'
9046             hardcode_minus_L=yes
9047         ;;
9048       esac
9049       ;;
9050
9051     bsdi[45]*)
9052       export_dynamic_flag_spec=-rdynamic
9053       ;;
9054
9055     cygwin* | mingw* | pw32* | cegcc*)
9056       # When not using gcc, we currently assume that we are using
9057       # Microsoft Visual C++.
9058       # hardcode_libdir_flag_spec is actually meaningless, as there is
9059       # no search path for DLLs.
9060       hardcode_libdir_flag_spec=' '
9061       allow_undefined_flag=unsupported
9062       # Tell ltmain to make .lib files, not .a files.
9063       libext=lib
9064       # Tell ltmain to make .dll files, not .so files.
9065       shrext_cmds=".dll"
9066       # FIXME: Setting linknames here is a bad hack.
9067       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9068       # The linker will automatically build a .lib file if we build a DLL.
9069       old_archive_from_new_cmds='true'
9070       # FIXME: Should let the user specify the lib program.
9071       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9072       fix_srcfile_path='`cygpath -w "$srcfile"`'
9073       enable_shared_with_static_runtimes=yes
9074       ;;
9075
9076     darwin* | rhapsody*)
9077
9078
9079   archive_cmds_need_lc=no
9080   hardcode_direct=no
9081   hardcode_automatic=yes
9082   hardcode_shlibpath_var=unsupported
9083   whole_archive_flag_spec=''
9084   link_all_deplibs=yes
9085   allow_undefined_flag="$_lt_dar_allow_undefined"
9086   case $cc_basename in
9087      ifort*) _lt_dar_can_shared=yes ;;
9088      *) _lt_dar_can_shared=$GCC ;;
9089   esac
9090   if test "$_lt_dar_can_shared" = "yes"; then
9091     output_verbose_link_cmd=echo
9092     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9093     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9094     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}"
9095     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}"
9096
9097   else
9098   ld_shlibs=no
9099   fi
9100
9101       ;;
9102
9103     dgux*)
9104       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105       hardcode_libdir_flag_spec='-L$libdir'
9106       hardcode_shlibpath_var=no
9107       ;;
9108
9109     freebsd1*)
9110       ld_shlibs=no
9111       ;;
9112
9113     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9114     # support.  Future versions do this automatically, but an explicit c++rt0.o
9115     # does not break anything, and helps significantly (at the cost of a little
9116     # extra space).
9117     freebsd2.2*)
9118       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9119       hardcode_libdir_flag_spec='-R$libdir'
9120       hardcode_direct=yes
9121       hardcode_shlibpath_var=no
9122       ;;
9123
9124     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9125     freebsd2*)
9126       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127       hardcode_direct=yes
9128       hardcode_minus_L=yes
9129       hardcode_shlibpath_var=no
9130       ;;
9131
9132     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9133     freebsd* | dragonfly*)
9134       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9135       hardcode_libdir_flag_spec='-R$libdir'
9136       hardcode_direct=yes
9137       hardcode_shlibpath_var=no
9138       ;;
9139
9140     hpux9*)
9141       if test "$GCC" = yes; then
9142         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'
9143       else
9144         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'
9145       fi
9146       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9147       hardcode_libdir_separator=:
9148       hardcode_direct=yes
9149
9150       # hardcode_minus_L: Not really in the search PATH,
9151       # but as the default location of the library.
9152       hardcode_minus_L=yes
9153       export_dynamic_flag_spec='${wl}-E'
9154       ;;
9155
9156     hpux10*)
9157       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9158         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159       else
9160         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9161       fi
9162       if test "$with_gnu_ld" = no; then
9163         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164         hardcode_libdir_flag_spec_ld='+b $libdir'
9165         hardcode_libdir_separator=:
9166         hardcode_direct=yes
9167         hardcode_direct_absolute=yes
9168         export_dynamic_flag_spec='${wl}-E'
9169         # hardcode_minus_L: Not really in the search PATH,
9170         # but as the default location of the library.
9171         hardcode_minus_L=yes
9172       fi
9173       ;;
9174
9175     hpux11*)
9176       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9177         case $host_cpu in
9178         hppa*64*)
9179           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9180           ;;
9181         ia64*)
9182           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9183           ;;
9184         *)
9185           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9186           ;;
9187         esac
9188       else
9189         case $host_cpu in
9190         hppa*64*)
9191           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192           ;;
9193         ia64*)
9194           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9195           ;;
9196         *)
9197           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198           ;;
9199         esac
9200       fi
9201       if test "$with_gnu_ld" = no; then
9202         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9203         hardcode_libdir_separator=:
9204
9205         case $host_cpu in
9206         hppa*64*|ia64*)
9207           hardcode_direct=no
9208           hardcode_shlibpath_var=no
9209           ;;
9210         *)
9211           hardcode_direct=yes
9212           hardcode_direct_absolute=yes
9213           export_dynamic_flag_spec='${wl}-E'
9214
9215           # hardcode_minus_L: Not really in the search PATH,
9216           # but as the default location of the library.
9217           hardcode_minus_L=yes
9218           ;;
9219         esac
9220       fi
9221       ;;
9222
9223     irix5* | irix6* | nonstopux*)
9224       if test "$GCC" = yes; then
9225         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'
9226         # Try to use the -exported_symbol ld option, if it does not
9227         # work, assume that -exports_file does not work either and
9228         # implicitly export all symbols.
9229         save_LDFLAGS="$LDFLAGS"
9230         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9231         cat >conftest.$ac_ext <<_ACEOF
9232 int foo(void) {}
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (ac_try="$ac_link"
9236 case "(($ac_try" in
9237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238   *) ac_try_echo=$ac_try;;
9239 esac
9240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9241 $as_echo "$ac_try_echo") >&5
9242   (eval "$ac_link") 2>conftest.er1
9243   ac_status=$?
9244   grep -v '^ *+' conftest.er1 >conftest.err
9245   rm -f conftest.er1
9246   cat conftest.err >&5
9247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); } && {
9249          test -z "$ac_c_werror_flag" ||
9250          test ! -s conftest.err
9251        } && test -s conftest$ac_exeext && {
9252          test "$cross_compiling" = yes ||
9253          $as_test_x conftest$ac_exeext
9254        }; then
9255   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'
9256
9257 else
9258   $as_echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261
9262 fi
9263
9264 rm -rf conftest.dSYM
9265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266       conftest$ac_exeext conftest.$ac_ext
9267         LDFLAGS="$save_LDFLAGS"
9268       else
9269         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'
9270         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'
9271       fi
9272       archive_cmds_need_lc='no'
9273       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274       hardcode_libdir_separator=:
9275       inherit_rpath=yes
9276       link_all_deplibs=yes
9277       ;;
9278
9279     netbsd*)
9280       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9281         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9282       else
9283         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9284       fi
9285       hardcode_libdir_flag_spec='-R$libdir'
9286       hardcode_direct=yes
9287       hardcode_shlibpath_var=no
9288       ;;
9289
9290     newsos6)
9291       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292       hardcode_direct=yes
9293       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294       hardcode_libdir_separator=:
9295       hardcode_shlibpath_var=no
9296       ;;
9297
9298     *nto* | *qnx*)
9299       ;;
9300
9301     openbsd*)
9302       if test -f /usr/libexec/ld.so; then
9303         hardcode_direct=yes
9304         hardcode_shlibpath_var=no
9305         hardcode_direct_absolute=yes
9306         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9307           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9308           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9309           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310           export_dynamic_flag_spec='${wl}-E'
9311         else
9312           case $host_os in
9313            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9314              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315              hardcode_libdir_flag_spec='-R$libdir'
9316              ;;
9317            *)
9318              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9319              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9320              ;;
9321           esac
9322         fi
9323       else
9324         ld_shlibs=no
9325       fi
9326       ;;
9327
9328     os2*)
9329       hardcode_libdir_flag_spec='-L$libdir'
9330       hardcode_minus_L=yes
9331       allow_undefined_flag=unsupported
9332       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'
9333       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9334       ;;
9335
9336     osf3*)
9337       if test "$GCC" = yes; then
9338         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9339         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'
9340       else
9341         allow_undefined_flag=' -expect_unresolved \*'
9342         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'
9343       fi
9344       archive_cmds_need_lc='no'
9345       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346       hardcode_libdir_separator=:
9347       ;;
9348
9349     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9350       if test "$GCC" = yes; then
9351         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9352         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'
9353         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354       else
9355         allow_undefined_flag=' -expect_unresolved \*'
9356         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'
9357         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~
9358         $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'
9359
9360         # Both c and cxx compiler support -rpath directly
9361         hardcode_libdir_flag_spec='-rpath $libdir'
9362       fi
9363       archive_cmds_need_lc='no'
9364       hardcode_libdir_separator=:
9365       ;;
9366
9367     solaris*)
9368       no_undefined_flag=' -z defs'
9369       if test "$GCC" = yes; then
9370         wlarc='${wl}'
9371         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9373           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9374       else
9375         case `$CC -V 2>&1` in
9376         *"Compilers 5.0"*)
9377           wlarc=''
9378           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9381           ;;
9382         *)
9383           wlarc='${wl}'
9384           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9385           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9386           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9387           ;;
9388         esac
9389       fi
9390       hardcode_libdir_flag_spec='-R$libdir'
9391       hardcode_shlibpath_var=no
9392       case $host_os in
9393       solaris2.[0-5] | solaris2.[0-5].*) ;;
9394       *)
9395         # The compiler driver will combine and reorder linker options,
9396         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9397         # but is careful enough not to reorder.
9398         # Supported since Solaris 2.6 (maybe 2.5.1?)
9399         if test "$GCC" = yes; then
9400           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9401         else
9402           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9403         fi
9404         ;;
9405       esac
9406       link_all_deplibs=yes
9407       ;;
9408
9409     sunos4*)
9410       if test "x$host_vendor" = xsequent; then
9411         # Use $CC to link under sequent, because it throws in some extra .o
9412         # files that make .init and .fini sections work.
9413         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9414       else
9415         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9416       fi
9417       hardcode_libdir_flag_spec='-L$libdir'
9418       hardcode_direct=yes
9419       hardcode_minus_L=yes
9420       hardcode_shlibpath_var=no
9421       ;;
9422
9423     sysv4)
9424       case $host_vendor in
9425         sni)
9426           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427           hardcode_direct=yes # is this really true???
9428         ;;
9429         siemens)
9430           ## LD is ld it makes a PLAMLIB
9431           ## CC just makes a GrossModule.
9432           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9433           reload_cmds='$CC -r -o $output$reload_objs'
9434           hardcode_direct=no
9435         ;;
9436         motorola)
9437           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9439         ;;
9440       esac
9441       runpath_var='LD_RUN_PATH'
9442       hardcode_shlibpath_var=no
9443       ;;
9444
9445     sysv4.3*)
9446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447       hardcode_shlibpath_var=no
9448       export_dynamic_flag_spec='-Bexport'
9449       ;;
9450
9451     sysv4*MP*)
9452       if test -d /usr/nec; then
9453         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454         hardcode_shlibpath_var=no
9455         runpath_var=LD_RUN_PATH
9456         hardcode_runpath_var=yes
9457         ld_shlibs=yes
9458       fi
9459       ;;
9460
9461     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9462       no_undefined_flag='${wl}-z,text'
9463       archive_cmds_need_lc=no
9464       hardcode_shlibpath_var=no
9465       runpath_var='LD_RUN_PATH'
9466
9467       if test "$GCC" = yes; then
9468         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470       else
9471         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9473       fi
9474       ;;
9475
9476     sysv5* | sco3.2v5* | sco5v6*)
9477       # Note: We can NOT use -z defs as we might desire, because we do not
9478       # link with -lc, and that would cause any symbols used from libc to
9479       # always be unresolved, which means just about no library would
9480       # ever link correctly.  If we're not using GNU ld we use -z text
9481       # though, which does catch some bad symbols but isn't as heavy-handed
9482       # as -z defs.
9483       no_undefined_flag='${wl}-z,text'
9484       allow_undefined_flag='${wl}-z,nodefs'
9485       archive_cmds_need_lc=no
9486       hardcode_shlibpath_var=no
9487       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9488       hardcode_libdir_separator=':'
9489       link_all_deplibs=yes
9490       export_dynamic_flag_spec='${wl}-Bexport'
9491       runpath_var='LD_RUN_PATH'
9492
9493       if test "$GCC" = yes; then
9494         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496       else
9497         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499       fi
9500       ;;
9501
9502     uts4*)
9503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504       hardcode_libdir_flag_spec='-L$libdir'
9505       hardcode_shlibpath_var=no
9506       ;;
9507
9508     *)
9509       ld_shlibs=no
9510       ;;
9511     esac
9512
9513     if test x$host_vendor = xsni; then
9514       case $host in
9515       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9516         export_dynamic_flag_spec='${wl}-Blargedynsym'
9517         ;;
9518       esac
9519     fi
9520   fi
9521
9522 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9523 $as_echo "$ld_shlibs" >&6; }
9524 test "$ld_shlibs" = no && can_build_shared=no
9525
9526 with_gnu_ld=$with_gnu_ld
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 #
9543 # Do we need to explicitly link libc?
9544 #
9545 case "x$archive_cmds_need_lc" in
9546 x|xyes)
9547   # Assume -lc should be added
9548   archive_cmds_need_lc=yes
9549
9550   if test "$enable_shared" = yes && test "$GCC" = yes; then
9551     case $archive_cmds in
9552     *'~'*)
9553       # FIXME: we may have to deal with multi-command sequences.
9554       ;;
9555     '$CC '*)
9556       # Test whether the compiler implicitly links with -lc since on some
9557       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9558       # to ld, don't add -lc before -lgcc.
9559       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9560 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9561       $RM conftest*
9562       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9563
9564       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565   (eval $ac_compile) 2>&5
9566   ac_status=$?
9567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } 2>conftest.err; then
9569         soname=conftest
9570         lib=conftest
9571         libobjs=conftest.$ac_objext
9572         deplibs=
9573         wl=$lt_prog_compiler_wl
9574         pic_flag=$lt_prog_compiler_pic
9575         compiler_flags=-v
9576         linker_flags=-v
9577         verstring=
9578         output_objdir=.
9579         libname=conftest
9580         lt_save_allow_undefined_flag=$allow_undefined_flag
9581         allow_undefined_flag=
9582         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9583   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9584   ac_status=$?
9585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }
9587         then
9588           archive_cmds_need_lc=no
9589         else
9590           archive_cmds_need_lc=yes
9591         fi
9592         allow_undefined_flag=$lt_save_allow_undefined_flag
9593       else
9594         cat conftest.err 1>&5
9595       fi
9596       $RM conftest*
9597       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9598 $as_echo "$archive_cmds_need_lc" >&6; }
9599       ;;
9600     esac
9601   fi
9602   ;;
9603 esac
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
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   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9763
9764 if test "$GCC" = yes; then
9765   case $host_os in
9766     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9767     *) lt_awk_arg="/^libraries:/" ;;
9768   esac
9769   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9770   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9771     # if the path contains ";" then we assume it to be the separator
9772     # otherwise default to the standard path separator (i.e. ":") - it is
9773     # assumed that no part of a normal pathname contains ";" but that should
9774     # okay in the real world where ";" in dirpaths is itself problematic.
9775     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9776   else
9777     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9778   fi
9779   # Ok, now we have the path, separated by spaces, we can step through it
9780   # and add multilib dir if necessary.
9781   lt_tmp_lt_search_path_spec=
9782   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9783   for lt_sys_path in $lt_search_path_spec; do
9784     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9785       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9786     else
9787       test -d "$lt_sys_path" && \
9788         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9789     fi
9790   done
9791   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9792 BEGIN {RS=" "; FS="/|\n";} {
9793   lt_foo="";
9794   lt_count=0;
9795   for (lt_i = NF; lt_i > 0; lt_i--) {
9796     if ($lt_i != "" && $lt_i != ".") {
9797       if ($lt_i == "..") {
9798         lt_count++;
9799       } else {
9800         if (lt_count == 0) {
9801           lt_foo="/" $lt_i lt_foo;
9802         } else {
9803           lt_count--;
9804         }
9805       }
9806     }
9807   }
9808   if (lt_foo != "") { lt_freq[lt_foo]++; }
9809   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9810 }'`
9811   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9812 else
9813   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9814 fi
9815 library_names_spec=
9816 libname_spec='lib$name'
9817 soname_spec=
9818 shrext_cmds=".so"
9819 postinstall_cmds=
9820 postuninstall_cmds=
9821 finish_cmds=
9822 finish_eval=
9823 shlibpath_var=
9824 shlibpath_overrides_runpath=unknown
9825 version_type=none
9826 dynamic_linker="$host_os ld.so"
9827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9828 need_lib_prefix=unknown
9829 hardcode_into_libs=no
9830
9831 # when you set need_version to no, make sure it does not cause -set_version
9832 # flags to be left without arguments
9833 need_version=unknown
9834
9835 case $host_os in
9836 aix3*)
9837   version_type=linux
9838   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9839   shlibpath_var=LIBPATH
9840
9841   # AIX 3 has no versioning support, so we append a major version to the name.
9842   soname_spec='${libname}${release}${shared_ext}$major'
9843   ;;
9844
9845 aix[4-9]*)
9846   version_type=linux
9847   need_lib_prefix=no
9848   need_version=no
9849   hardcode_into_libs=yes
9850   if test "$host_cpu" = ia64; then
9851     # AIX 5 supports IA64
9852     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9853     shlibpath_var=LD_LIBRARY_PATH
9854   else
9855     # With GCC up to 2.95.x, collect2 would create an import file
9856     # for dependence libraries.  The import file would start with
9857     # the line `#! .'.  This would cause the generated library to
9858     # depend on `.', always an invalid library.  This was fixed in
9859     # development snapshots of GCC prior to 3.0.
9860     case $host_os in
9861       aix4 | aix4.[01] | aix4.[01].*)
9862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9863            echo ' yes '
9864            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9865         :
9866       else
9867         can_build_shared=no
9868       fi
9869       ;;
9870     esac
9871     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9872     # soname into executable. Probably we can add versioning support to
9873     # collect2, so additional links can be useful in future.
9874     if test "$aix_use_runtimelinking" = yes; then
9875       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9876       # instead of lib<name>.a to let people know that these are not
9877       # typical AIX shared libraries.
9878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879     else
9880       # We preserve .a as extension for shared libraries through AIX4.2
9881       # and later when we are not doing run time linking.
9882       library_names_spec='${libname}${release}.a $libname.a'
9883       soname_spec='${libname}${release}${shared_ext}$major'
9884     fi
9885     shlibpath_var=LIBPATH
9886   fi
9887   ;;
9888
9889 amigaos*)
9890   case $host_cpu in
9891   powerpc)
9892     # Since July 2007 AmigaOS4 officially supports .so libraries.
9893     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895     ;;
9896   m68k)
9897     library_names_spec='$libname.ixlibrary $libname.a'
9898     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899     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'
9900     ;;
9901   esac
9902   ;;
9903
9904 beos*)
9905   library_names_spec='${libname}${shared_ext}'
9906   dynamic_linker="$host_os ld.so"
9907   shlibpath_var=LIBRARY_PATH
9908   ;;
9909
9910 bsdi[45]*)
9911   version_type=linux
9912   need_version=no
9913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914   soname_spec='${libname}${release}${shared_ext}$major'
9915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9916   shlibpath_var=LD_LIBRARY_PATH
9917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9919   # the default ld.so.conf also contains /usr/contrib/lib and
9920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9921   # libtool to hard-code these into programs
9922   ;;
9923
9924 cygwin* | mingw* | pw32* | cegcc*)
9925   version_type=windows
9926   shrext_cmds=".dll"
9927   need_version=no
9928   need_lib_prefix=no
9929
9930   case $GCC,$host_os in
9931   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9932     library_names_spec='$libname.dll.a'
9933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9934     postinstall_cmds='base_file=`basename \${file}`~
9935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9936       dldir=$destdir/`dirname \$dlpath`~
9937       test -d \$dldir || mkdir -p \$dldir~
9938       $install_prog $dir/$dlname \$dldir/$dlname~
9939       chmod a+x \$dldir/$dlname~
9940       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9941         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9942       fi'
9943     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9944       dlpath=$dir/\$dldll~
9945        $RM \$dlpath'
9946     shlibpath_overrides_runpath=yes
9947
9948     case $host_os in
9949     cygwin*)
9950       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9951       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9953       ;;
9954     mingw* | cegcc*)
9955       # MinGW DLLs use traditional 'lib' prefix
9956       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9957       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9958       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9959         # It is most probably a Windows format PATH printed by
9960         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9961         # path with ; separators, and with drive letters. We can handle the
9962         # drive letters (cygwin fileutils understands them), so leave them,
9963         # especially as we might pass files found there to a mingw objdump,
9964         # which wouldn't understand a cygwinified path. Ahh.
9965         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9966       else
9967         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9968       fi
9969       ;;
9970     pw32*)
9971       # pw32 DLLs use 'pw' prefix rather than 'lib'
9972       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973       ;;
9974     esac
9975     ;;
9976
9977   *)
9978     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9979     ;;
9980   esac
9981   dynamic_linker='Win32 ld.exe'
9982   # FIXME: first we should search . and the directory the executable is in
9983   shlibpath_var=PATH
9984   ;;
9985
9986 darwin* | rhapsody*)
9987   dynamic_linker="$host_os dyld"
9988   version_type=darwin
9989   need_lib_prefix=no
9990   need_version=no
9991   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9992   soname_spec='${libname}${release}${major}$shared_ext'
9993   shlibpath_overrides_runpath=yes
9994   shlibpath_var=DYLD_LIBRARY_PATH
9995   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9996
9997   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9998   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9999   ;;
10000
10001 dgux*)
10002   version_type=linux
10003   need_lib_prefix=no
10004   need_version=no
10005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10006   soname_spec='${libname}${release}${shared_ext}$major'
10007   shlibpath_var=LD_LIBRARY_PATH
10008   ;;
10009
10010 freebsd1*)
10011   dynamic_linker=no
10012   ;;
10013
10014 freebsd* | dragonfly*)
10015   # DragonFly does not have aout.  When/if they implement a new
10016   # versioning mechanism, adjust this.
10017   if test -x /usr/bin/objformat; then
10018     objformat=`/usr/bin/objformat`
10019   else
10020     case $host_os in
10021     freebsd[123]*) objformat=aout ;;
10022     *) objformat=elf ;;
10023     esac
10024   fi
10025   version_type=freebsd-$objformat
10026   case $version_type in
10027     freebsd-elf*)
10028       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10029       need_version=no
10030       need_lib_prefix=no
10031       ;;
10032     freebsd-*)
10033       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10034       need_version=yes
10035       ;;
10036   esac
10037   shlibpath_var=LD_LIBRARY_PATH
10038   case $host_os in
10039   freebsd2*)
10040     shlibpath_overrides_runpath=yes
10041     ;;
10042   freebsd3.[01]* | freebsdelf3.[01]*)
10043     shlibpath_overrides_runpath=yes
10044     hardcode_into_libs=yes
10045     ;;
10046   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10047   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10048     shlibpath_overrides_runpath=no
10049     hardcode_into_libs=yes
10050     ;;
10051   *) # from 4.6 on, and DragonFly
10052     shlibpath_overrides_runpath=yes
10053     hardcode_into_libs=yes
10054     ;;
10055   esac
10056   ;;
10057
10058 gnu*)
10059   version_type=linux
10060   need_lib_prefix=no
10061   need_version=no
10062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10063   soname_spec='${libname}${release}${shared_ext}$major'
10064   shlibpath_var=LD_LIBRARY_PATH
10065   hardcode_into_libs=yes
10066   ;;
10067
10068 hpux9* | hpux10* | hpux11*)
10069   # Give a soname corresponding to the major version so that dld.sl refuses to
10070   # link against other versions.
10071   version_type=sunos
10072   need_lib_prefix=no
10073   need_version=no
10074   case $host_cpu in
10075   ia64*)
10076     shrext_cmds='.so'
10077     hardcode_into_libs=yes
10078     dynamic_linker="$host_os dld.so"
10079     shlibpath_var=LD_LIBRARY_PATH
10080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082     soname_spec='${libname}${release}${shared_ext}$major'
10083     if test "X$HPUX_IA64_MODE" = X32; then
10084       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10085     else
10086       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10087     fi
10088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10089     ;;
10090   hppa*64*)
10091     shrext_cmds='.sl'
10092     hardcode_into_libs=yes
10093     dynamic_linker="$host_os dld.sl"
10094     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097     soname_spec='${libname}${release}${shared_ext}$major'
10098     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10099     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10100     ;;
10101   *)
10102     shrext_cmds='.sl'
10103     dynamic_linker="$host_os dld.sl"
10104     shlibpath_var=SHLIB_PATH
10105     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107     soname_spec='${libname}${release}${shared_ext}$major'
10108     ;;
10109   esac
10110   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10111   postinstall_cmds='chmod 555 $lib'
10112   ;;
10113
10114 interix[3-9]*)
10115   version_type=linux
10116   need_lib_prefix=no
10117   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10121   shlibpath_var=LD_LIBRARY_PATH
10122   shlibpath_overrides_runpath=no
10123   hardcode_into_libs=yes
10124   ;;
10125
10126 irix5* | irix6* | nonstopux*)
10127   case $host_os in
10128     nonstopux*) version_type=nonstopux ;;
10129     *)
10130         if test "$lt_cv_prog_gnu_ld" = yes; then
10131                 version_type=linux
10132         else
10133                 version_type=irix
10134         fi ;;
10135   esac
10136   need_lib_prefix=no
10137   need_version=no
10138   soname_spec='${libname}${release}${shared_ext}$major'
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10140   case $host_os in
10141   irix5* | nonstopux*)
10142     libsuff= shlibsuff=
10143     ;;
10144   *)
10145     case $LD in # libtool.m4 will add one of these switches to LD
10146     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10147       libsuff= shlibsuff= libmagic=32-bit;;
10148     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10149       libsuff=32 shlibsuff=N32 libmagic=N32;;
10150     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10151       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10152     *) libsuff= shlibsuff= libmagic=never-match;;
10153     esac
10154     ;;
10155   esac
10156   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10157   shlibpath_overrides_runpath=no
10158   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10159   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10160   hardcode_into_libs=yes
10161   ;;
10162
10163 # No shared lib support for Linux oldld, aout, or coff.
10164 linux*oldld* | linux*aout* | linux*coff*)
10165   dynamic_linker=no
10166   ;;
10167
10168 # This must be Linux ELF.
10169 linux* | k*bsd*-gnu)
10170   version_type=linux
10171   need_lib_prefix=no
10172   need_version=no
10173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174   soname_spec='${libname}${release}${shared_ext}$major'
10175   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10176   shlibpath_var=LD_LIBRARY_PATH
10177   shlibpath_overrides_runpath=no
10178   # Some binutils ld are patched to set DT_RUNPATH
10179   save_LDFLAGS=$LDFLAGS
10180   save_libdir=$libdir
10181   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10182        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10183   cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189
10190 int
10191 main ()
10192 {
10193
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10205 $as_echo "$ac_try_echo") >&5
10206   (eval "$ac_link") 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } && {
10213          test -z "$ac_c_werror_flag" ||
10214          test ! -s conftest.err
10215        } && test -s conftest$ac_exeext && {
10216          test "$cross_compiling" = yes ||
10217          $as_test_x conftest$ac_exeext
10218        }; then
10219   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10220   shlibpath_overrides_runpath=yes
10221 fi
10222
10223 else
10224   $as_echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227
10228 fi
10229
10230 rm -rf conftest.dSYM
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232       conftest$ac_exeext conftest.$ac_ext
10233   LDFLAGS=$save_LDFLAGS
10234   libdir=$save_libdir
10235
10236   # This implies no fast_install, which is unacceptable.
10237   # Some rework will be needed to allow for fast_install
10238   # before this can be enabled.
10239   hardcode_into_libs=yes
10240
10241   # Add ABI-specific directories to the system library path.
10242   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10243
10244   # Append ld.so.conf contents to the search path
10245   if test -f /etc/ld.so.conf; then
10246     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' ' '`
10247     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10248   fi
10249
10250   # We used to test for /lib/ld.so.1 and disable shared libraries on
10251   # powerpc, because MkLinux only supported shared libraries with the
10252   # GNU dynamic linker.  Since this was broken with cross compilers,
10253   # most powerpc-linux boxes support dynamic linking these days and
10254   # people can always --disable-shared, the test was removed, and we
10255   # assume the GNU/Linux dynamic linker is in use.
10256   dynamic_linker='GNU/Linux ld.so'
10257   ;;
10258
10259 netbsd*)
10260   version_type=sunos
10261   need_lib_prefix=no
10262   need_version=no
10263   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10265     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10266     dynamic_linker='NetBSD (a.out) ld.so'
10267   else
10268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10269     soname_spec='${libname}${release}${shared_ext}$major'
10270     dynamic_linker='NetBSD ld.elf_so'
10271   fi
10272   shlibpath_var=LD_LIBRARY_PATH
10273   shlibpath_overrides_runpath=yes
10274   hardcode_into_libs=yes
10275   ;;
10276
10277 newsos6)
10278   version_type=linux
10279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280   shlibpath_var=LD_LIBRARY_PATH
10281   shlibpath_overrides_runpath=yes
10282   ;;
10283
10284 *nto* | *qnx*)
10285   version_type=qnx
10286   need_lib_prefix=no
10287   need_version=no
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   shlibpath_overrides_runpath=no
10292   hardcode_into_libs=yes
10293   dynamic_linker='ldqnx.so'
10294   ;;
10295
10296 openbsd*)
10297   version_type=sunos
10298   sys_lib_dlsearch_path_spec="/usr/lib"
10299   need_lib_prefix=no
10300   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10301   case $host_os in
10302     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10303     *)                          need_version=no  ;;
10304   esac
10305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10307   shlibpath_var=LD_LIBRARY_PATH
10308   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10309     case $host_os in
10310       openbsd2.[89] | openbsd2.[89].*)
10311         shlibpath_overrides_runpath=no
10312         ;;
10313       *)
10314         shlibpath_overrides_runpath=yes
10315         ;;
10316       esac
10317   else
10318     shlibpath_overrides_runpath=yes
10319   fi
10320   ;;
10321
10322 os2*)
10323   libname_spec='$name'
10324   shrext_cmds=".dll"
10325   need_lib_prefix=no
10326   library_names_spec='$libname${shared_ext} $libname.a'
10327   dynamic_linker='OS/2 ld.exe'
10328   shlibpath_var=LIBPATH
10329   ;;
10330
10331 osf3* | osf4* | osf5*)
10332   version_type=osf
10333   need_lib_prefix=no
10334   need_version=no
10335   soname_spec='${libname}${release}${shared_ext}$major'
10336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337   shlibpath_var=LD_LIBRARY_PATH
10338   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10339   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10340   ;;
10341
10342 rdos*)
10343   dynamic_linker=no
10344   ;;
10345
10346 solaris*)
10347   version_type=linux
10348   need_lib_prefix=no
10349   need_version=no
10350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351   soname_spec='${libname}${release}${shared_ext}$major'
10352   shlibpath_var=LD_LIBRARY_PATH
10353   shlibpath_overrides_runpath=yes
10354   hardcode_into_libs=yes
10355   # ldd complains unless libraries are executable
10356   postinstall_cmds='chmod +x $lib'
10357   ;;
10358
10359 sunos4*)
10360   version_type=sunos
10361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10363   shlibpath_var=LD_LIBRARY_PATH
10364   shlibpath_overrides_runpath=yes
10365   if test "$with_gnu_ld" = yes; then
10366     need_lib_prefix=no
10367   fi
10368   need_version=yes
10369   ;;
10370
10371 sysv4 | sysv4.3*)
10372   version_type=linux
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374   soname_spec='${libname}${release}${shared_ext}$major'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   case $host_vendor in
10377     sni)
10378       shlibpath_overrides_runpath=no
10379       need_lib_prefix=no
10380       runpath_var=LD_RUN_PATH
10381       ;;
10382     siemens)
10383       need_lib_prefix=no
10384       ;;
10385     motorola)
10386       need_lib_prefix=no
10387       need_version=no
10388       shlibpath_overrides_runpath=no
10389       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10390       ;;
10391   esac
10392   ;;
10393
10394 sysv4*MP*)
10395   if test -d /usr/nec ;then
10396     version_type=linux
10397     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10398     soname_spec='$libname${shared_ext}.$major'
10399     shlibpath_var=LD_LIBRARY_PATH
10400   fi
10401   ;;
10402
10403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10404   version_type=freebsd-elf
10405   need_lib_prefix=no
10406   need_version=no
10407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10408   soname_spec='${libname}${release}${shared_ext}$major'
10409   shlibpath_var=LD_LIBRARY_PATH
10410   shlibpath_overrides_runpath=yes
10411   hardcode_into_libs=yes
10412   if test "$with_gnu_ld" = yes; then
10413     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10414   else
10415     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10416     case $host_os in
10417       sco3.2v5*)
10418         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10419         ;;
10420     esac
10421   fi
10422   sys_lib_dlsearch_path_spec='/usr/lib'
10423   ;;
10424
10425 tpf*)
10426   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10427   version_type=linux
10428   need_lib_prefix=no
10429   need_version=no
10430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431   shlibpath_var=LD_LIBRARY_PATH
10432   shlibpath_overrides_runpath=no
10433   hardcode_into_libs=yes
10434   ;;
10435
10436 uts4*)
10437   version_type=linux
10438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439   soname_spec='${libname}${release}${shared_ext}$major'
10440   shlibpath_var=LD_LIBRARY_PATH
10441   ;;
10442
10443 *)
10444   dynamic_linker=no
10445   ;;
10446 esac
10447 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10448 $as_echo "$dynamic_linker" >&6; }
10449 test "$dynamic_linker" = no && can_build_shared=no
10450
10451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10452 if test "$GCC" = yes; then
10453   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10454 fi
10455
10456 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10457   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10458 fi
10459 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10460   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10461 fi
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
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   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10550 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10551 hardcode_action=
10552 if test -n "$hardcode_libdir_flag_spec" ||
10553    test -n "$runpath_var" ||
10554    test "X$hardcode_automatic" = "Xyes" ; then
10555
10556   # We can hardcode non-existent directories.
10557   if test "$hardcode_direct" != no &&
10558      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10559      # have to relink, otherwise we might link with an installed library
10560      # when we should be linking with a yet-to-be-installed one
10561      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10562      test "$hardcode_minus_L" != no; then
10563     # Linking always hardcodes the temporary library directory.
10564     hardcode_action=relink
10565   else
10566     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10567     hardcode_action=immediate
10568   fi
10569 else
10570   # We cannot hardcode anything, or else we can only hardcode existing
10571   # directories.
10572   hardcode_action=unsupported
10573 fi
10574 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10575 $as_echo "$hardcode_action" >&6; }
10576
10577 if test "$hardcode_action" = relink ||
10578    test "$inherit_rpath" = yes; then
10579   # Fast installation is not supported
10580   enable_fast_install=no
10581 elif test "$shlibpath_overrides_runpath" = yes ||
10582      test "$enable_shared" = no; then
10583   # Fast installation is not necessary
10584   enable_fast_install=needless
10585 fi
10586
10587
10588
10589
10590
10591
10592   if test "x$enable_dlopen" != xyes; then
10593   enable_dlopen=unknown
10594   enable_dlopen_self=unknown
10595   enable_dlopen_self_static=unknown
10596 else
10597   lt_cv_dlopen=no
10598   lt_cv_dlopen_libs=
10599
10600   case $host_os in
10601   beos*)
10602     lt_cv_dlopen="load_add_on"
10603     lt_cv_dlopen_libs=
10604     lt_cv_dlopen_self=yes
10605     ;;
10606
10607   mingw* | pw32* | cegcc*)
10608     lt_cv_dlopen="LoadLibrary"
10609     lt_cv_dlopen_libs=
10610     ;;
10611
10612   cygwin*)
10613     lt_cv_dlopen="dlopen"
10614     lt_cv_dlopen_libs=
10615     ;;
10616
10617   darwin*)
10618   # if libdl is installed we need to link against it
10619     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10622   $as_echo_n "(cached) " >&6
10623 else
10624   ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-ldl  $LIBS"
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632
10633 /* Override any GCC internal prototype to avoid an error.
10634    Use char because int might match the return type of a GCC
10635    builtin and then its argument prototype would still apply.  */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 char dlopen ();
10640 int
10641 main ()
10642 {
10643 return dlopen ();
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10655 $as_echo "$ac_try_echo") >&5
10656   (eval "$ac_link") 2>conftest.er1
10657   ac_status=$?
10658   grep -v '^ *+' conftest.er1 >conftest.err
10659   rm -f conftest.er1
10660   cat conftest.err >&5
10661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } && {
10663          test -z "$ac_c_werror_flag" ||
10664          test ! -s conftest.err
10665        } && test -s conftest$ac_exeext && {
10666          test "$cross_compiling" = yes ||
10667          $as_test_x conftest$ac_exeext
10668        }; then
10669   ac_cv_lib_dl_dlopen=yes
10670 else
10671   $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674         ac_cv_lib_dl_dlopen=no
10675 fi
10676
10677 rm -rf conftest.dSYM
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679       conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_check_lib_save_LIBS
10681 fi
10682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10683 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10684 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10685   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10686 else
10687
10688     lt_cv_dlopen="dyld"
10689     lt_cv_dlopen_libs=
10690     lt_cv_dlopen_self=yes
10691
10692 fi
10693
10694     ;;
10695
10696   *)
10697     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10698 $as_echo_n "checking for shl_load... " >&6; }
10699 if test "${ac_cv_func_shl_load+set}" = set; then
10700   $as_echo_n "(cached) " >&6
10701 else
10702   cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10710 #define shl_load innocuous_shl_load
10711
10712 /* System header to define __stub macros and hopefully few prototypes,
10713     which can conflict with char shl_load (); below.
10714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715     <limits.h> exists even on freestanding compilers.  */
10716
10717 #ifdef __STDC__
10718 # include <limits.h>
10719 #else
10720 # include <assert.h>
10721 #endif
10722
10723 #undef shl_load
10724
10725 /* Override any GCC internal prototype to avoid an error.
10726    Use char because int might match the return type of a GCC
10727    builtin and then its argument prototype would still apply.  */
10728 #ifdef __cplusplus
10729 extern "C"
10730 #endif
10731 char shl_load ();
10732 /* The GNU C library defines this for functions which it implements
10733     to always fail with ENOSYS.  Some functions are actually named
10734     something starting with __ and the normal name is an alias.  */
10735 #if defined __stub_shl_load || defined __stub___shl_load
10736 choke me
10737 #endif
10738
10739 int
10740 main ()
10741 {
10742 return shl_load ();
10743   ;
10744   return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10754 $as_echo "$ac_try_echo") >&5
10755   (eval "$ac_link") 2>conftest.er1
10756   ac_status=$?
10757   grep -v '^ *+' conftest.er1 >conftest.err
10758   rm -f conftest.er1
10759   cat conftest.err >&5
10760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } && {
10762          test -z "$ac_c_werror_flag" ||
10763          test ! -s conftest.err
10764        } && test -s conftest$ac_exeext && {
10765          test "$cross_compiling" = yes ||
10766          $as_test_x conftest$ac_exeext
10767        }; then
10768   ac_cv_func_shl_load=yes
10769 else
10770   $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773         ac_cv_func_shl_load=no
10774 fi
10775
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778       conftest$ac_exeext conftest.$ac_ext
10779 fi
10780 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10781 $as_echo "$ac_cv_func_shl_load" >&6; }
10782 if test "x$ac_cv_func_shl_load" = x""yes; then
10783   lt_cv_dlopen="shl_load"
10784 else
10785   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10786 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10787 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10788   $as_echo_n "(cached) " >&6
10789 else
10790   ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-ldld  $LIBS"
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798
10799 /* Override any GCC internal prototype to avoid an error.
10800    Use char because int might match the return type of a GCC
10801    builtin and then its argument prototype would still apply.  */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char shl_load ();
10806 int
10807 main ()
10808 {
10809 return shl_load ();
10810   ;
10811   return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822   (eval "$ac_link") 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } && {
10829          test -z "$ac_c_werror_flag" ||
10830          test ! -s conftest.err
10831        } && test -s conftest$ac_exeext && {
10832          test "$cross_compiling" = yes ||
10833          $as_test_x conftest$ac_exeext
10834        }; then
10835   ac_cv_lib_dld_shl_load=yes
10836 else
10837   $as_echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840         ac_cv_lib_dld_shl_load=no
10841 fi
10842
10843 rm -rf conftest.dSYM
10844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10845       conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10849 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10850 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10851   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10852 else
10853   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10854 $as_echo_n "checking for dlopen... " >&6; }
10855 if test "${ac_cv_func_dlopen+set}" = set; then
10856   $as_echo_n "(cached) " >&6
10857 else
10858   cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10866 #define dlopen innocuous_dlopen
10867
10868 /* System header to define __stub macros and hopefully few prototypes,
10869     which can conflict with char dlopen (); below.
10870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871     <limits.h> exists even on freestanding compilers.  */
10872
10873 #ifdef __STDC__
10874 # include <limits.h>
10875 #else
10876 # include <assert.h>
10877 #endif
10878
10879 #undef dlopen
10880
10881 /* Override any GCC internal prototype to avoid an error.
10882    Use char because int might match the return type of a GCC
10883    builtin and then its argument prototype would still apply.  */
10884 #ifdef __cplusplus
10885 extern "C"
10886 #endif
10887 char dlopen ();
10888 /* The GNU C library defines this for functions which it implements
10889     to always fail with ENOSYS.  Some functions are actually named
10890     something starting with __ and the normal name is an alias.  */
10891 #if defined __stub_dlopen || defined __stub___dlopen
10892 choke me
10893 #endif
10894
10895 int
10896 main ()
10897 {
10898 return dlopen ();
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10910 $as_echo "$ac_try_echo") >&5
10911   (eval "$ac_link") 2>conftest.er1
10912   ac_status=$?
10913   grep -v '^ *+' conftest.er1 >conftest.err
10914   rm -f conftest.er1
10915   cat conftest.err >&5
10916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } && {
10918          test -z "$ac_c_werror_flag" ||
10919          test ! -s conftest.err
10920        } && test -s conftest$ac_exeext && {
10921          test "$cross_compiling" = yes ||
10922          $as_test_x conftest$ac_exeext
10923        }; then
10924   ac_cv_func_dlopen=yes
10925 else
10926   $as_echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929         ac_cv_func_dlopen=no
10930 fi
10931
10932 rm -rf conftest.dSYM
10933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934       conftest$ac_exeext conftest.$ac_ext
10935 fi
10936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10937 $as_echo "$ac_cv_func_dlopen" >&6; }
10938 if test "x$ac_cv_func_dlopen" = x""yes; then
10939   lt_cv_dlopen="dlopen"
10940 else
10941   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944   $as_echo_n "(cached) " >&6
10945 else
10946   ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldl  $LIBS"
10948 cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954
10955 /* Override any GCC internal prototype to avoid an error.
10956    Use char because int might match the return type of a GCC
10957    builtin and then its argument prototype would still apply.  */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char dlopen ();
10962 int
10963 main ()
10964 {
10965 return dlopen ();
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10977 $as_echo "$ac_try_echo") >&5
10978   (eval "$ac_link") 2>conftest.er1
10979   ac_status=$?
10980   grep -v '^ *+' conftest.er1 >conftest.err
10981   rm -f conftest.er1
10982   cat conftest.err >&5
10983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } && {
10985          test -z "$ac_c_werror_flag" ||
10986          test ! -s conftest.err
10987        } && test -s conftest$ac_exeext && {
10988          test "$cross_compiling" = yes ||
10989          $as_test_x conftest$ac_exeext
10990        }; then
10991   ac_cv_lib_dl_dlopen=yes
10992 else
10993   $as_echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996         ac_cv_lib_dl_dlopen=no
10997 fi
10998
10999 rm -rf conftest.dSYM
11000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11001       conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11003 fi
11004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11005 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11006 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11007   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11008 else
11009   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11010 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11012   $as_echo_n "(cached) " >&6
11013 else
11014   ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lsvld  $LIBS"
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022
11023 /* Override any GCC internal prototype to avoid an error.
11024    Use char because int might match the return type of a GCC
11025    builtin and then its argument prototype would still apply.  */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char dlopen ();
11030 int
11031 main ()
11032 {
11033 return dlopen ();
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11045 $as_echo "$ac_try_echo") >&5
11046   (eval "$ac_link") 2>conftest.er1
11047   ac_status=$?
11048   grep -v '^ *+' conftest.er1 >conftest.err
11049   rm -f conftest.er1
11050   cat conftest.err >&5
11051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } && {
11053          test -z "$ac_c_werror_flag" ||
11054          test ! -s conftest.err
11055        } && test -s conftest$ac_exeext && {
11056          test "$cross_compiling" = yes ||
11057          $as_test_x conftest$ac_exeext
11058        }; then
11059   ac_cv_lib_svld_dlopen=yes
11060 else
11061   $as_echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064         ac_cv_lib_svld_dlopen=no
11065 fi
11066
11067 rm -rf conftest.dSYM
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069       conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS
11071 fi
11072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11073 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11074 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11075   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11076 else
11077   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11078 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11079 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11080   $as_echo_n "(cached) " >&6
11081 else
11082   ac_check_lib_save_LIBS=$LIBS
11083 LIBS="-ldld  $LIBS"
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h.  */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h.  */
11090
11091 /* Override any GCC internal prototype to avoid an error.
11092    Use char because int might match the return type of a GCC
11093    builtin and then its argument prototype would still apply.  */
11094 #ifdef __cplusplus
11095 extern "C"
11096 #endif
11097 char dld_link ();
11098 int
11099 main ()
11100 {
11101 return dld_link ();
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (ac_try="$ac_link"
11108 case "(($ac_try" in
11109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110   *) ac_try_echo=$ac_try;;
11111 esac
11112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11113 $as_echo "$ac_try_echo") >&5
11114   (eval "$ac_link") 2>conftest.er1
11115   ac_status=$?
11116   grep -v '^ *+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } && {
11121          test -z "$ac_c_werror_flag" ||
11122          test ! -s conftest.err
11123        } && test -s conftest$ac_exeext && {
11124          test "$cross_compiling" = yes ||
11125          $as_test_x conftest$ac_exeext
11126        }; then
11127   ac_cv_lib_dld_dld_link=yes
11128 else
11129   $as_echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11131
11132         ac_cv_lib_dld_dld_link=no
11133 fi
11134
11135 rm -rf conftest.dSYM
11136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11137       conftest$ac_exeext conftest.$ac_ext
11138 LIBS=$ac_check_lib_save_LIBS
11139 fi
11140 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11141 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11142 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11143   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11144 fi
11145
11146
11147 fi
11148
11149
11150 fi
11151
11152
11153 fi
11154
11155
11156 fi
11157
11158
11159 fi
11160
11161     ;;
11162   esac
11163
11164   if test "x$lt_cv_dlopen" != xno; then
11165     enable_dlopen=yes
11166   else
11167     enable_dlopen=no
11168   fi
11169
11170   case $lt_cv_dlopen in
11171   dlopen)
11172     save_CPPFLAGS="$CPPFLAGS"
11173     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11174
11175     save_LDFLAGS="$LDFLAGS"
11176     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11177
11178     save_LIBS="$LIBS"
11179     LIBS="$lt_cv_dlopen_libs $LIBS"
11180
11181     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11182 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11183 if test "${lt_cv_dlopen_self+set}" = set; then
11184   $as_echo_n "(cached) " >&6
11185 else
11186           if test "$cross_compiling" = yes; then :
11187   lt_cv_dlopen_self=cross
11188 else
11189   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190   lt_status=$lt_dlunknown
11191   cat > conftest.$ac_ext <<_LT_EOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11194
11195 #if HAVE_DLFCN_H
11196 #include <dlfcn.h>
11197 #endif
11198
11199 #include <stdio.h>
11200
11201 #ifdef RTLD_GLOBAL
11202 #  define LT_DLGLOBAL           RTLD_GLOBAL
11203 #else
11204 #  ifdef DL_GLOBAL
11205 #    define LT_DLGLOBAL         DL_GLOBAL
11206 #  else
11207 #    define LT_DLGLOBAL         0
11208 #  endif
11209 #endif
11210
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212    find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11214 #  ifdef RTLD_LAZY
11215 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11216 #  else
11217 #    ifdef DL_LAZY
11218 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11219 #    else
11220 #      ifdef RTLD_NOW
11221 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11222 #      else
11223 #        ifdef DL_NOW
11224 #          define LT_DLLAZY_OR_NOW      DL_NOW
11225 #        else
11226 #          define LT_DLLAZY_OR_NOW      0
11227 #        endif
11228 #      endif
11229 #    endif
11230 #  endif
11231 #endif
11232
11233 void fnord() { int i=42;}
11234 int main ()
11235 {
11236   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11237   int status = $lt_dlunknown;
11238
11239   if (self)
11240     {
11241       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11242       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11243       /* dlclose (self); */
11244     }
11245   else
11246     puts (dlerror ());
11247
11248   return status;
11249 }
11250 _LT_EOF
11251   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252   (eval $ac_link) 2>&5
11253   ac_status=$?
11254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11256     (./conftest; exit; ) >&5 2>/dev/null
11257     lt_status=$?
11258     case x$lt_status in
11259       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11260       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11261       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11262     esac
11263   else :
11264     # compilation failed
11265     lt_cv_dlopen_self=no
11266   fi
11267 fi
11268 rm -fr conftest*
11269
11270
11271 fi
11272 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11273 $as_echo "$lt_cv_dlopen_self" >&6; }
11274
11275     if test "x$lt_cv_dlopen_self" = xyes; then
11276       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11277       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11278 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11279 if test "${lt_cv_dlopen_self_static+set}" = set; then
11280   $as_echo_n "(cached) " >&6
11281 else
11282           if test "$cross_compiling" = yes; then :
11283   lt_cv_dlopen_self_static=cross
11284 else
11285   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11286   lt_status=$lt_dlunknown
11287   cat > conftest.$ac_ext <<_LT_EOF
11288 #line 11288 "configure"
11289 #include "confdefs.h"
11290
11291 #if HAVE_DLFCN_H
11292 #include <dlfcn.h>
11293 #endif
11294
11295 #include <stdio.h>
11296
11297 #ifdef RTLD_GLOBAL
11298 #  define LT_DLGLOBAL           RTLD_GLOBAL
11299 #else
11300 #  ifdef DL_GLOBAL
11301 #    define LT_DLGLOBAL         DL_GLOBAL
11302 #  else
11303 #    define LT_DLGLOBAL         0
11304 #  endif
11305 #endif
11306
11307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11308    find out it does not work in some platform. */
11309 #ifndef LT_DLLAZY_OR_NOW
11310 #  ifdef RTLD_LAZY
11311 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11312 #  else
11313 #    ifdef DL_LAZY
11314 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11315 #    else
11316 #      ifdef RTLD_NOW
11317 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11318 #      else
11319 #        ifdef DL_NOW
11320 #          define LT_DLLAZY_OR_NOW      DL_NOW
11321 #        else
11322 #          define LT_DLLAZY_OR_NOW      0
11323 #        endif
11324 #      endif
11325 #    endif
11326 #  endif
11327 #endif
11328
11329 void fnord() { int i=42;}
11330 int main ()
11331 {
11332   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11333   int status = $lt_dlunknown;
11334
11335   if (self)
11336     {
11337       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11338       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11339       /* dlclose (self); */
11340     }
11341   else
11342     puts (dlerror ());
11343
11344   return status;
11345 }
11346 _LT_EOF
11347   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348   (eval $ac_link) 2>&5
11349   ac_status=$?
11350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11352     (./conftest; exit; ) >&5 2>/dev/null
11353     lt_status=$?
11354     case x$lt_status in
11355       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11356       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11357       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11358     esac
11359   else :
11360     # compilation failed
11361     lt_cv_dlopen_self_static=no
11362   fi
11363 fi
11364 rm -fr conftest*
11365
11366
11367 fi
11368 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11369 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11370     fi
11371
11372     CPPFLAGS="$save_CPPFLAGS"
11373     LDFLAGS="$save_LDFLAGS"
11374     LIBS="$save_LIBS"
11375     ;;
11376   esac
11377
11378   case $lt_cv_dlopen_self in
11379   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11380   *) enable_dlopen_self=unknown ;;
11381   esac
11382
11383   case $lt_cv_dlopen_self_static in
11384   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11385   *) enable_dlopen_self_static=unknown ;;
11386   esac
11387 fi
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405 striplib=
11406 old_striplib=
11407 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11408 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11409 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11410   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11411   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11412   { $as_echo "$as_me:$LINENO: result: yes" >&5
11413 $as_echo "yes" >&6; }
11414 else
11415 # FIXME - insert some real tests, host_os isn't really good enough
11416   case $host_os in
11417   darwin*)
11418     if test -n "$STRIP" ; then
11419       striplib="$STRIP -x"
11420       old_striplib="$STRIP -S"
11421       { $as_echo "$as_me:$LINENO: result: yes" >&5
11422 $as_echo "yes" >&6; }
11423     else
11424       { $as_echo "$as_me:$LINENO: result: no" >&5
11425 $as_echo "no" >&6; }
11426     fi
11427     ;;
11428   *)
11429     { $as_echo "$as_me:$LINENO: result: no" >&5
11430 $as_echo "no" >&6; }
11431     ;;
11432   esac
11433 fi
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446   # Report which library types will actually be built
11447   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11448 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11449   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11450 $as_echo "$can_build_shared" >&6; }
11451
11452   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11453 $as_echo_n "checking whether to build shared libraries... " >&6; }
11454   test "$can_build_shared" = "no" && enable_shared=no
11455
11456   # On AIX, shared libraries and static libraries use the same namespace, and
11457   # are all built from PIC.
11458   case $host_os in
11459   aix3*)
11460     test "$enable_shared" = yes && enable_static=no
11461     if test -n "$RANLIB"; then
11462       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11463       postinstall_cmds='$RANLIB $lib'
11464     fi
11465     ;;
11466
11467   aix[4-9]*)
11468     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11469       test "$enable_shared" = yes && enable_static=no
11470     fi
11471     ;;
11472   esac
11473   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11474 $as_echo "$enable_shared" >&6; }
11475
11476   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11477 $as_echo_n "checking whether to build static libraries... " >&6; }
11478   # Make sure either enable_shared or enable_static is yes.
11479   test "$enable_shared" = yes || enable_static=yes
11480   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11481 $as_echo "$enable_static" >&6; }
11482
11483
11484
11485
11486 fi
11487 ac_ext=c
11488 ac_cpp='$CPP $CPPFLAGS'
11489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11492
11493 CC="$lt_save_CC"
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507         ac_config_commands="$ac_config_commands libtool"
11508
11509
11510
11511
11512 # Only expand once:
11513
11514
11515 # By default we simply use the C compiler to build assembly code.
11516
11517 test "${CCAS+set}" = set || CCAS=$CC
11518 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11519
11520
11521
11522 depcc="$CCAS"   am_compiler_list=
11523
11524 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11525 $as_echo_n "checking dependency style of $depcc... " >&6; }
11526 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11527   $as_echo_n "(cached) " >&6
11528 else
11529   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11530   # We make a subdir and do the tests there.  Otherwise we can end up
11531   # making bogus files that we don't know about and never remove.  For
11532   # instance it was reported that on HP-UX the gcc test will end up
11533   # making a dummy file named `D' -- because `-MD' means `put the output
11534   # in D'.
11535   mkdir conftest.dir
11536   # Copy depcomp to subdir because otherwise we won't find it if we're
11537   # using a relative directory.
11538   cp "$am_depcomp" conftest.dir
11539   cd conftest.dir
11540   # We will build objects and dependencies in a subdirectory because
11541   # it helps to detect inapplicable dependency modes.  For instance
11542   # both Tru64's cc and ICC support -MD to output dependencies as a
11543   # side effect of compilation, but ICC will put the dependencies in
11544   # the current directory while Tru64 will put them in the object
11545   # directory.
11546   mkdir sub
11547
11548   am_cv_CCAS_dependencies_compiler_type=none
11549   if test "$am_compiler_list" = ""; then
11550      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11551   fi
11552   am__universal=false
11553
11554
11555   for depmode in $am_compiler_list; do
11556     # Setup a source with many dependencies, because some compilers
11557     # like to wrap large dependency lists on column 80 (with \), and
11558     # we should not choose a depcomp mode which is confused by this.
11559     #
11560     # We need to recreate these files for each test, as the compiler may
11561     # overwrite some of them when testing with obscure command lines.
11562     # This happens at least with the AIX C compiler.
11563     : > sub/conftest.c
11564     for i in 1 2 3 4 5 6; do
11565       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11566       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11567       # Solaris 8's {/usr,}/bin/sh.
11568       touch sub/conftst$i.h
11569     done
11570     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11571
11572     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11573     # mode.  It turns out that the SunPro C++ compiler does not properly
11574     # handle `-M -o', and we need to detect this.  Also, some Intel
11575     # versions had trouble with output in subdirs
11576     am__obj=sub/conftest.${OBJEXT-o}
11577     am__minus_obj="-o $am__obj"
11578     case $depmode in
11579     gcc)
11580       # This depmode causes a compiler race in universal mode.
11581       test "$am__universal" = false || continue
11582       ;;
11583     nosideeffect)
11584       # after this tag, mechanisms are not by side-effect, so they'll
11585       # only be used when explicitly requested
11586       if test "x$enable_dependency_tracking" = xyes; then
11587         continue
11588       else
11589         break
11590       fi
11591       ;;
11592     msvisualcpp | msvcmsys)
11593       # This compiler won't grok `-c -o', but also, the minuso test has
11594       # not run yet.  These depmodes are late enough in the game, and
11595       # so weak that their functioning should not be impacted.
11596       am__obj=conftest.${OBJEXT-o}
11597       am__minus_obj=
11598       ;;
11599     none) break ;;
11600     esac
11601     if depmode=$depmode \
11602        source=sub/conftest.c object=$am__obj \
11603        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11604        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11605          >/dev/null 2>conftest.err &&
11606        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11607        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11608        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11609        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11610       # icc doesn't choke on unknown options, it will just issue warnings
11611       # or remarks (even with -Werror).  So we grep stderr for any message
11612       # that says an option was ignored or not supported.
11613       # When given -MP, icc 7.0 and 7.1 complain thusly:
11614       #   icc: Command line warning: ignoring option '-M'; no argument required
11615       # The diagnosis changed in icc 8.0:
11616       #   icc: Command line remark: option '-MP' not supported
11617       if (grep 'ignoring option' conftest.err ||
11618           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11619         am_cv_CCAS_dependencies_compiler_type=$depmode
11620         break
11621       fi
11622     fi
11623   done
11624
11625   cd ..
11626   rm -rf conftest.dir
11627 else
11628   am_cv_CCAS_dependencies_compiler_type=none
11629 fi
11630
11631 fi
11632 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11633 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11634 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11635
11636  if
11637   test "x$enable_dependency_tracking" != xno \
11638   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11639   am__fastdepCCAS_TRUE=
11640   am__fastdepCCAS_FALSE='#'
11641 else
11642   am__fastdepCCAS_TRUE='#'
11643   am__fastdepCCAS_FALSE=
11644 fi
11645
11646
11647
11648
11649         { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11650 $as_echo_n "checking zfs author... " >&6; }
11651         { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11652 $as_echo "$ZFS_META_AUTHOR" >&6; }
11653
11654         { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11655 $as_echo_n "checking zfs license... " >&6; }
11656         { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11657 $as_echo "$ZFS_META_LICENSE" >&6; }
11658
11659
11660
11661         RPM=rpm
11662         RPMBUILD=rpmbuild
11663
11664         { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11665 $as_echo_n "checking whether $RPM is available... " >&6; }
11666         if tmp=$($RPM --version 2>/dev/null); then
11667
11668                 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11669                 HAVE_RPM=yes
11670                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11671 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11672
11673 else
11674
11675                 HAVE_RPM=no
11676                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11677 $as_echo "$HAVE_RPM" >&6; }
11678
11679 fi
11680
11681
11682         { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11683 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11684         if tmp=$($RPMBUILD --version 2>/dev/null); then
11685
11686                 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11687                 HAVE_RPMBUILD=yes
11688                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11689 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11690
11691 else
11692
11693                 HAVE_RPMBUILD=no
11694                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11695 $as_echo "$HAVE_RPMBUILD" >&6; }
11696
11697 fi
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709         DPKG=dpkg
11710         DPKGBUILD=dpkg-buildpackage
11711
11712         { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11713 $as_echo_n "checking whether $DPKG is available... " >&6; }
11714         if tmp=$($DPKG --version 2>/dev/null); then
11715
11716                 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11717                 HAVE_DPKG=yes
11718                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11719 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11720
11721 else
11722
11723                 HAVE_DPKG=no
11724                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11725 $as_echo "$HAVE_DPKG" >&6; }
11726
11727 fi
11728
11729
11730         { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11731 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11732         if tmp=$($DPKGBUILD --version 2>/dev/null); then
11733
11734                 DPKGBUILD_VERSION=$(echo $tmp | \
11735                     $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11736                 HAVE_DPKGBUILD=yes
11737                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11738 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11739
11740 else
11741
11742                 HAVE_DPKGBUILD=no
11743                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11744 $as_echo "$HAVE_DPKGBUILD" >&6; }
11745
11746 fi
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758         ALIEN=alien
11759
11760         { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11761 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11762         if tmp=$($ALIEN --version 2>/dev/null); then
11763
11764                 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11765                 HAVE_ALIEN=yes
11766                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11767 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11768
11769 else
11770
11771                 HAVE_ALIEN=no
11772                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11773 $as_echo "$HAVE_ALIEN" >&6; }
11774
11775 fi
11776
11777
11778
11779
11780
11781
11782
11783         { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11784 $as_echo_n "checking linux distribution... " >&6; }
11785         if test -f /etc/redhat-release ; then
11786                 VENDOR=redhat ;
11787         elif test -f /etc/fedora-release ; then
11788                 VENDOR=fedora ;
11789         elif test -f /etc/gentoo-release ; then
11790                 VENDOR=gentoo ;
11791         elif test -f /etc/debian_version ; then
11792                 VENDOR=debian ;
11793         elif test -f /etc/SuSE-release ; then
11794                 VENDOR=sles ;
11795         elif test -f /etc/slackware-version ; then
11796                 VENDOR=slackware ;
11797         elif test -f /etc/lsb-release ; then
11798                 VENDOR=ubuntu ;
11799         elif test -f /etc/lunar.release ; then
11800                 VENDOR=lunar ;
11801         else
11802                 VENDOR= ;
11803         fi
11804         { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11805 $as_echo "$VENDOR" >&6; }
11806
11807
11808         { $as_echo "$as_me:$LINENO: checking default package type" >&5
11809 $as_echo_n "checking default package type... " >&6; }
11810         case "$VENDOR" in
11811                 redhat)     DEFAULT_PACKAGE=rpm ;;
11812                 fedora)     DEFAULT_PACKAGE=rpm ;;
11813                 ubuntu)     DEFAULT_PACKAGE=deb ;;
11814                 debian)     DEFAULT_PACKAGE=deb ;;
11815                 sles)       DEFAULT_PACKAGE=rpm ;;
11816                 slackware)  DEFAULT_PACKAGE=tgz ;;
11817                 gentoo)     DEFAULT_PACKAGE=tgz ;;
11818                 lunar)      DEFAULT_PACKAGE=tgz ;;
11819                 *)          DEFAULT_PACKAGE=rpm ;;
11820         esac
11821
11822         { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11823 $as_echo "$DEFAULT_PACKAGE" >&6; }
11824
11825
11826         { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11827 $as_echo_n "checking default init script type... " >&6; }
11828         case "$VENDOR" in
11829                 redhat)     DEFAULT_INIT_SCRIPT=redhat ;;
11830                 fedora)     DEFAULT_INIT_SCRIPT=fedora ;;
11831                 ubuntu)     DEFAULT_INIT_SCRIPT=lsb ;;
11832                 debian)     DEFAULT_INIT_SCRIPT=lsb ;;
11833                 sles)       DEFAULT_INIT_SCRIPT=lsb ;;
11834                 slackware)  DEFAULT_INIT_SCRIPT=lsb ;;
11835                 gentoo)     DEFAULT_INIT_SCRIPT=gentoo ;;
11836                 lunar)      DEFAULT_INIT_SCRIPT=lunar ;;
11837                 *)          DEFAULT_INIT_SCRIPT=lsb ;;
11838         esac
11839
11840         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11841 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11842
11843
11844
11845
11846         TARGET_ASM_DIR=asm-generic
11847
11848
11849         ZFS_CONFIG=all
11850
11851 # Check whether --with-config was given.
11852 if test "${with_config+set}" = set; then
11853   withval=$with_config; ZFS_CONFIG="$withval"
11854 fi
11855
11856
11857         { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11858 $as_echo_n "checking zfs config... " >&6; }
11859         { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11860 $as_echo "$ZFS_CONFIG" >&6; };
11861
11862
11863
11864
11865         { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11866 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11867
11868         saved_flags="$CFLAGS"
11869         CFLAGS="$CFLAGS -Wunused-but-set-variable"
11870
11871         if test "$cross_compiling" = yes; then
11872   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11874 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11875 See \`config.log' for more details." >&5
11876 $as_echo "$as_me: error: cannot run test program while cross compiling
11877 See \`config.log' for more details." >&2;}
11878    { (exit 1); exit 1; }; }; }
11879 else
11880   cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886
11887 int
11888 main ()
11889 {
11890
11891   ;
11892   return 0;
11893 }
11894 _ACEOF
11895 rm -f conftest$ac_exeext
11896 if { (ac_try="$ac_link"
11897 case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11902 $as_echo "$ac_try_echo") >&5
11903   (eval "$ac_link") 2>&5
11904   ac_status=$?
11905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11907   { (case "(($ac_try" in
11908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909   *) ac_try_echo=$ac_try;;
11910 esac
11911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11912 $as_echo "$ac_try_echo") >&5
11913   (eval "$ac_try") 2>&5
11914   ac_status=$?
11915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; }; then
11917
11918                 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
11919                 { $as_echo "$as_me:$LINENO: result: yes" >&5
11920 $as_echo "yes" >&6; }
11921
11922 else
11923   $as_echo "$as_me: program exited with status $ac_status" >&5
11924 $as_echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ( exit $ac_status )
11928
11929                 NO_UNUSED_BUT_SET_VARIABLE=
11930                 { $as_echo "$as_me:$LINENO: result: no" >&5
11931 $as_echo "no" >&6; }
11932
11933 fi
11934 rm -rf conftest.dSYM
11935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11936 fi
11937
11938
11939
11940         CFLAGS="$saved_flags"
11941
11942
11943
11944
11945         case "$ZFS_CONFIG" in
11946                 kernel)
11947
11948
11949 # Check whether --with-linux was given.
11950 if test "${with_linux+set}" = set; then
11951   withval=$with_linux; kernelsrc="$withval"
11952 fi
11953
11954
11955
11956 # Check whether --with-linux-obj was given.
11957 if test "${with_linux_obj+set}" = set; then
11958   withval=$with_linux_obj; kernelbuild="$withval"
11959 fi
11960
11961
11962         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11963 $as_echo_n "checking kernel source directory... " >&6; }
11964         if test -z "$kernelsrc"; then
11965                 if test -e "/lib/modules/$(uname -r)/source"; then
11966                         headersdir="/lib/modules/$(uname -r)/source"
11967                         sourcelink=$(readlink -f "$headersdir")
11968                 elif test -e "/lib/modules/$(uname -r)/build"; then
11969                         headersdir="/lib/modules/$(uname -r)/build"
11970                         sourcelink=$(readlink -f "$headersdir")
11971                 else
11972                         sourcelink=$(ls -1d /usr/src/kernels/* \
11973                                      /usr/src/linux-* \
11974                                      2>/dev/null | grep -v obj | tail -1)
11975                 fi
11976
11977                 if test -n "$sourcelink" && test -e ${sourcelink}; then
11978                         kernelsrc=`readlink -f ${sourcelink}`
11979                 else
11980                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
11981 $as_echo "Not found" >&6; }
11982                         { { $as_echo "$as_me:$LINENO: error:
11983         *** Please make sure the kernel devel package for your distribution
11984         *** is installed then try again.  If that fails you can specify the
11985         *** location of the kernel source with the '--with-linux=PATH' option." >&5
11986 $as_echo "$as_me: error:
11987         *** Please make sure the kernel devel package for your distribution
11988         *** is installed then try again.  If that fails you can specify the
11989         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11990    { (exit 1); exit 1; }; }
11991                 fi
11992         else
11993                 if test "$kernelsrc" = "NONE"; then
11994                         kernsrcver=NONE
11995                 fi
11996         fi
11997
11998         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11999 $as_echo "$kernelsrc" >&6; }
12000         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12001 $as_echo_n "checking kernel build directory... " >&6; }
12002         if test -z "$kernelbuild"; then
12003                 if test -e "/lib/modules/$(uname -r)/build"; then
12004                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12005                 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12006                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12007                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12008                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12009                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12010                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12011                 else
12012                         kernelbuild=${kernelsrc}
12013                 fi
12014         fi
12015         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12016 $as_echo "$kernelbuild" >&6; }
12017
12018         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12019 $as_echo_n "checking kernel source version... " >&6; }
12020         utsrelease1=$kernelbuild/include/linux/version.h
12021         utsrelease2=$kernelbuild/include/linux/utsrelease.h
12022         utsrelease3=$kernelbuild/include/generated/utsrelease.h
12023         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12024                 utsrelease=linux/version.h
12025         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12026                 utsrelease=linux/utsrelease.h
12027         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12028                 utsrelease=generated/utsrelease.h
12029         fi
12030
12031         if test "$utsrelease"; then
12032                 kernsrcver=`(echo "#include <$utsrelease>";
12033                              echo "kernsrcver=UTS_RELEASE") |
12034                              cpp -I $kernelbuild/include |
12035                              grep "^kernsrcver=" | cut -d \" -f 2`
12036
12037                 if test -z "$kernsrcver"; then
12038                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12039 $as_echo "Not found" >&6; }
12040                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12041 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12042    { (exit 1); exit 1; }; }
12043                 fi
12044         else
12045                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12046 $as_echo "Not found" >&6; }
12047                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12048 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12049    { (exit 1); exit 1; }; }
12050         fi
12051
12052         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12053 $as_echo "$kernsrcver" >&6; }
12054
12055         LINUX=${kernelsrc}
12056         LINUX_OBJ=${kernelbuild}
12057         LINUX_VERSION=${kernsrcver}
12058
12059
12060
12061
12062
12063
12064         modpost=$LINUX/scripts/Makefile.modpost
12065         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12066 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12067         if test -f "$modpost"; then
12068                 if grep -q Modules.symvers $modpost; then
12069                         LINUX_SYMBOLS=Modules.symvers
12070                 else
12071                         LINUX_SYMBOLS=Module.symvers
12072                 fi
12073
12074                 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12075                         { { $as_echo "$as_me:$LINENO: error:
12076         *** Please make sure the kernel devel package for your distribution
12077         *** is installed.  If your building with a custom kernel make sure the
12078         *** kernel is configured, built, and the '--with-linux=PATH' configure
12079         *** option refers to the location of the kernel source." >&5
12080 $as_echo "$as_me: error:
12081         *** Please make sure the kernel devel package for your distribution
12082         *** is installed.  If your building with a custom kernel make sure the
12083         *** kernel is configured, built, and the '--with-linux=PATH' configure
12084         *** option refers to the location of the kernel source." >&2;}
12085    { (exit 1); exit 1; }; }
12086                 fi
12087         else
12088                 LINUX_SYMBOLS=NONE
12089         fi
12090         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12091 $as_echo "$LINUX_SYMBOLS" >&6; }
12092
12093
12094
12095
12096
12097 # Check whether --with-spl was given.
12098 if test "${with_spl+set}" = set; then
12099   withval=$with_spl; splsrc="$withval"
12100 fi
12101
12102
12103
12104 # Check whether --with-spl-obj was given.
12105 if test "${with_spl_obj+set}" = set; then
12106   withval=$with_spl_obj; splbuild="$withval"
12107 fi
12108
12109
12110
12111         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12112 $as_echo_n "checking spl source directory... " >&6; }
12113         if test -z "$splsrc"; then
12114                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12115                             2>/dev/null | tail -1`
12116
12117                 if test -z "$sourcelink" || test ! -e $sourcelink; then
12118                         sourcelink=../spl
12119                 fi
12120
12121                 if test -e $sourcelink; then
12122                         splsrc=`readlink -f ${sourcelink}`
12123                 else
12124                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12125 $as_echo "Not found" >&6; }
12126                         { { $as_echo "$as_me:$LINENO: error:
12127         *** Please make sure the spl devel package for your distribution
12128         *** is installed then try again.  If that fails you can specify the
12129         *** location of the spl source with the '--with-spl=PATH' option." >&5
12130 $as_echo "$as_me: error:
12131         *** Please make sure the spl devel package for your distribution
12132         *** is installed then try again.  If that fails you can specify the
12133         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12134    { (exit 1); exit 1; }; }
12135                 fi
12136         else
12137                 if test "$splsrc" = "NONE"; then
12138                         splbuild=NONE
12139                         splsrcver=NONE
12140                 fi
12141         fi
12142
12143         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12144 $as_echo "$splsrc" >&6; }
12145         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12146 $as_echo_n "checking spl build directory... " >&6; }
12147         if test -z "$splbuild"; then
12148                 splbuild=${splsrc}
12149         fi
12150         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12151 $as_echo "$splbuild" >&6; }
12152
12153         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12154 $as_echo_n "checking spl source version... " >&6; }
12155         if test -r $splbuild/spl_config.h &&
12156                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12157
12158                 splsrcver=`(echo "#include <spl_config.h>";
12159                             echo "splsrcver=SPL_META_VERSION") |
12160                             cpp -I $splbuild |
12161                             grep "^splsrcver=" | cut -d \" -f 2`
12162         fi
12163
12164         if test -z "$splsrcver"; then
12165                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12166 $as_echo "Not found" >&6; }
12167                 { { $as_echo "$as_me:$LINENO: error:
12168                 *** Cannot determine the version of the spl source.
12169                 *** Please prepare the spl source before running this script" >&5
12170 $as_echo "$as_me: error:
12171                 *** Cannot determine the version of the spl source.
12172                 *** Please prepare the spl source before running this script" >&2;}
12173    { (exit 1); exit 1; }; }
12174         fi
12175
12176         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12177 $as_echo "$splsrcver" >&6; }
12178
12179         SPL=${splsrc}
12180         SPL_OBJ=${splbuild}
12181         SPL_VERSION=${splsrcver}
12182
12183
12184
12185
12186
12187
12188         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12189 $as_echo_n "checking spl file name for module symbols... " >&6; }
12190         if test -r $SPL_OBJ/Module.symvers; then
12191                 SPL_SYMBOLS=Module.symvers
12192         elif test -r $SPL_OBJ/Modules.symvers; then
12193                 SPL_SYMBOLS=Modules.symvers
12194         elif test -r $SPL_OBJ/module/Module.symvers; then
12195                 SPL_SYMBOLS=Module.symvers
12196         elif test -r $SPL_OBJ/module/Modules.symvers; then
12197                 SPL_SYMBOLS=Modules.symvers
12198         else
12199                 SPL_SYMBOLS=$LINUX_SYMBOLS
12200         fi
12201
12202         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12203 $as_echo "$SPL_SYMBOLS" >&6; }
12204
12205
12206
12207
12208
12209         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12210 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12211
12212
12213 cat confdefs.h - <<_ACEOF >conftest.c
12214 /* confdefs.h.  */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h.  */
12219
12220
12221                 #ifndef AUTOCONF_INCLUDED
12222                 #include <linux/config.h>
12223                 #endif
12224
12225 int
12226 main (void)
12227 {
12228
12229                 #ifndef CONFIG_PREEMPT
12230                 #error CONFIG_PREEMPT not #defined
12231                 #endif
12232
12233   ;
12234   return 0;
12235 }
12236
12237 _ACEOF
12238
12239
12240         rm -Rf build && mkdir -p build
12241         echo "obj-m := conftest.o" >build/Makefile
12242         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'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249   (eval $ac_try) 2>&5
12250   ac_status=$?
12251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; }; then
12253
12254                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12255 $as_echo "yes" >&6; }
12256                 { { $as_echo "$as_me:$LINENO: error:
12257                 *** Kernel built with CONFIG_PREEMPT which is not supported.
12258                 ** You must rebuild your kernel without this option." >&5
12259 $as_echo "$as_me: error:
12260                 *** Kernel built with CONFIG_PREEMPT which is not supported.
12261                 ** You must rebuild your kernel without this option." >&2;}
12262    { (exit 1); exit 1; }; }
12263
12264 else
12265   $as_echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268                 { $as_echo "$as_me:$LINENO: result: no" >&5
12269 $as_echo "no" >&6; }
12270
12271
12272
12273
12274 fi
12275
12276         rm -Rf build
12277
12278
12279
12280
12281         if test "$ZFS_META_LICENSE" = CDDL; then
12282                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12283 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12284
12285
12286 cat confdefs.h - <<_ACEOF >conftest.c
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292
12293
12294                 #ifndef AUTOCONF_INCLUDED
12295                 #include <linux/config.h>
12296                 #endif
12297
12298 int
12299 main (void)
12300 {
12301
12302                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12303                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12304                 #endif
12305
12306   ;
12307   return 0;
12308 }
12309
12310 _ACEOF
12311
12312
12313         rm -Rf build && mkdir -p build
12314         echo "obj-m := conftest.o" >build/Makefile
12315         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'
12316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317   (eval $ac_try) 2>&5
12318   ac_status=$?
12319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326
12327                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12328 $as_echo "yes" >&6; }
12329                 { { $as_echo "$as_me:$LINENO: error:
12330                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12331                 *** incompatible with the CDDL license.  You must rebuild
12332                 *** your kernel without this option." >&5
12333 $as_echo "$as_me: error:
12334                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12335                 *** incompatible with the CDDL license.  You must rebuild
12336                 *** your kernel without this option." >&2;}
12337    { (exit 1); exit 1; }; }
12338
12339 else
12340   $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343                 { $as_echo "$as_me:$LINENO: result: no" >&5
12344 $as_echo "no" >&6; }
12345
12346
12347
12348
12349 fi
12350
12351         rm -Rf build
12352
12353
12354
12355         fi
12356
12357         if test "$ZFS_META_LICENSE" = GPL; then
12358
12359 cat >>confdefs.h <<\_ACEOF
12360 #define HAVE_GPL_ONLY_SYMBOLS 1
12361 _ACEOF
12362
12363         fi
12364
12365
12366         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12367 $as_echo_n "checking block device operation prototypes... " >&6; }
12368
12369
12370 cat confdefs.h - <<_ACEOF >conftest.c
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376
12377
12378                 #include <linux/blkdev.h>
12379
12380 int
12381 main (void)
12382 {
12383
12384                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12385                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12386                 int (*blk_ioctl) (struct block_device *, fmode_t,
12387                                   unsigned, unsigned long) = NULL;
12388                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12389                                          unsigned, unsigned long) = NULL;
12390                 struct block_device_operations blk_ops = {
12391                         .open           = blk_open,
12392                         .release        = blk_release,
12393                         .ioctl          = blk_ioctl,
12394                         .compat_ioctl   = blk_compat_ioctl,
12395                 };
12396
12397                 blk_ops.open(NULL, 0);
12398                 blk_ops.release(NULL, 0);
12399                 blk_ops.ioctl(NULL, 0, 0, 0);
12400                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12401
12402   ;
12403   return 0;
12404 }
12405
12406 _ACEOF
12407
12408
12409         rm -Rf build && mkdir -p build
12410         echo "obj-m := conftest.o" >build/Makefile
12411         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'
12412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413   (eval $ac_try) 2>&5
12414   ac_status=$?
12415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; }; then
12422
12423                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12424 $as_echo "struct block_device" >&6; }
12425
12426 cat >>confdefs.h <<\_ACEOF
12427 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12428 _ACEOF
12429
12430
12431 else
12432   $as_echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12436 $as_echo "struct inode" >&6; }
12437
12438
12439
12440 fi
12441
12442         rm -Rf build
12443
12444
12445
12446         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12447 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12448
12449
12450 cat confdefs.h - <<_ACEOF >conftest.c
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456
12457
12458                 #include <linux/types.h>
12459
12460 int
12461 main (void)
12462 {
12463
12464                 fmode_t *ptr __attribute__ ((unused));
12465
12466   ;
12467   return 0;
12468 }
12469
12470 _ACEOF
12471
12472
12473         rm -Rf build && mkdir -p build
12474         echo "obj-m := conftest.o" >build/Makefile
12475         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'
12476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477   (eval $ac_try) 2>&5
12478   ac_status=$?
12479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; }; then
12486
12487                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12488 $as_echo "yes" >&6; }
12489
12490 cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_FMODE_T 1
12492 _ACEOF
12493
12494
12495 else
12496   $as_echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499                 { $as_echo "$as_me:$LINENO: result: no" >&5
12500 $as_echo "no" >&6; }
12501
12502
12503
12504 fi
12505
12506         rm -Rf build
12507
12508
12509
12510
12511         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12512 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12513
12514
12515 cat confdefs.h - <<_ACEOF >conftest.c
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522
12523                 #include <linux/kobject.h>
12524
12525 int
12526 main (void)
12527 {
12528
12529                 int val __attribute__ ((unused));
12530                 val = KOBJ_NAME_LEN;
12531
12532   ;
12533   return 0;
12534 }
12535
12536 _ACEOF
12537
12538
12539         rm -Rf build && mkdir -p build
12540         echo "obj-m := conftest.o" >build/Makefile
12541         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'
12542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543   (eval $ac_try) 2>&5
12544   ac_status=$?
12545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552
12553                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12554 $as_echo "yes" >&6; }
12555
12556 cat >>confdefs.h <<\_ACEOF
12557 #define HAVE_KOBJ_NAME_LEN 1
12558 _ACEOF
12559
12560
12561 else
12562   $as_echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565                 { $as_echo "$as_me:$LINENO: result: no" >&5
12566 $as_echo "no" >&6; }
12567
12568
12569
12570 fi
12571
12572         rm -Rf build
12573
12574
12575
12576
12577         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12578 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12579         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12580                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12581         rc=$?
12582         if test $rc -ne 0; then
12583                 export=0
12584                 for file in fs/block_dev.c; do
12585                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12586                         rc=$?
12587                         if test $rc -eq 0; then
12588                                 export=1
12589                                 break;
12590                         fi
12591                 done
12592                 if test $export -eq 0; then
12593                         { $as_echo "$as_me:$LINENO: result: no" >&5
12594 $as_echo "no" >&6; }
12595
12596                 else
12597                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12598 $as_echo "yes" >&6; }
12599
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_BLKDEV_GET_BY_PATH 1
12602 _ACEOF
12603
12604                 fi
12605         else
12606                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12607 $as_echo "yes" >&6; }
12608
12609 cat >>confdefs.h <<\_ACEOF
12610 #define HAVE_BLKDEV_GET_BY_PATH 1
12611 _ACEOF
12612
12613         fi
12614
12615
12616
12617         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12618 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12619         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12620                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12621         rc=$?
12622         if test $rc -ne 0; then
12623                 export=0
12624                 for file in fs/block_dev.c; do
12625                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12626                         rc=$?
12627                         if test $rc -eq 0; then
12628                                 export=1
12629                                 break;
12630                         fi
12631                 done
12632                 if test $export -eq 0; then
12633                         { $as_echo "$as_me:$LINENO: result: no" >&5
12634 $as_echo "no" >&6; }
12635
12636                 else
12637                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12638 $as_echo "yes" >&6; }
12639
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12642 _ACEOF
12643
12644                 fi
12645         else
12646                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12651 _ACEOF
12652
12653         fi
12654
12655
12656
12657         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12658 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12659
12660
12661 cat confdefs.h - <<_ACEOF >conftest.c
12662 /* confdefs.h.  */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h.  */
12667
12668
12669                 #include <linux/buffer_head.h>
12670
12671 int
12672 main (void)
12673 {
12674
12675                 struct block_device *bdev = NULL;
12676                 invalidate_bdev(bdev);
12677
12678   ;
12679   return 0;
12680 }
12681
12682 _ACEOF
12683
12684
12685         rm -Rf build && mkdir -p build
12686         echo "obj-m := conftest.o" >build/Makefile
12687         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'
12688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689   (eval $ac_try) 2>&5
12690   ac_status=$?
12691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698
12699                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12700 $as_echo "yes" >&6; }
12701
12702 cat >>confdefs.h <<\_ACEOF
12703 #define HAVE_1ARG_INVALIDATE_BDEV 1
12704 _ACEOF
12705
12706
12707 else
12708   $as_echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711                 { $as_echo "$as_me:$LINENO: result: no" >&5
12712 $as_echo "no" >&6; }
12713
12714
12715
12716 fi
12717
12718         rm -Rf build
12719
12720
12721
12722
12723         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12724 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12725
12726
12727 cat confdefs.h - <<_ACEOF >conftest.c
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733
12734
12735                 #include <linux/blkdev.h>
12736
12737 int
12738 main (void)
12739 {
12740
12741                 struct block_device *bdev = NULL;
12742                 bdev_logical_block_size(bdev);
12743
12744   ;
12745   return 0;
12746 }
12747
12748 _ACEOF
12749
12750
12751         rm -Rf build && mkdir -p build
12752         echo "obj-m := conftest.o" >build/Makefile
12753         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'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760   (eval $ac_try) 2>&5
12761   ac_status=$?
12762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; }; then
12764
12765                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12766 $as_echo "yes" >&6; }
12767
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12770 _ACEOF
12771
12772
12773 else
12774   $as_echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777                 { $as_echo "$as_me:$LINENO: result: no" >&5
12778 $as_echo "no" >&6; }
12779
12780
12781
12782 fi
12783
12784         rm -Rf build
12785
12786
12787
12788
12789         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12790 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12791         EXTRA_KCFLAGS="-Werror"
12792
12793
12794 cat confdefs.h - <<_ACEOF >conftest.c
12795 /* confdefs.h.  */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h.  */
12800
12801
12802                 #include <linux/bio.h>
12803
12804 int
12805 main (void)
12806 {
12807
12808                 struct bio bio;
12809                 (void)bio_empty_barrier(&bio);
12810
12811   ;
12812   return 0;
12813 }
12814
12815 _ACEOF
12816
12817
12818         rm -Rf build && mkdir -p build
12819         echo "obj-m := conftest.o" >build/Makefile
12820         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'
12821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822   (eval $ac_try) 2>&5
12823   ac_status=$?
12824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }; then
12831
12832                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12833 $as_echo "yes" >&6; }
12834
12835 cat >>confdefs.h <<\_ACEOF
12836 #define HAVE_BIO_EMPTY_BARRIER 1
12837 _ACEOF
12838
12839
12840 else
12841   $as_echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844                 { $as_echo "$as_me:$LINENO: result: no" >&5
12845 $as_echo "no" >&6; }
12846
12847
12848
12849 fi
12850
12851         rm -Rf build
12852
12853
12854
12855
12856         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12857 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12858
12859
12860 cat confdefs.h - <<_ACEOF >conftest.c
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866
12867
12868                 #include <linux/bio.h>
12869
12870 int
12871 main (void)
12872 {
12873
12874                 int flags __attribute__ ((unused));
12875                 flags = (1 << BIO_RW_FAILFAST);
12876
12877   ;
12878   return 0;
12879 }
12880
12881 _ACEOF
12882
12883
12884         rm -Rf build && mkdir -p build
12885         echo "obj-m := conftest.o" >build/Makefile
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'
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_BIO_RW_FAILFAST 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 BIO_RW_FAILFAST_* are defined" >&5
12923 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&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/bio.h>
12935
12936 int
12937 main (void)
12938 {
12939
12940                 int flags __attribute__ ((unused));
12941                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12942                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
12943                          (1 << BIO_RW_FAILFAST_DRIVER));
12944
12945   ;
12946   return 0;
12947 }
12948
12949 _ACEOF
12950
12951
12952         rm -Rf build && mkdir -p build
12953         echo "obj-m := conftest.o" >build/Makefile
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'
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_BIO_RW_FAILFAST_DTD 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 REQ_FAILFAST_MASK is defined" >&5
12991 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&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/bio.h>
13003
13004 int
13005 main (void)
13006 {
13007
13008                 int flags __attribute__ ((unused));
13009                 flags = REQ_FAILFAST_MASK;
13010
13011   ;
13012   return 0;
13013 }
13014
13015 _ACEOF
13016
13017
13018         rm -Rf build && mkdir -p build
13019         echo "obj-m := conftest.o" >build/Makefile
13020         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'
13021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022   (eval $ac_try) 2>&5
13023   ac_status=$?
13024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027   (eval $ac_try) 2>&5
13028   ac_status=$?
13029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); }; }; then
13031
13032                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13033 $as_echo "yes" >&6; }
13034
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13037 _ACEOF
13038
13039
13040 else
13041   $as_echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044                 { $as_echo "$as_me:$LINENO: result: no" >&5
13045 $as_echo "no" >&6; }
13046
13047
13048
13049 fi
13050
13051         rm -Rf build
13052
13053
13054
13055
13056         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13057 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13058         tmp_flags="$EXTRA_KCFLAGS"
13059         EXTRA_KCFLAGS="-Werror"
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/bio.h>
13071
13072 int
13073 main (void)
13074 {
13075
13076                 void (*wanted_end_io)(struct bio *, int) = NULL;
13077                 bio_end_io_t *local_end_io __attribute__ ((unused));
13078
13079                 local_end_io = wanted_end_io;
13080
13081   ;
13082   return 0;
13083 }
13084
13085 _ACEOF
13086
13087
13088         rm -Rf build && mkdir -p build
13089         echo "obj-m := conftest.o" >build/Makefile
13090         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'
13091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092   (eval $ac_try) 2>&5
13093   ac_status=$?
13094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097   (eval $ac_try) 2>&5
13098   ac_status=$?
13099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; }; then
13101
13102                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13103 $as_echo "yes" >&6; }
13104
13105 cat >>confdefs.h <<\_ACEOF
13106 #define HAVE_2ARGS_BIO_END_IO_T 1
13107 _ACEOF
13108
13109
13110 else
13111   $as_echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114                 { $as_echo "$as_me:$LINENO: result: no" >&5
13115 $as_echo "no" >&6; }
13116
13117
13118
13119 fi
13120
13121         rm -Rf build
13122
13123
13124         EXTRA_KCFLAGS="$tmp_flags"
13125
13126
13127         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13128 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13129
13130
13131 cat confdefs.h - <<_ACEOF >conftest.c
13132 /* confdefs.h.  */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h.  */
13137
13138
13139                 #include <linux/bio.h>
13140
13141 int
13142 main (void)
13143 {
13144
13145                 int flags __attribute__ ((unused));
13146                 flags = BIO_RW_SYNC;
13147
13148   ;
13149   return 0;
13150 }
13151
13152 _ACEOF
13153
13154
13155         rm -Rf build && mkdir -p build
13156         echo "obj-m := conftest.o" >build/Makefile
13157         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'
13158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159   (eval $ac_try) 2>&5
13160   ac_status=$?
13161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164   (eval $ac_try) 2>&5
13165   ac_status=$?
13166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }; then
13168
13169                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13170 $as_echo "yes" >&6; }
13171
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_BIO_RW_SYNC 1
13174 _ACEOF
13175
13176
13177 else
13178   $as_echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181                 { $as_echo "$as_me:$LINENO: result: no" >&5
13182 $as_echo "no" >&6; }
13183
13184
13185
13186 fi
13187
13188         rm -Rf build
13189
13190
13191
13192
13193         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13194 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13195
13196
13197 cat confdefs.h - <<_ACEOF >conftest.c
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203
13204
13205                 #include <linux/bio.h>
13206
13207 int
13208 main (void)
13209 {
13210
13211                 int flags __attribute__ ((unused));
13212                 flags = BIO_RW_SYNCIO;
13213
13214   ;
13215   return 0;
13216 }
13217
13218 _ACEOF
13219
13220
13221         rm -Rf build && mkdir -p build
13222         echo "obj-m := conftest.o" >build/Makefile
13223         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'
13224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225   (eval $ac_try) 2>&5
13226   ac_status=$?
13227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230   (eval $ac_try) 2>&5
13231   ac_status=$?
13232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); }; }; then
13234
13235                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13236 $as_echo "yes" >&6; }
13237
13238 cat >>confdefs.h <<\_ACEOF
13239 #define HAVE_BIO_RW_SYNCIO 1
13240 _ACEOF
13241
13242
13243 else
13244   $as_echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247                 { $as_echo "$as_me:$LINENO: result: no" >&5
13248 $as_echo "no" >&6; }
13249
13250
13251
13252 fi
13253
13254         rm -Rf build
13255
13256
13257
13258
13259         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13260 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13261
13262
13263 cat confdefs.h - <<_ACEOF >conftest.c
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269
13270
13271                 #include <linux/bio.h>
13272
13273 int
13274 main (void)
13275 {
13276
13277                 int flags __attribute__ ((unused));
13278                 flags = REQ_SYNC;
13279
13280   ;
13281   return 0;
13282 }
13283
13284 _ACEOF
13285
13286
13287         rm -Rf build && mkdir -p build
13288         echo "obj-m := conftest.o" >build/Makefile
13289         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'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; }; then
13300
13301                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13302 $as_echo "yes" >&6; }
13303
13304 cat >>confdefs.h <<\_ACEOF
13305 #define HAVE_REQ_SYNC 1
13306 _ACEOF
13307
13308
13309 else
13310   $as_echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13312
13313                 { $as_echo "$as_me:$LINENO: result: no" >&5
13314 $as_echo "no" >&6; }
13315
13316
13317
13318 fi
13319
13320         rm -Rf build
13321
13322
13323
13324
13325         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13326 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13327
13328
13329 cat confdefs.h - <<_ACEOF >conftest.c
13330 /* confdefs.h.  */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h.  */
13335
13336
13337                 #include <linux/blkdev.h>
13338
13339 int
13340 main (void)
13341 {
13342
13343                 struct request *req = NULL;
13344                 (void) blk_end_request(req, 0, 0);
13345
13346   ;
13347   return 0;
13348 }
13349
13350 _ACEOF
13351
13352
13353         rm -Rf build && mkdir -p build
13354         echo "obj-m := conftest.o" >build/Makefile
13355         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'
13356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357   (eval $ac_try) 2>&5
13358   ac_status=$?
13359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362   (eval $ac_try) 2>&5
13363   ac_status=$?
13364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }; }; then
13366
13367                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13368 $as_echo "yes" >&6; }
13369
13370 cat >>confdefs.h <<\_ACEOF
13371 #define HAVE_BLK_END_REQUEST 1
13372 _ACEOF
13373
13374
13375 else
13376   $as_echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379                 { $as_echo "$as_me:$LINENO: result: no" >&5
13380 $as_echo "no" >&6; }
13381
13382
13383
13384 fi
13385
13386         rm -Rf build
13387
13388
13389
13390         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13391 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13392
13393
13394 cat confdefs.h - <<_ACEOF >conftest.c
13395 /* confdefs.h.  */
13396 _ACEOF
13397 cat confdefs.h >>conftest.$ac_ext
13398 cat >>conftest.$ac_ext <<_ACEOF
13399 /* end confdefs.h.  */
13400
13401
13402                 #include <linux/module.h>
13403                 #include <linux/blkdev.h>
13404
13405                 MODULE_LICENSE("CDDL");
13406
13407 int
13408 main (void)
13409 {
13410
13411                 struct request *req = NULL;
13412                 (void) blk_end_request(req, 0, 0);
13413
13414   ;
13415   return 0;
13416 }
13417
13418 _ACEOF
13419
13420
13421         rm -Rf build && mkdir -p build
13422         echo "obj-m := conftest.o" >build/Makefile
13423         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'
13424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425   (eval $ac_try) 2>&5
13426   ac_status=$?
13427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434
13435                 { $as_echo "$as_me:$LINENO: result: no" >&5
13436 $as_echo "no" >&6; }
13437
13438 else
13439   $as_echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13443 $as_echo "yes" >&6; }
13444
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13447 _ACEOF
13448
13449
13450
13451
13452 fi
13453
13454         rm -Rf build
13455
13456
13457
13458
13459         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13460 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13461
13462
13463 cat confdefs.h - <<_ACEOF >conftest.c
13464 /* confdefs.h.  */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h.  */
13469
13470
13471                 #include <linux/blkdev.h>
13472
13473 int
13474 main (void)
13475 {
13476
13477                 struct request_queue *q = NULL;
13478                 (void) blk_fetch_request(q);
13479
13480   ;
13481   return 0;
13482 }
13483
13484 _ACEOF
13485
13486
13487         rm -Rf build && mkdir -p build
13488         echo "obj-m := conftest.o" >build/Makefile
13489         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'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496   (eval $ac_try) 2>&5
13497   ac_status=$?
13498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; }; then
13500
13501                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13502 $as_echo "yes" >&6; }
13503
13504 cat >>confdefs.h <<\_ACEOF
13505 #define HAVE_BLK_FETCH_REQUEST 1
13506 _ACEOF
13507
13508
13509 else
13510   $as_echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513                 { $as_echo "$as_me:$LINENO: result: no" >&5
13514 $as_echo "no" >&6; }
13515
13516
13517
13518 fi
13519
13520         rm -Rf build
13521
13522
13523
13524
13525         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13526 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13527
13528
13529 cat confdefs.h - <<_ACEOF >conftest.c
13530 /* confdefs.h.  */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h.  */
13535
13536
13537                 #include <linux/blkdev.h>
13538
13539 int
13540 main (void)
13541 {
13542
13543                 struct request_queue *q = NULL;
13544                 struct request *req = NULL;
13545                 blk_requeue_request(q, req);
13546
13547   ;
13548   return 0;
13549 }
13550
13551 _ACEOF
13552
13553
13554         rm -Rf build && mkdir -p build
13555         echo "obj-m := conftest.o" >build/Makefile
13556         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'
13557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558   (eval $ac_try) 2>&5
13559   ac_status=$?
13560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567
13568                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13569 $as_echo "yes" >&6; }
13570
13571 cat >>confdefs.h <<\_ACEOF
13572 #define HAVE_BLK_REQUEUE_REQUEST 1
13573 _ACEOF
13574
13575
13576 else
13577   $as_echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580                 { $as_echo "$as_me:$LINENO: result: no" >&5
13581 $as_echo "no" >&6; }
13582
13583
13584
13585 fi
13586
13587         rm -Rf build
13588
13589
13590
13591
13592         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13593 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13594
13595
13596 cat confdefs.h - <<_ACEOF >conftest.c
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602
13603
13604                 #include <linux/blkdev.h>
13605
13606 int
13607 main (void)
13608 {
13609
13610                 struct request *req = NULL;
13611                 (void) blk_rq_bytes(req);
13612
13613   ;
13614   return 0;
13615 }
13616
13617 _ACEOF
13618
13619
13620         rm -Rf build && mkdir -p build
13621         echo "obj-m := conftest.o" >build/Makefile
13622         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'
13623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624   (eval $ac_try) 2>&5
13625   ac_status=$?
13626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633
13634                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13635 $as_echo "yes" >&6; }
13636
13637 cat >>confdefs.h <<\_ACEOF
13638 #define HAVE_BLK_RQ_BYTES 1
13639 _ACEOF
13640
13641
13642 else
13643   $as_echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646                 { $as_echo "$as_me:$LINENO: result: no" >&5
13647 $as_echo "no" >&6; }
13648
13649
13650
13651 fi
13652
13653         rm -Rf build
13654
13655
13656
13657         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13658 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13659
13660
13661 cat confdefs.h - <<_ACEOF >conftest.c
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667
13668
13669                 #include <linux/module.h>
13670                 #include <linux/blkdev.h>
13671
13672                 MODULE_LICENSE("CDDL");
13673
13674 int
13675 main (void)
13676 {
13677
13678                 struct request *req = NULL;
13679                 (void) blk_rq_bytes(req);
13680
13681   ;
13682   return 0;
13683 }
13684
13685 _ACEOF
13686
13687
13688         rm -Rf build && mkdir -p build
13689         echo "obj-m := conftest.o" >build/Makefile
13690         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'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701
13702                 { $as_echo "$as_me:$LINENO: result: no" >&5
13703 $as_echo "no" >&6; }
13704
13705 else
13706   $as_echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13710 $as_echo "yes" >&6; }
13711
13712 cat >>confdefs.h <<\_ACEOF
13713 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13714 _ACEOF
13715
13716
13717
13718
13719 fi
13720
13721         rm -Rf build
13722
13723
13724
13725
13726         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13727 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13728
13729
13730 cat confdefs.h - <<_ACEOF >conftest.c
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736
13737
13738                 #include <linux/blkdev.h>
13739
13740 int
13741 main (void)
13742 {
13743
13744                 struct request *req = NULL;
13745                 (void) blk_rq_pos(req);
13746
13747   ;
13748   return 0;
13749 }
13750
13751 _ACEOF
13752
13753
13754         rm -Rf build && mkdir -p build
13755         echo "obj-m := conftest.o" >build/Makefile
13756         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'
13757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758   (eval $ac_try) 2>&5
13759   ac_status=$?
13760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767
13768                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13769 $as_echo "yes" >&6; }
13770
13771 cat >>confdefs.h <<\_ACEOF
13772 #define HAVE_BLK_RQ_POS 1
13773 _ACEOF
13774
13775
13776 else
13777   $as_echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780                 { $as_echo "$as_me:$LINENO: result: no" >&5
13781 $as_echo "no" >&6; }
13782
13783
13784
13785 fi
13786
13787         rm -Rf build
13788
13789
13790
13791
13792         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13793 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13794
13795
13796 cat confdefs.h - <<_ACEOF >conftest.c
13797 /* confdefs.h.  */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h.  */
13802
13803
13804                 #include <linux/blkdev.h>
13805
13806 int
13807 main (void)
13808 {
13809
13810                 struct request *req = NULL;
13811                 (void) blk_rq_sectors(req);
13812
13813   ;
13814   return 0;
13815 }
13816
13817 _ACEOF
13818
13819
13820         rm -Rf build && mkdir -p build
13821         echo "obj-m := conftest.o" >build/Makefile
13822         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'
13823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824   (eval $ac_try) 2>&5
13825   ac_status=$?
13826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829   (eval $ac_try) 2>&5
13830   ac_status=$?
13831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; }; then
13833
13834                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13835 $as_echo "yes" >&6; }
13836
13837 cat >>confdefs.h <<\_ACEOF
13838 #define HAVE_BLK_RQ_SECTORS 1
13839 _ACEOF
13840
13841
13842 else
13843   $as_echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846                 { $as_echo "$as_me:$LINENO: result: no" >&5
13847 $as_echo "no" >&6; }
13848
13849
13850
13851 fi
13852
13853         rm -Rf build
13854
13855
13856
13857
13858         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13859 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13860
13861
13862 cat confdefs.h - <<_ACEOF >conftest.c
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868
13869
13870                 #include <linux/blkdev.h>
13871
13872 int
13873 main (void)
13874 {
13875
13876                 struct gendisk *disk = NULL;
13877                 (void) get_disk_ro(disk);
13878
13879   ;
13880   return 0;
13881 }
13882
13883 _ACEOF
13884
13885
13886         rm -Rf build && mkdir -p build
13887         echo "obj-m := conftest.o" >build/Makefile
13888         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'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899
13900                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13901 $as_echo "yes" >&6; }
13902
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_GET_DISK_RO 1
13905 _ACEOF
13906
13907
13908 else
13909   $as_echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912                 { $as_echo "$as_me:$LINENO: result: no" >&5
13913 $as_echo "no" >&6; }
13914
13915
13916
13917 fi
13918
13919         rm -Rf build
13920
13921
13922
13923
13924         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13925 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13926
13927
13928 cat confdefs.h - <<_ACEOF >conftest.c
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934
13935
13936                 #include <linux/blkdev.h>
13937
13938 int
13939 main (void)
13940 {
13941
13942                 struct request *req = NULL;
13943                 (void) rq_is_sync(req);
13944
13945   ;
13946   return 0;
13947 }
13948
13949 _ACEOF
13950
13951
13952         rm -Rf build && mkdir -p build
13953         echo "obj-m := conftest.o" >build/Makefile
13954         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'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965
13966                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13967 $as_echo "yes" >&6; }
13968
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_RQ_IS_SYNC 1
13971 _ACEOF
13972
13973
13974 else
13975   $as_echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978                 { $as_echo "$as_me:$LINENO: result: no" >&5
13979 $as_echo "no" >&6; }
13980
13981
13982
13983 fi
13984
13985         rm -Rf build
13986
13987
13988
13989
13990         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13991 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13992
13993
13994 cat confdefs.h - <<_ACEOF >conftest.c
13995 /* confdefs.h.  */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h.  */
14000
14001
14002                 #include <linux/blkdev.h>
14003
14004 int
14005 main (void)
14006 {
14007
14008                 struct bio_vec *bv;
14009                 struct req_iterator iter;
14010                 struct request *req = NULL;
14011                 rq_for_each_segment(bv, req, iter) { }
14012
14013   ;
14014   return 0;
14015 }
14016
14017 _ACEOF
14018
14019
14020         rm -Rf build && mkdir -p build
14021         echo "obj-m := conftest.o" >build/Makefile
14022         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'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; }; then
14033
14034                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14035 $as_echo "yes" >&6; }
14036
14037 cat >>confdefs.h <<\_ACEOF
14038 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14039 _ACEOF
14040
14041
14042 else
14043   $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046                 { $as_echo "$as_me:$LINENO: result: no" >&5
14047 $as_echo "no" >&6; }
14048
14049
14050
14051 fi
14052
14053         rm -Rf build
14054
14055
14056
14057         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14058 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14059
14060
14061 cat confdefs.h - <<_ACEOF >conftest.c
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067
14068
14069                 #include <linux/fs.h>
14070                 #include <linux/xattr.h>
14071
14072                 const struct xattr_handler xattr_test_handler = {
14073                         .prefix = "test",
14074                         .get    = NULL,
14075                         .set    = NULL,
14076                 };
14077
14078                 const struct xattr_handler *xattr_handlers[] = {
14079                         &xattr_test_handler,
14080                 };
14081
14082 int
14083 main (void)
14084 {
14085
14086                 struct super_block sb __attribute__ ((unused));
14087
14088                 sb.s_xattr = xattr_handlers;
14089
14090   ;
14091   return 0;
14092 }
14093
14094 _ACEOF
14095
14096
14097         rm -Rf build && mkdir -p build
14098         echo "obj-m := conftest.o" >build/Makefile
14099         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'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106   (eval $ac_try) 2>&5
14107   ac_status=$?
14108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; }; then
14110
14111                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14112 $as_echo "yes" >&6; }
14113
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_CONST_XATTR_HANDLER 1
14116 _ACEOF
14117
14118
14119 else
14120   $as_echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123                 { $as_echo "$as_me:$LINENO: result: no" >&5
14124 $as_echo "no" >&6; }
14125
14126
14127
14128 fi
14129
14130         rm -Rf build
14131
14132
14133
14134
14135         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14136 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14137
14138
14139 cat confdefs.h - <<_ACEOF >conftest.c
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145
14146
14147                 #include <linux/xattr.h>
14148
14149 int
14150 main (void)
14151 {
14152
14153                 int (*get)(struct dentry *dentry, const char *name,
14154                     void *buffer, size_t size, int handler_flags) = NULL;
14155                 struct xattr_handler xops __attribute__ ((unused));
14156
14157                 xops.get = get;
14158
14159   ;
14160   return 0;
14161 }
14162
14163 _ACEOF
14164
14165
14166         rm -Rf build && mkdir -p build
14167         echo "obj-m := conftest.o" >build/Makefile
14168         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'
14169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170   (eval $ac_try) 2>&5
14171   ac_status=$?
14172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175   (eval $ac_try) 2>&5
14176   ac_status=$?
14177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; }; then
14179
14180                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14181 $as_echo "yes" >&6; }
14182
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_DENTRY_XATTR_GET 1
14185 _ACEOF
14186
14187
14188 else
14189   $as_echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192                 { $as_echo "$as_me:$LINENO: result: no" >&5
14193 $as_echo "no" >&6; }
14194
14195
14196
14197 fi
14198
14199         rm -Rf build
14200
14201
14202
14203
14204         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14205 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14206
14207
14208 cat confdefs.h - <<_ACEOF >conftest.c
14209 /* confdefs.h.  */
14210 _ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h.  */
14214
14215
14216                 #include <linux/xattr.h>
14217
14218 int
14219 main (void)
14220 {
14221
14222                 int (*set)(struct dentry *dentry, const char *name,
14223                     const void *buffer, size_t size, int flags,
14224                     int handler_flags) = NULL;
14225                 struct xattr_handler xops __attribute__ ((unused));
14226
14227                 xops.set = set;
14228
14229   ;
14230   return 0;
14231 }
14232
14233 _ACEOF
14234
14235
14236         rm -Rf build && mkdir -p build
14237         echo "obj-m := conftest.o" >build/Makefile
14238         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'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }; then
14249
14250                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14251 $as_echo "yes" >&6; }
14252
14253 cat >>confdefs.h <<\_ACEOF
14254 #define HAVE_DENTRY_XATTR_SET 1
14255 _ACEOF
14256
14257
14258 else
14259   $as_echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262                 { $as_echo "$as_me:$LINENO: result: no" >&5
14263 $as_echo "no" >&6; }
14264
14265
14266
14267 fi
14268
14269         rm -Rf build
14270
14271
14272
14273
14274         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14275 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14276
14277
14278 cat confdefs.h - <<_ACEOF >conftest.c
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284
14285
14286                 #include <linux/fs.h>
14287
14288 int
14289 main (void)
14290 {
14291
14292                 int (*fsync) (struct file *, int datasync) = NULL;
14293                 struct file_operations fops __attribute__ ((unused));
14294
14295                 fops.fsync = fsync;
14296
14297   ;
14298   return 0;
14299 }
14300
14301 _ACEOF
14302
14303
14304         rm -Rf build && mkdir -p build
14305         echo "obj-m := conftest.o" >build/Makefile
14306         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'
14307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308   (eval $ac_try) 2>&5
14309   ac_status=$?
14310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; }; then
14317
14318                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14319 $as_echo "yes" >&6; }
14320
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_2ARGS_FSYNC 1
14323 _ACEOF
14324
14325
14326 else
14327   $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330                 { $as_echo "$as_me:$LINENO: result: no" >&5
14331 $as_echo "no" >&6; }
14332
14333
14334
14335 fi
14336
14337         rm -Rf build
14338
14339
14340
14341
14342         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14343 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14344
14345
14346 cat confdefs.h - <<_ACEOF >conftest.c
14347 /* confdefs.h.  */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h.  */
14352
14353
14354                 #include <linux/fs.h>
14355
14356 int
14357 main (void)
14358 {
14359
14360                 void (*evict_inode) (struct inode *) = NULL;
14361                 struct super_operations sops __attribute__ ((unused));
14362
14363                 sops.evict_inode = evict_inode;
14364
14365   ;
14366   return 0;
14367 }
14368
14369 _ACEOF
14370
14371
14372         rm -Rf build && mkdir -p build
14373         echo "obj-m := conftest.o" >build/Makefile
14374         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'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385
14386                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14387 $as_echo "yes" >&6; }
14388
14389 cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_EVICT_INODE 1
14391 _ACEOF
14392
14393
14394 else
14395   $as_echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398                 { $as_echo "$as_me:$LINENO: result: no" >&5
14399 $as_echo "no" >&6; }
14400
14401
14402
14403 fi
14404
14405         rm -Rf build
14406
14407
14408
14409
14410         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14411 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14412         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14413                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14414         rc=$?
14415         if test $rc -ne 0; then
14416                 export=0
14417                 for file in fs/inode.c; do
14418                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
14419                         rc=$?
14420                         if test $rc -eq 0; then
14421                                 export=1
14422                                 break;
14423                         fi
14424                 done
14425                 if test $export -eq 0; then
14426                         { $as_echo "$as_me:$LINENO: result: no" >&5
14427 $as_echo "no" >&6; }
14428
14429                 else
14430                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14431 $as_echo "yes" >&6; }
14432
14433 cat >>confdefs.h <<\_ACEOF
14434 #define HAVE_INSERT_INODE_LOCKED 1
14435 _ACEOF
14436
14437                 fi
14438         else
14439                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14440 $as_echo "yes" >&6; }
14441
14442 cat >>confdefs.h <<\_ACEOF
14443 #define HAVE_INSERT_INODE_LOCKED 1
14444 _ACEOF
14445
14446         fi
14447
14448
14449
14450         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
14451 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
14452         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
14453                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14454         rc=$?
14455         if test $rc -ne 0; then
14456                 export=0
14457                 for file in fs/dcache.c; do
14458                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
14459                         rc=$?
14460                         if test $rc -eq 0; then
14461                                 export=1
14462                                 break;
14463                         fi
14464                 done
14465                 if test $export -eq 0; then
14466                         { $as_echo "$as_me:$LINENO: result: no" >&5
14467 $as_echo "no" >&6; }
14468
14469                 else
14470                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14471 $as_echo "yes" >&6; }
14472
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_D_OBTAIN_ALIAS 1
14475 _ACEOF
14476
14477                 fi
14478         else
14479                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14480 $as_echo "yes" >&6; }
14481
14482 cat >>confdefs.h <<\_ACEOF
14483 #define HAVE_D_OBTAIN_ALIAS 1
14484 _ACEOF
14485
14486         fi
14487
14488
14489
14490         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
14491 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
14492         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
14493                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14494         rc=$?
14495         if test $rc -ne 0; then
14496                 export=0
14497                 for file in fs/block_dev.c; do
14498                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
14499                         rc=$?
14500                         if test $rc -eq 0; then
14501                                 export=1
14502                                 break;
14503                         fi
14504                 done
14505                 if test $export -eq 0; then
14506                         { $as_echo "$as_me:$LINENO: result: no" >&5
14507 $as_echo "no" >&6; }
14508
14509                 else
14510                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14511 $as_echo "yes" >&6; }
14512
14513 cat >>confdefs.h <<\_ACEOF
14514 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14515 _ACEOF
14516
14517                 fi
14518         else
14519                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14520 $as_echo "yes" >&6; }
14521
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14524 _ACEOF
14525
14526         fi
14527
14528
14529
14530         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
14531 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
14532         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
14533                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14534         rc=$?
14535         if test $rc -ne 0; then
14536                 export=0
14537                 for file in mm/truncate.c; do
14538                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
14539                         rc=$?
14540                         if test $rc -eq 0; then
14541                                 export=1
14542                                 break;
14543                         fi
14544                 done
14545                 if test $export -eq 0; then
14546                         { $as_echo "$as_me:$LINENO: result: no" >&5
14547 $as_echo "no" >&6; }
14548
14549                 else
14550                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14551 $as_echo "yes" >&6; }
14552
14553 cat >>confdefs.h <<\_ACEOF
14554 #define HAVE_TRUNCATE_SETSIZE 1
14555 _ACEOF
14556
14557                 fi
14558         else
14559                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14560 $as_echo "yes" >&6; }
14561
14562 cat >>confdefs.h <<\_ACEOF
14563 #define HAVE_TRUNCATE_SETSIZE 1
14564 _ACEOF
14565
14566         fi
14567
14568
14569
14570         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
14571 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
14572         tmp_flags="$EXTRA_KCFLAGS"
14573         EXTRA_KCFLAGS="-Werror"
14574
14575
14576 cat confdefs.h - <<_ACEOF >conftest.c
14577 /* confdefs.h.  */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h.  */
14582
14583
14584                 #include <linux/security.h>
14585
14586 int
14587 main (void)
14588 {
14589
14590                 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
14591
14592   ;
14593   return 0;
14594 }
14595
14596 _ACEOF
14597
14598
14599         rm -Rf build && mkdir -p build
14600         echo "obj-m := conftest.o" >build/Makefile
14601         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'
14602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603   (eval $ac_try) 2>&5
14604   ac_status=$?
14605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612
14613                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14614 $as_echo "yes" >&6; }
14615
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
14618 _ACEOF
14619
14620
14621 else
14622   $as_echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625                 { $as_echo "$as_me:$LINENO: result: no" >&5
14626 $as_echo "no" >&6; }
14627
14628
14629
14630 fi
14631
14632         rm -Rf build
14633
14634
14635         EXTRA_KCFLAGS="$tmp_flags"
14636
14637
14638         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
14639 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
14640         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
14641                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14642         rc=$?
14643         if test $rc -ne 0; then
14644                 export=0
14645                 for file in fs/super.c; do
14646                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
14647                         rc=$?
14648                         if test $rc -eq 0; then
14649                                 export=1
14650                                 break;
14651                         fi
14652                 done
14653                 if test $export -eq 0; then
14654                         { $as_echo "$as_me:$LINENO: result: no" >&5
14655 $as_echo "no" >&6; }
14656
14657                 else
14658                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14659 $as_echo "yes" >&6; }
14660
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_MOUNT_NODEV 1
14663 _ACEOF
14664
14665                 fi
14666         else
14667                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14668 $as_echo "yes" >&6; }
14669
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAVE_MOUNT_NODEV 1
14672 _ACEOF
14673
14674         fi
14675
14676
14677
14678         if test "$LINUX_OBJ" != "$LINUX"; then
14679                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14680         fi
14681
14682
14683
14684                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
14685         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14686         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14687
14688
14689  ;;
14690                 user)
14691
14692         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14693 $as_echo_n "checking for target asm dir... " >&6; }
14694         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
14695
14696         case $TARGET_ARCH in
14697         i386|x86_64)
14698                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
14699                 ;;
14700         *)
14701                 TARGET_ASM_DIR=asm-generic
14702                 ;;
14703         esac
14704
14705
14706         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14707 $as_echo "$TARGET_ASM_DIR" >&6; }
14708
14709
14710         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14711 $as_echo_n "checking for ioctl()... " >&6; }
14712         cat >conftest.$ac_ext <<_ACEOF
14713 /* confdefs.h.  */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h.  */
14718 #include <unistd.h>
14719
14720 _ACEOF
14721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14722   $EGREP "ioctl" >/dev/null 2>&1; then
14723   is_unistd=yes
14724 else
14725   is_unistd=no
14726 fi
14727 rm -f conftest*
14728
14729         cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 #include <sys/ioctl.h>
14736
14737 _ACEOF
14738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14739   $EGREP "ioctl" >/dev/null 2>&1; then
14740   is_sys_ioctl=yes
14741 else
14742   is_sys_ioctl=no
14743 fi
14744 rm -f conftest*
14745
14746         cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752 #include <stropts.h>
14753
14754 _ACEOF
14755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14756   $EGREP "ioctl" >/dev/null 2>&1; then
14757   is_stropts=yes
14758 else
14759   is_stropts=no
14760 fi
14761 rm -f conftest*
14762
14763
14764         if test $is_unistd = yes; then
14765                 result=unistd.h
14766
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_IOCTL_IN_UNISTD_H 1
14769 _ACEOF
14770
14771         else
14772
14773                 if test $is_sys_ioctl = yes; then
14774                         result=sys/ioctl.h
14775
14776 cat >>confdefs.h <<\_ACEOF
14777 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14778 _ACEOF
14779
14780                 elif test $is_stropts = yes; then
14781
14782 cat >>confdefs.h <<\_ACEOF
14783 #define HAVE_IOCTL_IN_STROPTS_H 1
14784 _ACEOF
14785
14786                 else
14787                         result=no
14788                 fi
14789         fi
14790
14791         if test $result = no; then
14792                 { $as_echo "$as_me:$LINENO: result: no" >&5
14793 $as_echo "no" >&6; }
14794                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14795 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14796    { (exit 1); exit 1; }; }
14797         else
14798                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14799 $as_echo "yes" >&6; }
14800         fi
14801
14802
14803         ZLIB=
14804
14805         if test "${ac_cv_header_zlib_h+set}" = set; then
14806   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14807 $as_echo_n "checking for zlib.h... " >&6; }
14808 if test "${ac_cv_header_zlib_h+set}" = set; then
14809   $as_echo_n "(cached) " >&6
14810 fi
14811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14812 $as_echo "$ac_cv_header_zlib_h" >&6; }
14813 else
14814   # Is the header compilable?
14815 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14816 $as_echo_n "checking zlib.h usability... " >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h.  */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h.  */
14823 $ac_includes_default
14824 #include <zlib.h>
14825 _ACEOF
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830   *) ac_try_echo=$ac_try;;
14831 esac
14832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14833 $as_echo "$ac_try_echo") >&5
14834   (eval "$ac_compile") 2>conftest.er1
14835   ac_status=$?
14836   grep -v '^ *+' conftest.er1 >conftest.err
14837   rm -f conftest.er1
14838   cat conftest.err >&5
14839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } && {
14841          test -z "$ac_c_werror_flag" ||
14842          test ! -s conftest.err
14843        } && test -s conftest.$ac_objext; then
14844   ac_header_compiler=yes
14845 else
14846   $as_echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849         ac_header_compiler=no
14850 fi
14851
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14854 $as_echo "$ac_header_compiler" >&6; }
14855
14856 # Is the header present?
14857 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14858 $as_echo_n "checking zlib.h presence... " >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 #include <zlib.h>
14866 _ACEOF
14867 if { (ac_try="$ac_cpp conftest.$ac_ext"
14868 case "(($ac_try" in
14869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870   *) ac_try_echo=$ac_try;;
14871 esac
14872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14873 $as_echo "$ac_try_echo") >&5
14874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } >/dev/null && {
14881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14882          test ! -s conftest.err
14883        }; then
14884   ac_header_preproc=yes
14885 else
14886   $as_echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889   ac_header_preproc=no
14890 fi
14891
14892 rm -f conftest.err conftest.$ac_ext
14893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14894 $as_echo "$ac_header_preproc" >&6; }
14895
14896 # So?  What about this header?
14897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14898   yes:no: )
14899     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14900 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14901     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
14902 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
14903     ac_header_preproc=yes
14904     ;;
14905   no:yes:* )
14906     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
14907 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
14908     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
14909 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
14910     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
14911 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
14912     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
14913 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14914     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
14915 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
14916     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
14917 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
14918
14919     ;;
14920 esac
14921 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14922 $as_echo_n "checking for zlib.h... " >&6; }
14923 if test "${ac_cv_header_zlib_h+set}" = set; then
14924   $as_echo_n "(cached) " >&6
14925 else
14926   ac_cv_header_zlib_h=$ac_header_preproc
14927 fi
14928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14929 $as_echo "$ac_cv_header_zlib_h" >&6; }
14930
14931 fi
14932 if test "x$ac_cv_header_zlib_h" = x""yes; then
14933   :
14934 else
14935   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14937 { { $as_echo "$as_me:$LINENO: error:
14938         *** zlib.h missing, zlib-devel package required
14939 See \`config.log' for more details." >&5
14940 $as_echo "$as_me: error:
14941         *** zlib.h missing, zlib-devel package required
14942 See \`config.log' for more details." >&2;}
14943    { (exit 1); exit 1; }; }; }
14944 fi
14945
14946
14947
14948
14949 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
14950 $as_echo_n "checking for compress2 in -lz... " >&6; }
14951 if test "${ac_cv_lib_z_compress2+set}" = set; then
14952   $as_echo_n "(cached) " >&6
14953 else
14954   ac_check_lib_save_LIBS=$LIBS
14955 LIBS="-lz  $LIBS"
14956 cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962
14963 /* Override any GCC internal prototype to avoid an error.
14964    Use char because int might match the return type of a GCC
14965    builtin and then its argument prototype would still apply.  */
14966 #ifdef __cplusplus
14967 extern "C"
14968 #endif
14969 char compress2 ();
14970 int
14971 main ()
14972 {
14973 return compress2 ();
14974   ;
14975   return 0;
14976 }
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982   *) ac_try_echo=$ac_try;;
14983 esac
14984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14985 $as_echo "$ac_try_echo") >&5
14986   (eval "$ac_link") 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } && {
14993          test -z "$ac_c_werror_flag" ||
14994          test ! -s conftest.err
14995        } && test -s conftest$ac_exeext && {
14996          test "$cross_compiling" = yes ||
14997          $as_test_x conftest$ac_exeext
14998        }; then
14999   ac_cv_lib_z_compress2=yes
15000 else
15001   $as_echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15003
15004         ac_cv_lib_z_compress2=no
15005 fi
15006
15007 rm -rf conftest.dSYM
15008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15009       conftest$ac_exeext conftest.$ac_ext
15010 LIBS=$ac_check_lib_save_LIBS
15011 fi
15012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
15013 $as_echo "$ac_cv_lib_z_compress2" >&6; }
15014 if test "x$ac_cv_lib_z_compress2" = x""yes; then
15015   cat >>confdefs.h <<_ACEOF
15016 #define HAVE_LIBZ 1
15017 _ACEOF
15018
15019   LIBS="-lz $LIBS"
15020
15021 else
15022   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15024 { { $as_echo "$as_me:$LINENO: error:
15025         *** compress2() missing, zlib-devel package required
15026 See \`config.log' for more details." >&5
15027 $as_echo "$as_me: error:
15028         *** compress2() missing, zlib-devel package required
15029 See \`config.log' for more details." >&2;}
15030    { (exit 1); exit 1; }; }; }
15031 fi
15032
15033
15034
15035 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
15036 $as_echo_n "checking for uncompress in -lz... " >&6; }
15037 if test "${ac_cv_lib_z_uncompress+set}" = set; then
15038   $as_echo_n "(cached) " >&6
15039 else
15040   ac_check_lib_save_LIBS=$LIBS
15041 LIBS="-lz  $LIBS"
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048
15049 /* Override any GCC internal prototype to avoid an error.
15050    Use char because int might match the return type of a GCC
15051    builtin and then its argument prototype would still apply.  */
15052 #ifdef __cplusplus
15053 extern "C"
15054 #endif
15055 char uncompress ();
15056 int
15057 main ()
15058 {
15059 return uncompress ();
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15071 $as_echo "$ac_try_echo") >&5
15072   (eval "$ac_link") 2>conftest.er1
15073   ac_status=$?
15074   grep -v '^ *+' conftest.er1 >conftest.err
15075   rm -f conftest.er1
15076   cat conftest.err >&5
15077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } && {
15079          test -z "$ac_c_werror_flag" ||
15080          test ! -s conftest.err
15081        } && test -s conftest$ac_exeext && {
15082          test "$cross_compiling" = yes ||
15083          $as_test_x conftest$ac_exeext
15084        }; then
15085   ac_cv_lib_z_uncompress=yes
15086 else
15087   $as_echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090         ac_cv_lib_z_uncompress=no
15091 fi
15092
15093 rm -rf conftest.dSYM
15094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15095       conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15097 fi
15098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
15099 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
15100 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
15101   cat >>confdefs.h <<_ACEOF
15102 #define HAVE_LIBZ 1
15103 _ACEOF
15104
15105   LIBS="-lz $LIBS"
15106
15107 else
15108   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15110 { { $as_echo "$as_me:$LINENO: error:
15111         *** uncompress() missing, zlib-devel package required
15112 See \`config.log' for more details." >&5
15113 $as_echo "$as_me: error:
15114         *** uncompress() missing, zlib-devel package required
15115 See \`config.log' for more details." >&2;}
15116    { (exit 1); exit 1; }; }; }
15117 fi
15118
15119
15120
15121 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
15122 $as_echo_n "checking for crc32 in -lz... " >&6; }
15123 if test "${ac_cv_lib_z_crc32+set}" = set; then
15124   $as_echo_n "(cached) " >&6
15125 else
15126   ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-lz  $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134
15135 /* Override any GCC internal prototype to avoid an error.
15136    Use char because int might match the return type of a GCC
15137    builtin and then its argument prototype would still apply.  */
15138 #ifdef __cplusplus
15139 extern "C"
15140 #endif
15141 char crc32 ();
15142 int
15143 main ()
15144 {
15145 return crc32 ();
15146   ;
15147   return 0;
15148 }
15149 _ACEOF
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15157 $as_echo "$ac_try_echo") >&5
15158   (eval "$ac_link") 2>conftest.er1
15159   ac_status=$?
15160   grep -v '^ *+' conftest.er1 >conftest.err
15161   rm -f conftest.er1
15162   cat conftest.err >&5
15163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); } && {
15165          test -z "$ac_c_werror_flag" ||
15166          test ! -s conftest.err
15167        } && test -s conftest$ac_exeext && {
15168          test "$cross_compiling" = yes ||
15169          $as_test_x conftest$ac_exeext
15170        }; then
15171   ac_cv_lib_z_crc32=yes
15172 else
15173   $as_echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176         ac_cv_lib_z_crc32=no
15177 fi
15178
15179 rm -rf conftest.dSYM
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181       conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15183 fi
15184 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
15185 $as_echo "$ac_cv_lib_z_crc32" >&6; }
15186 if test "x$ac_cv_lib_z_crc32" = x""yes; then
15187   cat >>confdefs.h <<_ACEOF
15188 #define HAVE_LIBZ 1
15189 _ACEOF
15190
15191   LIBS="-lz $LIBS"
15192
15193 else
15194   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15196 { { $as_echo "$as_me:$LINENO: error:
15197         *** crc32() missing, zlib-devel package required
15198 See \`config.log' for more details." >&5
15199 $as_echo "$as_me: error:
15200         *** crc32() missing, zlib-devel package required
15201 See \`config.log' for more details." >&2;}
15202    { (exit 1); exit 1; }; }; }
15203 fi
15204
15205
15206         ZLIB="-lz"
15207
15208
15209 cat >>confdefs.h <<\_ACEOF
15210 #define HAVE_ZLIB 1
15211 _ACEOF
15212
15213
15214
15215         LIBUUID=
15216
15217         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15218   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15219 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15220 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15221   $as_echo_n "(cached) " >&6
15222 fi
15223 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15224 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15225 else
15226   # Is the header compilable?
15227 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
15228 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235 $ac_includes_default
15236 #include <uuid/uuid.h>
15237 _ACEOF
15238 rm -f conftest.$ac_objext
15239 if { (ac_try="$ac_compile"
15240 case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15245 $as_echo "$ac_try_echo") >&5
15246   (eval "$ac_compile") 2>conftest.er1
15247   ac_status=$?
15248   grep -v '^ *+' conftest.er1 >conftest.err
15249   rm -f conftest.er1
15250   cat conftest.err >&5
15251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } && {
15253          test -z "$ac_c_werror_flag" ||
15254          test ! -s conftest.err
15255        } && test -s conftest.$ac_objext; then
15256   ac_header_compiler=yes
15257 else
15258   $as_echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261         ac_header_compiler=no
15262 fi
15263
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15266 $as_echo "$ac_header_compiler" >&6; }
15267
15268 # Is the header present?
15269 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
15270 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
15271 cat >conftest.$ac_ext <<_ACEOF
15272 /* confdefs.h.  */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h.  */
15277 #include <uuid/uuid.h>
15278 _ACEOF
15279 if { (ac_try="$ac_cpp conftest.$ac_ext"
15280 case "(($ac_try" in
15281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282   *) ac_try_echo=$ac_try;;
15283 esac
15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15285 $as_echo "$ac_try_echo") >&5
15286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } >/dev/null && {
15293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15294          test ! -s conftest.err
15295        }; then
15296   ac_header_preproc=yes
15297 else
15298   $as_echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301   ac_header_preproc=no
15302 fi
15303
15304 rm -f conftest.err conftest.$ac_ext
15305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15306 $as_echo "$ac_header_preproc" >&6; }
15307
15308 # So?  What about this header?
15309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15310   yes:no: )
15311     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
15312 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15313     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
15314 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
15315     ac_header_preproc=yes
15316     ;;
15317   no:yes:* )
15318     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
15319 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
15320     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
15321 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
15322     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
15323 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
15324     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
15325 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15326     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
15327 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
15328     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
15329 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
15330
15331     ;;
15332 esac
15333 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15334 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15335 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15336   $as_echo_n "(cached) " >&6
15337 else
15338   ac_cv_header_uuid_uuid_h=$ac_header_preproc
15339 fi
15340 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15341 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15342
15343 fi
15344 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
15345   :
15346 else
15347   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15349 { { $as_echo "$as_me:$LINENO: error:
15350         *** uuid/uuid.h missing, libuuid-devel package required
15351 See \`config.log' for more details." >&5
15352 $as_echo "$as_me: error:
15353         *** uuid/uuid.h missing, libuuid-devel package required
15354 See \`config.log' for more details." >&2;}
15355    { (exit 1); exit 1; }; }; }
15356 fi
15357
15358
15359
15360
15361 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
15362 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
15363 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
15364   $as_echo_n "(cached) " >&6
15365 else
15366   ac_check_lib_save_LIBS=$LIBS
15367 LIBS="-luuid  $LIBS"
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 /* Override any GCC internal prototype to avoid an error.
15376    Use char because int might match the return type of a GCC
15377    builtin and then its argument prototype would still apply.  */
15378 #ifdef __cplusplus
15379 extern "C"
15380 #endif
15381 char uuid_generate ();
15382 int
15383 main ()
15384 {
15385 return uuid_generate ();
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (ac_try="$ac_link"
15392 case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15397 $as_echo "$ac_try_echo") >&5
15398   (eval "$ac_link") 2>conftest.er1
15399   ac_status=$?
15400   grep -v '^ *+' conftest.er1 >conftest.err
15401   rm -f conftest.er1
15402   cat conftest.err >&5
15403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } && {
15405          test -z "$ac_c_werror_flag" ||
15406          test ! -s conftest.err
15407        } && test -s conftest$ac_exeext && {
15408          test "$cross_compiling" = yes ||
15409          $as_test_x conftest$ac_exeext
15410        }; then
15411   ac_cv_lib_uuid_uuid_generate=yes
15412 else
15413   $as_echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416         ac_cv_lib_uuid_uuid_generate=no
15417 fi
15418
15419 rm -rf conftest.dSYM
15420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15421       conftest$ac_exeext conftest.$ac_ext
15422 LIBS=$ac_check_lib_save_LIBS
15423 fi
15424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15425 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15426 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15427   cat >>confdefs.h <<_ACEOF
15428 #define HAVE_LIBUUID 1
15429 _ACEOF
15430
15431   LIBS="-luuid $LIBS"
15432
15433 else
15434   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15436 { { $as_echo "$as_me:$LINENO: error:
15437         *** uuid_generate() missing, libuuid-devel package required
15438 See \`config.log' for more details." >&5
15439 $as_echo "$as_me: error:
15440         *** uuid_generate() missing, libuuid-devel package required
15441 See \`config.log' for more details." >&2;}
15442    { (exit 1); exit 1; }; }; }
15443 fi
15444
15445
15446
15447 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
15448 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
15449 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15450   $as_echo_n "(cached) " >&6
15451 else
15452   ac_check_lib_save_LIBS=$LIBS
15453 LIBS="-luuid  $LIBS"
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h.  */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h.  */
15460
15461 /* Override any GCC internal prototype to avoid an error.
15462    Use char because int might match the return type of a GCC
15463    builtin and then its argument prototype would still apply.  */
15464 #ifdef __cplusplus
15465 extern "C"
15466 #endif
15467 char uuid_is_null ();
15468 int
15469 main ()
15470 {
15471 return uuid_is_null ();
15472   ;
15473   return 0;
15474 }
15475 _ACEOF
15476 rm -f conftest.$ac_objext conftest$ac_exeext
15477 if { (ac_try="$ac_link"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15483 $as_echo "$ac_try_echo") >&5
15484   (eval "$ac_link") 2>conftest.er1
15485   ac_status=$?
15486   grep -v '^ *+' conftest.er1 >conftest.err
15487   rm -f conftest.er1
15488   cat conftest.err >&5
15489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); } && {
15491          test -z "$ac_c_werror_flag" ||
15492          test ! -s conftest.err
15493        } && test -s conftest$ac_exeext && {
15494          test "$cross_compiling" = yes ||
15495          $as_test_x conftest$ac_exeext
15496        }; then
15497   ac_cv_lib_uuid_uuid_is_null=yes
15498 else
15499   $as_echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502         ac_cv_lib_uuid_uuid_is_null=no
15503 fi
15504
15505 rm -rf conftest.dSYM
15506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15507       conftest$ac_exeext conftest.$ac_ext
15508 LIBS=$ac_check_lib_save_LIBS
15509 fi
15510 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
15511 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15512 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15513   cat >>confdefs.h <<_ACEOF
15514 #define HAVE_LIBUUID 1
15515 _ACEOF
15516
15517   LIBS="-luuid $LIBS"
15518
15519 else
15520   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15522 { { $as_echo "$as_me:$LINENO: error:
15523         *** uuid_is_null() missing, libuuid-devel package required
15524 See \`config.log' for more details." >&5
15525 $as_echo "$as_me: error:
15526         *** uuid_is_null() missing, libuuid-devel package required
15527 See \`config.log' for more details." >&2;}
15528    { (exit 1); exit 1; }; }; }
15529 fi
15530
15531
15532         LIBUUID="-luuid"
15533
15534
15535 cat >>confdefs.h <<\_ACEOF
15536 #define HAVE_LIBUUID 1
15537 _ACEOF
15538
15539
15540
15541
15542 # Check whether --with-blkid was given.
15543 if test "${with_blkid+set}" = set; then
15544   withval=$with_blkid;
15545 else
15546   with_blkid=check
15547 fi
15548
15549
15550         LIBBLKID=
15551         if test "x$with_blkid" != xno; then
15552
15553                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
15554 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
15555 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
15556   $as_echo_n "(cached) " >&6
15557 else
15558   ac_check_lib_save_LIBS=$LIBS
15559 LIBS="-lblkid  $LIBS"
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h.  */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h.  */
15566
15567 /* Override any GCC internal prototype to avoid an error.
15568    Use char because int might match the return type of a GCC
15569    builtin and then its argument prototype would still apply.  */
15570 #ifdef __cplusplus
15571 extern "C"
15572 #endif
15573 char blkid_get_cache ();
15574 int
15575 main ()
15576 {
15577 return blkid_get_cache ();
15578   ;
15579   return 0;
15580 }
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15589 $as_echo "$ac_try_echo") >&5
15590   (eval "$ac_link") 2>conftest.er1
15591   ac_status=$?
15592   grep -v '^ *+' conftest.er1 >conftest.err
15593   rm -f conftest.er1
15594   cat conftest.err >&5
15595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } && {
15597          test -z "$ac_c_werror_flag" ||
15598          test ! -s conftest.err
15599        } && test -s conftest$ac_exeext && {
15600          test "$cross_compiling" = yes ||
15601          $as_test_x conftest$ac_exeext
15602        }; then
15603   ac_cv_lib_blkid_blkid_get_cache=yes
15604 else
15605   $as_echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608         ac_cv_lib_blkid_blkid_get_cache=no
15609 fi
15610
15611 rm -rf conftest.dSYM
15612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15613       conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15615 fi
15616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15617 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15618 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
15619
15620                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15621 $as_echo_n "checking for blkid zfs support... " >&6; }
15622
15623                         ZFS_DEV=`mktemp`
15624                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
15625                                 >/dev/null 2>/dev/null
15626                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15627                                 dd of=$ZFS_DEV bs=1k count=8 \
15628                                 seek=132 conv=notrunc &>/dev/null \
15629                                 >/dev/null 2>/dev/null
15630
15631                         saved_LDFLAGS="$LDFLAGS"
15632                         LDFLAGS="-lblkid"
15633
15634                         if test "$cross_compiling" = yes; then
15635   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15637 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15638 See \`config.log' for more details." >&5
15639 $as_echo "$as_me: error: cannot run test program while cross compiling
15640 See \`config.log' for more details." >&2;}
15641    { (exit 1); exit 1; }; }; }
15642 else
15643   cat >conftest.$ac_ext <<_ACEOF
15644 /* confdefs.h.  */
15645 _ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h.  */
15649
15650                                 #include <stdio.h>
15651                                 #include <blkid/blkid.h>
15652
15653 int
15654 main ()
15655 {
15656
15657                                 blkid_cache cache;
15658                                 char *value;
15659
15660                                 if (blkid_get_cache(&cache, NULL) < 0)
15661                                         return 1;
15662
15663                                 value = blkid_get_tag_value(cache, "TYPE",
15664                                                             "$ZFS_DEV");
15665                                 if (!value) {
15666                                         blkid_put_cache(cache);
15667                                         return 2;
15668                                 }
15669
15670                                 if (strcmp(value, "zfs")) {
15671                                         free(value);
15672                                         blkid_put_cache(cache);
15673                                         return 3;
15674                                 }
15675
15676                                 free(value);
15677                                 blkid_put_cache(cache);
15678
15679   ;
15680   return 0;
15681 }
15682 _ACEOF
15683 rm -f conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687   *) ac_try_echo=$ac_try;;
15688 esac
15689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15690 $as_echo "$ac_try_echo") >&5
15691   (eval "$ac_link") 2>&5
15692   ac_status=$?
15693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15695   { (case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15700 $as_echo "$ac_try_echo") >&5
15701   (eval "$ac_try") 2>&5
15702   ac_status=$?
15703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; }; then
15705
15706                                 rm -f $ZFS_DEV
15707                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15708 $as_echo "yes" >&6; }
15709                                 LIBBLKID="-lblkid"
15710
15711
15712 cat >>confdefs.h <<\_ACEOF
15713 #define HAVE_LIBBLKID 1
15714 _ACEOF
15715
15716
15717 else
15718   $as_echo "$as_me: program exited with status $ac_status" >&5
15719 $as_echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ( exit $ac_status )
15723
15724                                 rm -f $ZFS_DEV
15725                                 { $as_echo "$as_me:$LINENO: result: no" >&5
15726 $as_echo "no" >&6; }
15727                                 if test "x$with_blkid" != xcheck; then
15728   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15730 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15731 See \`config.log' for more details." >&5
15732 $as_echo "$as_me: error: --with-blkid given but unavailable
15733 See \`config.log' for more details." >&2;}
15734    { (exit 1); exit 1; }; }; }
15735 fi
15736
15737
15738 fi
15739 rm -rf conftest.dSYM
15740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15741 fi
15742
15743
15744
15745                         LDFLAGS="$saved_LDFLAGS"
15746
15747 else
15748
15749                         if test "x$with_blkid" != xcheck; then
15750   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15752 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15753 See \`config.log' for more details." >&5
15754 $as_echo "$as_me: error: --with-blkid given but unavailable
15755 See \`config.log' for more details." >&2;}
15756    { (exit 1); exit 1; }; }; }
15757 fi
15758
15759
15760
15761 fi
15762
15763
15764 fi
15765
15766
15767
15768
15769 # Check whether --with-selinux was given.
15770 if test "${with_selinux+set}" = set; then
15771   withval=$with_selinux;
15772 else
15773   with_selinux=check
15774 fi
15775
15776
15777         LIBSELINUX=
15778         if test "x$with_selinux" != xno; then
15779
15780                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15781   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15782 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15783 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15784   $as_echo_n "(cached) " >&6
15785 fi
15786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15787 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15788 else
15789   # Is the header compilable?
15790 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15791 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h.  */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h.  */
15798 $ac_includes_default
15799 #include <selinux/selinux.h>
15800 _ACEOF
15801 rm -f conftest.$ac_objext
15802 if { (ac_try="$ac_compile"
15803 case "(($ac_try" in
15804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805   *) ac_try_echo=$ac_try;;
15806 esac
15807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15808 $as_echo "$ac_try_echo") >&5
15809   (eval "$ac_compile") 2>conftest.er1
15810   ac_status=$?
15811   grep -v '^ *+' conftest.er1 >conftest.err
15812   rm -f conftest.er1
15813   cat conftest.err >&5
15814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); } && {
15816          test -z "$ac_c_werror_flag" ||
15817          test ! -s conftest.err
15818        } && test -s conftest.$ac_objext; then
15819   ac_header_compiler=yes
15820 else
15821   $as_echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824         ac_header_compiler=no
15825 fi
15826
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15829 $as_echo "$ac_header_compiler" >&6; }
15830
15831 # Is the header present?
15832 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15833 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h.  */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h.  */
15840 #include <selinux/selinux.h>
15841 _ACEOF
15842 if { (ac_try="$ac_cpp conftest.$ac_ext"
15843 case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15848 $as_echo "$ac_try_echo") >&5
15849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15850   ac_status=$?
15851   grep -v '^ *+' conftest.er1 >conftest.err
15852   rm -f conftest.er1
15853   cat conftest.err >&5
15854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } >/dev/null && {
15856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15857          test ! -s conftest.err
15858        }; then
15859   ac_header_preproc=yes
15860 else
15861   $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864   ac_header_preproc=no
15865 fi
15866
15867 rm -f conftest.err conftest.$ac_ext
15868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15869 $as_echo "$ac_header_preproc" >&6; }
15870
15871 # So?  What about this header?
15872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15873   yes:no: )
15874     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15875 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15876     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15877 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15878     ac_header_preproc=yes
15879     ;;
15880   no:yes:* )
15881     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15882 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15883     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
15884 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
15885     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15886 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15887     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
15888 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15889     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15890 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15891     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15892 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15893
15894     ;;
15895 esac
15896 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15897 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15898 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15899   $as_echo_n "(cached) " >&6
15900 else
15901   ac_cv_header_selinux_selinux_h=$ac_header_preproc
15902 fi
15903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15904 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15905
15906 fi
15907 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
15908
15909                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15910 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15911 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15912   $as_echo_n "(cached) " >&6
15913 else
15914   ac_check_lib_save_LIBS=$LIBS
15915 LIBS="-lselinux  $LIBS"
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922
15923 /* Override any GCC internal prototype to avoid an error.
15924    Use char because int might match the return type of a GCC
15925    builtin and then its argument prototype would still apply.  */
15926 #ifdef __cplusplus
15927 extern "C"
15928 #endif
15929 char is_selinux_enabled ();
15930 int
15931 main ()
15932 {
15933 return is_selinux_enabled ();
15934   ;
15935   return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (ac_try="$ac_link"
15940 case "(($ac_try" in
15941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942   *) ac_try_echo=$ac_try;;
15943 esac
15944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945 $as_echo "$ac_try_echo") >&5
15946   (eval "$ac_link") 2>conftest.er1
15947   ac_status=$?
15948   grep -v '^ *+' conftest.er1 >conftest.err
15949   rm -f conftest.er1
15950   cat conftest.err >&5
15951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } && {
15953          test -z "$ac_c_werror_flag" ||
15954          test ! -s conftest.err
15955        } && test -s conftest$ac_exeext && {
15956          test "$cross_compiling" = yes ||
15957          $as_test_x conftest$ac_exeext
15958        }; then
15959   ac_cv_lib_selinux_is_selinux_enabled=yes
15960 else
15961   $as_echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964         ac_cv_lib_selinux_is_selinux_enabled=no
15965 fi
15966
15967 rm -rf conftest.dSYM
15968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15969       conftest$ac_exeext conftest.$ac_ext
15970 LIBS=$ac_check_lib_save_LIBS
15971 fi
15972 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15973 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15974 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15975
15976                                 LIBSELINUX="-lselinux"
15977
15978
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_LIBSELINUX 1
15981 _ACEOF
15982
15983
15984 else
15985
15986                                 if test "x$with_selinux" != xcheck; then
15987   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15989 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15990 See \`config.log' for more details." >&5
15991 $as_echo "$as_me: error: --with-selinux given but unavailable
15992 See \`config.log' for more details." >&2;}
15993    { (exit 1); exit 1; }; }; }
15994
15995 fi
15996
15997
15998 fi
15999
16000
16001 else
16002
16003                         if test "x$with_selinux" != xcheck; then
16004   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16006 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16007 See \`config.log' for more details." >&5
16008 $as_echo "$as_me: error: --with-selinux given but unavailable
16009 See \`config.log' for more details." >&2;}
16010    { (exit 1); exit 1; }; }; }
16011
16012 fi
16013
16014
16015 fi
16016
16017
16018
16019 else
16020
16021                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
16022 $as_echo_n "checking for selinux support... " >&6; }
16023                 { $as_echo "$as_me:$LINENO: result: no" >&5
16024 $as_echo "no" >&6; }
16025
16026 fi
16027
16028
16029
16030         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
16031 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
16032
16033         saved_flags="$CFLAGS"
16034         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
16035
16036         if test "$cross_compiling" = yes; then
16037   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16039 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16040 See \`config.log' for more details." >&5
16041 $as_echo "$as_me: error: cannot run test program while cross compiling
16042 See \`config.log' for more details." >&2;}
16043    { (exit 1); exit 1; }; }; }
16044 else
16045   cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051
16052 int
16053 main ()
16054 {
16055
16056   ;
16057   return 0;
16058 }
16059 _ACEOF
16060 rm -f conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16067 $as_echo "$ac_try_echo") >&5
16068   (eval "$ac_link") 2>&5
16069   ac_status=$?
16070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16072   { (case "(($ac_try" in
16073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074   *) ac_try_echo=$ac_try;;
16075 esac
16076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16077 $as_echo "$ac_try_echo") >&5
16078   (eval "$ac_try") 2>&5
16079   ac_status=$?
16080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; }; then
16082
16083                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
16084                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16085 $as_echo "yes" >&6; }
16086
16087 else
16088   $as_echo "$as_me: program exited with status $ac_status" >&5
16089 $as_echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092 ( exit $ac_status )
16093
16094                 FRAME_LARGER_THAN=
16095                 { $as_echo "$as_me:$LINENO: result: no" >&5
16096 $as_echo "no" >&6; }
16097
16098 fi
16099 rm -rf conftest.dSYM
16100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16101 fi
16102
16103
16104
16105         CFLAGS="$saved_flags"
16106
16107
16108
16109
16110         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
16111 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
16112
16113         saved_CFLAGS="$CFLAGS"
16114         CFLAGS="-fstack-check"
16115         saved_LDFLAGS="$LDFLAGS"
16116         LDFLAGS="-lpthread"
16117
16118         if test "$cross_compiling" = yes; then
16119   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16121 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16122 See \`config.log' for more details." >&5
16123 $as_echo "$as_me: error: cannot run test program while cross compiling
16124 See \`config.log' for more details." >&2;}
16125    { (exit 1); exit 1; }; }; }
16126 else
16127   cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h.  */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h.  */
16133
16134                 #include <pthread.h>
16135                 #include <sys/resource.h>
16136                 #include <unistd.h>
16137                 #include <bits/local_lim.h>
16138
16139                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
16140                 #define STACK_SIZE 8192
16141                 #define BUFSIZE 4096
16142
16143                 void * func(void *arg)
16144                 {
16145                         char buf[BUFSIZE];
16146                 }
16147
16148 int
16149 main ()
16150 {
16151
16152                 pthread_t tid;
16153                 pthread_attr_t attr;
16154                 struct rlimit l;
16155
16156                 l.rlim_cur = 0;
16157                 l.rlim_max = 0;
16158                 setrlimit(RLIMIT_CORE, &l);
16159                 pthread_attr_init(&attr);
16160                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
16161                 pthread_attr_setguardsize(&attr, PAGESIZE);
16162                 pthread_create(&tid, &attr, func, NULL);
16163                 pthread_join(tid, NULL);
16164
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16176 $as_echo "$ac_try_echo") >&5
16177   (eval "$ac_link") 2>&5
16178   ac_status=$?
16179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181   { (case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186 $as_echo "$ac_try_echo") >&5
16187   (eval "$ac_try") 2>&5
16188   ac_status=$?
16189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); }; }; then
16191
16192                 { $as_echo "$as_me:$LINENO: result: no" >&5
16193 $as_echo "no" >&6; }
16194
16195 else
16196   $as_echo "$as_me: program exited with status $ac_status" >&5
16197 $as_echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16199
16200 ( exit $ac_status )
16201
16202
16203 cat >>confdefs.h <<\_ACEOF
16204 #define NPTL_GUARD_WITHIN_STACK 1
16205 _ACEOF
16206
16207                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16208 $as_echo "yes" >&6; }
16209
16210 fi
16211 rm -rf conftest.dSYM
16212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16213 fi
16214
16215
16216         CFLAGS="$saved_CFLAGS"
16217         LDFLAGS="$saved_LDFLAGS"
16218
16219    ;;
16220                 all)
16221
16222
16223 # Check whether --with-linux was given.
16224 if test "${with_linux+set}" = set; then
16225   withval=$with_linux; kernelsrc="$withval"
16226 fi
16227
16228
16229
16230 # Check whether --with-linux-obj was given.
16231 if test "${with_linux_obj+set}" = set; then
16232   withval=$with_linux_obj; kernelbuild="$withval"
16233 fi
16234
16235
16236         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16237 $as_echo_n "checking kernel source directory... " >&6; }
16238         if test -z "$kernelsrc"; then
16239                 if test -e "/lib/modules/$(uname -r)/source"; then
16240                         headersdir="/lib/modules/$(uname -r)/source"
16241                         sourcelink=$(readlink -f "$headersdir")
16242                 elif test -e "/lib/modules/$(uname -r)/build"; then
16243                         headersdir="/lib/modules/$(uname -r)/build"
16244                         sourcelink=$(readlink -f "$headersdir")
16245                 else
16246                         sourcelink=$(ls -1d /usr/src/kernels/* \
16247                                      /usr/src/linux-* \
16248                                      2>/dev/null | grep -v obj | tail -1)
16249                 fi
16250
16251                 if test -n "$sourcelink" && test -e ${sourcelink}; then
16252                         kernelsrc=`readlink -f ${sourcelink}`
16253                 else
16254                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
16255 $as_echo "Not found" >&6; }
16256                         { { $as_echo "$as_me:$LINENO: error:
16257         *** Please make sure the kernel devel package for your distribution
16258         *** is installed then try again.  If that fails you can specify the
16259         *** location of the kernel source with the '--with-linux=PATH' option." >&5
16260 $as_echo "$as_me: error:
16261         *** Please make sure the kernel devel package for your distribution
16262         *** is installed then try again.  If that fails you can specify the
16263         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16264    { (exit 1); exit 1; }; }
16265                 fi
16266         else
16267                 if test "$kernelsrc" = "NONE"; then
16268                         kernsrcver=NONE
16269                 fi
16270         fi
16271
16272         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16273 $as_echo "$kernelsrc" >&6; }
16274         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16275 $as_echo_n "checking kernel build directory... " >&6; }
16276         if test -z "$kernelbuild"; then
16277                 if test -e "/lib/modules/$(uname -r)/build"; then
16278                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16279                 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16280                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16281                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16282                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16283                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16284                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16285                 else
16286                         kernelbuild=${kernelsrc}
16287                 fi
16288         fi
16289         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16290 $as_echo "$kernelbuild" >&6; }
16291
16292         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16293 $as_echo_n "checking kernel source version... " >&6; }
16294         utsrelease1=$kernelbuild/include/linux/version.h
16295         utsrelease2=$kernelbuild/include/linux/utsrelease.h
16296         utsrelease3=$kernelbuild/include/generated/utsrelease.h
16297         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16298                 utsrelease=linux/version.h
16299         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16300                 utsrelease=linux/utsrelease.h
16301         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16302                 utsrelease=generated/utsrelease.h
16303         fi
16304
16305         if test "$utsrelease"; then
16306                 kernsrcver=`(echo "#include <$utsrelease>";
16307                              echo "kernsrcver=UTS_RELEASE") |
16308                              cpp -I $kernelbuild/include |
16309                              grep "^kernsrcver=" | cut -d \" -f 2`
16310
16311                 if test -z "$kernsrcver"; then
16312                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
16313 $as_echo "Not found" >&6; }
16314                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16315 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16316    { (exit 1); exit 1; }; }
16317                 fi
16318         else
16319                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16320 $as_echo "Not found" >&6; }
16321                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16322 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16323    { (exit 1); exit 1; }; }
16324         fi
16325
16326         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16327 $as_echo "$kernsrcver" >&6; }
16328
16329         LINUX=${kernelsrc}
16330         LINUX_OBJ=${kernelbuild}
16331         LINUX_VERSION=${kernsrcver}
16332
16333
16334
16335
16336
16337
16338         modpost=$LINUX/scripts/Makefile.modpost
16339         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16340 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16341         if test -f "$modpost"; then
16342                 if grep -q Modules.symvers $modpost; then
16343                         LINUX_SYMBOLS=Modules.symvers
16344                 else
16345                         LINUX_SYMBOLS=Module.symvers
16346                 fi
16347
16348                 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16349                         { { $as_echo "$as_me:$LINENO: error:
16350         *** Please make sure the kernel devel package for your distribution
16351         *** is installed.  If your building with a custom kernel make sure the
16352         *** kernel is configured, built, and the '--with-linux=PATH' configure
16353         *** option refers to the location of the kernel source." >&5
16354 $as_echo "$as_me: error:
16355         *** Please make sure the kernel devel package for your distribution
16356         *** is installed.  If your building with a custom kernel make sure the
16357         *** kernel is configured, built, and the '--with-linux=PATH' configure
16358         *** option refers to the location of the kernel source." >&2;}
16359    { (exit 1); exit 1; }; }
16360                 fi
16361         else
16362                 LINUX_SYMBOLS=NONE
16363         fi
16364         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16365 $as_echo "$LINUX_SYMBOLS" >&6; }
16366
16367
16368
16369
16370
16371 # Check whether --with-spl was given.
16372 if test "${with_spl+set}" = set; then
16373   withval=$with_spl; splsrc="$withval"
16374 fi
16375
16376
16377
16378 # Check whether --with-spl-obj was given.
16379 if test "${with_spl_obj+set}" = set; then
16380   withval=$with_spl_obj; splbuild="$withval"
16381 fi
16382
16383
16384
16385         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16386 $as_echo_n "checking spl source directory... " >&6; }
16387         if test -z "$splsrc"; then
16388                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
16389                             2>/dev/null | tail -1`
16390
16391                 if test -z "$sourcelink" || test ! -e $sourcelink; then
16392                         sourcelink=../spl
16393                 fi
16394
16395                 if test -e $sourcelink; then
16396                         splsrc=`readlink -f ${sourcelink}`
16397                 else
16398                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
16399 $as_echo "Not found" >&6; }
16400                         { { $as_echo "$as_me:$LINENO: error:
16401         *** Please make sure the spl devel package for your distribution
16402         *** is installed then try again.  If that fails you can specify the
16403         *** location of the spl source with the '--with-spl=PATH' option." >&5
16404 $as_echo "$as_me: error:
16405         *** Please make sure the spl devel package for your distribution
16406         *** is installed then try again.  If that fails you can specify the
16407         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
16408    { (exit 1); exit 1; }; }
16409                 fi
16410         else
16411                 if test "$splsrc" = "NONE"; then
16412                         splbuild=NONE
16413                         splsrcver=NONE
16414                 fi
16415         fi
16416
16417         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16418 $as_echo "$splsrc" >&6; }
16419         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16420 $as_echo_n "checking spl build directory... " >&6; }
16421         if test -z "$splbuild"; then
16422                 splbuild=${splsrc}
16423         fi
16424         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16425 $as_echo "$splbuild" >&6; }
16426
16427         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16428 $as_echo_n "checking spl source version... " >&6; }
16429         if test -r $splbuild/spl_config.h &&
16430                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16431
16432                 splsrcver=`(echo "#include <spl_config.h>";
16433                             echo "splsrcver=SPL_META_VERSION") |
16434                             cpp -I $splbuild |
16435                             grep "^splsrcver=" | cut -d \" -f 2`
16436         fi
16437
16438         if test -z "$splsrcver"; then
16439                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16440 $as_echo "Not found" >&6; }
16441                 { { $as_echo "$as_me:$LINENO: error:
16442                 *** Cannot determine the version of the spl source.
16443                 *** Please prepare the spl source before running this script" >&5
16444 $as_echo "$as_me: error:
16445                 *** Cannot determine the version of the spl source.
16446                 *** Please prepare the spl source before running this script" >&2;}
16447    { (exit 1); exit 1; }; }
16448         fi
16449
16450         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
16451 $as_echo "$splsrcver" >&6; }
16452
16453         SPL=${splsrc}
16454         SPL_OBJ=${splbuild}
16455         SPL_VERSION=${splsrcver}
16456
16457
16458
16459
16460
16461
16462         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
16463 $as_echo_n "checking spl file name for module symbols... " >&6; }
16464         if test -r $SPL_OBJ/Module.symvers; then
16465                 SPL_SYMBOLS=Module.symvers
16466         elif test -r $SPL_OBJ/Modules.symvers; then
16467                 SPL_SYMBOLS=Modules.symvers
16468         elif test -r $SPL_OBJ/module/Module.symvers; then
16469                 SPL_SYMBOLS=Module.symvers
16470         elif test -r $SPL_OBJ/module/Modules.symvers; then
16471                 SPL_SYMBOLS=Modules.symvers
16472         else
16473                 SPL_SYMBOLS=$LINUX_SYMBOLS
16474         fi
16475
16476         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
16477 $as_echo "$SPL_SYMBOLS" >&6; }
16478
16479
16480
16481
16482
16483         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16484 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16485
16486
16487 cat confdefs.h - <<_ACEOF >conftest.c
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493
16494
16495                 #ifndef AUTOCONF_INCLUDED
16496                 #include <linux/config.h>
16497                 #endif
16498
16499 int
16500 main (void)
16501 {
16502
16503                 #ifndef CONFIG_PREEMPT
16504                 #error CONFIG_PREEMPT not #defined
16505                 #endif
16506
16507   ;
16508   return 0;
16509 }
16510
16511 _ACEOF
16512
16513
16514         rm -Rf build && mkdir -p build
16515         echo "obj-m := conftest.o" >build/Makefile
16516         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'
16517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518   (eval $ac_try) 2>&5
16519   ac_status=$?
16520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16523   (eval $ac_try) 2>&5
16524   ac_status=$?
16525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; }; then
16527
16528                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16529 $as_echo "yes" >&6; }
16530                 { { $as_echo "$as_me:$LINENO: error:
16531                 *** Kernel built with CONFIG_PREEMPT which is not supported.
16532                 ** You must rebuild your kernel without this option." >&5
16533 $as_echo "$as_me: error:
16534                 *** Kernel built with CONFIG_PREEMPT which is not supported.
16535                 ** You must rebuild your kernel without this option." >&2;}
16536    { (exit 1); exit 1; }; }
16537
16538 else
16539   $as_echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542                 { $as_echo "$as_me:$LINENO: result: no" >&5
16543 $as_echo "no" >&6; }
16544
16545
16546
16547
16548 fi
16549
16550         rm -Rf build
16551
16552
16553
16554
16555         if test "$ZFS_META_LICENSE" = CDDL; then
16556                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
16557 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
16558
16559
16560 cat confdefs.h - <<_ACEOF >conftest.c
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566
16567
16568                 #ifndef AUTOCONF_INCLUDED
16569                 #include <linux/config.h>
16570                 #endif
16571
16572 int
16573 main (void)
16574 {
16575
16576                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
16577                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
16578                 #endif
16579
16580   ;
16581   return 0;
16582 }
16583
16584 _ACEOF
16585
16586
16587         rm -Rf build && mkdir -p build
16588         echo "obj-m := conftest.o" >build/Makefile
16589         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'
16590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591   (eval $ac_try) 2>&5
16592   ac_status=$?
16593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596   (eval $ac_try) 2>&5
16597   ac_status=$?
16598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; }; then
16600
16601                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16602 $as_echo "yes" >&6; }
16603                 { { $as_echo "$as_me:$LINENO: error:
16604                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16605                 *** incompatible with the CDDL license.  You must rebuild
16606                 *** your kernel without this option." >&5
16607 $as_echo "$as_me: error:
16608                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16609                 *** incompatible with the CDDL license.  You must rebuild
16610                 *** your kernel without this option." >&2;}
16611    { (exit 1); exit 1; }; }
16612
16613 else
16614   $as_echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617                 { $as_echo "$as_me:$LINENO: result: no" >&5
16618 $as_echo "no" >&6; }
16619
16620
16621
16622
16623 fi
16624
16625         rm -Rf build
16626
16627
16628
16629         fi
16630
16631         if test "$ZFS_META_LICENSE" = GPL; then
16632
16633 cat >>confdefs.h <<\_ACEOF
16634 #define HAVE_GPL_ONLY_SYMBOLS 1
16635 _ACEOF
16636
16637         fi
16638
16639
16640         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
16641 $as_echo_n "checking block device operation prototypes... " >&6; }
16642
16643
16644 cat confdefs.h - <<_ACEOF >conftest.c
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650
16651
16652                 #include <linux/blkdev.h>
16653
16654 int
16655 main (void)
16656 {
16657
16658                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16659                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16660                 int (*blk_ioctl) (struct block_device *, fmode_t,
16661                                   unsigned, unsigned long) = NULL;
16662                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16663                                          unsigned, unsigned long) = NULL;
16664                 struct block_device_operations blk_ops = {
16665                         .open           = blk_open,
16666                         .release        = blk_release,
16667                         .ioctl          = blk_ioctl,
16668                         .compat_ioctl   = blk_compat_ioctl,
16669                 };
16670
16671                 blk_ops.open(NULL, 0);
16672                 blk_ops.release(NULL, 0);
16673                 blk_ops.ioctl(NULL, 0, 0, 0);
16674                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16675
16676   ;
16677   return 0;
16678 }
16679
16680 _ACEOF
16681
16682
16683         rm -Rf build && mkdir -p build
16684         echo "obj-m := conftest.o" >build/Makefile
16685         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'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692   (eval $ac_try) 2>&5
16693   ac_status=$?
16694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; }; then
16696
16697                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16698 $as_echo "struct block_device" >&6; }
16699
16700 cat >>confdefs.h <<\_ACEOF
16701 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16702 _ACEOF
16703
16704
16705 else
16706   $as_echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16710 $as_echo "struct inode" >&6; }
16711
16712
16713
16714 fi
16715
16716         rm -Rf build
16717
16718
16719
16720         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16721 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16722
16723
16724 cat confdefs.h - <<_ACEOF >conftest.c
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730
16731
16732                 #include <linux/types.h>
16733
16734 int
16735 main (void)
16736 {
16737
16738                 fmode_t *ptr __attribute__ ((unused));
16739
16740   ;
16741   return 0;
16742 }
16743
16744 _ACEOF
16745
16746
16747         rm -Rf build && mkdir -p build
16748         echo "obj-m := conftest.o" >build/Makefile
16749         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'
16750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751   (eval $ac_try) 2>&5
16752   ac_status=$?
16753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756   (eval $ac_try) 2>&5
16757   ac_status=$?
16758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; }; then
16760
16761                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16762 $as_echo "yes" >&6; }
16763
16764 cat >>confdefs.h <<\_ACEOF
16765 #define HAVE_FMODE_T 1
16766 _ACEOF
16767
16768
16769 else
16770   $as_echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16772
16773                 { $as_echo "$as_me:$LINENO: result: no" >&5
16774 $as_echo "no" >&6; }
16775
16776
16777
16778 fi
16779
16780         rm -Rf build
16781
16782
16783
16784
16785         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16786 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16787
16788
16789 cat confdefs.h - <<_ACEOF >conftest.c
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795
16796
16797                 #include <linux/kobject.h>
16798
16799 int
16800 main (void)
16801 {
16802
16803                 int val __attribute__ ((unused));
16804                 val = KOBJ_NAME_LEN;
16805
16806   ;
16807   return 0;
16808 }
16809
16810 _ACEOF
16811
16812
16813         rm -Rf build && mkdir -p build
16814         echo "obj-m := conftest.o" >build/Makefile
16815         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'
16816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817   (eval $ac_try) 2>&5
16818   ac_status=$?
16819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822   (eval $ac_try) 2>&5
16823   ac_status=$?
16824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); }; }; then
16826
16827                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16828 $as_echo "yes" >&6; }
16829
16830 cat >>confdefs.h <<\_ACEOF
16831 #define HAVE_KOBJ_NAME_LEN 1
16832 _ACEOF
16833
16834
16835 else
16836   $as_echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839                 { $as_echo "$as_me:$LINENO: result: no" >&5
16840 $as_echo "no" >&6; }
16841
16842
16843
16844 fi
16845
16846         rm -Rf build
16847
16848
16849
16850
16851         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
16852 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
16853         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
16854                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16855         rc=$?
16856         if test $rc -ne 0; then
16857                 export=0
16858                 for file in fs/block_dev.c; do
16859                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
16860                         rc=$?
16861                         if test $rc -eq 0; then
16862                                 export=1
16863                                 break;
16864                         fi
16865                 done
16866                 if test $export -eq 0; then
16867                         { $as_echo "$as_me:$LINENO: result: no" >&5
16868 $as_echo "no" >&6; }
16869
16870                 else
16871                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16872 $as_echo "yes" >&6; }
16873
16874 cat >>confdefs.h <<\_ACEOF
16875 #define HAVE_BLKDEV_GET_BY_PATH 1
16876 _ACEOF
16877
16878                 fi
16879         else
16880                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16881 $as_echo "yes" >&6; }
16882
16883 cat >>confdefs.h <<\_ACEOF
16884 #define HAVE_BLKDEV_GET_BY_PATH 1
16885 _ACEOF
16886
16887         fi
16888
16889
16890
16891         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16892 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16893         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
16894                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16895         rc=$?
16896         if test $rc -ne 0; then
16897                 export=0
16898                 for file in fs/block_dev.c; do
16899                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
16900                         rc=$?
16901                         if test $rc -eq 0; then
16902                                 export=1
16903                                 break;
16904                         fi
16905                 done
16906                 if test $export -eq 0; then
16907                         { $as_echo "$as_me:$LINENO: result: no" >&5
16908 $as_echo "no" >&6; }
16909
16910                 else
16911                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16912 $as_echo "yes" >&6; }
16913
16914 cat >>confdefs.h <<\_ACEOF
16915 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16916 _ACEOF
16917
16918                 fi
16919         else
16920                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16921 $as_echo "yes" >&6; }
16922
16923 cat >>confdefs.h <<\_ACEOF
16924 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16925 _ACEOF
16926
16927         fi
16928
16929
16930
16931         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16932 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16933
16934
16935 cat confdefs.h - <<_ACEOF >conftest.c
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941
16942
16943                 #include <linux/buffer_head.h>
16944
16945 int
16946 main (void)
16947 {
16948
16949                 struct block_device *bdev = NULL;
16950                 invalidate_bdev(bdev);
16951
16952   ;
16953   return 0;
16954 }
16955
16956 _ACEOF
16957
16958
16959         rm -Rf build && mkdir -p build
16960         echo "obj-m := conftest.o" >build/Makefile
16961         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'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968   (eval $ac_try) 2>&5
16969   ac_status=$?
16970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; }; then
16972
16973                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16974 $as_echo "yes" >&6; }
16975
16976 cat >>confdefs.h <<\_ACEOF
16977 #define HAVE_1ARG_INVALIDATE_BDEV 1
16978 _ACEOF
16979
16980
16981 else
16982   $as_echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985                 { $as_echo "$as_me:$LINENO: result: no" >&5
16986 $as_echo "no" >&6; }
16987
16988
16989
16990 fi
16991
16992         rm -Rf build
16993
16994
16995
16996
16997         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16998 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16999
17000
17001 cat confdefs.h - <<_ACEOF >conftest.c
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007
17008
17009                 #include <linux/blkdev.h>
17010
17011 int
17012 main (void)
17013 {
17014
17015                 struct block_device *bdev = NULL;
17016                 bdev_logical_block_size(bdev);
17017
17018   ;
17019   return 0;
17020 }
17021
17022 _ACEOF
17023
17024
17025         rm -Rf build && mkdir -p build
17026         echo "obj-m := conftest.o" >build/Makefile
17027         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'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034   (eval $ac_try) 2>&5
17035   ac_status=$?
17036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; }; then
17038
17039                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17040 $as_echo "yes" >&6; }
17041
17042 cat >>confdefs.h <<\_ACEOF
17043 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
17044 _ACEOF
17045
17046
17047 else
17048   $as_echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051                 { $as_echo "$as_me:$LINENO: result: no" >&5
17052 $as_echo "no" >&6; }
17053
17054
17055
17056 fi
17057
17058         rm -Rf build
17059
17060
17061
17062
17063         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
17064 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
17065         EXTRA_KCFLAGS="-Werror"
17066
17067
17068 cat confdefs.h - <<_ACEOF >conftest.c
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074
17075
17076                 #include <linux/bio.h>
17077
17078 int
17079 main (void)
17080 {
17081
17082                 struct bio bio;
17083                 (void)bio_empty_barrier(&bio);
17084
17085   ;
17086   return 0;
17087 }
17088
17089 _ACEOF
17090
17091
17092         rm -Rf build && mkdir -p build
17093         echo "obj-m := conftest.o" >build/Makefile
17094         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'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101   (eval $ac_try) 2>&5
17102   ac_status=$?
17103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105
17106                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17107 $as_echo "yes" >&6; }
17108
17109 cat >>confdefs.h <<\_ACEOF
17110 #define HAVE_BIO_EMPTY_BARRIER 1
17111 _ACEOF
17112
17113
17114 else
17115   $as_echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118                 { $as_echo "$as_me:$LINENO: result: no" >&5
17119 $as_echo "no" >&6; }
17120
17121
17122
17123 fi
17124
17125         rm -Rf build
17126
17127
17128
17129
17130         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
17131 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
17132
17133
17134 cat confdefs.h - <<_ACEOF >conftest.c
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140
17141
17142                 #include <linux/bio.h>
17143
17144 int
17145 main (void)
17146 {
17147
17148                 int flags __attribute__ ((unused));
17149                 flags = (1 << BIO_RW_FAILFAST);
17150
17151   ;
17152   return 0;
17153 }
17154
17155 _ACEOF
17156
17157
17158         rm -Rf build && mkdir -p build
17159         echo "obj-m := conftest.o" >build/Makefile
17160         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'
17161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162   (eval $ac_try) 2>&5
17163   ac_status=$?
17164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; }; then
17171
17172                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17173 $as_echo "yes" >&6; }
17174
17175 cat >>confdefs.h <<\_ACEOF
17176 #define HAVE_BIO_RW_FAILFAST 1
17177 _ACEOF
17178
17179
17180 else
17181   $as_echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17183
17184                 { $as_echo "$as_me:$LINENO: result: no" >&5
17185 $as_echo "no" >&6; }
17186
17187
17188
17189 fi
17190
17191         rm -Rf build
17192
17193
17194
17195
17196         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
17197 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
17198
17199
17200 cat confdefs.h - <<_ACEOF >conftest.c
17201 /* confdefs.h.  */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h.  */
17206
17207
17208                 #include <linux/bio.h>
17209
17210 int
17211 main (void)
17212 {
17213
17214                 int flags __attribute__ ((unused));
17215                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
17216                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
17217                          (1 << BIO_RW_FAILFAST_DRIVER));
17218
17219   ;
17220   return 0;
17221 }
17222
17223 _ACEOF
17224
17225
17226         rm -Rf build && mkdir -p build
17227         echo "obj-m := conftest.o" >build/Makefile
17228         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'
17229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230   (eval $ac_try) 2>&5
17231   ac_status=$?
17232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235   (eval $ac_try) 2>&5
17236   ac_status=$?
17237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); }; }; then
17239
17240                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17241 $as_echo "yes" >&6; }
17242
17243 cat >>confdefs.h <<\_ACEOF
17244 #define HAVE_BIO_RW_FAILFAST_DTD 1
17245 _ACEOF
17246
17247
17248 else
17249   $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252                 { $as_echo "$as_me:$LINENO: result: no" >&5
17253 $as_echo "no" >&6; }
17254
17255
17256
17257 fi
17258
17259         rm -Rf build
17260
17261
17262
17263
17264         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
17265 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
17266
17267
17268 cat confdefs.h - <<_ACEOF >conftest.c
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274
17275
17276                 #include <linux/bio.h>
17277
17278 int
17279 main (void)
17280 {
17281
17282                 int flags __attribute__ ((unused));
17283                 flags = REQ_FAILFAST_MASK;
17284
17285   ;
17286   return 0;
17287 }
17288
17289 _ACEOF
17290
17291
17292         rm -Rf build && mkdir -p build
17293         echo "obj-m := conftest.o" >build/Makefile
17294         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'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301   (eval $ac_try) 2>&5
17302   ac_status=$?
17303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; }; then
17305
17306                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17307 $as_echo "yes" >&6; }
17308
17309 cat >>confdefs.h <<\_ACEOF
17310 #define HAVE_BIO_REQ_FAILFAST_MASK 1
17311 _ACEOF
17312
17313
17314 else
17315   $as_echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318                 { $as_echo "$as_me:$LINENO: result: no" >&5
17319 $as_echo "no" >&6; }
17320
17321
17322
17323 fi
17324
17325         rm -Rf build
17326
17327
17328
17329
17330         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
17331 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
17332         tmp_flags="$EXTRA_KCFLAGS"
17333         EXTRA_KCFLAGS="-Werror"
17334
17335
17336 cat confdefs.h - <<_ACEOF >conftest.c
17337 /* confdefs.h.  */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h.  */
17342
17343
17344                 #include <linux/bio.h>
17345
17346 int
17347 main (void)
17348 {
17349
17350                 void (*wanted_end_io)(struct bio *, int) = NULL;
17351                 bio_end_io_t *local_end_io __attribute__ ((unused));
17352
17353                 local_end_io = wanted_end_io;
17354
17355   ;
17356   return 0;
17357 }
17358
17359 _ACEOF
17360
17361
17362         rm -Rf build && mkdir -p build
17363         echo "obj-m := conftest.o" >build/Makefile
17364         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'
17365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366   (eval $ac_try) 2>&5
17367   ac_status=$?
17368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371   (eval $ac_try) 2>&5
17372   ac_status=$?
17373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; }; then
17375
17376                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17377 $as_echo "yes" >&6; }
17378
17379 cat >>confdefs.h <<\_ACEOF
17380 #define HAVE_2ARGS_BIO_END_IO_T 1
17381 _ACEOF
17382
17383
17384 else
17385   $as_echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388                 { $as_echo "$as_me:$LINENO: result: no" >&5
17389 $as_echo "no" >&6; }
17390
17391
17392
17393 fi
17394
17395         rm -Rf build
17396
17397
17398         EXTRA_KCFLAGS="$tmp_flags"
17399
17400
17401         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
17402 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
17403
17404
17405 cat confdefs.h - <<_ACEOF >conftest.c
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411
17412
17413                 #include <linux/bio.h>
17414
17415 int
17416 main (void)
17417 {
17418
17419                 int flags __attribute__ ((unused));
17420                 flags = BIO_RW_SYNC;
17421
17422   ;
17423   return 0;
17424 }
17425
17426 _ACEOF
17427
17428
17429         rm -Rf build && mkdir -p build
17430         echo "obj-m := conftest.o" >build/Makefile
17431         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'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438   (eval $ac_try) 2>&5
17439   ac_status=$?
17440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); }; }; then
17442
17443                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17444 $as_echo "yes" >&6; }
17445
17446 cat >>confdefs.h <<\_ACEOF
17447 #define HAVE_BIO_RW_SYNC 1
17448 _ACEOF
17449
17450
17451 else
17452   $as_echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455                 { $as_echo "$as_me:$LINENO: result: no" >&5
17456 $as_echo "no" >&6; }
17457
17458
17459
17460 fi
17461
17462         rm -Rf build
17463
17464
17465
17466
17467         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
17468 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
17469
17470
17471 cat confdefs.h - <<_ACEOF >conftest.c
17472 /* confdefs.h.  */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h.  */
17477
17478
17479                 #include <linux/bio.h>
17480
17481 int
17482 main (void)
17483 {
17484
17485                 int flags __attribute__ ((unused));
17486                 flags = BIO_RW_SYNCIO;
17487
17488   ;
17489   return 0;
17490 }
17491
17492 _ACEOF
17493
17494
17495         rm -Rf build && mkdir -p build
17496         echo "obj-m := conftest.o" >build/Makefile
17497         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'
17498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499   (eval $ac_try) 2>&5
17500   ac_status=$?
17501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504   (eval $ac_try) 2>&5
17505   ac_status=$?
17506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); }; }; then
17508
17509                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17510 $as_echo "yes" >&6; }
17511
17512 cat >>confdefs.h <<\_ACEOF
17513 #define HAVE_BIO_RW_SYNCIO 1
17514 _ACEOF
17515
17516
17517 else
17518   $as_echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521                 { $as_echo "$as_me:$LINENO: result: no" >&5
17522 $as_echo "no" >&6; }
17523
17524
17525
17526 fi
17527
17528         rm -Rf build
17529
17530
17531
17532
17533         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
17534 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
17535
17536
17537 cat confdefs.h - <<_ACEOF >conftest.c
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543
17544
17545                 #include <linux/bio.h>
17546
17547 int
17548 main (void)
17549 {
17550
17551                 int flags __attribute__ ((unused));
17552                 flags = REQ_SYNC;
17553
17554   ;
17555   return 0;
17556 }
17557
17558 _ACEOF
17559
17560
17561         rm -Rf build && mkdir -p build
17562         echo "obj-m := conftest.o" >build/Makefile
17563         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'
17564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565   (eval $ac_try) 2>&5
17566   ac_status=$?
17567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570   (eval $ac_try) 2>&5
17571   ac_status=$?
17572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); }; }; then
17574
17575                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17576 $as_echo "yes" >&6; }
17577
17578 cat >>confdefs.h <<\_ACEOF
17579 #define HAVE_REQ_SYNC 1
17580 _ACEOF
17581
17582
17583 else
17584   $as_echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587                 { $as_echo "$as_me:$LINENO: result: no" >&5
17588 $as_echo "no" >&6; }
17589
17590
17591
17592 fi
17593
17594         rm -Rf build
17595
17596
17597
17598
17599         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
17600 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
17601
17602
17603 cat confdefs.h - <<_ACEOF >conftest.c
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609
17610
17611                 #include <linux/blkdev.h>
17612
17613 int
17614 main (void)
17615 {
17616
17617                 struct request *req = NULL;
17618                 (void) blk_end_request(req, 0, 0);
17619
17620   ;
17621   return 0;
17622 }
17623
17624 _ACEOF
17625
17626
17627         rm -Rf build && mkdir -p build
17628         echo "obj-m := conftest.o" >build/Makefile
17629         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'
17630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631   (eval $ac_try) 2>&5
17632   ac_status=$?
17633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636   (eval $ac_try) 2>&5
17637   ac_status=$?
17638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); }; }; then
17640
17641                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17642 $as_echo "yes" >&6; }
17643
17644 cat >>confdefs.h <<\_ACEOF
17645 #define HAVE_BLK_END_REQUEST 1
17646 _ACEOF
17647
17648
17649 else
17650   $as_echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653                 { $as_echo "$as_me:$LINENO: result: no" >&5
17654 $as_echo "no" >&6; }
17655
17656
17657
17658 fi
17659
17660         rm -Rf build
17661
17662
17663
17664         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
17665 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
17666
17667
17668 cat confdefs.h - <<_ACEOF >conftest.c
17669 /* confdefs.h.  */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h.  */
17674
17675
17676                 #include <linux/module.h>
17677                 #include <linux/blkdev.h>
17678
17679                 MODULE_LICENSE("CDDL");
17680
17681 int
17682 main (void)
17683 {
17684
17685                 struct request *req = NULL;
17686                 (void) blk_end_request(req, 0, 0);
17687
17688   ;
17689   return 0;
17690 }
17691
17692 _ACEOF
17693
17694
17695         rm -Rf build && mkdir -p build
17696         echo "obj-m := conftest.o" >build/Makefile
17697         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'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704   (eval $ac_try) 2>&5
17705   ac_status=$?
17706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; }; then
17708
17709                 { $as_echo "$as_me:$LINENO: result: no" >&5
17710 $as_echo "no" >&6; }
17711
17712 else
17713   $as_echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17717 $as_echo "yes" >&6; }
17718
17719 cat >>confdefs.h <<\_ACEOF
17720 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17721 _ACEOF
17722
17723
17724
17725
17726 fi
17727
17728         rm -Rf build
17729
17730
17731
17732
17733         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17734 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17735
17736
17737 cat confdefs.h - <<_ACEOF >conftest.c
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743
17744
17745                 #include <linux/blkdev.h>
17746
17747 int
17748 main (void)
17749 {
17750
17751                 struct request_queue *q = NULL;
17752                 (void) blk_fetch_request(q);
17753
17754   ;
17755   return 0;
17756 }
17757
17758 _ACEOF
17759
17760
17761         rm -Rf build && mkdir -p build
17762         echo "obj-m := conftest.o" >build/Makefile
17763         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'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; }; then
17774
17775                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17776 $as_echo "yes" >&6; }
17777
17778 cat >>confdefs.h <<\_ACEOF
17779 #define HAVE_BLK_FETCH_REQUEST 1
17780 _ACEOF
17781
17782
17783 else
17784   $as_echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787                 { $as_echo "$as_me:$LINENO: result: no" >&5
17788 $as_echo "no" >&6; }
17789
17790
17791
17792 fi
17793
17794         rm -Rf build
17795
17796
17797
17798
17799         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17800 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17801
17802
17803 cat confdefs.h - <<_ACEOF >conftest.c
17804 /* confdefs.h.  */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h.  */
17809
17810
17811                 #include <linux/blkdev.h>
17812
17813 int
17814 main (void)
17815 {
17816
17817                 struct request_queue *q = NULL;
17818                 struct request *req = NULL;
17819                 blk_requeue_request(q, req);
17820
17821   ;
17822   return 0;
17823 }
17824
17825 _ACEOF
17826
17827
17828         rm -Rf build && mkdir -p build
17829         echo "obj-m := conftest.o" >build/Makefile
17830         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'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; }; then
17841
17842                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17843 $as_echo "yes" >&6; }
17844
17845 cat >>confdefs.h <<\_ACEOF
17846 #define HAVE_BLK_REQUEUE_REQUEST 1
17847 _ACEOF
17848
17849
17850 else
17851   $as_echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854                 { $as_echo "$as_me:$LINENO: result: no" >&5
17855 $as_echo "no" >&6; }
17856
17857
17858
17859 fi
17860
17861         rm -Rf build
17862
17863
17864
17865
17866         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17867 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17868
17869
17870 cat confdefs.h - <<_ACEOF >conftest.c
17871 /* confdefs.h.  */
17872 _ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h.  */
17876
17877
17878                 #include <linux/blkdev.h>
17879
17880 int
17881 main (void)
17882 {
17883
17884                 struct request *req = NULL;
17885                 (void) blk_rq_bytes(req);
17886
17887   ;
17888   return 0;
17889 }
17890
17891 _ACEOF
17892
17893
17894         rm -Rf build && mkdir -p build
17895         echo "obj-m := conftest.o" >build/Makefile
17896         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'
17897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898   (eval $ac_try) 2>&5
17899   ac_status=$?
17900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903   (eval $ac_try) 2>&5
17904   ac_status=$?
17905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); }; }; then
17907
17908                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17909 $as_echo "yes" >&6; }
17910
17911 cat >>confdefs.h <<\_ACEOF
17912 #define HAVE_BLK_RQ_BYTES 1
17913 _ACEOF
17914
17915
17916 else
17917   $as_echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920                 { $as_echo "$as_me:$LINENO: result: no" >&5
17921 $as_echo "no" >&6; }
17922
17923
17924
17925 fi
17926
17927         rm -Rf build
17928
17929
17930
17931         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
17932 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
17933
17934
17935 cat confdefs.h - <<_ACEOF >conftest.c
17936 /* confdefs.h.  */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h.  */
17941
17942
17943                 #include <linux/module.h>
17944                 #include <linux/blkdev.h>
17945
17946                 MODULE_LICENSE("CDDL");
17947
17948 int
17949 main (void)
17950 {
17951
17952                 struct request *req = NULL;
17953                 (void) blk_rq_bytes(req);
17954
17955   ;
17956   return 0;
17957 }
17958
17959 _ACEOF
17960
17961
17962         rm -Rf build && mkdir -p build
17963         echo "obj-m := conftest.o" >build/Makefile
17964         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'
17965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966   (eval $ac_try) 2>&5
17967   ac_status=$?
17968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971   (eval $ac_try) 2>&5
17972   ac_status=$?
17973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); }; }; then
17975
17976                 { $as_echo "$as_me:$LINENO: result: no" >&5
17977 $as_echo "no" >&6; }
17978
17979 else
17980   $as_echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17982
17983                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17984 $as_echo "yes" >&6; }
17985
17986 cat >>confdefs.h <<\_ACEOF
17987 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
17988 _ACEOF
17989
17990
17991
17992
17993 fi
17994
17995         rm -Rf build
17996
17997
17998
17999
18000         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
18001 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
18002
18003
18004 cat confdefs.h - <<_ACEOF >conftest.c
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010
18011
18012                 #include <linux/blkdev.h>
18013
18014 int
18015 main (void)
18016 {
18017
18018                 struct request *req = NULL;
18019                 (void) blk_rq_pos(req);
18020
18021   ;
18022   return 0;
18023 }
18024
18025 _ACEOF
18026
18027
18028         rm -Rf build && mkdir -p build
18029         echo "obj-m := conftest.o" >build/Makefile
18030         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'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037   (eval $ac_try) 2>&5
18038   ac_status=$?
18039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041
18042                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18043 $as_echo "yes" >&6; }
18044
18045 cat >>confdefs.h <<\_ACEOF
18046 #define HAVE_BLK_RQ_POS 1
18047 _ACEOF
18048
18049
18050 else
18051   $as_echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054                 { $as_echo "$as_me:$LINENO: result: no" >&5
18055 $as_echo "no" >&6; }
18056
18057
18058
18059 fi
18060
18061         rm -Rf build
18062
18063
18064
18065
18066         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
18067 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
18068
18069
18070 cat confdefs.h - <<_ACEOF >conftest.c
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076
18077
18078                 #include <linux/blkdev.h>
18079
18080 int
18081 main (void)
18082 {
18083
18084                 struct request *req = NULL;
18085                 (void) blk_rq_sectors(req);
18086
18087   ;
18088   return 0;
18089 }
18090
18091 _ACEOF
18092
18093
18094         rm -Rf build && mkdir -p build
18095         echo "obj-m := conftest.o" >build/Makefile
18096         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'
18097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098   (eval $ac_try) 2>&5
18099   ac_status=$?
18100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; }; then
18107
18108                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18109 $as_echo "yes" >&6; }
18110
18111 cat >>confdefs.h <<\_ACEOF
18112 #define HAVE_BLK_RQ_SECTORS 1
18113 _ACEOF
18114
18115
18116 else
18117   $as_echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120                 { $as_echo "$as_me:$LINENO: result: no" >&5
18121 $as_echo "no" >&6; }
18122
18123
18124
18125 fi
18126
18127         rm -Rf build
18128
18129
18130
18131
18132         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18133 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
18134
18135
18136 cat confdefs.h - <<_ACEOF >conftest.c
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142
18143
18144                 #include <linux/blkdev.h>
18145
18146 int
18147 main (void)
18148 {
18149
18150                 struct gendisk *disk = NULL;
18151                 (void) get_disk_ro(disk);
18152
18153   ;
18154   return 0;
18155 }
18156
18157 _ACEOF
18158
18159
18160         rm -Rf build && mkdir -p build
18161         echo "obj-m := conftest.o" >build/Makefile
18162         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'
18163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164   (eval $ac_try) 2>&5
18165   ac_status=$?
18166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169   (eval $ac_try) 2>&5
18170   ac_status=$?
18171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; }; then
18173
18174                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18175 $as_echo "yes" >&6; }
18176
18177 cat >>confdefs.h <<\_ACEOF
18178 #define HAVE_GET_DISK_RO 1
18179 _ACEOF
18180
18181
18182 else
18183   $as_echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18185
18186                 { $as_echo "$as_me:$LINENO: result: no" >&5
18187 $as_echo "no" >&6; }
18188
18189
18190
18191 fi
18192
18193         rm -Rf build
18194
18195
18196
18197
18198         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
18199 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
18200
18201
18202 cat confdefs.h - <<_ACEOF >conftest.c
18203 /* confdefs.h.  */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h.  */
18208
18209
18210                 #include <linux/blkdev.h>
18211
18212 int
18213 main (void)
18214 {
18215
18216                 struct request *req = NULL;
18217                 (void) rq_is_sync(req);
18218
18219   ;
18220   return 0;
18221 }
18222
18223 _ACEOF
18224
18225
18226         rm -Rf build && mkdir -p build
18227         echo "obj-m := conftest.o" >build/Makefile
18228         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'
18229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230   (eval $ac_try) 2>&5
18231   ac_status=$?
18232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235   (eval $ac_try) 2>&5
18236   ac_status=$?
18237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; }; then
18239
18240                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18241 $as_echo "yes" >&6; }
18242
18243 cat >>confdefs.h <<\_ACEOF
18244 #define HAVE_RQ_IS_SYNC 1
18245 _ACEOF
18246
18247
18248 else
18249   $as_echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252                 { $as_echo "$as_me:$LINENO: result: no" >&5
18253 $as_echo "no" >&6; }
18254
18255
18256
18257 fi
18258
18259         rm -Rf build
18260
18261
18262
18263
18264         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
18265 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
18266
18267
18268 cat confdefs.h - <<_ACEOF >conftest.c
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274
18275
18276                 #include <linux/blkdev.h>
18277
18278 int
18279 main (void)
18280 {
18281
18282                 struct bio_vec *bv;
18283                 struct req_iterator iter;
18284                 struct request *req = NULL;
18285                 rq_for_each_segment(bv, req, iter) { }
18286
18287   ;
18288   return 0;
18289 }
18290
18291 _ACEOF
18292
18293
18294         rm -Rf build && mkdir -p build
18295         echo "obj-m := conftest.o" >build/Makefile
18296         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'
18297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298   (eval $ac_try) 2>&5
18299   ac_status=$?
18300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; }; then
18307
18308                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18309 $as_echo "yes" >&6; }
18310
18311 cat >>confdefs.h <<\_ACEOF
18312 #define HAVE_RQ_FOR_EACH_SEGMENT 1
18313 _ACEOF
18314
18315
18316 else
18317   $as_echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320                 { $as_echo "$as_me:$LINENO: result: no" >&5
18321 $as_echo "no" >&6; }
18322
18323
18324
18325 fi
18326
18327         rm -Rf build
18328
18329
18330
18331         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
18332 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
18333
18334
18335 cat confdefs.h - <<_ACEOF >conftest.c
18336 /* confdefs.h.  */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h.  */
18341
18342
18343                 #include <linux/fs.h>
18344                 #include <linux/xattr.h>
18345
18346                 const struct xattr_handler xattr_test_handler = {
18347                         .prefix = "test",
18348                         .get    = NULL,
18349                         .set    = NULL,
18350                 };
18351
18352                 const struct xattr_handler *xattr_handlers[] = {
18353                         &xattr_test_handler,
18354                 };
18355
18356 int
18357 main (void)
18358 {
18359
18360                 struct super_block sb __attribute__ ((unused));
18361
18362                 sb.s_xattr = xattr_handlers;
18363
18364   ;
18365   return 0;
18366 }
18367
18368 _ACEOF
18369
18370
18371         rm -Rf build && mkdir -p build
18372         echo "obj-m := conftest.o" >build/Makefile
18373         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'
18374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375   (eval $ac_try) 2>&5
18376   ac_status=$?
18377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380   (eval $ac_try) 2>&5
18381   ac_status=$?
18382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; }; then
18384
18385                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18386 $as_echo "yes" >&6; }
18387
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE_CONST_XATTR_HANDLER 1
18390 _ACEOF
18391
18392
18393 else
18394   $as_echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397                 { $as_echo "$as_me:$LINENO: result: no" >&5
18398 $as_echo "no" >&6; }
18399
18400
18401
18402 fi
18403
18404         rm -Rf build
18405
18406
18407
18408
18409         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18410 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18411
18412
18413 cat confdefs.h - <<_ACEOF >conftest.c
18414 /* confdefs.h.  */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h.  */
18419
18420
18421                 #include <linux/xattr.h>
18422
18423 int
18424 main (void)
18425 {
18426
18427                 int (*get)(struct dentry *dentry, const char *name,
18428                     void *buffer, size_t size, int handler_flags) = NULL;
18429                 struct xattr_handler xops __attribute__ ((unused));
18430
18431                 xops.get = get;
18432
18433   ;
18434   return 0;
18435 }
18436
18437 _ACEOF
18438
18439
18440         rm -Rf build && mkdir -p build
18441         echo "obj-m := conftest.o" >build/Makefile
18442         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'
18443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444   (eval $ac_try) 2>&5
18445   ac_status=$?
18446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449   (eval $ac_try) 2>&5
18450   ac_status=$?
18451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; }; then
18453
18454                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18455 $as_echo "yes" >&6; }
18456
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_DENTRY_XATTR_GET 1
18459 _ACEOF
18460
18461
18462 else
18463   $as_echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466                 { $as_echo "$as_me:$LINENO: result: no" >&5
18467 $as_echo "no" >&6; }
18468
18469
18470
18471 fi
18472
18473         rm -Rf build
18474
18475
18476
18477
18478         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18479 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18480
18481
18482 cat confdefs.h - <<_ACEOF >conftest.c
18483 /* confdefs.h.  */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h.  */
18488
18489
18490                 #include <linux/xattr.h>
18491
18492 int
18493 main (void)
18494 {
18495
18496                 int (*set)(struct dentry *dentry, const char *name,
18497                     const void *buffer, size_t size, int flags,
18498                     int handler_flags) = NULL;
18499                 struct xattr_handler xops __attribute__ ((unused));
18500
18501                 xops.set = set;
18502
18503   ;
18504   return 0;
18505 }
18506
18507 _ACEOF
18508
18509
18510         rm -Rf build && mkdir -p build
18511         echo "obj-m := conftest.o" >build/Makefile
18512         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'
18513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514   (eval $ac_try) 2>&5
18515   ac_status=$?
18516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519   (eval $ac_try) 2>&5
18520   ac_status=$?
18521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; }; then
18523
18524                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18525 $as_echo "yes" >&6; }
18526
18527 cat >>confdefs.h <<\_ACEOF
18528 #define HAVE_DENTRY_XATTR_SET 1
18529 _ACEOF
18530
18531
18532 else
18533   $as_echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536                 { $as_echo "$as_me:$LINENO: result: no" >&5
18537 $as_echo "no" >&6; }
18538
18539
18540
18541 fi
18542
18543         rm -Rf build
18544
18545
18546
18547
18548         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
18549 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
18550
18551
18552 cat confdefs.h - <<_ACEOF >conftest.c
18553 /* confdefs.h.  */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h.  */
18558
18559
18560                 #include <linux/fs.h>
18561
18562 int
18563 main (void)
18564 {
18565
18566                 int (*fsync) (struct file *, int datasync) = NULL;
18567                 struct file_operations fops __attribute__ ((unused));
18568
18569                 fops.fsync = fsync;
18570
18571   ;
18572   return 0;
18573 }
18574
18575 _ACEOF
18576
18577
18578         rm -Rf build && mkdir -p build
18579         echo "obj-m := conftest.o" >build/Makefile
18580         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'
18581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582   (eval $ac_try) 2>&5
18583   ac_status=$?
18584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587   (eval $ac_try) 2>&5
18588   ac_status=$?
18589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; }; then
18591
18592                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18593 $as_echo "yes" >&6; }
18594
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE_2ARGS_FSYNC 1
18597 _ACEOF
18598
18599
18600 else
18601   $as_echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604                 { $as_echo "$as_me:$LINENO: result: no" >&5
18605 $as_echo "no" >&6; }
18606
18607
18608
18609 fi
18610
18611         rm -Rf build
18612
18613
18614
18615
18616         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
18617 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18618
18619
18620 cat confdefs.h - <<_ACEOF >conftest.c
18621 /* confdefs.h.  */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h.  */
18626
18627
18628                 #include <linux/fs.h>
18629
18630 int
18631 main (void)
18632 {
18633
18634                 void (*evict_inode) (struct inode *) = NULL;
18635                 struct super_operations sops __attribute__ ((unused));
18636
18637                 sops.evict_inode = evict_inode;
18638
18639   ;
18640   return 0;
18641 }
18642
18643 _ACEOF
18644
18645
18646         rm -Rf build && mkdir -p build
18647         echo "obj-m := conftest.o" >build/Makefile
18648         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'
18649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650   (eval $ac_try) 2>&5
18651   ac_status=$?
18652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655   (eval $ac_try) 2>&5
18656   ac_status=$?
18657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; }; then
18659
18660                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18661 $as_echo "yes" >&6; }
18662
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_EVICT_INODE 1
18665 _ACEOF
18666
18667
18668 else
18669   $as_echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672                 { $as_echo "$as_me:$LINENO: result: no" >&5
18673 $as_echo "no" >&6; }
18674
18675
18676
18677 fi
18678
18679         rm -Rf build
18680
18681
18682
18683
18684         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
18685 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
18686         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18687                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18688         rc=$?
18689         if test $rc -ne 0; then
18690                 export=0
18691                 for file in fs/inode.c; do
18692                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
18693                         rc=$?
18694                         if test $rc -eq 0; then
18695                                 export=1
18696                                 break;
18697                         fi
18698                 done
18699                 if test $export -eq 0; then
18700                         { $as_echo "$as_me:$LINENO: result: no" >&5
18701 $as_echo "no" >&6; }
18702
18703                 else
18704                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18705 $as_echo "yes" >&6; }
18706
18707 cat >>confdefs.h <<\_ACEOF
18708 #define HAVE_INSERT_INODE_LOCKED 1
18709 _ACEOF
18710
18711                 fi
18712         else
18713                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18714 $as_echo "yes" >&6; }
18715
18716 cat >>confdefs.h <<\_ACEOF
18717 #define HAVE_INSERT_INODE_LOCKED 1
18718 _ACEOF
18719
18720         fi
18721
18722
18723
18724         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
18725 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
18726         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18727                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18728         rc=$?
18729         if test $rc -ne 0; then
18730                 export=0
18731                 for file in fs/dcache.c; do
18732                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
18733                         rc=$?
18734                         if test $rc -eq 0; then
18735                                 export=1
18736                                 break;
18737                         fi
18738                 done
18739                 if test $export -eq 0; then
18740                         { $as_echo "$as_me:$LINENO: result: no" >&5
18741 $as_echo "no" >&6; }
18742
18743                 else
18744                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18745 $as_echo "yes" >&6; }
18746
18747 cat >>confdefs.h <<\_ACEOF
18748 #define HAVE_D_OBTAIN_ALIAS 1
18749 _ACEOF
18750
18751                 fi
18752         else
18753                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18754 $as_echo "yes" >&6; }
18755
18756 cat >>confdefs.h <<\_ACEOF
18757 #define HAVE_D_OBTAIN_ALIAS 1
18758 _ACEOF
18759
18760         fi
18761
18762
18763
18764         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
18765 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
18766         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
18767                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18768         rc=$?
18769         if test $rc -ne 0; then
18770                 export=0
18771                 for file in fs/block_dev.c; do
18772                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
18773                         rc=$?
18774                         if test $rc -eq 0; then
18775                                 export=1
18776                                 break;
18777                         fi
18778                 done
18779                 if test $export -eq 0; then
18780                         { $as_echo "$as_me:$LINENO: result: no" >&5
18781 $as_echo "no" >&6; }
18782
18783                 else
18784                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18785 $as_echo "yes" >&6; }
18786
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18789 _ACEOF
18790
18791                 fi
18792         else
18793                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18794 $as_echo "yes" >&6; }
18795
18796 cat >>confdefs.h <<\_ACEOF
18797 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18798 _ACEOF
18799
18800         fi
18801
18802
18803
18804         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
18805 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
18806         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
18807                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18808         rc=$?
18809         if test $rc -ne 0; then
18810                 export=0
18811                 for file in mm/truncate.c; do
18812                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
18813                         rc=$?
18814                         if test $rc -eq 0; then
18815                                 export=1
18816                                 break;
18817                         fi
18818                 done
18819                 if test $export -eq 0; then
18820                         { $as_echo "$as_me:$LINENO: result: no" >&5
18821 $as_echo "no" >&6; }
18822
18823                 else
18824                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18825 $as_echo "yes" >&6; }
18826
18827 cat >>confdefs.h <<\_ACEOF
18828 #define HAVE_TRUNCATE_SETSIZE 1
18829 _ACEOF
18830
18831                 fi
18832         else
18833                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18834 $as_echo "yes" >&6; }
18835
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE_TRUNCATE_SETSIZE 1
18838 _ACEOF
18839
18840         fi
18841
18842
18843
18844         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
18845 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
18846         tmp_flags="$EXTRA_KCFLAGS"
18847         EXTRA_KCFLAGS="-Werror"
18848
18849
18850 cat confdefs.h - <<_ACEOF >conftest.c
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856
18857
18858                 #include <linux/security.h>
18859
18860 int
18861 main (void)
18862 {
18863
18864                 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
18865
18866   ;
18867   return 0;
18868 }
18869
18870 _ACEOF
18871
18872
18873         rm -Rf build && mkdir -p build
18874         echo "obj-m := conftest.o" >build/Makefile
18875         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'
18876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877   (eval $ac_try) 2>&5
18878   ac_status=$?
18879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882   (eval $ac_try) 2>&5
18883   ac_status=$?
18884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; }; then
18886
18887                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18888 $as_echo "yes" >&6; }
18889
18890 cat >>confdefs.h <<\_ACEOF
18891 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
18892 _ACEOF
18893
18894
18895 else
18896   $as_echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899                 { $as_echo "$as_me:$LINENO: result: no" >&5
18900 $as_echo "no" >&6; }
18901
18902
18903
18904 fi
18905
18906         rm -Rf build
18907
18908
18909         EXTRA_KCFLAGS="$tmp_flags"
18910
18911
18912         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
18913 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
18914         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
18915                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18916         rc=$?
18917         if test $rc -ne 0; then
18918                 export=0
18919                 for file in fs/super.c; do
18920                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
18921                         rc=$?
18922                         if test $rc -eq 0; then
18923                                 export=1
18924                                 break;
18925                         fi
18926                 done
18927                 if test $export -eq 0; then
18928                         { $as_echo "$as_me:$LINENO: result: no" >&5
18929 $as_echo "no" >&6; }
18930
18931                 else
18932                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18933 $as_echo "yes" >&6; }
18934
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE_MOUNT_NODEV 1
18937 _ACEOF
18938
18939                 fi
18940         else
18941                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18942 $as_echo "yes" >&6; }
18943
18944 cat >>confdefs.h <<\_ACEOF
18945 #define HAVE_MOUNT_NODEV 1
18946 _ACEOF
18947
18948         fi
18949
18950
18951
18952         if test "$LINUX_OBJ" != "$LINUX"; then
18953                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18954         fi
18955
18956
18957
18958                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
18959         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18960         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18961
18962
18963
18964
18965
18966         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18967 $as_echo_n "checking for target asm dir... " >&6; }
18968         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
18969
18970         case $TARGET_ARCH in
18971         i386|x86_64)
18972                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
18973                 ;;
18974         *)
18975                 TARGET_ASM_DIR=asm-generic
18976                 ;;
18977         esac
18978
18979
18980         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18981 $as_echo "$TARGET_ASM_DIR" >&6; }
18982
18983
18984         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18985 $as_echo_n "checking for ioctl()... " >&6; }
18986         cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 #include <unistd.h>
18993
18994 _ACEOF
18995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18996   $EGREP "ioctl" >/dev/null 2>&1; then
18997   is_unistd=yes
18998 else
18999   is_unistd=no
19000 fi
19001 rm -f conftest*
19002
19003         cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h.  */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h.  */
19009 #include <sys/ioctl.h>
19010
19011 _ACEOF
19012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19013   $EGREP "ioctl" >/dev/null 2>&1; then
19014   is_sys_ioctl=yes
19015 else
19016   is_sys_ioctl=no
19017 fi
19018 rm -f conftest*
19019
19020         cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h.  */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h.  */
19026 #include <stropts.h>
19027
19028 _ACEOF
19029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19030   $EGREP "ioctl" >/dev/null 2>&1; then
19031   is_stropts=yes
19032 else
19033   is_stropts=no
19034 fi
19035 rm -f conftest*
19036
19037
19038         if test $is_unistd = yes; then
19039                 result=unistd.h
19040
19041 cat >>confdefs.h <<\_ACEOF
19042 #define HAVE_IOCTL_IN_UNISTD_H 1
19043 _ACEOF
19044
19045         else
19046
19047                 if test $is_sys_ioctl = yes; then
19048                         result=sys/ioctl.h
19049
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
19052 _ACEOF
19053
19054                 elif test $is_stropts = yes; then
19055
19056 cat >>confdefs.h <<\_ACEOF
19057 #define HAVE_IOCTL_IN_STROPTS_H 1
19058 _ACEOF
19059
19060                 else
19061                         result=no
19062                 fi
19063         fi
19064
19065         if test $result = no; then
19066                 { $as_echo "$as_me:$LINENO: result: no" >&5
19067 $as_echo "no" >&6; }
19068                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
19069 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
19070    { (exit 1); exit 1; }; }
19071         else
19072                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19073 $as_echo "yes" >&6; }
19074         fi
19075
19076
19077         ZLIB=
19078
19079         if test "${ac_cv_header_zlib_h+set}" = set; then
19080   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
19081 $as_echo_n "checking for zlib.h... " >&6; }
19082 if test "${ac_cv_header_zlib_h+set}" = set; then
19083   $as_echo_n "(cached) " >&6
19084 fi
19085 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19086 $as_echo "$ac_cv_header_zlib_h" >&6; }
19087 else
19088   # Is the header compilable?
19089 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
19090 $as_echo_n "checking zlib.h usability... " >&6; }
19091 cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097 $ac_includes_default
19098 #include <zlib.h>
19099 _ACEOF
19100 rm -f conftest.$ac_objext
19101 if { (ac_try="$ac_compile"
19102 case "(($ac_try" in
19103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104   *) ac_try_echo=$ac_try;;
19105 esac
19106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19107 $as_echo "$ac_try_echo") >&5
19108   (eval "$ac_compile") 2>conftest.er1
19109   ac_status=$?
19110   grep -v '^ *+' conftest.er1 >conftest.err
19111   rm -f conftest.er1
19112   cat conftest.err >&5
19113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } && {
19115          test -z "$ac_c_werror_flag" ||
19116          test ! -s conftest.err
19117        } && test -s conftest.$ac_objext; then
19118   ac_header_compiler=yes
19119 else
19120   $as_echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19122
19123         ac_header_compiler=no
19124 fi
19125
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19128 $as_echo "$ac_header_compiler" >&6; }
19129
19130 # Is the header present?
19131 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
19132 $as_echo_n "checking zlib.h presence... " >&6; }
19133 cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h.  */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h.  */
19139 #include <zlib.h>
19140 _ACEOF
19141 if { (ac_try="$ac_cpp conftest.$ac_ext"
19142 case "(($ac_try" in
19143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144   *) ac_try_echo=$ac_try;;
19145 esac
19146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19147 $as_echo "$ac_try_echo") >&5
19148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19149   ac_status=$?
19150   grep -v '^ *+' conftest.er1 >conftest.err
19151   rm -f conftest.er1
19152   cat conftest.err >&5
19153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); } >/dev/null && {
19155          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19156          test ! -s conftest.err
19157        }; then
19158   ac_header_preproc=yes
19159 else
19160   $as_echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163   ac_header_preproc=no
19164 fi
19165
19166 rm -f conftest.err conftest.$ac_ext
19167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19168 $as_echo "$ac_header_preproc" >&6; }
19169
19170 # So?  What about this header?
19171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19172   yes:no: )
19173     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19174 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19175     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19176 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19177     ac_header_preproc=yes
19178     ;;
19179   no:yes:* )
19180     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19181 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19182     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
19183 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
19184     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19185 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19186     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
19187 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19188     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19189 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19190     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19191 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19192
19193     ;;
19194 esac
19195 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
19196 $as_echo_n "checking for zlib.h... " >&6; }
19197 if test "${ac_cv_header_zlib_h+set}" = set; then
19198   $as_echo_n "(cached) " >&6
19199 else
19200   ac_cv_header_zlib_h=$ac_header_preproc
19201 fi
19202 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19203 $as_echo "$ac_cv_header_zlib_h" >&6; }
19204
19205 fi
19206 if test "x$ac_cv_header_zlib_h" = x""yes; then
19207   :
19208 else
19209   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19211 { { $as_echo "$as_me:$LINENO: error:
19212         *** zlib.h missing, zlib-devel package required
19213 See \`config.log' for more details." >&5
19214 $as_echo "$as_me: error:
19215         *** zlib.h missing, zlib-devel package required
19216 See \`config.log' for more details." >&2;}
19217    { (exit 1); exit 1; }; }; }
19218 fi
19219
19220
19221
19222
19223 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
19224 $as_echo_n "checking for compress2 in -lz... " >&6; }
19225 if test "${ac_cv_lib_z_compress2+set}" = set; then
19226   $as_echo_n "(cached) " >&6
19227 else
19228   ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lz  $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h.  */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h.  */
19236
19237 /* Override any GCC internal prototype to avoid an error.
19238    Use char because int might match the return type of a GCC
19239    builtin and then its argument prototype would still apply.  */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char compress2 ();
19244 int
19245 main ()
19246 {
19247 return compress2 ();
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256   *) ac_try_echo=$ac_try;;
19257 esac
19258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19259 $as_echo "$ac_try_echo") >&5
19260   (eval "$ac_link") 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } && {
19267          test -z "$ac_c_werror_flag" ||
19268          test ! -s conftest.err
19269        } && test -s conftest$ac_exeext && {
19270          test "$cross_compiling" = yes ||
19271          $as_test_x conftest$ac_exeext
19272        }; then
19273   ac_cv_lib_z_compress2=yes
19274 else
19275   $as_echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278         ac_cv_lib_z_compress2=no
19279 fi
19280
19281 rm -rf conftest.dSYM
19282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19283       conftest$ac_exeext conftest.$ac_ext
19284 LIBS=$ac_check_lib_save_LIBS
19285 fi
19286 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
19287 $as_echo "$ac_cv_lib_z_compress2" >&6; }
19288 if test "x$ac_cv_lib_z_compress2" = x""yes; then
19289   cat >>confdefs.h <<_ACEOF
19290 #define HAVE_LIBZ 1
19291 _ACEOF
19292
19293   LIBS="-lz $LIBS"
19294
19295 else
19296   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19298 { { $as_echo "$as_me:$LINENO: error:
19299         *** compress2() missing, zlib-devel package required
19300 See \`config.log' for more details." >&5
19301 $as_echo "$as_me: error:
19302         *** compress2() missing, zlib-devel package required
19303 See \`config.log' for more details." >&2;}
19304    { (exit 1); exit 1; }; }; }
19305 fi
19306
19307
19308
19309 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
19310 $as_echo_n "checking for uncompress in -lz... " >&6; }
19311 if test "${ac_cv_lib_z_uncompress+set}" = set; then
19312   $as_echo_n "(cached) " >&6
19313 else
19314   ac_check_lib_save_LIBS=$LIBS
19315 LIBS="-lz  $LIBS"
19316 cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322
19323 /* Override any GCC internal prototype to avoid an error.
19324    Use char because int might match the return type of a GCC
19325    builtin and then its argument prototype would still apply.  */
19326 #ifdef __cplusplus
19327 extern "C"
19328 #endif
19329 char uncompress ();
19330 int
19331 main ()
19332 {
19333 return uncompress ();
19334   ;
19335   return 0;
19336 }
19337 _ACEOF
19338 rm -f conftest.$ac_objext conftest$ac_exeext
19339 if { (ac_try="$ac_link"
19340 case "(($ac_try" in
19341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342   *) ac_try_echo=$ac_try;;
19343 esac
19344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19345 $as_echo "$ac_try_echo") >&5
19346   (eval "$ac_link") 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } && {
19353          test -z "$ac_c_werror_flag" ||
19354          test ! -s conftest.err
19355        } && test -s conftest$ac_exeext && {
19356          test "$cross_compiling" = yes ||
19357          $as_test_x conftest$ac_exeext
19358        }; then
19359   ac_cv_lib_z_uncompress=yes
19360 else
19361   $as_echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19363
19364         ac_cv_lib_z_uncompress=no
19365 fi
19366
19367 rm -rf conftest.dSYM
19368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19369       conftest$ac_exeext conftest.$ac_ext
19370 LIBS=$ac_check_lib_save_LIBS
19371 fi
19372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
19373 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
19374 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
19375   cat >>confdefs.h <<_ACEOF
19376 #define HAVE_LIBZ 1
19377 _ACEOF
19378
19379   LIBS="-lz $LIBS"
19380
19381 else
19382   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19384 { { $as_echo "$as_me:$LINENO: error:
19385         *** uncompress() missing, zlib-devel package required
19386 See \`config.log' for more details." >&5
19387 $as_echo "$as_me: error:
19388         *** uncompress() missing, zlib-devel package required
19389 See \`config.log' for more details." >&2;}
19390    { (exit 1); exit 1; }; }; }
19391 fi
19392
19393
19394
19395 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
19396 $as_echo_n "checking for crc32 in -lz... " >&6; }
19397 if test "${ac_cv_lib_z_crc32+set}" = set; then
19398   $as_echo_n "(cached) " >&6
19399 else
19400   ac_check_lib_save_LIBS=$LIBS
19401 LIBS="-lz  $LIBS"
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h.  */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h.  */
19408
19409 /* Override any GCC internal prototype to avoid an error.
19410    Use char because int might match the return type of a GCC
19411    builtin and then its argument prototype would still apply.  */
19412 #ifdef __cplusplus
19413 extern "C"
19414 #endif
19415 char crc32 ();
19416 int
19417 main ()
19418 {
19419 return crc32 ();
19420   ;
19421   return 0;
19422 }
19423 _ACEOF
19424 rm -f conftest.$ac_objext conftest$ac_exeext
19425 if { (ac_try="$ac_link"
19426 case "(($ac_try" in
19427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428   *) ac_try_echo=$ac_try;;
19429 esac
19430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19431 $as_echo "$ac_try_echo") >&5
19432   (eval "$ac_link") 2>conftest.er1
19433   ac_status=$?
19434   grep -v '^ *+' conftest.er1 >conftest.err
19435   rm -f conftest.er1
19436   cat conftest.err >&5
19437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } && {
19439          test -z "$ac_c_werror_flag" ||
19440          test ! -s conftest.err
19441        } && test -s conftest$ac_exeext && {
19442          test "$cross_compiling" = yes ||
19443          $as_test_x conftest$ac_exeext
19444        }; then
19445   ac_cv_lib_z_crc32=yes
19446 else
19447   $as_echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450         ac_cv_lib_z_crc32=no
19451 fi
19452
19453 rm -rf conftest.dSYM
19454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455       conftest$ac_exeext conftest.$ac_ext
19456 LIBS=$ac_check_lib_save_LIBS
19457 fi
19458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
19459 $as_echo "$ac_cv_lib_z_crc32" >&6; }
19460 if test "x$ac_cv_lib_z_crc32" = x""yes; then
19461   cat >>confdefs.h <<_ACEOF
19462 #define HAVE_LIBZ 1
19463 _ACEOF
19464
19465   LIBS="-lz $LIBS"
19466
19467 else
19468   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19470 { { $as_echo "$as_me:$LINENO: error:
19471         *** crc32() missing, zlib-devel package required
19472 See \`config.log' for more details." >&5
19473 $as_echo "$as_me: error:
19474         *** crc32() missing, zlib-devel package required
19475 See \`config.log' for more details." >&2;}
19476    { (exit 1); exit 1; }; }; }
19477 fi
19478
19479
19480         ZLIB="-lz"
19481
19482
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE_ZLIB 1
19485 _ACEOF
19486
19487
19488
19489         LIBUUID=
19490
19491         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19492   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19493 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19494 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19495   $as_echo_n "(cached) " >&6
19496 fi
19497 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19498 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19499 else
19500   # Is the header compilable?
19501 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
19502 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
19503 cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h.  */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h.  */
19509 $ac_includes_default
19510 #include <uuid/uuid.h>
19511 _ACEOF
19512 rm -f conftest.$ac_objext
19513 if { (ac_try="$ac_compile"
19514 case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19519 $as_echo "$ac_try_echo") >&5
19520   (eval "$ac_compile") 2>conftest.er1
19521   ac_status=$?
19522   grep -v '^ *+' conftest.er1 >conftest.err
19523   rm -f conftest.er1
19524   cat conftest.err >&5
19525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } && {
19527          test -z "$ac_c_werror_flag" ||
19528          test ! -s conftest.err
19529        } && test -s conftest.$ac_objext; then
19530   ac_header_compiler=yes
19531 else
19532   $as_echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535         ac_header_compiler=no
19536 fi
19537
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19540 $as_echo "$ac_header_compiler" >&6; }
19541
19542 # Is the header present?
19543 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
19544 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551 #include <uuid/uuid.h>
19552 _ACEOF
19553 if { (ac_try="$ac_cpp conftest.$ac_ext"
19554 case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19559 $as_echo "$ac_try_echo") >&5
19560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19561   ac_status=$?
19562   grep -v '^ *+' conftest.er1 >conftest.err
19563   rm -f conftest.er1
19564   cat conftest.err >&5
19565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); } >/dev/null && {
19567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19568          test ! -s conftest.err
19569        }; then
19570   ac_header_preproc=yes
19571 else
19572   $as_echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575   ac_header_preproc=no
19576 fi
19577
19578 rm -f conftest.err conftest.$ac_ext
19579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19580 $as_echo "$ac_header_preproc" >&6; }
19581
19582 # So?  What about this header?
19583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19584   yes:no: )
19585     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
19586 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19587     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
19588 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
19589     ac_header_preproc=yes
19590     ;;
19591   no:yes:* )
19592     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
19593 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
19594     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
19595 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
19596     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
19597 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
19598     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
19599 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19600     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
19601 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
19602     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
19603 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
19604
19605     ;;
19606 esac
19607 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19608 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19609 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19610   $as_echo_n "(cached) " >&6
19611 else
19612   ac_cv_header_uuid_uuid_h=$ac_header_preproc
19613 fi
19614 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19615 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19616
19617 fi
19618 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
19619   :
19620 else
19621   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19623 { { $as_echo "$as_me:$LINENO: error:
19624         *** uuid/uuid.h missing, libuuid-devel package required
19625 See \`config.log' for more details." >&5
19626 $as_echo "$as_me: error:
19627         *** uuid/uuid.h missing, libuuid-devel package required
19628 See \`config.log' for more details." >&2;}
19629    { (exit 1); exit 1; }; }; }
19630 fi
19631
19632
19633
19634
19635 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
19636 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
19637 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
19638   $as_echo_n "(cached) " >&6
19639 else
19640   ac_check_lib_save_LIBS=$LIBS
19641 LIBS="-luuid  $LIBS"
19642 cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648
19649 /* Override any GCC internal prototype to avoid an error.
19650    Use char because int might match the return type of a GCC
19651    builtin and then its argument prototype would still apply.  */
19652 #ifdef __cplusplus
19653 extern "C"
19654 #endif
19655 char uuid_generate ();
19656 int
19657 main ()
19658 {
19659 return uuid_generate ();
19660   ;
19661   return 0;
19662 }
19663 _ACEOF
19664 rm -f conftest.$ac_objext conftest$ac_exeext
19665 if { (ac_try="$ac_link"
19666 case "(($ac_try" in
19667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668   *) ac_try_echo=$ac_try;;
19669 esac
19670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19671 $as_echo "$ac_try_echo") >&5
19672   (eval "$ac_link") 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } && {
19679          test -z "$ac_c_werror_flag" ||
19680          test ! -s conftest.err
19681        } && test -s conftest$ac_exeext && {
19682          test "$cross_compiling" = yes ||
19683          $as_test_x conftest$ac_exeext
19684        }; then
19685   ac_cv_lib_uuid_uuid_generate=yes
19686 else
19687   $as_echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690         ac_cv_lib_uuid_uuid_generate=no
19691 fi
19692
19693 rm -rf conftest.dSYM
19694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19695       conftest$ac_exeext conftest.$ac_ext
19696 LIBS=$ac_check_lib_save_LIBS
19697 fi
19698 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
19699 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19700 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
19701   cat >>confdefs.h <<_ACEOF
19702 #define HAVE_LIBUUID 1
19703 _ACEOF
19704
19705   LIBS="-luuid $LIBS"
19706
19707 else
19708   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19710 { { $as_echo "$as_me:$LINENO: error:
19711         *** uuid_generate() missing, libuuid-devel package required
19712 See \`config.log' for more details." >&5
19713 $as_echo "$as_me: error:
19714         *** uuid_generate() missing, libuuid-devel package required
19715 See \`config.log' for more details." >&2;}
19716    { (exit 1); exit 1; }; }; }
19717 fi
19718
19719
19720
19721 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
19722 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
19723 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
19724   $as_echo_n "(cached) " >&6
19725 else
19726   ac_check_lib_save_LIBS=$LIBS
19727 LIBS="-luuid  $LIBS"
19728 cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734
19735 /* Override any GCC internal prototype to avoid an error.
19736    Use char because int might match the return type of a GCC
19737    builtin and then its argument prototype would still apply.  */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char uuid_is_null ();
19742 int
19743 main ()
19744 {
19745 return uuid_is_null ();
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754   *) ac_try_echo=$ac_try;;
19755 esac
19756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19757 $as_echo "$ac_try_echo") >&5
19758   (eval "$ac_link") 2>conftest.er1
19759   ac_status=$?
19760   grep -v '^ *+' conftest.er1 >conftest.err
19761   rm -f conftest.er1
19762   cat conftest.err >&5
19763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); } && {
19765          test -z "$ac_c_werror_flag" ||
19766          test ! -s conftest.err
19767        } && test -s conftest$ac_exeext && {
19768          test "$cross_compiling" = yes ||
19769          $as_test_x conftest$ac_exeext
19770        }; then
19771   ac_cv_lib_uuid_uuid_is_null=yes
19772 else
19773   $as_echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776         ac_cv_lib_uuid_uuid_is_null=no
19777 fi
19778
19779 rm -rf conftest.dSYM
19780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19781       conftest$ac_exeext conftest.$ac_ext
19782 LIBS=$ac_check_lib_save_LIBS
19783 fi
19784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
19785 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
19786 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
19787   cat >>confdefs.h <<_ACEOF
19788 #define HAVE_LIBUUID 1
19789 _ACEOF
19790
19791   LIBS="-luuid $LIBS"
19792
19793 else
19794   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19796 { { $as_echo "$as_me:$LINENO: error:
19797         *** uuid_is_null() missing, libuuid-devel package required
19798 See \`config.log' for more details." >&5
19799 $as_echo "$as_me: error:
19800         *** uuid_is_null() missing, libuuid-devel package required
19801 See \`config.log' for more details." >&2;}
19802    { (exit 1); exit 1; }; }; }
19803 fi
19804
19805
19806         LIBUUID="-luuid"
19807
19808
19809 cat >>confdefs.h <<\_ACEOF
19810 #define HAVE_LIBUUID 1
19811 _ACEOF
19812
19813
19814
19815
19816 # Check whether --with-blkid was given.
19817 if test "${with_blkid+set}" = set; then
19818   withval=$with_blkid;
19819 else
19820   with_blkid=check
19821 fi
19822
19823
19824         LIBBLKID=
19825         if test "x$with_blkid" != xno; then
19826
19827                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
19828 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
19829 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
19830   $as_echo_n "(cached) " >&6
19831 else
19832   ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lblkid  $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840
19841 /* Override any GCC internal prototype to avoid an error.
19842    Use char because int might match the return type of a GCC
19843    builtin and then its argument prototype would still apply.  */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 char blkid_get_cache ();
19848 int
19849 main ()
19850 {
19851 return blkid_get_cache ();
19852   ;
19853   return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863 $as_echo "$ac_try_echo") >&5
19864   (eval "$ac_link") 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } && {
19871          test -z "$ac_c_werror_flag" ||
19872          test ! -s conftest.err
19873        } && test -s conftest$ac_exeext && {
19874          test "$cross_compiling" = yes ||
19875          $as_test_x conftest$ac_exeext
19876        }; then
19877   ac_cv_lib_blkid_blkid_get_cache=yes
19878 else
19879   $as_echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882         ac_cv_lib_blkid_blkid_get_cache=no
19883 fi
19884
19885 rm -rf conftest.dSYM
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887       conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19889 fi
19890 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
19891 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19892 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
19893
19894                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
19895 $as_echo_n "checking for blkid zfs support... " >&6; }
19896
19897                         ZFS_DEV=`mktemp`
19898                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
19899                                 >/dev/null 2>/dev/null
19900                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
19901                                 dd of=$ZFS_DEV bs=1k count=8 \
19902                                 seek=132 conv=notrunc &>/dev/null \
19903                                 >/dev/null 2>/dev/null
19904
19905                         saved_LDFLAGS="$LDFLAGS"
19906                         LDFLAGS="-lblkid"
19907
19908                         if test "$cross_compiling" = yes; then
19909   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19911 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19912 See \`config.log' for more details." >&5
19913 $as_echo "$as_me: error: cannot run test program while cross compiling
19914 See \`config.log' for more details." >&2;}
19915    { (exit 1); exit 1; }; }; }
19916 else
19917   cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923
19924                                 #include <stdio.h>
19925                                 #include <blkid/blkid.h>
19926
19927 int
19928 main ()
19929 {
19930
19931                                 blkid_cache cache;
19932                                 char *value;
19933
19934                                 if (blkid_get_cache(&cache, NULL) < 0)
19935                                         return 1;
19936
19937                                 value = blkid_get_tag_value(cache, "TYPE",
19938                                                             "$ZFS_DEV");
19939                                 if (!value) {
19940                                         blkid_put_cache(cache);
19941                                         return 2;
19942                                 }
19943
19944                                 if (strcmp(value, "zfs")) {
19945                                         free(value);
19946                                         blkid_put_cache(cache);
19947                                         return 3;
19948                                 }
19949
19950                                 free(value);
19951                                 blkid_put_cache(cache);
19952
19953   ;
19954   return 0;
19955 }
19956 _ACEOF
19957 rm -f conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19964 $as_echo "$ac_try_echo") >&5
19965   (eval "$ac_link") 2>&5
19966   ac_status=$?
19967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19969   { (case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19974 $as_echo "$ac_try_echo") >&5
19975   (eval "$ac_try") 2>&5
19976   ac_status=$?
19977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); }; }; then
19979
19980                                 rm -f $ZFS_DEV
19981                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19982 $as_echo "yes" >&6; }
19983                                 LIBBLKID="-lblkid"
19984
19985
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_LIBBLKID 1
19988 _ACEOF
19989
19990
19991 else
19992   $as_echo "$as_me: program exited with status $ac_status" >&5
19993 $as_echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996 ( exit $ac_status )
19997
19998                                 rm -f $ZFS_DEV
19999                                 { $as_echo "$as_me:$LINENO: result: no" >&5
20000 $as_echo "no" >&6; }
20001                                 if test "x$with_blkid" != xcheck; then
20002   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20004 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
20005 See \`config.log' for more details." >&5
20006 $as_echo "$as_me: error: --with-blkid given but unavailable
20007 See \`config.log' for more details." >&2;}
20008    { (exit 1); exit 1; }; }; }
20009 fi
20010
20011
20012 fi
20013 rm -rf conftest.dSYM
20014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20015 fi
20016
20017
20018
20019                         LDFLAGS="$saved_LDFLAGS"
20020
20021 else
20022
20023                         if test "x$with_blkid" != xcheck; then
20024   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20026 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
20027 See \`config.log' for more details." >&5
20028 $as_echo "$as_me: error: --with-blkid given but unavailable
20029 See \`config.log' for more details." >&2;}
20030    { (exit 1); exit 1; }; }; }
20031 fi
20032
20033
20034
20035 fi
20036
20037
20038 fi
20039
20040
20041
20042
20043 # Check whether --with-selinux was given.
20044 if test "${with_selinux+set}" = set; then
20045   withval=$with_selinux;
20046 else
20047   with_selinux=check
20048 fi
20049
20050
20051         LIBSELINUX=
20052         if test "x$with_selinux" != xno; then
20053
20054                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
20055   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
20056 $as_echo_n "checking for selinux/selinux.h... " >&6; }
20057 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
20058   $as_echo_n "(cached) " >&6
20059 fi
20060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
20061 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
20062 else
20063   # Is the header compilable?
20064 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
20065 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072 $ac_includes_default
20073 #include <selinux/selinux.h>
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079   *) ac_try_echo=$ac_try;;
20080 esac
20081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20082 $as_echo "$ac_try_echo") >&5
20083   (eval "$ac_compile") 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } && {
20090          test -z "$ac_c_werror_flag" ||
20091          test ! -s conftest.err
20092        } && test -s conftest.$ac_objext; then
20093   ac_header_compiler=yes
20094 else
20095   $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098         ac_header_compiler=no
20099 fi
20100
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20103 $as_echo "$ac_header_compiler" >&6; }
20104
20105 # Is the header present?
20106 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
20107 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h.  */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h.  */
20114 #include <selinux/selinux.h>
20115 _ACEOF
20116 if { (ac_try="$ac_cpp conftest.$ac_ext"
20117 case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20122 $as_echo "$ac_try_echo") >&5
20123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20124   ac_status=$?
20125   grep -v '^ *+' conftest.er1 >conftest.err
20126   rm -f conftest.er1
20127   cat conftest.err >&5
20128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } >/dev/null && {
20130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20131          test ! -s conftest.err
20132        }; then
20133   ac_header_preproc=yes
20134 else
20135   $as_echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20137
20138   ac_header_preproc=no
20139 fi
20140
20141 rm -f conftest.err conftest.$ac_ext
20142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20143 $as_echo "$ac_header_preproc" >&6; }
20144
20145 # So?  What about this header?
20146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20147   yes:no: )
20148     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
20149 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20150     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
20151 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
20152     ac_header_preproc=yes
20153     ;;
20154   no:yes:* )
20155     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
20156 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
20157     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
20158 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
20159     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
20160 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
20161     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
20162 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20163     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
20164 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
20165     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
20166 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
20167
20168     ;;
20169 esac
20170 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
20171 $as_echo_n "checking for selinux/selinux.h... " >&6; }
20172 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
20173   $as_echo_n "(cached) " >&6
20174 else
20175   ac_cv_header_selinux_selinux_h=$ac_header_preproc
20176 fi
20177 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
20178 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
20179
20180 fi
20181 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
20182
20183                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
20184 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
20185 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
20186   $as_echo_n "(cached) " >&6
20187 else
20188   ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lselinux  $LIBS"
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196
20197 /* Override any GCC internal prototype to avoid an error.
20198    Use char because int might match the return type of a GCC
20199    builtin and then its argument prototype would still apply.  */
20200 #ifdef __cplusplus
20201 extern "C"
20202 #endif
20203 char is_selinux_enabled ();
20204 int
20205 main ()
20206 {
20207 return is_selinux_enabled ();
20208   ;
20209   return 0;
20210 }
20211 _ACEOF
20212 rm -f conftest.$ac_objext conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216   *) ac_try_echo=$ac_try;;
20217 esac
20218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20219 $as_echo "$ac_try_echo") >&5
20220   (eval "$ac_link") 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } && {
20227          test -z "$ac_c_werror_flag" ||
20228          test ! -s conftest.err
20229        } && test -s conftest$ac_exeext && {
20230          test "$cross_compiling" = yes ||
20231          $as_test_x conftest$ac_exeext
20232        }; then
20233   ac_cv_lib_selinux_is_selinux_enabled=yes
20234 else
20235   $as_echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238         ac_cv_lib_selinux_is_selinux_enabled=no
20239 fi
20240
20241 rm -rf conftest.dSYM
20242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20243       conftest$ac_exeext conftest.$ac_ext
20244 LIBS=$ac_check_lib_save_LIBS
20245 fi
20246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
20247 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
20248 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
20249
20250                                 LIBSELINUX="-lselinux"
20251
20252
20253 cat >>confdefs.h <<\_ACEOF
20254 #define HAVE_LIBSELINUX 1
20255 _ACEOF
20256
20257
20258 else
20259
20260                                 if test "x$with_selinux" != xcheck; then
20261   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20263 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
20264 See \`config.log' for more details." >&5
20265 $as_echo "$as_me: error: --with-selinux given but unavailable
20266 See \`config.log' for more details." >&2;}
20267    { (exit 1); exit 1; }; }; }
20268
20269 fi
20270
20271
20272 fi
20273
20274
20275 else
20276
20277                         if test "x$with_selinux" != xcheck; then
20278   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20280 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
20281 See \`config.log' for more details." >&5
20282 $as_echo "$as_me: error: --with-selinux given but unavailable
20283 See \`config.log' for more details." >&2;}
20284    { (exit 1); exit 1; }; }; }
20285
20286 fi
20287
20288
20289 fi
20290
20291
20292
20293 else
20294
20295                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
20296 $as_echo_n "checking for selinux support... " >&6; }
20297                 { $as_echo "$as_me:$LINENO: result: no" >&5
20298 $as_echo "no" >&6; }
20299
20300 fi
20301
20302
20303
20304         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
20305 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
20306
20307         saved_flags="$CFLAGS"
20308         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
20309
20310         if test "$cross_compiling" = yes; then
20311   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20313 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20314 See \`config.log' for more details." >&5
20315 $as_echo "$as_me: error: cannot run test program while cross compiling
20316 See \`config.log' for more details." >&2;}
20317    { (exit 1); exit 1; }; }; }
20318 else
20319   cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325
20326 int
20327 main ()
20328 {
20329
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest$ac_exeext
20335 if { (ac_try="$ac_link"
20336 case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20341 $as_echo "$ac_try_echo") >&5
20342   (eval "$ac_link") 2>&5
20343   ac_status=$?
20344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346   { (case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20351 $as_echo "$ac_try_echo") >&5
20352   (eval "$ac_try") 2>&5
20353   ac_status=$?
20354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; }; then
20356
20357                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
20358                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20359 $as_echo "yes" >&6; }
20360
20361 else
20362   $as_echo "$as_me: program exited with status $ac_status" >&5
20363 $as_echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366 ( exit $ac_status )
20367
20368                 FRAME_LARGER_THAN=
20369                 { $as_echo "$as_me:$LINENO: result: no" >&5
20370 $as_echo "no" >&6; }
20371
20372 fi
20373 rm -rf conftest.dSYM
20374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20375 fi
20376
20377
20378
20379         CFLAGS="$saved_flags"
20380
20381
20382
20383
20384         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
20385 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
20386
20387         saved_CFLAGS="$CFLAGS"
20388         CFLAGS="-fstack-check"
20389         saved_LDFLAGS="$LDFLAGS"
20390         LDFLAGS="-lpthread"
20391
20392         if test "$cross_compiling" = yes; then
20393   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20395 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20396 See \`config.log' for more details." >&5
20397 $as_echo "$as_me: error: cannot run test program while cross compiling
20398 See \`config.log' for more details." >&2;}
20399    { (exit 1); exit 1; }; }; }
20400 else
20401   cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h.  */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h.  */
20407
20408                 #include <pthread.h>
20409                 #include <sys/resource.h>
20410                 #include <unistd.h>
20411                 #include <bits/local_lim.h>
20412
20413                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
20414                 #define STACK_SIZE 8192
20415                 #define BUFSIZE 4096
20416
20417                 void * func(void *arg)
20418                 {
20419                         char buf[BUFSIZE];
20420                 }
20421
20422 int
20423 main ()
20424 {
20425
20426                 pthread_t tid;
20427                 pthread_attr_t attr;
20428                 struct rlimit l;
20429
20430                 l.rlim_cur = 0;
20431                 l.rlim_max = 0;
20432                 setrlimit(RLIMIT_CORE, &l);
20433                 pthread_attr_init(&attr);
20434                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
20435                 pthread_attr_setguardsize(&attr, PAGESIZE);
20436                 pthread_create(&tid, &attr, func, NULL);
20437                 pthread_join(tid, NULL);
20438
20439   ;
20440   return 0;
20441 }
20442 _ACEOF
20443 rm -f conftest$ac_exeext
20444 if { (ac_try="$ac_link"
20445 case "(($ac_try" in
20446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447   *) ac_try_echo=$ac_try;;
20448 esac
20449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20450 $as_echo "$ac_try_echo") >&5
20451   (eval "$ac_link") 2>&5
20452   ac_status=$?
20453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20455   { (case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20460 $as_echo "$ac_try_echo") >&5
20461   (eval "$ac_try") 2>&5
20462   ac_status=$?
20463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); }; }; then
20465
20466                 { $as_echo "$as_me:$LINENO: result: no" >&5
20467 $as_echo "no" >&6; }
20468
20469 else
20470   $as_echo "$as_me: program exited with status $ac_status" >&5
20471 $as_echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ( exit $ac_status )
20475
20476
20477 cat >>confdefs.h <<\_ACEOF
20478 #define NPTL_GUARD_WITHIN_STACK 1
20479 _ACEOF
20480
20481                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20482 $as_echo "yes" >&6; }
20483
20484 fi
20485 rm -rf conftest.dSYM
20486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20487 fi
20488
20489
20490         CFLAGS="$saved_CFLAGS"
20491         LDFLAGS="$saved_LDFLAGS"
20492
20493    ;;
20494                 srpm)                        ;;
20495                 *)
20496                 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20497 $as_echo "Error!" >&6; }
20498                 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20499                               user kernel|user|all|srpm" >&5
20500 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20501                               user kernel|user|all|srpm" >&2;}
20502    { (exit 1); exit 1; }; } ;;
20503         esac
20504
20505          if test "$ZFS_CONFIG" = user ||
20506                        test "$ZFS_CONFIG" = all; then
20507   CONFIG_USER_TRUE=
20508   CONFIG_USER_FALSE='#'
20509 else
20510   CONFIG_USER_TRUE='#'
20511   CONFIG_USER_FALSE=
20512 fi
20513
20514          if test "$ZFS_CONFIG" = kernel ||
20515                        test "$ZFS_CONFIG" = all; then
20516   CONFIG_KERNEL_TRUE=
20517   CONFIG_KERNEL_FALSE='#'
20518 else
20519   CONFIG_KERNEL_TRUE='#'
20520   CONFIG_KERNEL_FALSE=
20521 fi
20522
20523
20524
20525         { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
20526 $as_echo_n "checking whether debugging is enabled... " >&6; }
20527         # Check whether --enable-debug was given.
20528 if test "${enable_debug+set}" = set; then
20529   enableval=$enable_debug;
20530 else
20531   enable_debug=no
20532 fi
20533
20534
20535         if test "x$enable_debug" = xyes; then
20536
20537                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
20538                 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
20539                 DEBUG_CFLAGS="-DDEBUG -Werror"
20540                 DEBUG_STACKFLAGS="-fstack-check"
20541
20542 else
20543
20544                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
20545                 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
20546                 DEBUG_CFLAGS="-DNDEBUG"
20547                 DEBUG_STACKFLAGS=""
20548
20549 fi
20550
20551
20552
20553
20554         { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
20555 $as_echo "$enable_debug" >&6; }
20556
20557
20558 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile etc/Makefile etc/udev/Makefile etc/udev/rules.d/Makefile etc/init.d/Makefile etc/zfs/Makefile man/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 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/sas_switch_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 zfs-script-config.sh"
20559
20560
20561 cat >confcache <<\_ACEOF
20562 # This file is a shell script that caches the results of configure
20563 # tests run on this system so they can be shared between configure
20564 # scripts and configure runs, see configure's option --config-cache.
20565 # It is not useful on other systems.  If it contains results you don't
20566 # want to keep, you may remove or edit it.
20567 #
20568 # config.status only pays attention to the cache file if you give it
20569 # the --recheck option to rerun configure.
20570 #
20571 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20572 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20573 # following values.
20574
20575 _ACEOF
20576
20577 # The following way of writing the cache mishandles newlines in values,
20578 # but we know of no workaround that is simple, portable, and efficient.
20579 # So, we kill variables containing newlines.
20580 # Ultrix sh set writes to stderr and can't be redirected directly,
20581 # and sets the high bit in the cache file unless we assign to the vars.
20582 (
20583   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20584     eval ac_val=\$$ac_var
20585     case $ac_val in #(
20586     *${as_nl}*)
20587       case $ac_var in #(
20588       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20589 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20590       esac
20591       case $ac_var in #(
20592       _ | IFS | as_nl) ;; #(
20593       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20594       *) $as_unset $ac_var ;;
20595       esac ;;
20596     esac
20597   done
20598
20599   (set) 2>&1 |
20600     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20601     *${as_nl}ac_space=\ *)
20602       # `set' does not quote correctly, so add quotes (double-quote
20603       # substitution turns \\\\ into \\, and sed turns \\ into \).
20604       sed -n \
20605         "s/'/'\\\\''/g;
20606           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20607       ;; #(
20608     *)
20609       # `set' quotes correctly as required by POSIX, so do not add quotes.
20610       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20611       ;;
20612     esac |
20613     sort
20614 ) |
20615   sed '
20616      /^ac_cv_env_/b end
20617      t clear
20618      :clear
20619      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20620      t end
20621      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20622      :end' >>confcache
20623 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20624   if test -w "$cache_file"; then
20625     test "x$cache_file" != "x/dev/null" &&
20626       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20627 $as_echo "$as_me: updating cache $cache_file" >&6;}
20628     cat confcache >$cache_file
20629   else
20630     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20631 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20632   fi
20633 fi
20634 rm -f confcache
20635
20636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20637 # Let make expand exec_prefix.
20638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20639
20640 DEFS=-DHAVE_CONFIG_H
20641
20642 ac_libobjs=
20643 ac_ltlibobjs=
20644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20645   # 1. Remove the extension, and $U if already installed.
20646   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20647   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20648   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20649   #    will be set to the directory where LIBOBJS objects are built.
20650   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20651   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20652 done
20653 LIBOBJS=$ac_libobjs
20654
20655 LTLIBOBJS=$ac_ltlibobjs
20656
20657
20658 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20659   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20660 Usually this means the macro was only invoked conditionally." >&5
20661 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20662 Usually this means the macro was only invoked conditionally." >&2;}
20663    { (exit 1); exit 1; }; }
20664 fi
20665  if test -n "$EXEEXT"; then
20666   am__EXEEXT_TRUE=
20667   am__EXEEXT_FALSE='#'
20668 else
20669   am__EXEEXT_TRUE='#'
20670   am__EXEEXT_FALSE=
20671 fi
20672
20673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20674   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20675 Usually this means the macro was only invoked conditionally." >&5
20676 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20677 Usually this means the macro was only invoked conditionally." >&2;}
20678    { (exit 1); exit 1; }; }
20679 fi
20680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20681   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20682 Usually this means the macro was only invoked conditionally." >&5
20683 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20684 Usually this means the macro was only invoked conditionally." >&2;}
20685    { (exit 1); exit 1; }; }
20686 fi
20687 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20688   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20689 Usually this means the macro was only invoked conditionally." >&5
20690 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20691 Usually this means the macro was only invoked conditionally." >&2;}
20692    { (exit 1); exit 1; }; }
20693 fi
20694 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20695   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20696 Usually this means the macro was only invoked conditionally." >&5
20697 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20698 Usually this means the macro was only invoked conditionally." >&2;}
20699    { (exit 1); exit 1; }; }
20700 fi
20701 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20702   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20703 Usually this means the macro was only invoked conditionally." >&5
20704 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20705 Usually this means the macro was only invoked conditionally." >&2;}
20706    { (exit 1); exit 1; }; }
20707 fi
20708
20709 : ${CONFIG_STATUS=./config.status}
20710 ac_write_fail=0
20711 ac_clean_files_save=$ac_clean_files
20712 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20713 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20714 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20715 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20716 #! $SHELL
20717 # Generated by $as_me.
20718 # Run this file to recreate the current configuration.
20719 # Compiler output produced by configure, useful for debugging
20720 # configure, is in config.log if it exists.
20721
20722 debug=false
20723 ac_cs_recheck=false
20724 ac_cs_silent=false
20725 SHELL=\${CONFIG_SHELL-$SHELL}
20726 _ACEOF
20727
20728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20729 ## --------------------- ##
20730 ## M4sh Initialization.  ##
20731 ## --------------------- ##
20732
20733 # Be more Bourne compatible
20734 DUALCASE=1; export DUALCASE # for MKS sh
20735 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20736   emulate sh
20737   NULLCMD=:
20738   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20739   # is contrary to our usage.  Disable this feature.
20740   alias -g '${1+"$@"}'='"$@"'
20741   setopt NO_GLOB_SUBST
20742 else
20743   case `(set -o) 2>/dev/null` in
20744   *posix*) set -o posix ;;
20745 esac
20746
20747 fi
20748
20749
20750
20751
20752 # PATH needs CR
20753 # Avoid depending upon Character Ranges.
20754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20757 as_cr_digits='0123456789'
20758 as_cr_alnum=$as_cr_Letters$as_cr_digits
20759
20760 as_nl='
20761 '
20762 export as_nl
20763 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20764 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20767 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20768   as_echo='printf %s\n'
20769   as_echo_n='printf %s'
20770 else
20771   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20772     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20773     as_echo_n='/usr/ucb/echo -n'
20774   else
20775     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20776     as_echo_n_body='eval
20777       arg=$1;
20778       case $arg in
20779       *"$as_nl"*)
20780         expr "X$arg" : "X\\(.*\\)$as_nl";
20781         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20782       esac;
20783       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20784     '
20785     export as_echo_n_body
20786     as_echo_n='sh -c $as_echo_n_body as_echo'
20787   fi
20788   export as_echo_body
20789   as_echo='sh -c $as_echo_body as_echo'
20790 fi
20791
20792 # The user is always right.
20793 if test "${PATH_SEPARATOR+set}" != set; then
20794   PATH_SEPARATOR=:
20795   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20796     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20797       PATH_SEPARATOR=';'
20798   }
20799 fi
20800
20801 # Support unset when possible.
20802 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20803   as_unset=unset
20804 else
20805   as_unset=false
20806 fi
20807
20808
20809 # IFS
20810 # We need space, tab and new line, in precisely that order.  Quoting is
20811 # there to prevent editors from complaining about space-tab.
20812 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20813 # splitting by setting IFS to empty value.)
20814 IFS=" ""        $as_nl"
20815
20816 # Find who we are.  Look in the path if we contain no directory separator.
20817 case $0 in
20818   *[\\/]* ) as_myself=$0 ;;
20819   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20820 for as_dir in $PATH
20821 do
20822   IFS=$as_save_IFS
20823   test -z "$as_dir" && as_dir=.
20824   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20825 done
20826 IFS=$as_save_IFS
20827
20828      ;;
20829 esac
20830 # We did not find ourselves, most probably we were run as `sh COMMAND'
20831 # in which case we are not to be found in the path.
20832 if test "x$as_myself" = x; then
20833   as_myself=$0
20834 fi
20835 if test ! -f "$as_myself"; then
20836   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20837   { (exit 1); exit 1; }
20838 fi
20839
20840 # Work around bugs in pre-3.0 UWIN ksh.
20841 for as_var in ENV MAIL MAILPATH
20842 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20843 done
20844 PS1='$ '
20845 PS2='> '
20846 PS4='+ '
20847
20848 # NLS nuisances.
20849 LC_ALL=C
20850 export LC_ALL
20851 LANGUAGE=C
20852 export LANGUAGE
20853
20854 # Required to use basename.
20855 if expr a : '\(a\)' >/dev/null 2>&1 &&
20856    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20857   as_expr=expr
20858 else
20859   as_expr=false
20860 fi
20861
20862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20863   as_basename=basename
20864 else
20865   as_basename=false
20866 fi
20867
20868
20869 # Name of the executable.
20870 as_me=`$as_basename -- "$0" ||
20871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20872          X"$0" : 'X\(//\)$' \| \
20873          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20874 $as_echo X/"$0" |
20875     sed '/^.*\/\([^/][^/]*\)\/*$/{
20876             s//\1/
20877             q
20878           }
20879           /^X\/\(\/\/\)$/{
20880             s//\1/
20881             q
20882           }
20883           /^X\/\(\/\).*/{
20884             s//\1/
20885             q
20886           }
20887           s/.*/./; q'`
20888
20889 # CDPATH.
20890 $as_unset CDPATH
20891
20892
20893
20894   as_lineno_1=$LINENO
20895   as_lineno_2=$LINENO
20896   test "x$as_lineno_1" != "x$as_lineno_2" &&
20897   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20898
20899   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20900   # uniformly replaced by the line number.  The first 'sed' inserts a
20901   # line-number line after each line using $LINENO; the second 'sed'
20902   # does the real work.  The second script uses 'N' to pair each
20903   # line-number line with the line containing $LINENO, and appends
20904   # trailing '-' during substitution so that $LINENO is not a special
20905   # case at line end.
20906   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20907   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20908   # E. McMahon (1931-1989) for sed's syntax.  :-)
20909   sed -n '
20910     p
20911     /[$]LINENO/=
20912   ' <$as_myself |
20913     sed '
20914       s/[$]LINENO.*/&-/
20915       t lineno
20916       b
20917       :lineno
20918       N
20919       :loop
20920       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20921       t loop
20922       s/-\n.*//
20923     ' >$as_me.lineno &&
20924   chmod +x "$as_me.lineno" ||
20925     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20926    { (exit 1); exit 1; }; }
20927
20928   # Don't try to exec as it changes $[0], causing all sort of problems
20929   # (the dirname of $[0] is not the place where we might find the
20930   # original and so on.  Autoconf is especially sensitive to this).
20931   . "./$as_me.lineno"
20932   # Exit status is that of the last command.
20933   exit
20934 }
20935
20936
20937 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20938   as_dirname=dirname
20939 else
20940   as_dirname=false
20941 fi
20942
20943 ECHO_C= ECHO_N= ECHO_T=
20944 case `echo -n x` in
20945 -n*)
20946   case `echo 'x\c'` in
20947   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20948   *)   ECHO_C='\c';;
20949   esac;;
20950 *)
20951   ECHO_N='-n';;
20952 esac
20953 if expr a : '\(a\)' >/dev/null 2>&1 &&
20954    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20955   as_expr=expr
20956 else
20957   as_expr=false
20958 fi
20959
20960 rm -f conf$$ conf$$.exe conf$$.file
20961 if test -d conf$$.dir; then
20962   rm -f conf$$.dir/conf$$.file
20963 else
20964   rm -f conf$$.dir
20965   mkdir conf$$.dir 2>/dev/null
20966 fi
20967 if (echo >conf$$.file) 2>/dev/null; then
20968   if ln -s conf$$.file conf$$ 2>/dev/null; then
20969     as_ln_s='ln -s'
20970     # ... but there are two gotchas:
20971     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20972     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20973     # In both cases, we have to default to `cp -p'.
20974     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20975       as_ln_s='cp -p'
20976   elif ln conf$$.file conf$$ 2>/dev/null; then
20977     as_ln_s=ln
20978   else
20979     as_ln_s='cp -p'
20980   fi
20981 else
20982   as_ln_s='cp -p'
20983 fi
20984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20985 rmdir conf$$.dir 2>/dev/null
20986
20987 if mkdir -p . 2>/dev/null; then
20988   as_mkdir_p=:
20989 else
20990   test -d ./-p && rmdir ./-p
20991   as_mkdir_p=false
20992 fi
20993
20994 if test -x / >/dev/null 2>&1; then
20995   as_test_x='test -x'
20996 else
20997   if ls -dL / >/dev/null 2>&1; then
20998     as_ls_L_option=L
20999   else
21000     as_ls_L_option=
21001   fi
21002   as_test_x='
21003     eval sh -c '\''
21004       if test -d "$1"; then
21005         test -d "$1/.";
21006       else
21007         case $1 in
21008         -*)set "./$1";;
21009         esac;
21010         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21011         ???[sx]*):;;*)false;;esac;fi
21012     '\'' sh
21013   '
21014 fi
21015 as_executable_p=$as_test_x
21016
21017 # Sed expression to map a string onto a valid CPP name.
21018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21019
21020 # Sed expression to map a string onto a valid variable name.
21021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21022
21023
21024 exec 6>&1
21025
21026 # Save the log message, to keep $[0] and so on meaningful, and to
21027 # report actual input values of CONFIG_FILES etc. instead of their
21028 # values after options handling.
21029 ac_log="
21030 This file was extended by $as_me, which was
21031 generated by GNU Autoconf 2.63.  Invocation command line was
21032
21033   CONFIG_FILES    = $CONFIG_FILES
21034   CONFIG_HEADERS  = $CONFIG_HEADERS
21035   CONFIG_LINKS    = $CONFIG_LINKS
21036   CONFIG_COMMANDS = $CONFIG_COMMANDS
21037   $ $0 $@
21038
21039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21040 "
21041
21042 _ACEOF
21043
21044 case $ac_config_files in *"
21045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21046 esac
21047
21048 case $ac_config_headers in *"
21049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21050 esac
21051
21052
21053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21054 # Files that config.status was made for.
21055 config_files="$ac_config_files"
21056 config_headers="$ac_config_headers"
21057 config_commands="$ac_config_commands"
21058
21059 _ACEOF
21060
21061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21062 ac_cs_usage="\
21063 \`$as_me' instantiates files from templates according to the
21064 current configuration.
21065
21066 Usage: $0 [OPTION]... [FILE]...
21067
21068   -h, --help       print this help, then exit
21069   -V, --version    print version number and configuration settings, then exit
21070   -q, --quiet, --silent
21071                    do not print progress messages
21072   -d, --debug      don't remove temporary files
21073       --recheck    update $as_me by reconfiguring in the same conditions
21074       --file=FILE[:TEMPLATE]
21075                    instantiate the configuration file FILE
21076       --header=FILE[:TEMPLATE]
21077                    instantiate the configuration header FILE
21078
21079 Configuration files:
21080 $config_files
21081
21082 Configuration headers:
21083 $config_headers
21084
21085 Configuration commands:
21086 $config_commands
21087
21088 Report bugs to <bug-autoconf@gnu.org>."
21089
21090 _ACEOF
21091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21092 ac_cs_version="\\
21093 config.status
21094 configured by $0, generated by GNU Autoconf 2.63,
21095   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21096
21097 Copyright (C) 2008 Free Software Foundation, Inc.
21098 This config.status script is free software; the Free Software Foundation
21099 gives unlimited permission to copy, distribute and modify it."
21100
21101 ac_pwd='$ac_pwd'
21102 srcdir='$srcdir'
21103 INSTALL='$INSTALL'
21104 MKDIR_P='$MKDIR_P'
21105 AWK='$AWK'
21106 test -n "\$AWK" || AWK=awk
21107 _ACEOF
21108
21109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21110 # The default lists apply if the user does not specify any file.
21111 ac_need_defaults=:
21112 while test $# != 0
21113 do
21114   case $1 in
21115   --*=*)
21116     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21117     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21118     ac_shift=:
21119     ;;
21120   *)
21121     ac_option=$1
21122     ac_optarg=$2
21123     ac_shift=shift
21124     ;;
21125   esac
21126
21127   case $ac_option in
21128   # Handling of the options.
21129   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21130     ac_cs_recheck=: ;;
21131   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21132     $as_echo "$ac_cs_version"; exit ;;
21133   --debug | --debu | --deb | --de | --d | -d )
21134     debug=: ;;
21135   --file | --fil | --fi | --f )
21136     $ac_shift
21137     case $ac_optarg in
21138     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21139     esac
21140     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21141     ac_need_defaults=false;;
21142   --header | --heade | --head | --hea )
21143     $ac_shift
21144     case $ac_optarg in
21145     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21146     esac
21147     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21148     ac_need_defaults=false;;
21149   --he | --h)
21150     # Conflict between --help and --header
21151     { $as_echo "$as_me: error: ambiguous option: $1
21152 Try \`$0 --help' for more information." >&2
21153    { (exit 1); exit 1; }; };;
21154   --help | --hel | -h )
21155     $as_echo "$ac_cs_usage"; exit ;;
21156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21157   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21158     ac_cs_silent=: ;;
21159
21160   # This is an error.
21161   -*) { $as_echo "$as_me: error: unrecognized option: $1
21162 Try \`$0 --help' for more information." >&2
21163    { (exit 1); exit 1; }; } ;;
21164
21165   *) ac_config_targets="$ac_config_targets $1"
21166      ac_need_defaults=false ;;
21167
21168   esac
21169   shift
21170 done
21171
21172 ac_configure_extra_args=
21173
21174 if $ac_cs_silent; then
21175   exec 6>/dev/null
21176   ac_configure_extra_args="$ac_configure_extra_args --silent"
21177 fi
21178
21179 _ACEOF
21180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21181 if \$ac_cs_recheck; then
21182   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21183   shift
21184   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21185   CONFIG_SHELL='$SHELL'
21186   export CONFIG_SHELL
21187   exec "\$@"
21188 fi
21189
21190 _ACEOF
21191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21192 exec 5>>config.log
21193 {
21194   echo
21195   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21196 ## Running $as_me. ##
21197 _ASBOX
21198   $as_echo "$ac_log"
21199 } >&5
21200
21201 _ACEOF
21202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21203 #
21204 # INIT-COMMANDS
21205 #
21206 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21207
21208
21209 # The HP-UX ksh and POSIX shell print the target directory to stdout
21210 # if CDPATH is set.
21211 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21212
21213 sed_quote_subst='$sed_quote_subst'
21214 double_quote_subst='$double_quote_subst'
21215 delay_variable_subst='$delay_variable_subst'
21216 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21217 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21218 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21219 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21220 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21221 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21222 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21223 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21224 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21225 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21226 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21227 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21228 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21229 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21230 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21231 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21232 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21233 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21234 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21235 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21236 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21237 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21238 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21239 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21240 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21241 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21242 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21243 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21244 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21245 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21246 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21247 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21248 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21249 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21250 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21251 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21252 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21253 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21254 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21255 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21256 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21257 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21258 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21259 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21260 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"`'
21261 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"`'
21262 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21263 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21264 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21265 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21266 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21267 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21268 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21269 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21270 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21271 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21272 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21273 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21274 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21275 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21276 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21277 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21278 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21279 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21280 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21281 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21282 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21283 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21284 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21285 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21286 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21287 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21288 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21289 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21290 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21291 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21292 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21293 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21294 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21295 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21296 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21297 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21298 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21299 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21300 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21301 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21302 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21303 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21304 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21305 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21306 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21307 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21308 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21309 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21310 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21311 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21312 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21313 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21314 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21315 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21316 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21317 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21318 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21319 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21320 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21321 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21322 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21323 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21324 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21325 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21326 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21327 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21328 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21329 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21330 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21331 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21332 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21333 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21334
21335 LTCC='$LTCC'
21336 LTCFLAGS='$LTCFLAGS'
21337 compiler='$compiler_DEFAULT'
21338
21339 # Quote evaled strings.
21340 for var in SED \
21341 GREP \
21342 EGREP \
21343 FGREP \
21344 LD \
21345 NM \
21346 LN_S \
21347 lt_SP2NL \
21348 lt_NL2SP \
21349 reload_flag \
21350 OBJDUMP \
21351 deplibs_check_method \
21352 file_magic_cmd \
21353 AR \
21354 AR_FLAGS \
21355 STRIP \
21356 RANLIB \
21357 CC \
21358 CFLAGS \
21359 compiler \
21360 lt_cv_sys_global_symbol_pipe \
21361 lt_cv_sys_global_symbol_to_cdecl \
21362 lt_cv_sys_global_symbol_to_c_name_address \
21363 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21364 SHELL \
21365 ECHO \
21366 lt_prog_compiler_no_builtin_flag \
21367 lt_prog_compiler_wl \
21368 lt_prog_compiler_pic \
21369 lt_prog_compiler_static \
21370 lt_cv_prog_compiler_c_o \
21371 need_locks \
21372 DSYMUTIL \
21373 NMEDIT \
21374 LIPO \
21375 OTOOL \
21376 OTOOL64 \
21377 shrext_cmds \
21378 export_dynamic_flag_spec \
21379 whole_archive_flag_spec \
21380 compiler_needs_object \
21381 with_gnu_ld \
21382 allow_undefined_flag \
21383 no_undefined_flag \
21384 hardcode_libdir_flag_spec \
21385 hardcode_libdir_flag_spec_ld \
21386 hardcode_libdir_separator \
21387 fix_srcfile_path \
21388 exclude_expsyms \
21389 include_expsyms \
21390 file_list_spec \
21391 variables_saved_for_relink \
21392 libname_spec \
21393 library_names_spec \
21394 soname_spec \
21395 finish_eval \
21396 old_striplib \
21397 striplib; do
21398     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21399     *[\\\\\\\`\\"\\\$]*)
21400       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21401       ;;
21402     *)
21403       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21404       ;;
21405     esac
21406 done
21407
21408 # Double-quote double-evaled strings.
21409 for var in reload_cmds \
21410 old_postinstall_cmds \
21411 old_postuninstall_cmds \
21412 old_archive_cmds \
21413 extract_expsyms_cmds \
21414 old_archive_from_new_cmds \
21415 old_archive_from_expsyms_cmds \
21416 archive_cmds \
21417 archive_expsym_cmds \
21418 module_cmds \
21419 module_expsym_cmds \
21420 export_symbols_cmds \
21421 prelink_cmds \
21422 postinstall_cmds \
21423 postuninstall_cmds \
21424 finish_cmds \
21425 sys_lib_search_path_spec \
21426 sys_lib_dlsearch_path_spec; do
21427     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21428     *[\\\\\\\`\\"\\\$]*)
21429       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21430       ;;
21431     *)
21432       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21433       ;;
21434     esac
21435 done
21436
21437 # Fix-up fallback echo if it was mangled by the above quoting rules.
21438 case \$lt_ECHO in
21439 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21440   ;;
21441 esac
21442
21443 ac_aux_dir='$ac_aux_dir'
21444 xsi_shell='$xsi_shell'
21445 lt_shell_append='$lt_shell_append'
21446
21447 # See if we are running on zsh, and set the options which allow our
21448 # commands through without removal of \ escapes INIT.
21449 if test -n "\${ZSH_VERSION+set}" ; then
21450    setopt NO_GLOB_SUBST
21451 fi
21452
21453
21454     PACKAGE='$PACKAGE'
21455     VERSION='$VERSION'
21456     TIMESTAMP='$TIMESTAMP'
21457     RM='$RM'
21458     ofile='$ofile'
21459
21460
21461
21462
21463 _ACEOF
21464
21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21466
21467 # Handling of arguments.
21468 for ac_config_target in $ac_config_targets
21469 do
21470   case $ac_config_target in
21471     "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
21472     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21473     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21474     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21475     "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
21476     "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
21477     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
21478     "etc/udev/Makefile") CONFIG_FILES="$CONFIG_FILES etc/udev/Makefile" ;;
21479     "etc/udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/udev/rules.d/Makefile" ;;
21480     "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
21481     "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
21482     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21483     "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21484     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21485     "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
21486     "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
21487     "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
21488     "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
21489     "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
21490     "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
21491     "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
21492     "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
21493     "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
21494     "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
21495     "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
21496     "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
21497     "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
21498     "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
21499     "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
21500     "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
21501     "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
21502     "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
21503     "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
21504     "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21505     "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
21506     "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
21507     "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
21508     "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
21509     "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
21510     "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
21511     "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
21512     "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
21513     "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
21514     "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
21515     "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
21516     "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21517     "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
21518     "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
21519     "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
21520     "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
21521     "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
21522     "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
21523     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21524     "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
21525     "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
21526     "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
21527     "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
21528     "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
21529     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21530     "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
21531     "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
21532     "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
21533     "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
21534     "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
21535     "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
21536     "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
21537     "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
21538
21539   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21540 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21541    { (exit 1); exit 1; }; };;
21542   esac
21543 done
21544
21545
21546 # If the user did not use the arguments to specify the items to instantiate,
21547 # then the envvar interface is used.  Set only those that are not.
21548 # We use the long form for the default assignment because of an extremely
21549 # bizarre bug on SunOS 4.1.3.
21550 if $ac_need_defaults; then
21551   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21552   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21553   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21554 fi
21555
21556 # Have a temporary directory for convenience.  Make it in the build tree
21557 # simply because there is no reason against having it here, and in addition,
21558 # creating and moving files from /tmp can sometimes cause problems.
21559 # Hook for its removal unless debugging.
21560 # Note that there is a small window in which the directory will not be cleaned:
21561 # after its creation but before its name has been assigned to `$tmp'.
21562 $debug ||
21563 {
21564   tmp=
21565   trap 'exit_status=$?
21566   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21567 ' 0
21568   trap '{ (exit 1); exit 1; }' 1 2 13 15
21569 }
21570 # Create a (secure) tmp directory for tmp files.
21571
21572 {
21573   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21574   test -n "$tmp" && test -d "$tmp"
21575 }  ||
21576 {
21577   tmp=./conf$$-$RANDOM
21578   (umask 077 && mkdir "$tmp")
21579 } ||
21580 {
21581    $as_echo "$as_me: cannot create a temporary directory in ." >&2
21582    { (exit 1); exit 1; }
21583 }
21584
21585 # Set up the scripts for CONFIG_FILES section.
21586 # No need to generate them if there are no CONFIG_FILES.
21587 # This happens for instance with `./config.status config.h'.
21588 if test -n "$CONFIG_FILES"; then
21589
21590
21591 ac_cr='\r'
21592 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21593 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21594   ac_cs_awk_cr='\\r'
21595 else
21596   ac_cs_awk_cr=$ac_cr
21597 fi
21598
21599 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21600 _ACEOF
21601
21602
21603 {
21604   echo "cat >conf$$subs.awk <<_ACEOF" &&
21605   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21606   echo "_ACEOF"
21607 } >conf$$subs.sh ||
21608   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21609 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21610    { (exit 1); exit 1; }; }
21611 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21612 ac_delim='%!_!# '
21613 for ac_last_try in false false false false false :; do
21614   . ./conf$$subs.sh ||
21615     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21616 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21617    { (exit 1); exit 1; }; }
21618
21619   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21620   if test $ac_delim_n = $ac_delim_num; then
21621     break
21622   elif $ac_last_try; then
21623     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21624 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21625    { (exit 1); exit 1; }; }
21626   else
21627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21628   fi
21629 done
21630 rm -f conf$$subs.sh
21631
21632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21633 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21634 _ACEOF
21635 sed -n '
21636 h
21637 s/^/S["/; s/!.*/"]=/
21638 p
21639 g
21640 s/^[^!]*!//
21641 :repl
21642 t repl
21643 s/'"$ac_delim"'$//
21644 t delim
21645 :nl
21646 h
21647 s/\(.\{148\}\).*/\1/
21648 t more1
21649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21650 p
21651 n
21652 b repl
21653 :more1
21654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21655 p
21656 g
21657 s/.\{148\}//
21658 t nl
21659 :delim
21660 h
21661 s/\(.\{148\}\).*/\1/
21662 t more2
21663 s/["\\]/\\&/g; s/^/"/; s/$/"/
21664 p
21665 b
21666 :more2
21667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21668 p
21669 g
21670 s/.\{148\}//
21671 t delim
21672 ' <conf$$subs.awk | sed '
21673 /^[^""]/{
21674   N
21675   s/\n//
21676 }
21677 ' >>$CONFIG_STATUS || ac_write_fail=1
21678 rm -f conf$$subs.awk
21679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21680 _ACAWK
21681 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21682   for (key in S) S_is_set[key] = 1
21683   FS = "\a"
21684
21685 }
21686 {
21687   line = $ 0
21688   nfields = split(line, field, "@")
21689   substed = 0
21690   len = length(field[1])
21691   for (i = 2; i < nfields; i++) {
21692     key = field[i]
21693     keylen = length(key)
21694     if (S_is_set[key]) {
21695       value = S[key]
21696       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21697       len += length(value) + length(field[++i])
21698       substed = 1
21699     } else
21700       len += 1 + keylen
21701   }
21702
21703   print line
21704 }
21705
21706 _ACAWK
21707 _ACEOF
21708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21710   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21711 else
21712   cat
21713 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21714   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21715 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21716    { (exit 1); exit 1; }; }
21717 _ACEOF
21718
21719 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21721 # trailing colons and then remove the whole line if VPATH becomes empty
21722 # (actually we leave an empty line to preserve line numbers).
21723 if test "x$srcdir" = x.; then
21724   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21725 s/:*\$(srcdir):*/:/
21726 s/:*\${srcdir}:*/:/
21727 s/:*@srcdir@:*/:/
21728 s/^\([^=]*=[     ]*\):*/\1/
21729 s/:*$//
21730 s/^[^=]*=[       ]*$//
21731 }'
21732 fi
21733
21734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21735 fi # test -n "$CONFIG_FILES"
21736
21737 # Set up the scripts for CONFIG_HEADERS section.
21738 # No need to generate them if there are no CONFIG_HEADERS.
21739 # This happens for instance with `./config.status Makefile'.
21740 if test -n "$CONFIG_HEADERS"; then
21741 cat >"$tmp/defines.awk" <<\_ACAWK ||
21742 BEGIN {
21743 _ACEOF
21744
21745 # Transform confdefs.h into an awk script `defines.awk', embedded as
21746 # here-document in config.status, that substitutes the proper values into
21747 # config.h.in to produce config.h.
21748
21749 # Create a delimiter string that does not exist in confdefs.h, to ease
21750 # handling of long lines.
21751 ac_delim='%!_!# '
21752 for ac_last_try in false false :; do
21753   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21754   if test -z "$ac_t"; then
21755     break
21756   elif $ac_last_try; then
21757     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21758 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21759    { (exit 1); exit 1; }; }
21760   else
21761     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21762   fi
21763 done
21764
21765 # For the awk script, D is an array of macro values keyed by name,
21766 # likewise P contains macro parameters if any.  Preserve backslash
21767 # newline sequences.
21768
21769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21770 sed -n '
21771 s/.\{148\}/&'"$ac_delim"'/g
21772 t rset
21773 :rset
21774 s/^[     ]*#[    ]*define[       ][      ]*/ /
21775 t def
21776 d
21777 :def
21778 s/\\$//
21779 t bsnl
21780 s/["\\]/\\&/g
21781 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21782 D["\1"]=" \3"/p
21783 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21784 d
21785 :bsnl
21786 s/["\\]/\\&/g
21787 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21788 D["\1"]=" \3\\\\\\n"\\/p
21789 t cont
21790 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21791 t cont
21792 d
21793 :cont
21794 n
21795 s/.\{148\}/&'"$ac_delim"'/g
21796 t clear
21797 :clear
21798 s/\\$//
21799 t bsnlc
21800 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21801 d
21802 :bsnlc
21803 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21804 b cont
21805 ' <confdefs.h | sed '
21806 s/'"$ac_delim"'/"\\\
21807 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21808
21809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21810   for (key in D) D_is_set[key] = 1
21811   FS = "\a"
21812 }
21813 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21814   line = \$ 0
21815   split(line, arg, " ")
21816   if (arg[1] == "#") {
21817     defundef = arg[2]
21818     mac1 = arg[3]
21819   } else {
21820     defundef = substr(arg[1], 2)
21821     mac1 = arg[2]
21822   }
21823   split(mac1, mac2, "(") #)
21824   macro = mac2[1]
21825   prefix = substr(line, 1, index(line, defundef) - 1)
21826   if (D_is_set[macro]) {
21827     # Preserve the white space surrounding the "#".
21828     print prefix "define", macro P[macro] D[macro]
21829     next
21830   } else {
21831     # Replace #undef with comments.  This is necessary, for example,
21832     # in the case of _POSIX_SOURCE, which is predefined and required
21833     # on some systems where configure will not decide to define it.
21834     if (defundef == "undef") {
21835       print "/*", prefix defundef, macro, "*/"
21836       next
21837     }
21838   }
21839 }
21840 { print }
21841 _ACAWK
21842 _ACEOF
21843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21844   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21845 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21846    { (exit 1); exit 1; }; }
21847 fi # test -n "$CONFIG_HEADERS"
21848
21849
21850 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21851 shift
21852 for ac_tag
21853 do
21854   case $ac_tag in
21855   :[FHLC]) ac_mode=$ac_tag; continue;;
21856   esac
21857   case $ac_mode$ac_tag in
21858   :[FHL]*:*);;
21859   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21860 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21861    { (exit 1); exit 1; }; };;
21862   :[FH]-) ac_tag=-:-;;
21863   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21864   esac
21865   ac_save_IFS=$IFS
21866   IFS=:
21867   set x $ac_tag
21868   IFS=$ac_save_IFS
21869   shift
21870   ac_file=$1
21871   shift
21872
21873   case $ac_mode in
21874   :L) ac_source=$1;;
21875   :[FH])
21876     ac_file_inputs=
21877     for ac_f
21878     do
21879       case $ac_f in
21880       -) ac_f="$tmp/stdin";;
21881       *) # Look for the file first in the build tree, then in the source tree
21882          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21883          # because $ac_f cannot contain `:'.
21884          test -f "$ac_f" ||
21885            case $ac_f in
21886            [\\/$]*) false;;
21887            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21888            esac ||
21889            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21890 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21891    { (exit 1); exit 1; }; };;
21892       esac
21893       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21894       ac_file_inputs="$ac_file_inputs '$ac_f'"
21895     done
21896
21897     # Let's still pretend it is `configure' which instantiates (i.e., don't
21898     # use $as_me), people would be surprised to read:
21899     #    /* config.h.  Generated by config.status.  */
21900     configure_input='Generated from '`
21901           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21902         `' by configure.'
21903     if test x"$ac_file" != x-; then
21904       configure_input="$ac_file.  $configure_input"
21905       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21906 $as_echo "$as_me: creating $ac_file" >&6;}
21907     fi
21908     # Neutralize special characters interpreted by sed in replacement strings.
21909     case $configure_input in #(
21910     *\&* | *\|* | *\\* )
21911        ac_sed_conf_input=`$as_echo "$configure_input" |
21912        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21913     *) ac_sed_conf_input=$configure_input;;
21914     esac
21915
21916     case $ac_tag in
21917     *:-:* | *:-) cat >"$tmp/stdin" \
21918       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21919 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21920    { (exit 1); exit 1; }; } ;;
21921     esac
21922     ;;
21923   esac
21924
21925   ac_dir=`$as_dirname -- "$ac_file" ||
21926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21927          X"$ac_file" : 'X\(//\)[^/]' \| \
21928          X"$ac_file" : 'X\(//\)$' \| \
21929          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21930 $as_echo X"$ac_file" |
21931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21932             s//\1/
21933             q
21934           }
21935           /^X\(\/\/\)[^/].*/{
21936             s//\1/
21937             q
21938           }
21939           /^X\(\/\/\)$/{
21940             s//\1/
21941             q
21942           }
21943           /^X\(\/\).*/{
21944             s//\1/
21945             q
21946           }
21947           s/.*/./; q'`
21948   { as_dir="$ac_dir"
21949   case $as_dir in #(
21950   -*) as_dir=./$as_dir;;
21951   esac
21952   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21953     as_dirs=
21954     while :; do
21955       case $as_dir in #(
21956       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21957       *) as_qdir=$as_dir;;
21958       esac
21959       as_dirs="'$as_qdir' $as_dirs"
21960       as_dir=`$as_dirname -- "$as_dir" ||
21961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21962          X"$as_dir" : 'X\(//\)[^/]' \| \
21963          X"$as_dir" : 'X\(//\)$' \| \
21964          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21965 $as_echo X"$as_dir" |
21966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21967             s//\1/
21968             q
21969           }
21970           /^X\(\/\/\)[^/].*/{
21971             s//\1/
21972             q
21973           }
21974           /^X\(\/\/\)$/{
21975             s//\1/
21976             q
21977           }
21978           /^X\(\/\).*/{
21979             s//\1/
21980             q
21981           }
21982           s/.*/./; q'`
21983       test -d "$as_dir" && break
21984     done
21985     test -z "$as_dirs" || eval "mkdir $as_dirs"
21986   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21987 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21988    { (exit 1); exit 1; }; }; }
21989   ac_builddir=.
21990
21991 case "$ac_dir" in
21992 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21993 *)
21994   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21995   # A ".." for each directory in $ac_dir_suffix.
21996   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21997   case $ac_top_builddir_sub in
21998   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21999   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22000   esac ;;
22001 esac
22002 ac_abs_top_builddir=$ac_pwd
22003 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22004 # for backward compatibility:
22005 ac_top_builddir=$ac_top_build_prefix
22006
22007 case $srcdir in
22008   .)  # We are building in place.
22009     ac_srcdir=.
22010     ac_top_srcdir=$ac_top_builddir_sub
22011     ac_abs_top_srcdir=$ac_pwd ;;
22012   [\\/]* | ?:[\\/]* )  # Absolute name.
22013     ac_srcdir=$srcdir$ac_dir_suffix;
22014     ac_top_srcdir=$srcdir
22015     ac_abs_top_srcdir=$srcdir ;;
22016   *) # Relative name.
22017     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22018     ac_top_srcdir=$ac_top_build_prefix$srcdir
22019     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22020 esac
22021 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22022
22023
22024   case $ac_mode in
22025   :F)
22026   #
22027   # CONFIG_FILE
22028   #
22029
22030   case $INSTALL in
22031   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22032   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22033   esac
22034   ac_MKDIR_P=$MKDIR_P
22035   case $MKDIR_P in
22036   [\\/$]* | ?:[\\/]* ) ;;
22037   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22038   esac
22039 _ACEOF
22040
22041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22042 # If the template does not know about datarootdir, expand it.
22043 # FIXME: This hack should be removed a few years after 2.60.
22044 ac_datarootdir_hack=; ac_datarootdir_seen=
22045
22046 ac_sed_dataroot='
22047 /datarootdir/ {
22048   p
22049   q
22050 }
22051 /@datadir@/p
22052 /@docdir@/p
22053 /@infodir@/p
22054 /@localedir@/p
22055 /@mandir@/p
22056 '
22057 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22058 *datarootdir*) ac_datarootdir_seen=yes;;
22059 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22060   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22061 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22062 _ACEOF
22063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22064   ac_datarootdir_hack='
22065   s&@datadir@&$datadir&g
22066   s&@docdir@&$docdir&g
22067   s&@infodir@&$infodir&g
22068   s&@localedir@&$localedir&g
22069   s&@mandir@&$mandir&g
22070     s&\\\${datarootdir}&$datarootdir&g' ;;
22071 esac
22072 _ACEOF
22073
22074 # Neutralize VPATH when `$srcdir' = `.'.
22075 # Shell code in configure.ac might set extrasub.
22076 # FIXME: do we really want to maintain this feature?
22077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22078 ac_sed_extra="$ac_vpsub
22079 $extrasub
22080 _ACEOF
22081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22082 :t
22083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22084 s|@configure_input@|$ac_sed_conf_input|;t t
22085 s&@top_builddir@&$ac_top_builddir_sub&;t t
22086 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22087 s&@srcdir@&$ac_srcdir&;t t
22088 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22089 s&@top_srcdir@&$ac_top_srcdir&;t t
22090 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22091 s&@builddir@&$ac_builddir&;t t
22092 s&@abs_builddir@&$ac_abs_builddir&;t t
22093 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22094 s&@INSTALL@&$ac_INSTALL&;t t
22095 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22096 $ac_datarootdir_hack
22097 "
22098 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22099   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22100 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22101    { (exit 1); exit 1; }; }
22102
22103 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22104   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22105   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22106   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22107 which seems to be undefined.  Please make sure it is defined." >&5
22108 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22109 which seems to be undefined.  Please make sure it is defined." >&2;}
22110
22111   rm -f "$tmp/stdin"
22112   case $ac_file in
22113   -) cat "$tmp/out" && rm -f "$tmp/out";;
22114   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22115   esac \
22116   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22117 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22118    { (exit 1); exit 1; }; }
22119  ;;
22120   :H)
22121   #
22122   # CONFIG_HEADER
22123   #
22124   if test x"$ac_file" != x-; then
22125     {
22126       $as_echo "/* $configure_input  */" \
22127       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22128     } >"$tmp/config.h" \
22129       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22130 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22131    { (exit 1); exit 1; }; }
22132     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22133       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22134 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22135     else
22136       rm -f "$ac_file"
22137       mv "$tmp/config.h" "$ac_file" \
22138         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22139 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22140    { (exit 1); exit 1; }; }
22141     fi
22142   else
22143     $as_echo "/* $configure_input  */" \
22144       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22145       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22146 $as_echo "$as_me: error: could not create -" >&2;}
22147    { (exit 1); exit 1; }; }
22148   fi
22149 # Compute "$ac_file"'s index in $config_headers.
22150 _am_arg="$ac_file"
22151 _am_stamp_count=1
22152 for _am_header in $config_headers :; do
22153   case $_am_header in
22154     $_am_arg | $_am_arg:* )
22155       break ;;
22156     * )
22157       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22158   esac
22159 done
22160 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22161 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22162          X"$_am_arg" : 'X\(//\)[^/]' \| \
22163          X"$_am_arg" : 'X\(//\)$' \| \
22164          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22165 $as_echo X"$_am_arg" |
22166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22167             s//\1/
22168             q
22169           }
22170           /^X\(\/\/\)[^/].*/{
22171             s//\1/
22172             q
22173           }
22174           /^X\(\/\/\)$/{
22175             s//\1/
22176             q
22177           }
22178           /^X\(\/\).*/{
22179             s//\1/
22180             q
22181           }
22182           s/.*/./; q'`/stamp-h$_am_stamp_count
22183  ;;
22184
22185   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22186 $as_echo "$as_me: executing $ac_file commands" >&6;}
22187  ;;
22188   esac
22189
22190
22191   case $ac_file$ac_mode in
22192     "zfs_config.h":H)
22193         (mv zfs_config.h zfs_config.h.tmp &&
22194         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
22195         rm zfs_config.h.tmp) || exit 1 ;;
22196     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22197   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22198   # are listed without --file.  Let's play safe and only enable the eval
22199   # if we detect the quoting.
22200   case $CONFIG_FILES in
22201   *\'*) eval set x "$CONFIG_FILES" ;;
22202   *)   set x $CONFIG_FILES ;;
22203   esac
22204   shift
22205   for mf
22206   do
22207     # Strip MF so we end up with the name of the file.
22208     mf=`echo "$mf" | sed -e 's/:.*$//'`
22209     # Check whether this is an Automake generated Makefile or not.
22210     # We used to match only the files named `Makefile.in', but
22211     # some people rename them; so instead we look at the file content.
22212     # Grep'ing the first line is not enough: some people post-process
22213     # each Makefile.in and add a new line on top of each file to say so.
22214     # Grep'ing the whole file is not good either: AIX grep has a line
22215     # limit of 2048, but all sed's we know have understand at least 4000.
22216     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22217       dirpart=`$as_dirname -- "$mf" ||
22218 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22219          X"$mf" : 'X\(//\)[^/]' \| \
22220          X"$mf" : 'X\(//\)$' \| \
22221          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22222 $as_echo X"$mf" |
22223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22224             s//\1/
22225             q
22226           }
22227           /^X\(\/\/\)[^/].*/{
22228             s//\1/
22229             q
22230           }
22231           /^X\(\/\/\)$/{
22232             s//\1/
22233             q
22234           }
22235           /^X\(\/\).*/{
22236             s//\1/
22237             q
22238           }
22239           s/.*/./; q'`
22240     else
22241       continue
22242     fi
22243     # Extract the definition of DEPDIR, am__include, and am__quote
22244     # from the Makefile without running `make'.
22245     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22246     test -z "$DEPDIR" && continue
22247     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22248     test -z "am__include" && continue
22249     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22250     # When using ansi2knr, U may be empty or an underscore; expand it
22251     U=`sed -n 's/^U = //p' < "$mf"`
22252     # Find all dependency output files, they are included files with
22253     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22254     # simplest approach to changing $(DEPDIR) to its actual value in the
22255     # expansion.
22256     for file in `sed -n "
22257       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22258          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22259       # Make sure the directory exists.
22260       test -f "$dirpart/$file" && continue
22261       fdir=`$as_dirname -- "$file" ||
22262 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22263          X"$file" : 'X\(//\)[^/]' \| \
22264          X"$file" : 'X\(//\)$' \| \
22265          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22266 $as_echo X"$file" |
22267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22268             s//\1/
22269             q
22270           }
22271           /^X\(\/\/\)[^/].*/{
22272             s//\1/
22273             q
22274           }
22275           /^X\(\/\/\)$/{
22276             s//\1/
22277             q
22278           }
22279           /^X\(\/\).*/{
22280             s//\1/
22281             q
22282           }
22283           s/.*/./; q'`
22284       { as_dir=$dirpart/$fdir
22285   case $as_dir in #(
22286   -*) as_dir=./$as_dir;;
22287   esac
22288   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22289     as_dirs=
22290     while :; do
22291       case $as_dir in #(
22292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22293       *) as_qdir=$as_dir;;
22294       esac
22295       as_dirs="'$as_qdir' $as_dirs"
22296       as_dir=`$as_dirname -- "$as_dir" ||
22297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22298          X"$as_dir" : 'X\(//\)[^/]' \| \
22299          X"$as_dir" : 'X\(//\)$' \| \
22300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22301 $as_echo X"$as_dir" |
22302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22303             s//\1/
22304             q
22305           }
22306           /^X\(\/\/\)[^/].*/{
22307             s//\1/
22308             q
22309           }
22310           /^X\(\/\/\)$/{
22311             s//\1/
22312             q
22313           }
22314           /^X\(\/\).*/{
22315             s//\1/
22316             q
22317           }
22318           s/.*/./; q'`
22319       test -d "$as_dir" && break
22320     done
22321     test -z "$as_dirs" || eval "mkdir $as_dirs"
22322   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22323 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22324    { (exit 1); exit 1; }; }; }
22325       # echo "creating $dirpart/$file"
22326       echo '# dummy' > "$dirpart/$file"
22327     done
22328   done
22329 }
22330  ;;
22331     "libtool":C)
22332
22333     # See if we are running on zsh, and set the options which allow our
22334     # commands through without removal of \ escapes.
22335     if test -n "${ZSH_VERSION+set}" ; then
22336       setopt NO_GLOB_SUBST
22337     fi
22338
22339     cfgfile="${ofile}T"
22340     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22341     $RM "$cfgfile"
22342
22343     cat <<_LT_EOF >> "$cfgfile"
22344 #! $SHELL
22345
22346 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22347 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22349 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22350 #
22351 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22352 #                 2006, 2007, 2008 Free Software Foundation, Inc.
22353 #   Written by Gordon Matzigkeit, 1996
22354 #
22355 #   This file is part of GNU Libtool.
22356 #
22357 # GNU Libtool is free software; you can redistribute it and/or
22358 # modify it under the terms of the GNU General Public License as
22359 # published by the Free Software Foundation; either version 2 of
22360 # the License, or (at your option) any later version.
22361 #
22362 # As a special exception to the GNU General Public License,
22363 # if you distribute this file as part of a program or library that
22364 # is built using GNU Libtool, you may include this file under the
22365 # same distribution terms that you use for the rest of that program.
22366 #
22367 # GNU Libtool is distributed in the hope that it will be useful,
22368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22370 # GNU General Public License for more details.
22371 #
22372 # You should have received a copy of the GNU General Public License
22373 # along with GNU Libtool; see the file COPYING.  If not, a copy
22374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22375 # obtained by writing to the Free Software Foundation, Inc.,
22376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22377
22378
22379 # The names of the tagged configurations supported by this script.
22380 available_tags=""
22381
22382 # ### BEGIN LIBTOOL CONFIG
22383
22384 # Which release of libtool.m4 was used?
22385 macro_version=$macro_version
22386 macro_revision=$macro_revision
22387
22388 # Whether or not to build shared libraries.
22389 build_libtool_libs=$enable_shared
22390
22391 # Whether or not to build static libraries.
22392 build_old_libs=$enable_static
22393
22394 # What type of objects to build.
22395 pic_mode=$pic_mode
22396
22397 # Whether or not to optimize for fast installation.
22398 fast_install=$enable_fast_install
22399
22400 # The host system.
22401 host_alias=$host_alias
22402 host=$host
22403 host_os=$host_os
22404
22405 # The build system.
22406 build_alias=$build_alias
22407 build=$build
22408 build_os=$build_os
22409
22410 # A sed program that does not truncate output.
22411 SED=$lt_SED
22412
22413 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22414 Xsed="\$SED -e 1s/^X//"
22415
22416 # A grep program that handles long lines.
22417 GREP=$lt_GREP
22418
22419 # An ERE matcher.
22420 EGREP=$lt_EGREP
22421
22422 # A literal string matcher.
22423 FGREP=$lt_FGREP
22424
22425 # A BSD- or MS-compatible name lister.
22426 NM=$lt_NM
22427
22428 # Whether we need soft or hard links.
22429 LN_S=$lt_LN_S
22430
22431 # What is the maximum length of a command?
22432 max_cmd_len=$max_cmd_len
22433
22434 # Object file suffix (normally "o").
22435 objext=$ac_objext
22436
22437 # Executable file suffix (normally "").
22438 exeext=$exeext
22439
22440 # whether the shell understands "unset".
22441 lt_unset=$lt_unset
22442
22443 # turn spaces into newlines.
22444 SP2NL=$lt_lt_SP2NL
22445
22446 # turn newlines into spaces.
22447 NL2SP=$lt_lt_NL2SP
22448
22449 # How to create reloadable object files.
22450 reload_flag=$lt_reload_flag
22451 reload_cmds=$lt_reload_cmds
22452
22453 # An object symbol dumper.
22454 OBJDUMP=$lt_OBJDUMP
22455
22456 # Method to check whether dependent libraries are shared objects.
22457 deplibs_check_method=$lt_deplibs_check_method
22458
22459 # Command to use when deplibs_check_method == "file_magic".
22460 file_magic_cmd=$lt_file_magic_cmd
22461
22462 # The archiver.
22463 AR=$lt_AR
22464 AR_FLAGS=$lt_AR_FLAGS
22465
22466 # A symbol stripping program.
22467 STRIP=$lt_STRIP
22468
22469 # Commands used to install an old-style archive.
22470 RANLIB=$lt_RANLIB
22471 old_postinstall_cmds=$lt_old_postinstall_cmds
22472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22473
22474 # A C compiler.
22475 LTCC=$lt_CC
22476
22477 # LTCC compiler flags.
22478 LTCFLAGS=$lt_CFLAGS
22479
22480 # Take the output of nm and produce a listing of raw symbols and C names.
22481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22482
22483 # Transform the output of nm in a proper C declaration.
22484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22485
22486 # Transform the output of nm in a C name address pair.
22487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22488
22489 # Transform the output of nm in a C name address pair when lib prefix is needed.
22490 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22491
22492 # The name of the directory that contains temporary libtool files.
22493 objdir=$objdir
22494
22495 # Shell to use when invoking shell scripts.
22496 SHELL=$lt_SHELL
22497
22498 # An echo program that does not interpret backslashes.
22499 ECHO=$lt_ECHO
22500
22501 # Used to examine libraries when file_magic_cmd begins with "file".
22502 MAGIC_CMD=$MAGIC_CMD
22503
22504 # Must we lock files when doing compilation?
22505 need_locks=$lt_need_locks
22506
22507 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22508 DSYMUTIL=$lt_DSYMUTIL
22509
22510 # Tool to change global to local symbols on Mac OS X.
22511 NMEDIT=$lt_NMEDIT
22512
22513 # Tool to manipulate fat objects and archives on Mac OS X.
22514 LIPO=$lt_LIPO
22515
22516 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22517 OTOOL=$lt_OTOOL
22518
22519 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22520 OTOOL64=$lt_OTOOL64
22521
22522 # Old archive suffix (normally "a").
22523 libext=$libext
22524
22525 # Shared library suffix (normally ".so").
22526 shrext_cmds=$lt_shrext_cmds
22527
22528 # The commands to extract the exported symbol list from a shared archive.
22529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22530
22531 # Variables whose values should be saved in libtool wrapper scripts and
22532 # restored at link time.
22533 variables_saved_for_relink=$lt_variables_saved_for_relink
22534
22535 # Do we need the "lib" prefix for modules?
22536 need_lib_prefix=$need_lib_prefix
22537
22538 # Do we need a version for libraries?
22539 need_version=$need_version
22540
22541 # Library versioning type.
22542 version_type=$version_type
22543
22544 # Shared library runtime path variable.
22545 runpath_var=$runpath_var
22546
22547 # Shared library path variable.
22548 shlibpath_var=$shlibpath_var
22549
22550 # Is shlibpath searched before the hard-coded library search path?
22551 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22552
22553 # Format of library name prefix.
22554 libname_spec=$lt_libname_spec
22555
22556 # List of archive names.  First name is the real one, the rest are links.
22557 # The last name is the one that the linker finds with -lNAME
22558 library_names_spec=$lt_library_names_spec
22559
22560 # The coded name of the library, if different from the real name.
22561 soname_spec=$lt_soname_spec
22562
22563 # Command to use after installation of a shared archive.
22564 postinstall_cmds=$lt_postinstall_cmds
22565
22566 # Command to use after uninstallation of a shared archive.
22567 postuninstall_cmds=$lt_postuninstall_cmds
22568
22569 # Commands used to finish a libtool library installation in a directory.
22570 finish_cmds=$lt_finish_cmds
22571
22572 # As "finish_cmds", except a single script fragment to be evaled but
22573 # not shown.
22574 finish_eval=$lt_finish_eval
22575
22576 # Whether we should hardcode library paths into libraries.
22577 hardcode_into_libs=$hardcode_into_libs
22578
22579 # Compile-time system search path for libraries.
22580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22581
22582 # Run-time system search path for libraries.
22583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22584
22585 # Whether dlopen is supported.
22586 dlopen_support=$enable_dlopen
22587
22588 # Whether dlopen of programs is supported.
22589 dlopen_self=$enable_dlopen_self
22590
22591 # Whether dlopen of statically linked programs is supported.
22592 dlopen_self_static=$enable_dlopen_self_static
22593
22594 # Commands to strip libraries.
22595 old_striplib=$lt_old_striplib
22596 striplib=$lt_striplib
22597
22598
22599 # The linker used to build libraries.
22600 LD=$lt_LD
22601
22602 # Commands used to build an old-style archive.
22603 old_archive_cmds=$lt_old_archive_cmds
22604
22605 # A language specific compiler.
22606 CC=$lt_compiler
22607
22608 # Is the compiler the GNU compiler?
22609 with_gcc=$GCC
22610
22611 # Compiler flag to turn off builtin functions.
22612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22613
22614 # How to pass a linker flag through the compiler.
22615 wl=$lt_lt_prog_compiler_wl
22616
22617 # Additional compiler flags for building library objects.
22618 pic_flag=$lt_lt_prog_compiler_pic
22619
22620 # Compiler flag to prevent dynamic linking.
22621 link_static_flag=$lt_lt_prog_compiler_static
22622
22623 # Does compiler simultaneously support -c and -o options?
22624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22625
22626 # Whether or not to add -lc for building shared libraries.
22627 build_libtool_need_lc=$archive_cmds_need_lc
22628
22629 # Whether or not to disallow shared libs when runtime libs are static.
22630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22631
22632 # Compiler flag to allow reflexive dlopens.
22633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22634
22635 # Compiler flag to generate shared objects directly from archives.
22636 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22637
22638 # Whether the compiler copes with passing no objects directly.
22639 compiler_needs_object=$lt_compiler_needs_object
22640
22641 # Create an old-style archive from a shared archive.
22642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22643
22644 # Create a temporary old-style archive to link instead of a shared archive.
22645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22646
22647 # Commands used to build a shared archive.
22648 archive_cmds=$lt_archive_cmds
22649 archive_expsym_cmds=$lt_archive_expsym_cmds
22650
22651 # Commands used to build a loadable module if different from building
22652 # a shared archive.
22653 module_cmds=$lt_module_cmds
22654 module_expsym_cmds=$lt_module_expsym_cmds
22655
22656 # Whether we are building with GNU ld or not.
22657 with_gnu_ld=$lt_with_gnu_ld
22658
22659 # Flag that allows shared libraries with undefined symbols to be built.
22660 allow_undefined_flag=$lt_allow_undefined_flag
22661
22662 # Flag that enforces no undefined symbols.
22663 no_undefined_flag=$lt_no_undefined_flag
22664
22665 # Flag to hardcode \$libdir into a binary during linking.
22666 # This must work even if \$libdir does not exist
22667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22668
22669 # If ld is used when linking, flag to hardcode \$libdir into a binary
22670 # during linking.  This must work even if \$libdir does not exist.
22671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22672
22673 # Whether we need a single "-rpath" flag with a separated argument.
22674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22675
22676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22677 # DIR into the resulting binary.
22678 hardcode_direct=$hardcode_direct
22679
22680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22681 # DIR into the resulting binary and the resulting library dependency is
22682 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22683 # library is relocated.
22684 hardcode_direct_absolute=$hardcode_direct_absolute
22685
22686 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22687 # into the resulting binary.
22688 hardcode_minus_L=$hardcode_minus_L
22689
22690 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22691 # into the resulting binary.
22692 hardcode_shlibpath_var=$hardcode_shlibpath_var
22693
22694 # Set to "yes" if building a shared library automatically hardcodes DIR
22695 # into the library and all subsequent libraries and executables linked
22696 # against it.
22697 hardcode_automatic=$hardcode_automatic
22698
22699 # Set to yes if linker adds runtime paths of dependent libraries
22700 # to runtime path list.
22701 inherit_rpath=$inherit_rpath
22702
22703 # Whether libtool must link a program against all its dependency libraries.
22704 link_all_deplibs=$link_all_deplibs
22705
22706 # Fix the shell variable \$srcfile for the compiler.
22707 fix_srcfile_path=$lt_fix_srcfile_path
22708
22709 # Set to "yes" if exported symbols are required.
22710 always_export_symbols=$always_export_symbols
22711
22712 # The commands to list exported symbols.
22713 export_symbols_cmds=$lt_export_symbols_cmds
22714
22715 # Symbols that should not be listed in the preloaded symbols.
22716 exclude_expsyms=$lt_exclude_expsyms
22717
22718 # Symbols that must always be exported.
22719 include_expsyms=$lt_include_expsyms
22720
22721 # Commands necessary for linking programs (against libraries) with templates.
22722 prelink_cmds=$lt_prelink_cmds
22723
22724 # Specify filename containing input files.
22725 file_list_spec=$lt_file_list_spec
22726
22727 # How to hardcode a shared library path into an executable.
22728 hardcode_action=$hardcode_action
22729
22730 # ### END LIBTOOL CONFIG
22731
22732 _LT_EOF
22733
22734   case $host_os in
22735   aix3*)
22736     cat <<\_LT_EOF >> "$cfgfile"
22737 # AIX sometimes has problems with the GCC collect2 program.  For some
22738 # reason, if we set the COLLECT_NAMES environment variable, the problems
22739 # vanish in a puff of smoke.
22740 if test "X${COLLECT_NAMES+set}" != Xset; then
22741   COLLECT_NAMES=
22742   export COLLECT_NAMES
22743 fi
22744 _LT_EOF
22745     ;;
22746   esac
22747
22748
22749 ltmain="$ac_aux_dir/ltmain.sh"
22750
22751
22752   # We use sed instead of cat because bash on DJGPP gets confused if
22753   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22754   # text mode, it properly converts lines to CR/LF.  This bash problem
22755   # is reportedly fixed, but why not run on old versions too?
22756   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22757     || (rm -f "$cfgfile"; exit 1)
22758
22759   case $xsi_shell in
22760   yes)
22761     cat << \_LT_EOF >> "$cfgfile"
22762
22763 # func_dirname file append nondir_replacement
22764 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22765 # otherwise set result to NONDIR_REPLACEMENT.
22766 func_dirname ()
22767 {
22768   case ${1} in
22769     */*) func_dirname_result="${1%/*}${2}" ;;
22770     *  ) func_dirname_result="${3}" ;;
22771   esac
22772 }
22773
22774 # func_basename file
22775 func_basename ()
22776 {
22777   func_basename_result="${1##*/}"
22778 }
22779
22780 # func_dirname_and_basename file append nondir_replacement
22781 # perform func_basename and func_dirname in a single function
22782 # call:
22783 #   dirname:  Compute the dirname of FILE.  If nonempty,
22784 #             add APPEND to the result, otherwise set result
22785 #             to NONDIR_REPLACEMENT.
22786 #             value returned in "$func_dirname_result"
22787 #   basename: Compute filename of FILE.
22788 #             value retuned in "$func_basename_result"
22789 # Implementation must be kept synchronized with func_dirname
22790 # and func_basename. For efficiency, we do not delegate to
22791 # those functions but instead duplicate the functionality here.
22792 func_dirname_and_basename ()
22793 {
22794   case ${1} in
22795     */*) func_dirname_result="${1%/*}${2}" ;;
22796     *  ) func_dirname_result="${3}" ;;
22797   esac
22798   func_basename_result="${1##*/}"
22799 }
22800
22801 # func_stripname prefix suffix name
22802 # strip PREFIX and SUFFIX off of NAME.
22803 # PREFIX and SUFFIX must not contain globbing or regex special
22804 # characters, hashes, percent signs, but SUFFIX may contain a leading
22805 # dot (in which case that matches only a dot).
22806 func_stripname ()
22807 {
22808   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22809   # positional parameters, so assign one to ordinary parameter first.
22810   func_stripname_result=${3}
22811   func_stripname_result=${func_stripname_result#"${1}"}
22812   func_stripname_result=${func_stripname_result%"${2}"}
22813 }
22814
22815 # func_opt_split
22816 func_opt_split ()
22817 {
22818   func_opt_split_opt=${1%%=*}
22819   func_opt_split_arg=${1#*=}
22820 }
22821
22822 # func_lo2o object
22823 func_lo2o ()
22824 {
22825   case ${1} in
22826     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22827     *)    func_lo2o_result=${1} ;;
22828   esac
22829 }
22830
22831 # func_xform libobj-or-source
22832 func_xform ()
22833 {
22834   func_xform_result=${1%.*}.lo
22835 }
22836
22837 # func_arith arithmetic-term...
22838 func_arith ()
22839 {
22840   func_arith_result=$(( $* ))
22841 }
22842
22843 # func_len string
22844 # STRING may not start with a hyphen.
22845 func_len ()
22846 {
22847   func_len_result=${#1}
22848 }
22849
22850 _LT_EOF
22851     ;;
22852   *) # Bourne compatible functions.
22853     cat << \_LT_EOF >> "$cfgfile"
22854
22855 # func_dirname file append nondir_replacement
22856 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22857 # otherwise set result to NONDIR_REPLACEMENT.
22858 func_dirname ()
22859 {
22860   # Extract subdirectory from the argument.
22861   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22862   if test "X$func_dirname_result" = "X${1}"; then
22863     func_dirname_result="${3}"
22864   else
22865     func_dirname_result="$func_dirname_result${2}"
22866   fi
22867 }
22868
22869 # func_basename file
22870 func_basename ()
22871 {
22872   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22873 }
22874
22875
22876 # func_stripname prefix suffix name
22877 # strip PREFIX and SUFFIX off of NAME.
22878 # PREFIX and SUFFIX must not contain globbing or regex special
22879 # characters, hashes, percent signs, but SUFFIX may contain a leading
22880 # dot (in which case that matches only a dot).
22881 # func_strip_suffix prefix name
22882 func_stripname ()
22883 {
22884   case ${2} in
22885     .*) func_stripname_result=`$ECHO "X${3}" \
22886            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22887     *)  func_stripname_result=`$ECHO "X${3}" \
22888            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22889   esac
22890 }
22891
22892 # sed scripts:
22893 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22894 my_sed_long_arg='1s/^-[^=]*=//'
22895
22896 # func_opt_split
22897 func_opt_split ()
22898 {
22899   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22900   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22901 }
22902
22903 # func_lo2o object
22904 func_lo2o ()
22905 {
22906   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22907 }
22908
22909 # func_xform libobj-or-source
22910 func_xform ()
22911 {
22912   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22913 }
22914
22915 # func_arith arithmetic-term...
22916 func_arith ()
22917 {
22918   func_arith_result=`expr "$@"`
22919 }
22920
22921 # func_len string
22922 # STRING may not start with a hyphen.
22923 func_len ()
22924 {
22925   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22926 }
22927
22928 _LT_EOF
22929 esac
22930
22931 case $lt_shell_append in
22932   yes)
22933     cat << \_LT_EOF >> "$cfgfile"
22934
22935 # func_append var value
22936 # Append VALUE to the end of shell variable VAR.
22937 func_append ()
22938 {
22939   eval "$1+=\$2"
22940 }
22941 _LT_EOF
22942     ;;
22943   *)
22944     cat << \_LT_EOF >> "$cfgfile"
22945
22946 # func_append var value
22947 # Append VALUE to the end of shell variable VAR.
22948 func_append ()
22949 {
22950   eval "$1=\$$1\$2"
22951 }
22952
22953 _LT_EOF
22954     ;;
22955   esac
22956
22957
22958   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22959     || (rm -f "$cfgfile"; exit 1)
22960
22961   mv -f "$cfgfile" "$ofile" ||
22962     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22963   chmod +x "$ofile"
22964
22965  ;;
22966
22967   esac
22968 done # for ac_tag
22969
22970
22971 { (exit 0); exit 0; }
22972 _ACEOF
22973 chmod +x $CONFIG_STATUS
22974 ac_clean_files=$ac_clean_files_save
22975
22976 test $ac_write_fail = 0 ||
22977   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22978 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22979    { (exit 1); exit 1; }; }
22980
22981
22982 # configure is writing to config.log, and then calls config.status.
22983 # config.status does its own redirection, appending to config.log.
22984 # Unfortunately, on DOS this fails, as config.log is still kept open
22985 # by configure, so config.status won't be able to write to it; its
22986 # output is simply discarded.  So we exec the FD to /dev/null,
22987 # effectively closing config.log, so it can be properly (re)opened and
22988 # appended to by config.status.  When coming back to configure, we
22989 # need to make the FD available again.
22990 if test "$no_create" != yes; then
22991   ac_cs_success=:
22992   ac_config_status_args=
22993   test "$silent" = yes &&
22994     ac_config_status_args="$ac_config_status_args --quiet"
22995   exec 5>/dev/null
22996   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22997   exec 5>>config.log
22998   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22999   # would make configure fail if this is the last instruction.
23000   $ac_cs_success || { (exit 1); exit 1; }
23001 fi
23002 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23003   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23004 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23005 fi
23006