d97d1cacafee4cb9bfb85777d92dd94663f6a842
[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 udevruledir
802 udevdir
803 KERNELCPPFLAGS
804 KERNELMAKE_PARAMS
805 SPL_SYMBOLS
806 SPL_VERSION
807 SPL_OBJ
808 SPL
809 LINUX_SYMBOLS
810 LINUX_VERSION
811 LINUX_OBJ
812 LINUX
813 NO_UNUSED_BUT_SET_VARIABLE
814 ZFS_CONFIG
815 TARGET_ASM_DIR
816 DEFAULT_INIT_SCRIPT
817 DEFAULT_INIT_DIR
818 DEFAULT_PACKAGE
819 VENDOR
820 ALIEN_VERSION
821 ALIEN
822 HAVE_ALIEN
823 DPKGBUILD_VERSION
824 DPKGBUILD
825 HAVE_DPKGBUILD
826 DPKG_VERSION
827 DPKG
828 HAVE_DPKG
829 RPMBUILD_VERSION
830 RPMBUILD
831 HAVE_RPMBUILD
832 RPM_VERSION
833 RPM
834 HAVE_RPM
835 am__fastdepCCAS_FALSE
836 am__fastdepCCAS_TRUE
837 CCASDEPMODE
838 CCASFLAGS
839 CCAS
840 CPP
841 OTOOL64
842 OTOOL
843 LIPO
844 NMEDIT
845 DSYMUTIL
846 lt_ECHO
847 RANLIB
848 AR
849 OBJDUMP
850 LN_S
851 NM
852 ac_ct_DUMPBIN
853 DUMPBIN
854 LD
855 FGREP
856 EGREP
857 GREP
858 SED
859 LIBTOOL
860 am__fastdepCC_FALSE
861 am__fastdepCC_TRUE
862 CCDEPMODE
863 AMDEPBACKSLASH
864 AMDEP_FALSE
865 AMDEP_TRUE
866 am__quote
867 am__include
868 DEPDIR
869 OBJEXT
870 EXEEXT
871 ac_ct_CC
872 CPPFLAGS
873 LDFLAGS
874 CFLAGS
875 CC
876 am__untar
877 am__tar
878 AMTAR
879 am__leading_dot
880 SET_MAKE
881 AWK
882 mkdir_p
883 MKDIR_P
884 INSTALL_STRIP_PROGRAM
885 STRIP
886 install_sh
887 MAKEINFO
888 AUTOHEADER
889 AUTOMAKE
890 AUTOCONF
891 ACLOCAL
892 VERSION
893 PACKAGE
894 CYGPATH_W
895 am__isrc
896 INSTALL_DATA
897 INSTALL_SCRIPT
898 INSTALL_PROGRAM
899 AM_BACKSLASH
900 AM_DEFAULT_VERBOSITY
901 MAINT
902 MAINTAINER_MODE_FALSE
903 MAINTAINER_MODE_TRUE
904 target_os
905 target_vendor
906 target_cpu
907 target
908 host_os
909 host_vendor
910 host_cpu
911 host
912 build_os
913 build_vendor
914 build_cpu
915 build
916 ZFS_META_LT_AGE
917 ZFS_META_LT_REVISION
918 ZFS_META_LT_CURRENT
919 ZFS_META_AUTHOR
920 ZFS_META_DATA
921 ZFS_META_ALIAS
922 ZFS_META_LICENSE
923 ZFS_META_RELEASE
924 ZFS_META_VERSION
925 ZFS_META_NAME
926 target_alias
927 host_alias
928 build_alias
929 LIBS
930 ECHO_T
931 ECHO_N
932 ECHO_C
933 DEFS
934 mandir
935 localedir
936 libdir
937 psdir
938 pdfdir
939 dvidir
940 htmldir
941 infodir
942 docdir
943 oldincludedir
944 includedir
945 localstatedir
946 sharedstatedir
947 sysconfdir
948 datadir
949 datarootdir
950 libexecdir
951 sbindir
952 bindir
953 program_transform_name
954 prefix
955 exec_prefix
956 PACKAGE_BUGREPORT
957 PACKAGE_STRING
958 PACKAGE_VERSION
959 PACKAGE_TARNAME
960 PACKAGE_NAME
961 PATH_SEPARATOR
962 SHELL'
963 ac_subst_files=''
964 ac_user_opts='
965 enable_option_checking
966 enable_maintainer_mode
967 enable_silent_rules
968 enable_dependency_tracking
969 enable_shared
970 enable_static
971 with_pic
972 enable_fast_install
973 with_gnu_ld
974 enable_libtool_lock
975 with_config
976 with_linux
977 with_linux_obj
978 with_spl
979 with_spl_obj
980 with_udevdir
981 with_udevruledir
982 with_blkid
983 with_selinux
984 enable_debug
985 '
986       ac_precious_vars='build_alias
987 host_alias
988 target_alias
989 CC
990 CFLAGS
991 LDFLAGS
992 LIBS
993 CPPFLAGS
994 CPP
995 CCAS
996 CCASFLAGS'
997
998
999 # Initialize some variables set by options.
1000 ac_init_help=
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1007 exec_prefix=NONE
1008 no_create=
1009 no_recursion=
1010 prefix=NONE
1011 program_prefix=NONE
1012 program_suffix=NONE
1013 program_transform_name=s,x,x,
1014 silent=
1015 site=
1016 srcdir=
1017 verbose=
1018 x_includes=NONE
1019 x_libraries=NONE
1020
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE}'
1038 infodir='${datarootdir}/info'
1039 htmldir='${docdir}'
1040 dvidir='${docdir}'
1041 pdfdir='${docdir}'
1042 psdir='${docdir}'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1046
1047 ac_prev=
1048 ac_dashdash=
1049 for ac_option
1050 do
1051   # If the previous option needs an argument, assign it.
1052   if test -n "$ac_prev"; then
1053     eval $ac_prev=\$ac_option
1054     ac_prev=
1055     continue
1056   fi
1057
1058   case $ac_option in
1059   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060   *)    ac_optarg=yes ;;
1061   esac
1062
1063   # Accept the important Cygnus configure options, so we can diagnose typos.
1064
1065   case $ac_dashdash$ac_option in
1066   --)
1067     ac_dashdash=yes ;;
1068
1069   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070     ac_prev=bindir ;;
1071   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072     bindir=$ac_optarg ;;
1073
1074   -build | --build | --buil | --bui | --bu)
1075     ac_prev=build_alias ;;
1076   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077     build_alias=$ac_optarg ;;
1078
1079   -cache-file | --cache-file | --cache-fil | --cache-fi \
1080   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081     ac_prev=cache_file ;;
1082   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084     cache_file=$ac_optarg ;;
1085
1086   --config-cache | -C)
1087     cache_file=config.cache ;;
1088
1089   -datadir | --datadir | --datadi | --datad)
1090     ac_prev=datadir ;;
1091   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092     datadir=$ac_optarg ;;
1093
1094   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095   | --dataroo | --dataro | --datar)
1096     ac_prev=datarootdir ;;
1097   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099     datarootdir=$ac_optarg ;;
1100
1101   -disable-* | --disable-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=no ;;
1117
1118   -docdir | --docdir | --docdi | --doc | --do)
1119     ac_prev=docdir ;;
1120   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121     docdir=$ac_optarg ;;
1122
1123   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124     ac_prev=dvidir ;;
1125   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126     dvidir=$ac_optarg ;;
1127
1128   -enable-* | --enable-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133    { (exit 1); exit 1; }; }
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "enable_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval enable_$ac_useropt=\$ac_optarg ;;
1144
1145   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147   | --exec | --exe | --ex)
1148     ac_prev=exec_prefix ;;
1149   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151   | --exec=* | --exe=* | --ex=*)
1152     exec_prefix=$ac_optarg ;;
1153
1154   -gas | --gas | --ga | --g)
1155     # Obsolete; use --with-gas.
1156     with_gas=yes ;;
1157
1158   -help | --help | --hel | --he | -h)
1159     ac_init_help=long ;;
1160   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161     ac_init_help=recursive ;;
1162   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163     ac_init_help=short ;;
1164
1165   -host | --host | --hos | --ho)
1166     ac_prev=host_alias ;;
1167   -host=* | --host=* | --hos=* | --ho=*)
1168     host_alias=$ac_optarg ;;
1169
1170   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171     ac_prev=htmldir ;;
1172   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173   | --ht=*)
1174     htmldir=$ac_optarg ;;
1175
1176   -includedir | --includedir | --includedi | --included | --include \
1177   | --includ | --inclu | --incl | --inc)
1178     ac_prev=includedir ;;
1179   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180   | --includ=* | --inclu=* | --incl=* | --inc=*)
1181     includedir=$ac_optarg ;;
1182
1183   -infodir | --infodir | --infodi | --infod | --info | --inf)
1184     ac_prev=infodir ;;
1185   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186     infodir=$ac_optarg ;;
1187
1188   -libdir | --libdir | --libdi | --libd)
1189     ac_prev=libdir ;;
1190   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191     libdir=$ac_optarg ;;
1192
1193   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194   | --libexe | --libex | --libe)
1195     ac_prev=libexecdir ;;
1196   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197   | --libexe=* | --libex=* | --libe=*)
1198     libexecdir=$ac_optarg ;;
1199
1200   -localedir | --localedir | --localedi | --localed | --locale)
1201     ac_prev=localedir ;;
1202   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203     localedir=$ac_optarg ;;
1204
1205   -localstatedir | --localstatedir | --localstatedi | --localstated \
1206   | --localstate | --localstat | --localsta | --localst | --locals)
1207     ac_prev=localstatedir ;;
1208   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210     localstatedir=$ac_optarg ;;
1211
1212   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213     ac_prev=mandir ;;
1214   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215     mandir=$ac_optarg ;;
1216
1217   -nfp | --nfp | --nf)
1218     # Obsolete; use --without-fp.
1219     with_fp=no ;;
1220
1221   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222   | --no-cr | --no-c | -n)
1223     no_create=yes ;;
1224
1225   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227     no_recursion=yes ;;
1228
1229   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231   | --oldin | --oldi | --old | --ol | --o)
1232     ac_prev=oldincludedir ;;
1233   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236     oldincludedir=$ac_optarg ;;
1237
1238   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239     ac_prev=prefix ;;
1240   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241     prefix=$ac_optarg ;;
1242
1243   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244   | --program-pre | --program-pr | --program-p)
1245     ac_prev=program_prefix ;;
1246   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248     program_prefix=$ac_optarg ;;
1249
1250   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251   | --program-suf | --program-su | --program-s)
1252     ac_prev=program_suffix ;;
1253   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255     program_suffix=$ac_optarg ;;
1256
1257   -program-transform-name | --program-transform-name \
1258   | --program-transform-nam | --program-transform-na \
1259   | --program-transform-n | --program-transform- \
1260   | --program-transform | --program-transfor \
1261   | --program-transfo | --program-transf \
1262   | --program-trans | --program-tran \
1263   | --progr-tra | --program-tr | --program-t)
1264     ac_prev=program_transform_name ;;
1265   -program-transform-name=* | --program-transform-name=* \
1266   | --program-transform-nam=* | --program-transform-na=* \
1267   | --program-transform-n=* | --program-transform-=* \
1268   | --program-transform=* | --program-transfor=* \
1269   | --program-transfo=* | --program-transf=* \
1270   | --program-trans=* | --program-tran=* \
1271   | --progr-tra=* | --program-tr=* | --program-t=*)
1272     program_transform_name=$ac_optarg ;;
1273
1274   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275     ac_prev=pdfdir ;;
1276   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277     pdfdir=$ac_optarg ;;
1278
1279   -psdir | --psdir | --psdi | --psd | --ps)
1280     ac_prev=psdir ;;
1281   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282     psdir=$ac_optarg ;;
1283
1284   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285   | -silent | --silent | --silen | --sile | --sil)
1286     silent=yes ;;
1287
1288   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289     ac_prev=sbindir ;;
1290   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291   | --sbi=* | --sb=*)
1292     sbindir=$ac_optarg ;;
1293
1294   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296   | --sharedst | --shareds | --shared | --share | --shar \
1297   | --sha | --sh)
1298     ac_prev=sharedstatedir ;;
1299   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302   | --sha=* | --sh=*)
1303     sharedstatedir=$ac_optarg ;;
1304
1305   -site | --site | --sit)
1306     ac_prev=site ;;
1307   -site=* | --site=* | --sit=*)
1308     site=$ac_optarg ;;
1309
1310   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311     ac_prev=srcdir ;;
1312   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313     srcdir=$ac_optarg ;;
1314
1315   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316   | --syscon | --sysco | --sysc | --sys | --sy)
1317     ac_prev=sysconfdir ;;
1318   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320     sysconfdir=$ac_optarg ;;
1321
1322   -target | --target | --targe | --targ | --tar | --ta | --t)
1323     ac_prev=target_alias ;;
1324   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325     target_alias=$ac_optarg ;;
1326
1327   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328     verbose=yes ;;
1329
1330   -version | --version | --versio | --versi | --vers | -V)
1331     ac_init_version=: ;;
1332
1333   -with-* | --with-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338    { (exit 1); exit 1; }; }
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval with_$ac_useropt=\$ac_optarg ;;
1349
1350   -without-* | --without-*)
1351     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352     # Reject names that are not valid shell variable names.
1353     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355    { (exit 1); exit 1; }; }
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387    { (exit 1); exit 1; }; }
1388     ;;
1389
1390   *=*)
1391     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392     # Reject names that are not valid shell variable names.
1393     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395    { (exit 1); exit 1; }; }
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413    { (exit 1); exit 1; }; }
1414 fi
1415
1416 if test -n "$ac_unrecognized_opts"; then
1417   case $enable_option_checking in
1418     no) ;;
1419     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420    { (exit 1); exit 1; }; } ;;
1421     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422   esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427                 datadir sysconfdir sharedstatedir localstatedir includedir \
1428                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429                 libdir localedir mandir
1430 do
1431   eval ac_val=\$$ac_var
1432   # Remove trailing slashes.
1433   case $ac_val in
1434     */ )
1435       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436       eval $ac_var=\$ac_val;;
1437   esac
1438   # Be sure to have absolute directory names.
1439   case $ac_val in
1440     [\\/$]* | ?:[\\/]* )  continue;;
1441     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442   esac
1443   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444    { (exit 1); exit 1; }; }
1445 done
1446
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1450 build=$build_alias
1451 host=$host_alias
1452 target=$target_alias
1453
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456   if test "x$build_alias" = x; then
1457     cross_compiling=maybe
1458     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459     If a cross compiler is detected then cross compile mode will be used." >&2
1460   elif test "x$build_alias" != "x$host_alias"; then
1461     cross_compiling=yes
1462   fi
1463 fi
1464
1465 ac_tool_prefix=
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468 test "$silent" = yes && exec 6>/dev/null
1469
1470
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475    { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478    { (exit 1); exit 1; }; }
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483   ac_srcdir_defaulted=yes
1484   # Try the directory containing this script, then the parent directory.
1485   ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487          X"$as_myself" : 'X\(//\)[^/]' \| \
1488          X"$as_myself" : 'X\(//\)$' \| \
1489          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)[^/].*/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\).*/{
1504             s//\1/
1505             q
1506           }
1507           s/.*/./; q'`
1508   srcdir=$ac_confdir
1509   if test ! -r "$srcdir/$ac_unique_file"; then
1510     srcdir=..
1511   fi
1512 else
1513   ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518    { (exit 1); exit 1; }; }
1519 fi
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 ac_abs_confdir=`(
1522         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523    { (exit 1); exit 1; }; }
1524         pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527   srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_env_${ac_var}_value=\$${ac_var}
1538   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546   # Omit some internal or obsolete options to make the list less imposing.
1547   # This message is too long to be a string in the A/UX 3.1 sh.
1548   cat <<_ACEOF
1549 \`configure' configures this package to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE.  See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559   -h, --help              display this help and exit
1560       --help=short        display options specific to this package
1561       --help=recursive    display the short help of all the included packages
1562   -V, --version           display version information and exit
1563   -q, --quiet, --silent   do not print \`checking...' messages
1564       --cache-file=FILE   cache test results in FILE [disabled]
1565   -C, --config-cache      alias for \`--cache-file=config.cache'
1566   -n, --no-create         do not create output files
1567       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570   --prefix=PREFIX         install architecture-independent files in PREFIX
1571                           [$ac_default_prefix]
1572   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1573                           [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583   --bindir=DIR            user executables [EPREFIX/bin]
1584   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1585   --libexecdir=DIR        program executables [EPREFIX/libexec]
1586   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1587   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1588   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1589   --libdir=DIR            object code libraries [EPREFIX/lib]
1590   --includedir=DIR        C header files [PREFIX/include]
1591   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1592   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1593   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1594   --infodir=DIR           info documentation [DATAROOTDIR/info]
1595   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1596   --mandir=DIR            man documentation [DATAROOTDIR/man]
1597   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1598   --htmldir=DIR           html documentation [DOCDIR]
1599   --dvidir=DIR            dvi documentation [DOCDIR]
1600   --pdfdir=DIR            pdf documentation [DOCDIR]
1601   --psdir=DIR             ps documentation [DOCDIR]
1602 _ACEOF
1603
1604   cat <<\_ACEOF
1605
1606 Program names:
1607   --program-prefix=PREFIX            prepend PREFIX to installed program names
1608   --program-suffix=SUFFIX            append SUFFIX to installed program names
1609   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1610
1611 System types:
1612   --build=BUILD     configure for building on BUILD [guessed]
1613   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1614   --target=TARGET   configure for building compilers for TARGET [HOST]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619
1620   cat <<\_ACEOF
1621
1622 Optional Features:
1623   --disable-option-checking  ignore unrecognized --enable/--with options
1624   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1625   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1626   --enable-maintainer-mode  enable make rules and dependencies not useful
1627                           (and sometimes confusing) to the casual installer
1628   --enable-silent-rules          less verbose build output (undo: `make V=1')
1629   --disable-silent-rules         verbose build output (undo: `make V=0')
1630   --disable-dependency-tracking  speeds up one-time build
1631   --enable-dependency-tracking   do not reject slow dependency extractors
1632   --enable-shared[=PKGS]  build shared libraries [default=yes]
1633   --enable-static[=PKGS]  build static libraries [default=yes]
1634   --enable-fast-install[=PKGS]
1635                           optimize for fast installation [default=yes]
1636   --disable-libtool-lock  avoid locking (might break parallel builds)
1637   --enable-debug          Enable generic debug support [default=no]
1638
1639 Optional Packages:
1640   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642   --with-pic              try to use only PIC/non-PIC objects [default=use
1643                           both]
1644   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1645   --with-config=CONFIG    Config file 'kernel|user|all|srpm'
1646   --with-linux=PATH       Path to kernel source
1647   --with-linux-obj=PATH   Path to kernel build objects
1648   --with-spl=PATH         Path to spl source
1649   --with-spl-obj=PATH     Path to spl build objects
1650   --with-udevdir=DIR      install udev helpers [EPREFIX/lib/udev]
1651   --with-udevruledir=DIR  install udev rules [UDEVDIR/rules.d]
1652   --with-blkid            support blkid caching [default=check]
1653   --with-selinux          support selinux [default=check]
1654
1655 Some influential environment variables:
1656   CC          C compiler command
1657   CFLAGS      C compiler flags
1658   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1659               nonstandard directory <lib dir>
1660   LIBS        libraries to pass to the linker, e.g. -l<library>
1661   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1662               you have headers in a nonstandard directory <include dir>
1663   CPP         C preprocessor
1664   CCAS        assembler compiler command (defaults to CC)
1665   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1666
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1669
1670 _ACEOF
1671 ac_status=$?
1672 fi
1673
1674 if test "$ac_init_help" = "recursive"; then
1675   # If there are subdirs, report their specific --help.
1676   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1677     test -d "$ac_dir" ||
1678       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1679       continue
1680     ac_builddir=.
1681
1682 case "$ac_dir" in
1683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 *)
1685   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1686   # A ".." for each directory in $ac_dir_suffix.
1687   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1688   case $ac_top_builddir_sub in
1689   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1691   esac ;;
1692 esac
1693 ac_abs_top_builddir=$ac_pwd
1694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1695 # for backward compatibility:
1696 ac_top_builddir=$ac_top_build_prefix
1697
1698 case $srcdir in
1699   .)  # We are building in place.
1700     ac_srcdir=.
1701     ac_top_srcdir=$ac_top_builddir_sub
1702     ac_abs_top_srcdir=$ac_pwd ;;
1703   [\\/]* | ?:[\\/]* )  # Absolute name.
1704     ac_srcdir=$srcdir$ac_dir_suffix;
1705     ac_top_srcdir=$srcdir
1706     ac_abs_top_srcdir=$srcdir ;;
1707   *) # Relative name.
1708     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1709     ac_top_srcdir=$ac_top_build_prefix$srcdir
1710     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711 esac
1712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713
1714     cd "$ac_dir" || { ac_status=$?; continue; }
1715     # Check for guested configure.
1716     if test -f "$ac_srcdir/configure.gnu"; then
1717       echo &&
1718       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1719     elif test -f "$ac_srcdir/configure"; then
1720       echo &&
1721       $SHELL "$ac_srcdir/configure" --help=recursive
1722     else
1723       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724     fi || ac_status=$?
1725     cd "$ac_pwd" || { ac_status=$?; break; }
1726   done
1727 fi
1728
1729 test -n "$ac_init_help" && exit $ac_status
1730 if $ac_init_version; then
1731   cat <<\_ACEOF
1732 configure
1733 generated by GNU Autoconf 2.63
1734
1735 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1736 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1739 _ACEOF
1740   exit
1741 fi
1742 cat >config.log <<_ACEOF
1743 This file contains any messages produced by compilers while
1744 running configure, to aid debugging if configure makes a mistake.
1745
1746 It was created by $as_me, which was
1747 generated by GNU Autoconf 2.63.  Invocation command line was
1748
1749   $ $0 $@
1750
1751 _ACEOF
1752 exec 5>>config.log
1753 {
1754 cat <<_ASUNAME
1755 ## --------- ##
1756 ## Platform. ##
1757 ## --------- ##
1758
1759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1760 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1761 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1762 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1763 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1764
1765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1766 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1767
1768 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1769 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1771 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1772 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1773 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1774 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1775
1776 _ASUNAME
1777
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   $as_echo "PATH: $as_dir"
1784 done
1785 IFS=$as_save_IFS
1786
1787 } >&5
1788
1789 cat >&5 <<_ACEOF
1790
1791
1792 ## ----------- ##
1793 ## Core tests. ##
1794 ## ----------- ##
1795
1796 _ACEOF
1797
1798
1799 # Keep a trace of the command line.
1800 # Strip out --no-create and --no-recursion so they do not pile up.
1801 # Strip out --silent because we don't want to record it for future runs.
1802 # Also quote any args containing shell meta-characters.
1803 # Make two passes to allow for proper duplicate-argument suppression.
1804 ac_configure_args=
1805 ac_configure_args0=
1806 ac_configure_args1=
1807 ac_must_keep_next=false
1808 for ac_pass in 1 2
1809 do
1810   for ac_arg
1811   do
1812     case $ac_arg in
1813     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1814     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1815     | -silent | --silent | --silen | --sile | --sil)
1816       continue ;;
1817     *\'*)
1818       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819     esac
1820     case $ac_pass in
1821     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1822     2)
1823       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1824       if test $ac_must_keep_next = true; then
1825         ac_must_keep_next=false # Got value, back to normal.
1826       else
1827         case $ac_arg in
1828           *=* | --config-cache | -C | -disable-* | --disable-* \
1829           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1830           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1831           | -with-* | --with-* | -without-* | --without-* | --x)
1832             case "$ac_configure_args0 " in
1833               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834             esac
1835             ;;
1836           -* ) ac_must_keep_next=true ;;
1837         esac
1838       fi
1839       ac_configure_args="$ac_configure_args '$ac_arg'"
1840       ;;
1841     esac
1842   done
1843 done
1844 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1845 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1846
1847 # When interrupted or exit'd, cleanup temporary files, and complete
1848 # config.log.  We remove comments because anyway the quotes in there
1849 # would cause problems or look ugly.
1850 # WARNING: Use '\'' to represent an apostrophe within the trap.
1851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852 trap 'exit_status=$?
1853   # Save into config.log some information that might help in debugging.
1854   {
1855     echo
1856
1857     cat <<\_ASBOX
1858 ## ---------------- ##
1859 ## Cache variables. ##
1860 ## ---------------- ##
1861 _ASBOX
1862     echo
1863     # The following way of writing the cache mishandles newlines in values,
1864 (
1865   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866     eval ac_val=\$$ac_var
1867     case $ac_val in #(
1868     *${as_nl}*)
1869       case $ac_var in #(
1870       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1872       esac
1873       case $ac_var in #(
1874       _ | IFS | as_nl) ;; #(
1875       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876       *) $as_unset $ac_var ;;
1877       esac ;;
1878     esac
1879   done
1880   (set) 2>&1 |
1881     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882     *${as_nl}ac_space=\ *)
1883       sed -n \
1884         "s/'\''/'\''\\\\'\'''\''/g;
1885           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886       ;; #(
1887     *)
1888       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889       ;;
1890     esac |
1891     sort
1892 )
1893     echo
1894
1895     cat <<\_ASBOX
1896 ## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##
1899 _ASBOX
1900     echo
1901     for ac_var in $ac_subst_vars
1902     do
1903       eval ac_val=\$$ac_var
1904       case $ac_val in
1905       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906       esac
1907       $as_echo "$ac_var='\''$ac_val'\''"
1908     done | sort
1909     echo
1910
1911     if test -n "$ac_subst_files"; then
1912       cat <<\_ASBOX
1913 ## ------------------- ##
1914 ## File substitutions. ##
1915 ## ------------------- ##
1916 _ASBOX
1917       echo
1918       for ac_var in $ac_subst_files
1919       do
1920         eval ac_val=\$$ac_var
1921         case $ac_val in
1922         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923         esac
1924         $as_echo "$ac_var='\''$ac_val'\''"
1925       done | sort
1926       echo
1927     fi
1928
1929     if test -s confdefs.h; then
1930       cat <<\_ASBOX
1931 ## ----------- ##
1932 ## confdefs.h. ##
1933 ## ----------- ##
1934 _ASBOX
1935       echo
1936       cat confdefs.h
1937       echo
1938     fi
1939     test "$ac_signal" != 0 &&
1940       $as_echo "$as_me: caught signal $ac_signal"
1941     $as_echo "$as_me: exit $exit_status"
1942   } >&5
1943   rm -f core *.core core.conftest.* &&
1944     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1945     exit $exit_status
1946 ' 0
1947 for ac_signal in 1 2 13 15; do
1948   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1949 done
1950 ac_signal=0
1951
1952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1953 rm -f -r conftest* confdefs.h
1954
1955 # Predefined preprocessor variables.
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_NAME "$PACKAGE_NAME"
1959 _ACEOF
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1964 _ACEOF
1965
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1969 _ACEOF
1970
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_STRING "$PACKAGE_STRING"
1974 _ACEOF
1975
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979 _ACEOF
1980
1981
1982 # Let the site file select an alternate cache file if it wants to.
1983 # Prefer an explicitly selected file to automatically selected ones.
1984 ac_site_file1=NONE
1985 ac_site_file2=NONE
1986 if test -n "$CONFIG_SITE"; then
1987   ac_site_file1=$CONFIG_SITE
1988 elif test "x$prefix" != xNONE; then
1989   ac_site_file1=$prefix/share/config.site
1990   ac_site_file2=$prefix/etc/config.site
1991 else
1992   ac_site_file1=$ac_default_prefix/share/config.site
1993   ac_site_file2=$ac_default_prefix/etc/config.site
1994 fi
1995 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1996 do
1997   test "x$ac_site_file" = xNONE && continue
1998   if test -r "$ac_site_file"; then
1999     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2000 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2001     sed 's/^/| /' "$ac_site_file" >&5
2002     . "$ac_site_file"
2003   fi
2004 done
2005
2006 if test -r "$cache_file"; then
2007   # Some versions of bash will fail to source /dev/null (special
2008   # files actually), so we avoid doing that.
2009   if test -f "$cache_file"; then
2010     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2011 $as_echo "$as_me: loading cache $cache_file" >&6;}
2012     case $cache_file in
2013       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014       *)                      . "./$cache_file";;
2015     esac
2016   fi
2017 else
2018   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2019 $as_echo "$as_me: creating cache $cache_file" >&6;}
2020   >$cache_file
2021 fi
2022
2023 # Check that the precious variables saved in the cache have kept the same
2024 # value.
2025 ac_cache_corrupted=false
2026 for ac_var in $ac_precious_vars; do
2027   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028   eval ac_new_set=\$ac_env_${ac_var}_set
2029   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030   eval ac_new_val=\$ac_env_${ac_var}_value
2031   case $ac_old_set,$ac_new_set in
2032     set,)
2033       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035       ac_cache_corrupted=: ;;
2036     ,set)
2037       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039       ac_cache_corrupted=: ;;
2040     ,);;
2041     *)
2042       if test "x$ac_old_val" != "x$ac_new_val"; then
2043         # differences in whitespace do not lead to failure.
2044         ac_old_val_w=`echo x $ac_old_val`
2045         ac_new_val_w=`echo x $ac_new_val`
2046         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2048 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049           ac_cache_corrupted=:
2050         else
2051           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053           eval $ac_var=\$ac_old_val
2054         fi
2055         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2056 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2057         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2058 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2059       fi;;
2060   esac
2061   # Pass precious variables to config.status.
2062   if test "$ac_new_set" = set; then
2063     case $ac_new_val in
2064     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065     *) ac_arg=$ac_var=$ac_new_val ;;
2066     esac
2067     case " $ac_configure_args " in
2068       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2069       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2070     esac
2071   fi
2072 done
2073 if $ac_cache_corrupted; then
2074   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2077 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2079 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2080    { (exit 1); exit 1; }; }
2081 fi
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
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 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113
2114
2115
2116
2117         { $as_echo "$as_me:$LINENO: checking metadata" >&5
2118 $as_echo_n "checking metadata... " >&6; }
2119
2120         META="$srcdir/META"
2121         _zfs_ac_meta_got_file=no
2122         if test -f "$META"; then
2123                 _zfs_ac_meta_got_file=yes
2124
2125                 ZFS_META_NAME=`perl -n\
2126                 -e "BEGIN { \\$key=shift @ARGV; }"\
2127                 -e "next unless s/^\s*\\$key[:=]//i;"\
2128                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2129                 -e "s/^\s+//;"\
2130                 -e "s/\s+$//;"\
2131                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2132                 -e "\\$val=\\$_;"\
2133                 -e "END { print \\$val if defined \\$val; }"\
2134                 '(?:NAME|PROJECT|PACKAGE)' $META`;
2135                 if test -n "$ZFS_META_NAME"; then
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define ZFS_META_NAME "$ZFS_META_NAME"
2139 _ACEOF
2140
2141
2142                 fi
2143
2144                 ZFS_META_VERSION=`perl -n\
2145                 -e "BEGIN { \\$key=shift @ARGV; }"\
2146                 -e "next unless s/^\s*\\$key[:=]//i;"\
2147                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2148                 -e "s/^\s+//;"\
2149                 -e "s/\s+$//;"\
2150                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2151                 -e "\\$val=\\$_;"\
2152                 -e "END { print \\$val if defined \\$val; }"\
2153                 'VERSION' $META`;
2154                 if test -n "$ZFS_META_VERSION"; then
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2158 _ACEOF
2159
2160
2161                 fi
2162
2163                 ZFS_META_RELEASE=`perl -n\
2164                 -e "BEGIN { \\$key=shift @ARGV; }"\
2165                 -e "next unless s/^\s*\\$key[:=]//i;"\
2166                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2167                 -e "s/^\s+//;"\
2168                 -e "s/\s+$//;"\
2169                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2170                 -e "\\$val=\\$_;"\
2171                 -e "END { print \\$val if defined \\$val; }"\
2172                 'RELEASE' $META`;
2173                 if test -n "$ZFS_META_RELEASE"; then
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2177 _ACEOF
2178
2179
2180                 fi
2181
2182                 ZFS_META_LICENSE=`perl -n\
2183                 -e "BEGIN { \\$key=shift @ARGV; }"\
2184                 -e "next unless s/^\s*\\$key[:=]//i;"\
2185                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2186                 -e "s/^\s+//;"\
2187                 -e "s/\s+$//;"\
2188                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2189                 -e "\\$val=\\$_;"\
2190                 -e "END { print \\$val if defined \\$val; }"\
2191                 'LICENSE' $META`;
2192                 if test -n "$ZFS_META_LICENSE"; then
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2196 _ACEOF
2197
2198
2199                 fi
2200
2201                 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2202                                 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2203                                 test -n "$ZFS_META_RELEASE" &&
2204                                         ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2208 _ACEOF
2209
2210
2211                 fi
2212
2213                 ZFS_META_DATA=`perl -n\
2214                 -e "BEGIN { \\$key=shift @ARGV; }"\
2215                 -e "next unless s/^\s*\\$key[:=]//i;"\
2216                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2217                 -e "s/^\s+//;"\
2218                 -e "s/\s+$//;"\
2219                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2220                 -e "\\$val=\\$_;"\
2221                 -e "END { print \\$val if defined \\$val; }"\
2222                 'DATE' $META`;
2223                 if test -n "$ZFS_META_DATA"; then
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define ZFS_META_DATA "$ZFS_META_DATA"
2227 _ACEOF
2228
2229
2230                 fi
2231
2232                 ZFS_META_AUTHOR=`perl -n\
2233                 -e "BEGIN { \\$key=shift @ARGV; }"\
2234                 -e "next unless s/^\s*\\$key[:=]//i;"\
2235                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2236                 -e "s/^\s+//;"\
2237                 -e "s/\s+$//;"\
2238                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2239                 -e "\\$val=\\$_;"\
2240                 -e "END { print \\$val if defined \\$val; }"\
2241                 'AUTHOR' $META`;
2242                 if test -n "$ZFS_META_AUTHOR"; then
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2246 _ACEOF
2247
2248
2249                 fi
2250
2251
2252                 ZFS_META_LT_CURRENT=`perl -n\
2253                 -e "BEGIN { \\$key=shift @ARGV; }"\
2254                 -e "next unless s/^\s*\\$key[:=]//i;"\
2255                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2256                 -e "s/^\s+//;"\
2257                 -e "s/\s+$//;"\
2258                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2259                 -e "\\$val=\\$_;"\
2260                 -e "END { print \\$val if defined \\$val; }"\
2261                 'LT_CURRENT' $META`;
2262                 ZFS_META_LT_REVISION=`perl -n\
2263                 -e "BEGIN { \\$key=shift @ARGV; }"\
2264                 -e "next unless s/^\s*\\$key[:=]//i;"\
2265                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2266                 -e "s/^\s+//;"\
2267                 -e "s/\s+$//;"\
2268                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2269                 -e "\\$val=\\$_;"\
2270                 -e "END { print \\$val if defined \\$val; }"\
2271                 'LT_REVISION' $META`;
2272                 ZFS_META_LT_AGE=`perl -n\
2273                 -e "BEGIN { \\$key=shift @ARGV; }"\
2274                 -e "next unless s/^\s*\\$key[:=]//i;"\
2275                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2276                 -e "s/^\s+//;"\
2277                 -e "s/\s+$//;"\
2278                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2279                 -e "\\$val=\\$_;"\
2280                 -e "END { print \\$val if defined \\$val; }"\
2281                 'LT_AGE' $META`;
2282                 if test -n "$ZFS_META_LT_CURRENT" \
2283                                  -o -n "$ZFS_META_LT_REVISION" \
2284                                  -o -n "$ZFS_META_LT_AGE"; then
2285                         test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2286                         test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2287                         test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2291 _ACEOF
2292
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2296 _ACEOF
2297
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2301 _ACEOF
2302
2303
2304
2305
2306                 fi
2307         fi
2308
2309         { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2310 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2311
2312
2313 ac_aux_dir=
2314 for ac_dir in config "$srcdir"/config; do
2315   if test -f "$ac_dir/install-sh"; then
2316     ac_aux_dir=$ac_dir
2317     ac_install_sh="$ac_aux_dir/install-sh -c"
2318     break
2319   elif test -f "$ac_dir/install.sh"; then
2320     ac_aux_dir=$ac_dir
2321     ac_install_sh="$ac_aux_dir/install.sh -c"
2322     break
2323   elif test -f "$ac_dir/shtool"; then
2324     ac_aux_dir=$ac_dir
2325     ac_install_sh="$ac_aux_dir/shtool install -c"
2326     break
2327   fi
2328 done
2329 if test -z "$ac_aux_dir"; then
2330   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2331 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2332    { (exit 1); exit 1; }; }
2333 fi
2334
2335 # These three variables are undocumented and unsupported,
2336 # and are intended to be withdrawn in a future Autoconf release.
2337 # They can cause serious problems if a builder's source tree is in a directory
2338 # whose full name contains unusual characters.
2339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2341 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2342
2343
2344 # Make sure we can run config.sub.
2345 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2346   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2347 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2348    { (exit 1); exit 1; }; }
2349
2350 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2351 $as_echo_n "checking build system type... " >&6; }
2352 if test "${ac_cv_build+set}" = set; then
2353   $as_echo_n "(cached) " >&6
2354 else
2355   ac_build_alias=$build_alias
2356 test "x$ac_build_alias" = x &&
2357   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2358 test "x$ac_build_alias" = x &&
2359   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2360 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2361    { (exit 1); exit 1; }; }
2362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2364 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2365    { (exit 1); exit 1; }; }
2366
2367 fi
2368 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2369 $as_echo "$ac_cv_build" >&6; }
2370 case $ac_cv_build in
2371 *-*-*) ;;
2372 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2373 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2374    { (exit 1); exit 1; }; };;
2375 esac
2376 build=$ac_cv_build
2377 ac_save_IFS=$IFS; IFS='-'
2378 set x $ac_cv_build
2379 shift
2380 build_cpu=$1
2381 build_vendor=$2
2382 shift; shift
2383 # Remember, the first character of IFS is used to create $*,
2384 # except with old shells:
2385 build_os=$*
2386 IFS=$ac_save_IFS
2387 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2388
2389
2390 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2391 $as_echo_n "checking host system type... " >&6; }
2392 if test "${ac_cv_host+set}" = set; then
2393   $as_echo_n "(cached) " >&6
2394 else
2395   if test "x$host_alias" = x; then
2396   ac_cv_host=$ac_cv_build
2397 else
2398   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2399     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2400 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2401    { (exit 1); exit 1; }; }
2402 fi
2403
2404 fi
2405 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2406 $as_echo "$ac_cv_host" >&6; }
2407 case $ac_cv_host in
2408 *-*-*) ;;
2409 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2410 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2411    { (exit 1); exit 1; }; };;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2425
2426
2427 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then
2430   $as_echo_n "(cached) " >&6
2431 else
2432   if test "x$target_alias" = x; then
2433   ac_cv_target=$ac_cv_host
2434 else
2435   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2437 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2438    { (exit 1); exit 1; }; }
2439 fi
2440
2441 fi
2442 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2443 $as_echo "$ac_cv_target" >&6; }
2444 case $ac_cv_target in
2445 *-*-*) ;;
2446 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2447 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2448    { (exit 1); exit 1; }; };;
2449 esac
2450 target=$ac_cv_target
2451 ac_save_IFS=$IFS; IFS='-'
2452 set x $ac_cv_target
2453 shift
2454 target_cpu=$1
2455 target_vendor=$2
2456 shift; shift
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2459 target_os=$*
2460 IFS=$ac_save_IFS
2461 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2462
2463
2464 # The aliases save the names the user supplied, while $host etc.
2465 # will get canonicalized.
2466 test -n "$target_alias" &&
2467   test "$program_prefix$program_suffix$program_transform_name" = \
2468     NONENONEs,x,x, &&
2469   program_prefix=${target_alias}-
2470
2471 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2472 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2473     # Check whether --enable-maintainer-mode was given.
2474 if test "${enable_maintainer_mode+set}" = set; then
2475   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2476 else
2477   USE_MAINTAINER_MODE=no
2478 fi
2479
2480   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2481 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2482    if test $USE_MAINTAINER_MODE = yes; then
2483   MAINTAINER_MODE_TRUE=
2484   MAINTAINER_MODE_FALSE='#'
2485 else
2486   MAINTAINER_MODE_TRUE='#'
2487   MAINTAINER_MODE_FALSE=
2488 fi
2489
2490   MAINT=$MAINTAINER_MODE_TRUE
2491
2492
2493 # Check whether --enable-silent-rules was given.
2494 if test "${enable_silent_rules+set}" = set; then
2495   enableval=$enable_silent_rules;
2496 fi
2497
2498 case $enable_silent_rules in
2499 yes) AM_DEFAULT_VERBOSITY=0;;
2500 no)  AM_DEFAULT_VERBOSITY=1;;
2501 *)   AM_DEFAULT_VERBOSITY=1;;
2502 esac
2503 AM_BACKSLASH='\'
2504
2505 am__api_version='1.11'
2506
2507 # Find a good install program.  We prefer a C program (faster),
2508 # so one script is as good as another.  But avoid the broken or
2509 # incompatible versions:
2510 # SysV /etc/install, /usr/sbin/install
2511 # SunOS /usr/etc/install
2512 # IRIX /sbin/install
2513 # AIX /bin/install
2514 # AmigaOS /C/install, which installs bootblocks on floppy discs
2515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2518 # OS/2's system install, which has a completely different semantic
2519 # ./install, which can be erroneously created by make from ./install.sh.
2520 # Reject install programs that cannot install multiple files.
2521 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2522 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2523 if test -z "$INSTALL"; then
2524 if test "${ac_cv_path_install+set}" = set; then
2525   $as_echo_n "(cached) " >&6
2526 else
2527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532   # Account for people who put trailing slashes in PATH elements.
2533 case $as_dir/ in
2534   ./ | .// | /cC/* | \
2535   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2536   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2537   /usr/ucb/* ) ;;
2538   *)
2539     # OSF1 and SCO ODT 3.0 have their own names for install.
2540     # Don't use installbsd from OSF since it installs stuff as root
2541     # by default.
2542     for ac_prog in ginstall scoinst install; do
2543       for ac_exec_ext in '' $ac_executable_extensions; do
2544         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2545           if test $ac_prog = install &&
2546             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547             # AIX install.  It has an incompatible calling convention.
2548             :
2549           elif test $ac_prog = install &&
2550             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551             # program-specific install script used by HP pwplus--don't use.
2552             :
2553           else
2554             rm -rf conftest.one conftest.two conftest.dir
2555             echo one > conftest.one
2556             echo two > conftest.two
2557             mkdir conftest.dir
2558             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2559               test -s conftest.one && test -s conftest.two &&
2560               test -s conftest.dir/conftest.one &&
2561               test -s conftest.dir/conftest.two
2562             then
2563               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2564               break 3
2565             fi
2566           fi
2567         fi
2568       done
2569     done
2570     ;;
2571 esac
2572
2573 done
2574 IFS=$as_save_IFS
2575
2576 rm -rf conftest.one conftest.two conftest.dir
2577
2578 fi
2579   if test "${ac_cv_path_install+set}" = set; then
2580     INSTALL=$ac_cv_path_install
2581   else
2582     # As a last resort, use the slow shell script.  Don't cache a
2583     # value for INSTALL within a source directory, because that will
2584     # break other packages using the cache if that directory is
2585     # removed, or if the value is a relative name.
2586     INSTALL=$ac_install_sh
2587   fi
2588 fi
2589 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2590 $as_echo "$INSTALL" >&6; }
2591
2592 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2593 # It thinks the first close brace ends the variable substitution.
2594 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2595
2596 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2597
2598 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2599
2600 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2601 $as_echo_n "checking whether build environment is sane... " >&6; }
2602 # Just in case
2603 sleep 1
2604 echo timestamp > conftest.file
2605 # Reject unsafe characters in $srcdir or the absolute working directory
2606 # name.  Accept space and tab only in the latter.
2607 am_lf='
2608 '
2609 case `pwd` in
2610   *[\\\"\#\$\&\'\`$am_lf]*)
2611     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2612 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2613    { (exit 1); exit 1; }; };;
2614 esac
2615 case $srcdir in
2616   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2617     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2618 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2619    { (exit 1); exit 1; }; };;
2620 esac
2621
2622 # Do `set' in a subshell so we don't clobber the current shell's
2623 # arguments.  Must try -L first in case configure is actually a
2624 # symlink; some systems play weird games with the mod time of symlinks
2625 # (eg FreeBSD returns the mod time of the symlink's containing
2626 # directory).
2627 if (
2628    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2629    if test "$*" = "X"; then
2630       # -L didn't work.
2631       set X `ls -t "$srcdir/configure" conftest.file`
2632    fi
2633    rm -f conftest.file
2634    if test "$*" != "X $srcdir/configure conftest.file" \
2635       && test "$*" != "X conftest.file $srcdir/configure"; then
2636
2637       # If neither matched, then we have a broken ls.  This can happen
2638       # if, for instance, CONFIG_SHELL is bash and it inherits a
2639       # broken ls alias from the environment.  This has actually
2640       # happened.  Such a system could not be considered "sane".
2641       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2642 alias in your environment" >&5
2643 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2644 alias in your environment" >&2;}
2645    { (exit 1); exit 1; }; }
2646    fi
2647
2648    test "$2" = conftest.file
2649    )
2650 then
2651    # Ok.
2652    :
2653 else
2654    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2655 Check your system clock" >&5
2656 $as_echo "$as_me: error: newly created file is older than distributed files!
2657 Check your system clock" >&2;}
2658    { (exit 1); exit 1; }; }
2659 fi
2660 { $as_echo "$as_me:$LINENO: result: yes" >&5
2661 $as_echo "yes" >&6; }
2662 test "$program_prefix" != NONE &&
2663   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2664 # Use a double $ so make ignores it.
2665 test "$program_suffix" != NONE &&
2666   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2667 # Double any \ or $.
2668 # By default was `s,x,x', remove it if useless.
2669 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2670 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2671
2672 # expand $ac_aux_dir to an absolute path
2673 am_aux_dir=`cd $ac_aux_dir && pwd`
2674
2675 if test x"${MISSING+set}" != xset; then
2676   case $am_aux_dir in
2677   *\ * | *\     *)
2678     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2679   *)
2680     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2681   esac
2682 fi
2683 # Use eval to expand $SHELL
2684 if eval "$MISSING --run true"; then
2685   am_missing_run="$MISSING --run "
2686 else
2687   am_missing_run=
2688   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2689 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2690 fi
2691
2692 if test x"${install_sh}" != xset; then
2693   case $am_aux_dir in
2694   *\ * | *\     *)
2695     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2696   *)
2697     install_sh="\${SHELL} $am_aux_dir/install-sh"
2698   esac
2699 fi
2700
2701 # Installed binaries are usually stripped using `strip' when the user
2702 # run `make install-strip'.  However `strip' might not be the right
2703 # tool to use in cross-compilation environments, therefore Automake
2704 # will honor the `STRIP' environment variable to overrule this program.
2705 if test "$cross_compiling" != no; then
2706   if test -n "$ac_tool_prefix"; then
2707   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2708 set dummy ${ac_tool_prefix}strip; ac_word=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_STRIP+set}" = set; then
2712   $as_echo_n "(cached) " >&6
2713 else
2714   if test -n "$STRIP"; then
2715   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722   for ac_exec_ext in '' $ac_executable_extensions; do
2723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2725     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 STRIP=$ac_cv_prog_STRIP
2735 if test -n "$STRIP"; then
2736   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2737 $as_echo "$STRIP" >&6; }
2738 else
2739   { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743
2744 fi
2745 if test -z "$ac_cv_prog_STRIP"; then
2746   ac_ct_STRIP=$STRIP
2747   # Extract the first word of "strip", so it can be a program name with args.
2748 set dummy strip; ac_word=$2
2749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2752   $as_echo_n "(cached) " >&6
2753 else
2754   if test -n "$ac_ct_STRIP"; then
2755   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762   for ac_exec_ext in '' $ac_executable_extensions; do
2763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764     ac_cv_prog_ac_ct_STRIP="strip"
2765     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766     break 2
2767   fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi
2773 fi
2774 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2775 if test -n "$ac_ct_STRIP"; then
2776   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2777 $as_echo "$ac_ct_STRIP" >&6; }
2778 else
2779   { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783   if test "x$ac_ct_STRIP" = x; then
2784     STRIP=":"
2785   else
2786     case $cross_compiling:$ac_tool_warned in
2787 yes:)
2788 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2790 ac_tool_warned=yes ;;
2791 esac
2792     STRIP=$ac_ct_STRIP
2793   fi
2794 else
2795   STRIP="$ac_cv_prog_STRIP"
2796 fi
2797
2798 fi
2799 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2800
2801 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2802 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2803 if test -z "$MKDIR_P"; then
2804   if test "${ac_cv_path_mkdir+set}" = set; then
2805   $as_echo_n "(cached) " >&6
2806 else
2807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812   for ac_prog in mkdir gmkdir; do
2813          for ac_exec_ext in '' $ac_executable_extensions; do
2814            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2815            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2816              'mkdir (GNU coreutils) '* | \
2817              'mkdir (coreutils) '* | \
2818              'mkdir (fileutils) '4.1*)
2819                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2820                break 3;;
2821            esac
2822          done
2823        done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828
2829   if test "${ac_cv_path_mkdir+set}" = set; then
2830     MKDIR_P="$ac_cv_path_mkdir -p"
2831   else
2832     # As a last resort, use the slow shell script.  Don't cache a
2833     # value for MKDIR_P within a source directory, because that will
2834     # break other packages using the cache if that directory is
2835     # removed, or if the value is a relative name.
2836     test -d ./--version && rmdir ./--version
2837     MKDIR_P="$ac_install_sh -d"
2838   fi
2839 fi
2840 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2841 $as_echo "$MKDIR_P" >&6; }
2842
2843 mkdir_p="$MKDIR_P"
2844 case $mkdir_p in
2845   [\\/$]* | ?:[\\/]*) ;;
2846   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2847 esac
2848
2849 for ac_prog in gawk mawk nawk awk
2850 do
2851   # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if test "${ac_cv_prog_AWK+set}" = set; then
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if test -n "$AWK"; then
2859   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866   for ac_exec_ext in '' $ac_executable_extensions; do
2867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868     ac_cv_prog_AWK="$ac_prog"
2869     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 AWK=$ac_cv_prog_AWK
2879 if test -n "$AWK"; then
2880   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2881 $as_echo "$AWK" >&6; }
2882 else
2883   { $as_echo "$as_me:$LINENO: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888   test -n "$AWK" && break
2889 done
2890
2891 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2892 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2893 set x ${MAKE-make}
2894 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2895 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2896   $as_echo_n "(cached) " >&6
2897 else
2898   cat >conftest.make <<\_ACEOF
2899 SHELL = /bin/sh
2900 all:
2901         @echo '@@@%%%=$(MAKE)=@@@%%%'
2902 _ACEOF
2903 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2904 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2905   *@@@%%%=?*=@@@%%%*)
2906     eval ac_cv_prog_make_${ac_make}_set=yes;;
2907   *)
2908     eval ac_cv_prog_make_${ac_make}_set=no;;
2909 esac
2910 rm -f conftest.make
2911 fi
2912 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2913   { $as_echo "$as_me:$LINENO: result: yes" >&5
2914 $as_echo "yes" >&6; }
2915   SET_MAKE=
2916 else
2917   { $as_echo "$as_me:$LINENO: result: no" >&5
2918 $as_echo "no" >&6; }
2919   SET_MAKE="MAKE=${MAKE-make}"
2920 fi
2921
2922 rm -rf .tst 2>/dev/null
2923 mkdir .tst 2>/dev/null
2924 if test -d .tst; then
2925   am__leading_dot=.
2926 else
2927   am__leading_dot=_
2928 fi
2929 rmdir .tst 2>/dev/null
2930
2931 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2932   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2933   # is not polluted with repeated "-I."
2934   am__isrc=' -I$(srcdir)'
2935   # test to see if srcdir already configured
2936   if test -f $srcdir/config.status; then
2937     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2938 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2939    { (exit 1); exit 1; }; }
2940   fi
2941 fi
2942
2943 # test whether we have cygpath
2944 if test -z "$CYGPATH_W"; then
2945   if (cygpath --version) >/dev/null 2>/dev/null; then
2946     CYGPATH_W='cygpath -w'
2947   else
2948     CYGPATH_W=echo
2949   fi
2950 fi
2951
2952
2953 # Define the identity of the package.
2954  PACKAGE=$ZFS_META_NAME
2955  VERSION=$ZFS_META_VERSION
2956
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE "$PACKAGE"
2960 _ACEOF
2961
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define VERSION "$VERSION"
2965 _ACEOF
2966
2967 # Some tools Automake needs.
2968
2969 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
2983 # We need awk for the "check" target.  The system "awk" is bad on
2984 # some platforms.
2985 # Always define AMTAR for backward compatibility.
2986
2987 AMTAR=${AMTAR-"${am_missing_run}tar"}
2988
2989 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2990
2991
2992
2993
2994
2995 ac_config_headers="$ac_config_headers zfs_config.h"
2996
2997
2998 # Find a good install program.  We prefer a C program (faster),
2999 # so one script is as good as another.  But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3004 # AIX /bin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # OS/2's system install, which has a completely different semantic
3010 # ./install, which can be erroneously created by make from ./install.sh.
3011 # Reject install programs that cannot install multiple files.
3012 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3013 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3014 if test -z "$INSTALL"; then
3015 if test "${ac_cv_path_install+set}" = set; then
3016   $as_echo_n "(cached) " >&6
3017 else
3018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023   # Account for people who put trailing slashes in PATH elements.
3024 case $as_dir/ in
3025   ./ | .// | /cC/* | \
3026   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3027   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3028   /usr/ucb/* ) ;;
3029   *)
3030     # OSF1 and SCO ODT 3.0 have their own names for install.
3031     # Don't use installbsd from OSF since it installs stuff as root
3032     # by default.
3033     for ac_prog in ginstall scoinst install; do
3034       for ac_exec_ext in '' $ac_executable_extensions; do
3035         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3036           if test $ac_prog = install &&
3037             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3038             # AIX install.  It has an incompatible calling convention.
3039             :
3040           elif test $ac_prog = install &&
3041             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3042             # program-specific install script used by HP pwplus--don't use.
3043             :
3044           else
3045             rm -rf conftest.one conftest.two conftest.dir
3046             echo one > conftest.one
3047             echo two > conftest.two
3048             mkdir conftest.dir
3049             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3050               test -s conftest.one && test -s conftest.two &&
3051               test -s conftest.dir/conftest.one &&
3052               test -s conftest.dir/conftest.two
3053             then
3054               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3055               break 3
3056             fi
3057           fi
3058         fi
3059       done
3060     done
3061     ;;
3062 esac
3063
3064 done
3065 IFS=$as_save_IFS
3066
3067 rm -rf conftest.one conftest.two conftest.dir
3068
3069 fi
3070   if test "${ac_cv_path_install+set}" = set; then
3071     INSTALL=$ac_cv_path_install
3072   else
3073     # As a last resort, use the slow shell script.  Don't cache a
3074     # value for INSTALL within a source directory, because that will
3075     # break other packages using the cache if that directory is
3076     # removed, or if the value is a relative name.
3077     INSTALL=$ac_install_sh
3078   fi
3079 fi
3080 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3081 $as_echo "$INSTALL" >&6; }
3082
3083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3084 # It thinks the first close brace ends the variable substitution.
3085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3086
3087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3088
3089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3090
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096 if test -n "$ac_tool_prefix"; then
3097   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if test -n "$CC"; then
3105   ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   test -z "$as_dir" && as_dir=.
3112   for ac_exec_ext in '' $ac_executable_extensions; do
3113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3115     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116     break 2
3117   fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129   { $as_echo "$as_me:$LINENO: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 fi
3135 if test -z "$ac_cv_prog_CC"; then
3136   ac_ct_CC=$CC
3137   # Extract the first word of "gcc", so it can be a program name with args.
3138 set dummy gcc; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$ac_ct_CC"; then
3145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152   for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_prog_ac_ct_CC="gcc"
3155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3168 else
3169   { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173   if test "x$ac_ct_CC" = x; then
3174     CC=""
3175   else
3176     case $cross_compiling:$ac_tool_warned in
3177 yes:)
3178 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3181 esac
3182     CC=$ac_ct_CC
3183   fi
3184 else
3185   CC="$ac_cv_prog_CC"
3186 fi
3187
3188 if test -z "$CC"; then
3189           if test -n "$ac_tool_prefix"; then
3190     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}cc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$CC"; then
3198   ac_cv_prog_CC="$CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_CC="${ac_tool_prefix}cc"
3208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222   { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227   fi
3228 fi
3229 if test -z "$CC"; then
3230   # Extract the first word of "cc", so it can be a program name with args.
3231 set dummy cc; ac_word=$2
3232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_CC+set}" = set; then
3235   $as_echo_n "(cached) " >&6
3236 else
3237   if test -n "$CC"; then
3238   ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240   ac_prog_rejected=no
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246   for ac_exec_ext in '' $ac_executable_extensions; do
3247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3249        ac_prog_rejected=yes
3250        continue
3251      fi
3252     ac_cv_prog_CC="cc"
3253     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254     break 2
3255   fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 if test $ac_prog_rejected = yes; then
3261   # We found a bogon in the path, so make sure we never use it.
3262   set dummy $ac_cv_prog_CC
3263   shift
3264   if test $# != 0; then
3265     # We chose a different compiler from the bogus one.
3266     # However, it has the same basename, so the bogon will be chosen
3267     # first if we set CC to just the basename; use the full file name.
3268     shift
3269     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3270   fi
3271 fi
3272 fi
3273 fi
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3278 else
3279   { $as_echo "$as_me:$LINENO: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283
3284 fi
3285 if test -z "$CC"; then
3286   if test -n "$ac_tool_prefix"; then
3287   for ac_prog in cl.exe
3288   do
3289     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_CC+set}" = set; then
3294   $as_echo_n "(cached) " >&6
3295 else
3296   if test -n "$CC"; then
3297   ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3307     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311 done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 CC=$ac_cv_prog_CC
3317 if test -n "$CC"; then
3318   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3320 else
3321   { $as_echo "$as_me:$LINENO: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325
3326     test -n "$CC" && break
3327   done
3328 fi
3329 if test -z "$CC"; then
3330   ac_ct_CC=$CC
3331   for ac_prog in cl.exe
3332 do
3333   # Extract the first word of "$ac_prog", so it can be a program name with args.
3334 set dummy $ac_prog; ac_word=$2
3335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3338   $as_echo_n "(cached) " >&6
3339 else
3340   if test -n "$ac_ct_CC"; then
3341   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346   IFS=$as_save_IFS
3347   test -z "$as_dir" && as_dir=.
3348   for ac_exec_ext in '' $ac_executable_extensions; do
3349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350     ac_cv_prog_ac_ct_CC="$ac_prog"
3351     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352     break 2
3353   fi
3354 done
3355 done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3363 $as_echo "$ac_ct_CC" >&6; }
3364 else
3365   { $as_echo "$as_me:$LINENO: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370   test -n "$ac_ct_CC" && break
3371 done
3372
3373   if test "x$ac_ct_CC" = x; then
3374     CC=""
3375   else
3376     case $cross_compiling:$ac_tool_warned in
3377 yes:)
3378 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380 ac_tool_warned=yes ;;
3381 esac
3382     CC=$ac_ct_CC
3383   fi
3384 fi
3385
3386 fi
3387
3388
3389 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3392 See \`config.log' for more details." >&5
3393 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3394 See \`config.log' for more details." >&2;}
3395    { (exit 1); exit 1; }; }; }
3396
3397 # Provide some information about the compiler.
3398 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3399 set X $ac_compile
3400 ac_compiler=$2
3401 { (ac_try="$ac_compiler --version >&5"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3407 $as_echo "$ac_try_echo") >&5
3408   (eval "$ac_compiler --version >&5") 2>&5
3409   ac_status=$?
3410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); }
3412 { (ac_try="$ac_compiler -v >&5"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3418 $as_echo "$ac_try_echo") >&5
3419   (eval "$ac_compiler -v >&5") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }
3423 { (ac_try="$ac_compiler -V >&5"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429 $as_echo "$ac_try_echo") >&5
3430   (eval "$ac_compiler -V >&5") 2>&5
3431   ac_status=$?
3432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }
3434
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450 ac_clean_files_save=$ac_clean_files
3451 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3452 # Try to create an executable without -o first, disregard a.out.
3453 # It will help us diagnose broken compilers, and finding out an intuition
3454 # of exeext.
3455 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3456 $as_echo_n "checking for C compiler default output file name... " >&6; }
3457 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3458
3459 # The possible output files:
3460 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3461
3462 ac_rmfiles=
3463 for ac_file in $ac_files
3464 do
3465   case $ac_file in
3466     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3468   esac
3469 done
3470 rm -f $ac_rmfiles
3471
3472 if { (ac_try="$ac_link_default"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478 $as_echo "$ac_try_echo") >&5
3479   (eval "$ac_link_default") 2>&5
3480   ac_status=$?
3481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; then
3483   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3484 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3485 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3486 # so that the user can short-circuit this test for compilers unknown to
3487 # Autoconf.
3488 for ac_file in $ac_files ''
3489 do
3490   test -f "$ac_file" || continue
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3493         ;;
3494     [ab].out )
3495         # We found the default executable, but exeext='' is most
3496         # certainly right.
3497         break;;
3498     *.* )
3499         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3500         then :; else
3501            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3502         fi
3503         # We set ac_cv_exeext here because the later test for it is not
3504         # safe: cross compilers may not add the suffix if given an `-o'
3505         # argument, so we may need to know it at that point already.
3506         # Even if this section looks crufty: it has the advantage of
3507         # actually working.
3508         break;;
3509     * )
3510         break;;
3511   esac
3512 done
3513 test "$ac_cv_exeext" = no && ac_cv_exeext=
3514
3515 else
3516   ac_file=''
3517 fi
3518
3519 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3520 $as_echo "$ac_file" >&6; }
3521 if test -z "$ac_file"; then
3522   $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3528 See \`config.log' for more details." >&5
3529 $as_echo "$as_me: error: C compiler cannot create executables
3530 See \`config.log' for more details." >&2;}
3531    { (exit 77); exit 77; }; }; }
3532 fi
3533
3534 ac_exeext=$ac_cv_exeext
3535
3536 # Check that the compiler produces executables we can run.  If not, either
3537 # the compiler is broken, or we cross compile.
3538 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3539 $as_echo_n "checking whether the C compiler works... " >&6; }
3540 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3541 # If not cross compiling, check that we can run a simple program.
3542 if test "$cross_compiling" != yes; then
3543   if { ac_try='./$ac_file'
3544   { (case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549 $as_echo "$ac_try_echo") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554     cross_compiling=no
3555   else
3556     if test "$cross_compiling" = maybe; then
3557         cross_compiling=yes
3558     else
3559         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3562 If you meant to cross compile, use \`--host'.
3563 See \`config.log' for more details." >&5
3564 $as_echo "$as_me: error: cannot run C compiled programs.
3565 If you meant to cross compile, use \`--host'.
3566 See \`config.log' for more details." >&2;}
3567    { (exit 1); exit 1; }; }; }
3568     fi
3569   fi
3570 fi
3571 { $as_echo "$as_me:$LINENO: result: yes" >&5
3572 $as_echo "yes" >&6; }
3573
3574 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3575 ac_clean_files=$ac_clean_files_save
3576 # Check that the compiler produces executables we can run.  If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3579 $as_echo_n "checking whether we are cross compiling... " >&6; }
3580 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3581 $as_echo "$cross_compiling" >&6; }
3582
3583 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { (ac_try="$ac_link"
3586 case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591 $as_echo "$ac_try_echo") >&5
3592   (eval "$ac_link") 2>&5
3593   ac_status=$?
3594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; then
3596   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3599 # `rm'.
3600 for ac_file in conftest.exe conftest conftest.*; do
3601   test -f "$ac_file" || continue
3602   case $ac_file in
3603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605           break;;
3606     * ) break;;
3607   esac
3608 done
3609 else
3610   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details." >&5
3614 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details." >&2;}
3616    { (exit 1); exit 1; }; }; }
3617 fi
3618
3619 rm -f conftest$ac_cv_exeext
3620 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3621 $as_echo "$ac_cv_exeext" >&6; }
3622
3623 rm -f conftest.$ac_ext
3624 EXEEXT=$ac_cv_exeext
3625 ac_exeext=$EXEEXT
3626 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3627 $as_echo_n "checking for suffix of object files... " >&6; }
3628 if test "${ac_cv_objext+set}" = set; then
3629   $as_echo_n "(cached) " >&6
3630 else
3631   cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest.o conftest.obj
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654   (eval "$ac_compile") 2>&5
3655   ac_status=$?
3656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); }; then
3658   for ac_file in conftest.o conftest.obj conftest.*; do
3659   test -f "$ac_file" || continue;
3660   case $ac_file in
3661     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3662     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3663        break;;
3664   esac
3665 done
3666 else
3667   $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3673 See \`config.log' for more details." >&5
3674 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3675 See \`config.log' for more details." >&2;}
3676    { (exit 1); exit 1; }; }; }
3677 fi
3678
3679 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3680 fi
3681 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3682 $as_echo "$ac_cv_objext" >&6; }
3683 OBJEXT=$ac_cv_objext
3684 ac_objext=$OBJEXT
3685 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3686 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3687 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3688   $as_echo_n "(cached) " >&6
3689 else
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696
3697 int
3698 main ()
3699 {
3700 #ifndef __GNUC__
3701        choke me
3702 #endif
3703
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3710 case "(($ac_try" in
3711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712   *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716   (eval "$ac_compile") 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } && {
3723          test -z "$ac_c_werror_flag" ||
3724          test ! -s conftest.err
3725        } && test -s conftest.$ac_objext; then
3726   ac_compiler_gnu=yes
3727 else
3728   $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731         ac_compiler_gnu=no
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3736
3737 fi
3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741   GCC=yes
3742 else
3743   GCC=
3744 fi
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if test "${ac_cv_prog_cc_g+set}" = set; then
3750   $as_echo_n "(cached) " >&6
3751 else
3752   ac_save_c_werror_flag=$ac_c_werror_flag
3753    ac_c_werror_flag=yes
3754    ac_cv_prog_cc_g=no
3755    CFLAGS="-g"
3756    cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762
3763 int
3764 main ()
3765 {
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 rm -f conftest.$ac_objext
3772 if { (ac_try="$ac_compile"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3778 $as_echo "$ac_try_echo") >&5
3779   (eval "$ac_compile") 2>conftest.er1
3780   ac_status=$?
3781   grep -v '^ *+' conftest.er1 >conftest.err
3782   rm -f conftest.er1
3783   cat conftest.err >&5
3784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); } && {
3786          test -z "$ac_c_werror_flag" ||
3787          test ! -s conftest.err
3788        } && test -s conftest.$ac_objext; then
3789   ac_cv_prog_cc_g=yes
3790 else
3791   $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794         CFLAGS=""
3795       cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h.  */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h.  */
3801
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (ac_try="$ac_compile"
3812 case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817 $as_echo "$ac_try_echo") >&5
3818   (eval "$ac_compile") 2>conftest.er1
3819   ac_status=$?
3820   grep -v '^ *+' conftest.er1 >conftest.err
3821   rm -f conftest.er1
3822   cat conftest.err >&5
3823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); } && {
3825          test -z "$ac_c_werror_flag" ||
3826          test ! -s conftest.err
3827        } && test -s conftest.$ac_objext; then
3828   :
3829 else
3830   $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833         ac_c_werror_flag=$ac_save_c_werror_flag
3834          CFLAGS="-g"
3835          cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h.  */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h.  */
3841
3842 int
3843 main ()
3844 {
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3857 $as_echo "$ac_try_echo") >&5
3858   (eval "$ac_compile") 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } && {
3865          test -z "$ac_c_werror_flag" ||
3866          test ! -s conftest.err
3867        } && test -s conftest.$ac_objext; then
3868   ac_cv_prog_cc_g=yes
3869 else
3870   $as_echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873
3874 fi
3875
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 fi
3878
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 fi
3881
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883    ac_c_werror_flag=$ac_save_c_werror_flag
3884 fi
3885 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3886 $as_echo "$ac_cv_prog_cc_g" >&6; }
3887 if test "$ac_test_CFLAGS" = set; then
3888   CFLAGS=$ac_save_CFLAGS
3889 elif test $ac_cv_prog_cc_g = yes; then
3890   if test "$GCC" = yes; then
3891     CFLAGS="-g -O2"
3892   else
3893     CFLAGS="-g"
3894   fi
3895 else
3896   if test "$GCC" = yes; then
3897     CFLAGS="-O2"
3898   else
3899     CFLAGS=
3900   fi
3901 fi
3902 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3903 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3904 if test "${ac_cv_prog_cc_c89+set}" = set; then
3905   $as_echo_n "(cached) " >&6
3906 else
3907   ac_cv_prog_cc_c89=no
3908 ac_save_CC=$CC
3909 cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915 #include <stdarg.h>
3916 #include <stdio.h>
3917 #include <sys/types.h>
3918 #include <sys/stat.h>
3919 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3920 struct buf { int x; };
3921 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922 static char *e (p, i)
3923      char **p;
3924      int i;
3925 {
3926   return p[i];
3927 }
3928 static char *f (char * (*g) (char **, int), char **p, ...)
3929 {
3930   char *s;
3931   va_list v;
3932   va_start (v,p);
3933   s = g (p, va_arg (v,int));
3934   va_end (v);
3935   return s;
3936 }
3937
3938 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3939    function prototypes and stuff, but not '\xHH' hex character constants.
3940    These don't provoke an error unfortunately, instead are silently treated
3941    as 'x'.  The following induces an error, until -std is added to get
3942    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3943    array size at least.  It's necessary to write '\x00'==0 to get something
3944    that's true only with -std.  */
3945 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3946
3947 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948    inside strings and character constants.  */
3949 #define FOO(x) 'x'
3950 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3951
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3956 int argc;
3957 char **argv;
3958 int
3959 main ()
3960 {
3961 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3968 do
3969   CC="$ac_save_CC $ac_arg"
3970   rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977 $as_echo "$ac_try_echo") >&5
3978   (eval "$ac_compile") 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } && {
3985          test -z "$ac_c_werror_flag" ||
3986          test ! -s conftest.err
3987        } && test -s conftest.$ac_objext; then
3988   ac_cv_prog_cc_c89=$ac_arg
3989 else
3990   $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993
3994 fi
3995
3996 rm -f core conftest.err conftest.$ac_objext
3997   test "x$ac_cv_prog_cc_c89" != "xno" && break
3998 done
3999 rm -f conftest.$ac_ext
4000 CC=$ac_save_CC
4001
4002 fi
4003 # AC_CACHE_VAL
4004 case "x$ac_cv_prog_cc_c89" in
4005   x)
4006     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4007 $as_echo "none needed" >&6; } ;;
4008   xno)
4009     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4010 $as_echo "unsupported" >&6; } ;;
4011   *)
4012     CC="$CC $ac_cv_prog_cc_c89"
4013     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4014 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4015 esac
4016
4017
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 DEPDIR="${am__leading_dot}deps"
4024
4025 ac_config_commands="$ac_config_commands depfiles"
4026
4027
4028 am_make=${MAKE-make}
4029 cat > confinc << 'END'
4030 am__doit:
4031         @echo this is the am__doit target
4032 .PHONY: am__doit
4033 END
4034 # If we don't find an include directive, just comment out the code.
4035 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4036 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4037 am__include="#"
4038 am__quote=
4039 _am_result=none
4040 # First try GNU make style include.
4041 echo "include confinc" > confmf
4042 # Ignore all kinds of additional output from `make'.
4043 case `$am_make -s -f confmf 2> /dev/null` in #(
4044 *the\ am__doit\ target*)
4045   am__include=include
4046   am__quote=
4047   _am_result=GNU
4048   ;;
4049 esac
4050 # Now try BSD make style include.
4051 if test "$am__include" = "#"; then
4052    echo '.include "confinc"' > confmf
4053    case `$am_make -s -f confmf 2> /dev/null` in #(
4054    *the\ am__doit\ target*)
4055      am__include=.include
4056      am__quote="\""
4057      _am_result=BSD
4058      ;;
4059    esac
4060 fi
4061
4062
4063 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4064 $as_echo "$_am_result" >&6; }
4065 rm -f confinc confmf
4066
4067 # Check whether --enable-dependency-tracking was given.
4068 if test "${enable_dependency_tracking+set}" = set; then
4069   enableval=$enable_dependency_tracking;
4070 fi
4071
4072 if test "x$enable_dependency_tracking" != xno; then
4073   am_depcomp="$ac_aux_dir/depcomp"
4074   AMDEPBACKSLASH='\'
4075 fi
4076  if test "x$enable_dependency_tracking" != xno; then
4077   AMDEP_TRUE=
4078   AMDEP_FALSE='#'
4079 else
4080   AMDEP_TRUE='#'
4081   AMDEP_FALSE=
4082 fi
4083
4084
4085
4086 depcc="$CC"   am_compiler_list=
4087
4088 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4089 $as_echo_n "checking dependency style of $depcc... " >&6; }
4090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094   # We make a subdir and do the tests there.  Otherwise we can end up
4095   # making bogus files that we don't know about and never remove.  For
4096   # instance it was reported that on HP-UX the gcc test will end up
4097   # making a dummy file named `D' -- because `-MD' means `put the output
4098   # in D'.
4099   mkdir conftest.dir
4100   # Copy depcomp to subdir because otherwise we won't find it if we're
4101   # using a relative directory.
4102   cp "$am_depcomp" conftest.dir
4103   cd conftest.dir
4104   # We will build objects and dependencies in a subdirectory because
4105   # it helps to detect inapplicable dependency modes.  For instance
4106   # both Tru64's cc and ICC support -MD to output dependencies as a
4107   # side effect of compilation, but ICC will put the dependencies in
4108   # the current directory while Tru64 will put them in the object
4109   # directory.
4110   mkdir sub
4111
4112   am_cv_CC_dependencies_compiler_type=none
4113   if test "$am_compiler_list" = ""; then
4114      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4115   fi
4116   am__universal=false
4117   case " $depcc " in #(
4118      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4119      esac
4120
4121   for depmode in $am_compiler_list; do
4122     # Setup a source with many dependencies, because some compilers
4123     # like to wrap large dependency lists on column 80 (with \), and
4124     # we should not choose a depcomp mode which is confused by this.
4125     #
4126     # We need to recreate these files for each test, as the compiler may
4127     # overwrite some of them when testing with obscure command lines.
4128     # This happens at least with the AIX C compiler.
4129     : > sub/conftest.c
4130     for i in 1 2 3 4 5 6; do
4131       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4132       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4133       # Solaris 8's {/usr,}/bin/sh.
4134       touch sub/conftst$i.h
4135     done
4136     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4137
4138     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4139     # mode.  It turns out that the SunPro C++ compiler does not properly
4140     # handle `-M -o', and we need to detect this.  Also, some Intel
4141     # versions had trouble with output in subdirs
4142     am__obj=sub/conftest.${OBJEXT-o}
4143     am__minus_obj="-o $am__obj"
4144     case $depmode in
4145     gcc)
4146       # This depmode causes a compiler race in universal mode.
4147       test "$am__universal" = false || continue
4148       ;;
4149     nosideeffect)
4150       # after this tag, mechanisms are not by side-effect, so they'll
4151       # only be used when explicitly requested
4152       if test "x$enable_dependency_tracking" = xyes; then
4153         continue
4154       else
4155         break
4156       fi
4157       ;;
4158     msvisualcpp | msvcmsys)
4159       # This compiler won't grok `-c -o', but also, the minuso test has
4160       # not run yet.  These depmodes are late enough in the game, and
4161       # so weak that their functioning should not be impacted.
4162       am__obj=conftest.${OBJEXT-o}
4163       am__minus_obj=
4164       ;;
4165     none) break ;;
4166     esac
4167     if depmode=$depmode \
4168        source=sub/conftest.c object=$am__obj \
4169        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4170        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4171          >/dev/null 2>conftest.err &&
4172        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4173        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4174        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4175        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4176       # icc doesn't choke on unknown options, it will just issue warnings
4177       # or remarks (even with -Werror).  So we grep stderr for any message
4178       # that says an option was ignored or not supported.
4179       # When given -MP, icc 7.0 and 7.1 complain thusly:
4180       #   icc: Command line warning: ignoring option '-M'; no argument required
4181       # The diagnosis changed in icc 8.0:
4182       #   icc: Command line remark: option '-MP' not supported
4183       if (grep 'ignoring option' conftest.err ||
4184           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4185         am_cv_CC_dependencies_compiler_type=$depmode
4186         break
4187       fi
4188     fi
4189   done
4190
4191   cd ..
4192   rm -rf conftest.dir
4193 else
4194   am_cv_CC_dependencies_compiler_type=none
4195 fi
4196
4197 fi
4198 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4199 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4200 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4201
4202  if
4203   test "x$enable_dependency_tracking" != xno \
4204   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4205   am__fastdepCC_TRUE=
4206   am__fastdepCC_FALSE='#'
4207 else
4208   am__fastdepCC_TRUE='#'
4209   am__fastdepCC_FALSE=
4210 fi
4211
4212
4213 case `pwd` in
4214   *\ * | *\     *)
4215     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4216 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4217 esac
4218
4219
4220
4221 macro_version='2.2.6b'
4222 macro_revision='1.3017'
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 ltmain="$ac_aux_dir/ltmain.sh"
4237
4238 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4239 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4240 if test "${ac_cv_path_SED+set}" = set; then
4241   $as_echo_n "(cached) " >&6
4242 else
4243             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4244      for ac_i in 1 2 3 4 5 6 7; do
4245        ac_script="$ac_script$as_nl$ac_script"
4246      done
4247      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4248      $as_unset ac_script || ac_script=
4249      if test -z "$SED"; then
4250   ac_path_SED_found=false
4251   # Loop through the user's path and test for each of PROGNAME-LIST
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_prog in sed gsed; do
4258     for ac_exec_ext in '' $ac_executable_extensions; do
4259       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4260       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4261 # Check for GNU ac_path_SED and select it if it is found.
4262   # Check for GNU $ac_path_SED
4263 case `"$ac_path_SED" --version 2>&1` in
4264 *GNU*)
4265   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4266 *)
4267   ac_count=0
4268   $as_echo_n 0123456789 >"conftest.in"
4269   while :
4270   do
4271     cat "conftest.in" "conftest.in" >"conftest.tmp"
4272     mv "conftest.tmp" "conftest.in"
4273     cp "conftest.in" "conftest.nl"
4274     $as_echo '' >> "conftest.nl"
4275     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277     ac_count=`expr $ac_count + 1`
4278     if test $ac_count -gt ${ac_path_SED_max-0}; then
4279       # Best one so far, save it but keep looking for a better one
4280       ac_cv_path_SED="$ac_path_SED"
4281       ac_path_SED_max=$ac_count
4282     fi
4283     # 10*(2^10) chars as input seems more than enough
4284     test $ac_count -gt 10 && break
4285   done
4286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 esac
4288
4289       $ac_path_SED_found && break 3
4290     done
4291   done
4292 done
4293 IFS=$as_save_IFS
4294   if test -z "$ac_cv_path_SED"; then
4295     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4296 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4297    { (exit 1); exit 1; }; }
4298   fi
4299 else
4300   ac_cv_path_SED=$SED
4301 fi
4302
4303 fi
4304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4305 $as_echo "$ac_cv_path_SED" >&6; }
4306  SED="$ac_cv_path_SED"
4307   rm -f conftest.sed
4308
4309 test -z "$SED" && SED=sed
4310 Xsed="$SED -e 1s/^X//"
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4323 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4324 if test "${ac_cv_path_GREP+set}" = set; then
4325   $as_echo_n "(cached) " >&6
4326 else
4327   if test -z "$GREP"; then
4328   ac_path_GREP_found=false
4329   # Loop through the user's path and test for each of PROGNAME-LIST
4330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335   for ac_prog in grep ggrep; do
4336     for ac_exec_ext in '' $ac_executable_extensions; do
4337       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4338       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4339 # Check for GNU ac_path_GREP and select it if it is found.
4340   # Check for GNU $ac_path_GREP
4341 case `"$ac_path_GREP" --version 2>&1` in
4342 *GNU*)
4343   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4344 *)
4345   ac_count=0
4346   $as_echo_n 0123456789 >"conftest.in"
4347   while :
4348   do
4349     cat "conftest.in" "conftest.in" >"conftest.tmp"
4350     mv "conftest.tmp" "conftest.in"
4351     cp "conftest.in" "conftest.nl"
4352     $as_echo 'GREP' >> "conftest.nl"
4353     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355     ac_count=`expr $ac_count + 1`
4356     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4357       # Best one so far, save it but keep looking for a better one
4358       ac_cv_path_GREP="$ac_path_GREP"
4359       ac_path_GREP_max=$ac_count
4360     fi
4361     # 10*(2^10) chars as input seems more than enough
4362     test $ac_count -gt 10 && break
4363   done
4364   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365 esac
4366
4367       $ac_path_GREP_found && break 3
4368     done
4369   done
4370 done
4371 IFS=$as_save_IFS
4372   if test -z "$ac_cv_path_GREP"; then
4373     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4374 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4375    { (exit 1); exit 1; }; }
4376   fi
4377 else
4378   ac_cv_path_GREP=$GREP
4379 fi
4380
4381 fi
4382 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4383 $as_echo "$ac_cv_path_GREP" >&6; }
4384  GREP="$ac_cv_path_GREP"
4385
4386
4387 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4388 $as_echo_n "checking for egrep... " >&6; }
4389 if test "${ac_cv_path_EGREP+set}" = set; then
4390   $as_echo_n "(cached) " >&6
4391 else
4392   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4393    then ac_cv_path_EGREP="$GREP -E"
4394    else
4395      if test -z "$EGREP"; then
4396   ac_path_EGREP_found=false
4397   # Loop through the user's path and test for each of PROGNAME-LIST
4398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400 do
4401   IFS=$as_save_IFS
4402   test -z "$as_dir" && as_dir=.
4403   for ac_prog in egrep; do
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4406       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4407 # Check for GNU ac_path_EGREP and select it if it is found.
4408   # Check for GNU $ac_path_EGREP
4409 case `"$ac_path_EGREP" --version 2>&1` in
4410 *GNU*)
4411   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4412 *)
4413   ac_count=0
4414   $as_echo_n 0123456789 >"conftest.in"
4415   while :
4416   do
4417     cat "conftest.in" "conftest.in" >"conftest.tmp"
4418     mv "conftest.tmp" "conftest.in"
4419     cp "conftest.in" "conftest.nl"
4420     $as_echo 'EGREP' >> "conftest.nl"
4421     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423     ac_count=`expr $ac_count + 1`
4424     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4425       # Best one so far, save it but keep looking for a better one
4426       ac_cv_path_EGREP="$ac_path_EGREP"
4427       ac_path_EGREP_max=$ac_count
4428     fi
4429     # 10*(2^10) chars as input seems more than enough
4430     test $ac_count -gt 10 && break
4431   done
4432   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433 esac
4434
4435       $ac_path_EGREP_found && break 3
4436     done
4437   done
4438 done
4439 IFS=$as_save_IFS
4440   if test -z "$ac_cv_path_EGREP"; then
4441     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443    { (exit 1); exit 1; }; }
4444   fi
4445 else
4446   ac_cv_path_EGREP=$EGREP
4447 fi
4448
4449    fi
4450 fi
4451 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453  EGREP="$ac_cv_path_EGREP"
4454
4455
4456 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4457 $as_echo_n "checking for fgrep... " >&6; }
4458 if test "${ac_cv_path_FGREP+set}" = set; then
4459   $as_echo_n "(cached) " >&6
4460 else
4461   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4462    then ac_cv_path_FGREP="$GREP -F"
4463    else
4464      if test -z "$FGREP"; then
4465   ac_path_FGREP_found=false
4466   # Loop through the user's path and test for each of PROGNAME-LIST
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_prog in fgrep; do
4473     for ac_exec_ext in '' $ac_executable_extensions; do
4474       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4475       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4476 # Check for GNU ac_path_FGREP and select it if it is found.
4477   # Check for GNU $ac_path_FGREP
4478 case `"$ac_path_FGREP" --version 2>&1` in
4479 *GNU*)
4480   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4481 *)
4482   ac_count=0
4483   $as_echo_n 0123456789 >"conftest.in"
4484   while :
4485   do
4486     cat "conftest.in" "conftest.in" >"conftest.tmp"
4487     mv "conftest.tmp" "conftest.in"
4488     cp "conftest.in" "conftest.nl"
4489     $as_echo 'FGREP' >> "conftest.nl"
4490     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492     ac_count=`expr $ac_count + 1`
4493     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4494       # Best one so far, save it but keep looking for a better one
4495       ac_cv_path_FGREP="$ac_path_FGREP"
4496       ac_path_FGREP_max=$ac_count
4497     fi
4498     # 10*(2^10) chars as input seems more than enough
4499     test $ac_count -gt 10 && break
4500   done
4501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502 esac
4503
4504       $ac_path_FGREP_found && break 3
4505     done
4506   done
4507 done
4508 IFS=$as_save_IFS
4509   if test -z "$ac_cv_path_FGREP"; then
4510     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4511 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4512    { (exit 1); exit 1; }; }
4513   fi
4514 else
4515   ac_cv_path_FGREP=$FGREP
4516 fi
4517
4518    fi
4519 fi
4520 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4521 $as_echo "$ac_cv_path_FGREP" >&6; }
4522  FGREP="$ac_cv_path_FGREP"
4523
4524
4525 test -z "$GREP" && GREP=grep
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545 # Check whether --with-gnu-ld was given.
4546 if test "${with_gnu_ld+set}" = set; then
4547   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4548 else
4549   with_gnu_ld=no
4550 fi
4551
4552 ac_prog=ld
4553 if test "$GCC" = yes; then
4554   # Check if gcc -print-prog-name=ld gives a path.
4555   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4556 $as_echo_n "checking for ld used by $CC... " >&6; }
4557   case $host in
4558   *-*-mingw*)
4559     # gcc leaves a trailing carriage return which upsets mingw
4560     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4561   *)
4562     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4563   esac
4564   case $ac_prog in
4565     # Accept absolute paths.
4566     [\\/]* | ?:[\\/]*)
4567       re_direlt='/[^/][^/]*/\.\./'
4568       # Canonicalize the pathname of ld
4569       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4570       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4571         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4572       done
4573       test -z "$LD" && LD="$ac_prog"
4574       ;;
4575   "")
4576     # If it fails, then pretend we aren't using GCC.
4577     ac_prog=ld
4578     ;;
4579   *)
4580     # If it is relative, then search for the first ld in PATH.
4581     with_gnu_ld=unknown
4582     ;;
4583   esac
4584 elif test "$with_gnu_ld" = yes; then
4585   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4586 $as_echo_n "checking for GNU ld... " >&6; }
4587 else
4588   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4589 $as_echo_n "checking for non-GNU ld... " >&6; }
4590 fi
4591 if test "${lt_cv_path_LD+set}" = set; then
4592   $as_echo_n "(cached) " >&6
4593 else
4594   if test -z "$LD"; then
4595   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4596   for ac_dir in $PATH; do
4597     IFS="$lt_save_ifs"
4598     test -z "$ac_dir" && ac_dir=.
4599     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4600       lt_cv_path_LD="$ac_dir/$ac_prog"
4601       # Check to see if the program is GNU ld.  I'd rather use --version,
4602       # but apparently some variants of GNU ld only accept -v.
4603       # Break only if it was the GNU/non-GNU ld that we prefer.
4604       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4605       *GNU* | *'with BFD'*)
4606         test "$with_gnu_ld" != no && break
4607         ;;
4608       *)
4609         test "$with_gnu_ld" != yes && break
4610         ;;
4611       esac
4612     fi
4613   done
4614   IFS="$lt_save_ifs"
4615 else
4616   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4617 fi
4618 fi
4619
4620 LD="$lt_cv_path_LD"
4621 if test -n "$LD"; then
4622   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4623 $as_echo "$LD" >&6; }
4624 else
4625   { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4629 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4630    { (exit 1); exit 1; }; }
4631 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4632 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4633 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4634   $as_echo_n "(cached) " >&6
4635 else
4636   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4637 case `$LD -v 2>&1 </dev/null` in
4638 *GNU* | *'with BFD'*)
4639   lt_cv_prog_gnu_ld=yes
4640   ;;
4641 *)
4642   lt_cv_prog_gnu_ld=no
4643   ;;
4644 esac
4645 fi
4646 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4647 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4648 with_gnu_ld=$lt_cv_prog_gnu_ld
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4659 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4660 if test "${lt_cv_path_NM+set}" = set; then
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$NM"; then
4664   # Let the user override the test.
4665   lt_cv_path_NM="$NM"
4666 else
4667   lt_nm_to_check="${ac_tool_prefix}nm"
4668   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4669     lt_nm_to_check="$lt_nm_to_check nm"
4670   fi
4671   for lt_tmp_nm in $lt_nm_to_check; do
4672     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4673     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4674       IFS="$lt_save_ifs"
4675       test -z "$ac_dir" && ac_dir=.
4676       tmp_nm="$ac_dir/$lt_tmp_nm"
4677       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4678         # Check to see if the nm accepts a BSD-compat flag.
4679         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4680         #   nm: unknown option "B" ignored
4681         # Tru64's nm complains that /dev/null is an invalid object file
4682         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4683         */dev/null* | *'Invalid file or object type'*)
4684           lt_cv_path_NM="$tmp_nm -B"
4685           break
4686           ;;
4687         *)
4688           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4689           */dev/null*)
4690             lt_cv_path_NM="$tmp_nm -p"
4691             break
4692             ;;
4693           *)
4694             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695             continue # so that we can try to find one that supports BSD flags
4696             ;;
4697           esac
4698           ;;
4699         esac
4700       fi
4701     done
4702     IFS="$lt_save_ifs"
4703   done
4704   : ${lt_cv_path_NM=no}
4705 fi
4706 fi
4707 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4708 $as_echo "$lt_cv_path_NM" >&6; }
4709 if test "$lt_cv_path_NM" != "no"; then
4710   NM="$lt_cv_path_NM"
4711 else
4712   # Didn't find any BSD compatible name lister, look for dumpbin.
4713   if test -n "$ac_tool_prefix"; then
4714   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4715   do
4716     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4721   $as_echo_n "(cached) " >&6
4722 else
4723   if test -n "$DUMPBIN"; then
4724   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4734     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 DUMPBIN=$ac_cv_prog_DUMPBIN
4744 if test -n "$DUMPBIN"; then
4745   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4746 $as_echo "$DUMPBIN" >&6; }
4747 else
4748   { $as_echo "$as_me:$LINENO: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753     test -n "$DUMPBIN" && break
4754   done
4755 fi
4756 if test -z "$DUMPBIN"; then
4757   ac_ct_DUMPBIN=$DUMPBIN
4758   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4759 do
4760   # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if test -n "$ac_ct_DUMPBIN"; then
4768   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775   for ac_exec_ext in '' $ac_executable_extensions; do
4776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4788 if test -n "$ac_ct_DUMPBIN"; then
4789   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4790 $as_echo "$ac_ct_DUMPBIN" >&6; }
4791 else
4792   { $as_echo "$as_me:$LINENO: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796
4797   test -n "$ac_ct_DUMPBIN" && break
4798 done
4799
4800   if test "x$ac_ct_DUMPBIN" = x; then
4801     DUMPBIN=":"
4802   else
4803     case $cross_compiling:$ac_tool_warned in
4804 yes:)
4805 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned=yes ;;
4808 esac
4809     DUMPBIN=$ac_ct_DUMPBIN
4810   fi
4811 fi
4812
4813
4814   if test "$DUMPBIN" != ":"; then
4815     NM="$DUMPBIN"
4816   fi
4817 fi
4818 test -z "$NM" && NM=nm
4819
4820
4821
4822
4823
4824
4825 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4826 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4827 if test "${lt_cv_nm_interface+set}" = set; then
4828   $as_echo_n "(cached) " >&6
4829 else
4830   lt_cv_nm_interface="BSD nm"
4831   echo "int some_variable = 0;" > conftest.$ac_ext
4832   (eval echo "\"\$as_me:4832: $ac_compile\"" >&5)
4833   (eval "$ac_compile" 2>conftest.err)
4834   cat conftest.err >&5
4835   (eval echo "\"\$as_me:4835: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4836   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4837   cat conftest.err >&5
4838   (eval echo "\"\$as_me:4838: output\"" >&5)
4839   cat conftest.out >&5
4840   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4841     lt_cv_nm_interface="MS dumpbin"
4842   fi
4843   rm -f conftest*
4844 fi
4845 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4846 $as_echo "$lt_cv_nm_interface" >&6; }
4847
4848 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4849 $as_echo_n "checking whether ln -s works... " >&6; }
4850 LN_S=$as_ln_s
4851 if test "$LN_S" = "ln -s"; then
4852   { $as_echo "$as_me:$LINENO: result: yes" >&5
4853 $as_echo "yes" >&6; }
4854 else
4855   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4856 $as_echo "no, using $LN_S" >&6; }
4857 fi
4858
4859 # find the maximum length of command line arguments
4860 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4861 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4862 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4863   $as_echo_n "(cached) " >&6
4864 else
4865     i=0
4866   teststring="ABCD"
4867
4868   case $build_os in
4869   msdosdjgpp*)
4870     # On DJGPP, this test can blow up pretty badly due to problems in libc
4871     # (any single argument exceeding 2000 bytes causes a buffer overrun
4872     # during glob expansion).  Even if it were fixed, the result of this
4873     # check would be larger than it should be.
4874     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4875     ;;
4876
4877   gnu*)
4878     # Under GNU Hurd, this test is not required because there is
4879     # no limit to the length of command line arguments.
4880     # Libtool will interpret -1 as no limit whatsoever
4881     lt_cv_sys_max_cmd_len=-1;
4882     ;;
4883
4884   cygwin* | mingw* | cegcc*)
4885     # On Win9x/ME, this test blows up -- it succeeds, but takes
4886     # about 5 minutes as the teststring grows exponentially.
4887     # Worse, since 9x/ME are not pre-emptively multitasking,
4888     # you end up with a "frozen" computer, even though with patience
4889     # the test eventually succeeds (with a max line length of 256k).
4890     # Instead, let's just punt: use the minimum linelength reported by
4891     # all of the supported platforms: 8192 (on NT/2K/XP).
4892     lt_cv_sys_max_cmd_len=8192;
4893     ;;
4894
4895   amigaos*)
4896     # On AmigaOS with pdksh, this test takes hours, literally.
4897     # So we just punt and use a minimum line length of 8192.
4898     lt_cv_sys_max_cmd_len=8192;
4899     ;;
4900
4901   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4902     # This has been around since 386BSD, at least.  Likely further.
4903     if test -x /sbin/sysctl; then
4904       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4905     elif test -x /usr/sbin/sysctl; then
4906       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4907     else
4908       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4909     fi
4910     # And add a safety zone
4911     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4912     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4913     ;;
4914
4915   interix*)
4916     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4917     lt_cv_sys_max_cmd_len=196608
4918     ;;
4919
4920   osf*)
4921     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4922     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4923     # nice to cause kernel panics so lets avoid the loop below.
4924     # First set a reasonable default.
4925     lt_cv_sys_max_cmd_len=16384
4926     #
4927     if test -x /sbin/sysconfig; then
4928       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4929         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4930       esac
4931     fi
4932     ;;
4933   sco3.2v5*)
4934     lt_cv_sys_max_cmd_len=102400
4935     ;;
4936   sysv5* | sco5v6* | sysv4.2uw2*)
4937     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4938     if test -n "$kargmax"; then
4939       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4940     else
4941       lt_cv_sys_max_cmd_len=32768
4942     fi
4943     ;;
4944   *)
4945     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4946     if test -n "$lt_cv_sys_max_cmd_len"; then
4947       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4948       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4949     else
4950       # Make teststring a little bigger before we do anything with it.
4951       # a 1K string should be a reasonable start.
4952       for i in 1 2 3 4 5 6 7 8 ; do
4953         teststring=$teststring$teststring
4954       done
4955       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4956       # If test is not a shell built-in, we'll probably end up computing a
4957       # maximum length that is only half of the actual maximum length, but
4958       # we can't tell.
4959       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4960                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4961               test $i != 17 # 1/2 MB should be enough
4962       do
4963         i=`expr $i + 1`
4964         teststring=$teststring$teststring
4965       done
4966       # Only check the string length outside the loop.
4967       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4968       teststring=
4969       # Add a significant safety factor because C++ compilers can tack on
4970       # massive amounts of additional arguments before passing them to the
4971       # linker.  It appears as though 1/2 is a usable value.
4972       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4973     fi
4974     ;;
4975   esac
4976
4977 fi
4978
4979 if test -n $lt_cv_sys_max_cmd_len ; then
4980   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4981 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4982 else
4983   { $as_echo "$as_me:$LINENO: result: none" >&5
4984 $as_echo "none" >&6; }
4985 fi
4986 max_cmd_len=$lt_cv_sys_max_cmd_len
4987
4988
4989
4990
4991
4992
4993 : ${CP="cp -f"}
4994 : ${MV="mv -f"}
4995 : ${RM="rm -f"}
4996
4997 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4998 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4999 # Try some XSI features
5000 xsi_shell=no
5001 ( _lt_dummy="a/b/c"
5002   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5003       = c,a/b,, \
5004     && eval 'test $(( 1 + 1 )) -eq 2 \
5005     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5006   && xsi_shell=yes
5007 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5008 $as_echo "$xsi_shell" >&6; }
5009
5010
5011 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5012 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5013 lt_shell_append=no
5014 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5015     >/dev/null 2>&1 \
5016   && lt_shell_append=yes
5017 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5018 $as_echo "$lt_shell_append" >&6; }
5019
5020
5021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5022   lt_unset=unset
5023 else
5024   lt_unset=false
5025 fi
5026
5027
5028
5029
5030
5031 # test EBCDIC or ASCII
5032 case `echo X|tr X '\101'` in
5033  A) # ASCII based system
5034     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5035   lt_SP2NL='tr \040 \012'
5036   lt_NL2SP='tr \015\012 \040\040'
5037   ;;
5038  *) # EBCDIC based system
5039   lt_SP2NL='tr \100 \n'
5040   lt_NL2SP='tr \r\n \100\100'
5041   ;;
5042 esac
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5053 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5054 if test "${lt_cv_ld_reload_flag+set}" = set; then
5055   $as_echo_n "(cached) " >&6
5056 else
5057   lt_cv_ld_reload_flag='-r'
5058 fi
5059 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5060 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5061 reload_flag=$lt_cv_ld_reload_flag
5062 case $reload_flag in
5063 "" | " "*) ;;
5064 *) reload_flag=" $reload_flag" ;;
5065 esac
5066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5067 case $host_os in
5068   darwin*)
5069     if test "$GCC" = yes; then
5070       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5071     else
5072       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073     fi
5074     ;;
5075 esac
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 if test -n "$ac_tool_prefix"; then
5086   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test -n "$OBJDUMP"; then
5094   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101   for ac_exec_ext in '' $ac_executable_extensions; do
5102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5104     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 OBJDUMP=$ac_cv_prog_OBJDUMP
5114 if test -n "$OBJDUMP"; then
5115   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5116 $as_echo "$OBJDUMP" >&6; }
5117 else
5118   { $as_echo "$as_me:$LINENO: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123 fi
5124 if test -z "$ac_cv_prog_OBJDUMP"; then
5125   ac_ct_OBJDUMP=$OBJDUMP
5126   # Extract the first word of "objdump", so it can be a program name with args.
5127 set dummy objdump; ac_word=$2
5128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -n "$ac_ct_OBJDUMP"; then
5134   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141   for ac_exec_ext in '' $ac_executable_extensions; do
5142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5144     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154 if test -n "$ac_ct_OBJDUMP"; then
5155   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5156 $as_echo "$ac_ct_OBJDUMP" >&6; }
5157 else
5158   { $as_echo "$as_me:$LINENO: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162   if test "x$ac_ct_OBJDUMP" = x; then
5163     OBJDUMP="false"
5164   else
5165     case $cross_compiling:$ac_tool_warned in
5166 yes:)
5167 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5170 esac
5171     OBJDUMP=$ac_ct_OBJDUMP
5172   fi
5173 else
5174   OBJDUMP="$ac_cv_prog_OBJDUMP"
5175 fi
5176
5177 test -z "$OBJDUMP" && OBJDUMP=objdump
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5188 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5189 if test "${lt_cv_deplibs_check_method+set}" = set; then
5190   $as_echo_n "(cached) " >&6
5191 else
5192   lt_cv_file_magic_cmd='$MAGIC_CMD'
5193 lt_cv_file_magic_test_file=
5194 lt_cv_deplibs_check_method='unknown'
5195 # Need to set the preceding variable on all platforms that support
5196 # interlibrary dependencies.
5197 # 'none' -- dependencies not supported.
5198 # `unknown' -- same as none, but documents that we really don't know.
5199 # 'pass_all' -- all dependencies passed with no checks.
5200 # 'test_compile' -- check by making test program.
5201 # 'file_magic [[regex]]' -- check by looking for files in library path
5202 # which responds to the $file_magic_cmd with a given extended regex.
5203 # If you have `file' or equivalent on your system and you're not sure
5204 # whether `pass_all' will *always* work, you probably want this one.
5205
5206 case $host_os in
5207 aix[4-9]*)
5208   lt_cv_deplibs_check_method=pass_all
5209   ;;
5210
5211 beos*)
5212   lt_cv_deplibs_check_method=pass_all
5213   ;;
5214
5215 bsdi[45]*)
5216   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5217   lt_cv_file_magic_cmd='/usr/bin/file -L'
5218   lt_cv_file_magic_test_file=/shlib/libc.so
5219   ;;
5220
5221 cygwin*)
5222   # func_win32_libid is a shell function defined in ltmain.sh
5223   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224   lt_cv_file_magic_cmd='func_win32_libid'
5225   ;;
5226
5227 mingw* | pw32*)
5228   # Base MSYS/MinGW do not provide the 'file' command needed by
5229   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5230   # unless we find 'file', for example because we are cross-compiling.
5231   if ( file / ) >/dev/null 2>&1; then
5232     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233     lt_cv_file_magic_cmd='func_win32_libid'
5234   else
5235     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5236     lt_cv_file_magic_cmd='$OBJDUMP -f'
5237   fi
5238   ;;
5239
5240 cegcc)
5241   # use the weaker test based on 'objdump'. See mingw*.
5242   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5243   lt_cv_file_magic_cmd='$OBJDUMP -f'
5244   ;;
5245
5246 darwin* | rhapsody*)
5247   lt_cv_deplibs_check_method=pass_all
5248   ;;
5249
5250 freebsd* | dragonfly*)
5251   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5252     case $host_cpu in
5253     i*86 )
5254       # Not sure whether the presence of OpenBSD here was a mistake.
5255       # Let's accept both of them until this is cleared up.
5256       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5257       lt_cv_file_magic_cmd=/usr/bin/file
5258       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5259       ;;
5260     esac
5261   else
5262     lt_cv_deplibs_check_method=pass_all
5263   fi
5264   ;;
5265
5266 gnu*)
5267   lt_cv_deplibs_check_method=pass_all
5268   ;;
5269
5270 hpux10.20* | hpux11*)
5271   lt_cv_file_magic_cmd=/usr/bin/file
5272   case $host_cpu in
5273   ia64*)
5274     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5275     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5276     ;;
5277   hppa*64*)
5278     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]'
5279     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5280     ;;
5281   *)
5282     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5283     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5284     ;;
5285   esac
5286   ;;
5287
5288 interix[3-9]*)
5289   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5290   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5291   ;;
5292
5293 irix5* | irix6* | nonstopux*)
5294   case $LD in
5295   *-32|*"-32 ") libmagic=32-bit;;
5296   *-n32|*"-n32 ") libmagic=N32;;
5297   *-64|*"-64 ") libmagic=64-bit;;
5298   *) libmagic=never-match;;
5299   esac
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302
5303 # This must be Linux ELF.
5304 linux* | k*bsd*-gnu)
5305   lt_cv_deplibs_check_method=pass_all
5306   ;;
5307
5308 netbsd*)
5309   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5310     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5311   else
5312     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5313   fi
5314   ;;
5315
5316 newos6*)
5317   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5318   lt_cv_file_magic_cmd=/usr/bin/file
5319   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5320   ;;
5321
5322 *nto* | *qnx*)
5323   lt_cv_deplibs_check_method=pass_all
5324   ;;
5325
5326 openbsd*)
5327   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5328     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5329   else
5330     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5331   fi
5332   ;;
5333
5334 osf3* | osf4* | osf5*)
5335   lt_cv_deplibs_check_method=pass_all
5336   ;;
5337
5338 rdos*)
5339   lt_cv_deplibs_check_method=pass_all
5340   ;;
5341
5342 solaris*)
5343   lt_cv_deplibs_check_method=pass_all
5344   ;;
5345
5346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5347   lt_cv_deplibs_check_method=pass_all
5348   ;;
5349
5350 sysv4 | sysv4.3*)
5351   case $host_vendor in
5352   motorola)
5353     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]'
5354     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5355     ;;
5356   ncr)
5357     lt_cv_deplibs_check_method=pass_all
5358     ;;
5359   sequent)
5360     lt_cv_file_magic_cmd='/bin/file'
5361     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5362     ;;
5363   sni)
5364     lt_cv_file_magic_cmd='/bin/file'
5365     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5366     lt_cv_file_magic_test_file=/lib/libc.so
5367     ;;
5368   siemens)
5369     lt_cv_deplibs_check_method=pass_all
5370     ;;
5371   pc)
5372     lt_cv_deplibs_check_method=pass_all
5373     ;;
5374   esac
5375   ;;
5376
5377 tpf*)
5378   lt_cv_deplibs_check_method=pass_all
5379   ;;
5380 esac
5381
5382 fi
5383 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5384 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5385 file_magic_cmd=$lt_cv_file_magic_cmd
5386 deplibs_check_method=$lt_cv_deplibs_check_method
5387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 if test -n "$ac_tool_prefix"; then
5401   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}ar; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_AR+set}" = set; then
5406   $as_echo_n "(cached) " >&6
5407 else
5408   if test -n "$AR"; then
5409   ac_cv_prog_AR="$AR" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_exec_ext in '' $ac_executable_extensions; do
5417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418     ac_cv_prog_AR="${ac_tool_prefix}ar"
5419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 AR=$ac_cv_prog_AR
5429 if test -n "$AR"; then
5430   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5431 $as_echo "$AR" >&6; }
5432 else
5433   { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 fi
5439 if test -z "$ac_cv_prog_AR"; then
5440   ac_ct_AR=$AR
5441   # Extract the first word of "ar", so it can be a program name with args.
5442 set dummy ar; ac_word=$2
5443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5446   $as_echo_n "(cached) " >&6
5447 else
5448   if test -n "$ac_ct_AR"; then
5449   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456   for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_prog_ac_ct_AR="ar"
5459     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463 done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5469 if test -n "$ac_ct_AR"; then
5470   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5471 $as_echo "$ac_ct_AR" >&6; }
5472 else
5473   { $as_echo "$as_me:$LINENO: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477   if test "x$ac_ct_AR" = x; then
5478     AR="false"
5479   else
5480     case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486     AR=$ac_ct_AR
5487   fi
5488 else
5489   AR="$ac_cv_prog_AR"
5490 fi
5491
5492 test -z "$AR" && AR=ar
5493 test -z "$AR_FLAGS" && AR_FLAGS=cru
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 if test -n "$ac_tool_prefix"; then
5506   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}strip; ac_word=$2
5508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_prog_STRIP+set}" = set; then
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$STRIP"; then
5514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521   for ac_exec_ext in '' $ac_executable_extensions; do
5522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5524     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528 done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 STRIP=$ac_cv_prog_STRIP
5534 if test -n "$STRIP"; then
5535   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5536 $as_echo "$STRIP" >&6; }
5537 else
5538   { $as_echo "$as_me:$LINENO: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543 fi
5544 if test -z "$ac_cv_prog_STRIP"; then
5545   ac_ct_STRIP=$STRIP
5546   # Extract the first word of "strip", so it can be a program name with args.
5547 set dummy strip; ac_word=$2
5548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5551   $as_echo_n "(cached) " >&6
5552 else
5553   if test -n "$ac_ct_STRIP"; then
5554   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_exec_ext in '' $ac_executable_extensions; do
5562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563     ac_cv_prog_ac_ct_STRIP="strip"
5564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5574 if test -n "$ac_ct_STRIP"; then
5575   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5576 $as_echo "$ac_ct_STRIP" >&6; }
5577 else
5578   { $as_echo "$as_me:$LINENO: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582   if test "x$ac_ct_STRIP" = x; then
5583     STRIP=":"
5584   else
5585     case $cross_compiling:$ac_tool_warned in
5586 yes:)
5587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5590 esac
5591     STRIP=$ac_ct_STRIP
5592   fi
5593 else
5594   STRIP="$ac_cv_prog_STRIP"
5595 fi
5596
5597 test -z "$STRIP" && STRIP=:
5598
5599
5600
5601
5602
5603
5604 if test -n "$ac_tool_prefix"; then
5605   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if test "${ac_cv_prog_RANLIB+set}" = set; then
5610   $as_echo_n "(cached) " >&6
5611 else
5612   if test -n "$RANLIB"; then
5613   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620   for ac_exec_ext in '' $ac_executable_extensions; do
5621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5623     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627 done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 RANLIB=$ac_cv_prog_RANLIB
5633 if test -n "$RANLIB"; then
5634   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5635 $as_echo "$RANLIB" >&6; }
5636 else
5637   { $as_echo "$as_me:$LINENO: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641
5642 fi
5643 if test -z "$ac_cv_prog_RANLIB"; then
5644   ac_ct_RANLIB=$RANLIB
5645   # Extract the first word of "ranlib", so it can be a program name with args.
5646 set dummy ranlib; ac_word=$2
5647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5650   $as_echo_n "(cached) " >&6
5651 else
5652   if test -n "$ac_ct_RANLIB"; then
5653   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658   IFS=$as_save_IFS
5659   test -z "$as_dir" && as_dir=.
5660   for ac_exec_ext in '' $ac_executable_extensions; do
5661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662     ac_cv_prog_ac_ct_RANLIB="ranlib"
5663     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664     break 2
5665   fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5673 if test -n "$ac_ct_RANLIB"; then
5674   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5675 $as_echo "$ac_ct_RANLIB" >&6; }
5676 else
5677   { $as_echo "$as_me:$LINENO: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681   if test "x$ac_ct_RANLIB" = x; then
5682     RANLIB=":"
5683   else
5684     case $cross_compiling:$ac_tool_warned in
5685 yes:)
5686 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688 ac_tool_warned=yes ;;
5689 esac
5690     RANLIB=$ac_ct_RANLIB
5691   fi
5692 else
5693   RANLIB="$ac_cv_prog_RANLIB"
5694 fi
5695
5696 test -z "$RANLIB" && RANLIB=:
5697
5698
5699
5700
5701
5702
5703 # Determine commands to create old-style static archives.
5704 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5705 old_postinstall_cmds='chmod 644 $oldlib'
5706 old_postuninstall_cmds=
5707
5708 if test -n "$RANLIB"; then
5709   case $host_os in
5710   openbsd*)
5711     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5712     ;;
5713   *)
5714     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5715     ;;
5716   esac
5717   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5718 fi
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
5747
5748
5749
5750
5751
5752
5753 # If no C compiler was specified, use CC.
5754 LTCC=${LTCC-"$CC"}
5755
5756 # If no C compiler flags were specified, use CFLAGS.
5757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5758
5759 # Allow CC to be a program name with arguments.
5760 compiler=$CC
5761
5762
5763 # Check for command to grab the raw symbol name followed by C symbol from nm.
5764 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5765 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5766 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5767   $as_echo_n "(cached) " >&6
5768 else
5769
5770 # These are sane defaults that work on at least a few old systems.
5771 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5772
5773 # Character class describing NM global symbol codes.
5774 symcode='[BCDEGRST]'
5775
5776 # Regexp to match symbols that can be accessed directly from C.
5777 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5778
5779 # Define system-specific variables.
5780 case $host_os in
5781 aix*)
5782   symcode='[BCDT]'
5783   ;;
5784 cygwin* | mingw* | pw32* | cegcc*)
5785   symcode='[ABCDGISTW]'
5786   ;;
5787 hpux*)
5788   if test "$host_cpu" = ia64; then
5789     symcode='[ABCDEGRST]'
5790   fi
5791   ;;
5792 irix* | nonstopux*)
5793   symcode='[BCDEGRST]'
5794   ;;
5795 osf*)
5796   symcode='[BCDEGQRST]'
5797   ;;
5798 solaris*)
5799   symcode='[BDRT]'
5800   ;;
5801 sco3.2v5*)
5802   symcode='[DT]'
5803   ;;
5804 sysv4.2uw2*)
5805   symcode='[DT]'
5806   ;;
5807 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5808   symcode='[ABDT]'
5809   ;;
5810 sysv4)
5811   symcode='[DFNSTU]'
5812   ;;
5813 esac
5814
5815 # If we're using GNU nm, then use its standard symbol codes.
5816 case `$NM -V 2>&1` in
5817 *GNU* | *'with BFD'*)
5818   symcode='[ABCDGIRSTW]' ;;
5819 esac
5820
5821 # Transform an extracted symbol line into a proper C declaration.
5822 # Some systems (esp. on ia64) link data and code symbols differently,
5823 # so use this general approach.
5824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5825
5826 # Transform an extracted symbol line into symbol name and symbol address
5827 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5828 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'"
5829
5830 # Handle CRLF in mingw tool chain
5831 opt_cr=
5832 case $build_os in
5833 mingw*)
5834   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5835   ;;
5836 esac
5837
5838 # Try without a prefix underscore, then with it.
5839 for ac_symprfx in "" "_"; do
5840
5841   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5842   symxfrm="\\1 $ac_symprfx\\2 \\2"
5843
5844   # Write the raw and C identifiers.
5845   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5846     # Fake it for dumpbin and say T for any non-static function
5847     # and D for any global variable.
5848     # Also find C++ and __fastcall symbols from MSVC++,
5849     # which start with @ or ?.
5850     lt_cv_sys_global_symbol_pipe="$AWK '"\
5851 "     {last_section=section; section=\$ 3};"\
5852 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5853 "     \$ 0!~/External *\|/{next};"\
5854 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5855 "     {if(hide[section]) next};"\
5856 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5857 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5858 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5859 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5860 "     ' prfx=^$ac_symprfx"
5861   else
5862     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5863   fi
5864
5865   # Check to see that the pipe works correctly.
5866   pipe_works=no
5867
5868   rm -f conftest*
5869   cat > conftest.$ac_ext <<_LT_EOF
5870 #ifdef __cplusplus
5871 extern "C" {
5872 #endif
5873 char nm_test_var;
5874 void nm_test_func(void);
5875 void nm_test_func(void){}
5876 #ifdef __cplusplus
5877 }
5878 #endif
5879 int main(){nm_test_var='a';nm_test_func();return(0);}
5880 _LT_EOF
5881
5882   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883   (eval $ac_compile) 2>&5
5884   ac_status=$?
5885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; then
5887     # Now try to grab the symbols.
5888     nlist=conftest.nm
5889     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5890   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5891   ac_status=$?
5892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } && test -s "$nlist"; then
5894       # Try sorting and uniquifying the output.
5895       if sort "$nlist" | uniq > "$nlist"T; then
5896         mv -f "$nlist"T "$nlist"
5897       else
5898         rm -f "$nlist"T
5899       fi
5900
5901       # Make sure that we snagged all the symbols we need.
5902       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5903         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5904           cat <<_LT_EOF > conftest.$ac_ext
5905 #ifdef __cplusplus
5906 extern "C" {
5907 #endif
5908
5909 _LT_EOF
5910           # Now generate the symbol file.
5911           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5912
5913           cat <<_LT_EOF >> conftest.$ac_ext
5914
5915 /* The mapping between symbol names and symbols.  */
5916 const struct {
5917   const char *name;
5918   void       *address;
5919 }
5920 lt__PROGRAM__LTX_preloaded_symbols[] =
5921 {
5922   { "@PROGRAM@", (void *) 0 },
5923 _LT_EOF
5924           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5925           cat <<\_LT_EOF >> conftest.$ac_ext
5926   {0, (void *) 0}
5927 };
5928
5929 /* This works around a problem in FreeBSD linker */
5930 #ifdef FREEBSD_WORKAROUND
5931 static const void *lt_preloaded_setup() {
5932   return lt__PROGRAM__LTX_preloaded_symbols;
5933 }
5934 #endif
5935
5936 #ifdef __cplusplus
5937 }
5938 #endif
5939 _LT_EOF
5940           # Now try linking the two files.
5941           mv conftest.$ac_objext conftstm.$ac_objext
5942           lt_save_LIBS="$LIBS"
5943           lt_save_CFLAGS="$CFLAGS"
5944           LIBS="conftstm.$ac_objext"
5945           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5946           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947   (eval $ac_link) 2>&5
5948   ac_status=$?
5949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5951             pipe_works=yes
5952           fi
5953           LIBS="$lt_save_LIBS"
5954           CFLAGS="$lt_save_CFLAGS"
5955         else
5956           echo "cannot find nm_test_func in $nlist" >&5
5957         fi
5958       else
5959         echo "cannot find nm_test_var in $nlist" >&5
5960       fi
5961     else
5962       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5963     fi
5964   else
5965     echo "$progname: failed program was:" >&5
5966     cat conftest.$ac_ext >&5
5967   fi
5968   rm -rf conftest* conftst*
5969
5970   # Do not use the global_symbol_pipe unless it works.
5971   if test "$pipe_works" = yes; then
5972     break
5973   else
5974     lt_cv_sys_global_symbol_pipe=
5975   fi
5976 done
5977
5978 fi
5979
5980 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5981   lt_cv_sys_global_symbol_to_cdecl=
5982 fi
5983 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5984   { $as_echo "$as_me:$LINENO: result: failed" >&5
5985 $as_echo "failed" >&6; }
5986 else
5987   { $as_echo "$as_me:$LINENO: result: ok" >&5
5988 $as_echo "ok" >&6; }
5989 fi
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 # Check whether --enable-libtool-lock was given.
6014 if test "${enable_libtool_lock+set}" = set; then
6015   enableval=$enable_libtool_lock;
6016 fi
6017
6018 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6019
6020 # Some flags need to be propagated to the compiler or linker for good
6021 # libtool support.
6022 case $host in
6023 ia64-*-hpux*)
6024   # Find out which ABI we are using.
6025   echo 'int i;' > conftest.$ac_ext
6026   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027   (eval $ac_compile) 2>&5
6028   ac_status=$?
6029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }; then
6031     case `/usr/bin/file conftest.$ac_objext` in
6032       *ELF-32*)
6033         HPUX_IA64_MODE="32"
6034         ;;
6035       *ELF-64*)
6036         HPUX_IA64_MODE="64"
6037         ;;
6038     esac
6039   fi
6040   rm -rf conftest*
6041   ;;
6042 *-*-irix6*)
6043   # Find out which ABI we are using.
6044   echo '#line 6044 "configure"' > conftest.$ac_ext
6045   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046   (eval $ac_compile) 2>&5
6047   ac_status=$?
6048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; then
6050     if test "$lt_cv_prog_gnu_ld" = yes; then
6051       case `/usr/bin/file conftest.$ac_objext` in
6052         *32-bit*)
6053           LD="${LD-ld} -melf32bsmip"
6054           ;;
6055         *N32*)
6056           LD="${LD-ld} -melf32bmipn32"
6057           ;;
6058         *64-bit*)
6059           LD="${LD-ld} -melf64bmip"
6060         ;;
6061       esac
6062     else
6063       case `/usr/bin/file conftest.$ac_objext` in
6064         *32-bit*)
6065           LD="${LD-ld} -32"
6066           ;;
6067         *N32*)
6068           LD="${LD-ld} -n32"
6069           ;;
6070         *64-bit*)
6071           LD="${LD-ld} -64"
6072           ;;
6073       esac
6074     fi
6075   fi
6076   rm -rf conftest*
6077   ;;
6078
6079 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6080 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6081   # Find out which ABI we are using.
6082   echo 'int i;' > conftest.$ac_ext
6083   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084   (eval $ac_compile) 2>&5
6085   ac_status=$?
6086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; then
6088     case `/usr/bin/file conftest.o` in
6089       *32-bit*)
6090         case $host in
6091           x86_64-*kfreebsd*-gnu)
6092             LD="${LD-ld} -m elf_i386_fbsd"
6093             ;;
6094           x86_64-*linux*)
6095             LD="${LD-ld} -m elf_i386"
6096             ;;
6097           ppc64-*linux*|powerpc64-*linux*)
6098             LD="${LD-ld} -m elf32ppclinux"
6099             ;;
6100           s390x-*linux*)
6101             LD="${LD-ld} -m elf_s390"
6102             ;;
6103           sparc64-*linux*)
6104             LD="${LD-ld} -m elf32_sparc"
6105             ;;
6106         esac
6107         ;;
6108       *64-bit*)
6109         case $host in
6110           x86_64-*kfreebsd*-gnu)
6111             LD="${LD-ld} -m elf_x86_64_fbsd"
6112             ;;
6113           x86_64-*linux*)
6114             LD="${LD-ld} -m elf_x86_64"
6115             ;;
6116           ppc*-*linux*|powerpc*-*linux*)
6117             LD="${LD-ld} -m elf64ppc"
6118             ;;
6119           s390*-*linux*|s390*-*tpf*)
6120             LD="${LD-ld} -m elf64_s390"
6121             ;;
6122           sparc*-*linux*)
6123             LD="${LD-ld} -m elf64_sparc"
6124             ;;
6125         esac
6126         ;;
6127     esac
6128   fi
6129   rm -rf conftest*
6130   ;;
6131
6132 *-*-sco3.2v5*)
6133   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6134   SAVE_CFLAGS="$CFLAGS"
6135   CFLAGS="$CFLAGS -belf"
6136   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6137 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6138 if test "${lt_cv_cc_needs_belf+set}" = set; then
6139   $as_echo_n "(cached) " >&6
6140 else
6141   ac_ext=c
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147      cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153
6154 int
6155 main ()
6156 {
6157
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (ac_try="$ac_link"
6164 case "(($ac_try" in
6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166   *) ac_try_echo=$ac_try;;
6167 esac
6168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169 $as_echo "$ac_try_echo") >&5
6170   (eval "$ac_link") 2>conftest.er1
6171   ac_status=$?
6172   grep -v '^ *+' conftest.er1 >conftest.err
6173   rm -f conftest.er1
6174   cat conftest.err >&5
6175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); } && {
6177          test -z "$ac_c_werror_flag" ||
6178          test ! -s conftest.err
6179        } && test -s conftest$ac_exeext && {
6180          test "$cross_compiling" = yes ||
6181          $as_test_x conftest$ac_exeext
6182        }; then
6183   lt_cv_cc_needs_belf=yes
6184 else
6185   $as_echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188         lt_cv_cc_needs_belf=no
6189 fi
6190
6191 rm -rf conftest.dSYM
6192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6193       conftest$ac_exeext conftest.$ac_ext
6194      ac_ext=c
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199
6200 fi
6201 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6202 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6203   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6204     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6205     CFLAGS="$SAVE_CFLAGS"
6206   fi
6207   ;;
6208 sparc*-*solaris*)
6209   # Find out which ABI we are using.
6210   echo 'int i;' > conftest.$ac_ext
6211   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212   (eval $ac_compile) 2>&5
6213   ac_status=$?
6214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); }; then
6216     case `/usr/bin/file conftest.o` in
6217     *64-bit*)
6218       case $lt_cv_prog_gnu_ld in
6219       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6220       *)
6221         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6222           LD="${LD-ld} -64"
6223         fi
6224         ;;
6225       esac
6226       ;;
6227     esac
6228   fi
6229   rm -rf conftest*
6230   ;;
6231 esac
6232
6233 need_locks="$enable_libtool_lock"
6234
6235
6236   case $host_os in
6237     rhapsody* | darwin*)
6238     if test -n "$ac_tool_prefix"; then
6239   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6240 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6244   $as_echo_n "(cached) " >&6
6245 else
6246   if test -n "$DSYMUTIL"; then
6247   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254   for ac_exec_ext in '' $ac_executable_extensions; do
6255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261 done
6262 IFS=$as_save_IFS
6263
6264 fi
6265 fi
6266 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6267 if test -n "$DSYMUTIL"; then
6268   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6269 $as_echo "$DSYMUTIL" >&6; }
6270 else
6271   { $as_echo "$as_me:$LINENO: result: no" >&5
6272 $as_echo "no" >&6; }
6273 fi
6274
6275
6276 fi
6277 if test -z "$ac_cv_prog_DSYMUTIL"; then
6278   ac_ct_DSYMUTIL=$DSYMUTIL
6279   # Extract the first word of "dsymutil", so it can be a program name with args.
6280 set dummy dsymutil; ac_word=$2
6281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6284   $as_echo_n "(cached) " >&6
6285 else
6286   if test -n "$ac_ct_DSYMUTIL"; then
6287   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292   IFS=$as_save_IFS
6293   test -z "$as_dir" && as_dir=.
6294   for ac_exec_ext in '' $ac_executable_extensions; do
6295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6297     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298     break 2
6299   fi
6300 done
6301 done
6302 IFS=$as_save_IFS
6303
6304 fi
6305 fi
6306 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6307 if test -n "$ac_ct_DSYMUTIL"; then
6308   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6309 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6310 else
6311   { $as_echo "$as_me:$LINENO: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314
6315   if test "x$ac_ct_DSYMUTIL" = x; then
6316     DSYMUTIL=":"
6317   else
6318     case $cross_compiling:$ac_tool_warned in
6319 yes:)
6320 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324     DSYMUTIL=$ac_ct_DSYMUTIL
6325   fi
6326 else
6327   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6328 fi
6329
6330     if test -n "$ac_tool_prefix"; then
6331   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6332 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6336   $as_echo_n "(cached) " >&6
6337 else
6338   if test -n "$NMEDIT"; then
6339   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346   for ac_exec_ext in '' $ac_executable_extensions; do
6347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 NMEDIT=$ac_cv_prog_NMEDIT
6359 if test -n "$NMEDIT"; then
6360   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6361 $as_echo "$NMEDIT" >&6; }
6362 else
6363   { $as_echo "$as_me:$LINENO: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367
6368 fi
6369 if test -z "$ac_cv_prog_NMEDIT"; then
6370   ac_ct_NMEDIT=$NMEDIT
6371   # Extract the first word of "nmedit", so it can be a program name with args.
6372 set dummy nmedit; ac_word=$2
6373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6376   $as_echo_n "(cached) " >&6
6377 else
6378   if test -n "$ac_ct_NMEDIT"; then
6379   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384   IFS=$as_save_IFS
6385   test -z "$as_dir" && as_dir=.
6386   for ac_exec_ext in '' $ac_executable_extensions; do
6387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6389     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390     break 2
6391   fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6399 if test -n "$ac_ct_NMEDIT"; then
6400   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6401 $as_echo "$ac_ct_NMEDIT" >&6; }
6402 else
6403   { $as_echo "$as_me:$LINENO: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407   if test "x$ac_ct_NMEDIT" = x; then
6408     NMEDIT=":"
6409   else
6410     case $cross_compiling:$ac_tool_warned in
6411 yes:)
6412 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414 ac_tool_warned=yes ;;
6415 esac
6416     NMEDIT=$ac_ct_NMEDIT
6417   fi
6418 else
6419   NMEDIT="$ac_cv_prog_NMEDIT"
6420 fi
6421
6422     if test -n "$ac_tool_prefix"; then
6423   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6424 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_LIPO+set}" = set; then
6428   $as_echo_n "(cached) " >&6
6429 else
6430   if test -n "$LIPO"; then
6431   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6441     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 LIPO=$ac_cv_prog_LIPO
6451 if test -n "$LIPO"; then
6452   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6453 $as_echo "$LIPO" >&6; }
6454 else
6455   { $as_echo "$as_me:$LINENO: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459
6460 fi
6461 if test -z "$ac_cv_prog_LIPO"; then
6462   ac_ct_LIPO=$LIPO
6463   # Extract the first word of "lipo", so it can be a program name with args.
6464 set dummy lipo; ac_word=$2
6465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6468   $as_echo_n "(cached) " >&6
6469 else
6470   if test -n "$ac_ct_LIPO"; then
6471   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478   for ac_exec_ext in '' $ac_executable_extensions; do
6479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480     ac_cv_prog_ac_ct_LIPO="lipo"
6481     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6491 if test -n "$ac_ct_LIPO"; then
6492   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6493 $as_echo "$ac_ct_LIPO" >&6; }
6494 else
6495   { $as_echo "$as_me:$LINENO: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499   if test "x$ac_ct_LIPO" = x; then
6500     LIPO=":"
6501   else
6502     case $cross_compiling:$ac_tool_warned in
6503 yes:)
6504 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508     LIPO=$ac_ct_LIPO
6509   fi
6510 else
6511   LIPO="$ac_cv_prog_LIPO"
6512 fi
6513
6514     if test -n "$ac_tool_prefix"; then
6515   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}otool; ac_word=$2
6517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_OTOOL+set}" = set; then
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$OTOOL"; then
6523   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 OTOOL=$ac_cv_prog_OTOOL
6543 if test -n "$OTOOL"; then
6544   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6545 $as_echo "$OTOOL" >&6; }
6546 else
6547   { $as_echo "$as_me:$LINENO: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_OTOOL"; then
6554   ac_ct_OTOOL=$OTOOL
6555   # Extract the first word of "otool", so it can be a program name with args.
6556 set dummy otool; ac_word=$2
6557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$ac_ct_OTOOL"; then
6563   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_ac_ct_OTOOL="otool"
6573     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6583 if test -n "$ac_ct_OTOOL"; then
6584   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6585 $as_echo "$ac_ct_OTOOL" >&6; }
6586 else
6587   { $as_echo "$as_me:$LINENO: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591   if test "x$ac_ct_OTOOL" = x; then
6592     OTOOL=":"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     OTOOL=$ac_ct_OTOOL
6601   fi
6602 else
6603   OTOOL="$ac_cv_prog_OTOOL"
6604 fi
6605
6606     if test -n "$ac_tool_prefix"; then
6607   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6612   $as_echo_n "(cached) " >&6
6613 else
6614   if test -n "$OTOOL64"; then
6615   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   for ac_exec_ext in '' $ac_executable_extensions; do
6623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6625     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 OTOOL64=$ac_cv_prog_OTOOL64
6635 if test -n "$OTOOL64"; then
6636   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6637 $as_echo "$OTOOL64" >&6; }
6638 else
6639   { $as_echo "$as_me:$LINENO: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_OTOOL64"; then
6646   ac_ct_OTOOL64=$OTOOL64
6647   # Extract the first word of "otool64", so it can be a program name with args.
6648 set dummy otool64; ac_word=$2
6649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6652   $as_echo_n "(cached) " >&6
6653 else
6654   if test -n "$ac_ct_OTOOL64"; then
6655   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_prog_ac_ct_OTOOL64="otool64"
6665     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6675 if test -n "$ac_ct_OTOOL64"; then
6676   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6677 $as_echo "$ac_ct_OTOOL64" >&6; }
6678 else
6679   { $as_echo "$as_me:$LINENO: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683   if test "x$ac_ct_OTOOL64" = x; then
6684     OTOOL64=":"
6685   else
6686     case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692     OTOOL64=$ac_ct_OTOOL64
6693   fi
6694 else
6695   OTOOL64="$ac_cv_prog_OTOOL64"
6696 fi
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6725 $as_echo_n "checking for -single_module linker flag... " >&6; }
6726 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6727   $as_echo_n "(cached) " >&6
6728 else
6729   lt_cv_apple_cc_single_mod=no
6730       if test -z "${LT_MULTI_MODULE}"; then
6731         # By default we will add the -single_module flag. You can override
6732         # by either setting the environment variable LT_MULTI_MODULE
6733         # non-empty at configure time, or by adding -multi_module to the
6734         # link flags.
6735         rm -rf libconftest.dylib*
6736         echo "int foo(void){return 1;}" > conftest.c
6737         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6738 -dynamiclib -Wl,-single_module conftest.c" >&5
6739         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6740           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6741         _lt_result=$?
6742         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6743           lt_cv_apple_cc_single_mod=yes
6744         else
6745           cat conftest.err >&5
6746         fi
6747         rm -rf libconftest.dylib*
6748         rm -f conftest.*
6749       fi
6750 fi
6751 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6752 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6753     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6754 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6755 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6756   $as_echo_n "(cached) " >&6
6757 else
6758   lt_cv_ld_exported_symbols_list=no
6759       save_LDFLAGS=$LDFLAGS
6760       echo "_main" > conftest.sym
6761       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6762       cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768
6769 int
6770 main ()
6771 {
6772
6773   ;
6774   return 0;
6775 }
6776 _ACEOF
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (ac_try="$ac_link"
6779 case "(($ac_try" in
6780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781   *) ac_try_echo=$ac_try;;
6782 esac
6783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784 $as_echo "$ac_try_echo") >&5
6785   (eval "$ac_link") 2>conftest.er1
6786   ac_status=$?
6787   grep -v '^ *+' conftest.er1 >conftest.err
6788   rm -f conftest.er1
6789   cat conftest.err >&5
6790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); } && {
6792          test -z "$ac_c_werror_flag" ||
6793          test ! -s conftest.err
6794        } && test -s conftest$ac_exeext && {
6795          test "$cross_compiling" = yes ||
6796          $as_test_x conftest$ac_exeext
6797        }; then
6798   lt_cv_ld_exported_symbols_list=yes
6799 else
6800   $as_echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803         lt_cv_ld_exported_symbols_list=no
6804 fi
6805
6806 rm -rf conftest.dSYM
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808       conftest$ac_exeext conftest.$ac_ext
6809         LDFLAGS="$save_LDFLAGS"
6810
6811 fi
6812 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6814     case $host_os in
6815     rhapsody* | darwin1.[012])
6816       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6817     darwin1.*)
6818       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6819     darwin*) # darwin 5.x on
6820       # if running on 10.5 or later, the deployment target defaults
6821       # to the OS version, if on x86, and 10.4, the deployment
6822       # target defaults to 10.4. Don't you love it?
6823       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6824         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6825           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6826         10.[012]*)
6827           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6828         10.*)
6829           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6830       esac
6831     ;;
6832   esac
6833     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6834       _lt_dar_single_mod='$single_module'
6835     fi
6836     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6837       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6838     else
6839       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6840     fi
6841     if test "$DSYMUTIL" != ":"; then
6842       _lt_dsymutil='~$DSYMUTIL $lib || :'
6843     else
6844       _lt_dsymutil=
6845     fi
6846     ;;
6847   esac
6848
6849 ac_ext=c
6850 ac_cpp='$CPP $CPPFLAGS'
6851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6855 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6856 # On Suns, sometimes $CPP names a directory.
6857 if test -n "$CPP" && test -d "$CPP"; then
6858   CPP=
6859 fi
6860 if test -z "$CPP"; then
6861   if test "${ac_cv_prog_CPP+set}" = set; then
6862   $as_echo_n "(cached) " >&6
6863 else
6864       # Double quotes because CPP needs to be expanded
6865     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6866     do
6867       ac_preproc_ok=false
6868 for ac_c_preproc_warn_flag in '' yes
6869 do
6870   # Use a header file that comes with gcc, so configuring glibc
6871   # with a fresh cross-compiler works.
6872   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873   # <limits.h> exists even on freestanding compilers.
6874   # On the NeXT, cc -E runs the code through the compiler's parser,
6875   # not just through cpp. "Syntax error" is here to catch this case.
6876   cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882 #ifdef __STDC__
6883 # include <limits.h>
6884 #else
6885 # include <assert.h>
6886 #endif
6887                      Syntax error
6888 _ACEOF
6889 if { (ac_try="$ac_cpp conftest.$ac_ext"
6890 case "(($ac_try" in
6891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892   *) ac_try_echo=$ac_try;;
6893 esac
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6897   ac_status=$?
6898   grep -v '^ *+' conftest.er1 >conftest.err
6899   rm -f conftest.er1
6900   cat conftest.err >&5
6901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } >/dev/null && {
6903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6904          test ! -s conftest.err
6905        }; then
6906   :
6907 else
6908   $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911   # Broken: fails on valid input.
6912 continue
6913 fi
6914
6915 rm -f conftest.err conftest.$ac_ext
6916
6917   # OK, works on sane cases.  Now check whether nonexistent headers
6918   # can be detected and how.
6919   cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h.  */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h.  */
6925 #include <ac_nonexistent.h>
6926 _ACEOF
6927 if { (ac_try="$ac_cpp conftest.$ac_ext"
6928 case "(($ac_try" in
6929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930   *) ac_try_echo=$ac_try;;
6931 esac
6932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6933 $as_echo "$ac_try_echo") >&5
6934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } >/dev/null && {
6941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942          test ! -s conftest.err
6943        }; then
6944   # Broken: success on invalid input.
6945 continue
6946 else
6947   $as_echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6949
6950   # Passes both tests.
6951 ac_preproc_ok=:
6952 break
6953 fi
6954
6955 rm -f conftest.err conftest.$ac_ext
6956
6957 done
6958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6959 rm -f conftest.err conftest.$ac_ext
6960 if $ac_preproc_ok; then
6961   break
6962 fi
6963
6964     done
6965     ac_cv_prog_CPP=$CPP
6966
6967 fi
6968   CPP=$ac_cv_prog_CPP
6969 else
6970   ac_cv_prog_CPP=$CPP
6971 fi
6972 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6973 $as_echo "$CPP" >&6; }
6974 ac_preproc_ok=false
6975 for ac_c_preproc_warn_flag in '' yes
6976 do
6977   # Use a header file that comes with gcc, so configuring glibc
6978   # with a fresh cross-compiler works.
6979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6980   # <limits.h> exists even on freestanding compilers.
6981   # On the NeXT, cc -E runs the code through the compiler's parser,
6982   # not just through cpp. "Syntax error" is here to catch this case.
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #ifdef __STDC__
6990 # include <limits.h>
6991 #else
6992 # include <assert.h>
6993 #endif
6994                      Syntax error
6995 _ACEOF
6996 if { (ac_try="$ac_cpp conftest.$ac_ext"
6997 case "(($ac_try" in
6998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999   *) ac_try_echo=$ac_try;;
7000 esac
7001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002 $as_echo "$ac_try_echo") >&5
7003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } >/dev/null && {
7010          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7011          test ! -s conftest.err
7012        }; then
7013   :
7014 else
7015   $as_echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018   # Broken: fails on valid input.
7019 continue
7020 fi
7021
7022 rm -f conftest.err conftest.$ac_ext
7023
7024   # OK, works on sane cases.  Now check whether nonexistent headers
7025   # can be detected and how.
7026   cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h.  */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h.  */
7032 #include <ac_nonexistent.h>
7033 _ACEOF
7034 if { (ac_try="$ac_cpp conftest.$ac_ext"
7035 case "(($ac_try" in
7036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037   *) ac_try_echo=$ac_try;;
7038 esac
7039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7040 $as_echo "$ac_try_echo") >&5
7041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7042   ac_status=$?
7043   grep -v '^ *+' conftest.er1 >conftest.err
7044   rm -f conftest.er1
7045   cat conftest.err >&5
7046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); } >/dev/null && {
7048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7049          test ! -s conftest.err
7050        }; then
7051   # Broken: success on invalid input.
7052 continue
7053 else
7054   $as_echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7056
7057   # Passes both tests.
7058 ac_preproc_ok=:
7059 break
7060 fi
7061
7062 rm -f conftest.err conftest.$ac_ext
7063
7064 done
7065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7066 rm -f conftest.err conftest.$ac_ext
7067 if $ac_preproc_ok; then
7068   :
7069 else
7070   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7072 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7073 See \`config.log' for more details." >&5
7074 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7075 See \`config.log' for more details." >&2;}
7076    { (exit 1); exit 1; }; }; }
7077 fi
7078
7079 ac_ext=c
7080 ac_cpp='$CPP $CPPFLAGS'
7081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084
7085
7086 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7087 $as_echo_n "checking for ANSI C header files... " >&6; }
7088 if test "${ac_cv_header_stdc+set}" = set; then
7089   $as_echo_n "(cached) " >&6
7090 else
7091   cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097 #include <stdlib.h>
7098 #include <stdarg.h>
7099 #include <string.h>
7100 #include <float.h>
7101
7102 int
7103 main ()
7104 {
7105
7106   ;
7107   return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7112 case "(($ac_try" in
7113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114   *) ac_try_echo=$ac_try;;
7115 esac
7116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7117 $as_echo "$ac_try_echo") >&5
7118   (eval "$ac_compile") 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } && {
7125          test -z "$ac_c_werror_flag" ||
7126          test ! -s conftest.err
7127        } && test -s conftest.$ac_objext; then
7128   ac_cv_header_stdc=yes
7129 else
7130   $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133         ac_cv_header_stdc=no
7134 fi
7135
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137
7138 if test $ac_cv_header_stdc = yes; then
7139   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7140   cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 #include <string.h>
7147
7148 _ACEOF
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150   $EGREP "memchr" >/dev/null 2>&1; then
7151   :
7152 else
7153   ac_cv_header_stdc=no
7154 fi
7155 rm -f conftest*
7156
7157 fi
7158
7159 if test $ac_cv_header_stdc = yes; then
7160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7161   cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167 #include <stdlib.h>
7168
7169 _ACEOF
7170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171   $EGREP "free" >/dev/null 2>&1; then
7172   :
7173 else
7174   ac_cv_header_stdc=no
7175 fi
7176 rm -f conftest*
7177
7178 fi
7179
7180 if test $ac_cv_header_stdc = yes; then
7181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7182   if test "$cross_compiling" = yes; then
7183   :
7184 else
7185   cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h.  */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h.  */
7191 #include <ctype.h>
7192 #include <stdlib.h>
7193 #if ((' ' & 0x0FF) == 0x020)
7194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7196 #else
7197 # define ISLOWER(c) \
7198                    (('a' <= (c) && (c) <= 'i') \
7199                      || ('j' <= (c) && (c) <= 'r') \
7200                      || ('s' <= (c) && (c) <= 'z'))
7201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7202 #endif
7203
7204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7205 int
7206 main ()
7207 {
7208   int i;
7209   for (i = 0; i < 256; i++)
7210     if (XOR (islower (i), ISLOWER (i))
7211         || toupper (i) != TOUPPER (i))
7212       return 2;
7213   return 0;
7214 }
7215 _ACEOF
7216 rm -f conftest$ac_exeext
7217 if { (ac_try="$ac_link"
7218 case "(($ac_try" in
7219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220   *) ac_try_echo=$ac_try;;
7221 esac
7222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7223 $as_echo "$ac_try_echo") >&5
7224   (eval "$ac_link") 2>&5
7225   ac_status=$?
7226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7228   { (case "(($ac_try" in
7229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230   *) ac_try_echo=$ac_try;;
7231 esac
7232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7233 $as_echo "$ac_try_echo") >&5
7234   (eval "$ac_try") 2>&5
7235   ac_status=$?
7236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; }; then
7238   :
7239 else
7240   $as_echo "$as_me: program exited with status $ac_status" >&5
7241 $as_echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ( exit $ac_status )
7245 ac_cv_header_stdc=no
7246 fi
7247 rm -rf conftest.dSYM
7248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7249 fi
7250
7251
7252 fi
7253 fi
7254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7255 $as_echo "$ac_cv_header_stdc" >&6; }
7256 if test $ac_cv_header_stdc = yes; then
7257
7258 cat >>confdefs.h <<\_ACEOF
7259 #define STDC_HEADERS 1
7260 _ACEOF
7261
7262 fi
7263
7264 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7275                   inttypes.h stdint.h unistd.h
7276 do
7277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7278 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7279 $as_echo_n "checking for $ac_header... " >&6; }
7280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7281   $as_echo_n "(cached) " >&6
7282 else
7283   cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h.  */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h.  */
7289 $ac_includes_default
7290
7291 #include <$ac_header>
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297   *) ac_try_echo=$ac_try;;
7298 esac
7299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7300 $as_echo "$ac_try_echo") >&5
7301   (eval "$ac_compile") 2>conftest.er1
7302   ac_status=$?
7303   grep -v '^ *+' conftest.er1 >conftest.err
7304   rm -f conftest.er1
7305   cat conftest.err >&5
7306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); } && {
7308          test -z "$ac_c_werror_flag" ||
7309          test ! -s conftest.err
7310        } && test -s conftest.$ac_objext; then
7311   eval "$as_ac_Header=yes"
7312 else
7313   $as_echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316         eval "$as_ac_Header=no"
7317 fi
7318
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 fi
7321 ac_res=`eval 'as_val=${'$as_ac_Header'}
7322                  $as_echo "$as_val"'`
7323                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7324 $as_echo "$ac_res" >&6; }
7325 as_val=`eval 'as_val=${'$as_ac_Header'}
7326                  $as_echo "$as_val"'`
7327    if test "x$as_val" = x""yes; then
7328   cat >>confdefs.h <<_ACEOF
7329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7330 _ACEOF
7331
7332 fi
7333
7334 done
7335
7336
7337
7338 for ac_header in dlfcn.h
7339 do
7340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7342 $as_echo_n "checking for $ac_header... " >&6; }
7343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7344   $as_echo_n "(cached) " >&6
7345 else
7346   cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h.  */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h.  */
7352 $ac_includes_default
7353
7354 #include <$ac_header>
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7358 case "(($ac_try" in
7359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360   *) ac_try_echo=$ac_try;;
7361 esac
7362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7363 $as_echo "$ac_try_echo") >&5
7364   (eval "$ac_compile") 2>conftest.er1
7365   ac_status=$?
7366   grep -v '^ *+' conftest.er1 >conftest.err
7367   rm -f conftest.er1
7368   cat conftest.err >&5
7369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } && {
7371          test -z "$ac_c_werror_flag" ||
7372          test ! -s conftest.err
7373        } && test -s conftest.$ac_objext; then
7374   eval "$as_ac_Header=yes"
7375 else
7376   $as_echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379         eval "$as_ac_Header=no"
7380 fi
7381
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 fi
7384 ac_res=`eval 'as_val=${'$as_ac_Header'}
7385                  $as_echo "$as_val"'`
7386                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7387 $as_echo "$ac_res" >&6; }
7388 as_val=`eval 'as_val=${'$as_ac_Header'}
7389                  $as_echo "$as_val"'`
7390    if test "x$as_val" = x""yes; then
7391   cat >>confdefs.h <<_ACEOF
7392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 _ACEOF
7394
7395 fi
7396
7397 done
7398
7399
7400
7401 # Set options
7402
7403
7404
7405         enable_dlopen=no
7406
7407
7408   enable_win32_dll=no
7409
7410
7411             # Check whether --enable-shared was given.
7412 if test "${enable_shared+set}" = set; then
7413   enableval=$enable_shared; p=${PACKAGE-default}
7414     case $enableval in
7415     yes) enable_shared=yes ;;
7416     no) enable_shared=no ;;
7417     *)
7418       enable_shared=no
7419       # Look at the argument we got.  We use all the common list separators.
7420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7421       for pkg in $enableval; do
7422         IFS="$lt_save_ifs"
7423         if test "X$pkg" = "X$p"; then
7424           enable_shared=yes
7425         fi
7426       done
7427       IFS="$lt_save_ifs"
7428       ;;
7429     esac
7430 else
7431   enable_shared=yes
7432 fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442   # Check whether --enable-static was given.
7443 if test "${enable_static+set}" = set; then
7444   enableval=$enable_static; p=${PACKAGE-default}
7445     case $enableval in
7446     yes) enable_static=yes ;;
7447     no) enable_static=no ;;
7448     *)
7449      enable_static=no
7450       # Look at the argument we got.  We use all the common list separators.
7451       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7452       for pkg in $enableval; do
7453         IFS="$lt_save_ifs"
7454         if test "X$pkg" = "X$p"; then
7455           enable_static=yes
7456         fi
7457       done
7458       IFS="$lt_save_ifs"
7459       ;;
7460     esac
7461 else
7462   enable_static=yes
7463 fi
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474 # Check whether --with-pic was given.
7475 if test "${with_pic+set}" = set; then
7476   withval=$with_pic; pic_mode="$withval"
7477 else
7478   pic_mode=default
7479 fi
7480
7481
7482 test -z "$pic_mode" && pic_mode=default
7483
7484
7485
7486
7487
7488
7489
7490   # Check whether --enable-fast-install was given.
7491 if test "${enable_fast_install+set}" = set; then
7492   enableval=$enable_fast_install; p=${PACKAGE-default}
7493     case $enableval in
7494     yes) enable_fast_install=yes ;;
7495     no) enable_fast_install=no ;;
7496     *)
7497       enable_fast_install=no
7498       # Look at the argument we got.  We use all the common list separators.
7499       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7500       for pkg in $enableval; do
7501         IFS="$lt_save_ifs"
7502         if test "X$pkg" = "X$p"; then
7503           enable_fast_install=yes
7504         fi
7505       done
7506       IFS="$lt_save_ifs"
7507       ;;
7508     esac
7509 else
7510   enable_fast_install=yes
7511 fi
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523 # This can be used to rebuild libtool when needed
7524 LIBTOOL_DEPS="$ltmain"
7525
7526 # Always use our own libtool.
7527 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 test -z "$LN_S" && LN_S="ln -s"
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 if test -n "${ZSH_VERSION+set}" ; then
7569    setopt NO_GLOB_SUBST
7570 fi
7571
7572 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7573 $as_echo_n "checking for objdir... " >&6; }
7574 if test "${lt_cv_objdir+set}" = set; then
7575   $as_echo_n "(cached) " >&6
7576 else
7577   rm -f .libs 2>/dev/null
7578 mkdir .libs 2>/dev/null
7579 if test -d .libs; then
7580   lt_cv_objdir=.libs
7581 else
7582   # MS-DOS does not allow filenames that begin with a dot.
7583   lt_cv_objdir=_libs
7584 fi
7585 rmdir .libs 2>/dev/null
7586 fi
7587 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7588 $as_echo "$lt_cv_objdir" >&6; }
7589 objdir=$lt_cv_objdir
7590
7591
7592
7593
7594
7595 cat >>confdefs.h <<_ACEOF
7596 #define LT_OBJDIR "$lt_cv_objdir/"
7597 _ACEOF
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615 case $host_os in
7616 aix3*)
7617   # AIX sometimes has problems with the GCC collect2 program.  For some
7618   # reason, if we set the COLLECT_NAMES environment variable, the problems
7619   # vanish in a puff of smoke.
7620   if test "X${COLLECT_NAMES+set}" != Xset; then
7621     COLLECT_NAMES=
7622     export COLLECT_NAMES
7623   fi
7624   ;;
7625 esac
7626
7627 # Sed substitution that helps us do robust quoting.  It backslashifies
7628 # metacharacters that are still active within double-quoted strings.
7629 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7630
7631 # Same as above, but do not quote variable references.
7632 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7633
7634 # Sed substitution to delay expansion of an escaped shell variable in a
7635 # double_quote_subst'ed string.
7636 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7637
7638 # Sed substitution to delay expansion of an escaped single quote.
7639 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7640
7641 # Sed substitution to avoid accidental globbing in evaled expressions
7642 no_glob_subst='s/\*/\\\*/g'
7643
7644 # Global variables:
7645 ofile=libtool
7646 can_build_shared=yes
7647
7648 # All known linkers require a `.a' archive for static linking (except MSVC,
7649 # which needs '.lib').
7650 libext=a
7651
7652 with_gnu_ld="$lt_cv_prog_gnu_ld"
7653
7654 old_CC="$CC"
7655 old_CFLAGS="$CFLAGS"
7656
7657 # Set sane defaults for various variables
7658 test -z "$CC" && CC=cc
7659 test -z "$LTCC" && LTCC=$CC
7660 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7661 test -z "$LD" && LD=ld
7662 test -z "$ac_objext" && ac_objext=o
7663
7664 for cc_temp in $compiler""; do
7665   case $cc_temp in
7666     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7667     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7668     \-*) ;;
7669     *) break;;
7670   esac
7671 done
7672 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7673
7674
7675 # Only perform the check for file, if the check method requires it
7676 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7677 case $deplibs_check_method in
7678 file_magic*)
7679   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7680     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7681 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7682 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7683   $as_echo_n "(cached) " >&6
7684 else
7685   case $MAGIC_CMD in
7686 [\\/*] |  ?:[\\/]*)
7687   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7688   ;;
7689 *)
7690   lt_save_MAGIC_CMD="$MAGIC_CMD"
7691   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7692   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7693   for ac_dir in $ac_dummy; do
7694     IFS="$lt_save_ifs"
7695     test -z "$ac_dir" && ac_dir=.
7696     if test -f $ac_dir/${ac_tool_prefix}file; then
7697       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7698       if test -n "$file_magic_test_file"; then
7699         case $deplibs_check_method in
7700         "file_magic "*)
7701           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7702           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7704             $EGREP "$file_magic_regex" > /dev/null; then
7705             :
7706           else
7707             cat <<_LT_EOF 1>&2
7708
7709 *** Warning: the command libtool uses to detect shared libraries,
7710 *** $file_magic_cmd, produces output that libtool cannot recognize.
7711 *** The result is that libtool may fail to recognize shared libraries
7712 *** as such.  This will affect the creation of libtool libraries that
7713 *** depend on shared libraries, but programs linked with such libtool
7714 *** libraries will work regardless of this problem.  Nevertheless, you
7715 *** may want to report the problem to your system manager and/or to
7716 *** bug-libtool@gnu.org
7717
7718 _LT_EOF
7719           fi ;;
7720         esac
7721       fi
7722       break
7723     fi
7724   done
7725   IFS="$lt_save_ifs"
7726   MAGIC_CMD="$lt_save_MAGIC_CMD"
7727   ;;
7728 esac
7729 fi
7730
7731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732 if test -n "$MAGIC_CMD"; then
7733   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7734 $as_echo "$MAGIC_CMD" >&6; }
7735 else
7736   { $as_echo "$as_me:$LINENO: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741
7742
7743
7744 if test -z "$lt_cv_path_MAGIC_CMD"; then
7745   if test -n "$ac_tool_prefix"; then
7746     { $as_echo "$as_me:$LINENO: checking for file" >&5
7747 $as_echo_n "checking for file... " >&6; }
7748 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7749   $as_echo_n "(cached) " >&6
7750 else
7751   case $MAGIC_CMD in
7752 [\\/*] |  ?:[\\/]*)
7753   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7754   ;;
7755 *)
7756   lt_save_MAGIC_CMD="$MAGIC_CMD"
7757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7759   for ac_dir in $ac_dummy; do
7760     IFS="$lt_save_ifs"
7761     test -z "$ac_dir" && ac_dir=.
7762     if test -f $ac_dir/file; then
7763       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7764       if test -n "$file_magic_test_file"; then
7765         case $deplibs_check_method in
7766         "file_magic "*)
7767           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7768           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7770             $EGREP "$file_magic_regex" > /dev/null; then
7771             :
7772           else
7773             cat <<_LT_EOF 1>&2
7774
7775 *** Warning: the command libtool uses to detect shared libraries,
7776 *** $file_magic_cmd, produces output that libtool cannot recognize.
7777 *** The result is that libtool may fail to recognize shared libraries
7778 *** as such.  This will affect the creation of libtool libraries that
7779 *** depend on shared libraries, but programs linked with such libtool
7780 *** libraries will work regardless of this problem.  Nevertheless, you
7781 *** may want to report the problem to your system manager and/or to
7782 *** bug-libtool@gnu.org
7783
7784 _LT_EOF
7785           fi ;;
7786         esac
7787       fi
7788       break
7789     fi
7790   done
7791   IFS="$lt_save_ifs"
7792   MAGIC_CMD="$lt_save_MAGIC_CMD"
7793   ;;
7794 esac
7795 fi
7796
7797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7798 if test -n "$MAGIC_CMD"; then
7799   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7800 $as_echo "$MAGIC_CMD" >&6; }
7801 else
7802   { $as_echo "$as_me:$LINENO: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807   else
7808     MAGIC_CMD=:
7809   fi
7810 fi
7811
7812   fi
7813   ;;
7814 esac
7815
7816 # Use C for the default configuration in the libtool script
7817
7818 lt_save_CC="$CC"
7819 ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826 # Source file extension for C test sources.
7827 ac_ext=c
7828
7829 # Object file extension for compiled C test sources.
7830 objext=o
7831 objext=$objext
7832
7833 # Code to be used in simple compile tests
7834 lt_simple_compile_test_code="int some_variable = 0;"
7835
7836 # Code to be used in simple link tests
7837 lt_simple_link_test_code='int main(){return(0);}'
7838
7839
7840
7841
7842
7843
7844
7845 # If no C compiler was specified, use CC.
7846 LTCC=${LTCC-"$CC"}
7847
7848 # If no C compiler flags were specified, use CFLAGS.
7849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7850
7851 # Allow CC to be a program name with arguments.
7852 compiler=$CC
7853
7854 # Save the default compiler, since it gets overwritten when the other
7855 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7856 compiler_DEFAULT=$CC
7857
7858 # save warnings/boilerplate of simple test code
7859 ac_outfile=conftest.$ac_objext
7860 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7862 _lt_compiler_boilerplate=`cat conftest.err`
7863 $RM conftest*
7864
7865 ac_outfile=conftest.$ac_objext
7866 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868 _lt_linker_boilerplate=`cat conftest.err`
7869 $RM -r conftest*
7870
7871
7872 if test -n "$compiler"; then
7873
7874 lt_prog_compiler_no_builtin_flag=
7875
7876 if test "$GCC" = yes; then
7877   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7878
7879   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7880 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7881 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7882   $as_echo_n "(cached) " >&6
7883 else
7884   lt_cv_prog_compiler_rtti_exceptions=no
7885    ac_outfile=conftest.$ac_objext
7886    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887    lt_compiler_flag="-fno-rtti -fno-exceptions"
7888    # Insert the option either (1) after the last *FLAGS variable, or
7889    # (2) before a word containing "conftest.", or (3) at the end.
7890    # Note that $ac_compile itself does not contain backslashes and begins
7891    # with a dollar sign (not a hyphen), so the echo should work correctly.
7892    # The option is referenced via a variable to avoid confusing sed.
7893    lt_compile=`echo "$ac_compile" | $SED \
7894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896    -e 's:$: $lt_compiler_flag:'`
7897    (eval echo "\"\$as_me:7897: $lt_compile\"" >&5)
7898    (eval "$lt_compile" 2>conftest.err)
7899    ac_status=$?
7900    cat conftest.err >&5
7901    echo "$as_me:7901: \$? = $ac_status" >&5
7902    if (exit $ac_status) && test -s "$ac_outfile"; then
7903      # The compiler can only warn and ignore the option if not recognized
7904      # So say no if there are warnings other than the usual output.
7905      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7906      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7908        lt_cv_prog_compiler_rtti_exceptions=yes
7909      fi
7910    fi
7911    $RM conftest*
7912
7913 fi
7914 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7915 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7916
7917 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7918     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7919 else
7920     :
7921 fi
7922
7923 fi
7924
7925
7926
7927
7928
7929
7930   lt_prog_compiler_wl=
7931 lt_prog_compiler_pic=
7932 lt_prog_compiler_static=
7933
7934 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7935 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7936
7937   if test "$GCC" = yes; then
7938     lt_prog_compiler_wl='-Wl,'
7939     lt_prog_compiler_static='-static'
7940
7941     case $host_os in
7942       aix*)
7943       # All AIX code is PIC.
7944       if test "$host_cpu" = ia64; then
7945         # AIX 5 now supports IA64 processor
7946         lt_prog_compiler_static='-Bstatic'
7947       fi
7948       ;;
7949
7950     amigaos*)
7951       case $host_cpu in
7952       powerpc)
7953             # see comment about AmigaOS4 .so support
7954             lt_prog_compiler_pic='-fPIC'
7955         ;;
7956       m68k)
7957             # FIXME: we need at least 68020 code to build shared libraries, but
7958             # adding the `-m68020' flag to GCC prevents building anything better,
7959             # like `-m68040'.
7960             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7961         ;;
7962       esac
7963       ;;
7964
7965     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7966       # PIC is the default for these OSes.
7967       ;;
7968
7969     mingw* | cygwin* | pw32* | os2* | cegcc*)
7970       # This hack is so that the source file can tell whether it is being
7971       # built for inclusion in a dll (and should export symbols for example).
7972       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7973       # (--disable-auto-import) libraries
7974       lt_prog_compiler_pic='-DDLL_EXPORT'
7975       ;;
7976
7977     darwin* | rhapsody*)
7978       # PIC is the default on this platform
7979       # Common symbols not allowed in MH_DYLIB files
7980       lt_prog_compiler_pic='-fno-common'
7981       ;;
7982
7983     hpux*)
7984       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7985       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7986       # sets the default TLS model and affects inlining.
7987       case $host_cpu in
7988       hppa*64*)
7989         # +Z the default
7990         ;;
7991       *)
7992         lt_prog_compiler_pic='-fPIC'
7993         ;;
7994       esac
7995       ;;
7996
7997     interix[3-9]*)
7998       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7999       # Instead, we relocate shared libraries at runtime.
8000       ;;
8001
8002     msdosdjgpp*)
8003       # Just because we use GCC doesn't mean we suddenly get shared libraries
8004       # on systems that don't support them.
8005       lt_prog_compiler_can_build_shared=no
8006       enable_shared=no
8007       ;;
8008
8009     *nto* | *qnx*)
8010       # QNX uses GNU C++, but need to define -shared option too, otherwise
8011       # it will coredump.
8012       lt_prog_compiler_pic='-fPIC -shared'
8013       ;;
8014
8015     sysv4*MP*)
8016       if test -d /usr/nec; then
8017         lt_prog_compiler_pic=-Kconform_pic
8018       fi
8019       ;;
8020
8021     *)
8022       lt_prog_compiler_pic='-fPIC'
8023       ;;
8024     esac
8025   else
8026     # PORTME Check for flag to pass linker flags through the system compiler.
8027     case $host_os in
8028     aix*)
8029       lt_prog_compiler_wl='-Wl,'
8030       if test "$host_cpu" = ia64; then
8031         # AIX 5 now supports IA64 processor
8032         lt_prog_compiler_static='-Bstatic'
8033       else
8034         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8035       fi
8036       ;;
8037
8038     mingw* | cygwin* | pw32* | os2* | cegcc*)
8039       # This hack is so that the source file can tell whether it is being
8040       # built for inclusion in a dll (and should export symbols for example).
8041       lt_prog_compiler_pic='-DDLL_EXPORT'
8042       ;;
8043
8044     hpux9* | hpux10* | hpux11*)
8045       lt_prog_compiler_wl='-Wl,'
8046       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8047       # not for PA HP-UX.
8048       case $host_cpu in
8049       hppa*64*|ia64*)
8050         # +Z the default
8051         ;;
8052       *)
8053         lt_prog_compiler_pic='+Z'
8054         ;;
8055       esac
8056       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8057       lt_prog_compiler_static='${wl}-a ${wl}archive'
8058       ;;
8059
8060     irix5* | irix6* | nonstopux*)
8061       lt_prog_compiler_wl='-Wl,'
8062       # PIC (with -KPIC) is the default.
8063       lt_prog_compiler_static='-non_shared'
8064       ;;
8065
8066     linux* | k*bsd*-gnu)
8067       case $cc_basename in
8068       # old Intel for x86_64 which still supported -KPIC.
8069       ecc*)
8070         lt_prog_compiler_wl='-Wl,'
8071         lt_prog_compiler_pic='-KPIC'
8072         lt_prog_compiler_static='-static'
8073         ;;
8074       # icc used to be incompatible with GCC.
8075       # ICC 10 doesn't accept -KPIC any more.
8076       icc* | ifort*)
8077         lt_prog_compiler_wl='-Wl,'
8078         lt_prog_compiler_pic='-fPIC'
8079         lt_prog_compiler_static='-static'
8080         ;;
8081       # Lahey Fortran 8.1.
8082       lf95*)
8083         lt_prog_compiler_wl='-Wl,'
8084         lt_prog_compiler_pic='--shared'
8085         lt_prog_compiler_static='--static'
8086         ;;
8087       pgcc* | pgf77* | pgf90* | pgf95*)
8088         # Portland Group compilers (*not* the Pentium gcc compiler,
8089         # which looks to be a dead project)
8090         lt_prog_compiler_wl='-Wl,'
8091         lt_prog_compiler_pic='-fpic'
8092         lt_prog_compiler_static='-Bstatic'
8093         ;;
8094       ccc*)
8095         lt_prog_compiler_wl='-Wl,'
8096         # All Alpha code is PIC.
8097         lt_prog_compiler_static='-non_shared'
8098         ;;
8099       xl*)
8100         # IBM XL C 8.0/Fortran 10.1 on PPC
8101         lt_prog_compiler_wl='-Wl,'
8102         lt_prog_compiler_pic='-qpic'
8103         lt_prog_compiler_static='-qstaticlink'
8104         ;;
8105       *)
8106         case `$CC -V 2>&1 | sed 5q` in
8107         *Sun\ C*)
8108           # Sun C 5.9
8109           lt_prog_compiler_pic='-KPIC'
8110           lt_prog_compiler_static='-Bstatic'
8111           lt_prog_compiler_wl='-Wl,'
8112           ;;
8113         *Sun\ F*)
8114           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8115           lt_prog_compiler_pic='-KPIC'
8116           lt_prog_compiler_static='-Bstatic'
8117           lt_prog_compiler_wl=''
8118           ;;
8119         esac
8120         ;;
8121       esac
8122       ;;
8123
8124     newsos6)
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       ;;
8128
8129     *nto* | *qnx*)
8130       # QNX uses GNU C++, but need to define -shared option too, otherwise
8131       # it will coredump.
8132       lt_prog_compiler_pic='-fPIC -shared'
8133       ;;
8134
8135     osf3* | osf4* | osf5*)
8136       lt_prog_compiler_wl='-Wl,'
8137       # All OSF/1 code is PIC.
8138       lt_prog_compiler_static='-non_shared'
8139       ;;
8140
8141     rdos*)
8142       lt_prog_compiler_static='-non_shared'
8143       ;;
8144
8145     solaris*)
8146       lt_prog_compiler_pic='-KPIC'
8147       lt_prog_compiler_static='-Bstatic'
8148       case $cc_basename in
8149       f77* | f90* | f95*)
8150         lt_prog_compiler_wl='-Qoption ld ';;
8151       *)
8152         lt_prog_compiler_wl='-Wl,';;
8153       esac
8154       ;;
8155
8156     sunos4*)
8157       lt_prog_compiler_wl='-Qoption ld '
8158       lt_prog_compiler_pic='-PIC'
8159       lt_prog_compiler_static='-Bstatic'
8160       ;;
8161
8162     sysv4 | sysv4.2uw2* | sysv4.3*)
8163       lt_prog_compiler_wl='-Wl,'
8164       lt_prog_compiler_pic='-KPIC'
8165       lt_prog_compiler_static='-Bstatic'
8166       ;;
8167
8168     sysv4*MP*)
8169       if test -d /usr/nec ;then
8170         lt_prog_compiler_pic='-Kconform_pic'
8171         lt_prog_compiler_static='-Bstatic'
8172       fi
8173       ;;
8174
8175     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8176       lt_prog_compiler_wl='-Wl,'
8177       lt_prog_compiler_pic='-KPIC'
8178       lt_prog_compiler_static='-Bstatic'
8179       ;;
8180
8181     unicos*)
8182       lt_prog_compiler_wl='-Wl,'
8183       lt_prog_compiler_can_build_shared=no
8184       ;;
8185
8186     uts4*)
8187       lt_prog_compiler_pic='-pic'
8188       lt_prog_compiler_static='-Bstatic'
8189       ;;
8190
8191     *)
8192       lt_prog_compiler_can_build_shared=no
8193       ;;
8194     esac
8195   fi
8196
8197 case $host_os in
8198   # For platforms which do not support PIC, -DPIC is meaningless:
8199   *djgpp*)
8200     lt_prog_compiler_pic=
8201     ;;
8202   *)
8203     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8204     ;;
8205 esac
8206 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8207 $as_echo "$lt_prog_compiler_pic" >&6; }
8208
8209
8210
8211
8212
8213
8214 #
8215 # Check to make sure the PIC flag actually works.
8216 #
8217 if test -n "$lt_prog_compiler_pic"; then
8218   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8219 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8220 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8221   $as_echo_n "(cached) " >&6
8222 else
8223   lt_cv_prog_compiler_pic_works=no
8224    ac_outfile=conftest.$ac_objext
8225    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8227    # Insert the option either (1) after the last *FLAGS variable, or
8228    # (2) before a word containing "conftest.", or (3) at the end.
8229    # Note that $ac_compile itself does not contain backslashes and begins
8230    # with a dollar sign (not a hyphen), so the echo should work correctly.
8231    # The option is referenced via a variable to avoid confusing sed.
8232    lt_compile=`echo "$ac_compile" | $SED \
8233    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235    -e 's:$: $lt_compiler_flag:'`
8236    (eval echo "\"\$as_me:8236: $lt_compile\"" >&5)
8237    (eval "$lt_compile" 2>conftest.err)
8238    ac_status=$?
8239    cat conftest.err >&5
8240    echo "$as_me:8240: \$? = $ac_status" >&5
8241    if (exit $ac_status) && test -s "$ac_outfile"; then
8242      # The compiler can only warn and ignore the option if not recognized
8243      # So say no if there are warnings other than the usual output.
8244      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8245      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8247        lt_cv_prog_compiler_pic_works=yes
8248      fi
8249    fi
8250    $RM conftest*
8251
8252 fi
8253 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8254 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8255
8256 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8257     case $lt_prog_compiler_pic in
8258      "" | " "*) ;;
8259      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8260      esac
8261 else
8262     lt_prog_compiler_pic=
8263      lt_prog_compiler_can_build_shared=no
8264 fi
8265
8266 fi
8267
8268
8269
8270
8271
8272
8273 #
8274 # Check to make sure the static flag actually works.
8275 #
8276 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8277 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8279 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8280   $as_echo_n "(cached) " >&6
8281 else
8282   lt_cv_prog_compiler_static_works=no
8283    save_LDFLAGS="$LDFLAGS"
8284    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8285    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8286    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8287      # The linker can only warn and ignore the option if not recognized
8288      # So say no if there are warnings
8289      if test -s conftest.err; then
8290        # Append any errors to the config.log.
8291        cat conftest.err 1>&5
8292        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8293        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294        if diff conftest.exp conftest.er2 >/dev/null; then
8295          lt_cv_prog_compiler_static_works=yes
8296        fi
8297      else
8298        lt_cv_prog_compiler_static_works=yes
8299      fi
8300    fi
8301    $RM -r conftest*
8302    LDFLAGS="$save_LDFLAGS"
8303
8304 fi
8305 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8306 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8307
8308 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8309     :
8310 else
8311     lt_prog_compiler_static=
8312 fi
8313
8314
8315
8316
8317
8318
8319
8320   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8323   $as_echo_n "(cached) " >&6
8324 else
8325   lt_cv_prog_compiler_c_o=no
8326    $RM -r conftest 2>/dev/null
8327    mkdir conftest
8328    cd conftest
8329    mkdir out
8330    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331
8332    lt_compiler_flag="-o out/conftest2.$ac_objext"
8333    # Insert the option either (1) after the last *FLAGS variable, or
8334    # (2) before a word containing "conftest.", or (3) at the end.
8335    # Note that $ac_compile itself does not contain backslashes and begins
8336    # with a dollar sign (not a hyphen), so the echo should work correctly.
8337    lt_compile=`echo "$ac_compile" | $SED \
8338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340    -e 's:$: $lt_compiler_flag:'`
8341    (eval echo "\"\$as_me:8341: $lt_compile\"" >&5)
8342    (eval "$lt_compile" 2>out/conftest.err)
8343    ac_status=$?
8344    cat out/conftest.err >&5
8345    echo "$as_me:8345: \$? = $ac_status" >&5
8346    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8347    then
8348      # The compiler can only warn and ignore the option if not recognized
8349      # So say no if there are warnings
8350      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8351      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353        lt_cv_prog_compiler_c_o=yes
8354      fi
8355    fi
8356    chmod u+w . 2>&5
8357    $RM conftest*
8358    # SGI C++ compiler will create directory out/ii_files/ for
8359    # template instantiation
8360    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361    $RM out/* && rmdir out
8362    cd ..
8363    $RM -r conftest
8364    $RM conftest*
8365
8366 fi
8367 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8369
8370
8371
8372
8373
8374
8375   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8377 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8378   $as_echo_n "(cached) " >&6
8379 else
8380   lt_cv_prog_compiler_c_o=no
8381    $RM -r conftest 2>/dev/null
8382    mkdir conftest
8383    cd conftest
8384    mkdir out
8385    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8386
8387    lt_compiler_flag="-o out/conftest2.$ac_objext"
8388    # Insert the option either (1) after the last *FLAGS variable, or
8389    # (2) before a word containing "conftest.", or (3) at the end.
8390    # Note that $ac_compile itself does not contain backslashes and begins
8391    # with a dollar sign (not a hyphen), so the echo should work correctly.
8392    lt_compile=`echo "$ac_compile" | $SED \
8393    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395    -e 's:$: $lt_compiler_flag:'`
8396    (eval echo "\"\$as_me:8396: $lt_compile\"" >&5)
8397    (eval "$lt_compile" 2>out/conftest.err)
8398    ac_status=$?
8399    cat out/conftest.err >&5
8400    echo "$as_me:8400: \$? = $ac_status" >&5
8401    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8402    then
8403      # The compiler can only warn and ignore the option if not recognized
8404      # So say no if there are warnings
8405      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8406      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8407      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8408        lt_cv_prog_compiler_c_o=yes
8409      fi
8410    fi
8411    chmod u+w . 2>&5
8412    $RM conftest*
8413    # SGI C++ compiler will create directory out/ii_files/ for
8414    # template instantiation
8415    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8416    $RM out/* && rmdir out
8417    cd ..
8418    $RM -r conftest
8419    $RM conftest*
8420
8421 fi
8422 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8424
8425
8426
8427
8428 hard_links="nottested"
8429 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8430   # do not overwrite the value of need_locks provided by the user
8431   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8432 $as_echo_n "checking if we can lock with hard links... " >&6; }
8433   hard_links=yes
8434   $RM conftest*
8435   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8436   touch conftest.a
8437   ln conftest.a conftest.b 2>&5 || hard_links=no
8438   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8439   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8440 $as_echo "$hard_links" >&6; }
8441   if test "$hard_links" = no; then
8442     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8443 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8444     need_locks=warn
8445   fi
8446 else
8447   need_locks=no
8448 fi
8449
8450
8451
8452
8453
8454
8455   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8456 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8457
8458   runpath_var=
8459   allow_undefined_flag=
8460   always_export_symbols=no
8461   archive_cmds=
8462   archive_expsym_cmds=
8463   compiler_needs_object=no
8464   enable_shared_with_static_runtimes=no
8465   export_dynamic_flag_spec=
8466   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8467   hardcode_automatic=no
8468   hardcode_direct=no
8469   hardcode_direct_absolute=no
8470   hardcode_libdir_flag_spec=
8471   hardcode_libdir_flag_spec_ld=
8472   hardcode_libdir_separator=
8473   hardcode_minus_L=no
8474   hardcode_shlibpath_var=unsupported
8475   inherit_rpath=no
8476   link_all_deplibs=unknown
8477   module_cmds=
8478   module_expsym_cmds=
8479   old_archive_from_new_cmds=
8480   old_archive_from_expsyms_cmds=
8481   thread_safe_flag_spec=
8482   whole_archive_flag_spec=
8483   # include_expsyms should be a list of space-separated symbols to be *always*
8484   # included in the symbol list
8485   include_expsyms=
8486   # exclude_expsyms can be an extended regexp of symbols to exclude
8487   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8488   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8489   # as well as any symbol that contains `d'.
8490   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8491   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8492   # platforms (ab)use it in PIC code, but their linkers get confused if
8493   # the symbol is explicitly referenced.  Since portable code cannot
8494   # rely on this symbol name, it's probably fine to never include it in
8495   # preloaded symbol tables.
8496   # Exclude shared library initialization/finalization symbols.
8497   extract_expsyms_cmds=
8498
8499   case $host_os in
8500   cygwin* | mingw* | pw32* | cegcc*)
8501     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8502     # When not using gcc, we currently assume that we are using
8503     # Microsoft Visual C++.
8504     if test "$GCC" != yes; then
8505       with_gnu_ld=no
8506     fi
8507     ;;
8508   interix*)
8509     # we just hope/assume this is gcc and not c89 (= MSVC++)
8510     with_gnu_ld=yes
8511     ;;
8512   openbsd*)
8513     with_gnu_ld=no
8514     ;;
8515   esac
8516
8517   ld_shlibs=yes
8518   if test "$with_gnu_ld" = yes; then
8519     # If archive_cmds runs LD, not CC, wlarc should be empty
8520     wlarc='${wl}'
8521
8522     # Set some defaults for GNU ld with shared library support. These
8523     # are reset later if shared libraries are not supported. Putting them
8524     # here allows them to be overridden if necessary.
8525     runpath_var=LD_RUN_PATH
8526     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8527     export_dynamic_flag_spec='${wl}--export-dynamic'
8528     # ancient GNU ld didn't support --whole-archive et. al.
8529     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8530       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8531     else
8532       whole_archive_flag_spec=
8533     fi
8534     supports_anon_versioning=no
8535     case `$LD -v 2>&1` in
8536       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8537       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8538       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8539       *\ 2.11.*) ;; # other 2.11 versions
8540       *) supports_anon_versioning=yes ;;
8541     esac
8542
8543     # See if GNU ld supports shared libraries.
8544     case $host_os in
8545     aix[3-9]*)
8546       # On AIX/PPC, the GNU linker is very broken
8547       if test "$host_cpu" != ia64; then
8548         ld_shlibs=no
8549         cat <<_LT_EOF 1>&2
8550
8551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8552 *** to be unable to reliably create shared libraries on AIX.
8553 *** Therefore, libtool is disabling shared libraries support.  If you
8554 *** really care for shared libraries, you may want to modify your PATH
8555 *** so that a non-GNU linker is found, and then restart.
8556
8557 _LT_EOF
8558       fi
8559       ;;
8560
8561     amigaos*)
8562       case $host_cpu in
8563       powerpc)
8564             # see comment about AmigaOS4 .so support
8565             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566             archive_expsym_cmds=''
8567         ;;
8568       m68k)
8569             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)'
8570             hardcode_libdir_flag_spec='-L$libdir'
8571             hardcode_minus_L=yes
8572         ;;
8573       esac
8574       ;;
8575
8576     beos*)
8577       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578         allow_undefined_flag=unsupported
8579         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8580         # support --undefined.  This deserves some investigation.  FIXME
8581         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582       else
8583         ld_shlibs=no
8584       fi
8585       ;;
8586
8587     cygwin* | mingw* | pw32* | cegcc*)
8588       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8589       # as there is no search path for DLLs.
8590       hardcode_libdir_flag_spec='-L$libdir'
8591       allow_undefined_flag=unsupported
8592       always_export_symbols=no
8593       enable_shared_with_static_runtimes=yes
8594       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8595
8596       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8597         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598         # If the export-symbols file already is a .def file (1st line
8599         # is EXPORTS), use it as is; otherwise, prepend...
8600         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8601           cp $export_symbols $output_objdir/$soname.def;
8602         else
8603           echo EXPORTS > $output_objdir/$soname.def;
8604           cat $export_symbols >> $output_objdir/$soname.def;
8605         fi~
8606         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607       else
8608         ld_shlibs=no
8609       fi
8610       ;;
8611
8612     interix[3-9]*)
8613       hardcode_direct=no
8614       hardcode_shlibpath_var=no
8615       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616       export_dynamic_flag_spec='${wl}-E'
8617       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8618       # Instead, shared libraries are loaded at an image base (0x10000000 by
8619       # default) and relocated if they conflict, which is a slow very memory
8620       # consuming and fragmenting process.  To avoid this, we pick a random,
8621       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8622       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8623       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8624       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'
8625       ;;
8626
8627     gnu* | linux* | tpf* | k*bsd*-gnu)
8628       tmp_diet=no
8629       if test "$host_os" = linux-dietlibc; then
8630         case $cc_basename in
8631           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8632         esac
8633       fi
8634       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8635          && test "$tmp_diet" = no
8636       then
8637         tmp_addflag=
8638         tmp_sharedflag='-shared'
8639         case $cc_basename,$host_cpu in
8640         pgcc*)                          # Portland Group C compiler
8641           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'
8642           tmp_addflag=' $pic_flag'
8643           ;;
8644         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8645           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'
8646           tmp_addflag=' $pic_flag -Mnomain' ;;
8647         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8648           tmp_addflag=' -i_dynamic' ;;
8649         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8650           tmp_addflag=' -i_dynamic -nofor_main' ;;
8651         ifc* | ifort*)                  # Intel Fortran compiler
8652           tmp_addflag=' -nofor_main' ;;
8653         lf95*)                          # Lahey Fortran 8.1
8654           whole_archive_flag_spec=
8655           tmp_sharedflag='--shared' ;;
8656         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8657           tmp_sharedflag='-qmkshrobj'
8658           tmp_addflag= ;;
8659         esac
8660         case `$CC -V 2>&1 | sed 5q` in
8661         *Sun\ C*)                       # Sun C 5.9
8662           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'
8663           compiler_needs_object=yes
8664           tmp_sharedflag='-G' ;;
8665         *Sun\ F*)                       # Sun Fortran 8.3
8666           tmp_sharedflag='-G' ;;
8667         esac
8668         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669
8670         if test "x$supports_anon_versioning" = xyes; then
8671           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8672             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673             echo "local: *; };" >> $output_objdir/$libname.ver~
8674             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8675         fi
8676
8677         case $cc_basename in
8678         xlf*)
8679           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8681           hardcode_libdir_flag_spec=
8682           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8683           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8684           if test "x$supports_anon_versioning" = xyes; then
8685             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687               echo "local: *; };" >> $output_objdir/$libname.ver~
8688               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8689           fi
8690           ;;
8691         esac
8692       else
8693         ld_shlibs=no
8694       fi
8695       ;;
8696
8697     netbsd*)
8698       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8700         wlarc=
8701       else
8702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8704       fi
8705       ;;
8706
8707     solaris*)
8708       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8709         ld_shlibs=no
8710         cat <<_LT_EOF 1>&2
8711
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems.  Therefore, libtool
8714 *** is disabling shared libraries support.  We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer.  Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8718
8719 _LT_EOF
8720       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       else
8724         ld_shlibs=no
8725       fi
8726       ;;
8727
8728     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729       case `$LD -v 2>&1` in
8730         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8731         ld_shlibs=no
8732         cat <<_LT_EOF 1>&2
8733
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8736 *** is disabling shared libraries support.  We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8740
8741 _LT_EOF
8742         ;;
8743         *)
8744           # For security reasons, it is highly recommended that you always
8745           # use absolute paths for naming shared libraries, and exclude the
8746           # DT_RUNPATH tag from executables and libraries.  But doing so
8747           # requires that you compile everything twice, which is a pain.
8748           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752           else
8753             ld_shlibs=no
8754           fi
8755         ;;
8756       esac
8757       ;;
8758
8759     sunos4*)
8760       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8761       wlarc=
8762       hardcode_direct=yes
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     *)
8767       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770       else
8771         ld_shlibs=no
8772       fi
8773       ;;
8774     esac
8775
8776     if test "$ld_shlibs" = no; then
8777       runpath_var=
8778       hardcode_libdir_flag_spec=
8779       export_dynamic_flag_spec=
8780       whole_archive_flag_spec=
8781     fi
8782   else
8783     # PORTME fill in a description of your system's linker (not GNU ld)
8784     case $host_os in
8785     aix3*)
8786       allow_undefined_flag=unsupported
8787       always_export_symbols=yes
8788       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'
8789       # Note: this linker hardcodes the directories in LIBPATH if there
8790       # are no directories specified by -L.
8791       hardcode_minus_L=yes
8792       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793         # Neither direct hardcoding nor static linking is supported with a
8794         # broken collect2.
8795         hardcode_direct=unsupported
8796       fi
8797       ;;
8798
8799     aix[4-9]*)
8800       if test "$host_cpu" = ia64; then
8801         # On IA64, the linker does run time linking by default, so we don't
8802         # have to do anything special.
8803         aix_use_runtimelinking=no
8804         exp_sym_flag='-Bexport'
8805         no_entry_flag=""
8806       else
8807         # If we're using GNU nm, then we don't want the "-C" option.
8808         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8810           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'
8811         else
8812           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'
8813         fi
8814         aix_use_runtimelinking=no
8815
8816         # Test if we are trying to use run time linking or normal
8817         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8818         # need to do runtime linking.
8819         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8820           for ld_flag in $LDFLAGS; do
8821           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8822             aix_use_runtimelinking=yes
8823             break
8824           fi
8825           done
8826           ;;
8827         esac
8828
8829         exp_sym_flag='-bexport'
8830         no_entry_flag='-bnoentry'
8831       fi
8832
8833       # When large executables or shared objects are built, AIX ld can
8834       # have problems creating the table of contents.  If linking a library
8835       # or program results in "error TOC overflow" add -mminimal-toc to
8836       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8837       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8838
8839       archive_cmds=''
8840       hardcode_direct=yes
8841       hardcode_direct_absolute=yes
8842       hardcode_libdir_separator=':'
8843       link_all_deplibs=yes
8844       file_list_spec='${wl}-f,'
8845
8846       if test "$GCC" = yes; then
8847         case $host_os in aix4.[012]|aix4.[012].*)
8848         # We only want to do this on AIX 4.2 and lower, the check
8849         # below for broken collect2 doesn't work under 4.3+
8850           collect2name=`${CC} -print-prog-name=collect2`
8851           if test -f "$collect2name" &&
8852            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8853           then
8854           # We have reworked collect2
8855           :
8856           else
8857           # We have old collect2
8858           hardcode_direct=unsupported
8859           # It fails to find uninstalled libraries when the uninstalled
8860           # path is not listed in the libpath.  Setting hardcode_minus_L
8861           # to unsupported forces relinking
8862           hardcode_minus_L=yes
8863           hardcode_libdir_flag_spec='-L$libdir'
8864           hardcode_libdir_separator=
8865           fi
8866           ;;
8867         esac
8868         shared_flag='-shared'
8869         if test "$aix_use_runtimelinking" = yes; then
8870           shared_flag="$shared_flag "'${wl}-G'
8871         fi
8872       else
8873         # not using gcc
8874         if test "$host_cpu" = ia64; then
8875         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8876         # chokes on -Wl,-G. The following line is correct:
8877           shared_flag='-G'
8878         else
8879           if test "$aix_use_runtimelinking" = yes; then
8880             shared_flag='${wl}-G'
8881           else
8882             shared_flag='${wl}-bM:SRE'
8883           fi
8884         fi
8885       fi
8886
8887       export_dynamic_flag_spec='${wl}-bexpall'
8888       # It seems that -bexpall does not export symbols beginning with
8889       # underscore (_), so it is better to generate a list of symbols to export.
8890       always_export_symbols=yes
8891       if test "$aix_use_runtimelinking" = yes; then
8892         # Warning - without using the other runtime loading flags (-brtl),
8893         # -berok will link without error, but may produce a broken library.
8894         allow_undefined_flag='-berok'
8895         # Determine the default libpath from the value encoded in an
8896         # empty executable.
8897         cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903
8904 int
8905 main ()
8906 {
8907
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920   (eval "$ac_link") 2>conftest.er1
8921   ac_status=$?
8922   grep -v '^ *+' conftest.er1 >conftest.err
8923   rm -f conftest.er1
8924   cat conftest.err >&5
8925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } && {
8927          test -z "$ac_c_werror_flag" ||
8928          test ! -s conftest.err
8929        } && test -s conftest$ac_exeext && {
8930          test "$cross_compiling" = yes ||
8931          $as_test_x conftest$ac_exeext
8932        }; then
8933
8934 lt_aix_libpath_sed='
8935     /Import File Strings/,/^$/ {
8936         /^0/ {
8937             s/^0  *\(.*\)$/\1/
8938             p
8939         }
8940     }'
8941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942 # Check for a 64-bit object if we didn't find anything.
8943 if test -z "$aix_libpath"; then
8944   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945 fi
8946 else
8947   $as_echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950
8951 fi
8952
8953 rm -rf conftest.dSYM
8954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955       conftest$ac_exeext conftest.$ac_ext
8956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8957
8958         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8959         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"
8960       else
8961         if test "$host_cpu" = ia64; then
8962           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8963           allow_undefined_flag="-z nodefs"
8964           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"
8965         else
8966          # Determine the default libpath from the value encoded in an
8967          # empty executable.
8968          cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h.  */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h.  */
8974
8975 int
8976 main ()
8977 {
8978
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8985 case "(($ac_try" in
8986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987   *) ac_try_echo=$ac_try;;
8988 esac
8989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8990 $as_echo "$ac_try_echo") >&5
8991   (eval "$ac_link") 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } && {
8998          test -z "$ac_c_werror_flag" ||
8999          test ! -s conftest.err
9000        } && test -s conftest$ac_exeext && {
9001          test "$cross_compiling" = yes ||
9002          $as_test_x conftest$ac_exeext
9003        }; then
9004
9005 lt_aix_libpath_sed='
9006     /Import File Strings/,/^$/ {
9007         /^0/ {
9008             s/^0  *\(.*\)$/\1/
9009             p
9010         }
9011     }'
9012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9013 # Check for a 64-bit object if we didn't find anything.
9014 if test -z "$aix_libpath"; then
9015   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9016 fi
9017 else
9018   $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021
9022 fi
9023
9024 rm -rf conftest.dSYM
9025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026       conftest$ac_exeext conftest.$ac_ext
9027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9028
9029          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9030           # Warning - without using the other run time loading flags,
9031           # -berok will link without error, but may produce a broken library.
9032           no_undefined_flag=' ${wl}-bernotok'
9033           allow_undefined_flag=' ${wl}-berok'
9034           # Exported symbols can be pulled into shared objects from archives
9035           whole_archive_flag_spec='$convenience'
9036           archive_cmds_need_lc=yes
9037           # This is similar to how AIX traditionally builds its shared libraries.
9038           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'
9039         fi
9040       fi
9041       ;;
9042
9043     amigaos*)
9044       case $host_cpu in
9045       powerpc)
9046             # see comment about AmigaOS4 .so support
9047             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048             archive_expsym_cmds=''
9049         ;;
9050       m68k)
9051             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)'
9052             hardcode_libdir_flag_spec='-L$libdir'
9053             hardcode_minus_L=yes
9054         ;;
9055       esac
9056       ;;
9057
9058     bsdi[45]*)
9059       export_dynamic_flag_spec=-rdynamic
9060       ;;
9061
9062     cygwin* | mingw* | pw32* | cegcc*)
9063       # When not using gcc, we currently assume that we are using
9064       # Microsoft Visual C++.
9065       # hardcode_libdir_flag_spec is actually meaningless, as there is
9066       # no search path for DLLs.
9067       hardcode_libdir_flag_spec=' '
9068       allow_undefined_flag=unsupported
9069       # Tell ltmain to make .lib files, not .a files.
9070       libext=lib
9071       # Tell ltmain to make .dll files, not .so files.
9072       shrext_cmds=".dll"
9073       # FIXME: Setting linknames here is a bad hack.
9074       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9075       # The linker will automatically build a .lib file if we build a DLL.
9076       old_archive_from_new_cmds='true'
9077       # FIXME: Should let the user specify the lib program.
9078       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9079       fix_srcfile_path='`cygpath -w "$srcfile"`'
9080       enable_shared_with_static_runtimes=yes
9081       ;;
9082
9083     darwin* | rhapsody*)
9084
9085
9086   archive_cmds_need_lc=no
9087   hardcode_direct=no
9088   hardcode_automatic=yes
9089   hardcode_shlibpath_var=unsupported
9090   whole_archive_flag_spec=''
9091   link_all_deplibs=yes
9092   allow_undefined_flag="$_lt_dar_allow_undefined"
9093   case $cc_basename in
9094      ifort*) _lt_dar_can_shared=yes ;;
9095      *) _lt_dar_can_shared=$GCC ;;
9096   esac
9097   if test "$_lt_dar_can_shared" = "yes"; then
9098     output_verbose_link_cmd=echo
9099     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9100     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9101     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}"
9102     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}"
9103
9104   else
9105   ld_shlibs=no
9106   fi
9107
9108       ;;
9109
9110     dgux*)
9111       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112       hardcode_libdir_flag_spec='-L$libdir'
9113       hardcode_shlibpath_var=no
9114       ;;
9115
9116     freebsd1*)
9117       ld_shlibs=no
9118       ;;
9119
9120     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9121     # support.  Future versions do this automatically, but an explicit c++rt0.o
9122     # does not break anything, and helps significantly (at the cost of a little
9123     # extra space).
9124     freebsd2.2*)
9125       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9126       hardcode_libdir_flag_spec='-R$libdir'
9127       hardcode_direct=yes
9128       hardcode_shlibpath_var=no
9129       ;;
9130
9131     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9132     freebsd2*)
9133       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134       hardcode_direct=yes
9135       hardcode_minus_L=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9140     freebsd* | dragonfly*)
9141       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9142       hardcode_libdir_flag_spec='-R$libdir'
9143       hardcode_direct=yes
9144       hardcode_shlibpath_var=no
9145       ;;
9146
9147     hpux9*)
9148       if test "$GCC" = yes; then
9149         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'
9150       else
9151         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'
9152       fi
9153       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9154       hardcode_libdir_separator=:
9155       hardcode_direct=yes
9156
9157       # hardcode_minus_L: Not really in the search PATH,
9158       # but as the default location of the library.
9159       hardcode_minus_L=yes
9160       export_dynamic_flag_spec='${wl}-E'
9161       ;;
9162
9163     hpux10*)
9164       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9165         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166       else
9167         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9168       fi
9169       if test "$with_gnu_ld" = no; then
9170         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171         hardcode_libdir_flag_spec_ld='+b $libdir'
9172         hardcode_libdir_separator=:
9173         hardcode_direct=yes
9174         hardcode_direct_absolute=yes
9175         export_dynamic_flag_spec='${wl}-E'
9176         # hardcode_minus_L: Not really in the search PATH,
9177         # but as the default location of the library.
9178         hardcode_minus_L=yes
9179       fi
9180       ;;
9181
9182     hpux11*)
9183       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9184         case $host_cpu in
9185         hppa*64*)
9186           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187           ;;
9188         ia64*)
9189           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9190           ;;
9191         *)
9192           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9193           ;;
9194         esac
9195       else
9196         case $host_cpu in
9197         hppa*64*)
9198           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9199           ;;
9200         ia64*)
9201           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9202           ;;
9203         *)
9204           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9205           ;;
9206         esac
9207       fi
9208       if test "$with_gnu_ld" = no; then
9209         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9210         hardcode_libdir_separator=:
9211
9212         case $host_cpu in
9213         hppa*64*|ia64*)
9214           hardcode_direct=no
9215           hardcode_shlibpath_var=no
9216           ;;
9217         *)
9218           hardcode_direct=yes
9219           hardcode_direct_absolute=yes
9220           export_dynamic_flag_spec='${wl}-E'
9221
9222           # hardcode_minus_L: Not really in the search PATH,
9223           # but as the default location of the library.
9224           hardcode_minus_L=yes
9225           ;;
9226         esac
9227       fi
9228       ;;
9229
9230     irix5* | irix6* | nonstopux*)
9231       if test "$GCC" = yes; then
9232         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'
9233         # Try to use the -exported_symbol ld option, if it does not
9234         # work, assume that -exports_file does not work either and
9235         # implicitly export all symbols.
9236         save_LDFLAGS="$LDFLAGS"
9237         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9238         cat >conftest.$ac_ext <<_ACEOF
9239 int foo(void) {}
9240 _ACEOF
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (ac_try="$ac_link"
9243 case "(($ac_try" in
9244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245   *) ac_try_echo=$ac_try;;
9246 esac
9247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9248 $as_echo "$ac_try_echo") >&5
9249   (eval "$ac_link") 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } && {
9256          test -z "$ac_c_werror_flag" ||
9257          test ! -s conftest.err
9258        } && test -s conftest$ac_exeext && {
9259          test "$cross_compiling" = yes ||
9260          $as_test_x conftest$ac_exeext
9261        }; then
9262   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'
9263
9264 else
9265   $as_echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268
9269 fi
9270
9271 rm -rf conftest.dSYM
9272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9273       conftest$ac_exeext conftest.$ac_ext
9274         LDFLAGS="$save_LDFLAGS"
9275       else
9276         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'
9277         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'
9278       fi
9279       archive_cmds_need_lc='no'
9280       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9281       hardcode_libdir_separator=:
9282       inherit_rpath=yes
9283       link_all_deplibs=yes
9284       ;;
9285
9286     netbsd*)
9287       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9289       else
9290         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9291       fi
9292       hardcode_libdir_flag_spec='-R$libdir'
9293       hardcode_direct=yes
9294       hardcode_shlibpath_var=no
9295       ;;
9296
9297     newsos6)
9298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299       hardcode_direct=yes
9300       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301       hardcode_libdir_separator=:
9302       hardcode_shlibpath_var=no
9303       ;;
9304
9305     *nto* | *qnx*)
9306       ;;
9307
9308     openbsd*)
9309       if test -f /usr/libexec/ld.so; then
9310         hardcode_direct=yes
9311         hardcode_shlibpath_var=no
9312         hardcode_direct_absolute=yes
9313         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9314           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9316           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9317           export_dynamic_flag_spec='${wl}-E'
9318         else
9319           case $host_os in
9320            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9321              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322              hardcode_libdir_flag_spec='-R$libdir'
9323              ;;
9324            *)
9325              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9326              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327              ;;
9328           esac
9329         fi
9330       else
9331         ld_shlibs=no
9332       fi
9333       ;;
9334
9335     os2*)
9336       hardcode_libdir_flag_spec='-L$libdir'
9337       hardcode_minus_L=yes
9338       allow_undefined_flag=unsupported
9339       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'
9340       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9341       ;;
9342
9343     osf3*)
9344       if test "$GCC" = yes; then
9345         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9346         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'
9347       else
9348         allow_undefined_flag=' -expect_unresolved \*'
9349         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'
9350       fi
9351       archive_cmds_need_lc='no'
9352       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353       hardcode_libdir_separator=:
9354       ;;
9355
9356     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9357       if test "$GCC" = yes; then
9358         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359         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'
9360         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9361       else
9362         allow_undefined_flag=' -expect_unresolved \*'
9363         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'
9364         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~
9365         $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'
9366
9367         # Both c and cxx compiler support -rpath directly
9368         hardcode_libdir_flag_spec='-rpath $libdir'
9369       fi
9370       archive_cmds_need_lc='no'
9371       hardcode_libdir_separator=:
9372       ;;
9373
9374     solaris*)
9375       no_undefined_flag=' -z defs'
9376       if test "$GCC" = yes; then
9377         wlarc='${wl}'
9378         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9381       else
9382         case `$CC -V 2>&1` in
9383         *"Compilers 5.0"*)
9384           wlarc=''
9385           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9388           ;;
9389         *)
9390           wlarc='${wl}'
9391           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9392           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9394           ;;
9395         esac
9396       fi
9397       hardcode_libdir_flag_spec='-R$libdir'
9398       hardcode_shlibpath_var=no
9399       case $host_os in
9400       solaris2.[0-5] | solaris2.[0-5].*) ;;
9401       *)
9402         # The compiler driver will combine and reorder linker options,
9403         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9404         # but is careful enough not to reorder.
9405         # Supported since Solaris 2.6 (maybe 2.5.1?)
9406         if test "$GCC" = yes; then
9407           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9408         else
9409           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9410         fi
9411         ;;
9412       esac
9413       link_all_deplibs=yes
9414       ;;
9415
9416     sunos4*)
9417       if test "x$host_vendor" = xsequent; then
9418         # Use $CC to link under sequent, because it throws in some extra .o
9419         # files that make .init and .fini sections work.
9420         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9421       else
9422         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9423       fi
9424       hardcode_libdir_flag_spec='-L$libdir'
9425       hardcode_direct=yes
9426       hardcode_minus_L=yes
9427       hardcode_shlibpath_var=no
9428       ;;
9429
9430     sysv4)
9431       case $host_vendor in
9432         sni)
9433           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434           hardcode_direct=yes # is this really true???
9435         ;;
9436         siemens)
9437           ## LD is ld it makes a PLAMLIB
9438           ## CC just makes a GrossModule.
9439           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9440           reload_cmds='$CC -r -o $output$reload_objs'
9441           hardcode_direct=no
9442         ;;
9443         motorola)
9444           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9446         ;;
9447       esac
9448       runpath_var='LD_RUN_PATH'
9449       hardcode_shlibpath_var=no
9450       ;;
9451
9452     sysv4.3*)
9453       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454       hardcode_shlibpath_var=no
9455       export_dynamic_flag_spec='-Bexport'
9456       ;;
9457
9458     sysv4*MP*)
9459       if test -d /usr/nec; then
9460         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461         hardcode_shlibpath_var=no
9462         runpath_var=LD_RUN_PATH
9463         hardcode_runpath_var=yes
9464         ld_shlibs=yes
9465       fi
9466       ;;
9467
9468     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9469       no_undefined_flag='${wl}-z,text'
9470       archive_cmds_need_lc=no
9471       hardcode_shlibpath_var=no
9472       runpath_var='LD_RUN_PATH'
9473
9474       if test "$GCC" = yes; then
9475         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477       else
9478         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480       fi
9481       ;;
9482
9483     sysv5* | sco3.2v5* | sco5v6*)
9484       # Note: We can NOT use -z defs as we might desire, because we do not
9485       # link with -lc, and that would cause any symbols used from libc to
9486       # always be unresolved, which means just about no library would
9487       # ever link correctly.  If we're not using GNU ld we use -z text
9488       # though, which does catch some bad symbols but isn't as heavy-handed
9489       # as -z defs.
9490       no_undefined_flag='${wl}-z,text'
9491       allow_undefined_flag='${wl}-z,nodefs'
9492       archive_cmds_need_lc=no
9493       hardcode_shlibpath_var=no
9494       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9495       hardcode_libdir_separator=':'
9496       link_all_deplibs=yes
9497       export_dynamic_flag_spec='${wl}-Bexport'
9498       runpath_var='LD_RUN_PATH'
9499
9500       if test "$GCC" = yes; then
9501         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503       else
9504         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506       fi
9507       ;;
9508
9509     uts4*)
9510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511       hardcode_libdir_flag_spec='-L$libdir'
9512       hardcode_shlibpath_var=no
9513       ;;
9514
9515     *)
9516       ld_shlibs=no
9517       ;;
9518     esac
9519
9520     if test x$host_vendor = xsni; then
9521       case $host in
9522       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9523         export_dynamic_flag_spec='${wl}-Blargedynsym'
9524         ;;
9525       esac
9526     fi
9527   fi
9528
9529 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9530 $as_echo "$ld_shlibs" >&6; }
9531 test "$ld_shlibs" = no && can_build_shared=no
9532
9533 with_gnu_ld=$with_gnu_ld
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549 #
9550 # Do we need to explicitly link libc?
9551 #
9552 case "x$archive_cmds_need_lc" in
9553 x|xyes)
9554   # Assume -lc should be added
9555   archive_cmds_need_lc=yes
9556
9557   if test "$enable_shared" = yes && test "$GCC" = yes; then
9558     case $archive_cmds in
9559     *'~'*)
9560       # FIXME: we may have to deal with multi-command sequences.
9561       ;;
9562     '$CC '*)
9563       # Test whether the compiler implicitly links with -lc since on some
9564       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9565       # to ld, don't add -lc before -lgcc.
9566       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9567 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9568       $RM conftest*
9569       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9570
9571       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572   (eval $ac_compile) 2>&5
9573   ac_status=$?
9574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } 2>conftest.err; then
9576         soname=conftest
9577         lib=conftest
9578         libobjs=conftest.$ac_objext
9579         deplibs=
9580         wl=$lt_prog_compiler_wl
9581         pic_flag=$lt_prog_compiler_pic
9582         compiler_flags=-v
9583         linker_flags=-v
9584         verstring=
9585         output_objdir=.
9586         libname=conftest
9587         lt_save_allow_undefined_flag=$allow_undefined_flag
9588         allow_undefined_flag=
9589         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9590   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9591   ac_status=$?
9592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }
9594         then
9595           archive_cmds_need_lc=no
9596         else
9597           archive_cmds_need_lc=yes
9598         fi
9599         allow_undefined_flag=$lt_save_allow_undefined_flag
9600       else
9601         cat conftest.err 1>&5
9602       fi
9603       $RM conftest*
9604       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9605 $as_echo "$archive_cmds_need_lc" >&6; }
9606       ;;
9607     esac
9608   fi
9609   ;;
9610 esac
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
9762
9763
9764
9765
9766
9767
9768   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9769 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9770
9771 if test "$GCC" = yes; then
9772   case $host_os in
9773     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9774     *) lt_awk_arg="/^libraries:/" ;;
9775   esac
9776   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9777   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9778     # if the path contains ";" then we assume it to be the separator
9779     # otherwise default to the standard path separator (i.e. ":") - it is
9780     # assumed that no part of a normal pathname contains ";" but that should
9781     # okay in the real world where ";" in dirpaths is itself problematic.
9782     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9783   else
9784     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9785   fi
9786   # Ok, now we have the path, separated by spaces, we can step through it
9787   # and add multilib dir if necessary.
9788   lt_tmp_lt_search_path_spec=
9789   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9790   for lt_sys_path in $lt_search_path_spec; do
9791     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9792       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9793     else
9794       test -d "$lt_sys_path" && \
9795         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9796     fi
9797   done
9798   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9799 BEGIN {RS=" "; FS="/|\n";} {
9800   lt_foo="";
9801   lt_count=0;
9802   for (lt_i = NF; lt_i > 0; lt_i--) {
9803     if ($lt_i != "" && $lt_i != ".") {
9804       if ($lt_i == "..") {
9805         lt_count++;
9806       } else {
9807         if (lt_count == 0) {
9808           lt_foo="/" $lt_i lt_foo;
9809         } else {
9810           lt_count--;
9811         }
9812       }
9813     }
9814   }
9815   if (lt_foo != "") { lt_freq[lt_foo]++; }
9816   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9817 }'`
9818   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9819 else
9820   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9821 fi
9822 library_names_spec=
9823 libname_spec='lib$name'
9824 soname_spec=
9825 shrext_cmds=".so"
9826 postinstall_cmds=
9827 postuninstall_cmds=
9828 finish_cmds=
9829 finish_eval=
9830 shlibpath_var=
9831 shlibpath_overrides_runpath=unknown
9832 version_type=none
9833 dynamic_linker="$host_os ld.so"
9834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9835 need_lib_prefix=unknown
9836 hardcode_into_libs=no
9837
9838 # when you set need_version to no, make sure it does not cause -set_version
9839 # flags to be left without arguments
9840 need_version=unknown
9841
9842 case $host_os in
9843 aix3*)
9844   version_type=linux
9845   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9846   shlibpath_var=LIBPATH
9847
9848   # AIX 3 has no versioning support, so we append a major version to the name.
9849   soname_spec='${libname}${release}${shared_ext}$major'
9850   ;;
9851
9852 aix[4-9]*)
9853   version_type=linux
9854   need_lib_prefix=no
9855   need_version=no
9856   hardcode_into_libs=yes
9857   if test "$host_cpu" = ia64; then
9858     # AIX 5 supports IA64
9859     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860     shlibpath_var=LD_LIBRARY_PATH
9861   else
9862     # With GCC up to 2.95.x, collect2 would create an import file
9863     # for dependence libraries.  The import file would start with
9864     # the line `#! .'.  This would cause the generated library to
9865     # depend on `.', always an invalid library.  This was fixed in
9866     # development snapshots of GCC prior to 3.0.
9867     case $host_os in
9868       aix4 | aix4.[01] | aix4.[01].*)
9869       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9870            echo ' yes '
9871            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9872         :
9873       else
9874         can_build_shared=no
9875       fi
9876       ;;
9877     esac
9878     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879     # soname into executable. Probably we can add versioning support to
9880     # collect2, so additional links can be useful in future.
9881     if test "$aix_use_runtimelinking" = yes; then
9882       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883       # instead of lib<name>.a to let people know that these are not
9884       # typical AIX shared libraries.
9885       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886     else
9887       # We preserve .a as extension for shared libraries through AIX4.2
9888       # and later when we are not doing run time linking.
9889       library_names_spec='${libname}${release}.a $libname.a'
9890       soname_spec='${libname}${release}${shared_ext}$major'
9891     fi
9892     shlibpath_var=LIBPATH
9893   fi
9894   ;;
9895
9896 amigaos*)
9897   case $host_cpu in
9898   powerpc)
9899     # Since July 2007 AmigaOS4 officially supports .so libraries.
9900     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902     ;;
9903   m68k)
9904     library_names_spec='$libname.ixlibrary $libname.a'
9905     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9906     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'
9907     ;;
9908   esac
9909   ;;
9910
9911 beos*)
9912   library_names_spec='${libname}${shared_ext}'
9913   dynamic_linker="$host_os ld.so"
9914   shlibpath_var=LIBRARY_PATH
9915   ;;
9916
9917 bsdi[45]*)
9918   version_type=linux
9919   need_version=no
9920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921   soname_spec='${libname}${release}${shared_ext}$major'
9922   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9923   shlibpath_var=LD_LIBRARY_PATH
9924   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9925   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9926   # the default ld.so.conf also contains /usr/contrib/lib and
9927   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9928   # libtool to hard-code these into programs
9929   ;;
9930
9931 cygwin* | mingw* | pw32* | cegcc*)
9932   version_type=windows
9933   shrext_cmds=".dll"
9934   need_version=no
9935   need_lib_prefix=no
9936
9937   case $GCC,$host_os in
9938   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9939     library_names_spec='$libname.dll.a'
9940     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9941     postinstall_cmds='base_file=`basename \${file}`~
9942       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9943       dldir=$destdir/`dirname \$dlpath`~
9944       test -d \$dldir || mkdir -p \$dldir~
9945       $install_prog $dir/$dlname \$dldir/$dlname~
9946       chmod a+x \$dldir/$dlname~
9947       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9948         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9949       fi'
9950     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9951       dlpath=$dir/\$dldll~
9952        $RM \$dlpath'
9953     shlibpath_overrides_runpath=yes
9954
9955     case $host_os in
9956     cygwin*)
9957       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9958       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9960       ;;
9961     mingw* | cegcc*)
9962       # MinGW DLLs use traditional 'lib' prefix
9963       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9965       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9966         # It is most probably a Windows format PATH printed by
9967         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9968         # path with ; separators, and with drive letters. We can handle the
9969         # drive letters (cygwin fileutils understands them), so leave them,
9970         # especially as we might pass files found there to a mingw objdump,
9971         # which wouldn't understand a cygwinified path. Ahh.
9972         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9973       else
9974         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9975       fi
9976       ;;
9977     pw32*)
9978       # pw32 DLLs use 'pw' prefix rather than 'lib'
9979       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9980       ;;
9981     esac
9982     ;;
9983
9984   *)
9985     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9986     ;;
9987   esac
9988   dynamic_linker='Win32 ld.exe'
9989   # FIXME: first we should search . and the directory the executable is in
9990   shlibpath_var=PATH
9991   ;;
9992
9993 darwin* | rhapsody*)
9994   dynamic_linker="$host_os dyld"
9995   version_type=darwin
9996   need_lib_prefix=no
9997   need_version=no
9998   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9999   soname_spec='${libname}${release}${major}$shared_ext'
10000   shlibpath_overrides_runpath=yes
10001   shlibpath_var=DYLD_LIBRARY_PATH
10002   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10003
10004   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10005   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10006   ;;
10007
10008 dgux*)
10009   version_type=linux
10010   need_lib_prefix=no
10011   need_version=no
10012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10013   soname_spec='${libname}${release}${shared_ext}$major'
10014   shlibpath_var=LD_LIBRARY_PATH
10015   ;;
10016
10017 freebsd1*)
10018   dynamic_linker=no
10019   ;;
10020
10021 freebsd* | dragonfly*)
10022   # DragonFly does not have aout.  When/if they implement a new
10023   # versioning mechanism, adjust this.
10024   if test -x /usr/bin/objformat; then
10025     objformat=`/usr/bin/objformat`
10026   else
10027     case $host_os in
10028     freebsd[123]*) objformat=aout ;;
10029     *) objformat=elf ;;
10030     esac
10031   fi
10032   version_type=freebsd-$objformat
10033   case $version_type in
10034     freebsd-elf*)
10035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10036       need_version=no
10037       need_lib_prefix=no
10038       ;;
10039     freebsd-*)
10040       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10041       need_version=yes
10042       ;;
10043   esac
10044   shlibpath_var=LD_LIBRARY_PATH
10045   case $host_os in
10046   freebsd2*)
10047     shlibpath_overrides_runpath=yes
10048     ;;
10049   freebsd3.[01]* | freebsdelf3.[01]*)
10050     shlibpath_overrides_runpath=yes
10051     hardcode_into_libs=yes
10052     ;;
10053   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10054   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10055     shlibpath_overrides_runpath=no
10056     hardcode_into_libs=yes
10057     ;;
10058   *) # from 4.6 on, and DragonFly
10059     shlibpath_overrides_runpath=yes
10060     hardcode_into_libs=yes
10061     ;;
10062   esac
10063   ;;
10064
10065 gnu*)
10066   version_type=linux
10067   need_lib_prefix=no
10068   need_version=no
10069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070   soname_spec='${libname}${release}${shared_ext}$major'
10071   shlibpath_var=LD_LIBRARY_PATH
10072   hardcode_into_libs=yes
10073   ;;
10074
10075 hpux9* | hpux10* | hpux11*)
10076   # Give a soname corresponding to the major version so that dld.sl refuses to
10077   # link against other versions.
10078   version_type=sunos
10079   need_lib_prefix=no
10080   need_version=no
10081   case $host_cpu in
10082   ia64*)
10083     shrext_cmds='.so'
10084     hardcode_into_libs=yes
10085     dynamic_linker="$host_os dld.so"
10086     shlibpath_var=LD_LIBRARY_PATH
10087     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089     soname_spec='${libname}${release}${shared_ext}$major'
10090     if test "X$HPUX_IA64_MODE" = X32; then
10091       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10092     else
10093       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10094     fi
10095     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10096     ;;
10097   hppa*64*)
10098     shrext_cmds='.sl'
10099     hardcode_into_libs=yes
10100     dynamic_linker="$host_os dld.sl"
10101     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10102     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104     soname_spec='${libname}${release}${shared_ext}$major'
10105     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10106     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10107     ;;
10108   *)
10109     shrext_cmds='.sl'
10110     dynamic_linker="$host_os dld.sl"
10111     shlibpath_var=SHLIB_PATH
10112     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114     soname_spec='${libname}${release}${shared_ext}$major'
10115     ;;
10116   esac
10117   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10118   postinstall_cmds='chmod 555 $lib'
10119   ;;
10120
10121 interix[3-9]*)
10122   version_type=linux
10123   need_lib_prefix=no
10124   need_version=no
10125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126   soname_spec='${libname}${release}${shared_ext}$major'
10127   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10128   shlibpath_var=LD_LIBRARY_PATH
10129   shlibpath_overrides_runpath=no
10130   hardcode_into_libs=yes
10131   ;;
10132
10133 irix5* | irix6* | nonstopux*)
10134   case $host_os in
10135     nonstopux*) version_type=nonstopux ;;
10136     *)
10137         if test "$lt_cv_prog_gnu_ld" = yes; then
10138                 version_type=linux
10139         else
10140                 version_type=irix
10141         fi ;;
10142   esac
10143   need_lib_prefix=no
10144   need_version=no
10145   soname_spec='${libname}${release}${shared_ext}$major'
10146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10147   case $host_os in
10148   irix5* | nonstopux*)
10149     libsuff= shlibsuff=
10150     ;;
10151   *)
10152     case $LD in # libtool.m4 will add one of these switches to LD
10153     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10154       libsuff= shlibsuff= libmagic=32-bit;;
10155     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10156       libsuff=32 shlibsuff=N32 libmagic=N32;;
10157     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10158       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10159     *) libsuff= shlibsuff= libmagic=never-match;;
10160     esac
10161     ;;
10162   esac
10163   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10164   shlibpath_overrides_runpath=no
10165   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10166   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10167   hardcode_into_libs=yes
10168   ;;
10169
10170 # No shared lib support for Linux oldld, aout, or coff.
10171 linux*oldld* | linux*aout* | linux*coff*)
10172   dynamic_linker=no
10173   ;;
10174
10175 # This must be Linux ELF.
10176 linux* | k*bsd*-gnu)
10177   version_type=linux
10178   need_lib_prefix=no
10179   need_version=no
10180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181   soname_spec='${libname}${release}${shared_ext}$major'
10182   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10183   shlibpath_var=LD_LIBRARY_PATH
10184   shlibpath_overrides_runpath=no
10185   # Some binutils ld are patched to set DT_RUNPATH
10186   save_LDFLAGS=$LDFLAGS
10187   save_libdir=$libdir
10188   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10189        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10190   cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10196
10197 int
10198 main ()
10199 {
10200
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209   *) ac_try_echo=$ac_try;;
10210 esac
10211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212 $as_echo "$ac_try_echo") >&5
10213   (eval "$ac_link") 2>conftest.er1
10214   ac_status=$?
10215   grep -v '^ *+' conftest.er1 >conftest.err
10216   rm -f conftest.er1
10217   cat conftest.err >&5
10218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); } && {
10220          test -z "$ac_c_werror_flag" ||
10221          test ! -s conftest.err
10222        } && test -s conftest$ac_exeext && {
10223          test "$cross_compiling" = yes ||
10224          $as_test_x conftest$ac_exeext
10225        }; then
10226   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10227   shlibpath_overrides_runpath=yes
10228 fi
10229
10230 else
10231   $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234
10235 fi
10236
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239       conftest$ac_exeext conftest.$ac_ext
10240   LDFLAGS=$save_LDFLAGS
10241   libdir=$save_libdir
10242
10243   # This implies no fast_install, which is unacceptable.
10244   # Some rework will be needed to allow for fast_install
10245   # before this can be enabled.
10246   hardcode_into_libs=yes
10247
10248   # Add ABI-specific directories to the system library path.
10249   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10250
10251   # Append ld.so.conf contents to the search path
10252   if test -f /etc/ld.so.conf; then
10253     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' ' '`
10254     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10255   fi
10256
10257   # We used to test for /lib/ld.so.1 and disable shared libraries on
10258   # powerpc, because MkLinux only supported shared libraries with the
10259   # GNU dynamic linker.  Since this was broken with cross compilers,
10260   # most powerpc-linux boxes support dynamic linking these days and
10261   # people can always --disable-shared, the test was removed, and we
10262   # assume the GNU/Linux dynamic linker is in use.
10263   dynamic_linker='GNU/Linux ld.so'
10264   ;;
10265
10266 netbsd*)
10267   version_type=sunos
10268   need_lib_prefix=no
10269   need_version=no
10270   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273     dynamic_linker='NetBSD (a.out) ld.so'
10274   else
10275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10276     soname_spec='${libname}${release}${shared_ext}$major'
10277     dynamic_linker='NetBSD ld.elf_so'
10278   fi
10279   shlibpath_var=LD_LIBRARY_PATH
10280   shlibpath_overrides_runpath=yes
10281   hardcode_into_libs=yes
10282   ;;
10283
10284 newsos6)
10285   version_type=linux
10286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287   shlibpath_var=LD_LIBRARY_PATH
10288   shlibpath_overrides_runpath=yes
10289   ;;
10290
10291 *nto* | *qnx*)
10292   version_type=qnx
10293   need_lib_prefix=no
10294   need_version=no
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296   soname_spec='${libname}${release}${shared_ext}$major'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   shlibpath_overrides_runpath=no
10299   hardcode_into_libs=yes
10300   dynamic_linker='ldqnx.so'
10301   ;;
10302
10303 openbsd*)
10304   version_type=sunos
10305   sys_lib_dlsearch_path_spec="/usr/lib"
10306   need_lib_prefix=no
10307   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10308   case $host_os in
10309     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10310     *)                          need_version=no  ;;
10311   esac
10312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10314   shlibpath_var=LD_LIBRARY_PATH
10315   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10316     case $host_os in
10317       openbsd2.[89] | openbsd2.[89].*)
10318         shlibpath_overrides_runpath=no
10319         ;;
10320       *)
10321         shlibpath_overrides_runpath=yes
10322         ;;
10323       esac
10324   else
10325     shlibpath_overrides_runpath=yes
10326   fi
10327   ;;
10328
10329 os2*)
10330   libname_spec='$name'
10331   shrext_cmds=".dll"
10332   need_lib_prefix=no
10333   library_names_spec='$libname${shared_ext} $libname.a'
10334   dynamic_linker='OS/2 ld.exe'
10335   shlibpath_var=LIBPATH
10336   ;;
10337
10338 osf3* | osf4* | osf5*)
10339   version_type=osf
10340   need_lib_prefix=no
10341   need_version=no
10342   soname_spec='${libname}${release}${shared_ext}$major'
10343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344   shlibpath_var=LD_LIBRARY_PATH
10345   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10346   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10347   ;;
10348
10349 rdos*)
10350   dynamic_linker=no
10351   ;;
10352
10353 solaris*)
10354   version_type=linux
10355   need_lib_prefix=no
10356   need_version=no
10357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358   soname_spec='${libname}${release}${shared_ext}$major'
10359   shlibpath_var=LD_LIBRARY_PATH
10360   shlibpath_overrides_runpath=yes
10361   hardcode_into_libs=yes
10362   # ldd complains unless libraries are executable
10363   postinstall_cmds='chmod +x $lib'
10364   ;;
10365
10366 sunos4*)
10367   version_type=sunos
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370   shlibpath_var=LD_LIBRARY_PATH
10371   shlibpath_overrides_runpath=yes
10372   if test "$with_gnu_ld" = yes; then
10373     need_lib_prefix=no
10374   fi
10375   need_version=yes
10376   ;;
10377
10378 sysv4 | sysv4.3*)
10379   version_type=linux
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381   soname_spec='${libname}${release}${shared_ext}$major'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   case $host_vendor in
10384     sni)
10385       shlibpath_overrides_runpath=no
10386       need_lib_prefix=no
10387       runpath_var=LD_RUN_PATH
10388       ;;
10389     siemens)
10390       need_lib_prefix=no
10391       ;;
10392     motorola)
10393       need_lib_prefix=no
10394       need_version=no
10395       shlibpath_overrides_runpath=no
10396       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10397       ;;
10398   esac
10399   ;;
10400
10401 sysv4*MP*)
10402   if test -d /usr/nec ;then
10403     version_type=linux
10404     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10405     soname_spec='$libname${shared_ext}.$major'
10406     shlibpath_var=LD_LIBRARY_PATH
10407   fi
10408   ;;
10409
10410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10411   version_type=freebsd-elf
10412   need_lib_prefix=no
10413   need_version=no
10414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415   soname_spec='${libname}${release}${shared_ext}$major'
10416   shlibpath_var=LD_LIBRARY_PATH
10417   shlibpath_overrides_runpath=yes
10418   hardcode_into_libs=yes
10419   if test "$with_gnu_ld" = yes; then
10420     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10421   else
10422     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10423     case $host_os in
10424       sco3.2v5*)
10425         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10426         ;;
10427     esac
10428   fi
10429   sys_lib_dlsearch_path_spec='/usr/lib'
10430   ;;
10431
10432 tpf*)
10433   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10434   version_type=linux
10435   need_lib_prefix=no
10436   need_version=no
10437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438   shlibpath_var=LD_LIBRARY_PATH
10439   shlibpath_overrides_runpath=no
10440   hardcode_into_libs=yes
10441   ;;
10442
10443 uts4*)
10444   version_type=linux
10445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446   soname_spec='${libname}${release}${shared_ext}$major'
10447   shlibpath_var=LD_LIBRARY_PATH
10448   ;;
10449
10450 *)
10451   dynamic_linker=no
10452   ;;
10453 esac
10454 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10455 $as_echo "$dynamic_linker" >&6; }
10456 test "$dynamic_linker" = no && can_build_shared=no
10457
10458 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10459 if test "$GCC" = yes; then
10460   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10461 fi
10462
10463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10464   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10465 fi
10466 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10467   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10468 fi
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
10550
10551
10552
10553
10554
10555
10556   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10557 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10558 hardcode_action=
10559 if test -n "$hardcode_libdir_flag_spec" ||
10560    test -n "$runpath_var" ||
10561    test "X$hardcode_automatic" = "Xyes" ; then
10562
10563   # We can hardcode non-existent directories.
10564   if test "$hardcode_direct" != no &&
10565      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10566      # have to relink, otherwise we might link with an installed library
10567      # when we should be linking with a yet-to-be-installed one
10568      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10569      test "$hardcode_minus_L" != no; then
10570     # Linking always hardcodes the temporary library directory.
10571     hardcode_action=relink
10572   else
10573     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10574     hardcode_action=immediate
10575   fi
10576 else
10577   # We cannot hardcode anything, or else we can only hardcode existing
10578   # directories.
10579   hardcode_action=unsupported
10580 fi
10581 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10582 $as_echo "$hardcode_action" >&6; }
10583
10584 if test "$hardcode_action" = relink ||
10585    test "$inherit_rpath" = yes; then
10586   # Fast installation is not supported
10587   enable_fast_install=no
10588 elif test "$shlibpath_overrides_runpath" = yes ||
10589      test "$enable_shared" = no; then
10590   # Fast installation is not necessary
10591   enable_fast_install=needless
10592 fi
10593
10594
10595
10596
10597
10598
10599   if test "x$enable_dlopen" != xyes; then
10600   enable_dlopen=unknown
10601   enable_dlopen_self=unknown
10602   enable_dlopen_self_static=unknown
10603 else
10604   lt_cv_dlopen=no
10605   lt_cv_dlopen_libs=
10606
10607   case $host_os in
10608   beos*)
10609     lt_cv_dlopen="load_add_on"
10610     lt_cv_dlopen_libs=
10611     lt_cv_dlopen_self=yes
10612     ;;
10613
10614   mingw* | pw32* | cegcc*)
10615     lt_cv_dlopen="LoadLibrary"
10616     lt_cv_dlopen_libs=
10617     ;;
10618
10619   cygwin*)
10620     lt_cv_dlopen="dlopen"
10621     lt_cv_dlopen_libs=
10622     ;;
10623
10624   darwin*)
10625   # if libdl is installed we need to link against it
10626     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10629   $as_echo_n "(cached) " >&6
10630 else
10631   ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-ldl  $LIBS"
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639
10640 /* Override any GCC internal prototype to avoid an error.
10641    Use char because int might match the return type of a GCC
10642    builtin and then its argument prototype would still apply.  */
10643 #ifdef __cplusplus
10644 extern "C"
10645 #endif
10646 char dlopen ();
10647 int
10648 main ()
10649 {
10650 return dlopen ();
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659   *) ac_try_echo=$ac_try;;
10660 esac
10661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663   (eval "$ac_link") 2>conftest.er1
10664   ac_status=$?
10665   grep -v '^ *+' conftest.er1 >conftest.err
10666   rm -f conftest.er1
10667   cat conftest.err >&5
10668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } && {
10670          test -z "$ac_c_werror_flag" ||
10671          test ! -s conftest.err
10672        } && test -s conftest$ac_exeext && {
10673          test "$cross_compiling" = yes ||
10674          $as_test_x conftest$ac_exeext
10675        }; then
10676   ac_cv_lib_dl_dlopen=yes
10677 else
10678   $as_echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681         ac_cv_lib_dl_dlopen=no
10682 fi
10683
10684 rm -rf conftest.dSYM
10685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10686       conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10691 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10693 else
10694
10695     lt_cv_dlopen="dyld"
10696     lt_cv_dlopen_libs=
10697     lt_cv_dlopen_self=yes
10698
10699 fi
10700
10701     ;;
10702
10703   *)
10704     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10705 $as_echo_n "checking for shl_load... " >&6; }
10706 if test "${ac_cv_func_shl_load+set}" = set; then
10707   $as_echo_n "(cached) " >&6
10708 else
10709   cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10717 #define shl_load innocuous_shl_load
10718
10719 /* System header to define __stub macros and hopefully few prototypes,
10720     which can conflict with char shl_load (); below.
10721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10722     <limits.h> exists even on freestanding compilers.  */
10723
10724 #ifdef __STDC__
10725 # include <limits.h>
10726 #else
10727 # include <assert.h>
10728 #endif
10729
10730 #undef shl_load
10731
10732 /* Override any GCC internal prototype to avoid an error.
10733    Use char because int might match the return type of a GCC
10734    builtin and then its argument prototype would still apply.  */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 char shl_load ();
10739 /* The GNU C library defines this for functions which it implements
10740     to always fail with ENOSYS.  Some functions are actually named
10741     something starting with __ and the normal name is an alias.  */
10742 #if defined __stub_shl_load || defined __stub___shl_load
10743 choke me
10744 #endif
10745
10746 int
10747 main ()
10748 {
10749 return shl_load ();
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758   *) ac_try_echo=$ac_try;;
10759 esac
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762   (eval "$ac_link") 2>conftest.er1
10763   ac_status=$?
10764   grep -v '^ *+' conftest.er1 >conftest.err
10765   rm -f conftest.er1
10766   cat conftest.err >&5
10767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } && {
10769          test -z "$ac_c_werror_flag" ||
10770          test ! -s conftest.err
10771        } && test -s conftest$ac_exeext && {
10772          test "$cross_compiling" = yes ||
10773          $as_test_x conftest$ac_exeext
10774        }; then
10775   ac_cv_func_shl_load=yes
10776 else
10777   $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780         ac_cv_func_shl_load=no
10781 fi
10782
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785       conftest$ac_exeext conftest.$ac_ext
10786 fi
10787 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10788 $as_echo "$ac_cv_func_shl_load" >&6; }
10789 if test "x$ac_cv_func_shl_load" = x""yes; then
10790   lt_cv_dlopen="shl_load"
10791 else
10792   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10793 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10794 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10795   $as_echo_n "(cached) " >&6
10796 else
10797   ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-ldld  $LIBS"
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h.  */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h.  */
10805
10806 /* Override any GCC internal prototype to avoid an error.
10807    Use char because int might match the return type of a GCC
10808    builtin and then its argument prototype would still apply.  */
10809 #ifdef __cplusplus
10810 extern "C"
10811 #endif
10812 char shl_load ();
10813 int
10814 main ()
10815 {
10816 return shl_load ();
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (ac_try="$ac_link"
10823 case "(($ac_try" in
10824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825   *) ac_try_echo=$ac_try;;
10826 esac
10827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10828 $as_echo "$ac_try_echo") >&5
10829   (eval "$ac_link") 2>conftest.er1
10830   ac_status=$?
10831   grep -v '^ *+' conftest.er1 >conftest.err
10832   rm -f conftest.er1
10833   cat conftest.err >&5
10834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } && {
10836          test -z "$ac_c_werror_flag" ||
10837          test ! -s conftest.err
10838        } && test -s conftest$ac_exeext && {
10839          test "$cross_compiling" = yes ||
10840          $as_test_x conftest$ac_exeext
10841        }; then
10842   ac_cv_lib_dld_shl_load=yes
10843 else
10844   $as_echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847         ac_cv_lib_dld_shl_load=no
10848 fi
10849
10850 rm -rf conftest.dSYM
10851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10852       conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10854 fi
10855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10856 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10857 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10858   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10859 else
10860   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10861 $as_echo_n "checking for dlopen... " >&6; }
10862 if test "${ac_cv_func_dlopen+set}" = set; then
10863   $as_echo_n "(cached) " >&6
10864 else
10865   cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10873 #define dlopen innocuous_dlopen
10874
10875 /* System header to define __stub macros and hopefully few prototypes,
10876     which can conflict with char dlopen (); below.
10877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878     <limits.h> exists even on freestanding compilers.  */
10879
10880 #ifdef __STDC__
10881 # include <limits.h>
10882 #else
10883 # include <assert.h>
10884 #endif
10885
10886 #undef dlopen
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889    Use char because int might match the return type of a GCC
10890    builtin and then its argument prototype would still apply.  */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char dlopen ();
10895 /* The GNU C library defines this for functions which it implements
10896     to always fail with ENOSYS.  Some functions are actually named
10897     something starting with __ and the normal name is an alias.  */
10898 #if defined __stub_dlopen || defined __stub___dlopen
10899 choke me
10900 #endif
10901
10902 int
10903 main ()
10904 {
10905 return dlopen ();
10906   ;
10907   return 0;
10908 }
10909 _ACEOF
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (ac_try="$ac_link"
10912 case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917 $as_echo "$ac_try_echo") >&5
10918   (eval "$ac_link") 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } && {
10925          test -z "$ac_c_werror_flag" ||
10926          test ! -s conftest.err
10927        } && test -s conftest$ac_exeext && {
10928          test "$cross_compiling" = yes ||
10929          $as_test_x conftest$ac_exeext
10930        }; then
10931   ac_cv_func_dlopen=yes
10932 else
10933   $as_echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10935
10936         ac_cv_func_dlopen=no
10937 fi
10938
10939 rm -rf conftest.dSYM
10940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941       conftest$ac_exeext conftest.$ac_ext
10942 fi
10943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10944 $as_echo "$ac_cv_func_dlopen" >&6; }
10945 if test "x$ac_cv_func_dlopen" = x""yes; then
10946   lt_cv_dlopen="dlopen"
10947 else
10948   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10951   $as_echo_n "(cached) " >&6
10952 else
10953   ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-ldl  $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961
10962 /* Override any GCC internal prototype to avoid an error.
10963    Use char because int might match the return type of a GCC
10964    builtin and then its argument prototype would still apply.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char dlopen ();
10969 int
10970 main ()
10971 {
10972 return dlopen ();
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981   *) ac_try_echo=$ac_try;;
10982 esac
10983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985   (eval "$ac_link") 2>conftest.er1
10986   ac_status=$?
10987   grep -v '^ *+' conftest.er1 >conftest.err
10988   rm -f conftest.er1
10989   cat conftest.err >&5
10990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); } && {
10992          test -z "$ac_c_werror_flag" ||
10993          test ! -s conftest.err
10994        } && test -s conftest$ac_exeext && {
10995          test "$cross_compiling" = yes ||
10996          $as_test_x conftest$ac_exeext
10997        }; then
10998   ac_cv_lib_dl_dlopen=yes
10999 else
11000   $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003         ac_cv_lib_dl_dlopen=no
11004 fi
11005
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008       conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11010 fi
11011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11013 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11014   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11015 else
11016   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11017 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11019   $as_echo_n "(cached) " >&6
11020 else
11021   ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-lsvld  $LIBS"
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029
11030 /* Override any GCC internal prototype to avoid an error.
11031    Use char because int might match the return type of a GCC
11032    builtin and then its argument prototype would still apply.  */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char dlopen ();
11037 int
11038 main ()
11039 {
11040 return dlopen ();
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049   *) ac_try_echo=$ac_try;;
11050 esac
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053   (eval "$ac_link") 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } && {
11060          test -z "$ac_c_werror_flag" ||
11061          test ! -s conftest.err
11062        } && test -s conftest$ac_exeext && {
11063          test "$cross_compiling" = yes ||
11064          $as_test_x conftest$ac_exeext
11065        }; then
11066   ac_cv_lib_svld_dlopen=yes
11067 else
11068   $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071         ac_cv_lib_svld_dlopen=no
11072 fi
11073
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076       conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11078 fi
11079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11080 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11081 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11082   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11083 else
11084   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11085 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11086 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11087   $as_echo_n "(cached) " >&6
11088 else
11089   ac_check_lib_save_LIBS=$LIBS
11090 LIBS="-ldld  $LIBS"
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h.  */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h.  */
11097
11098 /* Override any GCC internal prototype to avoid an error.
11099    Use char because int might match the return type of a GCC
11100    builtin and then its argument prototype would still apply.  */
11101 #ifdef __cplusplus
11102 extern "C"
11103 #endif
11104 char dld_link ();
11105 int
11106 main ()
11107 {
11108 return dld_link ();
11109   ;
11110   return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (ac_try="$ac_link"
11115 case "(($ac_try" in
11116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117   *) ac_try_echo=$ac_try;;
11118 esac
11119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11120 $as_echo "$ac_try_echo") >&5
11121   (eval "$ac_link") 2>conftest.er1
11122   ac_status=$?
11123   grep -v '^ *+' conftest.er1 >conftest.err
11124   rm -f conftest.er1
11125   cat conftest.err >&5
11126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } && {
11128          test -z "$ac_c_werror_flag" ||
11129          test ! -s conftest.err
11130        } && test -s conftest$ac_exeext && {
11131          test "$cross_compiling" = yes ||
11132          $as_test_x conftest$ac_exeext
11133        }; then
11134   ac_cv_lib_dld_dld_link=yes
11135 else
11136   $as_echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11138
11139         ac_cv_lib_dld_dld_link=no
11140 fi
11141
11142 rm -rf conftest.dSYM
11143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11144       conftest$ac_exeext conftest.$ac_ext
11145 LIBS=$ac_check_lib_save_LIBS
11146 fi
11147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11148 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11149 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11150   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11151 fi
11152
11153
11154 fi
11155
11156
11157 fi
11158
11159
11160 fi
11161
11162
11163 fi
11164
11165
11166 fi
11167
11168     ;;
11169   esac
11170
11171   if test "x$lt_cv_dlopen" != xno; then
11172     enable_dlopen=yes
11173   else
11174     enable_dlopen=no
11175   fi
11176
11177   case $lt_cv_dlopen in
11178   dlopen)
11179     save_CPPFLAGS="$CPPFLAGS"
11180     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11181
11182     save_LDFLAGS="$LDFLAGS"
11183     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11184
11185     save_LIBS="$LIBS"
11186     LIBS="$lt_cv_dlopen_libs $LIBS"
11187
11188     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11189 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11190 if test "${lt_cv_dlopen_self+set}" = set; then
11191   $as_echo_n "(cached) " >&6
11192 else
11193           if test "$cross_compiling" = yes; then :
11194   lt_cv_dlopen_self=cross
11195 else
11196   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197   lt_status=$lt_dlunknown
11198   cat > conftest.$ac_ext <<_LT_EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11201
11202 #if HAVE_DLFCN_H
11203 #include <dlfcn.h>
11204 #endif
11205
11206 #include <stdio.h>
11207
11208 #ifdef RTLD_GLOBAL
11209 #  define LT_DLGLOBAL           RTLD_GLOBAL
11210 #else
11211 #  ifdef DL_GLOBAL
11212 #    define LT_DLGLOBAL         DL_GLOBAL
11213 #  else
11214 #    define LT_DLGLOBAL         0
11215 #  endif
11216 #endif
11217
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219    find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11221 #  ifdef RTLD_LAZY
11222 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11223 #  else
11224 #    ifdef DL_LAZY
11225 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11226 #    else
11227 #      ifdef RTLD_NOW
11228 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11229 #      else
11230 #        ifdef DL_NOW
11231 #          define LT_DLLAZY_OR_NOW      DL_NOW
11232 #        else
11233 #          define LT_DLLAZY_OR_NOW      0
11234 #        endif
11235 #      endif
11236 #    endif
11237 #  endif
11238 #endif
11239
11240 void fnord() { int i=42;}
11241 int main ()
11242 {
11243   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11244   int status = $lt_dlunknown;
11245
11246   if (self)
11247     {
11248       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11249       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250       /* dlclose (self); */
11251     }
11252   else
11253     puts (dlerror ());
11254
11255   return status;
11256 }
11257 _LT_EOF
11258   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259   (eval $ac_link) 2>&5
11260   ac_status=$?
11261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11263     (./conftest; exit; ) >&5 2>/dev/null
11264     lt_status=$?
11265     case x$lt_status in
11266       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11267       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11268       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11269     esac
11270   else :
11271     # compilation failed
11272     lt_cv_dlopen_self=no
11273   fi
11274 fi
11275 rm -fr conftest*
11276
11277
11278 fi
11279 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11280 $as_echo "$lt_cv_dlopen_self" >&6; }
11281
11282     if test "x$lt_cv_dlopen_self" = xyes; then
11283       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11284       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11285 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11286 if test "${lt_cv_dlopen_self_static+set}" = set; then
11287   $as_echo_n "(cached) " >&6
11288 else
11289           if test "$cross_compiling" = yes; then :
11290   lt_cv_dlopen_self_static=cross
11291 else
11292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11293   lt_status=$lt_dlunknown
11294   cat > conftest.$ac_ext <<_LT_EOF
11295 #line 11295 "configure"
11296 #include "confdefs.h"
11297
11298 #if HAVE_DLFCN_H
11299 #include <dlfcn.h>
11300 #endif
11301
11302 #include <stdio.h>
11303
11304 #ifdef RTLD_GLOBAL
11305 #  define LT_DLGLOBAL           RTLD_GLOBAL
11306 #else
11307 #  ifdef DL_GLOBAL
11308 #    define LT_DLGLOBAL         DL_GLOBAL
11309 #  else
11310 #    define LT_DLGLOBAL         0
11311 #  endif
11312 #endif
11313
11314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315    find out it does not work in some platform. */
11316 #ifndef LT_DLLAZY_OR_NOW
11317 #  ifdef RTLD_LAZY
11318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11319 #  else
11320 #    ifdef DL_LAZY
11321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11322 #    else
11323 #      ifdef RTLD_NOW
11324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11325 #      else
11326 #        ifdef DL_NOW
11327 #          define LT_DLLAZY_OR_NOW      DL_NOW
11328 #        else
11329 #          define LT_DLLAZY_OR_NOW      0
11330 #        endif
11331 #      endif
11332 #    endif
11333 #  endif
11334 #endif
11335
11336 void fnord() { int i=42;}
11337 int main ()
11338 {
11339   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11340   int status = $lt_dlunknown;
11341
11342   if (self)
11343     {
11344       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11345       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11346       /* dlclose (self); */
11347     }
11348   else
11349     puts (dlerror ());
11350
11351   return status;
11352 }
11353 _LT_EOF
11354   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355   (eval $ac_link) 2>&5
11356   ac_status=$?
11357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11359     (./conftest; exit; ) >&5 2>/dev/null
11360     lt_status=$?
11361     case x$lt_status in
11362       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11363       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11364       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11365     esac
11366   else :
11367     # compilation failed
11368     lt_cv_dlopen_self_static=no
11369   fi
11370 fi
11371 rm -fr conftest*
11372
11373
11374 fi
11375 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11376 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11377     fi
11378
11379     CPPFLAGS="$save_CPPFLAGS"
11380     LDFLAGS="$save_LDFLAGS"
11381     LIBS="$save_LIBS"
11382     ;;
11383   esac
11384
11385   case $lt_cv_dlopen_self in
11386   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11387   *) enable_dlopen_self=unknown ;;
11388   esac
11389
11390   case $lt_cv_dlopen_self_static in
11391   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11392   *) enable_dlopen_self_static=unknown ;;
11393   esac
11394 fi
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412 striplib=
11413 old_striplib=
11414 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11415 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11416 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11417   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11418   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11419   { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11421 else
11422 # FIXME - insert some real tests, host_os isn't really good enough
11423   case $host_os in
11424   darwin*)
11425     if test -n "$STRIP" ; then
11426       striplib="$STRIP -x"
11427       old_striplib="$STRIP -S"
11428       { $as_echo "$as_me:$LINENO: result: yes" >&5
11429 $as_echo "yes" >&6; }
11430     else
11431       { $as_echo "$as_me:$LINENO: result: no" >&5
11432 $as_echo "no" >&6; }
11433     fi
11434     ;;
11435   *)
11436     { $as_echo "$as_me:$LINENO: result: no" >&5
11437 $as_echo "no" >&6; }
11438     ;;
11439   esac
11440 fi
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453   # Report which library types will actually be built
11454   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11455 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11456   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11457 $as_echo "$can_build_shared" >&6; }
11458
11459   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11460 $as_echo_n "checking whether to build shared libraries... " >&6; }
11461   test "$can_build_shared" = "no" && enable_shared=no
11462
11463   # On AIX, shared libraries and static libraries use the same namespace, and
11464   # are all built from PIC.
11465   case $host_os in
11466   aix3*)
11467     test "$enable_shared" = yes && enable_static=no
11468     if test -n "$RANLIB"; then
11469       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11470       postinstall_cmds='$RANLIB $lib'
11471     fi
11472     ;;
11473
11474   aix[4-9]*)
11475     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11476       test "$enable_shared" = yes && enable_static=no
11477     fi
11478     ;;
11479   esac
11480   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11481 $as_echo "$enable_shared" >&6; }
11482
11483   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11484 $as_echo_n "checking whether to build static libraries... " >&6; }
11485   # Make sure either enable_shared or enable_static is yes.
11486   test "$enable_shared" = yes || enable_static=yes
11487   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11488 $as_echo "$enable_static" >&6; }
11489
11490
11491
11492
11493 fi
11494 ac_ext=c
11495 ac_cpp='$CPP $CPPFLAGS'
11496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11499
11500 CC="$lt_save_CC"
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514         ac_config_commands="$ac_config_commands libtool"
11515
11516
11517
11518
11519 # Only expand once:
11520
11521
11522 # By default we simply use the C compiler to build assembly code.
11523
11524 test "${CCAS+set}" = set || CCAS=$CC
11525 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11526
11527
11528
11529 depcc="$CCAS"   am_compiler_list=
11530
11531 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11532 $as_echo_n "checking dependency style of $depcc... " >&6; }
11533 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11534   $as_echo_n "(cached) " >&6
11535 else
11536   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11537   # We make a subdir and do the tests there.  Otherwise we can end up
11538   # making bogus files that we don't know about and never remove.  For
11539   # instance it was reported that on HP-UX the gcc test will end up
11540   # making a dummy file named `D' -- because `-MD' means `put the output
11541   # in D'.
11542   mkdir conftest.dir
11543   # Copy depcomp to subdir because otherwise we won't find it if we're
11544   # using a relative directory.
11545   cp "$am_depcomp" conftest.dir
11546   cd conftest.dir
11547   # We will build objects and dependencies in a subdirectory because
11548   # it helps to detect inapplicable dependency modes.  For instance
11549   # both Tru64's cc and ICC support -MD to output dependencies as a
11550   # side effect of compilation, but ICC will put the dependencies in
11551   # the current directory while Tru64 will put them in the object
11552   # directory.
11553   mkdir sub
11554
11555   am_cv_CCAS_dependencies_compiler_type=none
11556   if test "$am_compiler_list" = ""; then
11557      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11558   fi
11559   am__universal=false
11560
11561
11562   for depmode in $am_compiler_list; do
11563     # Setup a source with many dependencies, because some compilers
11564     # like to wrap large dependency lists on column 80 (with \), and
11565     # we should not choose a depcomp mode which is confused by this.
11566     #
11567     # We need to recreate these files for each test, as the compiler may
11568     # overwrite some of them when testing with obscure command lines.
11569     # This happens at least with the AIX C compiler.
11570     : > sub/conftest.c
11571     for i in 1 2 3 4 5 6; do
11572       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11573       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11574       # Solaris 8's {/usr,}/bin/sh.
11575       touch sub/conftst$i.h
11576     done
11577     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11578
11579     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11580     # mode.  It turns out that the SunPro C++ compiler does not properly
11581     # handle `-M -o', and we need to detect this.  Also, some Intel
11582     # versions had trouble with output in subdirs
11583     am__obj=sub/conftest.${OBJEXT-o}
11584     am__minus_obj="-o $am__obj"
11585     case $depmode in
11586     gcc)
11587       # This depmode causes a compiler race in universal mode.
11588       test "$am__universal" = false || continue
11589       ;;
11590     nosideeffect)
11591       # after this tag, mechanisms are not by side-effect, so they'll
11592       # only be used when explicitly requested
11593       if test "x$enable_dependency_tracking" = xyes; then
11594         continue
11595       else
11596         break
11597       fi
11598       ;;
11599     msvisualcpp | msvcmsys)
11600       # This compiler won't grok `-c -o', but also, the minuso test has
11601       # not run yet.  These depmodes are late enough in the game, and
11602       # so weak that their functioning should not be impacted.
11603       am__obj=conftest.${OBJEXT-o}
11604       am__minus_obj=
11605       ;;
11606     none) break ;;
11607     esac
11608     if depmode=$depmode \
11609        source=sub/conftest.c object=$am__obj \
11610        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11611        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11612          >/dev/null 2>conftest.err &&
11613        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11614        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11615        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11616        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11617       # icc doesn't choke on unknown options, it will just issue warnings
11618       # or remarks (even with -Werror).  So we grep stderr for any message
11619       # that says an option was ignored or not supported.
11620       # When given -MP, icc 7.0 and 7.1 complain thusly:
11621       #   icc: Command line warning: ignoring option '-M'; no argument required
11622       # The diagnosis changed in icc 8.0:
11623       #   icc: Command line remark: option '-MP' not supported
11624       if (grep 'ignoring option' conftest.err ||
11625           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11626         am_cv_CCAS_dependencies_compiler_type=$depmode
11627         break
11628       fi
11629     fi
11630   done
11631
11632   cd ..
11633   rm -rf conftest.dir
11634 else
11635   am_cv_CCAS_dependencies_compiler_type=none
11636 fi
11637
11638 fi
11639 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11640 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11641 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11642
11643  if
11644   test "x$enable_dependency_tracking" != xno \
11645   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11646   am__fastdepCCAS_TRUE=
11647   am__fastdepCCAS_FALSE='#'
11648 else
11649   am__fastdepCCAS_TRUE='#'
11650   am__fastdepCCAS_FALSE=
11651 fi
11652
11653
11654
11655
11656         { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11657 $as_echo_n "checking zfs author... " >&6; }
11658         { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11659 $as_echo "$ZFS_META_AUTHOR" >&6; }
11660
11661         { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11662 $as_echo_n "checking zfs license... " >&6; }
11663         { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11664 $as_echo "$ZFS_META_LICENSE" >&6; }
11665
11666
11667
11668         RPM=rpm
11669         RPMBUILD=rpmbuild
11670
11671         { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11672 $as_echo_n "checking whether $RPM is available... " >&6; }
11673         if tmp=$($RPM --version 2>/dev/null); then
11674
11675                 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11676                 HAVE_RPM=yes
11677                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11678 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11679
11680 else
11681
11682                 HAVE_RPM=no
11683                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11684 $as_echo "$HAVE_RPM" >&6; }
11685
11686 fi
11687
11688
11689         { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11690 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11691         if tmp=$($RPMBUILD --version 2>/dev/null); then
11692
11693                 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11694                 HAVE_RPMBUILD=yes
11695                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11696 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11697
11698 else
11699
11700                 HAVE_RPMBUILD=no
11701                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11702 $as_echo "$HAVE_RPMBUILD" >&6; }
11703
11704 fi
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716         DPKG=dpkg
11717         DPKGBUILD=dpkg-buildpackage
11718
11719         { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11720 $as_echo_n "checking whether $DPKG is available... " >&6; }
11721         if tmp=$($DPKG --version 2>/dev/null); then
11722
11723                 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11724                 HAVE_DPKG=yes
11725                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11726 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11727
11728 else
11729
11730                 HAVE_DPKG=no
11731                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11732 $as_echo "$HAVE_DPKG" >&6; }
11733
11734 fi
11735
11736
11737         { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11738 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11739         if tmp=$($DPKGBUILD --version 2>/dev/null); then
11740
11741                 DPKGBUILD_VERSION=$(echo $tmp | \
11742                     $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11743                 HAVE_DPKGBUILD=yes
11744                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11745 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11746
11747 else
11748
11749                 HAVE_DPKGBUILD=no
11750                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11751 $as_echo "$HAVE_DPKGBUILD" >&6; }
11752
11753 fi
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765         ALIEN=alien
11766
11767         { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11768 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11769         if tmp=$($ALIEN --version 2>/dev/null); then
11770
11771                 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11772                 HAVE_ALIEN=yes
11773                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11774 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11775
11776 else
11777
11778                 HAVE_ALIEN=no
11779                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11780 $as_echo "$HAVE_ALIEN" >&6; }
11781
11782 fi
11783
11784
11785
11786
11787
11788
11789
11790         { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11791 $as_echo_n "checking linux distribution... " >&6; }
11792         if test -f /etc/redhat-release ; then
11793                 VENDOR=redhat ;
11794         elif test -f /etc/fedora-release ; then
11795                 VENDOR=fedora ;
11796         elif test -f /etc/gentoo-release ; then
11797                 VENDOR=gentoo ;
11798         elif test -f /etc/debian_version ; then
11799                 VENDOR=debian ;
11800         elif test -f /etc/SuSE-release ; then
11801                 VENDOR=sles ;
11802         elif test -f /etc/slackware-version ; then
11803                 VENDOR=slackware ;
11804         elif test -f /etc/lsb-release ; then
11805                 VENDOR=ubuntu ;
11806         elif test -f /etc/lunar.release ; then
11807                 VENDOR=lunar ;
11808         elif test -f /etc/arch-release ; then
11809                 VENDOR=arch ;
11810         else
11811                 VENDOR= ;
11812         fi
11813         { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11814 $as_echo "$VENDOR" >&6; }
11815
11816
11817         { $as_echo "$as_me:$LINENO: checking default package type" >&5
11818 $as_echo_n "checking default package type... " >&6; }
11819         case "$VENDOR" in
11820                 redhat)     DEFAULT_PACKAGE=rpm ;;
11821                 fedora)     DEFAULT_PACKAGE=rpm ;;
11822                 ubuntu)     DEFAULT_PACKAGE=deb ;;
11823                 debian)     DEFAULT_PACKAGE=deb ;;
11824                 sles)       DEFAULT_PACKAGE=rpm ;;
11825                 slackware)  DEFAULT_PACKAGE=tgz ;;
11826                 gentoo)     DEFAULT_PACKAGE=tgz ;;
11827                 lunar)      DEFAULT_PACKAGE=tgz ;;
11828                 *)          DEFAULT_PACKAGE=rpm ;;
11829         esac
11830
11831         { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11832 $as_echo "$DEFAULT_PACKAGE" >&6; }
11833
11834
11835         { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11836 $as_echo_n "checking default init directory... " >&6; }
11837         case "$VENDOR" in
11838                 arch)       DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11839                 *)          DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11840         esac
11841
11842         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11843 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11844
11845
11846         { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11847 $as_echo_n "checking default init script type... " >&6; }
11848         case "$VENDOR" in
11849                 redhat)     DEFAULT_INIT_SCRIPT=redhat ;;
11850                 fedora)     DEFAULT_INIT_SCRIPT=fedora ;;
11851                 ubuntu)     DEFAULT_INIT_SCRIPT=lsb ;;
11852                 debian)     DEFAULT_INIT_SCRIPT=lsb ;;
11853                 sles)       DEFAULT_INIT_SCRIPT=lsb ;;
11854                 slackware)  DEFAULT_INIT_SCRIPT=lsb ;;
11855                 gentoo)     DEFAULT_INIT_SCRIPT=gentoo ;;
11856                 lunar)      DEFAULT_INIT_SCRIPT=lunar ;;
11857                 arch)       DEFAULT_INIT_SCRIPT=arch ;;
11858                 *)          DEFAULT_INIT_SCRIPT=lsb ;;
11859         esac
11860
11861         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11862 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11863
11864
11865
11866
11867         TARGET_ASM_DIR=asm-generic
11868
11869
11870         ZFS_CONFIG=all
11871
11872 # Check whether --with-config was given.
11873 if test "${with_config+set}" = set; then
11874   withval=$with_config; ZFS_CONFIG="$withval"
11875 fi
11876
11877
11878         { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11879 $as_echo_n "checking zfs config... " >&6; }
11880         { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11881 $as_echo "$ZFS_CONFIG" >&6; };
11882
11883
11884
11885
11886         { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11887 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11888
11889         saved_flags="$CFLAGS"
11890         CFLAGS="$CFLAGS -Wunused-but-set-variable"
11891
11892         if test "$cross_compiling" = yes; then
11893   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11895 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11896 See \`config.log' for more details." >&5
11897 $as_echo "$as_me: error: cannot run test program while cross compiling
11898 See \`config.log' for more details." >&2;}
11899    { (exit 1); exit 1; }; }; }
11900 else
11901   cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907
11908 int
11909 main ()
11910 {
11911
11912   ;
11913   return 0;
11914 }
11915 _ACEOF
11916 rm -f conftest$ac_exeext
11917 if { (ac_try="$ac_link"
11918 case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924   (eval "$ac_link") 2>&5
11925   ac_status=$?
11926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11928   { (case "(($ac_try" in
11929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930   *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934   (eval "$ac_try") 2>&5
11935   ac_status=$?
11936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938
11939                 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
11940                 { $as_echo "$as_me:$LINENO: result: yes" >&5
11941 $as_echo "yes" >&6; }
11942
11943 else
11944   $as_echo "$as_me: program exited with status $ac_status" >&5
11945 $as_echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11947
11948 ( exit $ac_status )
11949
11950                 NO_UNUSED_BUT_SET_VARIABLE=
11951                 { $as_echo "$as_me:$LINENO: result: no" >&5
11952 $as_echo "no" >&6; }
11953
11954 fi
11955 rm -rf conftest.dSYM
11956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11957 fi
11958
11959
11960
11961         CFLAGS="$saved_flags"
11962
11963
11964
11965
11966         case "$ZFS_CONFIG" in
11967                 kernel)
11968
11969
11970 # Check whether --with-linux was given.
11971 if test "${with_linux+set}" = set; then
11972   withval=$with_linux; kernelsrc="$withval"
11973 fi
11974
11975
11976
11977 # Check whether --with-linux-obj was given.
11978 if test "${with_linux_obj+set}" = set; then
11979   withval=$with_linux_obj; kernelbuild="$withval"
11980 fi
11981
11982
11983         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11984 $as_echo_n "checking kernel source directory... " >&6; }
11985         if test -z "$kernelsrc"; then
11986                 if test -e "/lib/modules/$(uname -r)/source"; then
11987                         headersdir="/lib/modules/$(uname -r)/source"
11988                         sourcelink=$(readlink -f "$headersdir")
11989                 elif test -e "/lib/modules/$(uname -r)/build"; then
11990                         headersdir="/lib/modules/$(uname -r)/build"
11991                         sourcelink=$(readlink -f "$headersdir")
11992                 else
11993                         sourcelink=$(ls -1d /usr/src/kernels/* \
11994                                      /usr/src/linux-* \
11995                                      2>/dev/null | grep -v obj | tail -1)
11996                 fi
11997
11998                 if test -n "$sourcelink" && test -e ${sourcelink}; then
11999                         kernelsrc=`readlink -f ${sourcelink}`
12000                 else
12001                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12002 $as_echo "Not found" >&6; }
12003                         { { $as_echo "$as_me:$LINENO: error:
12004         *** Please make sure the kernel devel package for your distribution
12005         *** is installed then try again.  If that fails you can specify the
12006         *** location of the kernel source with the '--with-linux=PATH' option." >&5
12007 $as_echo "$as_me: error:
12008         *** Please make sure the kernel devel package for your distribution
12009         *** is installed then try again.  If that fails you can specify the
12010         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12011    { (exit 1); exit 1; }; }
12012                 fi
12013         else
12014                 if test "$kernelsrc" = "NONE"; then
12015                         kernsrcver=NONE
12016                 fi
12017         fi
12018
12019         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12020 $as_echo "$kernelsrc" >&6; }
12021         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12022 $as_echo_n "checking kernel build directory... " >&6; }
12023         if test -z "$kernelbuild"; then
12024                 if test -e "/lib/modules/$(uname -r)/build"; then
12025                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12026                 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12027                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12028                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12029                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12030                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12031                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12032                 else
12033                         kernelbuild=${kernelsrc}
12034                 fi
12035         fi
12036         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12037 $as_echo "$kernelbuild" >&6; }
12038
12039         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12040 $as_echo_n "checking kernel source version... " >&6; }
12041         utsrelease1=$kernelbuild/include/linux/version.h
12042         utsrelease2=$kernelbuild/include/linux/utsrelease.h
12043         utsrelease3=$kernelbuild/include/generated/utsrelease.h
12044         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12045                 utsrelease=linux/version.h
12046         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12047                 utsrelease=linux/utsrelease.h
12048         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12049                 utsrelease=generated/utsrelease.h
12050         fi
12051
12052         if test "$utsrelease"; then
12053                 kernsrcver=`(echo "#include <$utsrelease>";
12054                              echo "kernsrcver=UTS_RELEASE") |
12055                              cpp -I $kernelbuild/include |
12056                              grep "^kernsrcver=" | cut -d \" -f 2`
12057
12058                 if test -z "$kernsrcver"; then
12059                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12060 $as_echo "Not found" >&6; }
12061                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12062 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12063    { (exit 1); exit 1; }; }
12064                 fi
12065         else
12066                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12067 $as_echo "Not found" >&6; }
12068                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12069 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12070    { (exit 1); exit 1; }; }
12071         fi
12072
12073         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12074 $as_echo "$kernsrcver" >&6; }
12075
12076         LINUX=${kernelsrc}
12077         LINUX_OBJ=${kernelbuild}
12078         LINUX_VERSION=${kernsrcver}
12079
12080
12081
12082
12083
12084
12085         modpost=$LINUX/scripts/Makefile.modpost
12086         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12087 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12088         if test -f "$modpost"; then
12089                 if grep -q Modules.symvers $modpost; then
12090                         LINUX_SYMBOLS=Modules.symvers
12091                 else
12092                         LINUX_SYMBOLS=Module.symvers
12093                 fi
12094
12095                 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12096                         { { $as_echo "$as_me:$LINENO: error:
12097         *** Please make sure the kernel devel package for your distribution
12098         *** is installed.  If your building with a custom kernel make sure the
12099         *** kernel is configured, built, and the '--with-linux=PATH' configure
12100         *** option refers to the location of the kernel source." >&5
12101 $as_echo "$as_me: error:
12102         *** Please make sure the kernel devel package for your distribution
12103         *** is installed.  If your building with a custom kernel make sure the
12104         *** kernel is configured, built, and the '--with-linux=PATH' configure
12105         *** option refers to the location of the kernel source." >&2;}
12106    { (exit 1); exit 1; }; }
12107                 fi
12108         else
12109                 LINUX_SYMBOLS=NONE
12110         fi
12111         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12112 $as_echo "$LINUX_SYMBOLS" >&6; }
12113
12114
12115
12116
12117
12118 # Check whether --with-spl was given.
12119 if test "${with_spl+set}" = set; then
12120   withval=$with_spl; splsrc="$withval"
12121 fi
12122
12123
12124
12125 # Check whether --with-spl-obj was given.
12126 if test "${with_spl_obj+set}" = set; then
12127   withval=$with_spl_obj; splbuild="$withval"
12128 fi
12129
12130
12131
12132         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12133 $as_echo_n "checking spl source directory... " >&6; }
12134         if test -z "$splsrc"; then
12135                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12136                             2>/dev/null | tail -1`
12137
12138                 if test -z "$sourcelink" || test ! -e $sourcelink; then
12139                         sourcelink=../spl
12140                 fi
12141
12142                 if test -e $sourcelink; then
12143                         splsrc=`readlink -f ${sourcelink}`
12144                 else
12145                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12146 $as_echo "Not found" >&6; }
12147                         { { $as_echo "$as_me:$LINENO: error:
12148         *** Please make sure the spl devel package for your distribution
12149         *** is installed then try again.  If that fails you can specify the
12150         *** location of the spl source with the '--with-spl=PATH' option." >&5
12151 $as_echo "$as_me: error:
12152         *** Please make sure the spl devel package for your distribution
12153         *** is installed then try again.  If that fails you can specify the
12154         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12155    { (exit 1); exit 1; }; }
12156                 fi
12157         else
12158                 if test "$splsrc" = "NONE"; then
12159                         splbuild=NONE
12160                         splsrcver=NONE
12161                 fi
12162         fi
12163
12164         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12165 $as_echo "$splsrc" >&6; }
12166         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12167 $as_echo_n "checking spl build directory... " >&6; }
12168         if test -z "$splbuild"; then
12169                 splbuild=${splsrc}
12170         fi
12171         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12172 $as_echo "$splbuild" >&6; }
12173
12174         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12175 $as_echo_n "checking spl source version... " >&6; }
12176         if test -r $splbuild/spl_config.h &&
12177                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12178
12179                 splsrcver=`(echo "#include <spl_config.h>";
12180                             echo "splsrcver=SPL_META_VERSION") |
12181                             cpp -I $splbuild |
12182                             grep "^splsrcver=" | cut -d \" -f 2`
12183         fi
12184
12185         if test -z "$splsrcver"; then
12186                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12187 $as_echo "Not found" >&6; }
12188                 { { $as_echo "$as_me:$LINENO: error:
12189                 *** Cannot determine the version of the spl source.
12190                 *** Please prepare the spl source before running this script" >&5
12191 $as_echo "$as_me: error:
12192                 *** Cannot determine the version of the spl source.
12193                 *** Please prepare the spl source before running this script" >&2;}
12194    { (exit 1); exit 1; }; }
12195         fi
12196
12197         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12198 $as_echo "$splsrcver" >&6; }
12199
12200         SPL=${splsrc}
12201         SPL_OBJ=${splbuild}
12202         SPL_VERSION=${splsrcver}
12203
12204
12205
12206
12207
12208
12209         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12210 $as_echo_n "checking spl file name for module symbols... " >&6; }
12211         if test -r $SPL_OBJ/Module.symvers; then
12212                 SPL_SYMBOLS=Module.symvers
12213         elif test -r $SPL_OBJ/Modules.symvers; then
12214                 SPL_SYMBOLS=Modules.symvers
12215         elif test -r $SPL_OBJ/module/Module.symvers; then
12216                 SPL_SYMBOLS=Module.symvers
12217         elif test -r $SPL_OBJ/module/Modules.symvers; then
12218                 SPL_SYMBOLS=Modules.symvers
12219         else
12220                 SPL_SYMBOLS=$LINUX_SYMBOLS
12221         fi
12222
12223         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12224 $as_echo "$SPL_SYMBOLS" >&6; }
12225
12226
12227
12228
12229
12230         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12231 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12232
12233
12234 cat confdefs.h - <<_ACEOF >conftest.c
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240
12241
12242                 #include <linux/module.h>
12243
12244 int
12245 main (void)
12246 {
12247
12248                 #ifndef CONFIG_PREEMPT
12249                 #error CONFIG_PREEMPT not #defined
12250                 #endif
12251
12252   ;
12253   return 0;
12254 }
12255
12256 _ACEOF
12257
12258
12259         rm -Rf build && mkdir -p build
12260         echo "obj-m := conftest.o" >build/Makefile
12261         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'
12262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263   (eval $ac_try) 2>&5
12264   ac_status=$?
12265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268   (eval $ac_try) 2>&5
12269   ac_status=$?
12270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; }; then
12272
12273                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12274 $as_echo "yes" >&6; }
12275                 { { $as_echo "$as_me:$LINENO: error:
12276                 *** Kernel built with CONFIG_PREEMPT which is not supported.
12277                 ** You must rebuild your kernel without this option." >&5
12278 $as_echo "$as_me: error:
12279                 *** Kernel built with CONFIG_PREEMPT which is not supported.
12280                 ** You must rebuild your kernel without this option." >&2;}
12281    { (exit 1); exit 1; }; }
12282
12283 else
12284   $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287                 { $as_echo "$as_me:$LINENO: result: no" >&5
12288 $as_echo "no" >&6; }
12289
12290
12291
12292
12293 fi
12294
12295         rm -Rf build
12296
12297
12298
12299
12300         if test "$ZFS_META_LICENSE" = CDDL; then
12301                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12302 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12303
12304
12305 cat confdefs.h - <<_ACEOF >conftest.c
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311
12312
12313                 #include <linux/module.h>
12314
12315 int
12316 main (void)
12317 {
12318
12319                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12320                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12321                 #endif
12322
12323   ;
12324   return 0;
12325 }
12326
12327 _ACEOF
12328
12329
12330         rm -Rf build && mkdir -p build
12331         echo "obj-m := conftest.o" >build/Makefile
12332         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'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343
12344                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12345 $as_echo "yes" >&6; }
12346                 { { $as_echo "$as_me:$LINENO: error:
12347                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12348                 *** incompatible with the CDDL license.  You must rebuild
12349                 *** your kernel without this option." >&5
12350 $as_echo "$as_me: error:
12351                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12352                 *** incompatible with the CDDL license.  You must rebuild
12353                 *** your kernel without this option." >&2;}
12354    { (exit 1); exit 1; }; }
12355
12356 else
12357   $as_echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360                 { $as_echo "$as_me:$LINENO: result: no" >&5
12361 $as_echo "no" >&6; }
12362
12363
12364
12365
12366 fi
12367
12368         rm -Rf build
12369
12370
12371
12372         fi
12373
12374         if test "$ZFS_META_LICENSE" = GPL; then
12375
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_GPL_ONLY_SYMBOLS 1
12378 _ACEOF
12379
12380         fi
12381
12382
12383         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12384 $as_echo_n "checking block device operation prototypes... " >&6; }
12385
12386
12387 cat confdefs.h - <<_ACEOF >conftest.c
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393
12394
12395                 #include <linux/blkdev.h>
12396
12397 int
12398 main (void)
12399 {
12400
12401                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12402                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12403                 int (*blk_ioctl) (struct block_device *, fmode_t,
12404                                   unsigned, unsigned long) = NULL;
12405                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12406                                          unsigned, unsigned long) = NULL;
12407                 struct block_device_operations blk_ops = {
12408                         .open           = blk_open,
12409                         .release        = blk_release,
12410                         .ioctl          = blk_ioctl,
12411                         .compat_ioctl   = blk_compat_ioctl,
12412                 };
12413
12414                 blk_ops.open(NULL, 0);
12415                 blk_ops.release(NULL, 0);
12416                 blk_ops.ioctl(NULL, 0, 0, 0);
12417                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12418
12419   ;
12420   return 0;
12421 }
12422
12423 _ACEOF
12424
12425
12426         rm -Rf build && mkdir -p build
12427         echo "obj-m := conftest.o" >build/Makefile
12428         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'
12429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430   (eval $ac_try) 2>&5
12431   ac_status=$?
12432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439
12440                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12441 $as_echo "struct block_device" >&6; }
12442
12443 cat >>confdefs.h <<\_ACEOF
12444 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12445 _ACEOF
12446
12447
12448 else
12449   $as_echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12453 $as_echo "struct inode" >&6; }
12454
12455
12456
12457 fi
12458
12459         rm -Rf build
12460
12461
12462
12463         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12464 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12465
12466
12467 cat confdefs.h - <<_ACEOF >conftest.c
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473
12474
12475                 #include <linux/types.h>
12476
12477 int
12478 main (void)
12479 {
12480
12481                 fmode_t *ptr __attribute__ ((unused));
12482
12483   ;
12484   return 0;
12485 }
12486
12487 _ACEOF
12488
12489
12490         rm -Rf build && mkdir -p build
12491         echo "obj-m := conftest.o" >build/Makefile
12492         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'
12493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494   (eval $ac_try) 2>&5
12495   ac_status=$?
12496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499   (eval $ac_try) 2>&5
12500   ac_status=$?
12501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; }; then
12503
12504                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12505 $as_echo "yes" >&6; }
12506
12507 cat >>confdefs.h <<\_ACEOF
12508 #define HAVE_FMODE_T 1
12509 _ACEOF
12510
12511
12512 else
12513   $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516                 { $as_echo "$as_me:$LINENO: result: no" >&5
12517 $as_echo "no" >&6; }
12518
12519
12520
12521 fi
12522
12523         rm -Rf build
12524
12525
12526
12527
12528         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12529 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12530
12531
12532 cat confdefs.h - <<_ACEOF >conftest.c
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538
12539
12540                 #include <linux/kobject.h>
12541
12542 int
12543 main (void)
12544 {
12545
12546                 int val __attribute__ ((unused));
12547                 val = KOBJ_NAME_LEN;
12548
12549   ;
12550   return 0;
12551 }
12552
12553 _ACEOF
12554
12555
12556         rm -Rf build && mkdir -p build
12557         echo "obj-m := conftest.o" >build/Makefile
12558         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'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565   (eval $ac_try) 2>&5
12566   ac_status=$?
12567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569
12570                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12571 $as_echo "yes" >&6; }
12572
12573 cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_KOBJ_NAME_LEN 1
12575 _ACEOF
12576
12577
12578 else
12579   $as_echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582                 { $as_echo "$as_me:$LINENO: result: no" >&5
12583 $as_echo "no" >&6; }
12584
12585
12586
12587 fi
12588
12589         rm -Rf build
12590
12591
12592
12593
12594         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12595 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12596         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12597                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12598         rc=$?
12599         if test $rc -ne 0; then
12600                 export=0
12601                 for file in fs/block_dev.c; do
12602                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12603                         rc=$?
12604                         if test $rc -eq 0; then
12605                                 export=1
12606                                 break;
12607                         fi
12608                 done
12609                 if test $export -eq 0; then
12610                         { $as_echo "$as_me:$LINENO: result: no" >&5
12611 $as_echo "no" >&6; }
12612
12613                 else
12614                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12615 $as_echo "yes" >&6; }
12616
12617 cat >>confdefs.h <<\_ACEOF
12618 #define HAVE_BLKDEV_GET_BY_PATH 1
12619 _ACEOF
12620
12621                 fi
12622         else
12623                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12624 $as_echo "yes" >&6; }
12625
12626 cat >>confdefs.h <<\_ACEOF
12627 #define HAVE_BLKDEV_GET_BY_PATH 1
12628 _ACEOF
12629
12630         fi
12631
12632
12633
12634         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12635 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12636         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12637                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12638         rc=$?
12639         if test $rc -ne 0; then
12640                 export=0
12641                 for file in fs/block_dev.c; do
12642                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12643                         rc=$?
12644                         if test $rc -eq 0; then
12645                                 export=1
12646                                 break;
12647                         fi
12648                 done
12649                 if test $export -eq 0; then
12650                         { $as_echo "$as_me:$LINENO: result: no" >&5
12651 $as_echo "no" >&6; }
12652
12653                 else
12654                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12655 $as_echo "yes" >&6; }
12656
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12659 _ACEOF
12660
12661                 fi
12662         else
12663                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12664 $as_echo "yes" >&6; }
12665
12666 cat >>confdefs.h <<\_ACEOF
12667 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12668 _ACEOF
12669
12670         fi
12671
12672
12673
12674         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12675 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12676
12677
12678 cat confdefs.h - <<_ACEOF >conftest.c
12679 /* confdefs.h.  */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h.  */
12684
12685
12686                 #include <linux/buffer_head.h>
12687
12688 int
12689 main (void)
12690 {
12691
12692                 struct block_device *bdev = NULL;
12693                 invalidate_bdev(bdev);
12694
12695   ;
12696   return 0;
12697 }
12698
12699 _ACEOF
12700
12701
12702         rm -Rf build && mkdir -p build
12703         echo "obj-m := conftest.o" >build/Makefile
12704         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'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715
12716                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12717 $as_echo "yes" >&6; }
12718
12719 cat >>confdefs.h <<\_ACEOF
12720 #define HAVE_1ARG_INVALIDATE_BDEV 1
12721 _ACEOF
12722
12723
12724 else
12725   $as_echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728                 { $as_echo "$as_me:$LINENO: result: no" >&5
12729 $as_echo "no" >&6; }
12730
12731
12732
12733 fi
12734
12735         rm -Rf build
12736
12737
12738
12739
12740         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12741 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12742
12743
12744 cat confdefs.h - <<_ACEOF >conftest.c
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750
12751
12752                 #include <linux/blkdev.h>
12753
12754 int
12755 main (void)
12756 {
12757
12758                 struct block_device *bdev = NULL;
12759                 bdev_logical_block_size(bdev);
12760
12761   ;
12762   return 0;
12763 }
12764
12765 _ACEOF
12766
12767
12768         rm -Rf build && mkdir -p build
12769         echo "obj-m := conftest.o" >build/Makefile
12770         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'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777   (eval $ac_try) 2>&5
12778   ac_status=$?
12779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; }; then
12781
12782                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12783 $as_echo "yes" >&6; }
12784
12785 cat >>confdefs.h <<\_ACEOF
12786 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12787 _ACEOF
12788
12789
12790 else
12791   $as_echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794                 { $as_echo "$as_me:$LINENO: result: no" >&5
12795 $as_echo "no" >&6; }
12796
12797
12798
12799 fi
12800
12801         rm -Rf build
12802
12803
12804
12805
12806         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12807 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12808         EXTRA_KCFLAGS="-Werror"
12809
12810
12811 cat confdefs.h - <<_ACEOF >conftest.c
12812 /* confdefs.h.  */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h.  */
12817
12818
12819                 #include <linux/bio.h>
12820
12821 int
12822 main (void)
12823 {
12824
12825                 struct bio bio;
12826                 (void)bio_empty_barrier(&bio);
12827
12828   ;
12829   return 0;
12830 }
12831
12832 _ACEOF
12833
12834
12835         rm -Rf build && mkdir -p build
12836         echo "obj-m := conftest.o" >build/Makefile
12837         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'
12838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839   (eval $ac_try) 2>&5
12840   ac_status=$?
12841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848
12849                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12850 $as_echo "yes" >&6; }
12851
12852 cat >>confdefs.h <<\_ACEOF
12853 #define HAVE_BIO_EMPTY_BARRIER 1
12854 _ACEOF
12855
12856
12857 else
12858   $as_echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861                 { $as_echo "$as_me:$LINENO: result: no" >&5
12862 $as_echo "no" >&6; }
12863
12864
12865
12866 fi
12867
12868         rm -Rf build
12869
12870
12871
12872
12873         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12874 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12875
12876
12877 cat confdefs.h - <<_ACEOF >conftest.c
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883
12884
12885                 #include <linux/bio.h>
12886
12887 int
12888 main (void)
12889 {
12890
12891                 int flags __attribute__ ((unused));
12892                 flags = (1 << BIO_RW_FAILFAST);
12893
12894   ;
12895   return 0;
12896 }
12897
12898 _ACEOF
12899
12900
12901         rm -Rf build && mkdir -p build
12902         echo "obj-m := conftest.o" >build/Makefile
12903         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'
12904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905   (eval $ac_try) 2>&5
12906   ac_status=$?
12907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914
12915                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12916 $as_echo "yes" >&6; }
12917
12918 cat >>confdefs.h <<\_ACEOF
12919 #define HAVE_BIO_RW_FAILFAST 1
12920 _ACEOF
12921
12922
12923 else
12924   $as_echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12926
12927                 { $as_echo "$as_me:$LINENO: result: no" >&5
12928 $as_echo "no" >&6; }
12929
12930
12931
12932 fi
12933
12934         rm -Rf build
12935
12936
12937
12938
12939         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12940 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12941
12942
12943 cat confdefs.h - <<_ACEOF >conftest.c
12944 /* confdefs.h.  */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h.  */
12949
12950
12951                 #include <linux/bio.h>
12952
12953 int
12954 main (void)
12955 {
12956
12957                 int flags __attribute__ ((unused));
12958                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12959                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
12960                          (1 << BIO_RW_FAILFAST_DRIVER));
12961
12962   ;
12963   return 0;
12964 }
12965
12966 _ACEOF
12967
12968
12969         rm -Rf build && mkdir -p build
12970         echo "obj-m := conftest.o" >build/Makefile
12971         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'
12972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973   (eval $ac_try) 2>&5
12974   ac_status=$?
12975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978   (eval $ac_try) 2>&5
12979   ac_status=$?
12980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); }; }; then
12982
12983                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12984 $as_echo "yes" >&6; }
12985
12986 cat >>confdefs.h <<\_ACEOF
12987 #define HAVE_BIO_RW_FAILFAST_DTD 1
12988 _ACEOF
12989
12990
12991 else
12992   $as_echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995                 { $as_echo "$as_me:$LINENO: result: no" >&5
12996 $as_echo "no" >&6; }
12997
12998
12999
13000 fi
13001
13002         rm -Rf build
13003
13004
13005
13006
13007         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13008 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13009
13010
13011 cat confdefs.h - <<_ACEOF >conftest.c
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017
13018
13019                 #include <linux/bio.h>
13020
13021 int
13022 main (void)
13023 {
13024
13025                 int flags __attribute__ ((unused));
13026                 flags = REQ_FAILFAST_MASK;
13027
13028   ;
13029   return 0;
13030 }
13031
13032 _ACEOF
13033
13034
13035         rm -Rf build && mkdir -p build
13036         echo "obj-m := conftest.o" >build/Makefile
13037         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'
13038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039   (eval $ac_try) 2>&5
13040   ac_status=$?
13041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044   (eval $ac_try) 2>&5
13045   ac_status=$?
13046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; }; then
13048
13049                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13050 $as_echo "yes" >&6; }
13051
13052 cat >>confdefs.h <<\_ACEOF
13053 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13054 _ACEOF
13055
13056
13057 else
13058   $as_echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061                 { $as_echo "$as_me:$LINENO: result: no" >&5
13062 $as_echo "no" >&6; }
13063
13064
13065
13066 fi
13067
13068         rm -Rf build
13069
13070
13071
13072
13073         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13074 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13075         tmp_flags="$EXTRA_KCFLAGS"
13076         EXTRA_KCFLAGS="-Werror"
13077
13078
13079 cat confdefs.h - <<_ACEOF >conftest.c
13080 /* confdefs.h.  */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h.  */
13085
13086
13087                 #include <linux/bio.h>
13088
13089 int
13090 main (void)
13091 {
13092
13093                 void (*wanted_end_io)(struct bio *, int) = NULL;
13094                 bio_end_io_t *local_end_io __attribute__ ((unused));
13095
13096                 local_end_io = wanted_end_io;
13097
13098   ;
13099   return 0;
13100 }
13101
13102 _ACEOF
13103
13104
13105         rm -Rf build && mkdir -p build
13106         echo "obj-m := conftest.o" >build/Makefile
13107         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'
13108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109   (eval $ac_try) 2>&5
13110   ac_status=$?
13111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118
13119                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13120 $as_echo "yes" >&6; }
13121
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_2ARGS_BIO_END_IO_T 1
13124 _ACEOF
13125
13126
13127 else
13128   $as_echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13130
13131                 { $as_echo "$as_me:$LINENO: result: no" >&5
13132 $as_echo "no" >&6; }
13133
13134
13135
13136 fi
13137
13138         rm -Rf build
13139
13140
13141         EXTRA_KCFLAGS="$tmp_flags"
13142
13143
13144         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13145 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13146
13147
13148 cat confdefs.h - <<_ACEOF >conftest.c
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154
13155
13156                 #include <linux/bio.h>
13157
13158 int
13159 main (void)
13160 {
13161
13162                 int flags __attribute__ ((unused));
13163                 flags = BIO_RW_SYNC;
13164
13165   ;
13166   return 0;
13167 }
13168
13169 _ACEOF
13170
13171
13172         rm -Rf build && mkdir -p build
13173         echo "obj-m := conftest.o" >build/Makefile
13174         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'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181   (eval $ac_try) 2>&5
13182   ac_status=$?
13183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; }; then
13185
13186                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13187 $as_echo "yes" >&6; }
13188
13189 cat >>confdefs.h <<\_ACEOF
13190 #define HAVE_BIO_RW_SYNC 1
13191 _ACEOF
13192
13193
13194 else
13195   $as_echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13197
13198                 { $as_echo "$as_me:$LINENO: result: no" >&5
13199 $as_echo "no" >&6; }
13200
13201
13202
13203 fi
13204
13205         rm -Rf build
13206
13207
13208
13209
13210         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13211 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13212
13213
13214 cat confdefs.h - <<_ACEOF >conftest.c
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220
13221
13222                 #include <linux/bio.h>
13223
13224 int
13225 main (void)
13226 {
13227
13228                 int flags __attribute__ ((unused));
13229                 flags = BIO_RW_SYNCIO;
13230
13231   ;
13232   return 0;
13233 }
13234
13235 _ACEOF
13236
13237
13238         rm -Rf build && mkdir -p build
13239         echo "obj-m := conftest.o" >build/Makefile
13240         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'
13241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242   (eval $ac_try) 2>&5
13243   ac_status=$?
13244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251
13252                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13253 $as_echo "yes" >&6; }
13254
13255 cat >>confdefs.h <<\_ACEOF
13256 #define HAVE_BIO_RW_SYNCIO 1
13257 _ACEOF
13258
13259
13260 else
13261   $as_echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264                 { $as_echo "$as_me:$LINENO: result: no" >&5
13265 $as_echo "no" >&6; }
13266
13267
13268
13269 fi
13270
13271         rm -Rf build
13272
13273
13274
13275
13276         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13277 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13278
13279
13280 cat confdefs.h - <<_ACEOF >conftest.c
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286
13287
13288                 #include <linux/bio.h>
13289
13290 int
13291 main (void)
13292 {
13293
13294                 int flags __attribute__ ((unused));
13295                 flags = REQ_SYNC;
13296
13297   ;
13298   return 0;
13299 }
13300
13301 _ACEOF
13302
13303
13304         rm -Rf build && mkdir -p build
13305         echo "obj-m := conftest.o" >build/Makefile
13306         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'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313   (eval $ac_try) 2>&5
13314   ac_status=$?
13315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; }; then
13317
13318                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13319 $as_echo "yes" >&6; }
13320
13321 cat >>confdefs.h <<\_ACEOF
13322 #define HAVE_REQ_SYNC 1
13323 _ACEOF
13324
13325
13326 else
13327   $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330                 { $as_echo "$as_me:$LINENO: result: no" >&5
13331 $as_echo "no" >&6; }
13332
13333
13334
13335 fi
13336
13337         rm -Rf build
13338
13339
13340
13341
13342         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13343 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13344
13345
13346 cat confdefs.h - <<_ACEOF >conftest.c
13347 /* confdefs.h.  */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h.  */
13352
13353
13354                 #include <linux/blkdev.h>
13355
13356 int
13357 main (void)
13358 {
13359
13360                 struct request *req = NULL;
13361                 (void) blk_end_request(req, 0, 0);
13362
13363   ;
13364   return 0;
13365 }
13366
13367 _ACEOF
13368
13369
13370         rm -Rf build && mkdir -p build
13371         echo "obj-m := conftest.o" >build/Makefile
13372         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383
13384                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13385 $as_echo "yes" >&6; }
13386
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_BLK_END_REQUEST 1
13389 _ACEOF
13390
13391
13392 else
13393   $as_echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396                 { $as_echo "$as_me:$LINENO: result: no" >&5
13397 $as_echo "no" >&6; }
13398
13399
13400
13401 fi
13402
13403         rm -Rf build
13404
13405
13406
13407         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13408 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13409
13410
13411 cat confdefs.h - <<_ACEOF >conftest.c
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417
13418
13419                 #include <linux/module.h>
13420                 #include <linux/blkdev.h>
13421
13422                 MODULE_LICENSE("CDDL");
13423
13424 int
13425 main (void)
13426 {
13427
13428                 struct request *req = NULL;
13429                 (void) blk_end_request(req, 0, 0);
13430
13431   ;
13432   return 0;
13433 }
13434
13435 _ACEOF
13436
13437
13438         rm -Rf build && mkdir -p build
13439         echo "obj-m := conftest.o" >build/Makefile
13440         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'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447   (eval $ac_try) 2>&5
13448   ac_status=$?
13449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); }; }; then
13451
13452                 { $as_echo "$as_me:$LINENO: result: no" >&5
13453 $as_echo "no" >&6; }
13454
13455 else
13456   $as_echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13460 $as_echo "yes" >&6; }
13461
13462 cat >>confdefs.h <<\_ACEOF
13463 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13464 _ACEOF
13465
13466
13467
13468
13469 fi
13470
13471         rm -Rf build
13472
13473
13474
13475
13476         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13477 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13478
13479
13480 cat confdefs.h - <<_ACEOF >conftest.c
13481 /* confdefs.h.  */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h.  */
13486
13487
13488                 #include <linux/blkdev.h>
13489
13490 int
13491 main (void)
13492 {
13493
13494                 struct request_queue *q = NULL;
13495                 (void) blk_fetch_request(q);
13496
13497   ;
13498   return 0;
13499 }
13500
13501 _ACEOF
13502
13503
13504         rm -Rf build && mkdir -p build
13505         echo "obj-m := conftest.o" >build/Makefile
13506         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'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517
13518                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13519 $as_echo "yes" >&6; }
13520
13521 cat >>confdefs.h <<\_ACEOF
13522 #define HAVE_BLK_FETCH_REQUEST 1
13523 _ACEOF
13524
13525
13526 else
13527   $as_echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530                 { $as_echo "$as_me:$LINENO: result: no" >&5
13531 $as_echo "no" >&6; }
13532
13533
13534
13535 fi
13536
13537         rm -Rf build
13538
13539
13540
13541
13542         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13543 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13544
13545
13546 cat confdefs.h - <<_ACEOF >conftest.c
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552
13553
13554                 #include <linux/blkdev.h>
13555
13556 int
13557 main (void)
13558 {
13559
13560                 struct request_queue *q = NULL;
13561                 struct request *req = NULL;
13562                 blk_requeue_request(q, req);
13563
13564   ;
13565   return 0;
13566 }
13567
13568 _ACEOF
13569
13570
13571         rm -Rf build && mkdir -p build
13572         echo "obj-m := conftest.o" >build/Makefile
13573         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'
13574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584
13585                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13586 $as_echo "yes" >&6; }
13587
13588 cat >>confdefs.h <<\_ACEOF
13589 #define HAVE_BLK_REQUEUE_REQUEST 1
13590 _ACEOF
13591
13592
13593 else
13594   $as_echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597                 { $as_echo "$as_me:$LINENO: result: no" >&5
13598 $as_echo "no" >&6; }
13599
13600
13601
13602 fi
13603
13604         rm -Rf build
13605
13606
13607
13608
13609         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13610 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13611
13612
13613 cat confdefs.h - <<_ACEOF >conftest.c
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619
13620
13621                 #include <linux/blkdev.h>
13622
13623 int
13624 main (void)
13625 {
13626
13627                 struct request *req = NULL;
13628                 (void) blk_rq_bytes(req);
13629
13630   ;
13631   return 0;
13632 }
13633
13634 _ACEOF
13635
13636
13637         rm -Rf build && mkdir -p build
13638         echo "obj-m := conftest.o" >build/Makefile
13639         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'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646   (eval $ac_try) 2>&5
13647   ac_status=$?
13648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; }; then
13650
13651                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13652 $as_echo "yes" >&6; }
13653
13654 cat >>confdefs.h <<\_ACEOF
13655 #define HAVE_BLK_RQ_BYTES 1
13656 _ACEOF
13657
13658
13659 else
13660   $as_echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663                 { $as_echo "$as_me:$LINENO: result: no" >&5
13664 $as_echo "no" >&6; }
13665
13666
13667
13668 fi
13669
13670         rm -Rf build
13671
13672
13673
13674         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13675 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13676
13677
13678 cat confdefs.h - <<_ACEOF >conftest.c
13679 /* confdefs.h.  */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h.  */
13684
13685
13686                 #include <linux/module.h>
13687                 #include <linux/blkdev.h>
13688
13689                 MODULE_LICENSE("CDDL");
13690
13691 int
13692 main (void)
13693 {
13694
13695                 struct request *req = NULL;
13696                 (void) blk_rq_bytes(req);
13697
13698   ;
13699   return 0;
13700 }
13701
13702 _ACEOF
13703
13704
13705         rm -Rf build && mkdir -p build
13706         echo "obj-m := conftest.o" >build/Makefile
13707         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'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714   (eval $ac_try) 2>&5
13715   ac_status=$?
13716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; }; then
13718
13719                 { $as_echo "$as_me:$LINENO: result: no" >&5
13720 $as_echo "no" >&6; }
13721
13722 else
13723   $as_echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13727 $as_echo "yes" >&6; }
13728
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13731 _ACEOF
13732
13733
13734
13735
13736 fi
13737
13738         rm -Rf build
13739
13740
13741
13742
13743         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13744 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13745
13746
13747 cat confdefs.h - <<_ACEOF >conftest.c
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753
13754
13755                 #include <linux/blkdev.h>
13756
13757 int
13758 main (void)
13759 {
13760
13761                 struct request *req = NULL;
13762                 (void) blk_rq_pos(req);
13763
13764   ;
13765   return 0;
13766 }
13767
13768 _ACEOF
13769
13770
13771         rm -Rf build && mkdir -p build
13772         echo "obj-m := conftest.o" >build/Makefile
13773         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'
13774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; }; then
13784
13785                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13786 $as_echo "yes" >&6; }
13787
13788 cat >>confdefs.h <<\_ACEOF
13789 #define HAVE_BLK_RQ_POS 1
13790 _ACEOF
13791
13792
13793 else
13794   $as_echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13796
13797                 { $as_echo "$as_me:$LINENO: result: no" >&5
13798 $as_echo "no" >&6; }
13799
13800
13801
13802 fi
13803
13804         rm -Rf build
13805
13806
13807
13808
13809         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13810 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13811
13812
13813 cat confdefs.h - <<_ACEOF >conftest.c
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819
13820
13821                 #include <linux/blkdev.h>
13822
13823 int
13824 main (void)
13825 {
13826
13827                 struct request *req = NULL;
13828                 (void) blk_rq_sectors(req);
13829
13830   ;
13831   return 0;
13832 }
13833
13834 _ACEOF
13835
13836
13837         rm -Rf build && mkdir -p build
13838         echo "obj-m := conftest.o" >build/Makefile
13839         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'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; }; then
13850
13851                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13852 $as_echo "yes" >&6; }
13853
13854 cat >>confdefs.h <<\_ACEOF
13855 #define HAVE_BLK_RQ_SECTORS 1
13856 _ACEOF
13857
13858
13859 else
13860   $as_echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863                 { $as_echo "$as_me:$LINENO: result: no" >&5
13864 $as_echo "no" >&6; }
13865
13866
13867
13868 fi
13869
13870         rm -Rf build
13871
13872
13873
13874
13875         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13876 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13877
13878
13879 cat confdefs.h - <<_ACEOF >conftest.c
13880 /* confdefs.h.  */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h.  */
13885
13886
13887                 #include <linux/blkdev.h>
13888
13889 int
13890 main (void)
13891 {
13892
13893                 struct gendisk *disk = NULL;
13894                 (void) get_disk_ro(disk);
13895
13896   ;
13897   return 0;
13898 }
13899
13900 _ACEOF
13901
13902
13903         rm -Rf build && mkdir -p build
13904         echo "obj-m := conftest.o" >build/Makefile
13905         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'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912   (eval $ac_try) 2>&5
13913   ac_status=$?
13914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; }; then
13916
13917                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13918 $as_echo "yes" >&6; }
13919
13920 cat >>confdefs.h <<\_ACEOF
13921 #define HAVE_GET_DISK_RO 1
13922 _ACEOF
13923
13924
13925 else
13926   $as_echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929                 { $as_echo "$as_me:$LINENO: result: no" >&5
13930 $as_echo "no" >&6; }
13931
13932
13933
13934 fi
13935
13936         rm -Rf build
13937
13938
13939
13940
13941         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13942 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13943
13944
13945 cat confdefs.h - <<_ACEOF >conftest.c
13946 /* confdefs.h.  */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h.  */
13951
13952
13953                 #include <linux/blkdev.h>
13954
13955 int
13956 main (void)
13957 {
13958
13959                 struct request *req = NULL;
13960                 (void) rq_is_sync(req);
13961
13962   ;
13963   return 0;
13964 }
13965
13966 _ACEOF
13967
13968
13969         rm -Rf build && mkdir -p build
13970         echo "obj-m := conftest.o" >build/Makefile
13971         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'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978   (eval $ac_try) 2>&5
13979   ac_status=$?
13980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981   (exit $ac_status); }; }; then
13982
13983                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13984 $as_echo "yes" >&6; }
13985
13986 cat >>confdefs.h <<\_ACEOF
13987 #define HAVE_RQ_IS_SYNC 1
13988 _ACEOF
13989
13990
13991 else
13992   $as_echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995                 { $as_echo "$as_me:$LINENO: result: no" >&5
13996 $as_echo "no" >&6; }
13997
13998
13999
14000 fi
14001
14002         rm -Rf build
14003
14004
14005
14006
14007         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14008 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14009
14010
14011 cat confdefs.h - <<_ACEOF >conftest.c
14012 /* confdefs.h.  */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h.  */
14017
14018
14019                 #include <linux/blkdev.h>
14020
14021 int
14022 main (void)
14023 {
14024
14025                 struct bio_vec *bv;
14026                 struct req_iterator iter;
14027                 struct request *req = NULL;
14028                 rq_for_each_segment(bv, req, iter) { }
14029
14030   ;
14031   return 0;
14032 }
14033
14034 _ACEOF
14035
14036
14037         rm -Rf build && mkdir -p build
14038         echo "obj-m := conftest.o" >build/Makefile
14039         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'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050
14051                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14052 $as_echo "yes" >&6; }
14053
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14056 _ACEOF
14057
14058
14059 else
14060   $as_echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063                 { $as_echo "$as_me:$LINENO: result: no" >&5
14064 $as_echo "no" >&6; }
14065
14066
14067
14068 fi
14069
14070         rm -Rf build
14071
14072
14073
14074         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14075 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14076
14077
14078 cat confdefs.h - <<_ACEOF >conftest.c
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084
14085
14086                 #include <linux/fs.h>
14087                 #include <linux/xattr.h>
14088
14089                 const struct xattr_handler xattr_test_handler = {
14090                         .prefix = "test",
14091                         .get    = NULL,
14092                         .set    = NULL,
14093                 };
14094
14095                 const struct xattr_handler *xattr_handlers[] = {
14096                         &xattr_test_handler,
14097                 };
14098
14099 int
14100 main (void)
14101 {
14102
14103                 struct super_block sb __attribute__ ((unused));
14104
14105                 sb.s_xattr = xattr_handlers;
14106
14107   ;
14108   return 0;
14109 }
14110
14111 _ACEOF
14112
14113
14114         rm -Rf build && mkdir -p build
14115         echo "obj-m := conftest.o" >build/Makefile
14116         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'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123   (eval $ac_try) 2>&5
14124   ac_status=$?
14125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); }; }; then
14127
14128                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14129 $as_echo "yes" >&6; }
14130
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_CONST_XATTR_HANDLER 1
14133 _ACEOF
14134
14135
14136 else
14137   $as_echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140                 { $as_echo "$as_me:$LINENO: result: no" >&5
14141 $as_echo "no" >&6; }
14142
14143
14144
14145 fi
14146
14147         rm -Rf build
14148
14149
14150
14151
14152         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14153 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14154
14155
14156 cat confdefs.h - <<_ACEOF >conftest.c
14157 /* confdefs.h.  */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h.  */
14162
14163
14164                 #include <linux/xattr.h>
14165
14166 int
14167 main (void)
14168 {
14169
14170                 int (*get)(struct dentry *dentry, const char *name,
14171                     void *buffer, size_t size, int handler_flags) = NULL;
14172                 struct xattr_handler xops __attribute__ ((unused));
14173
14174                 xops.get = get;
14175
14176   ;
14177   return 0;
14178 }
14179
14180 _ACEOF
14181
14182
14183         rm -Rf build && mkdir -p build
14184         echo "obj-m := conftest.o" >build/Makefile
14185         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'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196
14197                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14198 $as_echo "yes" >&6; }
14199
14200 cat >>confdefs.h <<\_ACEOF
14201 #define HAVE_DENTRY_XATTR_GET 1
14202 _ACEOF
14203
14204
14205 else
14206   $as_echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209                 { $as_echo "$as_me:$LINENO: result: no" >&5
14210 $as_echo "no" >&6; }
14211
14212
14213
14214 fi
14215
14216         rm -Rf build
14217
14218
14219
14220
14221         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14222 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14223
14224
14225 cat confdefs.h - <<_ACEOF >conftest.c
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231
14232
14233                 #include <linux/xattr.h>
14234
14235 int
14236 main (void)
14237 {
14238
14239                 int (*set)(struct dentry *dentry, const char *name,
14240                     const void *buffer, size_t size, int flags,
14241                     int handler_flags) = NULL;
14242                 struct xattr_handler xops __attribute__ ((unused));
14243
14244                 xops.set = set;
14245
14246   ;
14247   return 0;
14248 }
14249
14250 _ACEOF
14251
14252
14253         rm -Rf build && mkdir -p build
14254         echo "obj-m := conftest.o" >build/Makefile
14255         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'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; }; then
14266
14267                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14268 $as_echo "yes" >&6; }
14269
14270 cat >>confdefs.h <<\_ACEOF
14271 #define HAVE_DENTRY_XATTR_SET 1
14272 _ACEOF
14273
14274
14275 else
14276   $as_echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279                 { $as_echo "$as_me:$LINENO: result: no" >&5
14280 $as_echo "no" >&6; }
14281
14282
14283
14284 fi
14285
14286         rm -Rf build
14287
14288
14289
14290
14291         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14292 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14293
14294
14295 cat confdefs.h - <<_ACEOF >conftest.c
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301
14302
14303                 #include <linux/fs.h>
14304
14305 int
14306 main (void)
14307 {
14308
14309                 int (*fsync) (struct file *, int datasync) = NULL;
14310                 struct file_operations fops __attribute__ ((unused));
14311
14312                 fops.fsync = fsync;
14313
14314   ;
14315   return 0;
14316 }
14317
14318 _ACEOF
14319
14320
14321         rm -Rf build && mkdir -p build
14322         echo "obj-m := conftest.o" >build/Makefile
14323         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'
14324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325   (eval $ac_try) 2>&5
14326   ac_status=$?
14327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334
14335                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14336 $as_echo "yes" >&6; }
14337
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_2ARGS_FSYNC 1
14340 _ACEOF
14341
14342
14343 else
14344   $as_echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347                 { $as_echo "$as_me:$LINENO: result: no" >&5
14348 $as_echo "no" >&6; }
14349
14350
14351
14352 fi
14353
14354         rm -Rf build
14355
14356
14357
14358
14359         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14360 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14361
14362
14363 cat confdefs.h - <<_ACEOF >conftest.c
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369
14370
14371                 #include <linux/fs.h>
14372
14373 int
14374 main (void)
14375 {
14376
14377                 void (*evict_inode) (struct inode *) = NULL;
14378                 struct super_operations sops __attribute__ ((unused)) = {
14379                         .evict_inode = evict_inode,
14380                 };
14381
14382   ;
14383   return 0;
14384 }
14385
14386 _ACEOF
14387
14388
14389         rm -Rf build && mkdir -p build
14390         echo "obj-m := conftest.o" >build/Makefile
14391         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'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402
14403                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14404 $as_echo "yes" >&6; }
14405
14406 cat >>confdefs.h <<\_ACEOF
14407 #define HAVE_EVICT_INODE 1
14408 _ACEOF
14409
14410
14411 else
14412   $as_echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415                 { $as_echo "$as_me:$LINENO: result: no" >&5
14416 $as_echo "no" >&6; }
14417
14418
14419
14420 fi
14421
14422         rm -Rf build
14423
14424
14425
14426
14427         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14428 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14429         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14430                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14431         rc=$?
14432         if test $rc -ne 0; then
14433                 export=0
14434                 for file in fs/inode.c; do
14435                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
14436                         rc=$?
14437                         if test $rc -eq 0; then
14438                                 export=1
14439                                 break;
14440                         fi
14441                 done
14442                 if test $export -eq 0; then
14443                         { $as_echo "$as_me:$LINENO: result: no" >&5
14444 $as_echo "no" >&6; }
14445
14446                 else
14447                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14448 $as_echo "yes" >&6; }
14449
14450 cat >>confdefs.h <<\_ACEOF
14451 #define HAVE_INSERT_INODE_LOCKED 1
14452 _ACEOF
14453
14454                 fi
14455         else
14456                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14457 $as_echo "yes" >&6; }
14458
14459 cat >>confdefs.h <<\_ACEOF
14460 #define HAVE_INSERT_INODE_LOCKED 1
14461 _ACEOF
14462
14463         fi
14464
14465
14466
14467         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
14468 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
14469         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
14470                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14471         rc=$?
14472         if test $rc -ne 0; then
14473                 export=0
14474                 for file in fs/dcache.c; do
14475                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
14476                         rc=$?
14477                         if test $rc -eq 0; then
14478                                 export=1
14479                                 break;
14480                         fi
14481                 done
14482                 if test $export -eq 0; then
14483                         { $as_echo "$as_me:$LINENO: result: no" >&5
14484 $as_echo "no" >&6; }
14485
14486                 else
14487                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14488 $as_echo "yes" >&6; }
14489
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_D_OBTAIN_ALIAS 1
14492 _ACEOF
14493
14494                 fi
14495         else
14496                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14497 $as_echo "yes" >&6; }
14498
14499 cat >>confdefs.h <<\_ACEOF
14500 #define HAVE_D_OBTAIN_ALIAS 1
14501 _ACEOF
14502
14503         fi
14504
14505
14506
14507         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
14508 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
14509         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
14510                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14511         rc=$?
14512         if test $rc -ne 0; then
14513                 export=0
14514                 for file in fs/block_dev.c; do
14515                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
14516                         rc=$?
14517                         if test $rc -eq 0; then
14518                                 export=1
14519                                 break;
14520                         fi
14521                 done
14522                 if test $export -eq 0; then
14523                         { $as_echo "$as_me:$LINENO: result: no" >&5
14524 $as_echo "no" >&6; }
14525
14526                 else
14527                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14528 $as_echo "yes" >&6; }
14529
14530 cat >>confdefs.h <<\_ACEOF
14531 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14532 _ACEOF
14533
14534                 fi
14535         else
14536                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14537 $as_echo "yes" >&6; }
14538
14539 cat >>confdefs.h <<\_ACEOF
14540 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14541 _ACEOF
14542
14543         fi
14544
14545
14546
14547         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
14548 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
14549         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
14550                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14551         rc=$?
14552         if test $rc -ne 0; then
14553                 export=0
14554                 for file in mm/truncate.c; do
14555                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
14556                         rc=$?
14557                         if test $rc -eq 0; then
14558                                 export=1
14559                                 break;
14560                         fi
14561                 done
14562                 if test $export -eq 0; then
14563                         { $as_echo "$as_me:$LINENO: result: no" >&5
14564 $as_echo "no" >&6; }
14565
14566                 else
14567                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14568 $as_echo "yes" >&6; }
14569
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_TRUNCATE_SETSIZE 1
14572 _ACEOF
14573
14574                 fi
14575         else
14576                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14577 $as_echo "yes" >&6; }
14578
14579 cat >>confdefs.h <<\_ACEOF
14580 #define HAVE_TRUNCATE_SETSIZE 1
14581 _ACEOF
14582
14583         fi
14584
14585
14586
14587         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
14588 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
14589         tmp_flags="$EXTRA_KCFLAGS"
14590         EXTRA_KCFLAGS="-Werror"
14591
14592
14593 cat confdefs.h - <<_ACEOF >conftest.c
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599
14600
14601                 #include <linux/security.h>
14602
14603 int
14604 main (void)
14605 {
14606
14607                 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
14608
14609   ;
14610   return 0;
14611 }
14612
14613 _ACEOF
14614
14615
14616         rm -Rf build && mkdir -p build
14617         echo "obj-m := conftest.o" >build/Makefile
14618         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'
14619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620   (eval $ac_try) 2>&5
14621   ac_status=$?
14622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629
14630                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14631 $as_echo "yes" >&6; }
14632
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
14635 _ACEOF
14636
14637
14638 else
14639   $as_echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642                 { $as_echo "$as_me:$LINENO: result: no" >&5
14643 $as_echo "no" >&6; }
14644
14645
14646
14647 fi
14648
14649         rm -Rf build
14650
14651
14652         EXTRA_KCFLAGS="$tmp_flags"
14653
14654
14655         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
14656 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
14657         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
14658                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14659         rc=$?
14660         if test $rc -ne 0; then
14661                 export=0
14662                 for file in fs/super.c; do
14663                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
14664                         rc=$?
14665                         if test $rc -eq 0; then
14666                                 export=1
14667                                 break;
14668                         fi
14669                 done
14670                 if test $export -eq 0; then
14671                         { $as_echo "$as_me:$LINENO: result: no" >&5
14672 $as_echo "no" >&6; }
14673
14674                 else
14675                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14676 $as_echo "yes" >&6; }
14677
14678 cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_MOUNT_NODEV 1
14680 _ACEOF
14681
14682                 fi
14683         else
14684                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14685 $as_echo "yes" >&6; }
14686
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_MOUNT_NODEV 1
14689 _ACEOF
14690
14691         fi
14692
14693
14694
14695         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
14696 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
14697
14698
14699 cat confdefs.h - <<_ACEOF >conftest.c
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705
14706
14707                 #include <linux/fs.h>
14708
14709 int
14710 main (void)
14711 {
14712
14713                 struct super_block sb __attribute__ ((unused));
14714                 sb.s_bdi = NULL;
14715
14716   ;
14717   return 0;
14718 }
14719
14720 _ACEOF
14721
14722
14723         rm -Rf build && mkdir -p build
14724         echo "obj-m := conftest.o" >build/Makefile
14725         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'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; }; then
14736
14737                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14738 $as_echo "yes" >&6; }
14739
14740 cat >>confdefs.h <<\_ACEOF
14741 #define HAVE_BDI 1
14742 _ACEOF
14743
14744
14745 else
14746   $as_echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749                 { $as_echo "$as_me:$LINENO: result: no" >&5
14750 $as_echo "no" >&6; }
14751
14752
14753
14754 fi
14755
14756         rm -Rf build
14757
14758
14759
14760
14761         if test "$LINUX_OBJ" != "$LINUX"; then
14762                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14763         fi
14764
14765
14766
14767                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
14768         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14769         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14770
14771
14772  ;;
14773                 user)
14774
14775
14776 # Check whether --with-udevdir was given.
14777 if test "${with_udevdir+set}" = set; then
14778   withval=$with_udevdir; udevdir=$withval
14779 else
14780   udevdir='${exec_prefix}/lib/udev'
14781 fi
14782
14783
14784
14785 # Check whether --with-udevruledir was given.
14786 if test "${with_udevruledir+set}" = set; then
14787   withval=$with_udevruledir; udevruledir=$withval
14788 else
14789   udevruledir='${udevdir}/rules.d'
14790 fi
14791
14792
14793
14794
14795
14796
14797         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14798 $as_echo_n "checking for target asm dir... " >&6; }
14799         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
14800
14801         case $TARGET_ARCH in
14802         i386|x86_64)
14803                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
14804                 ;;
14805         *)
14806                 TARGET_ASM_DIR=asm-generic
14807                 ;;
14808         esac
14809
14810
14811         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14812 $as_echo "$TARGET_ASM_DIR" >&6; }
14813
14814
14815         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14816 $as_echo_n "checking for ioctl()... " >&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 #include <unistd.h>
14824
14825 _ACEOF
14826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14827   $EGREP "ioctl" >/dev/null 2>&1; then
14828   is_unistd=yes
14829 else
14830   is_unistd=no
14831 fi
14832 rm -f conftest*
14833
14834         cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840 #include <sys/ioctl.h>
14841
14842 _ACEOF
14843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14844   $EGREP "ioctl" >/dev/null 2>&1; then
14845   is_sys_ioctl=yes
14846 else
14847   is_sys_ioctl=no
14848 fi
14849 rm -f conftest*
14850
14851         cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h.  */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h.  */
14857 #include <stropts.h>
14858
14859 _ACEOF
14860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14861   $EGREP "ioctl" >/dev/null 2>&1; then
14862   is_stropts=yes
14863 else
14864   is_stropts=no
14865 fi
14866 rm -f conftest*
14867
14868
14869         if test $is_unistd = yes; then
14870                 result=unistd.h
14871
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_IOCTL_IN_UNISTD_H 1
14874 _ACEOF
14875
14876         else
14877
14878                 if test $is_sys_ioctl = yes; then
14879                         result=sys/ioctl.h
14880
14881 cat >>confdefs.h <<\_ACEOF
14882 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14883 _ACEOF
14884
14885                 elif test $is_stropts = yes; then
14886
14887 cat >>confdefs.h <<\_ACEOF
14888 #define HAVE_IOCTL_IN_STROPTS_H 1
14889 _ACEOF
14890
14891                 else
14892                         result=no
14893                 fi
14894         fi
14895
14896         if test $result = no; then
14897                 { $as_echo "$as_me:$LINENO: result: no" >&5
14898 $as_echo "no" >&6; }
14899                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14900 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14901    { (exit 1); exit 1; }; }
14902         else
14903                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14904 $as_echo "yes" >&6; }
14905         fi
14906
14907
14908         ZLIB=
14909
14910         if test "${ac_cv_header_zlib_h+set}" = set; then
14911   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14912 $as_echo_n "checking for zlib.h... " >&6; }
14913 if test "${ac_cv_header_zlib_h+set}" = set; then
14914   $as_echo_n "(cached) " >&6
14915 fi
14916 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14917 $as_echo "$ac_cv_header_zlib_h" >&6; }
14918 else
14919   # Is the header compilable?
14920 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14921 $as_echo_n "checking zlib.h usability... " >&6; }
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928 $ac_includes_default
14929 #include <zlib.h>
14930 _ACEOF
14931 rm -f conftest.$ac_objext
14932 if { (ac_try="$ac_compile"
14933 case "(($ac_try" in
14934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935   *) ac_try_echo=$ac_try;;
14936 esac
14937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14938 $as_echo "$ac_try_echo") >&5
14939   (eval "$ac_compile") 2>conftest.er1
14940   ac_status=$?
14941   grep -v '^ *+' conftest.er1 >conftest.err
14942   rm -f conftest.er1
14943   cat conftest.err >&5
14944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); } && {
14946          test -z "$ac_c_werror_flag" ||
14947          test ! -s conftest.err
14948        } && test -s conftest.$ac_objext; then
14949   ac_header_compiler=yes
14950 else
14951   $as_echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954         ac_header_compiler=no
14955 fi
14956
14957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14959 $as_echo "$ac_header_compiler" >&6; }
14960
14961 # Is the header present?
14962 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14963 $as_echo_n "checking zlib.h presence... " >&6; }
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h.  */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h.  */
14970 #include <zlib.h>
14971 _ACEOF
14972 if { (ac_try="$ac_cpp conftest.$ac_ext"
14973 case "(($ac_try" in
14974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975   *) ac_try_echo=$ac_try;;
14976 esac
14977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14978 $as_echo "$ac_try_echo") >&5
14979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14980   ac_status=$?
14981   grep -v '^ *+' conftest.er1 >conftest.err
14982   rm -f conftest.er1
14983   cat conftest.err >&5
14984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } >/dev/null && {
14986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14987          test ! -s conftest.err
14988        }; then
14989   ac_header_preproc=yes
14990 else
14991   $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994   ac_header_preproc=no
14995 fi
14996
14997 rm -f conftest.err conftest.$ac_ext
14998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14999 $as_echo "$ac_header_preproc" >&6; }
15000
15001 # So?  What about this header?
15002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15003   yes:no: )
15004     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15005 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15006     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
15007 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
15008     ac_header_preproc=yes
15009     ;;
15010   no:yes:* )
15011     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
15012 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
15013     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
15014 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
15015     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
15016 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
15017     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
15018 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15019     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
15020 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
15021     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
15022 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
15023
15024     ;;
15025 esac
15026 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15027 $as_echo_n "checking for zlib.h... " >&6; }
15028 if test "${ac_cv_header_zlib_h+set}" = set; then
15029   $as_echo_n "(cached) " >&6
15030 else
15031   ac_cv_header_zlib_h=$ac_header_preproc
15032 fi
15033 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15034 $as_echo "$ac_cv_header_zlib_h" >&6; }
15035
15036 fi
15037 if test "x$ac_cv_header_zlib_h" = x""yes; then
15038   :
15039 else
15040   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15042 { { $as_echo "$as_me:$LINENO: error:
15043         *** zlib.h missing, zlib-devel package required
15044 See \`config.log' for more details." >&5
15045 $as_echo "$as_me: error:
15046         *** zlib.h missing, zlib-devel package required
15047 See \`config.log' for more details." >&2;}
15048    { (exit 1); exit 1; }; }; }
15049 fi
15050
15051
15052
15053
15054 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
15055 $as_echo_n "checking for compress2 in -lz... " >&6; }
15056 if test "${ac_cv_lib_z_compress2+set}" = set; then
15057   $as_echo_n "(cached) " >&6
15058 else
15059   ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lz  $LIBS"
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h.  */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h.  */
15067
15068 /* Override any GCC internal prototype to avoid an error.
15069    Use char because int might match the return type of a GCC
15070    builtin and then its argument prototype would still apply.  */
15071 #ifdef __cplusplus
15072 extern "C"
15073 #endif
15074 char compress2 ();
15075 int
15076 main ()
15077 {
15078 return compress2 ();
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (ac_try="$ac_link"
15085 case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091   (eval "$ac_link") 2>conftest.er1
15092   ac_status=$?
15093   grep -v '^ *+' conftest.er1 >conftest.err
15094   rm -f conftest.er1
15095   cat conftest.err >&5
15096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); } && {
15098          test -z "$ac_c_werror_flag" ||
15099          test ! -s conftest.err
15100        } && test -s conftest$ac_exeext && {
15101          test "$cross_compiling" = yes ||
15102          $as_test_x conftest$ac_exeext
15103        }; then
15104   ac_cv_lib_z_compress2=yes
15105 else
15106   $as_echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15108
15109         ac_cv_lib_z_compress2=no
15110 fi
15111
15112 rm -rf conftest.dSYM
15113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15114       conftest$ac_exeext conftest.$ac_ext
15115 LIBS=$ac_check_lib_save_LIBS
15116 fi
15117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
15118 $as_echo "$ac_cv_lib_z_compress2" >&6; }
15119 if test "x$ac_cv_lib_z_compress2" = x""yes; then
15120   cat >>confdefs.h <<_ACEOF
15121 #define HAVE_LIBZ 1
15122 _ACEOF
15123
15124   LIBS="-lz $LIBS"
15125
15126 else
15127   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15129 { { $as_echo "$as_me:$LINENO: error:
15130         *** compress2() missing, zlib-devel package required
15131 See \`config.log' for more details." >&5
15132 $as_echo "$as_me: error:
15133         *** compress2() missing, zlib-devel package required
15134 See \`config.log' for more details." >&2;}
15135    { (exit 1); exit 1; }; }; }
15136 fi
15137
15138
15139
15140 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
15141 $as_echo_n "checking for uncompress in -lz... " >&6; }
15142 if test "${ac_cv_lib_z_uncompress+set}" = set; then
15143   $as_echo_n "(cached) " >&6
15144 else
15145   ac_check_lib_save_LIBS=$LIBS
15146 LIBS="-lz  $LIBS"
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h.  */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h.  */
15153
15154 /* Override any GCC internal prototype to avoid an error.
15155    Use char because int might match the return type of a GCC
15156    builtin and then its argument prototype would still apply.  */
15157 #ifdef __cplusplus
15158 extern "C"
15159 #endif
15160 char uncompress ();
15161 int
15162 main ()
15163 {
15164 return uncompress ();
15165   ;
15166   return 0;
15167 }
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (ac_try="$ac_link"
15171 case "(($ac_try" in
15172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173   *) ac_try_echo=$ac_try;;
15174 esac
15175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15176 $as_echo "$ac_try_echo") >&5
15177   (eval "$ac_link") 2>conftest.er1
15178   ac_status=$?
15179   grep -v '^ *+' conftest.er1 >conftest.err
15180   rm -f conftest.er1
15181   cat conftest.err >&5
15182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); } && {
15184          test -z "$ac_c_werror_flag" ||
15185          test ! -s conftest.err
15186        } && test -s conftest$ac_exeext && {
15187          test "$cross_compiling" = yes ||
15188          $as_test_x conftest$ac_exeext
15189        }; then
15190   ac_cv_lib_z_uncompress=yes
15191 else
15192   $as_echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15194
15195         ac_cv_lib_z_uncompress=no
15196 fi
15197
15198 rm -rf conftest.dSYM
15199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15200       conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15202 fi
15203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
15204 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
15205 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
15206   cat >>confdefs.h <<_ACEOF
15207 #define HAVE_LIBZ 1
15208 _ACEOF
15209
15210   LIBS="-lz $LIBS"
15211
15212 else
15213   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15215 { { $as_echo "$as_me:$LINENO: error:
15216         *** uncompress() missing, zlib-devel package required
15217 See \`config.log' for more details." >&5
15218 $as_echo "$as_me: error:
15219         *** uncompress() missing, zlib-devel package required
15220 See \`config.log' for more details." >&2;}
15221    { (exit 1); exit 1; }; }; }
15222 fi
15223
15224
15225
15226 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
15227 $as_echo_n "checking for crc32 in -lz... " >&6; }
15228 if test "${ac_cv_lib_z_crc32+set}" = set; then
15229   $as_echo_n "(cached) " >&6
15230 else
15231   ac_check_lib_save_LIBS=$LIBS
15232 LIBS="-lz  $LIBS"
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239
15240 /* Override any GCC internal prototype to avoid an error.
15241    Use char because int might match the return type of a GCC
15242    builtin and then its argument prototype would still apply.  */
15243 #ifdef __cplusplus
15244 extern "C"
15245 #endif
15246 char crc32 ();
15247 int
15248 main ()
15249 {
15250 return crc32 ();
15251   ;
15252   return 0;
15253 }
15254 _ACEOF
15255 rm -f conftest.$ac_objext conftest$ac_exeext
15256 if { (ac_try="$ac_link"
15257 case "(($ac_try" in
15258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259   *) ac_try_echo=$ac_try;;
15260 esac
15261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15262 $as_echo "$ac_try_echo") >&5
15263   (eval "$ac_link") 2>conftest.er1
15264   ac_status=$?
15265   grep -v '^ *+' conftest.er1 >conftest.err
15266   rm -f conftest.er1
15267   cat conftest.err >&5
15268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); } && {
15270          test -z "$ac_c_werror_flag" ||
15271          test ! -s conftest.err
15272        } && test -s conftest$ac_exeext && {
15273          test "$cross_compiling" = yes ||
15274          $as_test_x conftest$ac_exeext
15275        }; then
15276   ac_cv_lib_z_crc32=yes
15277 else
15278   $as_echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281         ac_cv_lib_z_crc32=no
15282 fi
15283
15284 rm -rf conftest.dSYM
15285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15286       conftest$ac_exeext conftest.$ac_ext
15287 LIBS=$ac_check_lib_save_LIBS
15288 fi
15289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
15290 $as_echo "$ac_cv_lib_z_crc32" >&6; }
15291 if test "x$ac_cv_lib_z_crc32" = x""yes; then
15292   cat >>confdefs.h <<_ACEOF
15293 #define HAVE_LIBZ 1
15294 _ACEOF
15295
15296   LIBS="-lz $LIBS"
15297
15298 else
15299   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15301 { { $as_echo "$as_me:$LINENO: error:
15302         *** crc32() missing, zlib-devel package required
15303 See \`config.log' for more details." >&5
15304 $as_echo "$as_me: error:
15305         *** crc32() missing, zlib-devel package required
15306 See \`config.log' for more details." >&2;}
15307    { (exit 1); exit 1; }; }; }
15308 fi
15309
15310
15311         ZLIB="-lz"
15312
15313
15314 cat >>confdefs.h <<\_ACEOF
15315 #define HAVE_ZLIB 1
15316 _ACEOF
15317
15318
15319
15320         LIBUUID=
15321
15322         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15323   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15324 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15325 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15326   $as_echo_n "(cached) " >&6
15327 fi
15328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15329 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15330 else
15331   # Is the header compilable?
15332 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
15333 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340 $ac_includes_default
15341 #include <uuid/uuid.h>
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (ac_try="$ac_compile"
15345 case "(($ac_try" in
15346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347   *) ac_try_echo=$ac_try;;
15348 esac
15349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15350 $as_echo "$ac_try_echo") >&5
15351   (eval "$ac_compile") 2>conftest.er1
15352   ac_status=$?
15353   grep -v '^ *+' conftest.er1 >conftest.err
15354   rm -f conftest.er1
15355   cat conftest.err >&5
15356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); } && {
15358          test -z "$ac_c_werror_flag" ||
15359          test ! -s conftest.err
15360        } && test -s conftest.$ac_objext; then
15361   ac_header_compiler=yes
15362 else
15363   $as_echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366         ac_header_compiler=no
15367 fi
15368
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15371 $as_echo "$ac_header_compiler" >&6; }
15372
15373 # Is the header present?
15374 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
15375 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 #include <uuid/uuid.h>
15383 _ACEOF
15384 if { (ac_try="$ac_cpp conftest.$ac_ext"
15385 case "(($ac_try" in
15386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387   *) ac_try_echo=$ac_try;;
15388 esac
15389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15390 $as_echo "$ac_try_echo") >&5
15391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15392   ac_status=$?
15393   grep -v '^ *+' conftest.er1 >conftest.err
15394   rm -f conftest.er1
15395   cat conftest.err >&5
15396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } >/dev/null && {
15398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15399          test ! -s conftest.err
15400        }; then
15401   ac_header_preproc=yes
15402 else
15403   $as_echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406   ac_header_preproc=no
15407 fi
15408
15409 rm -f conftest.err conftest.$ac_ext
15410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15411 $as_echo "$ac_header_preproc" >&6; }
15412
15413 # So?  What about this header?
15414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15415   yes:no: )
15416     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
15417 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15418     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
15419 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
15420     ac_header_preproc=yes
15421     ;;
15422   no:yes:* )
15423     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
15424 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
15425     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
15426 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
15427     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
15428 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
15429     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
15430 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15431     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
15432 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
15433     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
15434 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
15435
15436     ;;
15437 esac
15438 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15439 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15440 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15441   $as_echo_n "(cached) " >&6
15442 else
15443   ac_cv_header_uuid_uuid_h=$ac_header_preproc
15444 fi
15445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15446 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15447
15448 fi
15449 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
15450   :
15451 else
15452   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15454 { { $as_echo "$as_me:$LINENO: error:
15455         *** uuid/uuid.h missing, libuuid-devel package required
15456 See \`config.log' for more details." >&5
15457 $as_echo "$as_me: error:
15458         *** uuid/uuid.h missing, libuuid-devel package required
15459 See \`config.log' for more details." >&2;}
15460    { (exit 1); exit 1; }; }; }
15461 fi
15462
15463
15464
15465
15466 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
15467 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
15468 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
15469   $as_echo_n "(cached) " >&6
15470 else
15471   ac_check_lib_save_LIBS=$LIBS
15472 LIBS="-luuid  $LIBS"
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479
15480 /* Override any GCC internal prototype to avoid an error.
15481    Use char because int might match the return type of a GCC
15482    builtin and then its argument prototype would still apply.  */
15483 #ifdef __cplusplus
15484 extern "C"
15485 #endif
15486 char uuid_generate ();
15487 int
15488 main ()
15489 {
15490 return uuid_generate ();
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15502 $as_echo "$ac_try_echo") >&5
15503   (eval "$ac_link") 2>conftest.er1
15504   ac_status=$?
15505   grep -v '^ *+' conftest.er1 >conftest.err
15506   rm -f conftest.er1
15507   cat conftest.err >&5
15508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } && {
15510          test -z "$ac_c_werror_flag" ||
15511          test ! -s conftest.err
15512        } && test -s conftest$ac_exeext && {
15513          test "$cross_compiling" = yes ||
15514          $as_test_x conftest$ac_exeext
15515        }; then
15516   ac_cv_lib_uuid_uuid_generate=yes
15517 else
15518   $as_echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521         ac_cv_lib_uuid_uuid_generate=no
15522 fi
15523
15524 rm -rf conftest.dSYM
15525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15526       conftest$ac_exeext conftest.$ac_ext
15527 LIBS=$ac_check_lib_save_LIBS
15528 fi
15529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15530 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15531 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15532   cat >>confdefs.h <<_ACEOF
15533 #define HAVE_LIBUUID 1
15534 _ACEOF
15535
15536   LIBS="-luuid $LIBS"
15537
15538 else
15539   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15541 { { $as_echo "$as_me:$LINENO: error:
15542         *** uuid_generate() missing, libuuid-devel package required
15543 See \`config.log' for more details." >&5
15544 $as_echo "$as_me: error:
15545         *** uuid_generate() missing, libuuid-devel package required
15546 See \`config.log' for more details." >&2;}
15547    { (exit 1); exit 1; }; }; }
15548 fi
15549
15550
15551
15552 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
15553 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
15554 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15555   $as_echo_n "(cached) " >&6
15556 else
15557   ac_check_lib_save_LIBS=$LIBS
15558 LIBS="-luuid  $LIBS"
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h.  */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h.  */
15565
15566 /* Override any GCC internal prototype to avoid an error.
15567    Use char because int might match the return type of a GCC
15568    builtin and then its argument prototype would still apply.  */
15569 #ifdef __cplusplus
15570 extern "C"
15571 #endif
15572 char uuid_is_null ();
15573 int
15574 main ()
15575 {
15576 return uuid_is_null ();
15577   ;
15578   return 0;
15579 }
15580 _ACEOF
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (ac_try="$ac_link"
15583 case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15588 $as_echo "$ac_try_echo") >&5
15589   (eval "$ac_link") 2>conftest.er1
15590   ac_status=$?
15591   grep -v '^ *+' conftest.er1 >conftest.err
15592   rm -f conftest.er1
15593   cat conftest.err >&5
15594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } && {
15596          test -z "$ac_c_werror_flag" ||
15597          test ! -s conftest.err
15598        } && test -s conftest$ac_exeext && {
15599          test "$cross_compiling" = yes ||
15600          $as_test_x conftest$ac_exeext
15601        }; then
15602   ac_cv_lib_uuid_uuid_is_null=yes
15603 else
15604   $as_echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607         ac_cv_lib_uuid_uuid_is_null=no
15608 fi
15609
15610 rm -rf conftest.dSYM
15611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15612       conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15614 fi
15615 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
15616 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15617 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15618   cat >>confdefs.h <<_ACEOF
15619 #define HAVE_LIBUUID 1
15620 _ACEOF
15621
15622   LIBS="-luuid $LIBS"
15623
15624 else
15625   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627 { { $as_echo "$as_me:$LINENO: error:
15628         *** uuid_is_null() missing, libuuid-devel package required
15629 See \`config.log' for more details." >&5
15630 $as_echo "$as_me: error:
15631         *** uuid_is_null() missing, libuuid-devel package required
15632 See \`config.log' for more details." >&2;}
15633    { (exit 1); exit 1; }; }; }
15634 fi
15635
15636
15637         LIBUUID="-luuid"
15638
15639
15640 cat >>confdefs.h <<\_ACEOF
15641 #define HAVE_LIBUUID 1
15642 _ACEOF
15643
15644
15645
15646
15647 # Check whether --with-blkid was given.
15648 if test "${with_blkid+set}" = set; then
15649   withval=$with_blkid;
15650 else
15651   with_blkid=check
15652 fi
15653
15654
15655         LIBBLKID=
15656         if test "x$with_blkid" != xno; then
15657
15658                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
15659 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
15660 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
15661   $as_echo_n "(cached) " >&6
15662 else
15663   ac_check_lib_save_LIBS=$LIBS
15664 LIBS="-lblkid  $LIBS"
15665 cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671
15672 /* Override any GCC internal prototype to avoid an error.
15673    Use char because int might match the return type of a GCC
15674    builtin and then its argument prototype would still apply.  */
15675 #ifdef __cplusplus
15676 extern "C"
15677 #endif
15678 char blkid_get_cache ();
15679 int
15680 main ()
15681 {
15682 return blkid_get_cache ();
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15694 $as_echo "$ac_try_echo") >&5
15695   (eval "$ac_link") 2>conftest.er1
15696   ac_status=$?
15697   grep -v '^ *+' conftest.er1 >conftest.err
15698   rm -f conftest.er1
15699   cat conftest.err >&5
15700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } && {
15702          test -z "$ac_c_werror_flag" ||
15703          test ! -s conftest.err
15704        } && test -s conftest$ac_exeext && {
15705          test "$cross_compiling" = yes ||
15706          $as_test_x conftest$ac_exeext
15707        }; then
15708   ac_cv_lib_blkid_blkid_get_cache=yes
15709 else
15710   $as_echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713         ac_cv_lib_blkid_blkid_get_cache=no
15714 fi
15715
15716 rm -rf conftest.dSYM
15717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15718       conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_check_lib_save_LIBS
15720 fi
15721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15722 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15723 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
15724
15725                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15726 $as_echo_n "checking for blkid zfs support... " >&6; }
15727
15728                         ZFS_DEV=`mktemp`
15729                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
15730                                 >/dev/null 2>/dev/null
15731                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15732                                 dd of=$ZFS_DEV bs=1k count=8 \
15733                                 seek=132 conv=notrunc &>/dev/null \
15734                                 >/dev/null 2>/dev/null
15735
15736                         saved_LDFLAGS="$LDFLAGS"
15737                         LDFLAGS="-lblkid"
15738
15739                         if test "$cross_compiling" = yes; then
15740   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15742 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15743 See \`config.log' for more details." >&5
15744 $as_echo "$as_me: error: cannot run test program while cross compiling
15745 See \`config.log' for more details." >&2;}
15746    { (exit 1); exit 1; }; }; }
15747 else
15748   cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h.  */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h.  */
15754
15755                                 #include <stdio.h>
15756                                 #include <blkid/blkid.h>
15757
15758 int
15759 main ()
15760 {
15761
15762                                 blkid_cache cache;
15763                                 char *value;
15764
15765                                 if (blkid_get_cache(&cache, NULL) < 0)
15766                                         return 1;
15767
15768                                 value = blkid_get_tag_value(cache, "TYPE",
15769                                                             "$ZFS_DEV");
15770                                 if (!value) {
15771                                         blkid_put_cache(cache);
15772                                         return 2;
15773                                 }
15774
15775                                 if (strcmp(value, "zfs")) {
15776                                         free(value);
15777                                         blkid_put_cache(cache);
15778                                         return 3;
15779                                 }
15780
15781                                 free(value);
15782                                 blkid_put_cache(cache);
15783
15784   ;
15785   return 0;
15786 }
15787 _ACEOF
15788 rm -f conftest$ac_exeext
15789 if { (ac_try="$ac_link"
15790 case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15795 $as_echo "$ac_try_echo") >&5
15796   (eval "$ac_link") 2>&5
15797   ac_status=$?
15798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15800   { (case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15805 $as_echo "$ac_try_echo") >&5
15806   (eval "$ac_try") 2>&5
15807   ac_status=$?
15808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); }; }; then
15810
15811                                 rm -f $ZFS_DEV
15812                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15813 $as_echo "yes" >&6; }
15814                                 LIBBLKID="-lblkid"
15815
15816
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_LIBBLKID 1
15819 _ACEOF
15820
15821
15822 else
15823   $as_echo "$as_me: program exited with status $ac_status" >&5
15824 $as_echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827 ( exit $ac_status )
15828
15829                                 rm -f $ZFS_DEV
15830                                 { $as_echo "$as_me:$LINENO: result: no" >&5
15831 $as_echo "no" >&6; }
15832                                 if test "x$with_blkid" != xcheck; then
15833   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15835 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15836 See \`config.log' for more details." >&5
15837 $as_echo "$as_me: error: --with-blkid given but unavailable
15838 See \`config.log' for more details." >&2;}
15839    { (exit 1); exit 1; }; }; }
15840 fi
15841
15842
15843 fi
15844 rm -rf conftest.dSYM
15845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15846 fi
15847
15848
15849
15850                         LDFLAGS="$saved_LDFLAGS"
15851
15852 else
15853
15854                         if test "x$with_blkid" != xcheck; then
15855   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15857 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15858 See \`config.log' for more details." >&5
15859 $as_echo "$as_me: error: --with-blkid given but unavailable
15860 See \`config.log' for more details." >&2;}
15861    { (exit 1); exit 1; }; }; }
15862 fi
15863
15864
15865
15866 fi
15867
15868
15869 fi
15870
15871
15872
15873
15874 # Check whether --with-selinux was given.
15875 if test "${with_selinux+set}" = set; then
15876   withval=$with_selinux;
15877 else
15878   with_selinux=check
15879 fi
15880
15881
15882         LIBSELINUX=
15883         if test "x$with_selinux" != xno; then
15884
15885                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15886   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15887 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15888 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15889   $as_echo_n "(cached) " >&6
15890 fi
15891 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15892 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15893 else
15894   # Is the header compilable?
15895 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15896 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903 $ac_includes_default
15904 #include <selinux/selinux.h>
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (ac_try="$ac_compile"
15908 case "(($ac_try" in
15909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910   *) ac_try_echo=$ac_try;;
15911 esac
15912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15913 $as_echo "$ac_try_echo") >&5
15914   (eval "$ac_compile") 2>conftest.er1
15915   ac_status=$?
15916   grep -v '^ *+' conftest.er1 >conftest.err
15917   rm -f conftest.er1
15918   cat conftest.err >&5
15919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); } && {
15921          test -z "$ac_c_werror_flag" ||
15922          test ! -s conftest.err
15923        } && test -s conftest.$ac_objext; then
15924   ac_header_compiler=yes
15925 else
15926   $as_echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15928
15929         ac_header_compiler=no
15930 fi
15931
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15934 $as_echo "$ac_header_compiler" >&6; }
15935
15936 # Is the header present?
15937 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15938 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h.  */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h.  */
15945 #include <selinux/selinux.h>
15946 _ACEOF
15947 if { (ac_try="$ac_cpp conftest.$ac_ext"
15948 case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15953 $as_echo "$ac_try_echo") >&5
15954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15955   ac_status=$?
15956   grep -v '^ *+' conftest.er1 >conftest.err
15957   rm -f conftest.er1
15958   cat conftest.err >&5
15959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); } >/dev/null && {
15961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15962          test ! -s conftest.err
15963        }; then
15964   ac_header_preproc=yes
15965 else
15966   $as_echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969   ac_header_preproc=no
15970 fi
15971
15972 rm -f conftest.err conftest.$ac_ext
15973 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15974 $as_echo "$ac_header_preproc" >&6; }
15975
15976 # So?  What about this header?
15977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15978   yes:no: )
15979     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15980 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15981     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15982 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15983     ac_header_preproc=yes
15984     ;;
15985   no:yes:* )
15986     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15987 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15988     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
15989 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
15990     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15991 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15992     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
15993 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15994     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15995 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15996     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15997 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15998
15999     ;;
16000 esac
16001 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16002 $as_echo_n "checking for selinux/selinux.h... " >&6; }
16003 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16004   $as_echo_n "(cached) " >&6
16005 else
16006   ac_cv_header_selinux_selinux_h=$ac_header_preproc
16007 fi
16008 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16009 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16010
16011 fi
16012 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
16013
16014                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
16015 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
16016 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
16017   $as_echo_n "(cached) " >&6
16018 else
16019   ac_check_lib_save_LIBS=$LIBS
16020 LIBS="-lselinux  $LIBS"
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027
16028 /* Override any GCC internal prototype to avoid an error.
16029    Use char because int might match the return type of a GCC
16030    builtin and then its argument prototype would still apply.  */
16031 #ifdef __cplusplus
16032 extern "C"
16033 #endif
16034 char is_selinux_enabled ();
16035 int
16036 main ()
16037 {
16038 return is_selinux_enabled ();
16039   ;
16040   return 0;
16041 }
16042 _ACEOF
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (ac_try="$ac_link"
16045 case "(($ac_try" in
16046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047   *) ac_try_echo=$ac_try;;
16048 esac
16049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16050 $as_echo "$ac_try_echo") >&5
16051   (eval "$ac_link") 2>conftest.er1
16052   ac_status=$?
16053   grep -v '^ *+' conftest.er1 >conftest.err
16054   rm -f conftest.er1
16055   cat conftest.err >&5
16056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } && {
16058          test -z "$ac_c_werror_flag" ||
16059          test ! -s conftest.err
16060        } && test -s conftest$ac_exeext && {
16061          test "$cross_compiling" = yes ||
16062          $as_test_x conftest$ac_exeext
16063        }; then
16064   ac_cv_lib_selinux_is_selinux_enabled=yes
16065 else
16066   $as_echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069         ac_cv_lib_selinux_is_selinux_enabled=no
16070 fi
16071
16072 rm -rf conftest.dSYM
16073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16074       conftest$ac_exeext conftest.$ac_ext
16075 LIBS=$ac_check_lib_save_LIBS
16076 fi
16077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
16078 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
16079 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
16080
16081                                 LIBSELINUX="-lselinux"
16082
16083
16084 cat >>confdefs.h <<\_ACEOF
16085 #define HAVE_LIBSELINUX 1
16086 _ACEOF
16087
16088
16089 else
16090
16091                                 if test "x$with_selinux" != xcheck; then
16092   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16094 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16095 See \`config.log' for more details." >&5
16096 $as_echo "$as_me: error: --with-selinux given but unavailable
16097 See \`config.log' for more details." >&2;}
16098    { (exit 1); exit 1; }; }; }
16099
16100 fi
16101
16102
16103 fi
16104
16105
16106 else
16107
16108                         if test "x$with_selinux" != xcheck; then
16109   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16111 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16112 See \`config.log' for more details." >&5
16113 $as_echo "$as_me: error: --with-selinux given but unavailable
16114 See \`config.log' for more details." >&2;}
16115    { (exit 1); exit 1; }; }; }
16116
16117 fi
16118
16119
16120 fi
16121
16122
16123
16124 else
16125
16126                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
16127 $as_echo_n "checking for selinux support... " >&6; }
16128                 { $as_echo "$as_me:$LINENO: result: no" >&5
16129 $as_echo "no" >&6; }
16130
16131 fi
16132
16133
16134
16135         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
16136 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
16137
16138         saved_flags="$CFLAGS"
16139         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
16140
16141         if test "$cross_compiling" = yes; then
16142   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16144 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16145 See \`config.log' for more details." >&5
16146 $as_echo "$as_me: error: cannot run test program while cross compiling
16147 See \`config.log' for more details." >&2;}
16148    { (exit 1); exit 1; }; }; }
16149 else
16150   cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156
16157 int
16158 main ()
16159 {
16160
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest$ac_exeext
16166 if { (ac_try="$ac_link"
16167 case "(($ac_try" in
16168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169   *) ac_try_echo=$ac_try;;
16170 esac
16171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16172 $as_echo "$ac_try_echo") >&5
16173   (eval "$ac_link") 2>&5
16174   ac_status=$?
16175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16177   { (case "(($ac_try" in
16178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179   *) ac_try_echo=$ac_try;;
16180 esac
16181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16182 $as_echo "$ac_try_echo") >&5
16183   (eval "$ac_try") 2>&5
16184   ac_status=$?
16185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187
16188                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
16189                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16190 $as_echo "yes" >&6; }
16191
16192 else
16193   $as_echo "$as_me: program exited with status $ac_status" >&5
16194 $as_echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 ( exit $ac_status )
16198
16199                 FRAME_LARGER_THAN=
16200                 { $as_echo "$as_me:$LINENO: result: no" >&5
16201 $as_echo "no" >&6; }
16202
16203 fi
16204 rm -rf conftest.dSYM
16205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16206 fi
16207
16208
16209
16210         CFLAGS="$saved_flags"
16211
16212
16213
16214
16215         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
16216 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
16217
16218         saved_CFLAGS="$CFLAGS"
16219         CFLAGS="-fstack-check"
16220         saved_LDFLAGS="$LDFLAGS"
16221         LDFLAGS="-lpthread"
16222
16223         if test "$cross_compiling" = yes; then
16224   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16226 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16227 See \`config.log' for more details." >&5
16228 $as_echo "$as_me: error: cannot run test program while cross compiling
16229 See \`config.log' for more details." >&2;}
16230    { (exit 1); exit 1; }; }; }
16231 else
16232   cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h.  */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h.  */
16238
16239                 #include <pthread.h>
16240                 #include <sys/resource.h>
16241                 #include <unistd.h>
16242                 #include <bits/local_lim.h>
16243
16244                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
16245                 #define STACK_SIZE 8192
16246                 #define BUFSIZE 4096
16247
16248                 void * func(void *arg)
16249                 {
16250                         char buf[BUFSIZE];
16251                 }
16252
16253 int
16254 main ()
16255 {
16256
16257                 pthread_t tid;
16258                 pthread_attr_t attr;
16259                 struct rlimit l;
16260
16261                 l.rlim_cur = 0;
16262                 l.rlim_max = 0;
16263                 setrlimit(RLIMIT_CORE, &l);
16264                 pthread_attr_init(&attr);
16265                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
16266                 pthread_attr_setguardsize(&attr, PAGESIZE);
16267                 pthread_create(&tid, &attr, func, NULL);
16268                 pthread_join(tid, NULL);
16269
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 rm -f conftest$ac_exeext
16275 if { (ac_try="$ac_link"
16276 case "(($ac_try" in
16277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278   *) ac_try_echo=$ac_try;;
16279 esac
16280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16281 $as_echo "$ac_try_echo") >&5
16282   (eval "$ac_link") 2>&5
16283   ac_status=$?
16284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16286   { (case "(($ac_try" in
16287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16288   *) ac_try_echo=$ac_try;;
16289 esac
16290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16291 $as_echo "$ac_try_echo") >&5
16292   (eval "$ac_try") 2>&5
16293   ac_status=$?
16294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; }; then
16296
16297                 { $as_echo "$as_me:$LINENO: result: no" >&5
16298 $as_echo "no" >&6; }
16299
16300 else
16301   $as_echo "$as_me: program exited with status $ac_status" >&5
16302 $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ( exit $ac_status )
16306
16307
16308 cat >>confdefs.h <<\_ACEOF
16309 #define NPTL_GUARD_WITHIN_STACK 1
16310 _ACEOF
16311
16312                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16313 $as_echo "yes" >&6; }
16314
16315 fi
16316 rm -rf conftest.dSYM
16317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16318 fi
16319
16320
16321         CFLAGS="$saved_CFLAGS"
16322         LDFLAGS="$saved_LDFLAGS"
16323
16324    ;;
16325                 all)
16326
16327
16328 # Check whether --with-linux was given.
16329 if test "${with_linux+set}" = set; then
16330   withval=$with_linux; kernelsrc="$withval"
16331 fi
16332
16333
16334
16335 # Check whether --with-linux-obj was given.
16336 if test "${with_linux_obj+set}" = set; then
16337   withval=$with_linux_obj; kernelbuild="$withval"
16338 fi
16339
16340
16341         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16342 $as_echo_n "checking kernel source directory... " >&6; }
16343         if test -z "$kernelsrc"; then
16344                 if test -e "/lib/modules/$(uname -r)/source"; then
16345                         headersdir="/lib/modules/$(uname -r)/source"
16346                         sourcelink=$(readlink -f "$headersdir")
16347                 elif test -e "/lib/modules/$(uname -r)/build"; then
16348                         headersdir="/lib/modules/$(uname -r)/build"
16349                         sourcelink=$(readlink -f "$headersdir")
16350                 else
16351                         sourcelink=$(ls -1d /usr/src/kernels/* \
16352                                      /usr/src/linux-* \
16353                                      2>/dev/null | grep -v obj | tail -1)
16354                 fi
16355
16356                 if test -n "$sourcelink" && test -e ${sourcelink}; then
16357                         kernelsrc=`readlink -f ${sourcelink}`
16358                 else
16359                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
16360 $as_echo "Not found" >&6; }
16361                         { { $as_echo "$as_me:$LINENO: error:
16362         *** Please make sure the kernel devel package for your distribution
16363         *** is installed then try again.  If that fails you can specify the
16364         *** location of the kernel source with the '--with-linux=PATH' option." >&5
16365 $as_echo "$as_me: error:
16366         *** Please make sure the kernel devel package for your distribution
16367         *** is installed then try again.  If that fails you can specify the
16368         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16369    { (exit 1); exit 1; }; }
16370                 fi
16371         else
16372                 if test "$kernelsrc" = "NONE"; then
16373                         kernsrcver=NONE
16374                 fi
16375         fi
16376
16377         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16378 $as_echo "$kernelsrc" >&6; }
16379         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16380 $as_echo_n "checking kernel build directory... " >&6; }
16381         if test -z "$kernelbuild"; then
16382                 if test -e "/lib/modules/$(uname -r)/build"; then
16383                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16384                 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16385                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16386                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16387                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16388                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16389                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16390                 else
16391                         kernelbuild=${kernelsrc}
16392                 fi
16393         fi
16394         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16395 $as_echo "$kernelbuild" >&6; }
16396
16397         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16398 $as_echo_n "checking kernel source version... " >&6; }
16399         utsrelease1=$kernelbuild/include/linux/version.h
16400         utsrelease2=$kernelbuild/include/linux/utsrelease.h
16401         utsrelease3=$kernelbuild/include/generated/utsrelease.h
16402         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16403                 utsrelease=linux/version.h
16404         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16405                 utsrelease=linux/utsrelease.h
16406         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16407                 utsrelease=generated/utsrelease.h
16408         fi
16409
16410         if test "$utsrelease"; then
16411                 kernsrcver=`(echo "#include <$utsrelease>";
16412                              echo "kernsrcver=UTS_RELEASE") |
16413                              cpp -I $kernelbuild/include |
16414                              grep "^kernsrcver=" | cut -d \" -f 2`
16415
16416                 if test -z "$kernsrcver"; then
16417                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
16418 $as_echo "Not found" >&6; }
16419                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16420 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16421    { (exit 1); exit 1; }; }
16422                 fi
16423         else
16424                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16425 $as_echo "Not found" >&6; }
16426                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16427 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16428    { (exit 1); exit 1; }; }
16429         fi
16430
16431         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16432 $as_echo "$kernsrcver" >&6; }
16433
16434         LINUX=${kernelsrc}
16435         LINUX_OBJ=${kernelbuild}
16436         LINUX_VERSION=${kernsrcver}
16437
16438
16439
16440
16441
16442
16443         modpost=$LINUX/scripts/Makefile.modpost
16444         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16445 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16446         if test -f "$modpost"; then
16447                 if grep -q Modules.symvers $modpost; then
16448                         LINUX_SYMBOLS=Modules.symvers
16449                 else
16450                         LINUX_SYMBOLS=Module.symvers
16451                 fi
16452
16453                 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16454                         { { $as_echo "$as_me:$LINENO: error:
16455         *** Please make sure the kernel devel package for your distribution
16456         *** is installed.  If your building with a custom kernel make sure the
16457         *** kernel is configured, built, and the '--with-linux=PATH' configure
16458         *** option refers to the location of the kernel source." >&5
16459 $as_echo "$as_me: error:
16460         *** Please make sure the kernel devel package for your distribution
16461         *** is installed.  If your building with a custom kernel make sure the
16462         *** kernel is configured, built, and the '--with-linux=PATH' configure
16463         *** option refers to the location of the kernel source." >&2;}
16464    { (exit 1); exit 1; }; }
16465                 fi
16466         else
16467                 LINUX_SYMBOLS=NONE
16468         fi
16469         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16470 $as_echo "$LINUX_SYMBOLS" >&6; }
16471
16472
16473
16474
16475
16476 # Check whether --with-spl was given.
16477 if test "${with_spl+set}" = set; then
16478   withval=$with_spl; splsrc="$withval"
16479 fi
16480
16481
16482
16483 # Check whether --with-spl-obj was given.
16484 if test "${with_spl_obj+set}" = set; then
16485   withval=$with_spl_obj; splbuild="$withval"
16486 fi
16487
16488
16489
16490         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16491 $as_echo_n "checking spl source directory... " >&6; }
16492         if test -z "$splsrc"; then
16493                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
16494                             2>/dev/null | tail -1`
16495
16496                 if test -z "$sourcelink" || test ! -e $sourcelink; then
16497                         sourcelink=../spl
16498                 fi
16499
16500                 if test -e $sourcelink; then
16501                         splsrc=`readlink -f ${sourcelink}`
16502                 else
16503                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
16504 $as_echo "Not found" >&6; }
16505                         { { $as_echo "$as_me:$LINENO: error:
16506         *** Please make sure the spl devel package for your distribution
16507         *** is installed then try again.  If that fails you can specify the
16508         *** location of the spl source with the '--with-spl=PATH' option." >&5
16509 $as_echo "$as_me: error:
16510         *** Please make sure the spl devel package for your distribution
16511         *** is installed then try again.  If that fails you can specify the
16512         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
16513    { (exit 1); exit 1; }; }
16514                 fi
16515         else
16516                 if test "$splsrc" = "NONE"; then
16517                         splbuild=NONE
16518                         splsrcver=NONE
16519                 fi
16520         fi
16521
16522         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16523 $as_echo "$splsrc" >&6; }
16524         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16525 $as_echo_n "checking spl build directory... " >&6; }
16526         if test -z "$splbuild"; then
16527                 splbuild=${splsrc}
16528         fi
16529         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16530 $as_echo "$splbuild" >&6; }
16531
16532         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16533 $as_echo_n "checking spl source version... " >&6; }
16534         if test -r $splbuild/spl_config.h &&
16535                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16536
16537                 splsrcver=`(echo "#include <spl_config.h>";
16538                             echo "splsrcver=SPL_META_VERSION") |
16539                             cpp -I $splbuild |
16540                             grep "^splsrcver=" | cut -d \" -f 2`
16541         fi
16542
16543         if test -z "$splsrcver"; then
16544                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16545 $as_echo "Not found" >&6; }
16546                 { { $as_echo "$as_me:$LINENO: error:
16547                 *** Cannot determine the version of the spl source.
16548                 *** Please prepare the spl source before running this script" >&5
16549 $as_echo "$as_me: error:
16550                 *** Cannot determine the version of the spl source.
16551                 *** Please prepare the spl source before running this script" >&2;}
16552    { (exit 1); exit 1; }; }
16553         fi
16554
16555         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
16556 $as_echo "$splsrcver" >&6; }
16557
16558         SPL=${splsrc}
16559         SPL_OBJ=${splbuild}
16560         SPL_VERSION=${splsrcver}
16561
16562
16563
16564
16565
16566
16567         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
16568 $as_echo_n "checking spl file name for module symbols... " >&6; }
16569         if test -r $SPL_OBJ/Module.symvers; then
16570                 SPL_SYMBOLS=Module.symvers
16571         elif test -r $SPL_OBJ/Modules.symvers; then
16572                 SPL_SYMBOLS=Modules.symvers
16573         elif test -r $SPL_OBJ/module/Module.symvers; then
16574                 SPL_SYMBOLS=Module.symvers
16575         elif test -r $SPL_OBJ/module/Modules.symvers; then
16576                 SPL_SYMBOLS=Modules.symvers
16577         else
16578                 SPL_SYMBOLS=$LINUX_SYMBOLS
16579         fi
16580
16581         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
16582 $as_echo "$SPL_SYMBOLS" >&6; }
16583
16584
16585
16586
16587
16588         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16589 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16590
16591
16592 cat confdefs.h - <<_ACEOF >conftest.c
16593 /* confdefs.h.  */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h.  */
16598
16599
16600                 #include <linux/module.h>
16601
16602 int
16603 main (void)
16604 {
16605
16606                 #ifndef CONFIG_PREEMPT
16607                 #error CONFIG_PREEMPT not #defined
16608                 #endif
16609
16610   ;
16611   return 0;
16612 }
16613
16614 _ACEOF
16615
16616
16617         rm -Rf build && mkdir -p build
16618         echo "obj-m := conftest.o" >build/Makefile
16619         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'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626   (eval $ac_try) 2>&5
16627   ac_status=$?
16628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630
16631                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16632 $as_echo "yes" >&6; }
16633                 { { $as_echo "$as_me:$LINENO: error:
16634                 *** Kernel built with CONFIG_PREEMPT which is not supported.
16635                 ** You must rebuild your kernel without this option." >&5
16636 $as_echo "$as_me: error:
16637                 *** Kernel built with CONFIG_PREEMPT which is not supported.
16638                 ** You must rebuild your kernel without this option." >&2;}
16639    { (exit 1); exit 1; }; }
16640
16641 else
16642   $as_echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645                 { $as_echo "$as_me:$LINENO: result: no" >&5
16646 $as_echo "no" >&6; }
16647
16648
16649
16650
16651 fi
16652
16653         rm -Rf build
16654
16655
16656
16657
16658         if test "$ZFS_META_LICENSE" = CDDL; then
16659                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
16660 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
16661
16662
16663 cat confdefs.h - <<_ACEOF >conftest.c
16664 /* confdefs.h.  */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h.  */
16669
16670
16671                 #include <linux/module.h>
16672
16673 int
16674 main (void)
16675 {
16676
16677                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
16678                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
16679                 #endif
16680
16681   ;
16682   return 0;
16683 }
16684
16685 _ACEOF
16686
16687
16688         rm -Rf build && mkdir -p build
16689         echo "obj-m := conftest.o" >build/Makefile
16690         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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697   (eval $ac_try) 2>&5
16698   ac_status=$?
16699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; }; then
16701
16702                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16703 $as_echo "yes" >&6; }
16704                 { { $as_echo "$as_me:$LINENO: error:
16705                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16706                 *** incompatible with the CDDL license.  You must rebuild
16707                 *** your kernel without this option." >&5
16708 $as_echo "$as_me: error:
16709                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16710                 *** incompatible with the CDDL license.  You must rebuild
16711                 *** your kernel without this option." >&2;}
16712    { (exit 1); exit 1; }; }
16713
16714 else
16715   $as_echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718                 { $as_echo "$as_me:$LINENO: result: no" >&5
16719 $as_echo "no" >&6; }
16720
16721
16722
16723
16724 fi
16725
16726         rm -Rf build
16727
16728
16729
16730         fi
16731
16732         if test "$ZFS_META_LICENSE" = GPL; then
16733
16734 cat >>confdefs.h <<\_ACEOF
16735 #define HAVE_GPL_ONLY_SYMBOLS 1
16736 _ACEOF
16737
16738         fi
16739
16740
16741         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
16742 $as_echo_n "checking block device operation prototypes... " >&6; }
16743
16744
16745 cat confdefs.h - <<_ACEOF >conftest.c
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751
16752
16753                 #include <linux/blkdev.h>
16754
16755 int
16756 main (void)
16757 {
16758
16759                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16760                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16761                 int (*blk_ioctl) (struct block_device *, fmode_t,
16762                                   unsigned, unsigned long) = NULL;
16763                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16764                                          unsigned, unsigned long) = NULL;
16765                 struct block_device_operations blk_ops = {
16766                         .open           = blk_open,
16767                         .release        = blk_release,
16768                         .ioctl          = blk_ioctl,
16769                         .compat_ioctl   = blk_compat_ioctl,
16770                 };
16771
16772                 blk_ops.open(NULL, 0);
16773                 blk_ops.release(NULL, 0);
16774                 blk_ops.ioctl(NULL, 0, 0, 0);
16775                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16776
16777   ;
16778   return 0;
16779 }
16780
16781 _ACEOF
16782
16783
16784         rm -Rf build && mkdir -p build
16785         echo "obj-m := conftest.o" >build/Makefile
16786         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'
16787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788   (eval $ac_try) 2>&5
16789   ac_status=$?
16790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797
16798                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16799 $as_echo "struct block_device" >&6; }
16800
16801 cat >>confdefs.h <<\_ACEOF
16802 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16803 _ACEOF
16804
16805
16806 else
16807   $as_echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16809
16810                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16811 $as_echo "struct inode" >&6; }
16812
16813
16814
16815 fi
16816
16817         rm -Rf build
16818
16819
16820
16821         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16822 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16823
16824
16825 cat confdefs.h - <<_ACEOF >conftest.c
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831
16832
16833                 #include <linux/types.h>
16834
16835 int
16836 main (void)
16837 {
16838
16839                 fmode_t *ptr __attribute__ ((unused));
16840
16841   ;
16842   return 0;
16843 }
16844
16845 _ACEOF
16846
16847
16848         rm -Rf build && mkdir -p build
16849         echo "obj-m := conftest.o" >build/Makefile
16850         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'
16851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852   (eval $ac_try) 2>&5
16853   ac_status=$?
16854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857   (eval $ac_try) 2>&5
16858   ac_status=$?
16859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861
16862                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16863 $as_echo "yes" >&6; }
16864
16865 cat >>confdefs.h <<\_ACEOF
16866 #define HAVE_FMODE_T 1
16867 _ACEOF
16868
16869
16870 else
16871   $as_echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874                 { $as_echo "$as_me:$LINENO: result: no" >&5
16875 $as_echo "no" >&6; }
16876
16877
16878
16879 fi
16880
16881         rm -Rf build
16882
16883
16884
16885
16886         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16887 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16888
16889
16890 cat confdefs.h - <<_ACEOF >conftest.c
16891 /* confdefs.h.  */
16892 _ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h.  */
16896
16897
16898                 #include <linux/kobject.h>
16899
16900 int
16901 main (void)
16902 {
16903
16904                 int val __attribute__ ((unused));
16905                 val = KOBJ_NAME_LEN;
16906
16907   ;
16908   return 0;
16909 }
16910
16911 _ACEOF
16912
16913
16914         rm -Rf build && mkdir -p build
16915         echo "obj-m := conftest.o" >build/Makefile
16916         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'
16917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918   (eval $ac_try) 2>&5
16919   ac_status=$?
16920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; }; then
16927
16928                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16929 $as_echo "yes" >&6; }
16930
16931 cat >>confdefs.h <<\_ACEOF
16932 #define HAVE_KOBJ_NAME_LEN 1
16933 _ACEOF
16934
16935
16936 else
16937   $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940                 { $as_echo "$as_me:$LINENO: result: no" >&5
16941 $as_echo "no" >&6; }
16942
16943
16944
16945 fi
16946
16947         rm -Rf build
16948
16949
16950
16951
16952         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
16953 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
16954         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
16955                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16956         rc=$?
16957         if test $rc -ne 0; then
16958                 export=0
16959                 for file in fs/block_dev.c; do
16960                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
16961                         rc=$?
16962                         if test $rc -eq 0; then
16963                                 export=1
16964                                 break;
16965                         fi
16966                 done
16967                 if test $export -eq 0; then
16968                         { $as_echo "$as_me:$LINENO: result: no" >&5
16969 $as_echo "no" >&6; }
16970
16971                 else
16972                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16973 $as_echo "yes" >&6; }
16974
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_BLKDEV_GET_BY_PATH 1
16977 _ACEOF
16978
16979                 fi
16980         else
16981                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16982 $as_echo "yes" >&6; }
16983
16984 cat >>confdefs.h <<\_ACEOF
16985 #define HAVE_BLKDEV_GET_BY_PATH 1
16986 _ACEOF
16987
16988         fi
16989
16990
16991
16992         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16993 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16994         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
16995                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16996         rc=$?
16997         if test $rc -ne 0; then
16998                 export=0
16999                 for file in fs/block_dev.c; do
17000                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
17001                         rc=$?
17002                         if test $rc -eq 0; then
17003                                 export=1
17004                                 break;
17005                         fi
17006                 done
17007                 if test $export -eq 0; then
17008                         { $as_echo "$as_me:$LINENO: result: no" >&5
17009 $as_echo "no" >&6; }
17010
17011                 else
17012                         { $as_echo "$as_me:$LINENO: result: yes" >&5
17013 $as_echo "yes" >&6; }
17014
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
17017 _ACEOF
17018
17019                 fi
17020         else
17021                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17022 $as_echo "yes" >&6; }
17023
17024 cat >>confdefs.h <<\_ACEOF
17025 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
17026 _ACEOF
17027
17028         fi
17029
17030
17031
17032         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
17033 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
17034
17035
17036 cat confdefs.h - <<_ACEOF >conftest.c
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042
17043
17044                 #include <linux/buffer_head.h>
17045
17046 int
17047 main (void)
17048 {
17049
17050                 struct block_device *bdev = NULL;
17051                 invalidate_bdev(bdev);
17052
17053   ;
17054   return 0;
17055 }
17056
17057 _ACEOF
17058
17059
17060         rm -Rf build && mkdir -p build
17061         echo "obj-m := conftest.o" >build/Makefile
17062         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'
17063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064   (eval $ac_try) 2>&5
17065   ac_status=$?
17066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069   (eval $ac_try) 2>&5
17070   ac_status=$?
17071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }; }; then
17073
17074                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17075 $as_echo "yes" >&6; }
17076
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_1ARG_INVALIDATE_BDEV 1
17079 _ACEOF
17080
17081
17082 else
17083   $as_echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086                 { $as_echo "$as_me:$LINENO: result: no" >&5
17087 $as_echo "no" >&6; }
17088
17089
17090
17091 fi
17092
17093         rm -Rf build
17094
17095
17096
17097
17098         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
17099 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
17100
17101
17102 cat confdefs.h - <<_ACEOF >conftest.c
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108
17109
17110                 #include <linux/blkdev.h>
17111
17112 int
17113 main (void)
17114 {
17115
17116                 struct block_device *bdev = NULL;
17117                 bdev_logical_block_size(bdev);
17118
17119   ;
17120   return 0;
17121 }
17122
17123 _ACEOF
17124
17125
17126         rm -Rf build && mkdir -p build
17127         echo "obj-m := conftest.o" >build/Makefile
17128         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'
17129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130   (eval $ac_try) 2>&5
17131   ac_status=$?
17132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135   (eval $ac_try) 2>&5
17136   ac_status=$?
17137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); }; }; then
17139
17140                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17141 $as_echo "yes" >&6; }
17142
17143 cat >>confdefs.h <<\_ACEOF
17144 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
17145 _ACEOF
17146
17147
17148 else
17149   $as_echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152                 { $as_echo "$as_me:$LINENO: result: no" >&5
17153 $as_echo "no" >&6; }
17154
17155
17156
17157 fi
17158
17159         rm -Rf build
17160
17161
17162
17163
17164         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
17165 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
17166         EXTRA_KCFLAGS="-Werror"
17167
17168
17169 cat confdefs.h - <<_ACEOF >conftest.c
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175
17176
17177                 #include <linux/bio.h>
17178
17179 int
17180 main (void)
17181 {
17182
17183                 struct bio bio;
17184                 (void)bio_empty_barrier(&bio);
17185
17186   ;
17187   return 0;
17188 }
17189
17190 _ACEOF
17191
17192
17193         rm -Rf build && mkdir -p build
17194         echo "obj-m := conftest.o" >build/Makefile
17195         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'
17196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197   (eval $ac_try) 2>&5
17198   ac_status=$?
17199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202   (eval $ac_try) 2>&5
17203   ac_status=$?
17204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; }; then
17206
17207                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17208 $as_echo "yes" >&6; }
17209
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_BIO_EMPTY_BARRIER 1
17212 _ACEOF
17213
17214
17215 else
17216   $as_echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219                 { $as_echo "$as_me:$LINENO: result: no" >&5
17220 $as_echo "no" >&6; }
17221
17222
17223
17224 fi
17225
17226         rm -Rf build
17227
17228
17229
17230
17231         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
17232 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
17233
17234
17235 cat confdefs.h - <<_ACEOF >conftest.c
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17241
17242
17243                 #include <linux/bio.h>
17244
17245 int
17246 main (void)
17247 {
17248
17249                 int flags __attribute__ ((unused));
17250                 flags = (1 << BIO_RW_FAILFAST);
17251
17252   ;
17253   return 0;
17254 }
17255
17256 _ACEOF
17257
17258
17259         rm -Rf build && mkdir -p build
17260         echo "obj-m := conftest.o" >build/Makefile
17261         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'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268   (eval $ac_try) 2>&5
17269   ac_status=$?
17270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; }; then
17272
17273                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17274 $as_echo "yes" >&6; }
17275
17276 cat >>confdefs.h <<\_ACEOF
17277 #define HAVE_BIO_RW_FAILFAST 1
17278 _ACEOF
17279
17280
17281 else
17282   $as_echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17284
17285                 { $as_echo "$as_me:$LINENO: result: no" >&5
17286 $as_echo "no" >&6; }
17287
17288
17289
17290 fi
17291
17292         rm -Rf build
17293
17294
17295
17296
17297         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
17298 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
17299
17300
17301 cat confdefs.h - <<_ACEOF >conftest.c
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17307
17308
17309                 #include <linux/bio.h>
17310
17311 int
17312 main (void)
17313 {
17314
17315                 int flags __attribute__ ((unused));
17316                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
17317                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
17318                          (1 << BIO_RW_FAILFAST_DRIVER));
17319
17320   ;
17321   return 0;
17322 }
17323
17324 _ACEOF
17325
17326
17327         rm -Rf build && mkdir -p build
17328         echo "obj-m := conftest.o" >build/Makefile
17329         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'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336   (eval $ac_try) 2>&5
17337   ac_status=$?
17338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; }; then
17340
17341                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17342 $as_echo "yes" >&6; }
17343
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_BIO_RW_FAILFAST_DTD 1
17346 _ACEOF
17347
17348
17349 else
17350   $as_echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353                 { $as_echo "$as_me:$LINENO: result: no" >&5
17354 $as_echo "no" >&6; }
17355
17356
17357
17358 fi
17359
17360         rm -Rf build
17361
17362
17363
17364
17365         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
17366 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
17367
17368
17369 cat confdefs.h - <<_ACEOF >conftest.c
17370 /* confdefs.h.  */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h.  */
17375
17376
17377                 #include <linux/bio.h>
17378
17379 int
17380 main (void)
17381 {
17382
17383                 int flags __attribute__ ((unused));
17384                 flags = REQ_FAILFAST_MASK;
17385
17386   ;
17387   return 0;
17388 }
17389
17390 _ACEOF
17391
17392
17393         rm -Rf build && mkdir -p build
17394         echo "obj-m := conftest.o" >build/Makefile
17395         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'
17396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397   (eval $ac_try) 2>&5
17398   ac_status=$?
17399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402   (eval $ac_try) 2>&5
17403   ac_status=$?
17404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; }; then
17406
17407                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17408 $as_echo "yes" >&6; }
17409
17410 cat >>confdefs.h <<\_ACEOF
17411 #define HAVE_BIO_REQ_FAILFAST_MASK 1
17412 _ACEOF
17413
17414
17415 else
17416   $as_echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17418
17419                 { $as_echo "$as_me:$LINENO: result: no" >&5
17420 $as_echo "no" >&6; }
17421
17422
17423
17424 fi
17425
17426         rm -Rf build
17427
17428
17429
17430
17431         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
17432 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
17433         tmp_flags="$EXTRA_KCFLAGS"
17434         EXTRA_KCFLAGS="-Werror"
17435
17436
17437 cat confdefs.h - <<_ACEOF >conftest.c
17438 /* confdefs.h.  */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h.  */
17443
17444
17445                 #include <linux/bio.h>
17446
17447 int
17448 main (void)
17449 {
17450
17451                 void (*wanted_end_io)(struct bio *, int) = NULL;
17452                 bio_end_io_t *local_end_io __attribute__ ((unused));
17453
17454                 local_end_io = wanted_end_io;
17455
17456   ;
17457   return 0;
17458 }
17459
17460 _ACEOF
17461
17462
17463         rm -Rf build && mkdir -p build
17464         echo "obj-m := conftest.o" >build/Makefile
17465         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'
17466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467   (eval $ac_try) 2>&5
17468   ac_status=$?
17469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476
17477                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17478 $as_echo "yes" >&6; }
17479
17480 cat >>confdefs.h <<\_ACEOF
17481 #define HAVE_2ARGS_BIO_END_IO_T 1
17482 _ACEOF
17483
17484
17485 else
17486   $as_echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17488
17489                 { $as_echo "$as_me:$LINENO: result: no" >&5
17490 $as_echo "no" >&6; }
17491
17492
17493
17494 fi
17495
17496         rm -Rf build
17497
17498
17499         EXTRA_KCFLAGS="$tmp_flags"
17500
17501
17502         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
17503 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
17504
17505
17506 cat confdefs.h - <<_ACEOF >conftest.c
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512
17513
17514                 #include <linux/bio.h>
17515
17516 int
17517 main (void)
17518 {
17519
17520                 int flags __attribute__ ((unused));
17521                 flags = BIO_RW_SYNC;
17522
17523   ;
17524   return 0;
17525 }
17526
17527 _ACEOF
17528
17529
17530         rm -Rf build && mkdir -p build
17531         echo "obj-m := conftest.o" >build/Makefile
17532         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'
17533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534   (eval $ac_try) 2>&5
17535   ac_status=$?
17536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539   (eval $ac_try) 2>&5
17540   ac_status=$?
17541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); }; }; then
17543
17544                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17545 $as_echo "yes" >&6; }
17546
17547 cat >>confdefs.h <<\_ACEOF
17548 #define HAVE_BIO_RW_SYNC 1
17549 _ACEOF
17550
17551
17552 else
17553   $as_echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556                 { $as_echo "$as_me:$LINENO: result: no" >&5
17557 $as_echo "no" >&6; }
17558
17559
17560
17561 fi
17562
17563         rm -Rf build
17564
17565
17566
17567
17568         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
17569 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
17570
17571
17572 cat confdefs.h - <<_ACEOF >conftest.c
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578
17579
17580                 #include <linux/bio.h>
17581
17582 int
17583 main (void)
17584 {
17585
17586                 int flags __attribute__ ((unused));
17587                 flags = BIO_RW_SYNCIO;
17588
17589   ;
17590   return 0;
17591 }
17592
17593 _ACEOF
17594
17595
17596         rm -Rf build && mkdir -p build
17597         echo "obj-m := conftest.o" >build/Makefile
17598         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'
17599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600   (eval $ac_try) 2>&5
17601   ac_status=$?
17602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605   (eval $ac_try) 2>&5
17606   ac_status=$?
17607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; }; then
17609
17610                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17611 $as_echo "yes" >&6; }
17612
17613 cat >>confdefs.h <<\_ACEOF
17614 #define HAVE_BIO_RW_SYNCIO 1
17615 _ACEOF
17616
17617
17618 else
17619   $as_echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622                 { $as_echo "$as_me:$LINENO: result: no" >&5
17623 $as_echo "no" >&6; }
17624
17625
17626
17627 fi
17628
17629         rm -Rf build
17630
17631
17632
17633
17634         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
17635 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
17636
17637
17638 cat confdefs.h - <<_ACEOF >conftest.c
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644
17645
17646                 #include <linux/bio.h>
17647
17648 int
17649 main (void)
17650 {
17651
17652                 int flags __attribute__ ((unused));
17653                 flags = REQ_SYNC;
17654
17655   ;
17656   return 0;
17657 }
17658
17659 _ACEOF
17660
17661
17662         rm -Rf build && mkdir -p build
17663         echo "obj-m := conftest.o" >build/Makefile
17664         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'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671   (eval $ac_try) 2>&5
17672   ac_status=$?
17673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675
17676                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17677 $as_echo "yes" >&6; }
17678
17679 cat >>confdefs.h <<\_ACEOF
17680 #define HAVE_REQ_SYNC 1
17681 _ACEOF
17682
17683
17684 else
17685   $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688                 { $as_echo "$as_me:$LINENO: result: no" >&5
17689 $as_echo "no" >&6; }
17690
17691
17692
17693 fi
17694
17695         rm -Rf build
17696
17697
17698
17699
17700         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
17701 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
17702
17703
17704 cat confdefs.h - <<_ACEOF >conftest.c
17705 /* confdefs.h.  */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h.  */
17710
17711
17712                 #include <linux/blkdev.h>
17713
17714 int
17715 main (void)
17716 {
17717
17718                 struct request *req = NULL;
17719                 (void) blk_end_request(req, 0, 0);
17720
17721   ;
17722   return 0;
17723 }
17724
17725 _ACEOF
17726
17727
17728         rm -Rf build && mkdir -p build
17729         echo "obj-m := conftest.o" >build/Makefile
17730         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'
17731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732   (eval $ac_try) 2>&5
17733   ac_status=$?
17734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737   (eval $ac_try) 2>&5
17738   ac_status=$?
17739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); }; }; then
17741
17742                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17743 $as_echo "yes" >&6; }
17744
17745 cat >>confdefs.h <<\_ACEOF
17746 #define HAVE_BLK_END_REQUEST 1
17747 _ACEOF
17748
17749
17750 else
17751   $as_echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754                 { $as_echo "$as_me:$LINENO: result: no" >&5
17755 $as_echo "no" >&6; }
17756
17757
17758
17759 fi
17760
17761         rm -Rf build
17762
17763
17764
17765         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
17766 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
17767
17768
17769 cat confdefs.h - <<_ACEOF >conftest.c
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775
17776
17777                 #include <linux/module.h>
17778                 #include <linux/blkdev.h>
17779
17780                 MODULE_LICENSE("CDDL");
17781
17782 int
17783 main (void)
17784 {
17785
17786                 struct request *req = NULL;
17787                 (void) blk_end_request(req, 0, 0);
17788
17789   ;
17790   return 0;
17791 }
17792
17793 _ACEOF
17794
17795
17796         rm -Rf build && mkdir -p build
17797         echo "obj-m := conftest.o" >build/Makefile
17798         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'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805   (eval $ac_try) 2>&5
17806   ac_status=$?
17807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; }; then
17809
17810                 { $as_echo "$as_me:$LINENO: result: no" >&5
17811 $as_echo "no" >&6; }
17812
17813 else
17814   $as_echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17818 $as_echo "yes" >&6; }
17819
17820 cat >>confdefs.h <<\_ACEOF
17821 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17822 _ACEOF
17823
17824
17825
17826
17827 fi
17828
17829         rm -Rf build
17830
17831
17832
17833
17834         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17835 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17836
17837
17838 cat confdefs.h - <<_ACEOF >conftest.c
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844
17845
17846                 #include <linux/blkdev.h>
17847
17848 int
17849 main (void)
17850 {
17851
17852                 struct request_queue *q = NULL;
17853                 (void) blk_fetch_request(q);
17854
17855   ;
17856   return 0;
17857 }
17858
17859 _ACEOF
17860
17861
17862         rm -Rf build && mkdir -p build
17863         echo "obj-m := conftest.o" >build/Makefile
17864         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'
17865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866   (eval $ac_try) 2>&5
17867   ac_status=$?
17868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875
17876                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17877 $as_echo "yes" >&6; }
17878
17879 cat >>confdefs.h <<\_ACEOF
17880 #define HAVE_BLK_FETCH_REQUEST 1
17881 _ACEOF
17882
17883
17884 else
17885   $as_echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888                 { $as_echo "$as_me:$LINENO: result: no" >&5
17889 $as_echo "no" >&6; }
17890
17891
17892
17893 fi
17894
17895         rm -Rf build
17896
17897
17898
17899
17900         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17901 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17902
17903
17904 cat confdefs.h - <<_ACEOF >conftest.c
17905 /* confdefs.h.  */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h.  */
17910
17911
17912                 #include <linux/blkdev.h>
17913
17914 int
17915 main (void)
17916 {
17917
17918                 struct request_queue *q = NULL;
17919                 struct request *req = NULL;
17920                 blk_requeue_request(q, req);
17921
17922   ;
17923   return 0;
17924 }
17925
17926 _ACEOF
17927
17928
17929         rm -Rf build && mkdir -p build
17930         echo "obj-m := conftest.o" >build/Makefile
17931         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'
17932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933   (eval $ac_try) 2>&5
17934   ac_status=$?
17935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938   (eval $ac_try) 2>&5
17939   ac_status=$?
17940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); }; }; then
17942
17943                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17944 $as_echo "yes" >&6; }
17945
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_BLK_REQUEUE_REQUEST 1
17948 _ACEOF
17949
17950
17951 else
17952   $as_echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955                 { $as_echo "$as_me:$LINENO: result: no" >&5
17956 $as_echo "no" >&6; }
17957
17958
17959
17960 fi
17961
17962         rm -Rf build
17963
17964
17965
17966
17967         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17968 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17969
17970
17971 cat confdefs.h - <<_ACEOF >conftest.c
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977
17978
17979                 #include <linux/blkdev.h>
17980
17981 int
17982 main (void)
17983 {
17984
17985                 struct request *req = NULL;
17986                 (void) blk_rq_bytes(req);
17987
17988   ;
17989   return 0;
17990 }
17991
17992 _ACEOF
17993
17994
17995         rm -Rf build && mkdir -p build
17996         echo "obj-m := conftest.o" >build/Makefile
17997         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'
17998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999   (eval $ac_try) 2>&5
18000   ac_status=$?
18001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004   (eval $ac_try) 2>&5
18005   ac_status=$?
18006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); }; }; then
18008
18009                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18010 $as_echo "yes" >&6; }
18011
18012 cat >>confdefs.h <<\_ACEOF
18013 #define HAVE_BLK_RQ_BYTES 1
18014 _ACEOF
18015
18016
18017 else
18018   $as_echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021                 { $as_echo "$as_me:$LINENO: result: no" >&5
18022 $as_echo "no" >&6; }
18023
18024
18025
18026 fi
18027
18028         rm -Rf build
18029
18030
18031
18032         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
18033 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
18034
18035
18036 cat confdefs.h - <<_ACEOF >conftest.c
18037 /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042
18043
18044                 #include <linux/module.h>
18045                 #include <linux/blkdev.h>
18046
18047                 MODULE_LICENSE("CDDL");
18048
18049 int
18050 main (void)
18051 {
18052
18053                 struct request *req = NULL;
18054                 (void) blk_rq_bytes(req);
18055
18056   ;
18057   return 0;
18058 }
18059
18060 _ACEOF
18061
18062
18063         rm -Rf build && mkdir -p build
18064         echo "obj-m := conftest.o" >build/Makefile
18065         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'
18066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067   (eval $ac_try) 2>&5
18068   ac_status=$?
18069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072   (eval $ac_try) 2>&5
18073   ac_status=$?
18074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); }; }; then
18076
18077                 { $as_echo "$as_me:$LINENO: result: no" >&5
18078 $as_echo "no" >&6; }
18079
18080 else
18081   $as_echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18085 $as_echo "yes" >&6; }
18086
18087 cat >>confdefs.h <<\_ACEOF
18088 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
18089 _ACEOF
18090
18091
18092
18093
18094 fi
18095
18096         rm -Rf build
18097
18098
18099
18100
18101         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
18102 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
18103
18104
18105 cat confdefs.h - <<_ACEOF >conftest.c
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111
18112
18113                 #include <linux/blkdev.h>
18114
18115 int
18116 main (void)
18117 {
18118
18119                 struct request *req = NULL;
18120                 (void) blk_rq_pos(req);
18121
18122   ;
18123   return 0;
18124 }
18125
18126 _ACEOF
18127
18128
18129         rm -Rf build && mkdir -p build
18130         echo "obj-m := conftest.o" >build/Makefile
18131         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'
18132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133   (eval $ac_try) 2>&5
18134   ac_status=$?
18135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138   (eval $ac_try) 2>&5
18139   ac_status=$?
18140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); }; }; then
18142
18143                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18144 $as_echo "yes" >&6; }
18145
18146 cat >>confdefs.h <<\_ACEOF
18147 #define HAVE_BLK_RQ_POS 1
18148 _ACEOF
18149
18150
18151 else
18152   $as_echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18154
18155                 { $as_echo "$as_me:$LINENO: result: no" >&5
18156 $as_echo "no" >&6; }
18157
18158
18159
18160 fi
18161
18162         rm -Rf build
18163
18164
18165
18166
18167         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
18168 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
18169
18170
18171 cat confdefs.h - <<_ACEOF >conftest.c
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177
18178
18179                 #include <linux/blkdev.h>
18180
18181 int
18182 main (void)
18183 {
18184
18185                 struct request *req = NULL;
18186                 (void) blk_rq_sectors(req);
18187
18188   ;
18189   return 0;
18190 }
18191
18192 _ACEOF
18193
18194
18195         rm -Rf build && mkdir -p build
18196         echo "obj-m := conftest.o" >build/Makefile
18197         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'
18198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199   (eval $ac_try) 2>&5
18200   ac_status=$?
18201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204   (eval $ac_try) 2>&5
18205   ac_status=$?
18206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; }; then
18208
18209                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18210 $as_echo "yes" >&6; }
18211
18212 cat >>confdefs.h <<\_ACEOF
18213 #define HAVE_BLK_RQ_SECTORS 1
18214 _ACEOF
18215
18216
18217 else
18218   $as_echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221                 { $as_echo "$as_me:$LINENO: result: no" >&5
18222 $as_echo "no" >&6; }
18223
18224
18225
18226 fi
18227
18228         rm -Rf build
18229
18230
18231
18232
18233         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18234 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
18235
18236
18237 cat confdefs.h - <<_ACEOF >conftest.c
18238 /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243
18244
18245                 #include <linux/blkdev.h>
18246
18247 int
18248 main (void)
18249 {
18250
18251                 struct gendisk *disk = NULL;
18252                 (void) get_disk_ro(disk);
18253
18254   ;
18255   return 0;
18256 }
18257
18258 _ACEOF
18259
18260
18261         rm -Rf build && mkdir -p build
18262         echo "obj-m := conftest.o" >build/Makefile
18263         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'
18264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265   (eval $ac_try) 2>&5
18266   ac_status=$?
18267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270   (eval $ac_try) 2>&5
18271   ac_status=$?
18272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; }; then
18274
18275                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18276 $as_echo "yes" >&6; }
18277
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE_GET_DISK_RO 1
18280 _ACEOF
18281
18282
18283 else
18284   $as_echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287                 { $as_echo "$as_me:$LINENO: result: no" >&5
18288 $as_echo "no" >&6; }
18289
18290
18291
18292 fi
18293
18294         rm -Rf build
18295
18296
18297
18298
18299         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
18300 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
18301
18302
18303 cat confdefs.h - <<_ACEOF >conftest.c
18304 /* confdefs.h.  */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h.  */
18309
18310
18311                 #include <linux/blkdev.h>
18312
18313 int
18314 main (void)
18315 {
18316
18317                 struct request *req = NULL;
18318                 (void) rq_is_sync(req);
18319
18320   ;
18321   return 0;
18322 }
18323
18324 _ACEOF
18325
18326
18327         rm -Rf build && mkdir -p build
18328         echo "obj-m := conftest.o" >build/Makefile
18329         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'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336   (eval $ac_try) 2>&5
18337   ac_status=$?
18338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; }; then
18340
18341                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18342 $as_echo "yes" >&6; }
18343
18344 cat >>confdefs.h <<\_ACEOF
18345 #define HAVE_RQ_IS_SYNC 1
18346 _ACEOF
18347
18348
18349 else
18350   $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18352
18353                 { $as_echo "$as_me:$LINENO: result: no" >&5
18354 $as_echo "no" >&6; }
18355
18356
18357
18358 fi
18359
18360         rm -Rf build
18361
18362
18363
18364
18365         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
18366 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
18367
18368
18369 cat confdefs.h - <<_ACEOF >conftest.c
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375
18376
18377                 #include <linux/blkdev.h>
18378
18379 int
18380 main (void)
18381 {
18382
18383                 struct bio_vec *bv;
18384                 struct req_iterator iter;
18385                 struct request *req = NULL;
18386                 rq_for_each_segment(bv, req, iter) { }
18387
18388   ;
18389   return 0;
18390 }
18391
18392 _ACEOF
18393
18394
18395         rm -Rf build && mkdir -p build
18396         echo "obj-m := conftest.o" >build/Makefile
18397         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'
18398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399   (eval $ac_try) 2>&5
18400   ac_status=$?
18401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404   (eval $ac_try) 2>&5
18405   ac_status=$?
18406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); }; }; then
18408
18409                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18410 $as_echo "yes" >&6; }
18411
18412 cat >>confdefs.h <<\_ACEOF
18413 #define HAVE_RQ_FOR_EACH_SEGMENT 1
18414 _ACEOF
18415
18416
18417 else
18418   $as_echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421                 { $as_echo "$as_me:$LINENO: result: no" >&5
18422 $as_echo "no" >&6; }
18423
18424
18425
18426 fi
18427
18428         rm -Rf build
18429
18430
18431
18432         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
18433 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
18434
18435
18436 cat confdefs.h - <<_ACEOF >conftest.c
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442
18443
18444                 #include <linux/fs.h>
18445                 #include <linux/xattr.h>
18446
18447                 const struct xattr_handler xattr_test_handler = {
18448                         .prefix = "test",
18449                         .get    = NULL,
18450                         .set    = NULL,
18451                 };
18452
18453                 const struct xattr_handler *xattr_handlers[] = {
18454                         &xattr_test_handler,
18455                 };
18456
18457 int
18458 main (void)
18459 {
18460
18461                 struct super_block sb __attribute__ ((unused));
18462
18463                 sb.s_xattr = xattr_handlers;
18464
18465   ;
18466   return 0;
18467 }
18468
18469 _ACEOF
18470
18471
18472         rm -Rf build && mkdir -p build
18473         echo "obj-m := conftest.o" >build/Makefile
18474         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'
18475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476   (eval $ac_try) 2>&5
18477   ac_status=$?
18478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481   (eval $ac_try) 2>&5
18482   ac_status=$?
18483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); }; }; then
18485
18486                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18487 $as_echo "yes" >&6; }
18488
18489 cat >>confdefs.h <<\_ACEOF
18490 #define HAVE_CONST_XATTR_HANDLER 1
18491 _ACEOF
18492
18493
18494 else
18495   $as_echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498                 { $as_echo "$as_me:$LINENO: result: no" >&5
18499 $as_echo "no" >&6; }
18500
18501
18502
18503 fi
18504
18505         rm -Rf build
18506
18507
18508
18509
18510         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18511 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18512
18513
18514 cat confdefs.h - <<_ACEOF >conftest.c
18515 /* confdefs.h.  */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h.  */
18520
18521
18522                 #include <linux/xattr.h>
18523
18524 int
18525 main (void)
18526 {
18527
18528                 int (*get)(struct dentry *dentry, const char *name,
18529                     void *buffer, size_t size, int handler_flags) = NULL;
18530                 struct xattr_handler xops __attribute__ ((unused));
18531
18532                 xops.get = get;
18533
18534   ;
18535   return 0;
18536 }
18537
18538 _ACEOF
18539
18540
18541         rm -Rf build && mkdir -p build
18542         echo "obj-m := conftest.o" >build/Makefile
18543         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'
18544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545   (eval $ac_try) 2>&5
18546   ac_status=$?
18547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550   (eval $ac_try) 2>&5
18551   ac_status=$?
18552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554
18555                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18556 $as_echo "yes" >&6; }
18557
18558 cat >>confdefs.h <<\_ACEOF
18559 #define HAVE_DENTRY_XATTR_GET 1
18560 _ACEOF
18561
18562
18563 else
18564   $as_echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567                 { $as_echo "$as_me:$LINENO: result: no" >&5
18568 $as_echo "no" >&6; }
18569
18570
18571
18572 fi
18573
18574         rm -Rf build
18575
18576
18577
18578
18579         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18580 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18581
18582
18583 cat confdefs.h - <<_ACEOF >conftest.c
18584 /* confdefs.h.  */
18585 _ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h.  */
18589
18590
18591                 #include <linux/xattr.h>
18592
18593 int
18594 main (void)
18595 {
18596
18597                 int (*set)(struct dentry *dentry, const char *name,
18598                     const void *buffer, size_t size, int flags,
18599                     int handler_flags) = NULL;
18600                 struct xattr_handler xops __attribute__ ((unused));
18601
18602                 xops.set = set;
18603
18604   ;
18605   return 0;
18606 }
18607
18608 _ACEOF
18609
18610
18611         rm -Rf build && mkdir -p build
18612         echo "obj-m := conftest.o" >build/Makefile
18613         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'
18614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615   (eval $ac_try) 2>&5
18616   ac_status=$?
18617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; }; then
18624
18625                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18626 $as_echo "yes" >&6; }
18627
18628 cat >>confdefs.h <<\_ACEOF
18629 #define HAVE_DENTRY_XATTR_SET 1
18630 _ACEOF
18631
18632
18633 else
18634   $as_echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637                 { $as_echo "$as_me:$LINENO: result: no" >&5
18638 $as_echo "no" >&6; }
18639
18640
18641
18642 fi
18643
18644         rm -Rf build
18645
18646
18647
18648
18649         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
18650 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
18651
18652
18653 cat confdefs.h - <<_ACEOF >conftest.c
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659
18660
18661                 #include <linux/fs.h>
18662
18663 int
18664 main (void)
18665 {
18666
18667                 int (*fsync) (struct file *, int datasync) = NULL;
18668                 struct file_operations fops __attribute__ ((unused));
18669
18670                 fops.fsync = fsync;
18671
18672   ;
18673   return 0;
18674 }
18675
18676 _ACEOF
18677
18678
18679         rm -Rf build && mkdir -p build
18680         echo "obj-m := conftest.o" >build/Makefile
18681         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'
18682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683   (eval $ac_try) 2>&5
18684   ac_status=$?
18685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688   (eval $ac_try) 2>&5
18689   ac_status=$?
18690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; }; then
18692
18693                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18694 $as_echo "yes" >&6; }
18695
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_2ARGS_FSYNC 1
18698 _ACEOF
18699
18700
18701 else
18702   $as_echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705                 { $as_echo "$as_me:$LINENO: result: no" >&5
18706 $as_echo "no" >&6; }
18707
18708
18709
18710 fi
18711
18712         rm -Rf build
18713
18714
18715
18716
18717         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
18718 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18719
18720
18721 cat confdefs.h - <<_ACEOF >conftest.c
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727
18728
18729                 #include <linux/fs.h>
18730
18731 int
18732 main (void)
18733 {
18734
18735                 void (*evict_inode) (struct inode *) = NULL;
18736                 struct super_operations sops __attribute__ ((unused)) = {
18737                         .evict_inode = evict_inode,
18738                 };
18739
18740   ;
18741   return 0;
18742 }
18743
18744 _ACEOF
18745
18746
18747         rm -Rf build && mkdir -p build
18748         echo "obj-m := conftest.o" >build/Makefile
18749         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'
18750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751   (eval $ac_try) 2>&5
18752   ac_status=$?
18753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756   (eval $ac_try) 2>&5
18757   ac_status=$?
18758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; }; then
18760
18761                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18762 $as_echo "yes" >&6; }
18763
18764 cat >>confdefs.h <<\_ACEOF
18765 #define HAVE_EVICT_INODE 1
18766 _ACEOF
18767
18768
18769 else
18770   $as_echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18772
18773                 { $as_echo "$as_me:$LINENO: result: no" >&5
18774 $as_echo "no" >&6; }
18775
18776
18777
18778 fi
18779
18780         rm -Rf build
18781
18782
18783
18784
18785         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
18786 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
18787         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18788                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18789         rc=$?
18790         if test $rc -ne 0; then
18791                 export=0
18792                 for file in fs/inode.c; do
18793                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
18794                         rc=$?
18795                         if test $rc -eq 0; then
18796                                 export=1
18797                                 break;
18798                         fi
18799                 done
18800                 if test $export -eq 0; then
18801                         { $as_echo "$as_me:$LINENO: result: no" >&5
18802 $as_echo "no" >&6; }
18803
18804                 else
18805                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18806 $as_echo "yes" >&6; }
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_INSERT_INODE_LOCKED 1
18810 _ACEOF
18811
18812                 fi
18813         else
18814                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18815 $as_echo "yes" >&6; }
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_INSERT_INODE_LOCKED 1
18819 _ACEOF
18820
18821         fi
18822
18823
18824
18825         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
18826 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
18827         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18828                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18829         rc=$?
18830         if test $rc -ne 0; then
18831                 export=0
18832                 for file in fs/dcache.c; do
18833                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
18834                         rc=$?
18835                         if test $rc -eq 0; then
18836                                 export=1
18837                                 break;
18838                         fi
18839                 done
18840                 if test $export -eq 0; then
18841                         { $as_echo "$as_me:$LINENO: result: no" >&5
18842 $as_echo "no" >&6; }
18843
18844                 else
18845                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18846 $as_echo "yes" >&6; }
18847
18848 cat >>confdefs.h <<\_ACEOF
18849 #define HAVE_D_OBTAIN_ALIAS 1
18850 _ACEOF
18851
18852                 fi
18853         else
18854                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18855 $as_echo "yes" >&6; }
18856
18857 cat >>confdefs.h <<\_ACEOF
18858 #define HAVE_D_OBTAIN_ALIAS 1
18859 _ACEOF
18860
18861         fi
18862
18863
18864
18865         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
18866 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
18867         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
18868                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18869         rc=$?
18870         if test $rc -ne 0; then
18871                 export=0
18872                 for file in fs/block_dev.c; do
18873                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
18874                         rc=$?
18875                         if test $rc -eq 0; then
18876                                 export=1
18877                                 break;
18878                         fi
18879                 done
18880                 if test $export -eq 0; then
18881                         { $as_echo "$as_me:$LINENO: result: no" >&5
18882 $as_echo "no" >&6; }
18883
18884                 else
18885                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18886 $as_echo "yes" >&6; }
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18890 _ACEOF
18891
18892                 fi
18893         else
18894                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18895 $as_echo "yes" >&6; }
18896
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18899 _ACEOF
18900
18901         fi
18902
18903
18904
18905         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
18906 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
18907         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
18908                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18909         rc=$?
18910         if test $rc -ne 0; then
18911                 export=0
18912                 for file in mm/truncate.c; do
18913                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
18914                         rc=$?
18915                         if test $rc -eq 0; then
18916                                 export=1
18917                                 break;
18918                         fi
18919                 done
18920                 if test $export -eq 0; then
18921                         { $as_echo "$as_me:$LINENO: result: no" >&5
18922 $as_echo "no" >&6; }
18923
18924                 else
18925                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18926 $as_echo "yes" >&6; }
18927
18928 cat >>confdefs.h <<\_ACEOF
18929 #define HAVE_TRUNCATE_SETSIZE 1
18930 _ACEOF
18931
18932                 fi
18933         else
18934                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18935 $as_echo "yes" >&6; }
18936
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_TRUNCATE_SETSIZE 1
18939 _ACEOF
18940
18941         fi
18942
18943
18944
18945         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
18946 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
18947         tmp_flags="$EXTRA_KCFLAGS"
18948         EXTRA_KCFLAGS="-Werror"
18949
18950
18951 cat confdefs.h - <<_ACEOF >conftest.c
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957
18958
18959                 #include <linux/security.h>
18960
18961 int
18962 main (void)
18963 {
18964
18965                 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
18966
18967   ;
18968   return 0;
18969 }
18970
18971 _ACEOF
18972
18973
18974         rm -Rf build && mkdir -p build
18975         echo "obj-m := conftest.o" >build/Makefile
18976         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'
18977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978   (eval $ac_try) 2>&5
18979   ac_status=$?
18980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983   (eval $ac_try) 2>&5
18984   ac_status=$?
18985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); }; }; then
18987
18988                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18989 $as_echo "yes" >&6; }
18990
18991 cat >>confdefs.h <<\_ACEOF
18992 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
18993 _ACEOF
18994
18995
18996 else
18997   $as_echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000                 { $as_echo "$as_me:$LINENO: result: no" >&5
19001 $as_echo "no" >&6; }
19002
19003
19004
19005 fi
19006
19007         rm -Rf build
19008
19009
19010         EXTRA_KCFLAGS="$tmp_flags"
19011
19012
19013         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
19014 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
19015         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
19016                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19017         rc=$?
19018         if test $rc -ne 0; then
19019                 export=0
19020                 for file in fs/super.c; do
19021                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
19022                         rc=$?
19023                         if test $rc -eq 0; then
19024                                 export=1
19025                                 break;
19026                         fi
19027                 done
19028                 if test $export -eq 0; then
19029                         { $as_echo "$as_me:$LINENO: result: no" >&5
19030 $as_echo "no" >&6; }
19031
19032                 else
19033                         { $as_echo "$as_me:$LINENO: result: yes" >&5
19034 $as_echo "yes" >&6; }
19035
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_MOUNT_NODEV 1
19038 _ACEOF
19039
19040                 fi
19041         else
19042                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19043 $as_echo "yes" >&6; }
19044
19045 cat >>confdefs.h <<\_ACEOF
19046 #define HAVE_MOUNT_NODEV 1
19047 _ACEOF
19048
19049         fi
19050
19051
19052
19053         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
19054 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
19055
19056
19057 cat confdefs.h - <<_ACEOF >conftest.c
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063
19064
19065                 #include <linux/fs.h>
19066
19067 int
19068 main (void)
19069 {
19070
19071                 struct super_block sb __attribute__ ((unused));
19072                 sb.s_bdi = NULL;
19073
19074   ;
19075   return 0;
19076 }
19077
19078 _ACEOF
19079
19080
19081         rm -Rf build && mkdir -p build
19082         echo "obj-m := conftest.o" >build/Makefile
19083         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'
19084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085   (eval $ac_try) 2>&5
19086   ac_status=$?
19087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090   (eval $ac_try) 2>&5
19091   ac_status=$?
19092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); }; }; then
19094
19095                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19096 $as_echo "yes" >&6; }
19097
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_BDI 1
19100 _ACEOF
19101
19102
19103 else
19104   $as_echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107                 { $as_echo "$as_me:$LINENO: result: no" >&5
19108 $as_echo "no" >&6; }
19109
19110
19111
19112 fi
19113
19114         rm -Rf build
19115
19116
19117
19118
19119         if test "$LINUX_OBJ" != "$LINUX"; then
19120                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
19121         fi
19122
19123
19124
19125                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
19126         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
19127         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
19128
19129
19130
19131
19132
19133
19134 # Check whether --with-udevdir was given.
19135 if test "${with_udevdir+set}" = set; then
19136   withval=$with_udevdir; udevdir=$withval
19137 else
19138   udevdir='${exec_prefix}/lib/udev'
19139 fi
19140
19141
19142
19143 # Check whether --with-udevruledir was given.
19144 if test "${with_udevruledir+set}" = set; then
19145   withval=$with_udevruledir; udevruledir=$withval
19146 else
19147   udevruledir='${udevdir}/rules.d'
19148 fi
19149
19150
19151
19152
19153
19154
19155         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
19156 $as_echo_n "checking for target asm dir... " >&6; }
19157         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
19158
19159         case $TARGET_ARCH in
19160         i386|x86_64)
19161                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
19162                 ;;
19163         *)
19164                 TARGET_ASM_DIR=asm-generic
19165                 ;;
19166         esac
19167
19168
19169         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
19170 $as_echo "$TARGET_ASM_DIR" >&6; }
19171
19172
19173         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
19174 $as_echo_n "checking for ioctl()... " >&6; }
19175         cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 #include <unistd.h>
19182
19183 _ACEOF
19184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19185   $EGREP "ioctl" >/dev/null 2>&1; then
19186   is_unistd=yes
19187 else
19188   is_unistd=no
19189 fi
19190 rm -f conftest*
19191
19192         cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198 #include <sys/ioctl.h>
19199
19200 _ACEOF
19201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19202   $EGREP "ioctl" >/dev/null 2>&1; then
19203   is_sys_ioctl=yes
19204 else
19205   is_sys_ioctl=no
19206 fi
19207 rm -f conftest*
19208
19209         cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215 #include <stropts.h>
19216
19217 _ACEOF
19218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19219   $EGREP "ioctl" >/dev/null 2>&1; then
19220   is_stropts=yes
19221 else
19222   is_stropts=no
19223 fi
19224 rm -f conftest*
19225
19226
19227         if test $is_unistd = yes; then
19228                 result=unistd.h
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_IOCTL_IN_UNISTD_H 1
19232 _ACEOF
19233
19234         else
19235
19236                 if test $is_sys_ioctl = yes; then
19237                         result=sys/ioctl.h
19238
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
19241 _ACEOF
19242
19243                 elif test $is_stropts = yes; then
19244
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_IOCTL_IN_STROPTS_H 1
19247 _ACEOF
19248
19249                 else
19250                         result=no
19251                 fi
19252         fi
19253
19254         if test $result = no; then
19255                 { $as_echo "$as_me:$LINENO: result: no" >&5
19256 $as_echo "no" >&6; }
19257                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
19258 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
19259    { (exit 1); exit 1; }; }
19260         else
19261                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19262 $as_echo "yes" >&6; }
19263         fi
19264
19265
19266         ZLIB=
19267
19268         if test "${ac_cv_header_zlib_h+set}" = set; then
19269   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
19270 $as_echo_n "checking for zlib.h... " >&6; }
19271 if test "${ac_cv_header_zlib_h+set}" = set; then
19272   $as_echo_n "(cached) " >&6
19273 fi
19274 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19275 $as_echo "$ac_cv_header_zlib_h" >&6; }
19276 else
19277   # Is the header compilable?
19278 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
19279 $as_echo_n "checking zlib.h usability... " >&6; }
19280 cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h.  */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h.  */
19286 $ac_includes_default
19287 #include <zlib.h>
19288 _ACEOF
19289 rm -f conftest.$ac_objext
19290 if { (ac_try="$ac_compile"
19291 case "(($ac_try" in
19292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293   *) ac_try_echo=$ac_try;;
19294 esac
19295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19296 $as_echo "$ac_try_echo") >&5
19297   (eval "$ac_compile") 2>conftest.er1
19298   ac_status=$?
19299   grep -v '^ *+' conftest.er1 >conftest.err
19300   rm -f conftest.er1
19301   cat conftest.err >&5
19302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } && {
19304          test -z "$ac_c_werror_flag" ||
19305          test ! -s conftest.err
19306        } && test -s conftest.$ac_objext; then
19307   ac_header_compiler=yes
19308 else
19309   $as_echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312         ac_header_compiler=no
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19317 $as_echo "$ac_header_compiler" >&6; }
19318
19319 # Is the header present?
19320 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
19321 $as_echo_n "checking zlib.h presence... " >&6; }
19322 cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h.  */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h.  */
19328 #include <zlib.h>
19329 _ACEOF
19330 if { (ac_try="$ac_cpp conftest.$ac_ext"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } >/dev/null && {
19344          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19345          test ! -s conftest.err
19346        }; then
19347   ac_header_preproc=yes
19348 else
19349   $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352   ac_header_preproc=no
19353 fi
19354
19355 rm -f conftest.err conftest.$ac_ext
19356 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19357 $as_echo "$ac_header_preproc" >&6; }
19358
19359 # So?  What about this header?
19360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19361   yes:no: )
19362     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19363 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19364     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19365 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19366     ac_header_preproc=yes
19367     ;;
19368   no:yes:* )
19369     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19370 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19371     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
19372 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
19373     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19374 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19375     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
19376 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19377     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19378 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19379     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19380 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19381
19382     ;;
19383 esac
19384 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
19385 $as_echo_n "checking for zlib.h... " >&6; }
19386 if test "${ac_cv_header_zlib_h+set}" = set; then
19387   $as_echo_n "(cached) " >&6
19388 else
19389   ac_cv_header_zlib_h=$ac_header_preproc
19390 fi
19391 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19392 $as_echo "$ac_cv_header_zlib_h" >&6; }
19393
19394 fi
19395 if test "x$ac_cv_header_zlib_h" = x""yes; then
19396   :
19397 else
19398   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19400 { { $as_echo "$as_me:$LINENO: error:
19401         *** zlib.h missing, zlib-devel package required
19402 See \`config.log' for more details." >&5
19403 $as_echo "$as_me: error:
19404         *** zlib.h missing, zlib-devel package required
19405 See \`config.log' for more details." >&2;}
19406    { (exit 1); exit 1; }; }; }
19407 fi
19408
19409
19410
19411
19412 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
19413 $as_echo_n "checking for compress2 in -lz... " >&6; }
19414 if test "${ac_cv_lib_z_compress2+set}" = set; then
19415   $as_echo_n "(cached) " >&6
19416 else
19417   ac_check_lib_save_LIBS=$LIBS
19418 LIBS="-lz  $LIBS"
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425
19426 /* Override any GCC internal prototype to avoid an error.
19427    Use char because int might match the return type of a GCC
19428    builtin and then its argument prototype would still apply.  */
19429 #ifdef __cplusplus
19430 extern "C"
19431 #endif
19432 char compress2 ();
19433 int
19434 main ()
19435 {
19436 return compress2 ();
19437   ;
19438   return 0;
19439 }
19440 _ACEOF
19441 rm -f conftest.$ac_objext conftest$ac_exeext
19442 if { (ac_try="$ac_link"
19443 case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19448 $as_echo "$ac_try_echo") >&5
19449   (eval "$ac_link") 2>conftest.er1
19450   ac_status=$?
19451   grep -v '^ *+' conftest.er1 >conftest.err
19452   rm -f conftest.er1
19453   cat conftest.err >&5
19454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } && {
19456          test -z "$ac_c_werror_flag" ||
19457          test ! -s conftest.err
19458        } && test -s conftest$ac_exeext && {
19459          test "$cross_compiling" = yes ||
19460          $as_test_x conftest$ac_exeext
19461        }; then
19462   ac_cv_lib_z_compress2=yes
19463 else
19464   $as_echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467         ac_cv_lib_z_compress2=no
19468 fi
19469
19470 rm -rf conftest.dSYM
19471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19472       conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_lib_save_LIBS
19474 fi
19475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
19476 $as_echo "$ac_cv_lib_z_compress2" >&6; }
19477 if test "x$ac_cv_lib_z_compress2" = x""yes; then
19478   cat >>confdefs.h <<_ACEOF
19479 #define HAVE_LIBZ 1
19480 _ACEOF
19481
19482   LIBS="-lz $LIBS"
19483
19484 else
19485   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19487 { { $as_echo "$as_me:$LINENO: error:
19488         *** compress2() missing, zlib-devel package required
19489 See \`config.log' for more details." >&5
19490 $as_echo "$as_me: error:
19491         *** compress2() missing, zlib-devel package required
19492 See \`config.log' for more details." >&2;}
19493    { (exit 1); exit 1; }; }; }
19494 fi
19495
19496
19497
19498 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
19499 $as_echo_n "checking for uncompress in -lz... " >&6; }
19500 if test "${ac_cv_lib_z_uncompress+set}" = set; then
19501   $as_echo_n "(cached) " >&6
19502 else
19503   ac_check_lib_save_LIBS=$LIBS
19504 LIBS="-lz  $LIBS"
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511
19512 /* Override any GCC internal prototype to avoid an error.
19513    Use char because int might match the return type of a GCC
19514    builtin and then its argument prototype would still apply.  */
19515 #ifdef __cplusplus
19516 extern "C"
19517 #endif
19518 char uncompress ();
19519 int
19520 main ()
19521 {
19522 return uncompress ();
19523   ;
19524   return 0;
19525 }
19526 _ACEOF
19527 rm -f conftest.$ac_objext conftest$ac_exeext
19528 if { (ac_try="$ac_link"
19529 case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19534 $as_echo "$ac_try_echo") >&5
19535   (eval "$ac_link") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } && {
19542          test -z "$ac_c_werror_flag" ||
19543          test ! -s conftest.err
19544        } && test -s conftest$ac_exeext && {
19545          test "$cross_compiling" = yes ||
19546          $as_test_x conftest$ac_exeext
19547        }; then
19548   ac_cv_lib_z_uncompress=yes
19549 else
19550   $as_echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553         ac_cv_lib_z_uncompress=no
19554 fi
19555
19556 rm -rf conftest.dSYM
19557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19558       conftest$ac_exeext conftest.$ac_ext
19559 LIBS=$ac_check_lib_save_LIBS
19560 fi
19561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
19562 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
19563 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
19564   cat >>confdefs.h <<_ACEOF
19565 #define HAVE_LIBZ 1
19566 _ACEOF
19567
19568   LIBS="-lz $LIBS"
19569
19570 else
19571   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19573 { { $as_echo "$as_me:$LINENO: error:
19574         *** uncompress() missing, zlib-devel package required
19575 See \`config.log' for more details." >&5
19576 $as_echo "$as_me: error:
19577         *** uncompress() missing, zlib-devel package required
19578 See \`config.log' for more details." >&2;}
19579    { (exit 1); exit 1; }; }; }
19580 fi
19581
19582
19583
19584 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
19585 $as_echo_n "checking for crc32 in -lz... " >&6; }
19586 if test "${ac_cv_lib_z_crc32+set}" = set; then
19587   $as_echo_n "(cached) " >&6
19588 else
19589   ac_check_lib_save_LIBS=$LIBS
19590 LIBS="-lz  $LIBS"
19591 cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h.  */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h.  */
19597
19598 /* Override any GCC internal prototype to avoid an error.
19599    Use char because int might match the return type of a GCC
19600    builtin and then its argument prototype would still apply.  */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 char crc32 ();
19605 int
19606 main ()
19607 {
19608 return crc32 ();
19609   ;
19610   return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (ac_try="$ac_link"
19615 case "(($ac_try" in
19616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617   *) ac_try_echo=$ac_try;;
19618 esac
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621   (eval "$ac_link") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } && {
19628          test -z "$ac_c_werror_flag" ||
19629          test ! -s conftest.err
19630        } && test -s conftest$ac_exeext && {
19631          test "$cross_compiling" = yes ||
19632          $as_test_x conftest$ac_exeext
19633        }; then
19634   ac_cv_lib_z_crc32=yes
19635 else
19636   $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639         ac_cv_lib_z_crc32=no
19640 fi
19641
19642 rm -rf conftest.dSYM
19643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19644       conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19646 fi
19647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
19648 $as_echo "$ac_cv_lib_z_crc32" >&6; }
19649 if test "x$ac_cv_lib_z_crc32" = x""yes; then
19650   cat >>confdefs.h <<_ACEOF
19651 #define HAVE_LIBZ 1
19652 _ACEOF
19653
19654   LIBS="-lz $LIBS"
19655
19656 else
19657   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19659 { { $as_echo "$as_me:$LINENO: error:
19660         *** crc32() missing, zlib-devel package required
19661 See \`config.log' for more details." >&5
19662 $as_echo "$as_me: error:
19663         *** crc32() missing, zlib-devel package required
19664 See \`config.log' for more details." >&2;}
19665    { (exit 1); exit 1; }; }; }
19666 fi
19667
19668
19669         ZLIB="-lz"
19670
19671
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE_ZLIB 1
19674 _ACEOF
19675
19676
19677
19678         LIBUUID=
19679
19680         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19681   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19682 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19683 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19684   $as_echo_n "(cached) " >&6
19685 fi
19686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19687 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19688 else
19689   # Is the header compilable?
19690 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
19691 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h.  */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h.  */
19698 $ac_includes_default
19699 #include <uuid/uuid.h>
19700 _ACEOF
19701 rm -f conftest.$ac_objext
19702 if { (ac_try="$ac_compile"
19703 case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19708 $as_echo "$ac_try_echo") >&5
19709   (eval "$ac_compile") 2>conftest.er1
19710   ac_status=$?
19711   grep -v '^ *+' conftest.er1 >conftest.err
19712   rm -f conftest.er1
19713   cat conftest.err >&5
19714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } && {
19716          test -z "$ac_c_werror_flag" ||
19717          test ! -s conftest.err
19718        } && test -s conftest.$ac_objext; then
19719   ac_header_compiler=yes
19720 else
19721   $as_echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724         ac_header_compiler=no
19725 fi
19726
19727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19729 $as_echo "$ac_header_compiler" >&6; }
19730
19731 # Is the header present?
19732 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
19733 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
19734 cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 #include <uuid/uuid.h>
19741 _ACEOF
19742 if { (ac_try="$ac_cpp conftest.$ac_ext"
19743 case "(($ac_try" in
19744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745   *) ac_try_echo=$ac_try;;
19746 esac
19747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19748 $as_echo "$ac_try_echo") >&5
19749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19750   ac_status=$?
19751   grep -v '^ *+' conftest.er1 >conftest.err
19752   rm -f conftest.er1
19753   cat conftest.err >&5
19754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } >/dev/null && {
19756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19757          test ! -s conftest.err
19758        }; then
19759   ac_header_preproc=yes
19760 else
19761   $as_echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764   ac_header_preproc=no
19765 fi
19766
19767 rm -f conftest.err conftest.$ac_ext
19768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19769 $as_echo "$ac_header_preproc" >&6; }
19770
19771 # So?  What about this header?
19772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19773   yes:no: )
19774     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
19775 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19776     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
19777 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
19778     ac_header_preproc=yes
19779     ;;
19780   no:yes:* )
19781     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
19782 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
19783     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
19784 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
19785     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
19786 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
19787     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
19788 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19789     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
19790 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
19791     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
19792 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
19793
19794     ;;
19795 esac
19796 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19797 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19798 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19799   $as_echo_n "(cached) " >&6
19800 else
19801   ac_cv_header_uuid_uuid_h=$ac_header_preproc
19802 fi
19803 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19804 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19805
19806 fi
19807 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
19808   :
19809 else
19810   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19812 { { $as_echo "$as_me:$LINENO: error:
19813         *** uuid/uuid.h missing, libuuid-devel package required
19814 See \`config.log' for more details." >&5
19815 $as_echo "$as_me: error:
19816         *** uuid/uuid.h missing, libuuid-devel package required
19817 See \`config.log' for more details." >&2;}
19818    { (exit 1); exit 1; }; }; }
19819 fi
19820
19821
19822
19823
19824 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
19825 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
19826 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
19827   $as_echo_n "(cached) " >&6
19828 else
19829   ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-luuid  $LIBS"
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837
19838 /* Override any GCC internal prototype to avoid an error.
19839    Use char because int might match the return type of a GCC
19840    builtin and then its argument prototype would still apply.  */
19841 #ifdef __cplusplus
19842 extern "C"
19843 #endif
19844 char uuid_generate ();
19845 int
19846 main ()
19847 {
19848 return uuid_generate ();
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19860 $as_echo "$ac_try_echo") >&5
19861   (eval "$ac_link") 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } && {
19868          test -z "$ac_c_werror_flag" ||
19869          test ! -s conftest.err
19870        } && test -s conftest$ac_exeext && {
19871          test "$cross_compiling" = yes ||
19872          $as_test_x conftest$ac_exeext
19873        }; then
19874   ac_cv_lib_uuid_uuid_generate=yes
19875 else
19876   $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879         ac_cv_lib_uuid_uuid_generate=no
19880 fi
19881
19882 rm -rf conftest.dSYM
19883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19884       conftest$ac_exeext conftest.$ac_ext
19885 LIBS=$ac_check_lib_save_LIBS
19886 fi
19887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
19888 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19889 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
19890   cat >>confdefs.h <<_ACEOF
19891 #define HAVE_LIBUUID 1
19892 _ACEOF
19893
19894   LIBS="-luuid $LIBS"
19895
19896 else
19897   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19899 { { $as_echo "$as_me:$LINENO: error:
19900         *** uuid_generate() missing, libuuid-devel package required
19901 See \`config.log' for more details." >&5
19902 $as_echo "$as_me: error:
19903         *** uuid_generate() missing, libuuid-devel package required
19904 See \`config.log' for more details." >&2;}
19905    { (exit 1); exit 1; }; }; }
19906 fi
19907
19908
19909
19910 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
19911 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
19912 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
19913   $as_echo_n "(cached) " >&6
19914 else
19915   ac_check_lib_save_LIBS=$LIBS
19916 LIBS="-luuid  $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
19925    Use char because int might match the return type of a GCC
19926    builtin and then its argument prototype would still apply.  */
19927 #ifdef __cplusplus
19928 extern "C"
19929 #endif
19930 char uuid_is_null ();
19931 int
19932 main ()
19933 {
19934 return uuid_is_null ();
19935   ;
19936   return 0;
19937 }
19938 _ACEOF
19939 rm -f conftest.$ac_objext conftest$ac_exeext
19940 if { (ac_try="$ac_link"
19941 case "(($ac_try" in
19942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943   *) ac_try_echo=$ac_try;;
19944 esac
19945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19946 $as_echo "$ac_try_echo") >&5
19947   (eval "$ac_link") 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } && {
19954          test -z "$ac_c_werror_flag" ||
19955          test ! -s conftest.err
19956        } && test -s conftest$ac_exeext && {
19957          test "$cross_compiling" = yes ||
19958          $as_test_x conftest$ac_exeext
19959        }; then
19960   ac_cv_lib_uuid_uuid_is_null=yes
19961 else
19962   $as_echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19964
19965         ac_cv_lib_uuid_uuid_is_null=no
19966 fi
19967
19968 rm -rf conftest.dSYM
19969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19970       conftest$ac_exeext conftest.$ac_ext
19971 LIBS=$ac_check_lib_save_LIBS
19972 fi
19973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
19974 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
19975 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
19976   cat >>confdefs.h <<_ACEOF
19977 #define HAVE_LIBUUID 1
19978 _ACEOF
19979
19980   LIBS="-luuid $LIBS"
19981
19982 else
19983   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19985 { { $as_echo "$as_me:$LINENO: error:
19986         *** uuid_is_null() missing, libuuid-devel package required
19987 See \`config.log' for more details." >&5
19988 $as_echo "$as_me: error:
19989         *** uuid_is_null() missing, libuuid-devel package required
19990 See \`config.log' for more details." >&2;}
19991    { (exit 1); exit 1; }; }; }
19992 fi
19993
19994
19995         LIBUUID="-luuid"
19996
19997
19998 cat >>confdefs.h <<\_ACEOF
19999 #define HAVE_LIBUUID 1
20000 _ACEOF
20001
20002
20003
20004
20005 # Check whether --with-blkid was given.
20006 if test "${with_blkid+set}" = set; then
20007   withval=$with_blkid;
20008 else
20009   with_blkid=check
20010 fi
20011
20012
20013         LIBBLKID=
20014         if test "x$with_blkid" != xno; then
20015
20016                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
20017 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
20018 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
20019   $as_echo_n "(cached) " >&6
20020 else
20021   ac_check_lib_save_LIBS=$LIBS
20022 LIBS="-lblkid  $LIBS"
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029
20030 /* Override any GCC internal prototype to avoid an error.
20031    Use char because int might match the return type of a GCC
20032    builtin and then its argument prototype would still apply.  */
20033 #ifdef __cplusplus
20034 extern "C"
20035 #endif
20036 char blkid_get_cache ();
20037 int
20038 main ()
20039 {
20040 return blkid_get_cache ();
20041   ;
20042   return 0;
20043 }
20044 _ACEOF
20045 rm -f conftest.$ac_objext conftest$ac_exeext
20046 if { (ac_try="$ac_link"
20047 case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20052 $as_echo "$ac_try_echo") >&5
20053   (eval "$ac_link") 2>conftest.er1
20054   ac_status=$?
20055   grep -v '^ *+' conftest.er1 >conftest.err
20056   rm -f conftest.er1
20057   cat conftest.err >&5
20058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } && {
20060          test -z "$ac_c_werror_flag" ||
20061          test ! -s conftest.err
20062        } && test -s conftest$ac_exeext && {
20063          test "$cross_compiling" = yes ||
20064          $as_test_x conftest$ac_exeext
20065        }; then
20066   ac_cv_lib_blkid_blkid_get_cache=yes
20067 else
20068   $as_echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20070
20071         ac_cv_lib_blkid_blkid_get_cache=no
20072 fi
20073
20074 rm -rf conftest.dSYM
20075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20076       conftest$ac_exeext conftest.$ac_ext
20077 LIBS=$ac_check_lib_save_LIBS
20078 fi
20079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
20080 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
20081 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
20082
20083                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
20084 $as_echo_n "checking for blkid zfs support... " >&6; }
20085
20086                         ZFS_DEV=`mktemp`
20087                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
20088                                 >/dev/null 2>/dev/null
20089                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
20090                                 dd of=$ZFS_DEV bs=1k count=8 \
20091                                 seek=132 conv=notrunc &>/dev/null \
20092                                 >/dev/null 2>/dev/null
20093
20094                         saved_LDFLAGS="$LDFLAGS"
20095                         LDFLAGS="-lblkid"
20096
20097                         if test "$cross_compiling" = yes; then
20098   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20100 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20101 See \`config.log' for more details." >&5
20102 $as_echo "$as_me: error: cannot run test program while cross compiling
20103 See \`config.log' for more details." >&2;}
20104    { (exit 1); exit 1; }; }; }
20105 else
20106   cat >conftest.$ac_ext <<_ACEOF
20107 /* confdefs.h.  */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h.  */
20112
20113                                 #include <stdio.h>
20114                                 #include <blkid/blkid.h>
20115
20116 int
20117 main ()
20118 {
20119
20120                                 blkid_cache cache;
20121                                 char *value;
20122
20123                                 if (blkid_get_cache(&cache, NULL) < 0)
20124                                         return 1;
20125
20126                                 value = blkid_get_tag_value(cache, "TYPE",
20127                                                             "$ZFS_DEV");
20128                                 if (!value) {
20129                                         blkid_put_cache(cache);
20130                                         return 2;
20131                                 }
20132
20133                                 if (strcmp(value, "zfs")) {
20134                                         free(value);
20135                                         blkid_put_cache(cache);
20136                                         return 3;
20137                                 }
20138
20139                                 free(value);
20140                                 blkid_put_cache(cache);
20141
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 rm -f conftest$ac_exeext
20147 if { (ac_try="$ac_link"
20148 case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20153 $as_echo "$ac_try_echo") >&5
20154   (eval "$ac_link") 2>&5
20155   ac_status=$?
20156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20158   { (case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20163 $as_echo "$ac_try_echo") >&5
20164   (eval "$ac_try") 2>&5
20165   ac_status=$?
20166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; }; then
20168
20169                                 rm -f $ZFS_DEV
20170                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20171 $as_echo "yes" >&6; }
20172                                 LIBBLKID="-lblkid"
20173
20174
20175 cat >>confdefs.h <<\_ACEOF
20176 #define HAVE_LIBBLKID 1
20177 _ACEOF
20178
20179
20180 else
20181   $as_echo "$as_me: program exited with status $ac_status" >&5
20182 $as_echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20184
20185 ( exit $ac_status )
20186
20187                                 rm -f $ZFS_DEV
20188                                 { $as_echo "$as_me:$LINENO: result: no" >&5
20189 $as_echo "no" >&6; }
20190                                 if test "x$with_blkid" != xcheck; then
20191   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20193 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
20194 See \`config.log' for more details." >&5
20195 $as_echo "$as_me: error: --with-blkid given but unavailable
20196 See \`config.log' for more details." >&2;}
20197    { (exit 1); exit 1; }; }; }
20198 fi
20199
20200
20201 fi
20202 rm -rf conftest.dSYM
20203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20204 fi
20205
20206
20207
20208                         LDFLAGS="$saved_LDFLAGS"
20209
20210 else
20211
20212                         if test "x$with_blkid" != xcheck; then
20213   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20215 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
20216 See \`config.log' for more details." >&5
20217 $as_echo "$as_me: error: --with-blkid given but unavailable
20218 See \`config.log' for more details." >&2;}
20219    { (exit 1); exit 1; }; }; }
20220 fi
20221
20222
20223
20224 fi
20225
20226
20227 fi
20228
20229
20230
20231
20232 # Check whether --with-selinux was given.
20233 if test "${with_selinux+set}" = set; then
20234   withval=$with_selinux;
20235 else
20236   with_selinux=check
20237 fi
20238
20239
20240         LIBSELINUX=
20241         if test "x$with_selinux" != xno; then
20242
20243                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
20244   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
20245 $as_echo_n "checking for selinux/selinux.h... " >&6; }
20246 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
20247   $as_echo_n "(cached) " >&6
20248 fi
20249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
20250 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
20251 else
20252   # Is the header compilable?
20253 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
20254 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261 $ac_includes_default
20262 #include <selinux/selinux.h>
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268   *) ac_try_echo=$ac_try;;
20269 esac
20270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20271 $as_echo "$ac_try_echo") >&5
20272   (eval "$ac_compile") 2>conftest.er1
20273   ac_status=$?
20274   grep -v '^ *+' conftest.er1 >conftest.err
20275   rm -f conftest.er1
20276   cat conftest.err >&5
20277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); } && {
20279          test -z "$ac_c_werror_flag" ||
20280          test ! -s conftest.err
20281        } && test -s conftest.$ac_objext; then
20282   ac_header_compiler=yes
20283 else
20284   $as_echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287         ac_header_compiler=no
20288 fi
20289
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20292 $as_echo "$ac_header_compiler" >&6; }
20293
20294 # Is the header present?
20295 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
20296 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 #include <selinux/selinux.h>
20304 _ACEOF
20305 if { (ac_try="$ac_cpp conftest.$ac_ext"
20306 case "(($ac_try" in
20307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308   *) ac_try_echo=$ac_try;;
20309 esac
20310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20311 $as_echo "$ac_try_echo") >&5
20312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20313   ac_status=$?
20314   grep -v '^ *+' conftest.er1 >conftest.err
20315   rm -f conftest.er1
20316   cat conftest.err >&5
20317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); } >/dev/null && {
20319          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20320          test ! -s conftest.err
20321        }; then
20322   ac_header_preproc=yes
20323 else
20324   $as_echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327   ac_header_preproc=no
20328 fi
20329
20330 rm -f conftest.err conftest.$ac_ext
20331 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20332 $as_echo "$ac_header_preproc" >&6; }
20333
20334 # So?  What about this header?
20335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20336   yes:no: )
20337     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
20338 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20339     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
20340 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
20341     ac_header_preproc=yes
20342     ;;
20343   no:yes:* )
20344     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
20345 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
20346     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
20347 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
20348     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
20349 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
20350     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
20351 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20352     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
20353 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
20354     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
20355 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
20356
20357     ;;
20358 esac
20359 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
20360 $as_echo_n "checking for selinux/selinux.h... " >&6; }
20361 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
20362   $as_echo_n "(cached) " >&6
20363 else
20364   ac_cv_header_selinux_selinux_h=$ac_header_preproc
20365 fi
20366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
20367 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
20368
20369 fi
20370 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
20371
20372                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
20373 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
20374 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
20375   $as_echo_n "(cached) " >&6
20376 else
20377   ac_check_lib_save_LIBS=$LIBS
20378 LIBS="-lselinux  $LIBS"
20379 cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386 /* Override any GCC internal prototype to avoid an error.
20387    Use char because int might match the return type of a GCC
20388    builtin and then its argument prototype would still apply.  */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char is_selinux_enabled ();
20393 int
20394 main ()
20395 {
20396 return is_selinux_enabled ();
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20408 $as_echo "$ac_try_echo") >&5
20409   (eval "$ac_link") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } && {
20416          test -z "$ac_c_werror_flag" ||
20417          test ! -s conftest.err
20418        } && test -s conftest$ac_exeext && {
20419          test "$cross_compiling" = yes ||
20420          $as_test_x conftest$ac_exeext
20421        }; then
20422   ac_cv_lib_selinux_is_selinux_enabled=yes
20423 else
20424   $as_echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_cv_lib_selinux_is_selinux_enabled=no
20428 fi
20429
20430 rm -rf conftest.dSYM
20431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20432       conftest$ac_exeext conftest.$ac_ext
20433 LIBS=$ac_check_lib_save_LIBS
20434 fi
20435 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
20436 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
20437 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
20438
20439                                 LIBSELINUX="-lselinux"
20440
20441
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_LIBSELINUX 1
20444 _ACEOF
20445
20446
20447 else
20448
20449                                 if test "x$with_selinux" != xcheck; then
20450   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20452 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
20453 See \`config.log' for more details." >&5
20454 $as_echo "$as_me: error: --with-selinux given but unavailable
20455 See \`config.log' for more details." >&2;}
20456    { (exit 1); exit 1; }; }; }
20457
20458 fi
20459
20460
20461 fi
20462
20463
20464 else
20465
20466                         if test "x$with_selinux" != xcheck; then
20467   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20469 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
20470 See \`config.log' for more details." >&5
20471 $as_echo "$as_me: error: --with-selinux given but unavailable
20472 See \`config.log' for more details." >&2;}
20473    { (exit 1); exit 1; }; }; }
20474
20475 fi
20476
20477
20478 fi
20479
20480
20481
20482 else
20483
20484                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
20485 $as_echo_n "checking for selinux support... " >&6; }
20486                 { $as_echo "$as_me:$LINENO: result: no" >&5
20487 $as_echo "no" >&6; }
20488
20489 fi
20490
20491
20492
20493         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
20494 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
20495
20496         saved_flags="$CFLAGS"
20497         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
20498
20499         if test "$cross_compiling" = yes; then
20500   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20502 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20503 See \`config.log' for more details." >&5
20504 $as_echo "$as_me: error: cannot run test program while cross compiling
20505 See \`config.log' for more details." >&2;}
20506    { (exit 1); exit 1; }; }; }
20507 else
20508   cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514
20515 int
20516 main ()
20517 {
20518
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 rm -f conftest$ac_exeext
20524 if { (ac_try="$ac_link"
20525 case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20530 $as_echo "$ac_try_echo") >&5
20531   (eval "$ac_link") 2>&5
20532   ac_status=$?
20533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20535   { (case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20540 $as_echo "$ac_try_echo") >&5
20541   (eval "$ac_try") 2>&5
20542   ac_status=$?
20543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); }; }; then
20545
20546                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
20547                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20548 $as_echo "yes" >&6; }
20549
20550 else
20551   $as_echo "$as_me: program exited with status $ac_status" >&5
20552 $as_echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555 ( exit $ac_status )
20556
20557                 FRAME_LARGER_THAN=
20558                 { $as_echo "$as_me:$LINENO: result: no" >&5
20559 $as_echo "no" >&6; }
20560
20561 fi
20562 rm -rf conftest.dSYM
20563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20564 fi
20565
20566
20567
20568         CFLAGS="$saved_flags"
20569
20570
20571
20572
20573         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
20574 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
20575
20576         saved_CFLAGS="$CFLAGS"
20577         CFLAGS="-fstack-check"
20578         saved_LDFLAGS="$LDFLAGS"
20579         LDFLAGS="-lpthread"
20580
20581         if test "$cross_compiling" = yes; then
20582   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20584 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20585 See \`config.log' for more details." >&5
20586 $as_echo "$as_me: error: cannot run test program while cross compiling
20587 See \`config.log' for more details." >&2;}
20588    { (exit 1); exit 1; }; }; }
20589 else
20590   cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h.  */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h.  */
20596
20597                 #include <pthread.h>
20598                 #include <sys/resource.h>
20599                 #include <unistd.h>
20600                 #include <bits/local_lim.h>
20601
20602                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
20603                 #define STACK_SIZE 8192
20604                 #define BUFSIZE 4096
20605
20606                 void * func(void *arg)
20607                 {
20608                         char buf[BUFSIZE];
20609                 }
20610
20611 int
20612 main ()
20613 {
20614
20615                 pthread_t tid;
20616                 pthread_attr_t attr;
20617                 struct rlimit l;
20618
20619                 l.rlim_cur = 0;
20620                 l.rlim_max = 0;
20621                 setrlimit(RLIMIT_CORE, &l);
20622                 pthread_attr_init(&attr);
20623                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
20624                 pthread_attr_setguardsize(&attr, PAGESIZE);
20625                 pthread_create(&tid, &attr, func, NULL);
20626                 pthread_join(tid, NULL);
20627
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest$ac_exeext
20633 if { (ac_try="$ac_link"
20634 case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20639 $as_echo "$ac_try_echo") >&5
20640   (eval "$ac_link") 2>&5
20641   ac_status=$?
20642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20649 $as_echo "$ac_try_echo") >&5
20650   (eval "$ac_try") 2>&5
20651   ac_status=$?
20652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; }; then
20654
20655                 { $as_echo "$as_me:$LINENO: result: no" >&5
20656 $as_echo "no" >&6; }
20657
20658 else
20659   $as_echo "$as_me: program exited with status $ac_status" >&5
20660 $as_echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 ( exit $ac_status )
20664
20665
20666 cat >>confdefs.h <<\_ACEOF
20667 #define NPTL_GUARD_WITHIN_STACK 1
20668 _ACEOF
20669
20670                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20671 $as_echo "yes" >&6; }
20672
20673 fi
20674 rm -rf conftest.dSYM
20675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20676 fi
20677
20678
20679         CFLAGS="$saved_CFLAGS"
20680         LDFLAGS="$saved_LDFLAGS"
20681
20682    ;;
20683                 srpm)                        ;;
20684                 *)
20685                 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20686 $as_echo "Error!" >&6; }
20687                 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20688                               user kernel|user|all|srpm" >&5
20689 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20690                               user kernel|user|all|srpm" >&2;}
20691    { (exit 1); exit 1; }; } ;;
20692         esac
20693
20694          if test "$ZFS_CONFIG" = user ||
20695                        test "$ZFS_CONFIG" = all; then
20696   CONFIG_USER_TRUE=
20697   CONFIG_USER_FALSE='#'
20698 else
20699   CONFIG_USER_TRUE='#'
20700   CONFIG_USER_FALSE=
20701 fi
20702
20703          if test "$ZFS_CONFIG" = kernel ||
20704                        test "$ZFS_CONFIG" = all; then
20705   CONFIG_KERNEL_TRUE=
20706   CONFIG_KERNEL_FALSE='#'
20707 else
20708   CONFIG_KERNEL_TRUE='#'
20709   CONFIG_KERNEL_FALSE=
20710 fi
20711
20712
20713
20714         { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
20715 $as_echo_n "checking whether debugging is enabled... " >&6; }
20716         # Check whether --enable-debug was given.
20717 if test "${enable_debug+set}" = set; then
20718   enableval=$enable_debug;
20719 else
20720   enable_debug=no
20721 fi
20722
20723
20724         if test "x$enable_debug" = xyes; then
20725
20726                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
20727                 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
20728                 DEBUG_CFLAGS="-DDEBUG -Werror"
20729                 DEBUG_STACKFLAGS="-fstack-check"
20730
20731 else
20732
20733                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
20734                 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
20735                 DEBUG_CFLAGS="-DNDEBUG"
20736                 DEBUG_STACKFLAGS=""
20737
20738 fi
20739
20740
20741
20742
20743         { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
20744 $as_echo "$enable_debug" >&6; }
20745
20746
20747 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/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"
20748
20749
20750 cat >confcache <<\_ACEOF
20751 # This file is a shell script that caches the results of configure
20752 # tests run on this system so they can be shared between configure
20753 # scripts and configure runs, see configure's option --config-cache.
20754 # It is not useful on other systems.  If it contains results you don't
20755 # want to keep, you may remove or edit it.
20756 #
20757 # config.status only pays attention to the cache file if you give it
20758 # the --recheck option to rerun configure.
20759 #
20760 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20761 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20762 # following values.
20763
20764 _ACEOF
20765
20766 # The following way of writing the cache mishandles newlines in values,
20767 # but we know of no workaround that is simple, portable, and efficient.
20768 # So, we kill variables containing newlines.
20769 # Ultrix sh set writes to stderr and can't be redirected directly,
20770 # and sets the high bit in the cache file unless we assign to the vars.
20771 (
20772   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20773     eval ac_val=\$$ac_var
20774     case $ac_val in #(
20775     *${as_nl}*)
20776       case $ac_var in #(
20777       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20778 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20779       esac
20780       case $ac_var in #(
20781       _ | IFS | as_nl) ;; #(
20782       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20783       *) $as_unset $ac_var ;;
20784       esac ;;
20785     esac
20786   done
20787
20788   (set) 2>&1 |
20789     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20790     *${as_nl}ac_space=\ *)
20791       # `set' does not quote correctly, so add quotes (double-quote
20792       # substitution turns \\\\ into \\, and sed turns \\ into \).
20793       sed -n \
20794         "s/'/'\\\\''/g;
20795           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20796       ;; #(
20797     *)
20798       # `set' quotes correctly as required by POSIX, so do not add quotes.
20799       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20800       ;;
20801     esac |
20802     sort
20803 ) |
20804   sed '
20805      /^ac_cv_env_/b end
20806      t clear
20807      :clear
20808      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20809      t end
20810      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20811      :end' >>confcache
20812 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20813   if test -w "$cache_file"; then
20814     test "x$cache_file" != "x/dev/null" &&
20815       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20816 $as_echo "$as_me: updating cache $cache_file" >&6;}
20817     cat confcache >$cache_file
20818   else
20819     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20820 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20821   fi
20822 fi
20823 rm -f confcache
20824
20825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20826 # Let make expand exec_prefix.
20827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20828
20829 DEFS=-DHAVE_CONFIG_H
20830
20831 ac_libobjs=
20832 ac_ltlibobjs=
20833 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20834   # 1. Remove the extension, and $U if already installed.
20835   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20836   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20837   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20838   #    will be set to the directory where LIBOBJS objects are built.
20839   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20840   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20841 done
20842 LIBOBJS=$ac_libobjs
20843
20844 LTLIBOBJS=$ac_ltlibobjs
20845
20846
20847 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20848   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20849 Usually this means the macro was only invoked conditionally." >&5
20850 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20851 Usually this means the macro was only invoked conditionally." >&2;}
20852    { (exit 1); exit 1; }; }
20853 fi
20854  if test -n "$EXEEXT"; then
20855   am__EXEEXT_TRUE=
20856   am__EXEEXT_FALSE='#'
20857 else
20858   am__EXEEXT_TRUE='#'
20859   am__EXEEXT_FALSE=
20860 fi
20861
20862 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20863   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20864 Usually this means the macro was only invoked conditionally." >&5
20865 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20866 Usually this means the macro was only invoked conditionally." >&2;}
20867    { (exit 1); exit 1; }; }
20868 fi
20869 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20870   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20871 Usually this means the macro was only invoked conditionally." >&5
20872 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20873 Usually this means the macro was only invoked conditionally." >&2;}
20874    { (exit 1); exit 1; }; }
20875 fi
20876 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20877   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20878 Usually this means the macro was only invoked conditionally." >&5
20879 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20880 Usually this means the macro was only invoked conditionally." >&2;}
20881    { (exit 1); exit 1; }; }
20882 fi
20883 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20884   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20885 Usually this means the macro was only invoked conditionally." >&5
20886 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20887 Usually this means the macro was only invoked conditionally." >&2;}
20888    { (exit 1); exit 1; }; }
20889 fi
20890 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20891   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20892 Usually this means the macro was only invoked conditionally." >&5
20893 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20894 Usually this means the macro was only invoked conditionally." >&2;}
20895    { (exit 1); exit 1; }; }
20896 fi
20897
20898 : ${CONFIG_STATUS=./config.status}
20899 ac_write_fail=0
20900 ac_clean_files_save=$ac_clean_files
20901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20902 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20903 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20904 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20905 #! $SHELL
20906 # Generated by $as_me.
20907 # Run this file to recreate the current configuration.
20908 # Compiler output produced by configure, useful for debugging
20909 # configure, is in config.log if it exists.
20910
20911 debug=false
20912 ac_cs_recheck=false
20913 ac_cs_silent=false
20914 SHELL=\${CONFIG_SHELL-$SHELL}
20915 _ACEOF
20916
20917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20918 ## --------------------- ##
20919 ## M4sh Initialization.  ##
20920 ## --------------------- ##
20921
20922 # Be more Bourne compatible
20923 DUALCASE=1; export DUALCASE # for MKS sh
20924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20925   emulate sh
20926   NULLCMD=:
20927   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20928   # is contrary to our usage.  Disable this feature.
20929   alias -g '${1+"$@"}'='"$@"'
20930   setopt NO_GLOB_SUBST
20931 else
20932   case `(set -o) 2>/dev/null` in
20933   *posix*) set -o posix ;;
20934 esac
20935
20936 fi
20937
20938
20939
20940
20941 # PATH needs CR
20942 # Avoid depending upon Character Ranges.
20943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20946 as_cr_digits='0123456789'
20947 as_cr_alnum=$as_cr_Letters$as_cr_digits
20948
20949 as_nl='
20950 '
20951 export as_nl
20952 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20953 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20954 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20956 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20957   as_echo='printf %s\n'
20958   as_echo_n='printf %s'
20959 else
20960   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20961     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20962     as_echo_n='/usr/ucb/echo -n'
20963   else
20964     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20965     as_echo_n_body='eval
20966       arg=$1;
20967       case $arg in
20968       *"$as_nl"*)
20969         expr "X$arg" : "X\\(.*\\)$as_nl";
20970         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20971       esac;
20972       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20973     '
20974     export as_echo_n_body
20975     as_echo_n='sh -c $as_echo_n_body as_echo'
20976   fi
20977   export as_echo_body
20978   as_echo='sh -c $as_echo_body as_echo'
20979 fi
20980
20981 # The user is always right.
20982 if test "${PATH_SEPARATOR+set}" != set; then
20983   PATH_SEPARATOR=:
20984   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20985     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20986       PATH_SEPARATOR=';'
20987   }
20988 fi
20989
20990 # Support unset when possible.
20991 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20992   as_unset=unset
20993 else
20994   as_unset=false
20995 fi
20996
20997
20998 # IFS
20999 # We need space, tab and new line, in precisely that order.  Quoting is
21000 # there to prevent editors from complaining about space-tab.
21001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21002 # splitting by setting IFS to empty value.)
21003 IFS=" ""        $as_nl"
21004
21005 # Find who we are.  Look in the path if we contain no directory separator.
21006 case $0 in
21007   *[\\/]* ) as_myself=$0 ;;
21008   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21009 for as_dir in $PATH
21010 do
21011   IFS=$as_save_IFS
21012   test -z "$as_dir" && as_dir=.
21013   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21014 done
21015 IFS=$as_save_IFS
21016
21017      ;;
21018 esac
21019 # We did not find ourselves, most probably we were run as `sh COMMAND'
21020 # in which case we are not to be found in the path.
21021 if test "x$as_myself" = x; then
21022   as_myself=$0
21023 fi
21024 if test ! -f "$as_myself"; then
21025   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21026   { (exit 1); exit 1; }
21027 fi
21028
21029 # Work around bugs in pre-3.0 UWIN ksh.
21030 for as_var in ENV MAIL MAILPATH
21031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21032 done
21033 PS1='$ '
21034 PS2='> '
21035 PS4='+ '
21036
21037 # NLS nuisances.
21038 LC_ALL=C
21039 export LC_ALL
21040 LANGUAGE=C
21041 export LANGUAGE
21042
21043 # Required to use basename.
21044 if expr a : '\(a\)' >/dev/null 2>&1 &&
21045    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21046   as_expr=expr
21047 else
21048   as_expr=false
21049 fi
21050
21051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21052   as_basename=basename
21053 else
21054   as_basename=false
21055 fi
21056
21057
21058 # Name of the executable.
21059 as_me=`$as_basename -- "$0" ||
21060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21061          X"$0" : 'X\(//\)$' \| \
21062          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21063 $as_echo X/"$0" |
21064     sed '/^.*\/\([^/][^/]*\)\/*$/{
21065             s//\1/
21066             q
21067           }
21068           /^X\/\(\/\/\)$/{
21069             s//\1/
21070             q
21071           }
21072           /^X\/\(\/\).*/{
21073             s//\1/
21074             q
21075           }
21076           s/.*/./; q'`
21077
21078 # CDPATH.
21079 $as_unset CDPATH
21080
21081
21082
21083   as_lineno_1=$LINENO
21084   as_lineno_2=$LINENO
21085   test "x$as_lineno_1" != "x$as_lineno_2" &&
21086   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21087
21088   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21089   # uniformly replaced by the line number.  The first 'sed' inserts a
21090   # line-number line after each line using $LINENO; the second 'sed'
21091   # does the real work.  The second script uses 'N' to pair each
21092   # line-number line with the line containing $LINENO, and appends
21093   # trailing '-' during substitution so that $LINENO is not a special
21094   # case at line end.
21095   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21096   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21097   # E. McMahon (1931-1989) for sed's syntax.  :-)
21098   sed -n '
21099     p
21100     /[$]LINENO/=
21101   ' <$as_myself |
21102     sed '
21103       s/[$]LINENO.*/&-/
21104       t lineno
21105       b
21106       :lineno
21107       N
21108       :loop
21109       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21110       t loop
21111       s/-\n.*//
21112     ' >$as_me.lineno &&
21113   chmod +x "$as_me.lineno" ||
21114     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21115    { (exit 1); exit 1; }; }
21116
21117   # Don't try to exec as it changes $[0], causing all sort of problems
21118   # (the dirname of $[0] is not the place where we might find the
21119   # original and so on.  Autoconf is especially sensitive to this).
21120   . "./$as_me.lineno"
21121   # Exit status is that of the last command.
21122   exit
21123 }
21124
21125
21126 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21127   as_dirname=dirname
21128 else
21129   as_dirname=false
21130 fi
21131
21132 ECHO_C= ECHO_N= ECHO_T=
21133 case `echo -n x` in
21134 -n*)
21135   case `echo 'x\c'` in
21136   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21137   *)   ECHO_C='\c';;
21138   esac;;
21139 *)
21140   ECHO_N='-n';;
21141 esac
21142 if expr a : '\(a\)' >/dev/null 2>&1 &&
21143    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21144   as_expr=expr
21145 else
21146   as_expr=false
21147 fi
21148
21149 rm -f conf$$ conf$$.exe conf$$.file
21150 if test -d conf$$.dir; then
21151   rm -f conf$$.dir/conf$$.file
21152 else
21153   rm -f conf$$.dir
21154   mkdir conf$$.dir 2>/dev/null
21155 fi
21156 if (echo >conf$$.file) 2>/dev/null; then
21157   if ln -s conf$$.file conf$$ 2>/dev/null; then
21158     as_ln_s='ln -s'
21159     # ... but there are two gotchas:
21160     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21161     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21162     # In both cases, we have to default to `cp -p'.
21163     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21164       as_ln_s='cp -p'
21165   elif ln conf$$.file conf$$ 2>/dev/null; then
21166     as_ln_s=ln
21167   else
21168     as_ln_s='cp -p'
21169   fi
21170 else
21171   as_ln_s='cp -p'
21172 fi
21173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21174 rmdir conf$$.dir 2>/dev/null
21175
21176 if mkdir -p . 2>/dev/null; then
21177   as_mkdir_p=:
21178 else
21179   test -d ./-p && rmdir ./-p
21180   as_mkdir_p=false
21181 fi
21182
21183 if test -x / >/dev/null 2>&1; then
21184   as_test_x='test -x'
21185 else
21186   if ls -dL / >/dev/null 2>&1; then
21187     as_ls_L_option=L
21188   else
21189     as_ls_L_option=
21190   fi
21191   as_test_x='
21192     eval sh -c '\''
21193       if test -d "$1"; then
21194         test -d "$1/.";
21195       else
21196         case $1 in
21197         -*)set "./$1";;
21198         esac;
21199         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21200         ???[sx]*):;;*)false;;esac;fi
21201     '\'' sh
21202   '
21203 fi
21204 as_executable_p=$as_test_x
21205
21206 # Sed expression to map a string onto a valid CPP name.
21207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21208
21209 # Sed expression to map a string onto a valid variable name.
21210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21211
21212
21213 exec 6>&1
21214
21215 # Save the log message, to keep $[0] and so on meaningful, and to
21216 # report actual input values of CONFIG_FILES etc. instead of their
21217 # values after options handling.
21218 ac_log="
21219 This file was extended by $as_me, which was
21220 generated by GNU Autoconf 2.63.  Invocation command line was
21221
21222   CONFIG_FILES    = $CONFIG_FILES
21223   CONFIG_HEADERS  = $CONFIG_HEADERS
21224   CONFIG_LINKS    = $CONFIG_LINKS
21225   CONFIG_COMMANDS = $CONFIG_COMMANDS
21226   $ $0 $@
21227
21228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21229 "
21230
21231 _ACEOF
21232
21233 case $ac_config_files in *"
21234 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21235 esac
21236
21237 case $ac_config_headers in *"
21238 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21239 esac
21240
21241
21242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21243 # Files that config.status was made for.
21244 config_files="$ac_config_files"
21245 config_headers="$ac_config_headers"
21246 config_commands="$ac_config_commands"
21247
21248 _ACEOF
21249
21250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21251 ac_cs_usage="\
21252 \`$as_me' instantiates files from templates according to the
21253 current configuration.
21254
21255 Usage: $0 [OPTION]... [FILE]...
21256
21257   -h, --help       print this help, then exit
21258   -V, --version    print version number and configuration settings, then exit
21259   -q, --quiet, --silent
21260                    do not print progress messages
21261   -d, --debug      don't remove temporary files
21262       --recheck    update $as_me by reconfiguring in the same conditions
21263       --file=FILE[:TEMPLATE]
21264                    instantiate the configuration file FILE
21265       --header=FILE[:TEMPLATE]
21266                    instantiate the configuration header FILE
21267
21268 Configuration files:
21269 $config_files
21270
21271 Configuration headers:
21272 $config_headers
21273
21274 Configuration commands:
21275 $config_commands
21276
21277 Report bugs to <bug-autoconf@gnu.org>."
21278
21279 _ACEOF
21280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21281 ac_cs_version="\\
21282 config.status
21283 configured by $0, generated by GNU Autoconf 2.63,
21284   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21285
21286 Copyright (C) 2008 Free Software Foundation, Inc.
21287 This config.status script is free software; the Free Software Foundation
21288 gives unlimited permission to copy, distribute and modify it."
21289
21290 ac_pwd='$ac_pwd'
21291 srcdir='$srcdir'
21292 INSTALL='$INSTALL'
21293 MKDIR_P='$MKDIR_P'
21294 AWK='$AWK'
21295 test -n "\$AWK" || AWK=awk
21296 _ACEOF
21297
21298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21299 # The default lists apply if the user does not specify any file.
21300 ac_need_defaults=:
21301 while test $# != 0
21302 do
21303   case $1 in
21304   --*=*)
21305     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21306     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21307     ac_shift=:
21308     ;;
21309   *)
21310     ac_option=$1
21311     ac_optarg=$2
21312     ac_shift=shift
21313     ;;
21314   esac
21315
21316   case $ac_option in
21317   # Handling of the options.
21318   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21319     ac_cs_recheck=: ;;
21320   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21321     $as_echo "$ac_cs_version"; exit ;;
21322   --debug | --debu | --deb | --de | --d | -d )
21323     debug=: ;;
21324   --file | --fil | --fi | --f )
21325     $ac_shift
21326     case $ac_optarg in
21327     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21328     esac
21329     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21330     ac_need_defaults=false;;
21331   --header | --heade | --head | --hea )
21332     $ac_shift
21333     case $ac_optarg in
21334     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21335     esac
21336     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21337     ac_need_defaults=false;;
21338   --he | --h)
21339     # Conflict between --help and --header
21340     { $as_echo "$as_me: error: ambiguous option: $1
21341 Try \`$0 --help' for more information." >&2
21342    { (exit 1); exit 1; }; };;
21343   --help | --hel | -h )
21344     $as_echo "$ac_cs_usage"; exit ;;
21345   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21346   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21347     ac_cs_silent=: ;;
21348
21349   # This is an error.
21350   -*) { $as_echo "$as_me: error: unrecognized option: $1
21351 Try \`$0 --help' for more information." >&2
21352    { (exit 1); exit 1; }; } ;;
21353
21354   *) ac_config_targets="$ac_config_targets $1"
21355      ac_need_defaults=false ;;
21356
21357   esac
21358   shift
21359 done
21360
21361 ac_configure_extra_args=
21362
21363 if $ac_cs_silent; then
21364   exec 6>/dev/null
21365   ac_configure_extra_args="$ac_configure_extra_args --silent"
21366 fi
21367
21368 _ACEOF
21369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21370 if \$ac_cs_recheck; then
21371   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21372   shift
21373   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21374   CONFIG_SHELL='$SHELL'
21375   export CONFIG_SHELL
21376   exec "\$@"
21377 fi
21378
21379 _ACEOF
21380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21381 exec 5>>config.log
21382 {
21383   echo
21384   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21385 ## Running $as_me. ##
21386 _ASBOX
21387   $as_echo "$ac_log"
21388 } >&5
21389
21390 _ACEOF
21391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21392 #
21393 # INIT-COMMANDS
21394 #
21395 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21396
21397
21398 # The HP-UX ksh and POSIX shell print the target directory to stdout
21399 # if CDPATH is set.
21400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21401
21402 sed_quote_subst='$sed_quote_subst'
21403 double_quote_subst='$double_quote_subst'
21404 delay_variable_subst='$delay_variable_subst'
21405 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21406 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21407 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21408 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21409 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21410 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21411 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21412 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21413 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21414 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21415 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21416 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21417 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21418 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21419 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21420 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21421 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21422 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21423 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21424 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21425 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21426 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21427 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21428 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21429 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21430 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21431 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21432 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21433 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21434 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21435 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21436 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21437 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21438 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21439 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21440 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21441 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21442 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21443 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21444 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21445 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21446 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21447 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21448 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21449 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"`'
21450 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"`'
21451 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21452 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21453 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21454 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21455 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21456 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21457 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21458 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21459 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21460 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21461 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21462 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21463 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21464 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21465 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21466 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21467 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21468 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21469 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21470 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21471 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21472 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21473 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21474 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21475 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21476 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21477 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21478 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21479 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21480 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21481 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21482 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21483 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21484 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21485 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21486 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21487 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21488 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21489 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21490 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21491 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21492 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21493 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21494 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21495 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21496 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21497 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21498 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21499 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21500 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21501 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21502 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21503 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21504 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21505 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21506 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21507 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21508 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21509 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21510 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21511 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21512 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21513 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21514 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21515 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21516 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21517 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21518 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21519 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21520 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21521 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21522 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21523
21524 LTCC='$LTCC'
21525 LTCFLAGS='$LTCFLAGS'
21526 compiler='$compiler_DEFAULT'
21527
21528 # Quote evaled strings.
21529 for var in SED \
21530 GREP \
21531 EGREP \
21532 FGREP \
21533 LD \
21534 NM \
21535 LN_S \
21536 lt_SP2NL \
21537 lt_NL2SP \
21538 reload_flag \
21539 OBJDUMP \
21540 deplibs_check_method \
21541 file_magic_cmd \
21542 AR \
21543 AR_FLAGS \
21544 STRIP \
21545 RANLIB \
21546 CC \
21547 CFLAGS \
21548 compiler \
21549 lt_cv_sys_global_symbol_pipe \
21550 lt_cv_sys_global_symbol_to_cdecl \
21551 lt_cv_sys_global_symbol_to_c_name_address \
21552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21553 SHELL \
21554 ECHO \
21555 lt_prog_compiler_no_builtin_flag \
21556 lt_prog_compiler_wl \
21557 lt_prog_compiler_pic \
21558 lt_prog_compiler_static \
21559 lt_cv_prog_compiler_c_o \
21560 need_locks \
21561 DSYMUTIL \
21562 NMEDIT \
21563 LIPO \
21564 OTOOL \
21565 OTOOL64 \
21566 shrext_cmds \
21567 export_dynamic_flag_spec \
21568 whole_archive_flag_spec \
21569 compiler_needs_object \
21570 with_gnu_ld \
21571 allow_undefined_flag \
21572 no_undefined_flag \
21573 hardcode_libdir_flag_spec \
21574 hardcode_libdir_flag_spec_ld \
21575 hardcode_libdir_separator \
21576 fix_srcfile_path \
21577 exclude_expsyms \
21578 include_expsyms \
21579 file_list_spec \
21580 variables_saved_for_relink \
21581 libname_spec \
21582 library_names_spec \
21583 soname_spec \
21584 finish_eval \
21585 old_striplib \
21586 striplib; do
21587     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21588     *[\\\\\\\`\\"\\\$]*)
21589       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21590       ;;
21591     *)
21592       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21593       ;;
21594     esac
21595 done
21596
21597 # Double-quote double-evaled strings.
21598 for var in reload_cmds \
21599 old_postinstall_cmds \
21600 old_postuninstall_cmds \
21601 old_archive_cmds \
21602 extract_expsyms_cmds \
21603 old_archive_from_new_cmds \
21604 old_archive_from_expsyms_cmds \
21605 archive_cmds \
21606 archive_expsym_cmds \
21607 module_cmds \
21608 module_expsym_cmds \
21609 export_symbols_cmds \
21610 prelink_cmds \
21611 postinstall_cmds \
21612 postuninstall_cmds \
21613 finish_cmds \
21614 sys_lib_search_path_spec \
21615 sys_lib_dlsearch_path_spec; do
21616     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21617     *[\\\\\\\`\\"\\\$]*)
21618       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21619       ;;
21620     *)
21621       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21622       ;;
21623     esac
21624 done
21625
21626 # Fix-up fallback echo if it was mangled by the above quoting rules.
21627 case \$lt_ECHO in
21628 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21629   ;;
21630 esac
21631
21632 ac_aux_dir='$ac_aux_dir'
21633 xsi_shell='$xsi_shell'
21634 lt_shell_append='$lt_shell_append'
21635
21636 # See if we are running on zsh, and set the options which allow our
21637 # commands through without removal of \ escapes INIT.
21638 if test -n "\${ZSH_VERSION+set}" ; then
21639    setopt NO_GLOB_SUBST
21640 fi
21641
21642
21643     PACKAGE='$PACKAGE'
21644     VERSION='$VERSION'
21645     TIMESTAMP='$TIMESTAMP'
21646     RM='$RM'
21647     ofile='$ofile'
21648
21649
21650
21651
21652 _ACEOF
21653
21654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21655
21656 # Handling of arguments.
21657 for ac_config_target in $ac_config_targets
21658 do
21659   case $ac_config_target in
21660     "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
21661     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21662     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21663     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21664     "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
21665     "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
21666     "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
21667     "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
21668     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
21669     "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
21670     "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
21671     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21672     "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21673     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21674     "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
21675     "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
21676     "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
21677     "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
21678     "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
21679     "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
21680     "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
21681     "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
21682     "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
21683     "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
21684     "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
21685     "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
21686     "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
21687     "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
21688     "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
21689     "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
21690     "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
21691     "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
21692     "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
21693     "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
21694     "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21695     "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
21696     "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
21697     "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
21698     "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
21699     "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
21700     "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
21701     "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
21702     "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
21703     "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
21704     "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
21705     "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
21706     "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21707     "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
21708     "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
21709     "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
21710     "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
21711     "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
21712     "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
21713     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21714     "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
21715     "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
21716     "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
21717     "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
21718     "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
21719     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21720     "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
21721     "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
21722     "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
21723     "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
21724     "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
21725     "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
21726     "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
21727     "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
21728
21729   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21730 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21731    { (exit 1); exit 1; }; };;
21732   esac
21733 done
21734
21735
21736 # If the user did not use the arguments to specify the items to instantiate,
21737 # then the envvar interface is used.  Set only those that are not.
21738 # We use the long form for the default assignment because of an extremely
21739 # bizarre bug on SunOS 4.1.3.
21740 if $ac_need_defaults; then
21741   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21742   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21743   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21744 fi
21745
21746 # Have a temporary directory for convenience.  Make it in the build tree
21747 # simply because there is no reason against having it here, and in addition,
21748 # creating and moving files from /tmp can sometimes cause problems.
21749 # Hook for its removal unless debugging.
21750 # Note that there is a small window in which the directory will not be cleaned:
21751 # after its creation but before its name has been assigned to `$tmp'.
21752 $debug ||
21753 {
21754   tmp=
21755   trap 'exit_status=$?
21756   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21757 ' 0
21758   trap '{ (exit 1); exit 1; }' 1 2 13 15
21759 }
21760 # Create a (secure) tmp directory for tmp files.
21761
21762 {
21763   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21764   test -n "$tmp" && test -d "$tmp"
21765 }  ||
21766 {
21767   tmp=./conf$$-$RANDOM
21768   (umask 077 && mkdir "$tmp")
21769 } ||
21770 {
21771    $as_echo "$as_me: cannot create a temporary directory in ." >&2
21772    { (exit 1); exit 1; }
21773 }
21774
21775 # Set up the scripts for CONFIG_FILES section.
21776 # No need to generate them if there are no CONFIG_FILES.
21777 # This happens for instance with `./config.status config.h'.
21778 if test -n "$CONFIG_FILES"; then
21779
21780
21781 ac_cr='\r'
21782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21784   ac_cs_awk_cr='\\r'
21785 else
21786   ac_cs_awk_cr=$ac_cr
21787 fi
21788
21789 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21790 _ACEOF
21791
21792
21793 {
21794   echo "cat >conf$$subs.awk <<_ACEOF" &&
21795   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21796   echo "_ACEOF"
21797 } >conf$$subs.sh ||
21798   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21799 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21800    { (exit 1); exit 1; }; }
21801 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21802 ac_delim='%!_!# '
21803 for ac_last_try in false false false false false :; do
21804   . ./conf$$subs.sh ||
21805     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21806 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21807    { (exit 1); exit 1; }; }
21808
21809   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21810   if test $ac_delim_n = $ac_delim_num; then
21811     break
21812   elif $ac_last_try; then
21813     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21814 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21815    { (exit 1); exit 1; }; }
21816   else
21817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21818   fi
21819 done
21820 rm -f conf$$subs.sh
21821
21822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21823 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21824 _ACEOF
21825 sed -n '
21826 h
21827 s/^/S["/; s/!.*/"]=/
21828 p
21829 g
21830 s/^[^!]*!//
21831 :repl
21832 t repl
21833 s/'"$ac_delim"'$//
21834 t delim
21835 :nl
21836 h
21837 s/\(.\{148\}\).*/\1/
21838 t more1
21839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21840 p
21841 n
21842 b repl
21843 :more1
21844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21845 p
21846 g
21847 s/.\{148\}//
21848 t nl
21849 :delim
21850 h
21851 s/\(.\{148\}\).*/\1/
21852 t more2
21853 s/["\\]/\\&/g; s/^/"/; s/$/"/
21854 p
21855 b
21856 :more2
21857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21858 p
21859 g
21860 s/.\{148\}//
21861 t delim
21862 ' <conf$$subs.awk | sed '
21863 /^[^""]/{
21864   N
21865   s/\n//
21866 }
21867 ' >>$CONFIG_STATUS || ac_write_fail=1
21868 rm -f conf$$subs.awk
21869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21870 _ACAWK
21871 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21872   for (key in S) S_is_set[key] = 1
21873   FS = "\a"
21874
21875 }
21876 {
21877   line = $ 0
21878   nfields = split(line, field, "@")
21879   substed = 0
21880   len = length(field[1])
21881   for (i = 2; i < nfields; i++) {
21882     key = field[i]
21883     keylen = length(key)
21884     if (S_is_set[key]) {
21885       value = S[key]
21886       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21887       len += length(value) + length(field[++i])
21888       substed = 1
21889     } else
21890       len += 1 + keylen
21891   }
21892
21893   print line
21894 }
21895
21896 _ACAWK
21897 _ACEOF
21898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21900   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21901 else
21902   cat
21903 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21904   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21905 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21906    { (exit 1); exit 1; }; }
21907 _ACEOF
21908
21909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21911 # trailing colons and then remove the whole line if VPATH becomes empty
21912 # (actually we leave an empty line to preserve line numbers).
21913 if test "x$srcdir" = x.; then
21914   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21915 s/:*\$(srcdir):*/:/
21916 s/:*\${srcdir}:*/:/
21917 s/:*@srcdir@:*/:/
21918 s/^\([^=]*=[     ]*\):*/\1/
21919 s/:*$//
21920 s/^[^=]*=[       ]*$//
21921 }'
21922 fi
21923
21924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21925 fi # test -n "$CONFIG_FILES"
21926
21927 # Set up the scripts for CONFIG_HEADERS section.
21928 # No need to generate them if there are no CONFIG_HEADERS.
21929 # This happens for instance with `./config.status Makefile'.
21930 if test -n "$CONFIG_HEADERS"; then
21931 cat >"$tmp/defines.awk" <<\_ACAWK ||
21932 BEGIN {
21933 _ACEOF
21934
21935 # Transform confdefs.h into an awk script `defines.awk', embedded as
21936 # here-document in config.status, that substitutes the proper values into
21937 # config.h.in to produce config.h.
21938
21939 # Create a delimiter string that does not exist in confdefs.h, to ease
21940 # handling of long lines.
21941 ac_delim='%!_!# '
21942 for ac_last_try in false false :; do
21943   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21944   if test -z "$ac_t"; then
21945     break
21946   elif $ac_last_try; then
21947     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21948 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21949    { (exit 1); exit 1; }; }
21950   else
21951     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21952   fi
21953 done
21954
21955 # For the awk script, D is an array of macro values keyed by name,
21956 # likewise P contains macro parameters if any.  Preserve backslash
21957 # newline sequences.
21958
21959 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21960 sed -n '
21961 s/.\{148\}/&'"$ac_delim"'/g
21962 t rset
21963 :rset
21964 s/^[     ]*#[    ]*define[       ][      ]*/ /
21965 t def
21966 d
21967 :def
21968 s/\\$//
21969 t bsnl
21970 s/["\\]/\\&/g
21971 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21972 D["\1"]=" \3"/p
21973 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21974 d
21975 :bsnl
21976 s/["\\]/\\&/g
21977 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21978 D["\1"]=" \3\\\\\\n"\\/p
21979 t cont
21980 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21981 t cont
21982 d
21983 :cont
21984 n
21985 s/.\{148\}/&'"$ac_delim"'/g
21986 t clear
21987 :clear
21988 s/\\$//
21989 t bsnlc
21990 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21991 d
21992 :bsnlc
21993 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21994 b cont
21995 ' <confdefs.h | sed '
21996 s/'"$ac_delim"'/"\\\
21997 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21998
21999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22000   for (key in D) D_is_set[key] = 1
22001   FS = "\a"
22002 }
22003 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22004   line = \$ 0
22005   split(line, arg, " ")
22006   if (arg[1] == "#") {
22007     defundef = arg[2]
22008     mac1 = arg[3]
22009   } else {
22010     defundef = substr(arg[1], 2)
22011     mac1 = arg[2]
22012   }
22013   split(mac1, mac2, "(") #)
22014   macro = mac2[1]
22015   prefix = substr(line, 1, index(line, defundef) - 1)
22016   if (D_is_set[macro]) {
22017     # Preserve the white space surrounding the "#".
22018     print prefix "define", macro P[macro] D[macro]
22019     next
22020   } else {
22021     # Replace #undef with comments.  This is necessary, for example,
22022     # in the case of _POSIX_SOURCE, which is predefined and required
22023     # on some systems where configure will not decide to define it.
22024     if (defundef == "undef") {
22025       print "/*", prefix defundef, macro, "*/"
22026       next
22027     }
22028   }
22029 }
22030 { print }
22031 _ACAWK
22032 _ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22034   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22035 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22036    { (exit 1); exit 1; }; }
22037 fi # test -n "$CONFIG_HEADERS"
22038
22039
22040 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22041 shift
22042 for ac_tag
22043 do
22044   case $ac_tag in
22045   :[FHLC]) ac_mode=$ac_tag; continue;;
22046   esac
22047   case $ac_mode$ac_tag in
22048   :[FHL]*:*);;
22049   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22050 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22051    { (exit 1); exit 1; }; };;
22052   :[FH]-) ac_tag=-:-;;
22053   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22054   esac
22055   ac_save_IFS=$IFS
22056   IFS=:
22057   set x $ac_tag
22058   IFS=$ac_save_IFS
22059   shift
22060   ac_file=$1
22061   shift
22062
22063   case $ac_mode in
22064   :L) ac_source=$1;;
22065   :[FH])
22066     ac_file_inputs=
22067     for ac_f
22068     do
22069       case $ac_f in
22070       -) ac_f="$tmp/stdin";;
22071       *) # Look for the file first in the build tree, then in the source tree
22072          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22073          # because $ac_f cannot contain `:'.
22074          test -f "$ac_f" ||
22075            case $ac_f in
22076            [\\/$]*) false;;
22077            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22078            esac ||
22079            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22080 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22081    { (exit 1); exit 1; }; };;
22082       esac
22083       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22084       ac_file_inputs="$ac_file_inputs '$ac_f'"
22085     done
22086
22087     # Let's still pretend it is `configure' which instantiates (i.e., don't
22088     # use $as_me), people would be surprised to read:
22089     #    /* config.h.  Generated by config.status.  */
22090     configure_input='Generated from '`
22091           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22092         `' by configure.'
22093     if test x"$ac_file" != x-; then
22094       configure_input="$ac_file.  $configure_input"
22095       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22096 $as_echo "$as_me: creating $ac_file" >&6;}
22097     fi
22098     # Neutralize special characters interpreted by sed in replacement strings.
22099     case $configure_input in #(
22100     *\&* | *\|* | *\\* )
22101        ac_sed_conf_input=`$as_echo "$configure_input" |
22102        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22103     *) ac_sed_conf_input=$configure_input;;
22104     esac
22105
22106     case $ac_tag in
22107     *:-:* | *:-) cat >"$tmp/stdin" \
22108       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22109 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22110    { (exit 1); exit 1; }; } ;;
22111     esac
22112     ;;
22113   esac
22114
22115   ac_dir=`$as_dirname -- "$ac_file" ||
22116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22117          X"$ac_file" : 'X\(//\)[^/]' \| \
22118          X"$ac_file" : 'X\(//\)$' \| \
22119          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22120 $as_echo X"$ac_file" |
22121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22122             s//\1/
22123             q
22124           }
22125           /^X\(\/\/\)[^/].*/{
22126             s//\1/
22127             q
22128           }
22129           /^X\(\/\/\)$/{
22130             s//\1/
22131             q
22132           }
22133           /^X\(\/\).*/{
22134             s//\1/
22135             q
22136           }
22137           s/.*/./; q'`
22138   { as_dir="$ac_dir"
22139   case $as_dir in #(
22140   -*) as_dir=./$as_dir;;
22141   esac
22142   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22143     as_dirs=
22144     while :; do
22145       case $as_dir in #(
22146       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22147       *) as_qdir=$as_dir;;
22148       esac
22149       as_dirs="'$as_qdir' $as_dirs"
22150       as_dir=`$as_dirname -- "$as_dir" ||
22151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22152          X"$as_dir" : 'X\(//\)[^/]' \| \
22153          X"$as_dir" : 'X\(//\)$' \| \
22154          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22155 $as_echo X"$as_dir" |
22156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22157             s//\1/
22158             q
22159           }
22160           /^X\(\/\/\)[^/].*/{
22161             s//\1/
22162             q
22163           }
22164           /^X\(\/\/\)$/{
22165             s//\1/
22166             q
22167           }
22168           /^X\(\/\).*/{
22169             s//\1/
22170             q
22171           }
22172           s/.*/./; q'`
22173       test -d "$as_dir" && break
22174     done
22175     test -z "$as_dirs" || eval "mkdir $as_dirs"
22176   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22177 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22178    { (exit 1); exit 1; }; }; }
22179   ac_builddir=.
22180
22181 case "$ac_dir" in
22182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22183 *)
22184   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22185   # A ".." for each directory in $ac_dir_suffix.
22186   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22187   case $ac_top_builddir_sub in
22188   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22189   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22190   esac ;;
22191 esac
22192 ac_abs_top_builddir=$ac_pwd
22193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22194 # for backward compatibility:
22195 ac_top_builddir=$ac_top_build_prefix
22196
22197 case $srcdir in
22198   .)  # We are building in place.
22199     ac_srcdir=.
22200     ac_top_srcdir=$ac_top_builddir_sub
22201     ac_abs_top_srcdir=$ac_pwd ;;
22202   [\\/]* | ?:[\\/]* )  # Absolute name.
22203     ac_srcdir=$srcdir$ac_dir_suffix;
22204     ac_top_srcdir=$srcdir
22205     ac_abs_top_srcdir=$srcdir ;;
22206   *) # Relative name.
22207     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22208     ac_top_srcdir=$ac_top_build_prefix$srcdir
22209     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22210 esac
22211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22212
22213
22214   case $ac_mode in
22215   :F)
22216   #
22217   # CONFIG_FILE
22218   #
22219
22220   case $INSTALL in
22221   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22222   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22223   esac
22224   ac_MKDIR_P=$MKDIR_P
22225   case $MKDIR_P in
22226   [\\/$]* | ?:[\\/]* ) ;;
22227   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22228   esac
22229 _ACEOF
22230
22231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22232 # If the template does not know about datarootdir, expand it.
22233 # FIXME: This hack should be removed a few years after 2.60.
22234 ac_datarootdir_hack=; ac_datarootdir_seen=
22235
22236 ac_sed_dataroot='
22237 /datarootdir/ {
22238   p
22239   q
22240 }
22241 /@datadir@/p
22242 /@docdir@/p
22243 /@infodir@/p
22244 /@localedir@/p
22245 /@mandir@/p
22246 '
22247 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22248 *datarootdir*) ac_datarootdir_seen=yes;;
22249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22250   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22252 _ACEOF
22253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22254   ac_datarootdir_hack='
22255   s&@datadir@&$datadir&g
22256   s&@docdir@&$docdir&g
22257   s&@infodir@&$infodir&g
22258   s&@localedir@&$localedir&g
22259   s&@mandir@&$mandir&g
22260     s&\\\${datarootdir}&$datarootdir&g' ;;
22261 esac
22262 _ACEOF
22263
22264 # Neutralize VPATH when `$srcdir' = `.'.
22265 # Shell code in configure.ac might set extrasub.
22266 # FIXME: do we really want to maintain this feature?
22267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22268 ac_sed_extra="$ac_vpsub
22269 $extrasub
22270 _ACEOF
22271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22272 :t
22273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22274 s|@configure_input@|$ac_sed_conf_input|;t t
22275 s&@top_builddir@&$ac_top_builddir_sub&;t t
22276 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22277 s&@srcdir@&$ac_srcdir&;t t
22278 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22279 s&@top_srcdir@&$ac_top_srcdir&;t t
22280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22281 s&@builddir@&$ac_builddir&;t t
22282 s&@abs_builddir@&$ac_abs_builddir&;t t
22283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22284 s&@INSTALL@&$ac_INSTALL&;t t
22285 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22286 $ac_datarootdir_hack
22287 "
22288 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22289   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22290 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22291    { (exit 1); exit 1; }; }
22292
22293 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22294   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22295   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22296   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22297 which seems to be undefined.  Please make sure it is defined." >&5
22298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22299 which seems to be undefined.  Please make sure it is defined." >&2;}
22300
22301   rm -f "$tmp/stdin"
22302   case $ac_file in
22303   -) cat "$tmp/out" && rm -f "$tmp/out";;
22304   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22305   esac \
22306   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22307 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22308    { (exit 1); exit 1; }; }
22309  ;;
22310   :H)
22311   #
22312   # CONFIG_HEADER
22313   #
22314   if test x"$ac_file" != x-; then
22315     {
22316       $as_echo "/* $configure_input  */" \
22317       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22318     } >"$tmp/config.h" \
22319       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22321    { (exit 1); exit 1; }; }
22322     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22323       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22324 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22325     else
22326       rm -f "$ac_file"
22327       mv "$tmp/config.h" "$ac_file" \
22328         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22329 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22330    { (exit 1); exit 1; }; }
22331     fi
22332   else
22333     $as_echo "/* $configure_input  */" \
22334       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22335       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22336 $as_echo "$as_me: error: could not create -" >&2;}
22337    { (exit 1); exit 1; }; }
22338   fi
22339 # Compute "$ac_file"'s index in $config_headers.
22340 _am_arg="$ac_file"
22341 _am_stamp_count=1
22342 for _am_header in $config_headers :; do
22343   case $_am_header in
22344     $_am_arg | $_am_arg:* )
22345       break ;;
22346     * )
22347       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22348   esac
22349 done
22350 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22351 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22352          X"$_am_arg" : 'X\(//\)[^/]' \| \
22353          X"$_am_arg" : 'X\(//\)$' \| \
22354          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22355 $as_echo X"$_am_arg" |
22356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22357             s//\1/
22358             q
22359           }
22360           /^X\(\/\/\)[^/].*/{
22361             s//\1/
22362             q
22363           }
22364           /^X\(\/\/\)$/{
22365             s//\1/
22366             q
22367           }
22368           /^X\(\/\).*/{
22369             s//\1/
22370             q
22371           }
22372           s/.*/./; q'`/stamp-h$_am_stamp_count
22373  ;;
22374
22375   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22376 $as_echo "$as_me: executing $ac_file commands" >&6;}
22377  ;;
22378   esac
22379
22380
22381   case $ac_file$ac_mode in
22382     "zfs_config.h":H)
22383         (mv zfs_config.h zfs_config.h.tmp &&
22384         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
22385         rm zfs_config.h.tmp) || exit 1 ;;
22386     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22387   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22388   # are listed without --file.  Let's play safe and only enable the eval
22389   # if we detect the quoting.
22390   case $CONFIG_FILES in
22391   *\'*) eval set x "$CONFIG_FILES" ;;
22392   *)   set x $CONFIG_FILES ;;
22393   esac
22394   shift
22395   for mf
22396   do
22397     # Strip MF so we end up with the name of the file.
22398     mf=`echo "$mf" | sed -e 's/:.*$//'`
22399     # Check whether this is an Automake generated Makefile or not.
22400     # We used to match only the files named `Makefile.in', but
22401     # some people rename them; so instead we look at the file content.
22402     # Grep'ing the first line is not enough: some people post-process
22403     # each Makefile.in and add a new line on top of each file to say so.
22404     # Grep'ing the whole file is not good either: AIX grep has a line
22405     # limit of 2048, but all sed's we know have understand at least 4000.
22406     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22407       dirpart=`$as_dirname -- "$mf" ||
22408 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22409          X"$mf" : 'X\(//\)[^/]' \| \
22410          X"$mf" : 'X\(//\)$' \| \
22411          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22412 $as_echo X"$mf" |
22413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22414             s//\1/
22415             q
22416           }
22417           /^X\(\/\/\)[^/].*/{
22418             s//\1/
22419             q
22420           }
22421           /^X\(\/\/\)$/{
22422             s//\1/
22423             q
22424           }
22425           /^X\(\/\).*/{
22426             s//\1/
22427             q
22428           }
22429           s/.*/./; q'`
22430     else
22431       continue
22432     fi
22433     # Extract the definition of DEPDIR, am__include, and am__quote
22434     # from the Makefile without running `make'.
22435     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22436     test -z "$DEPDIR" && continue
22437     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22438     test -z "am__include" && continue
22439     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22440     # When using ansi2knr, U may be empty or an underscore; expand it
22441     U=`sed -n 's/^U = //p' < "$mf"`
22442     # Find all dependency output files, they are included files with
22443     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22444     # simplest approach to changing $(DEPDIR) to its actual value in the
22445     # expansion.
22446     for file in `sed -n "
22447       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22448          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22449       # Make sure the directory exists.
22450       test -f "$dirpart/$file" && continue
22451       fdir=`$as_dirname -- "$file" ||
22452 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22453          X"$file" : 'X\(//\)[^/]' \| \
22454          X"$file" : 'X\(//\)$' \| \
22455          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22456 $as_echo X"$file" |
22457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22458             s//\1/
22459             q
22460           }
22461           /^X\(\/\/\)[^/].*/{
22462             s//\1/
22463             q
22464           }
22465           /^X\(\/\/\)$/{
22466             s//\1/
22467             q
22468           }
22469           /^X\(\/\).*/{
22470             s//\1/
22471             q
22472           }
22473           s/.*/./; q'`
22474       { as_dir=$dirpart/$fdir
22475   case $as_dir in #(
22476   -*) as_dir=./$as_dir;;
22477   esac
22478   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22479     as_dirs=
22480     while :; do
22481       case $as_dir in #(
22482       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22483       *) as_qdir=$as_dir;;
22484       esac
22485       as_dirs="'$as_qdir' $as_dirs"
22486       as_dir=`$as_dirname -- "$as_dir" ||
22487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22488          X"$as_dir" : 'X\(//\)[^/]' \| \
22489          X"$as_dir" : 'X\(//\)$' \| \
22490          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22491 $as_echo X"$as_dir" |
22492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22493             s//\1/
22494             q
22495           }
22496           /^X\(\/\/\)[^/].*/{
22497             s//\1/
22498             q
22499           }
22500           /^X\(\/\/\)$/{
22501             s//\1/
22502             q
22503           }
22504           /^X\(\/\).*/{
22505             s//\1/
22506             q
22507           }
22508           s/.*/./; q'`
22509       test -d "$as_dir" && break
22510     done
22511     test -z "$as_dirs" || eval "mkdir $as_dirs"
22512   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22513 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22514    { (exit 1); exit 1; }; }; }
22515       # echo "creating $dirpart/$file"
22516       echo '# dummy' > "$dirpart/$file"
22517     done
22518   done
22519 }
22520  ;;
22521     "libtool":C)
22522
22523     # See if we are running on zsh, and set the options which allow our
22524     # commands through without removal of \ escapes.
22525     if test -n "${ZSH_VERSION+set}" ; then
22526       setopt NO_GLOB_SUBST
22527     fi
22528
22529     cfgfile="${ofile}T"
22530     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22531     $RM "$cfgfile"
22532
22533     cat <<_LT_EOF >> "$cfgfile"
22534 #! $SHELL
22535
22536 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22537 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22539 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22540 #
22541 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22542 #                 2006, 2007, 2008 Free Software Foundation, Inc.
22543 #   Written by Gordon Matzigkeit, 1996
22544 #
22545 #   This file is part of GNU Libtool.
22546 #
22547 # GNU Libtool is free software; you can redistribute it and/or
22548 # modify it under the terms of the GNU General Public License as
22549 # published by the Free Software Foundation; either version 2 of
22550 # the License, or (at your option) any later version.
22551 #
22552 # As a special exception to the GNU General Public License,
22553 # if you distribute this file as part of a program or library that
22554 # is built using GNU Libtool, you may include this file under the
22555 # same distribution terms that you use for the rest of that program.
22556 #
22557 # GNU Libtool is distributed in the hope that it will be useful,
22558 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22560 # GNU General Public License for more details.
22561 #
22562 # You should have received a copy of the GNU General Public License
22563 # along with GNU Libtool; see the file COPYING.  If not, a copy
22564 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22565 # obtained by writing to the Free Software Foundation, Inc.,
22566 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22567
22568
22569 # The names of the tagged configurations supported by this script.
22570 available_tags=""
22571
22572 # ### BEGIN LIBTOOL CONFIG
22573
22574 # Which release of libtool.m4 was used?
22575 macro_version=$macro_version
22576 macro_revision=$macro_revision
22577
22578 # Whether or not to build shared libraries.
22579 build_libtool_libs=$enable_shared
22580
22581 # Whether or not to build static libraries.
22582 build_old_libs=$enable_static
22583
22584 # What type of objects to build.
22585 pic_mode=$pic_mode
22586
22587 # Whether or not to optimize for fast installation.
22588 fast_install=$enable_fast_install
22589
22590 # The host system.
22591 host_alias=$host_alias
22592 host=$host
22593 host_os=$host_os
22594
22595 # The build system.
22596 build_alias=$build_alias
22597 build=$build
22598 build_os=$build_os
22599
22600 # A sed program that does not truncate output.
22601 SED=$lt_SED
22602
22603 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22604 Xsed="\$SED -e 1s/^X//"
22605
22606 # A grep program that handles long lines.
22607 GREP=$lt_GREP
22608
22609 # An ERE matcher.
22610 EGREP=$lt_EGREP
22611
22612 # A literal string matcher.
22613 FGREP=$lt_FGREP
22614
22615 # A BSD- or MS-compatible name lister.
22616 NM=$lt_NM
22617
22618 # Whether we need soft or hard links.
22619 LN_S=$lt_LN_S
22620
22621 # What is the maximum length of a command?
22622 max_cmd_len=$max_cmd_len
22623
22624 # Object file suffix (normally "o").
22625 objext=$ac_objext
22626
22627 # Executable file suffix (normally "").
22628 exeext=$exeext
22629
22630 # whether the shell understands "unset".
22631 lt_unset=$lt_unset
22632
22633 # turn spaces into newlines.
22634 SP2NL=$lt_lt_SP2NL
22635
22636 # turn newlines into spaces.
22637 NL2SP=$lt_lt_NL2SP
22638
22639 # How to create reloadable object files.
22640 reload_flag=$lt_reload_flag
22641 reload_cmds=$lt_reload_cmds
22642
22643 # An object symbol dumper.
22644 OBJDUMP=$lt_OBJDUMP
22645
22646 # Method to check whether dependent libraries are shared objects.
22647 deplibs_check_method=$lt_deplibs_check_method
22648
22649 # Command to use when deplibs_check_method == "file_magic".
22650 file_magic_cmd=$lt_file_magic_cmd
22651
22652 # The archiver.
22653 AR=$lt_AR
22654 AR_FLAGS=$lt_AR_FLAGS
22655
22656 # A symbol stripping program.
22657 STRIP=$lt_STRIP
22658
22659 # Commands used to install an old-style archive.
22660 RANLIB=$lt_RANLIB
22661 old_postinstall_cmds=$lt_old_postinstall_cmds
22662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22663
22664 # A C compiler.
22665 LTCC=$lt_CC
22666
22667 # LTCC compiler flags.
22668 LTCFLAGS=$lt_CFLAGS
22669
22670 # Take the output of nm and produce a listing of raw symbols and C names.
22671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22672
22673 # Transform the output of nm in a proper C declaration.
22674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22675
22676 # Transform the output of nm in a C name address pair.
22677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22678
22679 # Transform the output of nm in a C name address pair when lib prefix is needed.
22680 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22681
22682 # The name of the directory that contains temporary libtool files.
22683 objdir=$objdir
22684
22685 # Shell to use when invoking shell scripts.
22686 SHELL=$lt_SHELL
22687
22688 # An echo program that does not interpret backslashes.
22689 ECHO=$lt_ECHO
22690
22691 # Used to examine libraries when file_magic_cmd begins with "file".
22692 MAGIC_CMD=$MAGIC_CMD
22693
22694 # Must we lock files when doing compilation?
22695 need_locks=$lt_need_locks
22696
22697 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22698 DSYMUTIL=$lt_DSYMUTIL
22699
22700 # Tool to change global to local symbols on Mac OS X.
22701 NMEDIT=$lt_NMEDIT
22702
22703 # Tool to manipulate fat objects and archives on Mac OS X.
22704 LIPO=$lt_LIPO
22705
22706 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22707 OTOOL=$lt_OTOOL
22708
22709 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22710 OTOOL64=$lt_OTOOL64
22711
22712 # Old archive suffix (normally "a").
22713 libext=$libext
22714
22715 # Shared library suffix (normally ".so").
22716 shrext_cmds=$lt_shrext_cmds
22717
22718 # The commands to extract the exported symbol list from a shared archive.
22719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22720
22721 # Variables whose values should be saved in libtool wrapper scripts and
22722 # restored at link time.
22723 variables_saved_for_relink=$lt_variables_saved_for_relink
22724
22725 # Do we need the "lib" prefix for modules?
22726 need_lib_prefix=$need_lib_prefix
22727
22728 # Do we need a version for libraries?
22729 need_version=$need_version
22730
22731 # Library versioning type.
22732 version_type=$version_type
22733
22734 # Shared library runtime path variable.
22735 runpath_var=$runpath_var
22736
22737 # Shared library path variable.
22738 shlibpath_var=$shlibpath_var
22739
22740 # Is shlibpath searched before the hard-coded library search path?
22741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22742
22743 # Format of library name prefix.
22744 libname_spec=$lt_libname_spec
22745
22746 # List of archive names.  First name is the real one, the rest are links.
22747 # The last name is the one that the linker finds with -lNAME
22748 library_names_spec=$lt_library_names_spec
22749
22750 # The coded name of the library, if different from the real name.
22751 soname_spec=$lt_soname_spec
22752
22753 # Command to use after installation of a shared archive.
22754 postinstall_cmds=$lt_postinstall_cmds
22755
22756 # Command to use after uninstallation of a shared archive.
22757 postuninstall_cmds=$lt_postuninstall_cmds
22758
22759 # Commands used to finish a libtool library installation in a directory.
22760 finish_cmds=$lt_finish_cmds
22761
22762 # As "finish_cmds", except a single script fragment to be evaled but
22763 # not shown.
22764 finish_eval=$lt_finish_eval
22765
22766 # Whether we should hardcode library paths into libraries.
22767 hardcode_into_libs=$hardcode_into_libs
22768
22769 # Compile-time system search path for libraries.
22770 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22771
22772 # Run-time system search path for libraries.
22773 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22774
22775 # Whether dlopen is supported.
22776 dlopen_support=$enable_dlopen
22777
22778 # Whether dlopen of programs is supported.
22779 dlopen_self=$enable_dlopen_self
22780
22781 # Whether dlopen of statically linked programs is supported.
22782 dlopen_self_static=$enable_dlopen_self_static
22783
22784 # Commands to strip libraries.
22785 old_striplib=$lt_old_striplib
22786 striplib=$lt_striplib
22787
22788
22789 # The linker used to build libraries.
22790 LD=$lt_LD
22791
22792 # Commands used to build an old-style archive.
22793 old_archive_cmds=$lt_old_archive_cmds
22794
22795 # A language specific compiler.
22796 CC=$lt_compiler
22797
22798 # Is the compiler the GNU compiler?
22799 with_gcc=$GCC
22800
22801 # Compiler flag to turn off builtin functions.
22802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22803
22804 # How to pass a linker flag through the compiler.
22805 wl=$lt_lt_prog_compiler_wl
22806
22807 # Additional compiler flags for building library objects.
22808 pic_flag=$lt_lt_prog_compiler_pic
22809
22810 # Compiler flag to prevent dynamic linking.
22811 link_static_flag=$lt_lt_prog_compiler_static
22812
22813 # Does compiler simultaneously support -c and -o options?
22814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22815
22816 # Whether or not to add -lc for building shared libraries.
22817 build_libtool_need_lc=$archive_cmds_need_lc
22818
22819 # Whether or not to disallow shared libs when runtime libs are static.
22820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22821
22822 # Compiler flag to allow reflexive dlopens.
22823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22824
22825 # Compiler flag to generate shared objects directly from archives.
22826 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22827
22828 # Whether the compiler copes with passing no objects directly.
22829 compiler_needs_object=$lt_compiler_needs_object
22830
22831 # Create an old-style archive from a shared archive.
22832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22833
22834 # Create a temporary old-style archive to link instead of a shared archive.
22835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22836
22837 # Commands used to build a shared archive.
22838 archive_cmds=$lt_archive_cmds
22839 archive_expsym_cmds=$lt_archive_expsym_cmds
22840
22841 # Commands used to build a loadable module if different from building
22842 # a shared archive.
22843 module_cmds=$lt_module_cmds
22844 module_expsym_cmds=$lt_module_expsym_cmds
22845
22846 # Whether we are building with GNU ld or not.
22847 with_gnu_ld=$lt_with_gnu_ld
22848
22849 # Flag that allows shared libraries with undefined symbols to be built.
22850 allow_undefined_flag=$lt_allow_undefined_flag
22851
22852 # Flag that enforces no undefined symbols.
22853 no_undefined_flag=$lt_no_undefined_flag
22854
22855 # Flag to hardcode \$libdir into a binary during linking.
22856 # This must work even if \$libdir does not exist
22857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22858
22859 # If ld is used when linking, flag to hardcode \$libdir into a binary
22860 # during linking.  This must work even if \$libdir does not exist.
22861 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22862
22863 # Whether we need a single "-rpath" flag with a separated argument.
22864 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22865
22866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22867 # DIR into the resulting binary.
22868 hardcode_direct=$hardcode_direct
22869
22870 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22871 # DIR into the resulting binary and the resulting library dependency is
22872 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22873 # library is relocated.
22874 hardcode_direct_absolute=$hardcode_direct_absolute
22875
22876 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22877 # into the resulting binary.
22878 hardcode_minus_L=$hardcode_minus_L
22879
22880 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22881 # into the resulting binary.
22882 hardcode_shlibpath_var=$hardcode_shlibpath_var
22883
22884 # Set to "yes" if building a shared library automatically hardcodes DIR
22885 # into the library and all subsequent libraries and executables linked
22886 # against it.
22887 hardcode_automatic=$hardcode_automatic
22888
22889 # Set to yes if linker adds runtime paths of dependent libraries
22890 # to runtime path list.
22891 inherit_rpath=$inherit_rpath
22892
22893 # Whether libtool must link a program against all its dependency libraries.
22894 link_all_deplibs=$link_all_deplibs
22895
22896 # Fix the shell variable \$srcfile for the compiler.
22897 fix_srcfile_path=$lt_fix_srcfile_path
22898
22899 # Set to "yes" if exported symbols are required.
22900 always_export_symbols=$always_export_symbols
22901
22902 # The commands to list exported symbols.
22903 export_symbols_cmds=$lt_export_symbols_cmds
22904
22905 # Symbols that should not be listed in the preloaded symbols.
22906 exclude_expsyms=$lt_exclude_expsyms
22907
22908 # Symbols that must always be exported.
22909 include_expsyms=$lt_include_expsyms
22910
22911 # Commands necessary for linking programs (against libraries) with templates.
22912 prelink_cmds=$lt_prelink_cmds
22913
22914 # Specify filename containing input files.
22915 file_list_spec=$lt_file_list_spec
22916
22917 # How to hardcode a shared library path into an executable.
22918 hardcode_action=$hardcode_action
22919
22920 # ### END LIBTOOL CONFIG
22921
22922 _LT_EOF
22923
22924   case $host_os in
22925   aix3*)
22926     cat <<\_LT_EOF >> "$cfgfile"
22927 # AIX sometimes has problems with the GCC collect2 program.  For some
22928 # reason, if we set the COLLECT_NAMES environment variable, the problems
22929 # vanish in a puff of smoke.
22930 if test "X${COLLECT_NAMES+set}" != Xset; then
22931   COLLECT_NAMES=
22932   export COLLECT_NAMES
22933 fi
22934 _LT_EOF
22935     ;;
22936   esac
22937
22938
22939 ltmain="$ac_aux_dir/ltmain.sh"
22940
22941
22942   # We use sed instead of cat because bash on DJGPP gets confused if
22943   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22944   # text mode, it properly converts lines to CR/LF.  This bash problem
22945   # is reportedly fixed, but why not run on old versions too?
22946   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22947     || (rm -f "$cfgfile"; exit 1)
22948
22949   case $xsi_shell in
22950   yes)
22951     cat << \_LT_EOF >> "$cfgfile"
22952
22953 # func_dirname file append nondir_replacement
22954 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22955 # otherwise set result to NONDIR_REPLACEMENT.
22956 func_dirname ()
22957 {
22958   case ${1} in
22959     */*) func_dirname_result="${1%/*}${2}" ;;
22960     *  ) func_dirname_result="${3}" ;;
22961   esac
22962 }
22963
22964 # func_basename file
22965 func_basename ()
22966 {
22967   func_basename_result="${1##*/}"
22968 }
22969
22970 # func_dirname_and_basename file append nondir_replacement
22971 # perform func_basename and func_dirname in a single function
22972 # call:
22973 #   dirname:  Compute the dirname of FILE.  If nonempty,
22974 #             add APPEND to the result, otherwise set result
22975 #             to NONDIR_REPLACEMENT.
22976 #             value returned in "$func_dirname_result"
22977 #   basename: Compute filename of FILE.
22978 #             value retuned in "$func_basename_result"
22979 # Implementation must be kept synchronized with func_dirname
22980 # and func_basename. For efficiency, we do not delegate to
22981 # those functions but instead duplicate the functionality here.
22982 func_dirname_and_basename ()
22983 {
22984   case ${1} in
22985     */*) func_dirname_result="${1%/*}${2}" ;;
22986     *  ) func_dirname_result="${3}" ;;
22987   esac
22988   func_basename_result="${1##*/}"
22989 }
22990
22991 # func_stripname prefix suffix name
22992 # strip PREFIX and SUFFIX off of NAME.
22993 # PREFIX and SUFFIX must not contain globbing or regex special
22994 # characters, hashes, percent signs, but SUFFIX may contain a leading
22995 # dot (in which case that matches only a dot).
22996 func_stripname ()
22997 {
22998   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22999   # positional parameters, so assign one to ordinary parameter first.
23000   func_stripname_result=${3}
23001   func_stripname_result=${func_stripname_result#"${1}"}
23002   func_stripname_result=${func_stripname_result%"${2}"}
23003 }
23004
23005 # func_opt_split
23006 func_opt_split ()
23007 {
23008   func_opt_split_opt=${1%%=*}
23009   func_opt_split_arg=${1#*=}
23010 }
23011
23012 # func_lo2o object
23013 func_lo2o ()
23014 {
23015   case ${1} in
23016     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23017     *)    func_lo2o_result=${1} ;;
23018   esac
23019 }
23020
23021 # func_xform libobj-or-source
23022 func_xform ()
23023 {
23024   func_xform_result=${1%.*}.lo
23025 }
23026
23027 # func_arith arithmetic-term...
23028 func_arith ()
23029 {
23030   func_arith_result=$(( $* ))
23031 }
23032
23033 # func_len string
23034 # STRING may not start with a hyphen.
23035 func_len ()
23036 {
23037   func_len_result=${#1}
23038 }
23039
23040 _LT_EOF
23041     ;;
23042   *) # Bourne compatible functions.
23043     cat << \_LT_EOF >> "$cfgfile"
23044
23045 # func_dirname file append nondir_replacement
23046 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23047 # otherwise set result to NONDIR_REPLACEMENT.
23048 func_dirname ()
23049 {
23050   # Extract subdirectory from the argument.
23051   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23052   if test "X$func_dirname_result" = "X${1}"; then
23053     func_dirname_result="${3}"
23054   else
23055     func_dirname_result="$func_dirname_result${2}"
23056   fi
23057 }
23058
23059 # func_basename file
23060 func_basename ()
23061 {
23062   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23063 }
23064
23065
23066 # func_stripname prefix suffix name
23067 # strip PREFIX and SUFFIX off of NAME.
23068 # PREFIX and SUFFIX must not contain globbing or regex special
23069 # characters, hashes, percent signs, but SUFFIX may contain a leading
23070 # dot (in which case that matches only a dot).
23071 # func_strip_suffix prefix name
23072 func_stripname ()
23073 {
23074   case ${2} in
23075     .*) func_stripname_result=`$ECHO "X${3}" \
23076            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23077     *)  func_stripname_result=`$ECHO "X${3}" \
23078            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23079   esac
23080 }
23081
23082 # sed scripts:
23083 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23084 my_sed_long_arg='1s/^-[^=]*=//'
23085
23086 # func_opt_split
23087 func_opt_split ()
23088 {
23089   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23090   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23091 }
23092
23093 # func_lo2o object
23094 func_lo2o ()
23095 {
23096   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23097 }
23098
23099 # func_xform libobj-or-source
23100 func_xform ()
23101 {
23102   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23103 }
23104
23105 # func_arith arithmetic-term...
23106 func_arith ()
23107 {
23108   func_arith_result=`expr "$@"`
23109 }
23110
23111 # func_len string
23112 # STRING may not start with a hyphen.
23113 func_len ()
23114 {
23115   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23116 }
23117
23118 _LT_EOF
23119 esac
23120
23121 case $lt_shell_append in
23122   yes)
23123     cat << \_LT_EOF >> "$cfgfile"
23124
23125 # func_append var value
23126 # Append VALUE to the end of shell variable VAR.
23127 func_append ()
23128 {
23129   eval "$1+=\$2"
23130 }
23131 _LT_EOF
23132     ;;
23133   *)
23134     cat << \_LT_EOF >> "$cfgfile"
23135
23136 # func_append var value
23137 # Append VALUE to the end of shell variable VAR.
23138 func_append ()
23139 {
23140   eval "$1=\$$1\$2"
23141 }
23142
23143 _LT_EOF
23144     ;;
23145   esac
23146
23147
23148   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23149     || (rm -f "$cfgfile"; exit 1)
23150
23151   mv -f "$cfgfile" "$ofile" ||
23152     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23153   chmod +x "$ofile"
23154
23155  ;;
23156
23157   esac
23158 done # for ac_tag
23159
23160
23161 { (exit 0); exit 0; }
23162 _ACEOF
23163 chmod +x $CONFIG_STATUS
23164 ac_clean_files=$ac_clean_files_save
23165
23166 test $ac_write_fail = 0 ||
23167   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23168 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23169    { (exit 1); exit 1; }; }
23170
23171
23172 # configure is writing to config.log, and then calls config.status.
23173 # config.status does its own redirection, appending to config.log.
23174 # Unfortunately, on DOS this fails, as config.log is still kept open
23175 # by configure, so config.status won't be able to write to it; its
23176 # output is simply discarded.  So we exec the FD to /dev/null,
23177 # effectively closing config.log, so it can be properly (re)opened and
23178 # appended to by config.status.  When coming back to configure, we
23179 # need to make the FD available again.
23180 if test "$no_create" != yes; then
23181   ac_cs_success=:
23182   ac_config_status_args=
23183   test "$silent" = yes &&
23184     ac_config_status_args="$ac_config_status_args --quiet"
23185   exec 5>/dev/null
23186   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23187   exec 5>>config.log
23188   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23189   # would make configure fail if this is the last instruction.
23190   $ac_cs_success || { (exit 1); exit 1; }
23191 fi
23192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23193   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23195 fi
23196