Add [-m map] option to zpool_layout
[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 LIBBLKID
798 LIBUUID
799 ZLIB
800 KERNELCPPFLAGS
801 KERNELMAKE_PARAMS
802 SPL_SYMBOLS
803 SPL_VERSION
804 SPL_OBJ
805 SPL
806 LINUX_SYMBOLS
807 LINUX_VERSION
808 LINUX_OBJ
809 LINUX
810 ZFS_CONFIG
811 TARGET_ASM_DIR
812 DEFAULT_PACKAGE
813 VENDOR
814 ALIEN_VERSION
815 ALIEN
816 HAVE_ALIEN
817 DPKGBUILD_VERSION
818 DPKGBUILD
819 HAVE_DPKGBUILD
820 DPKG_VERSION
821 DPKG
822 HAVE_DPKG
823 RPMBUILD_VERSION
824 RPMBUILD
825 HAVE_RPMBUILD
826 RPM_VERSION
827 RPM
828 HAVE_RPM
829 am__fastdepCCAS_FALSE
830 am__fastdepCCAS_TRUE
831 CCASDEPMODE
832 CCASFLAGS
833 CCAS
834 CPP
835 OTOOL64
836 OTOOL
837 LIPO
838 NMEDIT
839 DSYMUTIL
840 lt_ECHO
841 RANLIB
842 AR
843 OBJDUMP
844 LN_S
845 NM
846 ac_ct_DUMPBIN
847 DUMPBIN
848 LD
849 FGREP
850 EGREP
851 GREP
852 SED
853 LIBTOOL
854 am__fastdepCC_FALSE
855 am__fastdepCC_TRUE
856 CCDEPMODE
857 AMDEPBACKSLASH
858 AMDEP_FALSE
859 AMDEP_TRUE
860 am__quote
861 am__include
862 DEPDIR
863 OBJEXT
864 EXEEXT
865 ac_ct_CC
866 CPPFLAGS
867 LDFLAGS
868 CFLAGS
869 CC
870 am__untar
871 am__tar
872 AMTAR
873 am__leading_dot
874 SET_MAKE
875 AWK
876 mkdir_p
877 MKDIR_P
878 INSTALL_STRIP_PROGRAM
879 STRIP
880 install_sh
881 MAKEINFO
882 AUTOHEADER
883 AUTOMAKE
884 AUTOCONF
885 ACLOCAL
886 VERSION
887 PACKAGE
888 CYGPATH_W
889 am__isrc
890 INSTALL_DATA
891 INSTALL_SCRIPT
892 INSTALL_PROGRAM
893 AM_BACKSLASH
894 AM_DEFAULT_VERBOSITY
895 MAINT
896 MAINTAINER_MODE_FALSE
897 MAINTAINER_MODE_TRUE
898 target_os
899 target_vendor
900 target_cpu
901 target
902 host_os
903 host_vendor
904 host_cpu
905 host
906 build_os
907 build_vendor
908 build_cpu
909 build
910 ZFS_META_LT_AGE
911 ZFS_META_LT_REVISION
912 ZFS_META_LT_CURRENT
913 ZFS_META_AUTHOR
914 ZFS_META_DATA
915 ZFS_META_ALIAS
916 ZFS_META_LICENSE
917 ZFS_META_RELEASE
918 ZFS_META_VERSION
919 ZFS_META_NAME
920 target_alias
921 host_alias
922 build_alias
923 LIBS
924 ECHO_T
925 ECHO_N
926 ECHO_C
927 DEFS
928 mandir
929 localedir
930 libdir
931 psdir
932 pdfdir
933 dvidir
934 htmldir
935 infodir
936 docdir
937 oldincludedir
938 includedir
939 localstatedir
940 sharedstatedir
941 sysconfdir
942 datadir
943 datarootdir
944 libexecdir
945 sbindir
946 bindir
947 program_transform_name
948 prefix
949 exec_prefix
950 PACKAGE_BUGREPORT
951 PACKAGE_STRING
952 PACKAGE_VERSION
953 PACKAGE_TARNAME
954 PACKAGE_NAME
955 PATH_SEPARATOR
956 SHELL'
957 ac_subst_files=''
958 ac_user_opts='
959 enable_option_checking
960 enable_maintainer_mode
961 enable_silent_rules
962 enable_dependency_tracking
963 enable_shared
964 enable_static
965 with_pic
966 enable_fast_install
967 with_gnu_ld
968 enable_libtool_lock
969 with_config
970 with_linux
971 with_linux_obj
972 with_spl
973 with_spl_obj
974 with_blkid
975 enable_debug
976 '
977       ac_precious_vars='build_alias
978 host_alias
979 target_alias
980 CC
981 CFLAGS
982 LDFLAGS
983 LIBS
984 CPPFLAGS
985 CPP
986 CCAS
987 CCASFLAGS'
988
989
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 ac_unrecognized_opts=
994 ac_unrecognized_sep=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1011
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE}'
1029 infodir='${datarootdir}/info'
1030 htmldir='${docdir}'
1031 dvidir='${docdir}'
1032 pdfdir='${docdir}'
1033 psdir='${docdir}'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1037
1038 ac_prev=
1039 ac_dashdash=
1040 for ac_option
1041 do
1042   # If the previous option needs an argument, assign it.
1043   if test -n "$ac_prev"; then
1044     eval $ac_prev=\$ac_option
1045     ac_prev=
1046     continue
1047   fi
1048
1049   case $ac_option in
1050   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051   *)    ac_optarg=yes ;;
1052   esac
1053
1054   # Accept the important Cygnus configure options, so we can diagnose typos.
1055
1056   case $ac_dashdash$ac_option in
1057   --)
1058     ac_dashdash=yes ;;
1059
1060   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061     ac_prev=bindir ;;
1062   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063     bindir=$ac_optarg ;;
1064
1065   -build | --build | --buil | --bui | --bu)
1066     ac_prev=build_alias ;;
1067   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068     build_alias=$ac_optarg ;;
1069
1070   -cache-file | --cache-file | --cache-fil | --cache-fi \
1071   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072     ac_prev=cache_file ;;
1073   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075     cache_file=$ac_optarg ;;
1076
1077   --config-cache | -C)
1078     cache_file=config.cache ;;
1079
1080   -datadir | --datadir | --datadi | --datad)
1081     ac_prev=datadir ;;
1082   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083     datadir=$ac_optarg ;;
1084
1085   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086   | --dataroo | --dataro | --datar)
1087     ac_prev=datarootdir ;;
1088   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090     datarootdir=$ac_optarg ;;
1091
1092   -disable-* | --disable-*)
1093     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1097    { (exit 1); exit 1; }; }
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "enable_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval enable_$ac_useropt=no ;;
1108
1109   -docdir | --docdir | --docdi | --doc | --do)
1110     ac_prev=docdir ;;
1111   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1112     docdir=$ac_optarg ;;
1113
1114   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1115     ac_prev=dvidir ;;
1116   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1117     dvidir=$ac_optarg ;;
1118
1119   -enable-* | --enable-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1124    { (exit 1); exit 1; }; }
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "enable_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval enable_$ac_useropt=\$ac_optarg ;;
1135
1136   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138   | --exec | --exe | --ex)
1139     ac_prev=exec_prefix ;;
1140   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142   | --exec=* | --exe=* | --ex=*)
1143     exec_prefix=$ac_optarg ;;
1144
1145   -gas | --gas | --ga | --g)
1146     # Obsolete; use --with-gas.
1147     with_gas=yes ;;
1148
1149   -help | --help | --hel | --he | -h)
1150     ac_init_help=long ;;
1151   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152     ac_init_help=recursive ;;
1153   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154     ac_init_help=short ;;
1155
1156   -host | --host | --hos | --ho)
1157     ac_prev=host_alias ;;
1158   -host=* | --host=* | --hos=* | --ho=*)
1159     host_alias=$ac_optarg ;;
1160
1161   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162     ac_prev=htmldir ;;
1163   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164   | --ht=*)
1165     htmldir=$ac_optarg ;;
1166
1167   -includedir | --includedir | --includedi | --included | --include \
1168   | --includ | --inclu | --incl | --inc)
1169     ac_prev=includedir ;;
1170   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171   | --includ=* | --inclu=* | --incl=* | --inc=*)
1172     includedir=$ac_optarg ;;
1173
1174   -infodir | --infodir | --infodi | --infod | --info | --inf)
1175     ac_prev=infodir ;;
1176   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177     infodir=$ac_optarg ;;
1178
1179   -libdir | --libdir | --libdi | --libd)
1180     ac_prev=libdir ;;
1181   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182     libdir=$ac_optarg ;;
1183
1184   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185   | --libexe | --libex | --libe)
1186     ac_prev=libexecdir ;;
1187   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188   | --libexe=* | --libex=* | --libe=*)
1189     libexecdir=$ac_optarg ;;
1190
1191   -localedir | --localedir | --localedi | --localed | --locale)
1192     ac_prev=localedir ;;
1193   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194     localedir=$ac_optarg ;;
1195
1196   -localstatedir | --localstatedir | --localstatedi | --localstated \
1197   | --localstate | --localstat | --localsta | --localst | --locals)
1198     ac_prev=localstatedir ;;
1199   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201     localstatedir=$ac_optarg ;;
1202
1203   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204     ac_prev=mandir ;;
1205   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206     mandir=$ac_optarg ;;
1207
1208   -nfp | --nfp | --nf)
1209     # Obsolete; use --without-fp.
1210     with_fp=no ;;
1211
1212   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213   | --no-cr | --no-c | -n)
1214     no_create=yes ;;
1215
1216   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218     no_recursion=yes ;;
1219
1220   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222   | --oldin | --oldi | --old | --ol | --o)
1223     ac_prev=oldincludedir ;;
1224   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227     oldincludedir=$ac_optarg ;;
1228
1229   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230     ac_prev=prefix ;;
1231   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232     prefix=$ac_optarg ;;
1233
1234   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235   | --program-pre | --program-pr | --program-p)
1236     ac_prev=program_prefix ;;
1237   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239     program_prefix=$ac_optarg ;;
1240
1241   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242   | --program-suf | --program-su | --program-s)
1243     ac_prev=program_suffix ;;
1244   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246     program_suffix=$ac_optarg ;;
1247
1248   -program-transform-name | --program-transform-name \
1249   | --program-transform-nam | --program-transform-na \
1250   | --program-transform-n | --program-transform- \
1251   | --program-transform | --program-transfor \
1252   | --program-transfo | --program-transf \
1253   | --program-trans | --program-tran \
1254   | --progr-tra | --program-tr | --program-t)
1255     ac_prev=program_transform_name ;;
1256   -program-transform-name=* | --program-transform-name=* \
1257   | --program-transform-nam=* | --program-transform-na=* \
1258   | --program-transform-n=* | --program-transform-=* \
1259   | --program-transform=* | --program-transfor=* \
1260   | --program-transfo=* | --program-transf=* \
1261   | --program-trans=* | --program-tran=* \
1262   | --progr-tra=* | --program-tr=* | --program-t=*)
1263     program_transform_name=$ac_optarg ;;
1264
1265   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266     ac_prev=pdfdir ;;
1267   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268     pdfdir=$ac_optarg ;;
1269
1270   -psdir | --psdir | --psdi | --psd | --ps)
1271     ac_prev=psdir ;;
1272   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273     psdir=$ac_optarg ;;
1274
1275   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276   | -silent | --silent | --silen | --sile | --sil)
1277     silent=yes ;;
1278
1279   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280     ac_prev=sbindir ;;
1281   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282   | --sbi=* | --sb=*)
1283     sbindir=$ac_optarg ;;
1284
1285   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287   | --sharedst | --shareds | --shared | --share | --shar \
1288   | --sha | --sh)
1289     ac_prev=sharedstatedir ;;
1290   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293   | --sha=* | --sh=*)
1294     sharedstatedir=$ac_optarg ;;
1295
1296   -site | --site | --sit)
1297     ac_prev=site ;;
1298   -site=* | --site=* | --sit=*)
1299     site=$ac_optarg ;;
1300
1301   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302     ac_prev=srcdir ;;
1303   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304     srcdir=$ac_optarg ;;
1305
1306   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307   | --syscon | --sysco | --sysc | --sys | --sy)
1308     ac_prev=sysconfdir ;;
1309   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311     sysconfdir=$ac_optarg ;;
1312
1313   -target | --target | --targe | --targ | --tar | --ta | --t)
1314     ac_prev=target_alias ;;
1315   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316     target_alias=$ac_optarg ;;
1317
1318   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319     verbose=yes ;;
1320
1321   -version | --version | --versio | --versi | --vers | -V)
1322     ac_init_version=: ;;
1323
1324   -with-* | --with-*)
1325     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326     # Reject names that are not valid shell variable names.
1327     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1329    { (exit 1); exit 1; }; }
1330     ac_useropt_orig=$ac_useropt
1331     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332     case $ac_user_opts in
1333       *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337          ac_unrecognized_sep=', ';;
1338     esac
1339     eval with_$ac_useropt=\$ac_optarg ;;
1340
1341   -without-* | --without-*)
1342     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343     # Reject names that are not valid shell variable names.
1344     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1346    { (exit 1); exit 1; }; }
1347     ac_useropt_orig=$ac_useropt
1348     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349     case $ac_user_opts in
1350       *"
1351 "with_$ac_useropt"
1352 "*) ;;
1353       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354          ac_unrecognized_sep=', ';;
1355     esac
1356     eval with_$ac_useropt=no ;;
1357
1358   --x)
1359     # Obsolete; use --with-x.
1360     with_x=yes ;;
1361
1362   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1363   | --x-incl | --x-inc | --x-in | --x-i)
1364     ac_prev=x_includes ;;
1365   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1366   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1367     x_includes=$ac_optarg ;;
1368
1369   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1370   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1371     ac_prev=x_libraries ;;
1372   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1373   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1374     x_libraries=$ac_optarg ;;
1375
1376   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1377 Try \`$0 --help' for more information." >&2
1378    { (exit 1); exit 1; }; }
1379     ;;
1380
1381   *=*)
1382     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383     # Reject names that are not valid shell variable names.
1384     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1385       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1386    { (exit 1); exit 1; }; }
1387     eval $ac_envvar=\$ac_optarg
1388     export $ac_envvar ;;
1389
1390   *)
1391     # FIXME: should be removed in autoconf 3.0.
1392     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1394       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1396     ;;
1397
1398   esac
1399 done
1400
1401 if test -n "$ac_prev"; then
1402   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1403   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1404    { (exit 1); exit 1; }; }
1405 fi
1406
1407 if test -n "$ac_unrecognized_opts"; then
1408   case $enable_option_checking in
1409     no) ;;
1410     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1411    { (exit 1); exit 1; }; } ;;
1412     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1413   esac
1414 fi
1415
1416 # Check all directory arguments for consistency.
1417 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418                 datadir sysconfdir sharedstatedir localstatedir includedir \
1419                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420                 libdir localedir mandir
1421 do
1422   eval ac_val=\$$ac_var
1423   # Remove trailing slashes.
1424   case $ac_val in
1425     */ )
1426       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427       eval $ac_var=\$ac_val;;
1428   esac
1429   # Be sure to have absolute directory names.
1430   case $ac_val in
1431     [\\/$]* | ?:[\\/]* )  continue;;
1432     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1433   esac
1434   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1435    { (exit 1); exit 1; }; }
1436 done
1437
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1441 build=$build_alias
1442 host=$host_alias
1443 target=$target_alias
1444
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x; then
1447   if test "x$build_alias" = x; then
1448     cross_compiling=maybe
1449     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1450     If a cross compiler is detected then cross compile mode will be used." >&2
1451   elif test "x$build_alias" != "x$host_alias"; then
1452     cross_compiling=yes
1453   fi
1454 fi
1455
1456 ac_tool_prefix=
1457 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1458
1459 test "$silent" = yes && exec 6>/dev/null
1460
1461
1462 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1463 ac_ls_di=`ls -di .` &&
1464 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1465   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1466    { (exit 1); exit 1; }; }
1467 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1468   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1469    { (exit 1); exit 1; }; }
1470
1471
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474   ac_srcdir_defaulted=yes
1475   # Try the directory containing this script, then the parent directory.
1476   ac_confdir=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478          X"$as_myself" : 'X\(//\)[^/]' \| \
1479          X"$as_myself" : 'X\(//\)$' \| \
1480          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1483             s//\1/
1484             q
1485           }
1486           /^X\(\/\/\)[^/].*/{
1487             s//\1/
1488             q
1489           }
1490           /^X\(\/\/\)$/{
1491             s//\1/
1492             q
1493           }
1494           /^X\(\/\).*/{
1495             s//\1/
1496             q
1497           }
1498           s/.*/./; q'`
1499   srcdir=$ac_confdir
1500   if test ! -r "$srcdir/$ac_unique_file"; then
1501     srcdir=..
1502   fi
1503 else
1504   ac_srcdir_defaulted=no
1505 fi
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1508   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1509    { (exit 1); exit 1; }; }
1510 fi
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 ac_abs_confdir=`(
1513         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1514    { (exit 1); exit 1; }; }
1515         pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518   srcdir=.
1519 fi
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528   eval ac_env_${ac_var}_value=\$${ac_var}
1529   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1532
1533 #
1534 # Report the --help message.
1535 #
1536 if test "$ac_init_help" = "long"; then
1537   # Omit some internal or obsolete options to make the list less imposing.
1538   # This message is too long to be a string in the A/UX 3.1 sh.
1539   cat <<_ACEOF
1540 \`configure' configures this package to adapt to many kinds of systems.
1541
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1543
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE.  See below for descriptions of some of the useful variables.
1546
1547 Defaults for the options are specified in brackets.
1548
1549 Configuration:
1550   -h, --help              display this help and exit
1551       --help=short        display options specific to this package
1552       --help=recursive    display the short help of all the included packages
1553   -V, --version           display version information and exit
1554   -q, --quiet, --silent   do not print \`checking...' messages
1555       --cache-file=FILE   cache test results in FILE [disabled]
1556   -C, --config-cache      alias for \`--cache-file=config.cache'
1557   -n, --no-create         do not create output files
1558       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1559
1560 Installation directories:
1561   --prefix=PREFIX         install architecture-independent files in PREFIX
1562                           [$ac_default_prefix]
1563   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1564                           [PREFIX]
1565
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1570
1571 For better control, use the options below.
1572
1573 Fine tuning of the installation directories:
1574   --bindir=DIR            user executables [EPREFIX/bin]
1575   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1576   --libexecdir=DIR        program executables [EPREFIX/libexec]
1577   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1578   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1579   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1580   --libdir=DIR            object code libraries [EPREFIX/lib]
1581   --includedir=DIR        C header files [PREFIX/include]
1582   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1583   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1584   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1585   --infodir=DIR           info documentation [DATAROOTDIR/info]
1586   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1587   --mandir=DIR            man documentation [DATAROOTDIR/man]
1588   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1589   --htmldir=DIR           html documentation [DOCDIR]
1590   --dvidir=DIR            dvi documentation [DOCDIR]
1591   --pdfdir=DIR            pdf documentation [DOCDIR]
1592   --psdir=DIR             ps documentation [DOCDIR]
1593 _ACEOF
1594
1595   cat <<\_ACEOF
1596
1597 Program names:
1598   --program-prefix=PREFIX            prepend PREFIX to installed program names
1599   --program-suffix=SUFFIX            append SUFFIX to installed program names
1600   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1601
1602 System types:
1603   --build=BUILD     configure for building on BUILD [guessed]
1604   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1605   --target=TARGET   configure for building compilers for TARGET [HOST]
1606 _ACEOF
1607 fi
1608
1609 if test -n "$ac_init_help"; then
1610
1611   cat <<\_ACEOF
1612
1613 Optional Features:
1614   --disable-option-checking  ignore unrecognized --enable/--with options
1615   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1616   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1617   --enable-maintainer-mode  enable make rules and dependencies not useful
1618                           (and sometimes confusing) to the casual installer
1619   --enable-silent-rules          less verbose build output (undo: `make V=1')
1620   --disable-silent-rules         verbose build output (undo: `make V=0')
1621   --disable-dependency-tracking  speeds up one-time build
1622   --enable-dependency-tracking   do not reject slow dependency extractors
1623   --enable-shared[=PKGS]  build shared libraries [default=yes]
1624   --enable-static[=PKGS]  build static libraries [default=yes]
1625   --enable-fast-install[=PKGS]
1626                           optimize for fast installation [default=yes]
1627   --disable-libtool-lock  avoid locking (might break parallel builds)
1628   --enable-debug          Enable generic debug support [default=no]
1629
1630 Optional Packages:
1631   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1632   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1633   --with-pic              try to use only PIC/non-PIC objects [default=use
1634                           both]
1635   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1636   --with-config=CONFIG    Config file 'kernel|user|all|srpm'
1637   --with-linux=PATH       Path to kernel source
1638   --with-linux-obj=PATH   Path to kernel build objects
1639   --with-spl=PATH         Path to spl source
1640   --with-spl-obj=PATH     Path to spl build objects
1641   --with-blkid            support blkid caching [default=check]
1642
1643 Some influential environment variables:
1644   CC          C compiler command
1645   CFLAGS      C compiler flags
1646   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1647               nonstandard directory <lib dir>
1648   LIBS        libraries to pass to the linker, e.g. -l<library>
1649   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1650               you have headers in a nonstandard directory <include dir>
1651   CPP         C preprocessor
1652   CCAS        assembler compiler command (defaults to CC)
1653   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1654
1655 Use these variables to override the choices made by `configure' or to help
1656 it to find libraries and programs with nonstandard names/locations.
1657
1658 _ACEOF
1659 ac_status=$?
1660 fi
1661
1662 if test "$ac_init_help" = "recursive"; then
1663   # If there are subdirs, report their specific --help.
1664   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1665     test -d "$ac_dir" ||
1666       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1667       continue
1668     ac_builddir=.
1669
1670 case "$ac_dir" in
1671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 *)
1673   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1674   # A ".." for each directory in $ac_dir_suffix.
1675   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1676   case $ac_top_builddir_sub in
1677   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679   esac ;;
1680 esac
1681 ac_abs_top_builddir=$ac_pwd
1682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683 # for backward compatibility:
1684 ac_top_builddir=$ac_top_build_prefix
1685
1686 case $srcdir in
1687   .)  # We are building in place.
1688     ac_srcdir=.
1689     ac_top_srcdir=$ac_top_builddir_sub
1690     ac_abs_top_srcdir=$ac_pwd ;;
1691   [\\/]* | ?:[\\/]* )  # Absolute name.
1692     ac_srcdir=$srcdir$ac_dir_suffix;
1693     ac_top_srcdir=$srcdir
1694     ac_abs_top_srcdir=$srcdir ;;
1695   *) # Relative name.
1696     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697     ac_top_srcdir=$ac_top_build_prefix$srcdir
1698     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1699 esac
1700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701
1702     cd "$ac_dir" || { ac_status=$?; continue; }
1703     # Check for guested configure.
1704     if test -f "$ac_srcdir/configure.gnu"; then
1705       echo &&
1706       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707     elif test -f "$ac_srcdir/configure"; then
1708       echo &&
1709       $SHELL "$ac_srcdir/configure" --help=recursive
1710     else
1711       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712     fi || ac_status=$?
1713     cd "$ac_pwd" || { ac_status=$?; break; }
1714   done
1715 fi
1716
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1719   cat <<\_ACEOF
1720 configure
1721 generated by GNU Autoconf 2.63
1722
1723 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1724 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1727 _ACEOF
1728   exit
1729 fi
1730 cat >config.log <<_ACEOF
1731 This file contains any messages produced by compilers while
1732 running configure, to aid debugging if configure makes a mistake.
1733
1734 It was created by $as_me, which was
1735 generated by GNU Autoconf 2.63.  Invocation command line was
1736
1737   $ $0 $@
1738
1739 _ACEOF
1740 exec 5>>config.log
1741 {
1742 cat <<_ASUNAME
1743 ## --------- ##
1744 ## Platform. ##
1745 ## --------- ##
1746
1747 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1748 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1749 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1750 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1751 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1752
1753 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1754 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1755
1756 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1757 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1758 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1759 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1760 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1761 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1762 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1763
1764 _ASUNAME
1765
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   $as_echo "PATH: $as_dir"
1772 done
1773 IFS=$as_save_IFS
1774
1775 } >&5
1776
1777 cat >&5 <<_ACEOF
1778
1779
1780 ## ----------- ##
1781 ## Core tests. ##
1782 ## ----------- ##
1783
1784 _ACEOF
1785
1786
1787 # Keep a trace of the command line.
1788 # Strip out --no-create and --no-recursion so they do not pile up.
1789 # Strip out --silent because we don't want to record it for future runs.
1790 # Also quote any args containing shell meta-characters.
1791 # Make two passes to allow for proper duplicate-argument suppression.
1792 ac_configure_args=
1793 ac_configure_args0=
1794 ac_configure_args1=
1795 ac_must_keep_next=false
1796 for ac_pass in 1 2
1797 do
1798   for ac_arg
1799   do
1800     case $ac_arg in
1801     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1802     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1803     | -silent | --silent | --silen | --sile | --sil)
1804       continue ;;
1805     *\'*)
1806       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1807     esac
1808     case $ac_pass in
1809     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1810     2)
1811       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1812       if test $ac_must_keep_next = true; then
1813         ac_must_keep_next=false # Got value, back to normal.
1814       else
1815         case $ac_arg in
1816           *=* | --config-cache | -C | -disable-* | --disable-* \
1817           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1818           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1819           | -with-* | --with-* | -without-* | --without-* | --x)
1820             case "$ac_configure_args0 " in
1821               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1822             esac
1823             ;;
1824           -* ) ac_must_keep_next=true ;;
1825         esac
1826       fi
1827       ac_configure_args="$ac_configure_args '$ac_arg'"
1828       ;;
1829     esac
1830   done
1831 done
1832 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1833 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1834
1835 # When interrupted or exit'd, cleanup temporary files, and complete
1836 # config.log.  We remove comments because anyway the quotes in there
1837 # would cause problems or look ugly.
1838 # WARNING: Use '\'' to represent an apostrophe within the trap.
1839 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1840 trap 'exit_status=$?
1841   # Save into config.log some information that might help in debugging.
1842   {
1843     echo
1844
1845     cat <<\_ASBOX
1846 ## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##
1849 _ASBOX
1850     echo
1851     # The following way of writing the cache mishandles newlines in values,
1852 (
1853   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1854     eval ac_val=\$$ac_var
1855     case $ac_val in #(
1856     *${as_nl}*)
1857       case $ac_var in #(
1858       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1860       esac
1861       case $ac_var in #(
1862       _ | IFS | as_nl) ;; #(
1863       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1864       *) $as_unset $ac_var ;;
1865       esac ;;
1866     esac
1867   done
1868   (set) 2>&1 |
1869     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1870     *${as_nl}ac_space=\ *)
1871       sed -n \
1872         "s/'\''/'\''\\\\'\'''\''/g;
1873           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1874       ;; #(
1875     *)
1876       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1877       ;;
1878     esac |
1879     sort
1880 )
1881     echo
1882
1883     cat <<\_ASBOX
1884 ## ----------------- ##
1885 ## Output variables. ##
1886 ## ----------------- ##
1887 _ASBOX
1888     echo
1889     for ac_var in $ac_subst_vars
1890     do
1891       eval ac_val=\$$ac_var
1892       case $ac_val in
1893       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894       esac
1895       $as_echo "$ac_var='\''$ac_val'\''"
1896     done | sort
1897     echo
1898
1899     if test -n "$ac_subst_files"; then
1900       cat <<\_ASBOX
1901 ## ------------------- ##
1902 ## File substitutions. ##
1903 ## ------------------- ##
1904 _ASBOX
1905       echo
1906       for ac_var in $ac_subst_files
1907       do
1908         eval ac_val=\$$ac_var
1909         case $ac_val in
1910         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911         esac
1912         $as_echo "$ac_var='\''$ac_val'\''"
1913       done | sort
1914       echo
1915     fi
1916
1917     if test -s confdefs.h; then
1918       cat <<\_ASBOX
1919 ## ----------- ##
1920 ## confdefs.h. ##
1921 ## ----------- ##
1922 _ASBOX
1923       echo
1924       cat confdefs.h
1925       echo
1926     fi
1927     test "$ac_signal" != 0 &&
1928       $as_echo "$as_me: caught signal $ac_signal"
1929     $as_echo "$as_me: exit $exit_status"
1930   } >&5
1931   rm -f core *.core core.conftest.* &&
1932     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1933     exit $exit_status
1934 ' 0
1935 for ac_signal in 1 2 13 15; do
1936   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1937 done
1938 ac_signal=0
1939
1940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1941 rm -f -r conftest* confdefs.h
1942
1943 # Predefined preprocessor variables.
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1947 _ACEOF
1948
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1952 _ACEOF
1953
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1957 _ACEOF
1958
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_STRING "$PACKAGE_STRING"
1962 _ACEOF
1963
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1967 _ACEOF
1968
1969
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer an explicitly selected file to automatically selected ones.
1972 ac_site_file1=NONE
1973 ac_site_file2=NONE
1974 if test -n "$CONFIG_SITE"; then
1975   ac_site_file1=$CONFIG_SITE
1976 elif test "x$prefix" != xNONE; then
1977   ac_site_file1=$prefix/share/config.site
1978   ac_site_file2=$prefix/etc/config.site
1979 else
1980   ac_site_file1=$ac_default_prefix/share/config.site
1981   ac_site_file2=$ac_default_prefix/etc/config.site
1982 fi
1983 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1984 do
1985   test "x$ac_site_file" = xNONE && continue
1986   if test -r "$ac_site_file"; then
1987     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989     sed 's/^/| /' "$ac_site_file" >&5
1990     . "$ac_site_file"
1991   fi
1992 done
1993
1994 if test -r "$cache_file"; then
1995   # Some versions of bash will fail to source /dev/null (special
1996   # files actually), so we avoid doing that.
1997   if test -f "$cache_file"; then
1998     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1999 $as_echo "$as_me: loading cache $cache_file" >&6;}
2000     case $cache_file in
2001       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2002       *)                      . "./$cache_file";;
2003     esac
2004   fi
2005 else
2006   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2007 $as_echo "$as_me: creating cache $cache_file" >&6;}
2008   >$cache_file
2009 fi
2010
2011 # Check that the precious variables saved in the cache have kept the same
2012 # value.
2013 ac_cache_corrupted=false
2014 for ac_var in $ac_precious_vars; do
2015   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2016   eval ac_new_set=\$ac_env_${ac_var}_set
2017   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2018   eval ac_new_val=\$ac_env_${ac_var}_value
2019   case $ac_old_set,$ac_new_set in
2020     set,)
2021       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2022 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2023       ac_cache_corrupted=: ;;
2024     ,set)
2025       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2027       ac_cache_corrupted=: ;;
2028     ,);;
2029     *)
2030       if test "x$ac_old_val" != "x$ac_new_val"; then
2031         # differences in whitespace do not lead to failure.
2032         ac_old_val_w=`echo x $ac_old_val`
2033         ac_new_val_w=`echo x $ac_new_val`
2034         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2035           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2036 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2037           ac_cache_corrupted=:
2038         else
2039           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2040 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2041           eval $ac_var=\$ac_old_val
2042         fi
2043         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2044 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2045         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2046 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2047       fi;;
2048   esac
2049   # Pass precious variables to config.status.
2050   if test "$ac_new_set" = set; then
2051     case $ac_new_val in
2052     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2053     *) ac_arg=$ac_var=$ac_new_val ;;
2054     esac
2055     case " $ac_configure_args " in
2056       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2057       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2058     esac
2059   fi
2060 done
2061 if $ac_cache_corrupted; then
2062   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2064   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2065 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2066   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2067 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092
2093
2094 ac_ext=c
2095 ac_cpp='$CPP $CPPFLAGS'
2096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2099
2100
2101
2102
2103
2104
2105         { $as_echo "$as_me:$LINENO: checking metadata" >&5
2106 $as_echo_n "checking metadata... " >&6; }
2107
2108         META="$srcdir/META"
2109         _zfs_ac_meta_got_file=no
2110         if test -f "$META"; then
2111                 _zfs_ac_meta_got_file=yes
2112
2113                 ZFS_META_NAME=`perl -n\
2114                 -e "BEGIN { \\$key=shift @ARGV; }"\
2115                 -e "next unless s/^\s*\\$key[:=]//i;"\
2116                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2117                 -e "s/^\s+//;"\
2118                 -e "s/\s+$//;"\
2119                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2120                 -e "\\$val=\\$_;"\
2121                 -e "END { print \\$val if defined \\$val; }"\
2122                 '(?:NAME|PROJECT|PACKAGE)' $META`;
2123                 if test -n "$ZFS_META_NAME"; then
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define ZFS_META_NAME "$ZFS_META_NAME"
2127 _ACEOF
2128
2129
2130                 fi
2131
2132                 ZFS_META_VERSION=`perl -n\
2133                 -e "BEGIN { \\$key=shift @ARGV; }"\
2134                 -e "next unless s/^\s*\\$key[:=]//i;"\
2135                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2136                 -e "s/^\s+//;"\
2137                 -e "s/\s+$//;"\
2138                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2139                 -e "\\$val=\\$_;"\
2140                 -e "END { print \\$val if defined \\$val; }"\
2141                 'VERSION' $META`;
2142                 if test -n "$ZFS_META_VERSION"; then
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2146 _ACEOF
2147
2148
2149                 fi
2150
2151                 ZFS_META_RELEASE=`perl -n\
2152                 -e "BEGIN { \\$key=shift @ARGV; }"\
2153                 -e "next unless s/^\s*\\$key[:=]//i;"\
2154                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2155                 -e "s/^\s+//;"\
2156                 -e "s/\s+$//;"\
2157                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2158                 -e "\\$val=\\$_;"\
2159                 -e "END { print \\$val if defined \\$val; }"\
2160                 'RELEASE' $META`;
2161                 if test -n "$ZFS_META_RELEASE"; then
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2165 _ACEOF
2166
2167
2168                 fi
2169
2170                 ZFS_META_LICENSE=`perl -n\
2171                 -e "BEGIN { \\$key=shift @ARGV; }"\
2172                 -e "next unless s/^\s*\\$key[:=]//i;"\
2173                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2174                 -e "s/^\s+//;"\
2175                 -e "s/\s+$//;"\
2176                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2177                 -e "\\$val=\\$_;"\
2178                 -e "END { print \\$val if defined \\$val; }"\
2179                 'LICENSE' $META`;
2180                 if test -n "$ZFS_META_LICENSE"; then
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2184 _ACEOF
2185
2186
2187                 fi
2188
2189                 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2190                                 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2191                                 test -n "$ZFS_META_RELEASE" &&
2192                                         ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2196 _ACEOF
2197
2198
2199                 fi
2200
2201                 ZFS_META_DATA=`perl -n\
2202                 -e "BEGIN { \\$key=shift @ARGV; }"\
2203                 -e "next unless s/^\s*\\$key[:=]//i;"\
2204                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2205                 -e "s/^\s+//;"\
2206                 -e "s/\s+$//;"\
2207                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2208                 -e "\\$val=\\$_;"\
2209                 -e "END { print \\$val if defined \\$val; }"\
2210                 'DATE' $META`;
2211                 if test -n "$ZFS_META_DATA"; then
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define ZFS_META_DATA "$ZFS_META_DATA"
2215 _ACEOF
2216
2217
2218                 fi
2219
2220                 ZFS_META_AUTHOR=`perl -n\
2221                 -e "BEGIN { \\$key=shift @ARGV; }"\
2222                 -e "next unless s/^\s*\\$key[:=]//i;"\
2223                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2224                 -e "s/^\s+//;"\
2225                 -e "s/\s+$//;"\
2226                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2227                 -e "\\$val=\\$_;"\
2228                 -e "END { print \\$val if defined \\$val; }"\
2229                 'AUTHOR' $META`;
2230                 if test -n "$ZFS_META_AUTHOR"; then
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2234 _ACEOF
2235
2236
2237                 fi
2238
2239
2240                 ZFS_META_LT_CURRENT=`perl -n\
2241                 -e "BEGIN { \\$key=shift @ARGV; }"\
2242                 -e "next unless s/^\s*\\$key[:=]//i;"\
2243                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2244                 -e "s/^\s+//;"\
2245                 -e "s/\s+$//;"\
2246                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2247                 -e "\\$val=\\$_;"\
2248                 -e "END { print \\$val if defined \\$val; }"\
2249                 'LT_CURRENT' $META`;
2250                 ZFS_META_LT_REVISION=`perl -n\
2251                 -e "BEGIN { \\$key=shift @ARGV; }"\
2252                 -e "next unless s/^\s*\\$key[:=]//i;"\
2253                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2254                 -e "s/^\s+//;"\
2255                 -e "s/\s+$//;"\
2256                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2257                 -e "\\$val=\\$_;"\
2258                 -e "END { print \\$val if defined \\$val; }"\
2259                 'LT_REVISION' $META`;
2260                 ZFS_META_LT_AGE=`perl -n\
2261                 -e "BEGIN { \\$key=shift @ARGV; }"\
2262                 -e "next unless s/^\s*\\$key[:=]//i;"\
2263                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2264                 -e "s/^\s+//;"\
2265                 -e "s/\s+$//;"\
2266                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2267                 -e "\\$val=\\$_;"\
2268                 -e "END { print \\$val if defined \\$val; }"\
2269                 'LT_AGE' $META`;
2270                 if test -n "$ZFS_META_LT_CURRENT" \
2271                                  -o -n "$ZFS_META_LT_REVISION" \
2272                                  -o -n "$ZFS_META_LT_AGE"; then
2273                         test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2274                         test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2275                         test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2279 _ACEOF
2280
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2284 _ACEOF
2285
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2289 _ACEOF
2290
2291
2292
2293
2294                 fi
2295         fi
2296
2297         { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2298 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2299
2300
2301 ac_aux_dir=
2302 for ac_dir in config "$srcdir"/config; do
2303   if test -f "$ac_dir/install-sh"; then
2304     ac_aux_dir=$ac_dir
2305     ac_install_sh="$ac_aux_dir/install-sh -c"
2306     break
2307   elif test -f "$ac_dir/install.sh"; then
2308     ac_aux_dir=$ac_dir
2309     ac_install_sh="$ac_aux_dir/install.sh -c"
2310     break
2311   elif test -f "$ac_dir/shtool"; then
2312     ac_aux_dir=$ac_dir
2313     ac_install_sh="$ac_aux_dir/shtool install -c"
2314     break
2315   fi
2316 done
2317 if test -z "$ac_aux_dir"; then
2318   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2319 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2320    { (exit 1); exit 1; }; }
2321 fi
2322
2323 # These three variables are undocumented and unsupported,
2324 # and are intended to be withdrawn in a future Autoconf release.
2325 # They can cause serious problems if a builder's source tree is in a directory
2326 # whose full name contains unusual characters.
2327 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2328 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2329 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2330
2331
2332 # Make sure we can run config.sub.
2333 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2334   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2335 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2336    { (exit 1); exit 1; }; }
2337
2338 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2339 $as_echo_n "checking build system type... " >&6; }
2340 if test "${ac_cv_build+set}" = set; then
2341   $as_echo_n "(cached) " >&6
2342 else
2343   ac_build_alias=$build_alias
2344 test "x$ac_build_alias" = x &&
2345   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2346 test "x$ac_build_alias" = x &&
2347   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2348 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2349    { (exit 1); exit 1; }; }
2350 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2351   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2352 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2353    { (exit 1); exit 1; }; }
2354
2355 fi
2356 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2357 $as_echo "$ac_cv_build" >&6; }
2358 case $ac_cv_build in
2359 *-*-*) ;;
2360 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2361 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2362    { (exit 1); exit 1; }; };;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376
2377
2378 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if test "${ac_cv_host+set}" = set; then
2381   $as_echo_n "(cached) " >&6
2382 else
2383   if test "x$host_alias" = x; then
2384   ac_cv_host=$ac_cv_build
2385 else
2386   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2388 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2389    { (exit 1); exit 1; }; }
2390 fi
2391
2392 fi
2393 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2394 $as_echo "$ac_cv_host" >&6; }
2395 case $ac_cv_host in
2396 *-*-*) ;;
2397 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2398 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2399    { (exit 1); exit 1; }; };;
2400 esac
2401 host=$ac_cv_host
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_host
2404 shift
2405 host_cpu=$1
2406 host_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 host_os=$*
2411 IFS=$ac_save_IFS
2412 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2413
2414
2415 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2416 $as_echo_n "checking target system type... " >&6; }
2417 if test "${ac_cv_target+set}" = set; then
2418   $as_echo_n "(cached) " >&6
2419 else
2420   if test "x$target_alias" = x; then
2421   ac_cv_target=$ac_cv_host
2422 else
2423   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2424     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2425 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2426    { (exit 1); exit 1; }; }
2427 fi
2428
2429 fi
2430 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2431 $as_echo "$ac_cv_target" >&6; }
2432 case $ac_cv_target in
2433 *-*-*) ;;
2434 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2435 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2436    { (exit 1); exit 1; }; };;
2437 esac
2438 target=$ac_cv_target
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_target
2441 shift
2442 target_cpu=$1
2443 target_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 target_os=$*
2448 IFS=$ac_save_IFS
2449 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2450
2451
2452 # The aliases save the names the user supplied, while $host etc.
2453 # will get canonicalized.
2454 test -n "$target_alias" &&
2455   test "$program_prefix$program_suffix$program_transform_name" = \
2456     NONENONEs,x,x, &&
2457   program_prefix=${target_alias}-
2458
2459 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2460 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2461     # Check whether --enable-maintainer-mode was given.
2462 if test "${enable_maintainer_mode+set}" = set; then
2463   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2464 else
2465   USE_MAINTAINER_MODE=no
2466 fi
2467
2468   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2469 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2470    if test $USE_MAINTAINER_MODE = yes; then
2471   MAINTAINER_MODE_TRUE=
2472   MAINTAINER_MODE_FALSE='#'
2473 else
2474   MAINTAINER_MODE_TRUE='#'
2475   MAINTAINER_MODE_FALSE=
2476 fi
2477
2478   MAINT=$MAINTAINER_MODE_TRUE
2479
2480
2481 # Check whether --enable-silent-rules was given.
2482 if test "${enable_silent_rules+set}" = set; then
2483   enableval=$enable_silent_rules;
2484 fi
2485
2486 case $enable_silent_rules in
2487 yes) AM_DEFAULT_VERBOSITY=0;;
2488 no)  AM_DEFAULT_VERBOSITY=1;;
2489 *)   AM_DEFAULT_VERBOSITY=1;;
2490 esac
2491 AM_BACKSLASH='\'
2492
2493 am__api_version='1.11'
2494
2495 # Find a good install program.  We prefer a C program (faster),
2496 # so one script is as good as another.  But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2501 # AIX /bin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 # Reject install programs that cannot install multiple files.
2509 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2510 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2511 if test -z "$INSTALL"; then
2512 if test "${ac_cv_path_install+set}" = set; then
2513   $as_echo_n "(cached) " >&6
2514 else
2515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520   # Account for people who put trailing slashes in PATH elements.
2521 case $as_dir/ in
2522   ./ | .// | /cC/* | \
2523   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2524   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2525   /usr/ucb/* ) ;;
2526   *)
2527     # OSF1 and SCO ODT 3.0 have their own names for install.
2528     # Don't use installbsd from OSF since it installs stuff as root
2529     # by default.
2530     for ac_prog in ginstall scoinst install; do
2531       for ac_exec_ext in '' $ac_executable_extensions; do
2532         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2533           if test $ac_prog = install &&
2534             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535             # AIX install.  It has an incompatible calling convention.
2536             :
2537           elif test $ac_prog = install &&
2538             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539             # program-specific install script used by HP pwplus--don't use.
2540             :
2541           else
2542             rm -rf conftest.one conftest.two conftest.dir
2543             echo one > conftest.one
2544             echo two > conftest.two
2545             mkdir conftest.dir
2546             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2547               test -s conftest.one && test -s conftest.two &&
2548               test -s conftest.dir/conftest.one &&
2549               test -s conftest.dir/conftest.two
2550             then
2551               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2552               break 3
2553             fi
2554           fi
2555         fi
2556       done
2557     done
2558     ;;
2559 esac
2560
2561 done
2562 IFS=$as_save_IFS
2563
2564 rm -rf conftest.one conftest.two conftest.dir
2565
2566 fi
2567   if test "${ac_cv_path_install+set}" = set; then
2568     INSTALL=$ac_cv_path_install
2569   else
2570     # As a last resort, use the slow shell script.  Don't cache a
2571     # value for INSTALL within a source directory, because that will
2572     # break other packages using the cache if that directory is
2573     # removed, or if the value is a relative name.
2574     INSTALL=$ac_install_sh
2575   fi
2576 fi
2577 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2578 $as_echo "$INSTALL" >&6; }
2579
2580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2581 # It thinks the first close brace ends the variable substitution.
2582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2583
2584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2585
2586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2587
2588 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2589 $as_echo_n "checking whether build environment is sane... " >&6; }
2590 # Just in case
2591 sleep 1
2592 echo timestamp > conftest.file
2593 # Reject unsafe characters in $srcdir or the absolute working directory
2594 # name.  Accept space and tab only in the latter.
2595 am_lf='
2596 '
2597 case `pwd` in
2598   *[\\\"\#\$\&\'\`$am_lf]*)
2599     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2600 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2601    { (exit 1); exit 1; }; };;
2602 esac
2603 case $srcdir in
2604   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2605     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2606 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2607    { (exit 1); exit 1; }; };;
2608 esac
2609
2610 # Do `set' in a subshell so we don't clobber the current shell's
2611 # arguments.  Must try -L first in case configure is actually a
2612 # symlink; some systems play weird games with the mod time of symlinks
2613 # (eg FreeBSD returns the mod time of the symlink's containing
2614 # directory).
2615 if (
2616    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2617    if test "$*" = "X"; then
2618       # -L didn't work.
2619       set X `ls -t "$srcdir/configure" conftest.file`
2620    fi
2621    rm -f conftest.file
2622    if test "$*" != "X $srcdir/configure conftest.file" \
2623       && test "$*" != "X conftest.file $srcdir/configure"; then
2624
2625       # If neither matched, then we have a broken ls.  This can happen
2626       # if, for instance, CONFIG_SHELL is bash and it inherits a
2627       # broken ls alias from the environment.  This has actually
2628       # happened.  Such a system could not be considered "sane".
2629       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2630 alias in your environment" >&5
2631 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2632 alias in your environment" >&2;}
2633    { (exit 1); exit 1; }; }
2634    fi
2635
2636    test "$2" = conftest.file
2637    )
2638 then
2639    # Ok.
2640    :
2641 else
2642    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2643 Check your system clock" >&5
2644 $as_echo "$as_me: error: newly created file is older than distributed files!
2645 Check your system clock" >&2;}
2646    { (exit 1); exit 1; }; }
2647 fi
2648 { $as_echo "$as_me:$LINENO: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 test "$program_prefix" != NONE &&
2651   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2652 # Use a double $ so make ignores it.
2653 test "$program_suffix" != NONE &&
2654   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2655 # Double any \ or $.
2656 # By default was `s,x,x', remove it if useless.
2657 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2658 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2659
2660 # expand $ac_aux_dir to an absolute path
2661 am_aux_dir=`cd $ac_aux_dir && pwd`
2662
2663 if test x"${MISSING+set}" != xset; then
2664   case $am_aux_dir in
2665   *\ * | *\     *)
2666     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2667   *)
2668     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2669   esac
2670 fi
2671 # Use eval to expand $SHELL
2672 if eval "$MISSING --run true"; then
2673   am_missing_run="$MISSING --run "
2674 else
2675   am_missing_run=
2676   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2677 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2678 fi
2679
2680 if test x"${install_sh}" != xset; then
2681   case $am_aux_dir in
2682   *\ * | *\     *)
2683     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2684   *)
2685     install_sh="\${SHELL} $am_aux_dir/install-sh"
2686   esac
2687 fi
2688
2689 # Installed binaries are usually stripped using `strip' when the user
2690 # run `make install-strip'.  However `strip' might not be the right
2691 # tool to use in cross-compilation environments, therefore Automake
2692 # will honor the `STRIP' environment variable to overrule this program.
2693 if test "$cross_compiling" != no; then
2694   if test -n "$ac_tool_prefix"; then
2695   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}strip; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_STRIP+set}" = set; then
2700   $as_echo_n "(cached) " >&6
2701 else
2702   if test -n "$STRIP"; then
2703   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710   for ac_exec_ext in '' $ac_executable_extensions; do
2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 STRIP=$ac_cv_prog_STRIP
2723 if test -n "$STRIP"; then
2724   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2725 $as_echo "$STRIP" >&6; }
2726 else
2727   { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732 fi
2733 if test -z "$ac_cv_prog_STRIP"; then
2734   ac_ct_STRIP=$STRIP
2735   # Extract the first word of "strip", so it can be a program name with args.
2736 set dummy strip; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2740   $as_echo_n "(cached) " >&6
2741 else
2742   if test -n "$ac_ct_STRIP"; then
2743   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750   for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_prog_ac_ct_STRIP="strip"
2753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2763 if test -n "$ac_ct_STRIP"; then
2764   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2765 $as_echo "$ac_ct_STRIP" >&6; }
2766 else
2767   { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771   if test "x$ac_ct_STRIP" = x; then
2772     STRIP=":"
2773   else
2774     case $cross_compiling:$ac_tool_warned in
2775 yes:)
2776 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778 ac_tool_warned=yes ;;
2779 esac
2780     STRIP=$ac_ct_STRIP
2781   fi
2782 else
2783   STRIP="$ac_cv_prog_STRIP"
2784 fi
2785
2786 fi
2787 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2788
2789 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2790 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2791 if test -z "$MKDIR_P"; then
2792   if test "${ac_cv_path_mkdir+set}" = set; then
2793   $as_echo_n "(cached) " >&6
2794 else
2795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_prog in mkdir gmkdir; do
2801          for ac_exec_ext in '' $ac_executable_extensions; do
2802            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2803            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2804              'mkdir (GNU coreutils) '* | \
2805              'mkdir (coreutils) '* | \
2806              'mkdir (fileutils) '4.1*)
2807                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2808                break 3;;
2809            esac
2810          done
2811        done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816
2817   if test "${ac_cv_path_mkdir+set}" = set; then
2818     MKDIR_P="$ac_cv_path_mkdir -p"
2819   else
2820     # As a last resort, use the slow shell script.  Don't cache a
2821     # value for MKDIR_P within a source directory, because that will
2822     # break other packages using the cache if that directory is
2823     # removed, or if the value is a relative name.
2824     test -d ./--version && rmdir ./--version
2825     MKDIR_P="$ac_install_sh -d"
2826   fi
2827 fi
2828 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2829 $as_echo "$MKDIR_P" >&6; }
2830
2831 mkdir_p="$MKDIR_P"
2832 case $mkdir_p in
2833   [\\/$]* | ?:[\\/]*) ;;
2834   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2835 esac
2836
2837 for ac_prog in gawk mawk nawk awk
2838 do
2839   # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_AWK+set}" = set; then
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$AWK"; then
2847   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_AWK="$ac_prog"
2857     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 AWK=$ac_cv_prog_AWK
2867 if test -n "$AWK"; then
2868   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2869 $as_echo "$AWK" >&6; }
2870 else
2871   { $as_echo "$as_me:$LINENO: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876   test -n "$AWK" && break
2877 done
2878
2879 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2881 set x ${MAKE-make}
2882 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2883 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2884   $as_echo_n "(cached) " >&6
2885 else
2886   cat >conftest.make <<\_ACEOF
2887 SHELL = /bin/sh
2888 all:
2889         @echo '@@@%%%=$(MAKE)=@@@%%%'
2890 _ACEOF
2891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2893   *@@@%%%=?*=@@@%%%*)
2894     eval ac_cv_prog_make_${ac_make}_set=yes;;
2895   *)
2896     eval ac_cv_prog_make_${ac_make}_set=no;;
2897 esac
2898 rm -f conftest.make
2899 fi
2900 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2901   { $as_echo "$as_me:$LINENO: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903   SET_MAKE=
2904 else
2905   { $as_echo "$as_me:$LINENO: result: no" >&5
2906 $as_echo "no" >&6; }
2907   SET_MAKE="MAKE=${MAKE-make}"
2908 fi
2909
2910 rm -rf .tst 2>/dev/null
2911 mkdir .tst 2>/dev/null
2912 if test -d .tst; then
2913   am__leading_dot=.
2914 else
2915   am__leading_dot=_
2916 fi
2917 rmdir .tst 2>/dev/null
2918
2919 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2920   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2921   # is not polluted with repeated "-I."
2922   am__isrc=' -I$(srcdir)'
2923   # test to see if srcdir already configured
2924   if test -f $srcdir/config.status; then
2925     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2926 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2927    { (exit 1); exit 1; }; }
2928   fi
2929 fi
2930
2931 # test whether we have cygpath
2932 if test -z "$CYGPATH_W"; then
2933   if (cygpath --version) >/dev/null 2>/dev/null; then
2934     CYGPATH_W='cygpath -w'
2935   else
2936     CYGPATH_W=echo
2937   fi
2938 fi
2939
2940
2941 # Define the identity of the package.
2942  PACKAGE=$ZFS_META_NAME
2943  VERSION=$ZFS_META_VERSION
2944
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE "$PACKAGE"
2948 _ACEOF
2949
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define VERSION "$VERSION"
2953 _ACEOF
2954
2955 # Some tools Automake needs.
2956
2957 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2958
2959
2960 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2961
2962
2963 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2964
2965
2966 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2967
2968
2969 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2970
2971 # We need awk for the "check" target.  The system "awk" is bad on
2972 # some platforms.
2973 # Always define AMTAR for backward compatibility.
2974
2975 AMTAR=${AMTAR-"${am_missing_run}tar"}
2976
2977 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2978
2979
2980
2981
2982
2983 ac_config_headers="$ac_config_headers zfs_config.h"
2984
2985
2986 # Find a good install program.  We prefer a C program (faster),
2987 # so one script is as good as another.  But avoid the broken or
2988 # incompatible versions:
2989 # SysV /etc/install, /usr/sbin/install
2990 # SunOS /usr/etc/install
2991 # IRIX /sbin/install
2992 # AIX /bin/install
2993 # AmigaOS /C/install, which installs bootblocks on floppy discs
2994 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2995 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2996 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2997 # OS/2's system install, which has a completely different semantic
2998 # ./install, which can be erroneously created by make from ./install.sh.
2999 # Reject install programs that cannot install multiple files.
3000 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3001 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3002 if test -z "$INSTALL"; then
3003 if test "${ac_cv_path_install+set}" = set; then
3004   $as_echo_n "(cached) " >&6
3005 else
3006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011   # Account for people who put trailing slashes in PATH elements.
3012 case $as_dir/ in
3013   ./ | .// | /cC/* | \
3014   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3015   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3016   /usr/ucb/* ) ;;
3017   *)
3018     # OSF1 and SCO ODT 3.0 have their own names for install.
3019     # Don't use installbsd from OSF since it installs stuff as root
3020     # by default.
3021     for ac_prog in ginstall scoinst install; do
3022       for ac_exec_ext in '' $ac_executable_extensions; do
3023         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3024           if test $ac_prog = install &&
3025             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3026             # AIX install.  It has an incompatible calling convention.
3027             :
3028           elif test $ac_prog = install &&
3029             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3030             # program-specific install script used by HP pwplus--don't use.
3031             :
3032           else
3033             rm -rf conftest.one conftest.two conftest.dir
3034             echo one > conftest.one
3035             echo two > conftest.two
3036             mkdir conftest.dir
3037             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3038               test -s conftest.one && test -s conftest.two &&
3039               test -s conftest.dir/conftest.one &&
3040               test -s conftest.dir/conftest.two
3041             then
3042               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3043               break 3
3044             fi
3045           fi
3046         fi
3047       done
3048     done
3049     ;;
3050 esac
3051
3052 done
3053 IFS=$as_save_IFS
3054
3055 rm -rf conftest.one conftest.two conftest.dir
3056
3057 fi
3058   if test "${ac_cv_path_install+set}" = set; then
3059     INSTALL=$ac_cv_path_install
3060   else
3061     # As a last resort, use the slow shell script.  Don't cache a
3062     # value for INSTALL within a source directory, because that will
3063     # break other packages using the cache if that directory is
3064     # removed, or if the value is a relative name.
3065     INSTALL=$ac_install_sh
3066   fi
3067 fi
3068 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3069 $as_echo "$INSTALL" >&6; }
3070
3071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3072 # It thinks the first close brace ends the variable substitution.
3073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3074
3075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3076
3077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3078
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 if test -n "$ac_tool_prefix"; then
3085   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_CC+set}" = set; then
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$CC"; then
3093   ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100   for ac_exec_ext in '' $ac_executable_extensions; do
3101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3103     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117   { $as_echo "$as_me:$LINENO: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 fi
3123 if test -z "$ac_cv_prog_CC"; then
3124   ac_ct_CC=$CC
3125   # Extract the first word of "gcc", so it can be a program name with args.
3126 set dummy gcc; ac_word=$2
3127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if test -n "$ac_ct_CC"; then
3133   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140   for ac_exec_ext in '' $ac_executable_extensions; do
3141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142     ac_cv_prog_ac_ct_CC="gcc"
3143     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3155 $as_echo "$ac_ct_CC" >&6; }
3156 else
3157   { $as_echo "$as_me:$LINENO: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161   if test "x$ac_ct_CC" = x; then
3162     CC=""
3163   else
3164     case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170     CC=$ac_ct_CC
3171   fi
3172 else
3173   CC="$ac_cv_prog_CC"
3174 fi
3175
3176 if test -z "$CC"; then
3177           if test -n "$ac_tool_prefix"; then
3178     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3179 set dummy ${ac_tool_prefix}cc; ac_word=$2
3180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_CC+set}" = set; then
3183   $as_echo_n "(cached) " >&6
3184 else
3185   if test -n "$CC"; then
3186   ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191   IFS=$as_save_IFS
3192   test -z "$as_dir" && as_dir=.
3193   for ac_exec_ext in '' $ac_executable_extensions; do
3194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195     ac_cv_prog_CC="${ac_tool_prefix}cc"
3196     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197     break 2
3198   fi
3199 done
3200 done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210   { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215   fi
3216 fi
3217 if test -z "$CC"; then
3218   # Extract the first word of "cc", so it can be a program name with args.
3219 set dummy cc; ac_word=$2
3220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then
3223   $as_echo_n "(cached) " >&6
3224 else
3225   if test -n "$CC"; then
3226   ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228   ac_prog_rejected=no
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234   for ac_exec_ext in '' $ac_executable_extensions; do
3235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3237        ac_prog_rejected=yes
3238        continue
3239      fi
3240     ac_cv_prog_CC="cc"
3241     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245 done
3246 IFS=$as_save_IFS
3247
3248 if test $ac_prog_rejected = yes; then
3249   # We found a bogon in the path, so make sure we never use it.
3250   set dummy $ac_cv_prog_CC
3251   shift
3252   if test $# != 0; then
3253     # We chose a different compiler from the bogus one.
3254     # However, it has the same basename, so the bogon will be chosen
3255     # first if we set CC to just the basename; use the full file name.
3256     shift
3257     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3258   fi
3259 fi
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267   { $as_echo "$as_me:$LINENO: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272 fi
3273 if test -z "$CC"; then
3274   if test -n "$ac_tool_prefix"; then
3275   for ac_prog in cl.exe
3276   do
3277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292   for ac_exec_ext in '' $ac_executable_extensions; do
3293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3295     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309   { $as_echo "$as_me:$LINENO: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314     test -n "$CC" && break
3315   done
3316 fi
3317 if test -z "$CC"; then
3318   ac_ct_CC=$CC
3319   for ac_prog in cl.exe
3320 do
3321   # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326   $as_echo_n "(cached) " >&6
3327 else
3328   if test -n "$ac_ct_CC"; then
3329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336   for ac_exec_ext in '' $ac_executable_extensions; do
3337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338     ac_cv_prog_ac_ct_CC="$ac_prog"
3339     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3349 if test -n "$ac_ct_CC"; then
3350   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3351 $as_echo "$ac_ct_CC" >&6; }
3352 else
3353   { $as_echo "$as_me:$LINENO: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3356
3357
3358   test -n "$ac_ct_CC" && break
3359 done
3360
3361   if test "x$ac_ct_CC" = x; then
3362     CC=""
3363   else
3364     case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned=yes ;;
3369 esac
3370     CC=$ac_ct_CC
3371   fi
3372 fi
3373
3374 fi
3375
3376
3377 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3380 See \`config.log' for more details." >&5
3381 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details." >&2;}
3383    { (exit 1); exit 1; }; }; }
3384
3385 # Provide some information about the compiler.
3386 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3387 set X $ac_compile
3388 ac_compiler=$2
3389 { (ac_try="$ac_compiler --version >&5"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396   (eval "$ac_compiler --version >&5") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }
3400 { (ac_try="$ac_compiler -v >&5"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407   (eval "$ac_compiler -v >&5") 2>&5
3408   ac_status=$?
3409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }
3411 { (ac_try="$ac_compiler -V >&5"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418   (eval "$ac_compiler -V >&5") 2>&5
3419   ac_status=$?
3420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); }
3422
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 ac_clean_files_save=$ac_clean_files
3439 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3440 # Try to create an executable without -o first, disregard a.out.
3441 # It will help us diagnose broken compilers, and finding out an intuition
3442 # of exeext.
3443 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3444 $as_echo_n "checking for C compiler default output file name... " >&6; }
3445 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3446
3447 # The possible output files:
3448 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3449
3450 ac_rmfiles=
3451 for ac_file in $ac_files
3452 do
3453   case $ac_file in
3454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3455     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3456   esac
3457 done
3458 rm -f $ac_rmfiles
3459
3460 if { (ac_try="$ac_link_default"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467   (eval "$ac_link_default") 2>&5
3468   ac_status=$?
3469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; then
3471   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3472 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3473 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3474 # so that the user can short-circuit this test for compilers unknown to
3475 # Autoconf.
3476 for ac_file in $ac_files ''
3477 do
3478   test -f "$ac_file" || continue
3479   case $ac_file in
3480     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3481         ;;
3482     [ab].out )
3483         # We found the default executable, but exeext='' is most
3484         # certainly right.
3485         break;;
3486     *.* )
3487         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3488         then :; else
3489            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3490         fi
3491         # We set ac_cv_exeext here because the later test for it is not
3492         # safe: cross compilers may not add the suffix if given an `-o'
3493         # argument, so we may need to know it at that point already.
3494         # Even if this section looks crufty: it has the advantage of
3495         # actually working.
3496         break;;
3497     * )
3498         break;;
3499   esac
3500 done
3501 test "$ac_cv_exeext" = no && ac_cv_exeext=
3502
3503 else
3504   ac_file=''
3505 fi
3506
3507 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3508 $as_echo "$ac_file" >&6; }
3509 if test -z "$ac_file"; then
3510   $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3516 See \`config.log' for more details." >&5
3517 $as_echo "$as_me: error: C compiler cannot create executables
3518 See \`config.log' for more details." >&2;}
3519    { (exit 77); exit 77; }; }; }
3520 fi
3521
3522 ac_exeext=$ac_cv_exeext
3523
3524 # Check that the compiler produces executables we can run.  If not, either
3525 # the compiler is broken, or we cross compile.
3526 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3527 $as_echo_n "checking whether the C compiler works... " >&6; }
3528 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3529 # If not cross compiling, check that we can run a simple program.
3530 if test "$cross_compiling" != yes; then
3531   if { ac_try='./$ac_file'
3532   { (case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3537 $as_echo "$ac_try_echo") >&5
3538   (eval "$ac_try") 2>&5
3539   ac_status=$?
3540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542     cross_compiling=no
3543   else
3544     if test "$cross_compiling" = maybe; then
3545         cross_compiling=yes
3546     else
3547         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3550 If you meant to cross compile, use \`--host'.
3551 See \`config.log' for more details." >&5
3552 $as_echo "$as_me: error: cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details." >&2;}
3555    { (exit 1); exit 1; }; }; }
3556     fi
3557   fi
3558 fi
3559 { $as_echo "$as_me:$LINENO: result: yes" >&5
3560 $as_echo "yes" >&6; }
3561
3562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3563 ac_clean_files=$ac_clean_files_save
3564 # Check that the compiler produces executables we can run.  If not, either
3565 # the compiler is broken, or we cross compile.
3566 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3567 $as_echo_n "checking whether we are cross compiling... " >&6; }
3568 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3569 $as_echo "$cross_compiling" >&6; }
3570
3571 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3572 $as_echo_n "checking for suffix of executables... " >&6; }
3573 if { (ac_try="$ac_link"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3579 $as_echo "$ac_try_echo") >&5
3580   (eval "$ac_link") 2>&5
3581   ac_status=$?
3582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); }; then
3584   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3585 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3586 # work properly (i.e., refer to `conftest.exe'), while it won't with
3587 # `rm'.
3588 for ac_file in conftest.exe conftest conftest.*; do
3589   test -f "$ac_file" || continue
3590   case $ac_file in
3591     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3592     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3593           break;;
3594     * ) break;;
3595   esac
3596 done
3597 else
3598   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3601 See \`config.log' for more details." >&5
3602 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3603 See \`config.log' for more details." >&2;}
3604    { (exit 1); exit 1; }; }; }
3605 fi
3606
3607 rm -f conftest$ac_cv_exeext
3608 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3609 $as_echo "$ac_cv_exeext" >&6; }
3610
3611 rm -f conftest.$ac_ext
3612 EXEEXT=$ac_cv_exeext
3613 ac_exeext=$EXEEXT
3614 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if test "${ac_cv_objext+set}" = set; then
3617   $as_echo_n "(cached) " >&6
3618 else
3619   cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h.  */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h.  */
3625
3626 int
3627 main ()
3628 {
3629
3630   ;
3631   return 0;
3632 }
3633 _ACEOF
3634 rm -f conftest.o conftest.obj
3635 if { (ac_try="$ac_compile"
3636 case "(($ac_try" in
3637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638   *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3641 $as_echo "$ac_try_echo") >&5
3642   (eval "$ac_compile") 2>&5
3643   ac_status=$?
3644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; then
3646   for ac_file in conftest.o conftest.obj conftest.*; do
3647   test -f "$ac_file" || continue;
3648   case $ac_file in
3649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3650     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3651        break;;
3652   esac
3653 done
3654 else
3655   $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3661 See \`config.log' for more details." >&5
3662 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3663 See \`config.log' for more details." >&2;}
3664    { (exit 1); exit 1; }; }; }
3665 fi
3666
3667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3668 fi
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
3671 OBJEXT=$ac_cv_objext
3672 ac_objext=$OBJEXT
3673 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3676   $as_echo_n "(cached) " >&6
3677 else
3678   cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684
3685 int
3686 main ()
3687 {
3688 #ifndef __GNUC__
3689        choke me
3690 #endif
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   ac_compiler_gnu=yes
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719         ac_compiler_gnu=no
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724
3725 fi
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3729   GCC=yes
3730 else
3731   GCC=
3732 fi
3733 ac_test_CFLAGS=${CFLAGS+set}
3734 ac_save_CFLAGS=$CFLAGS
3735 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3737 if test "${ac_cv_prog_cc_g+set}" = set; then
3738   $as_echo_n "(cached) " >&6
3739 else
3740   ac_save_c_werror_flag=$ac_c_werror_flag
3741    ac_c_werror_flag=yes
3742    ac_cv_prog_cc_g=no
3743    CFLAGS="-g"
3744    cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767   (eval "$ac_compile") 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } && {
3774          test -z "$ac_c_werror_flag" ||
3775          test ! -s conftest.err
3776        } && test -s conftest.$ac_objext; then
3777   ac_cv_prog_cc_g=yes
3778 else
3779   $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782         CFLAGS=""
3783       cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3805 $as_echo "$ac_try_echo") >&5
3806   (eval "$ac_compile") 2>conftest.er1
3807   ac_status=$?
3808   grep -v '^ *+' conftest.er1 >conftest.err
3809   rm -f conftest.er1
3810   cat conftest.err >&5
3811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } && {
3813          test -z "$ac_c_werror_flag" ||
3814          test ! -s conftest.err
3815        } && test -s conftest.$ac_objext; then
3816   :
3817 else
3818   $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821         ac_c_werror_flag=$ac_save_c_werror_flag
3822          CFLAGS="-g"
3823          cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3845 $as_echo "$ac_try_echo") >&5
3846   (eval "$ac_compile") 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } && {
3853          test -z "$ac_c_werror_flag" ||
3854          test ! -s conftest.err
3855        } && test -s conftest.$ac_objext; then
3856   ac_cv_prog_cc_g=yes
3857 else
3858   $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861
3862 fi
3863
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871    ac_c_werror_flag=$ac_save_c_werror_flag
3872 fi
3873 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3874 $as_echo "$ac_cv_prog_cc_g" >&6; }
3875 if test "$ac_test_CFLAGS" = set; then
3876   CFLAGS=$ac_save_CFLAGS
3877 elif test $ac_cv_prog_cc_g = yes; then
3878   if test "$GCC" = yes; then
3879     CFLAGS="-g -O2"
3880   else
3881     CFLAGS="-g"
3882   fi
3883 else
3884   if test "$GCC" = yes; then
3885     CFLAGS="-O2"
3886   else
3887     CFLAGS=
3888   fi
3889 fi
3890 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3892 if test "${ac_cv_prog_cc_c89+set}" = set; then
3893   $as_echo_n "(cached) " >&6
3894 else
3895   ac_cv_prog_cc_c89=no
3896 ac_save_CC=$CC
3897 cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <stdarg.h>
3904 #include <stdio.h>
3905 #include <sys/types.h>
3906 #include <sys/stat.h>
3907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3908 struct buf { int x; };
3909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3910 static char *e (p, i)
3911      char **p;
3912      int i;
3913 {
3914   return p[i];
3915 }
3916 static char *f (char * (*g) (char **, int), char **p, ...)
3917 {
3918   char *s;
3919   va_list v;
3920   va_start (v,p);
3921   s = g (p, va_arg (v,int));
3922   va_end (v);
3923   return s;
3924 }
3925
3926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3927    function prototypes and stuff, but not '\xHH' hex character constants.
3928    These don't provoke an error unfortunately, instead are silently treated
3929    as 'x'.  The following induces an error, until -std is added to get
3930    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3931    array size at least.  It's necessary to write '\x00'==0 to get something
3932    that's true only with -std.  */
3933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3934
3935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3936    inside strings and character constants.  */
3937 #define FOO(x) 'x'
3938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3939
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944 int argc;
3945 char **argv;
3946 int
3947 main ()
3948 {
3949 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3955         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3956 do
3957   CC="$ac_save_CC $ac_arg"
3958   rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966   (eval "$ac_compile") 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } && {
3973          test -z "$ac_c_werror_flag" ||
3974          test ! -s conftest.err
3975        } && test -s conftest.$ac_objext; then
3976   ac_cv_prog_cc_c89=$ac_arg
3977 else
3978   $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981
3982 fi
3983
3984 rm -f core conftest.err conftest.$ac_objext
3985   test "x$ac_cv_prog_cc_c89" != "xno" && break
3986 done
3987 rm -f conftest.$ac_ext
3988 CC=$ac_save_CC
3989
3990 fi
3991 # AC_CACHE_VAL
3992 case "x$ac_cv_prog_cc_c89" in
3993   x)
3994     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3995 $as_echo "none needed" >&6; } ;;
3996   xno)
3997     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3998 $as_echo "unsupported" >&6; } ;;
3999   *)
4000     CC="$CC $ac_cv_prog_cc_c89"
4001     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4003 esac
4004
4005
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 DEPDIR="${am__leading_dot}deps"
4012
4013 ac_config_commands="$ac_config_commands depfiles"
4014
4015
4016 am_make=${MAKE-make}
4017 cat > confinc << 'END'
4018 am__doit:
4019         @echo this is the am__doit target
4020 .PHONY: am__doit
4021 END
4022 # If we don't find an include directive, just comment out the code.
4023 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4024 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4025 am__include="#"
4026 am__quote=
4027 _am_result=none
4028 # First try GNU make style include.
4029 echo "include confinc" > confmf
4030 # Ignore all kinds of additional output from `make'.
4031 case `$am_make -s -f confmf 2> /dev/null` in #(
4032 *the\ am__doit\ target*)
4033   am__include=include
4034   am__quote=
4035   _am_result=GNU
4036   ;;
4037 esac
4038 # Now try BSD make style include.
4039 if test "$am__include" = "#"; then
4040    echo '.include "confinc"' > confmf
4041    case `$am_make -s -f confmf 2> /dev/null` in #(
4042    *the\ am__doit\ target*)
4043      am__include=.include
4044      am__quote="\""
4045      _am_result=BSD
4046      ;;
4047    esac
4048 fi
4049
4050
4051 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4052 $as_echo "$_am_result" >&6; }
4053 rm -f confinc confmf
4054
4055 # Check whether --enable-dependency-tracking was given.
4056 if test "${enable_dependency_tracking+set}" = set; then
4057   enableval=$enable_dependency_tracking;
4058 fi
4059
4060 if test "x$enable_dependency_tracking" != xno; then
4061   am_depcomp="$ac_aux_dir/depcomp"
4062   AMDEPBACKSLASH='\'
4063 fi
4064  if test "x$enable_dependency_tracking" != xno; then
4065   AMDEP_TRUE=
4066   AMDEP_FALSE='#'
4067 else
4068   AMDEP_TRUE='#'
4069   AMDEP_FALSE=
4070 fi
4071
4072
4073
4074 depcc="$CC"   am_compiler_list=
4075
4076 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4077 $as_echo_n "checking dependency style of $depcc... " >&6; }
4078 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4079   $as_echo_n "(cached) " >&6
4080 else
4081   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4082   # We make a subdir and do the tests there.  Otherwise we can end up
4083   # making bogus files that we don't know about and never remove.  For
4084   # instance it was reported that on HP-UX the gcc test will end up
4085   # making a dummy file named `D' -- because `-MD' means `put the output
4086   # in D'.
4087   mkdir conftest.dir
4088   # Copy depcomp to subdir because otherwise we won't find it if we're
4089   # using a relative directory.
4090   cp "$am_depcomp" conftest.dir
4091   cd conftest.dir
4092   # We will build objects and dependencies in a subdirectory because
4093   # it helps to detect inapplicable dependency modes.  For instance
4094   # both Tru64's cc and ICC support -MD to output dependencies as a
4095   # side effect of compilation, but ICC will put the dependencies in
4096   # the current directory while Tru64 will put them in the object
4097   # directory.
4098   mkdir sub
4099
4100   am_cv_CC_dependencies_compiler_type=none
4101   if test "$am_compiler_list" = ""; then
4102      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4103   fi
4104   am__universal=false
4105   case " $depcc " in #(
4106      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4107      esac
4108
4109   for depmode in $am_compiler_list; do
4110     # Setup a source with many dependencies, because some compilers
4111     # like to wrap large dependency lists on column 80 (with \), and
4112     # we should not choose a depcomp mode which is confused by this.
4113     #
4114     # We need to recreate these files for each test, as the compiler may
4115     # overwrite some of them when testing with obscure command lines.
4116     # This happens at least with the AIX C compiler.
4117     : > sub/conftest.c
4118     for i in 1 2 3 4 5 6; do
4119       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4120       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4121       # Solaris 8's {/usr,}/bin/sh.
4122       touch sub/conftst$i.h
4123     done
4124     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4125
4126     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4127     # mode.  It turns out that the SunPro C++ compiler does not properly
4128     # handle `-M -o', and we need to detect this.  Also, some Intel
4129     # versions had trouble with output in subdirs
4130     am__obj=sub/conftest.${OBJEXT-o}
4131     am__minus_obj="-o $am__obj"
4132     case $depmode in
4133     gcc)
4134       # This depmode causes a compiler race in universal mode.
4135       test "$am__universal" = false || continue
4136       ;;
4137     nosideeffect)
4138       # after this tag, mechanisms are not by side-effect, so they'll
4139       # only be used when explicitly requested
4140       if test "x$enable_dependency_tracking" = xyes; then
4141         continue
4142       else
4143         break
4144       fi
4145       ;;
4146     msvisualcpp | msvcmsys)
4147       # This compiler won't grok `-c -o', but also, the minuso test has
4148       # not run yet.  These depmodes are late enough in the game, and
4149       # so weak that their functioning should not be impacted.
4150       am__obj=conftest.${OBJEXT-o}
4151       am__minus_obj=
4152       ;;
4153     none) break ;;
4154     esac
4155     if depmode=$depmode \
4156        source=sub/conftest.c object=$am__obj \
4157        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4158        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4159          >/dev/null 2>conftest.err &&
4160        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4161        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4162        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4163        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4164       # icc doesn't choke on unknown options, it will just issue warnings
4165       # or remarks (even with -Werror).  So we grep stderr for any message
4166       # that says an option was ignored or not supported.
4167       # When given -MP, icc 7.0 and 7.1 complain thusly:
4168       #   icc: Command line warning: ignoring option '-M'; no argument required
4169       # The diagnosis changed in icc 8.0:
4170       #   icc: Command line remark: option '-MP' not supported
4171       if (grep 'ignoring option' conftest.err ||
4172           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4173         am_cv_CC_dependencies_compiler_type=$depmode
4174         break
4175       fi
4176     fi
4177   done
4178
4179   cd ..
4180   rm -rf conftest.dir
4181 else
4182   am_cv_CC_dependencies_compiler_type=none
4183 fi
4184
4185 fi
4186 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4187 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4188 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4189
4190  if
4191   test "x$enable_dependency_tracking" != xno \
4192   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4193   am__fastdepCC_TRUE=
4194   am__fastdepCC_FALSE='#'
4195 else
4196   am__fastdepCC_TRUE='#'
4197   am__fastdepCC_FALSE=
4198 fi
4199
4200
4201 case `pwd` in
4202   *\ * | *\     *)
4203     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4204 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4205 esac
4206
4207
4208
4209 macro_version='2.2.6'
4210 macro_revision='1.3012'
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224 ltmain="$ac_aux_dir/ltmain.sh"
4225
4226 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4227 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4228 if test "${ac_cv_path_SED+set}" = set; then
4229   $as_echo_n "(cached) " >&6
4230 else
4231             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4232      for ac_i in 1 2 3 4 5 6 7; do
4233        ac_script="$ac_script$as_nl$ac_script"
4234      done
4235      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4236      $as_unset ac_script || ac_script=
4237      if test -z "$SED"; then
4238   ac_path_SED_found=false
4239   # Loop through the user's path and test for each of PROGNAME-LIST
4240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245   for ac_prog in sed gsed; do
4246     for ac_exec_ext in '' $ac_executable_extensions; do
4247       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4248       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4249 # Check for GNU ac_path_SED and select it if it is found.
4250   # Check for GNU $ac_path_SED
4251 case `"$ac_path_SED" --version 2>&1` in
4252 *GNU*)
4253   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4254 *)
4255   ac_count=0
4256   $as_echo_n 0123456789 >"conftest.in"
4257   while :
4258   do
4259     cat "conftest.in" "conftest.in" >"conftest.tmp"
4260     mv "conftest.tmp" "conftest.in"
4261     cp "conftest.in" "conftest.nl"
4262     $as_echo '' >> "conftest.nl"
4263     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265     ac_count=`expr $ac_count + 1`
4266     if test $ac_count -gt ${ac_path_SED_max-0}; then
4267       # Best one so far, save it but keep looking for a better one
4268       ac_cv_path_SED="$ac_path_SED"
4269       ac_path_SED_max=$ac_count
4270     fi
4271     # 10*(2^10) chars as input seems more than enough
4272     test $ac_count -gt 10 && break
4273   done
4274   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275 esac
4276
4277       $ac_path_SED_found && break 3
4278     done
4279   done
4280 done
4281 IFS=$as_save_IFS
4282   if test -z "$ac_cv_path_SED"; then
4283     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4284 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4285    { (exit 1); exit 1; }; }
4286   fi
4287 else
4288   ac_cv_path_SED=$SED
4289 fi
4290
4291 fi
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4293 $as_echo "$ac_cv_path_SED" >&6; }
4294  SED="$ac_cv_path_SED"
4295   rm -f conftest.sed
4296
4297 test -z "$SED" && SED=sed
4298 Xsed="$SED -e 1s/^X//"
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4312 if test "${ac_cv_path_GREP+set}" = set; then
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if test -z "$GREP"; then
4316   ac_path_GREP_found=false
4317   # Loop through the user's path and test for each of PROGNAME-LIST
4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323   for ac_prog in grep ggrep; do
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4326       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4327 # Check for GNU ac_path_GREP and select it if it is found.
4328   # Check for GNU $ac_path_GREP
4329 case `"$ac_path_GREP" --version 2>&1` in
4330 *GNU*)
4331   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4332 *)
4333   ac_count=0
4334   $as_echo_n 0123456789 >"conftest.in"
4335   while :
4336   do
4337     cat "conftest.in" "conftest.in" >"conftest.tmp"
4338     mv "conftest.tmp" "conftest.in"
4339     cp "conftest.in" "conftest.nl"
4340     $as_echo 'GREP' >> "conftest.nl"
4341     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343     ac_count=`expr $ac_count + 1`
4344     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4345       # Best one so far, save it but keep looking for a better one
4346       ac_cv_path_GREP="$ac_path_GREP"
4347       ac_path_GREP_max=$ac_count
4348     fi
4349     # 10*(2^10) chars as input seems more than enough
4350     test $ac_count -gt 10 && break
4351   done
4352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353 esac
4354
4355       $ac_path_GREP_found && break 3
4356     done
4357   done
4358 done
4359 IFS=$as_save_IFS
4360   if test -z "$ac_cv_path_GREP"; then
4361     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4362 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4363    { (exit 1); exit 1; }; }
4364   fi
4365 else
4366   ac_cv_path_GREP=$GREP
4367 fi
4368
4369 fi
4370 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4371 $as_echo "$ac_cv_path_GREP" >&6; }
4372  GREP="$ac_cv_path_GREP"
4373
4374
4375 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4376 $as_echo_n "checking for egrep... " >&6; }
4377 if test "${ac_cv_path_EGREP+set}" = set; then
4378   $as_echo_n "(cached) " >&6
4379 else
4380   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381    then ac_cv_path_EGREP="$GREP -E"
4382    else
4383      if test -z "$EGREP"; then
4384   ac_path_EGREP_found=false
4385   # Loop through the user's path and test for each of PROGNAME-LIST
4386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 do
4389   IFS=$as_save_IFS
4390   test -z "$as_dir" && as_dir=.
4391   for ac_prog in egrep; do
4392     for ac_exec_ext in '' $ac_executable_extensions; do
4393       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
4396   # Check for GNU $ac_path_EGREP
4397 case `"$ac_path_EGREP" --version 2>&1` in
4398 *GNU*)
4399   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400 *)
4401   ac_count=0
4402   $as_echo_n 0123456789 >"conftest.in"
4403   while :
4404   do
4405     cat "conftest.in" "conftest.in" >"conftest.tmp"
4406     mv "conftest.tmp" "conftest.in"
4407     cp "conftest.in" "conftest.nl"
4408     $as_echo 'EGREP' >> "conftest.nl"
4409     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411     ac_count=`expr $ac_count + 1`
4412     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413       # Best one so far, save it but keep looking for a better one
4414       ac_cv_path_EGREP="$ac_path_EGREP"
4415       ac_path_EGREP_max=$ac_count
4416     fi
4417     # 10*(2^10) chars as input seems more than enough
4418     test $ac_count -gt 10 && break
4419   done
4420   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4422
4423       $ac_path_EGREP_found && break 3
4424     done
4425   done
4426 done
4427 IFS=$as_save_IFS
4428   if test -z "$ac_cv_path_EGREP"; then
4429     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4430 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4431    { (exit 1); exit 1; }; }
4432   fi
4433 else
4434   ac_cv_path_EGREP=$EGREP
4435 fi
4436
4437    fi
4438 fi
4439 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4440 $as_echo "$ac_cv_path_EGREP" >&6; }
4441  EGREP="$ac_cv_path_EGREP"
4442
4443
4444 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4445 $as_echo_n "checking for fgrep... " >&6; }
4446 if test "${ac_cv_path_FGREP+set}" = set; then
4447   $as_echo_n "(cached) " >&6
4448 else
4449   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4450    then ac_cv_path_FGREP="$GREP -F"
4451    else
4452      if test -z "$FGREP"; then
4453   ac_path_FGREP_found=false
4454   # Loop through the user's path and test for each of PROGNAME-LIST
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_prog in fgrep; do
4461     for ac_exec_ext in '' $ac_executable_extensions; do
4462       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4463       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4464 # Check for GNU ac_path_FGREP and select it if it is found.
4465   # Check for GNU $ac_path_FGREP
4466 case `"$ac_path_FGREP" --version 2>&1` in
4467 *GNU*)
4468   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4469 *)
4470   ac_count=0
4471   $as_echo_n 0123456789 >"conftest.in"
4472   while :
4473   do
4474     cat "conftest.in" "conftest.in" >"conftest.tmp"
4475     mv "conftest.tmp" "conftest.in"
4476     cp "conftest.in" "conftest.nl"
4477     $as_echo 'FGREP' >> "conftest.nl"
4478     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480     ac_count=`expr $ac_count + 1`
4481     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4482       # Best one so far, save it but keep looking for a better one
4483       ac_cv_path_FGREP="$ac_path_FGREP"
4484       ac_path_FGREP_max=$ac_count
4485     fi
4486     # 10*(2^10) chars as input seems more than enough
4487     test $ac_count -gt 10 && break
4488   done
4489   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 esac
4491
4492       $ac_path_FGREP_found && break 3
4493     done
4494   done
4495 done
4496 IFS=$as_save_IFS
4497   if test -z "$ac_cv_path_FGREP"; then
4498     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500    { (exit 1); exit 1; }; }
4501   fi
4502 else
4503   ac_cv_path_FGREP=$FGREP
4504 fi
4505
4506    fi
4507 fi
4508 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4509 $as_echo "$ac_cv_path_FGREP" >&6; }
4510  FGREP="$ac_cv_path_FGREP"
4511
4512
4513 test -z "$GREP" && GREP=grep
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533 # Check whether --with-gnu-ld was given.
4534 if test "${with_gnu_ld+set}" = set; then
4535   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4536 else
4537   with_gnu_ld=no
4538 fi
4539
4540 ac_prog=ld
4541 if test "$GCC" = yes; then
4542   # Check if gcc -print-prog-name=ld gives a path.
4543   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4544 $as_echo_n "checking for ld used by $CC... " >&6; }
4545   case $host in
4546   *-*-mingw*)
4547     # gcc leaves a trailing carriage return which upsets mingw
4548     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4549   *)
4550     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4551   esac
4552   case $ac_prog in
4553     # Accept absolute paths.
4554     [\\/]* | ?:[\\/]*)
4555       re_direlt='/[^/][^/]*/\.\./'
4556       # Canonicalize the pathname of ld
4557       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4558       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4559         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4560       done
4561       test -z "$LD" && LD="$ac_prog"
4562       ;;
4563   "")
4564     # If it fails, then pretend we aren't using GCC.
4565     ac_prog=ld
4566     ;;
4567   *)
4568     # If it is relative, then search for the first ld in PATH.
4569     with_gnu_ld=unknown
4570     ;;
4571   esac
4572 elif test "$with_gnu_ld" = yes; then
4573   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4574 $as_echo_n "checking for GNU ld... " >&6; }
4575 else
4576   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4577 $as_echo_n "checking for non-GNU ld... " >&6; }
4578 fi
4579 if test "${lt_cv_path_LD+set}" = set; then
4580   $as_echo_n "(cached) " >&6
4581 else
4582   if test -z "$LD"; then
4583   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4584   for ac_dir in $PATH; do
4585     IFS="$lt_save_ifs"
4586     test -z "$ac_dir" && ac_dir=.
4587     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4588       lt_cv_path_LD="$ac_dir/$ac_prog"
4589       # Check to see if the program is GNU ld.  I'd rather use --version,
4590       # but apparently some variants of GNU ld only accept -v.
4591       # Break only if it was the GNU/non-GNU ld that we prefer.
4592       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4593       *GNU* | *'with BFD'*)
4594         test "$with_gnu_ld" != no && break
4595         ;;
4596       *)
4597         test "$with_gnu_ld" != yes && break
4598         ;;
4599       esac
4600     fi
4601   done
4602   IFS="$lt_save_ifs"
4603 else
4604   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4605 fi
4606 fi
4607
4608 LD="$lt_cv_path_LD"
4609 if test -n "$LD"; then
4610   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4611 $as_echo "$LD" >&6; }
4612 else
4613   { $as_echo "$as_me:$LINENO: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4617 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4618    { (exit 1); exit 1; }; }
4619 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4621 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4622   $as_echo_n "(cached) " >&6
4623 else
4624   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4625 case `$LD -v 2>&1 </dev/null` in
4626 *GNU* | *'with BFD'*)
4627   lt_cv_prog_gnu_ld=yes
4628   ;;
4629 *)
4630   lt_cv_prog_gnu_ld=no
4631   ;;
4632 esac
4633 fi
4634 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4635 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4636 with_gnu_ld=$lt_cv_prog_gnu_ld
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4647 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4648 if test "${lt_cv_path_NM+set}" = set; then
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if test -n "$NM"; then
4652   # Let the user override the test.
4653   lt_cv_path_NM="$NM"
4654 else
4655   lt_nm_to_check="${ac_tool_prefix}nm"
4656   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4657     lt_nm_to_check="$lt_nm_to_check nm"
4658   fi
4659   for lt_tmp_nm in $lt_nm_to_check; do
4660     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4661     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4662       IFS="$lt_save_ifs"
4663       test -z "$ac_dir" && ac_dir=.
4664       tmp_nm="$ac_dir/$lt_tmp_nm"
4665       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4666         # Check to see if the nm accepts a BSD-compat flag.
4667         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4668         #   nm: unknown option "B" ignored
4669         # Tru64's nm complains that /dev/null is an invalid object file
4670         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4671         */dev/null* | *'Invalid file or object type'*)
4672           lt_cv_path_NM="$tmp_nm -B"
4673           break
4674           ;;
4675         *)
4676           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4677           */dev/null*)
4678             lt_cv_path_NM="$tmp_nm -p"
4679             break
4680             ;;
4681           *)
4682             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4683             continue # so that we can try to find one that supports BSD flags
4684             ;;
4685           esac
4686           ;;
4687         esac
4688       fi
4689     done
4690     IFS="$lt_save_ifs"
4691   done
4692   : ${lt_cv_path_NM=no}
4693 fi
4694 fi
4695 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4696 $as_echo "$lt_cv_path_NM" >&6; }
4697 if test "$lt_cv_path_NM" != "no"; then
4698   NM="$lt_cv_path_NM"
4699 else
4700   # Didn't find any BSD compatible name lister, look for dumpbin.
4701   if test -n "$ac_tool_prefix"; then
4702   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4703   do
4704     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4709   $as_echo_n "(cached) " >&6
4710 else
4711   if test -n "$DUMPBIN"; then
4712   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4722     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 DUMPBIN=$ac_cv_prog_DUMPBIN
4732 if test -n "$DUMPBIN"; then
4733   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4734 $as_echo "$DUMPBIN" >&6; }
4735 else
4736   { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4738 fi
4739
4740
4741     test -n "$DUMPBIN" && break
4742   done
4743 fi
4744 if test -z "$DUMPBIN"; then
4745   ac_ct_DUMPBIN=$DUMPBIN
4746   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4747 do
4748   # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 set dummy $ac_prog; ac_word=$2
4750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4753   $as_echo_n "(cached) " >&6
4754 else
4755   if test -n "$ac_ct_DUMPBIN"; then
4756   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763   for ac_exec_ext in '' $ac_executable_extensions; do
4764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4766     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773 fi
4774 fi
4775 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4776 if test -n "$ac_ct_DUMPBIN"; then
4777   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4778 $as_echo "$ac_ct_DUMPBIN" >&6; }
4779 else
4780   { $as_echo "$as_me:$LINENO: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784
4785   test -n "$ac_ct_DUMPBIN" && break
4786 done
4787
4788   if test "x$ac_ct_DUMPBIN" = x; then
4789     DUMPBIN=":"
4790   else
4791     case $cross_compiling:$ac_tool_warned in
4792 yes:)
4793 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned=yes ;;
4796 esac
4797     DUMPBIN=$ac_ct_DUMPBIN
4798   fi
4799 fi
4800
4801
4802   if test "$DUMPBIN" != ":"; then
4803     NM="$DUMPBIN"
4804   fi
4805 fi
4806 test -z "$NM" && NM=nm
4807
4808
4809
4810
4811
4812
4813 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4814 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4815 if test "${lt_cv_nm_interface+set}" = set; then
4816   $as_echo_n "(cached) " >&6
4817 else
4818   lt_cv_nm_interface="BSD nm"
4819   echo "int some_variable = 0;" > conftest.$ac_ext
4820   (eval echo "\"\$as_me:4820: $ac_compile\"" >&5)
4821   (eval "$ac_compile" 2>conftest.err)
4822   cat conftest.err >&5
4823   (eval echo "\"\$as_me:4823: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4824   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4825   cat conftest.err >&5
4826   (eval echo "\"\$as_me:4826: output\"" >&5)
4827   cat conftest.out >&5
4828   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4829     lt_cv_nm_interface="MS dumpbin"
4830   fi
4831   rm -f conftest*
4832 fi
4833 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4834 $as_echo "$lt_cv_nm_interface" >&6; }
4835
4836 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4837 $as_echo_n "checking whether ln -s works... " >&6; }
4838 LN_S=$as_ln_s
4839 if test "$LN_S" = "ln -s"; then
4840   { $as_echo "$as_me:$LINENO: result: yes" >&5
4841 $as_echo "yes" >&6; }
4842 else
4843   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4844 $as_echo "no, using $LN_S" >&6; }
4845 fi
4846
4847 # find the maximum length of command line arguments
4848 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4849 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4850 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4851   $as_echo_n "(cached) " >&6
4852 else
4853     i=0
4854   teststring="ABCD"
4855
4856   case $build_os in
4857   msdosdjgpp*)
4858     # On DJGPP, this test can blow up pretty badly due to problems in libc
4859     # (any single argument exceeding 2000 bytes causes a buffer overrun
4860     # during glob expansion).  Even if it were fixed, the result of this
4861     # check would be larger than it should be.
4862     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4863     ;;
4864
4865   gnu*)
4866     # Under GNU Hurd, this test is not required because there is
4867     # no limit to the length of command line arguments.
4868     # Libtool will interpret -1 as no limit whatsoever
4869     lt_cv_sys_max_cmd_len=-1;
4870     ;;
4871
4872   cygwin* | mingw* | cegcc*)
4873     # On Win9x/ME, this test blows up -- it succeeds, but takes
4874     # about 5 minutes as the teststring grows exponentially.
4875     # Worse, since 9x/ME are not pre-emptively multitasking,
4876     # you end up with a "frozen" computer, even though with patience
4877     # the test eventually succeeds (with a max line length of 256k).
4878     # Instead, let's just punt: use the minimum linelength reported by
4879     # all of the supported platforms: 8192 (on NT/2K/XP).
4880     lt_cv_sys_max_cmd_len=8192;
4881     ;;
4882
4883   amigaos*)
4884     # On AmigaOS with pdksh, this test takes hours, literally.
4885     # So we just punt and use a minimum line length of 8192.
4886     lt_cv_sys_max_cmd_len=8192;
4887     ;;
4888
4889   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4890     # This has been around since 386BSD, at least.  Likely further.
4891     if test -x /sbin/sysctl; then
4892       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4893     elif test -x /usr/sbin/sysctl; then
4894       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4895     else
4896       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4897     fi
4898     # And add a safety zone
4899     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4900     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4901     ;;
4902
4903   interix*)
4904     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4905     lt_cv_sys_max_cmd_len=196608
4906     ;;
4907
4908   osf*)
4909     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4910     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4911     # nice to cause kernel panics so lets avoid the loop below.
4912     # First set a reasonable default.
4913     lt_cv_sys_max_cmd_len=16384
4914     #
4915     if test -x /sbin/sysconfig; then
4916       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4917         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4918       esac
4919     fi
4920     ;;
4921   sco3.2v5*)
4922     lt_cv_sys_max_cmd_len=102400
4923     ;;
4924   sysv5* | sco5v6* | sysv4.2uw2*)
4925     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4926     if test -n "$kargmax"; then
4927       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4928     else
4929       lt_cv_sys_max_cmd_len=32768
4930     fi
4931     ;;
4932   *)
4933     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4934     if test -n "$lt_cv_sys_max_cmd_len"; then
4935       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4936       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4937     else
4938       # Make teststring a little bigger before we do anything with it.
4939       # a 1K string should be a reasonable start.
4940       for i in 1 2 3 4 5 6 7 8 ; do
4941         teststring=$teststring$teststring
4942       done
4943       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4944       # If test is not a shell built-in, we'll probably end up computing a
4945       # maximum length that is only half of the actual maximum length, but
4946       # we can't tell.
4947       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4948                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4949               test $i != 17 # 1/2 MB should be enough
4950       do
4951         i=`expr $i + 1`
4952         teststring=$teststring$teststring
4953       done
4954       # Only check the string length outside the loop.
4955       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4956       teststring=
4957       # Add a significant safety factor because C++ compilers can tack on
4958       # massive amounts of additional arguments before passing them to the
4959       # linker.  It appears as though 1/2 is a usable value.
4960       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4961     fi
4962     ;;
4963   esac
4964
4965 fi
4966
4967 if test -n $lt_cv_sys_max_cmd_len ; then
4968   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4969 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4970 else
4971   { $as_echo "$as_me:$LINENO: result: none" >&5
4972 $as_echo "none" >&6; }
4973 fi
4974 max_cmd_len=$lt_cv_sys_max_cmd_len
4975
4976
4977
4978
4979
4980
4981 : ${CP="cp -f"}
4982 : ${MV="mv -f"}
4983 : ${RM="rm -f"}
4984
4985 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4986 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4987 # Try some XSI features
4988 xsi_shell=no
4989 ( _lt_dummy="a/b/c"
4990   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4991       = c,a/b,, \
4992     && eval 'test $(( 1 + 1 )) -eq 2 \
4993     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4994   && xsi_shell=yes
4995 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4996 $as_echo "$xsi_shell" >&6; }
4997
4998
4999 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5000 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5001 lt_shell_append=no
5002 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5003     >/dev/null 2>&1 \
5004   && lt_shell_append=yes
5005 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5006 $as_echo "$lt_shell_append" >&6; }
5007
5008
5009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5010   lt_unset=unset
5011 else
5012   lt_unset=false
5013 fi
5014
5015
5016
5017
5018
5019 # test EBCDIC or ASCII
5020 case `echo X|tr X '\101'` in
5021  A) # ASCII based system
5022     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5023   lt_SP2NL='tr \040 \012'
5024   lt_NL2SP='tr \015\012 \040\040'
5025   ;;
5026  *) # EBCDIC based system
5027   lt_SP2NL='tr \100 \n'
5028   lt_NL2SP='tr \r\n \100\100'
5029   ;;
5030 esac
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5041 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5042 if test "${lt_cv_ld_reload_flag+set}" = set; then
5043   $as_echo_n "(cached) " >&6
5044 else
5045   lt_cv_ld_reload_flag='-r'
5046 fi
5047 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5048 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5049 reload_flag=$lt_cv_ld_reload_flag
5050 case $reload_flag in
5051 "" | " "*) ;;
5052 *) reload_flag=" $reload_flag" ;;
5053 esac
5054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5055 case $host_os in
5056   darwin*)
5057     if test "$GCC" = yes; then
5058       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5059     else
5060       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5061     fi
5062     ;;
5063 esac
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 if test -n "$ac_tool_prefix"; then
5074   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if test -n "$OBJDUMP"; then
5082   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089   for ac_exec_ext in '' $ac_executable_extensions; do
5090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5092     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096 done
5097 IFS=$as_save_IFS
5098
5099 fi
5100 fi
5101 OBJDUMP=$ac_cv_prog_OBJDUMP
5102 if test -n "$OBJDUMP"; then
5103   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5104 $as_echo "$OBJDUMP" >&6; }
5105 else
5106   { $as_echo "$as_me:$LINENO: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110
5111 fi
5112 if test -z "$ac_cv_prog_OBJDUMP"; then
5113   ac_ct_OBJDUMP=$OBJDUMP
5114   # Extract the first word of "objdump", so it can be a program name with args.
5115 set dummy objdump; ac_word=$2
5116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if test -n "$ac_ct_OBJDUMP"; then
5122   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129   for ac_exec_ext in '' $ac_executable_extensions; do
5130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5132     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5142 if test -n "$ac_ct_OBJDUMP"; then
5143   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5144 $as_echo "$ac_ct_OBJDUMP" >&6; }
5145 else
5146   { $as_echo "$as_me:$LINENO: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150   if test "x$ac_ct_OBJDUMP" = x; then
5151     OBJDUMP="false"
5152   else
5153     case $cross_compiling:$ac_tool_warned in
5154 yes:)
5155 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5158 esac
5159     OBJDUMP=$ac_ct_OBJDUMP
5160   fi
5161 else
5162   OBJDUMP="$ac_cv_prog_OBJDUMP"
5163 fi
5164
5165 test -z "$OBJDUMP" && OBJDUMP=objdump
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5176 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5177 if test "${lt_cv_deplibs_check_method+set}" = set; then
5178   $as_echo_n "(cached) " >&6
5179 else
5180   lt_cv_file_magic_cmd='$MAGIC_CMD'
5181 lt_cv_file_magic_test_file=
5182 lt_cv_deplibs_check_method='unknown'
5183 # Need to set the preceding variable on all platforms that support
5184 # interlibrary dependencies.
5185 # 'none' -- dependencies not supported.
5186 # `unknown' -- same as none, but documents that we really don't know.
5187 # 'pass_all' -- all dependencies passed with no checks.
5188 # 'test_compile' -- check by making test program.
5189 # 'file_magic [[regex]]' -- check by looking for files in library path
5190 # which responds to the $file_magic_cmd with a given extended regex.
5191 # If you have `file' or equivalent on your system and you're not sure
5192 # whether `pass_all' will *always* work, you probably want this one.
5193
5194 case $host_os in
5195 aix[4-9]*)
5196   lt_cv_deplibs_check_method=pass_all
5197   ;;
5198
5199 beos*)
5200   lt_cv_deplibs_check_method=pass_all
5201   ;;
5202
5203 bsdi[45]*)
5204   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5205   lt_cv_file_magic_cmd='/usr/bin/file -L'
5206   lt_cv_file_magic_test_file=/shlib/libc.so
5207   ;;
5208
5209 cygwin*)
5210   # func_win32_libid is a shell function defined in ltmain.sh
5211   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5212   lt_cv_file_magic_cmd='func_win32_libid'
5213   ;;
5214
5215 mingw* | pw32*)
5216   # Base MSYS/MinGW do not provide the 'file' command needed by
5217   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5218   # unless we find 'file', for example because we are cross-compiling.
5219   if ( file / ) >/dev/null 2>&1; then
5220     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5221     lt_cv_file_magic_cmd='func_win32_libid'
5222   else
5223     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5224     lt_cv_file_magic_cmd='$OBJDUMP -f'
5225   fi
5226   ;;
5227
5228 cegcc)
5229   # use the weaker test based on 'objdump'. See mingw*.
5230   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5231   lt_cv_file_magic_cmd='$OBJDUMP -f'
5232   ;;
5233
5234 darwin* | rhapsody*)
5235   lt_cv_deplibs_check_method=pass_all
5236   ;;
5237
5238 freebsd* | dragonfly*)
5239   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5240     case $host_cpu in
5241     i*86 )
5242       # Not sure whether the presence of OpenBSD here was a mistake.
5243       # Let's accept both of them until this is cleared up.
5244       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5245       lt_cv_file_magic_cmd=/usr/bin/file
5246       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5247       ;;
5248     esac
5249   else
5250     lt_cv_deplibs_check_method=pass_all
5251   fi
5252   ;;
5253
5254 gnu*)
5255   lt_cv_deplibs_check_method=pass_all
5256   ;;
5257
5258 hpux10.20* | hpux11*)
5259   lt_cv_file_magic_cmd=/usr/bin/file
5260   case $host_cpu in
5261   ia64*)
5262     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5263     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5264     ;;
5265   hppa*64*)
5266     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]'
5267     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5268     ;;
5269   *)
5270     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5271     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5272     ;;
5273   esac
5274   ;;
5275
5276 interix[3-9]*)
5277   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5278   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5279   ;;
5280
5281 irix5* | irix6* | nonstopux*)
5282   case $LD in
5283   *-32|*"-32 ") libmagic=32-bit;;
5284   *-n32|*"-n32 ") libmagic=N32;;
5285   *-64|*"-64 ") libmagic=64-bit;;
5286   *) libmagic=never-match;;
5287   esac
5288   lt_cv_deplibs_check_method=pass_all
5289   ;;
5290
5291 # This must be Linux ELF.
5292 linux* | k*bsd*-gnu)
5293   lt_cv_deplibs_check_method=pass_all
5294   ;;
5295
5296 netbsd*)
5297   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5298     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5299   else
5300     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5301   fi
5302   ;;
5303
5304 newos6*)
5305   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5306   lt_cv_file_magic_cmd=/usr/bin/file
5307   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5308   ;;
5309
5310 *nto* | *qnx*)
5311   lt_cv_deplibs_check_method=pass_all
5312   ;;
5313
5314 openbsd*)
5315   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5316     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5317   else
5318     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5319   fi
5320   ;;
5321
5322 osf3* | osf4* | osf5*)
5323   lt_cv_deplibs_check_method=pass_all
5324   ;;
5325
5326 rdos*)
5327   lt_cv_deplibs_check_method=pass_all
5328   ;;
5329
5330 solaris*)
5331   lt_cv_deplibs_check_method=pass_all
5332   ;;
5333
5334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5335   lt_cv_deplibs_check_method=pass_all
5336   ;;
5337
5338 sysv4 | sysv4.3*)
5339   case $host_vendor in
5340   motorola)
5341     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]'
5342     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5343     ;;
5344   ncr)
5345     lt_cv_deplibs_check_method=pass_all
5346     ;;
5347   sequent)
5348     lt_cv_file_magic_cmd='/bin/file'
5349     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5350     ;;
5351   sni)
5352     lt_cv_file_magic_cmd='/bin/file'
5353     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5354     lt_cv_file_magic_test_file=/lib/libc.so
5355     ;;
5356   siemens)
5357     lt_cv_deplibs_check_method=pass_all
5358     ;;
5359   pc)
5360     lt_cv_deplibs_check_method=pass_all
5361     ;;
5362   esac
5363   ;;
5364
5365 tpf*)
5366   lt_cv_deplibs_check_method=pass_all
5367   ;;
5368 esac
5369
5370 fi
5371 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5372 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5373 file_magic_cmd=$lt_cv_file_magic_cmd
5374 deplibs_check_method=$lt_cv_deplibs_check_method
5375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 if test -n "$ac_tool_prefix"; then
5389   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}ar; ac_word=$2
5391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_prog_AR+set}" = set; then
5394   $as_echo_n "(cached) " >&6
5395 else
5396   if test -n "$AR"; then
5397   ac_cv_prog_AR="$AR" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402   IFS=$as_save_IFS
5403   test -z "$as_dir" && as_dir=.
5404   for ac_exec_ext in '' $ac_executable_extensions; do
5405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406     ac_cv_prog_AR="${ac_tool_prefix}ar"
5407     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408     break 2
5409   fi
5410 done
5411 done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 AR=$ac_cv_prog_AR
5417 if test -n "$AR"; then
5418   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5419 $as_echo "$AR" >&6; }
5420 else
5421   { $as_echo "$as_me:$LINENO: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425
5426 fi
5427 if test -z "$ac_cv_prog_AR"; then
5428   ac_ct_AR=$AR
5429   # Extract the first word of "ar", so it can be a program name with args.
5430 set dummy ar; ac_word=$2
5431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5434   $as_echo_n "(cached) " >&6
5435 else
5436   if test -n "$ac_ct_AR"; then
5437   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442   IFS=$as_save_IFS
5443   test -z "$as_dir" && as_dir=.
5444   for ac_exec_ext in '' $ac_executable_extensions; do
5445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446     ac_cv_prog_ac_ct_AR="ar"
5447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448     break 2
5449   fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5457 if test -n "$ac_ct_AR"; then
5458   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5459 $as_echo "$ac_ct_AR" >&6; }
5460 else
5461   { $as_echo "$as_me:$LINENO: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465   if test "x$ac_ct_AR" = x; then
5466     AR="false"
5467   else
5468     case $cross_compiling:$ac_tool_warned in
5469 yes:)
5470 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned=yes ;;
5473 esac
5474     AR=$ac_ct_AR
5475   fi
5476 else
5477   AR="$ac_cv_prog_AR"
5478 fi
5479
5480 test -z "$AR" && AR=ar
5481 test -z "$AR_FLAGS" && AR_FLAGS=cru
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493 if test -n "$ac_tool_prefix"; then
5494   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}strip; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_STRIP+set}" = set; then
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$STRIP"; then
5502   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509   for ac_exec_ext in '' $ac_executable_extensions; do
5510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516 done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 STRIP=$ac_cv_prog_STRIP
5522 if test -n "$STRIP"; then
5523   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5524 $as_echo "$STRIP" >&6; }
5525 else
5526   { $as_echo "$as_me:$LINENO: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531 fi
5532 if test -z "$ac_cv_prog_STRIP"; then
5533   ac_ct_STRIP=$STRIP
5534   # Extract the first word of "strip", so it can be a program name with args.
5535 set dummy strip; ac_word=$2
5536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5539   $as_echo_n "(cached) " >&6
5540 else
5541   if test -n "$ac_ct_STRIP"; then
5542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549   for ac_exec_ext in '' $ac_executable_extensions; do
5550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551     ac_cv_prog_ac_ct_STRIP="strip"
5552     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5562 if test -n "$ac_ct_STRIP"; then
5563   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5564 $as_echo "$ac_ct_STRIP" >&6; }
5565 else
5566   { $as_echo "$as_me:$LINENO: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570   if test "x$ac_ct_STRIP" = x; then
5571     STRIP=":"
5572   else
5573     case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579     STRIP=$ac_ct_STRIP
5580   fi
5581 else
5582   STRIP="$ac_cv_prog_STRIP"
5583 fi
5584
5585 test -z "$STRIP" && STRIP=:
5586
5587
5588
5589
5590
5591
5592 if test -n "$ac_tool_prefix"; then
5593   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5594 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if test "${ac_cv_prog_RANLIB+set}" = set; then
5598   $as_echo_n "(cached) " >&6
5599 else
5600   if test -n "$RANLIB"; then
5601   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606   IFS=$as_save_IFS
5607   test -z "$as_dir" && as_dir=.
5608   for ac_exec_ext in '' $ac_executable_extensions; do
5609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612     break 2
5613   fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 RANLIB=$ac_cv_prog_RANLIB
5621 if test -n "$RANLIB"; then
5622   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5623 $as_echo "$RANLIB" >&6; }
5624 else
5625   { $as_echo "$as_me:$LINENO: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629
5630 fi
5631 if test -z "$ac_cv_prog_RANLIB"; then
5632   ac_ct_RANLIB=$RANLIB
5633   # Extract the first word of "ranlib", so it can be a program name with args.
5634 set dummy ranlib; ac_word=$2
5635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5638   $as_echo_n "(cached) " >&6
5639 else
5640   if test -n "$ac_ct_RANLIB"; then
5641   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648   for ac_exec_ext in '' $ac_executable_extensions; do
5649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650     ac_cv_prog_ac_ct_RANLIB="ranlib"
5651     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5661 if test -n "$ac_ct_RANLIB"; then
5662   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5663 $as_echo "$ac_ct_RANLIB" >&6; }
5664 else
5665   { $as_echo "$as_me:$LINENO: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669   if test "x$ac_ct_RANLIB" = x; then
5670     RANLIB=":"
5671   else
5672     case $cross_compiling:$ac_tool_warned in
5673 yes:)
5674 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5676 ac_tool_warned=yes ;;
5677 esac
5678     RANLIB=$ac_ct_RANLIB
5679   fi
5680 else
5681   RANLIB="$ac_cv_prog_RANLIB"
5682 fi
5683
5684 test -z "$RANLIB" && RANLIB=:
5685
5686
5687
5688
5689
5690
5691 # Determine commands to create old-style static archives.
5692 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5693 old_postinstall_cmds='chmod 644 $oldlib'
5694 old_postuninstall_cmds=
5695
5696 if test -n "$RANLIB"; then
5697   case $host_os in
5698   openbsd*)
5699     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5700     ;;
5701   *)
5702     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5703     ;;
5704   esac
5705   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5706 fi
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 # If no C compiler was specified, use CC.
5742 LTCC=${LTCC-"$CC"}
5743
5744 # If no C compiler flags were specified, use CFLAGS.
5745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5746
5747 # Allow CC to be a program name with arguments.
5748 compiler=$CC
5749
5750
5751 # Check for command to grab the raw symbol name followed by C symbol from nm.
5752 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5753 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5754 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5755   $as_echo_n "(cached) " >&6
5756 else
5757
5758 # These are sane defaults that work on at least a few old systems.
5759 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5760
5761 # Character class describing NM global symbol codes.
5762 symcode='[BCDEGRST]'
5763
5764 # Regexp to match symbols that can be accessed directly from C.
5765 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5766
5767 # Define system-specific variables.
5768 case $host_os in
5769 aix*)
5770   symcode='[BCDT]'
5771   ;;
5772 cygwin* | mingw* | pw32* | cegcc*)
5773   symcode='[ABCDGISTW]'
5774   ;;
5775 hpux*)
5776   if test "$host_cpu" = ia64; then
5777     symcode='[ABCDEGRST]'
5778   fi
5779   ;;
5780 irix* | nonstopux*)
5781   symcode='[BCDEGRST]'
5782   ;;
5783 osf*)
5784   symcode='[BCDEGQRST]'
5785   ;;
5786 solaris*)
5787   symcode='[BDRT]'
5788   ;;
5789 sco3.2v5*)
5790   symcode='[DT]'
5791   ;;
5792 sysv4.2uw2*)
5793   symcode='[DT]'
5794   ;;
5795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5796   symcode='[ABDT]'
5797   ;;
5798 sysv4)
5799   symcode='[DFNSTU]'
5800   ;;
5801 esac
5802
5803 # If we're using GNU nm, then use its standard symbol codes.
5804 case `$NM -V 2>&1` in
5805 *GNU* | *'with BFD'*)
5806   symcode='[ABCDGIRSTW]' ;;
5807 esac
5808
5809 # Transform an extracted symbol line into a proper C declaration.
5810 # Some systems (esp. on ia64) link data and code symbols differently,
5811 # so use this general approach.
5812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5813
5814 # Transform an extracted symbol line into symbol name and symbol address
5815 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5816 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'"
5817
5818 # Handle CRLF in mingw tool chain
5819 opt_cr=
5820 case $build_os in
5821 mingw*)
5822   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5823   ;;
5824 esac
5825
5826 # Try without a prefix underscore, then with it.
5827 for ac_symprfx in "" "_"; do
5828
5829   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5830   symxfrm="\\1 $ac_symprfx\\2 \\2"
5831
5832   # Write the raw and C identifiers.
5833   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5834     # Fake it for dumpbin and say T for any non-static function
5835     # and D for any global variable.
5836     # Also find C++ and __fastcall symbols from MSVC++,
5837     # which start with @ or ?.
5838     lt_cv_sys_global_symbol_pipe="$AWK '"\
5839 "     {last_section=section; section=\$ 3};"\
5840 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5841 "     \$ 0!~/External *\|/{next};"\
5842 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5843 "     {if(hide[section]) next};"\
5844 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5845 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5846 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5847 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5848 "     ' prfx=^$ac_symprfx"
5849   else
5850     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5851   fi
5852
5853   # Check to see that the pipe works correctly.
5854   pipe_works=no
5855
5856   rm -f conftest*
5857   cat > conftest.$ac_ext <<_LT_EOF
5858 #ifdef __cplusplus
5859 extern "C" {
5860 #endif
5861 char nm_test_var;
5862 void nm_test_func(void);
5863 void nm_test_func(void){}
5864 #ifdef __cplusplus
5865 }
5866 #endif
5867 int main(){nm_test_var='a';nm_test_func();return(0);}
5868 _LT_EOF
5869
5870   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>&5
5872   ac_status=$?
5873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; then
5875     # Now try to grab the symbols.
5876     nlist=conftest.nm
5877     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5878   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5879   ac_status=$?
5880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } && test -s "$nlist"; then
5882       # Try sorting and uniquifying the output.
5883       if sort "$nlist" | uniq > "$nlist"T; then
5884         mv -f "$nlist"T "$nlist"
5885       else
5886         rm -f "$nlist"T
5887       fi
5888
5889       # Make sure that we snagged all the symbols we need.
5890       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5891         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5892           cat <<_LT_EOF > conftest.$ac_ext
5893 #ifdef __cplusplus
5894 extern "C" {
5895 #endif
5896
5897 _LT_EOF
5898           # Now generate the symbol file.
5899           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5900
5901           cat <<_LT_EOF >> conftest.$ac_ext
5902
5903 /* The mapping between symbol names and symbols.  */
5904 const struct {
5905   const char *name;
5906   void       *address;
5907 }
5908 lt__PROGRAM__LTX_preloaded_symbols[] =
5909 {
5910   { "@PROGRAM@", (void *) 0 },
5911 _LT_EOF
5912           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5913           cat <<\_LT_EOF >> conftest.$ac_ext
5914   {0, (void *) 0}
5915 };
5916
5917 /* This works around a problem in FreeBSD linker */
5918 #ifdef FREEBSD_WORKAROUND
5919 static const void *lt_preloaded_setup() {
5920   return lt__PROGRAM__LTX_preloaded_symbols;
5921 }
5922 #endif
5923
5924 #ifdef __cplusplus
5925 }
5926 #endif
5927 _LT_EOF
5928           # Now try linking the two files.
5929           mv conftest.$ac_objext conftstm.$ac_objext
5930           lt_save_LIBS="$LIBS"
5931           lt_save_CFLAGS="$CFLAGS"
5932           LIBS="conftstm.$ac_objext"
5933           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5934           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5939             pipe_works=yes
5940           fi
5941           LIBS="$lt_save_LIBS"
5942           CFLAGS="$lt_save_CFLAGS"
5943         else
5944           echo "cannot find nm_test_func in $nlist" >&5
5945         fi
5946       else
5947         echo "cannot find nm_test_var in $nlist" >&5
5948       fi
5949     else
5950       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5951     fi
5952   else
5953     echo "$progname: failed program was:" >&5
5954     cat conftest.$ac_ext >&5
5955   fi
5956   rm -rf conftest* conftst*
5957
5958   # Do not use the global_symbol_pipe unless it works.
5959   if test "$pipe_works" = yes; then
5960     break
5961   else
5962     lt_cv_sys_global_symbol_pipe=
5963   fi
5964 done
5965
5966 fi
5967
5968 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5969   lt_cv_sys_global_symbol_to_cdecl=
5970 fi
5971 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5972   { $as_echo "$as_me:$LINENO: result: failed" >&5
5973 $as_echo "failed" >&6; }
5974 else
5975   { $as_echo "$as_me:$LINENO: result: ok" >&5
5976 $as_echo "ok" >&6; }
5977 fi
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 # Check whether --enable-libtool-lock was given.
6002 if test "${enable_libtool_lock+set}" = set; then
6003   enableval=$enable_libtool_lock;
6004 fi
6005
6006 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6007
6008 # Some flags need to be propagated to the compiler or linker for good
6009 # libtool support.
6010 case $host in
6011 ia64-*-hpux*)
6012   # Find out which ABI we are using.
6013   echo 'int i;' > conftest.$ac_ext
6014   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015   (eval $ac_compile) 2>&5
6016   ac_status=$?
6017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; then
6019     case `/usr/bin/file conftest.$ac_objext` in
6020       *ELF-32*)
6021         HPUX_IA64_MODE="32"
6022         ;;
6023       *ELF-64*)
6024         HPUX_IA64_MODE="64"
6025         ;;
6026     esac
6027   fi
6028   rm -rf conftest*
6029   ;;
6030 *-*-irix6*)
6031   # Find out which ABI we are using.
6032   echo '#line 6032 "configure"' > conftest.$ac_ext
6033   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034   (eval $ac_compile) 2>&5
6035   ac_status=$?
6036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; then
6038     if test "$lt_cv_prog_gnu_ld" = yes; then
6039       case `/usr/bin/file conftest.$ac_objext` in
6040         *32-bit*)
6041           LD="${LD-ld} -melf32bsmip"
6042           ;;
6043         *N32*)
6044           LD="${LD-ld} -melf32bmipn32"
6045           ;;
6046         *64-bit*)
6047           LD="${LD-ld} -melf64bmip"
6048         ;;
6049       esac
6050     else
6051       case `/usr/bin/file conftest.$ac_objext` in
6052         *32-bit*)
6053           LD="${LD-ld} -32"
6054           ;;
6055         *N32*)
6056           LD="${LD-ld} -n32"
6057           ;;
6058         *64-bit*)
6059           LD="${LD-ld} -64"
6060           ;;
6061       esac
6062     fi
6063   fi
6064   rm -rf conftest*
6065   ;;
6066
6067 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6068 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6069   # Find out which ABI we are using.
6070   echo 'int i;' > conftest.$ac_ext
6071   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072   (eval $ac_compile) 2>&5
6073   ac_status=$?
6074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; then
6076     case `/usr/bin/file conftest.o` in
6077       *32-bit*)
6078         case $host in
6079           x86_64-*kfreebsd*-gnu)
6080             LD="${LD-ld} -m elf_i386_fbsd"
6081             ;;
6082           x86_64-*linux*)
6083             LD="${LD-ld} -m elf_i386"
6084             ;;
6085           ppc64-*linux*|powerpc64-*linux*)
6086             LD="${LD-ld} -m elf32ppclinux"
6087             ;;
6088           s390x-*linux*)
6089             LD="${LD-ld} -m elf_s390"
6090             ;;
6091           sparc64-*linux*)
6092             LD="${LD-ld} -m elf32_sparc"
6093             ;;
6094         esac
6095         ;;
6096       *64-bit*)
6097         case $host in
6098           x86_64-*kfreebsd*-gnu)
6099             LD="${LD-ld} -m elf_x86_64_fbsd"
6100             ;;
6101           x86_64-*linux*)
6102             LD="${LD-ld} -m elf_x86_64"
6103             ;;
6104           ppc*-*linux*|powerpc*-*linux*)
6105             LD="${LD-ld} -m elf64ppc"
6106             ;;
6107           s390*-*linux*|s390*-*tpf*)
6108             LD="${LD-ld} -m elf64_s390"
6109             ;;
6110           sparc*-*linux*)
6111             LD="${LD-ld} -m elf64_sparc"
6112             ;;
6113         esac
6114         ;;
6115     esac
6116   fi
6117   rm -rf conftest*
6118   ;;
6119
6120 *-*-sco3.2v5*)
6121   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6122   SAVE_CFLAGS="$CFLAGS"
6123   CFLAGS="$CFLAGS -belf"
6124   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6125 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6126 if test "${lt_cv_cc_needs_belf+set}" = set; then
6127   $as_echo_n "(cached) " >&6
6128 else
6129   ac_ext=c
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
6135      cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141
6142 int
6143 main ()
6144 {
6145
6146   ;
6147   return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (ac_try="$ac_link"
6152 case "(($ac_try" in
6153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154   *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157 $as_echo "$ac_try_echo") >&5
6158   (eval "$ac_link") 2>conftest.er1
6159   ac_status=$?
6160   grep -v '^ *+' conftest.er1 >conftest.err
6161   rm -f conftest.er1
6162   cat conftest.err >&5
6163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } && {
6165          test -z "$ac_c_werror_flag" ||
6166          test ! -s conftest.err
6167        } && test -s conftest$ac_exeext && {
6168          test "$cross_compiling" = yes ||
6169          $as_test_x conftest$ac_exeext
6170        }; then
6171   lt_cv_cc_needs_belf=yes
6172 else
6173   $as_echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176         lt_cv_cc_needs_belf=no
6177 fi
6178
6179 rm -rf conftest.dSYM
6180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6181       conftest$ac_exeext conftest.$ac_ext
6182      ac_ext=c
6183 ac_cpp='$CPP $CPPFLAGS'
6184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6187
6188 fi
6189 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6190 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6191   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6192     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6193     CFLAGS="$SAVE_CFLAGS"
6194   fi
6195   ;;
6196 sparc*-*solaris*)
6197   # Find out which ABI we are using.
6198   echo 'int i;' > conftest.$ac_ext
6199   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200   (eval $ac_compile) 2>&5
6201   ac_status=$?
6202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; then
6204     case `/usr/bin/file conftest.o` in
6205     *64-bit*)
6206       case $lt_cv_prog_gnu_ld in
6207       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6208       *)
6209         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6210           LD="${LD-ld} -64"
6211         fi
6212         ;;
6213       esac
6214       ;;
6215     esac
6216   fi
6217   rm -rf conftest*
6218   ;;
6219 esac
6220
6221 need_locks="$enable_libtool_lock"
6222
6223
6224   case $host_os in
6225     rhapsody* | darwin*)
6226     if test -n "$ac_tool_prefix"; then
6227   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6232   $as_echo_n "(cached) " >&6
6233 else
6234   if test -n "$DSYMUTIL"; then
6235   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for ac_exec_ext in '' $ac_executable_extensions; do
6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6245     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6255 if test -n "$DSYMUTIL"; then
6256   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6257 $as_echo "$DSYMUTIL" >&6; }
6258 else
6259   { $as_echo "$as_me:$LINENO: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_DSYMUTIL"; then
6266   ac_ct_DSYMUTIL=$DSYMUTIL
6267   # Extract the first word of "dsymutil", so it can be a program name with args.
6268 set dummy dsymutil; ac_word=$2
6269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6272   $as_echo_n "(cached) " >&6
6273 else
6274   if test -n "$ac_ct_DSYMUTIL"; then
6275   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282   for ac_exec_ext in '' $ac_executable_extensions; do
6283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6285     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6295 if test -n "$ac_ct_DSYMUTIL"; then
6296   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6297 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6298 else
6299   { $as_echo "$as_me:$LINENO: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303   if test "x$ac_ct_DSYMUTIL" = x; then
6304     DSYMUTIL=":"
6305   else
6306     case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312     DSYMUTIL=$ac_ct_DSYMUTIL
6313   fi
6314 else
6315   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6316 fi
6317
6318     if test -n "$ac_tool_prefix"; then
6319   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6324   $as_echo_n "(cached) " >&6
6325 else
6326   if test -n "$NMEDIT"; then
6327   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for ac_exec_ext in '' $ac_executable_extensions; do
6335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6337     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 NMEDIT=$ac_cv_prog_NMEDIT
6347 if test -n "$NMEDIT"; then
6348   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6349 $as_echo "$NMEDIT" >&6; }
6350 else
6351   { $as_echo "$as_me:$LINENO: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354
6355
6356 fi
6357 if test -z "$ac_cv_prog_NMEDIT"; then
6358   ac_ct_NMEDIT=$NMEDIT
6359   # Extract the first word of "nmedit", so it can be a program name with args.
6360 set dummy nmedit; ac_word=$2
6361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6364   $as_echo_n "(cached) " >&6
6365 else
6366   if test -n "$ac_ct_NMEDIT"; then
6367   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372   IFS=$as_save_IFS
6373   test -z "$as_dir" && as_dir=.
6374   for ac_exec_ext in '' $ac_executable_extensions; do
6375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6377     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378     break 2
6379   fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6387 if test -n "$ac_ct_NMEDIT"; then
6388   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6389 $as_echo "$ac_ct_NMEDIT" >&6; }
6390 else
6391   { $as_echo "$as_me:$LINENO: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395   if test "x$ac_ct_NMEDIT" = x; then
6396     NMEDIT=":"
6397   else
6398     case $cross_compiling:$ac_tool_warned in
6399 yes:)
6400 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6403 esac
6404     NMEDIT=$ac_ct_NMEDIT
6405   fi
6406 else
6407   NMEDIT="$ac_cv_prog_NMEDIT"
6408 fi
6409
6410     if test -n "$ac_tool_prefix"; then
6411   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if test "${ac_cv_prog_LIPO+set}" = set; then
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if test -n "$LIPO"; then
6419   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426   for ac_exec_ext in '' $ac_executable_extensions; do
6427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6429     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 LIPO=$ac_cv_prog_LIPO
6439 if test -n "$LIPO"; then
6440   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6441 $as_echo "$LIPO" >&6; }
6442 else
6443   { $as_echo "$as_me:$LINENO: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447
6448 fi
6449 if test -z "$ac_cv_prog_LIPO"; then
6450   ac_ct_LIPO=$LIPO
6451   # Extract the first word of "lipo", so it can be a program name with args.
6452 set dummy lipo; ac_word=$2
6453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if test -n "$ac_ct_LIPO"; then
6459   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464   IFS=$as_save_IFS
6465   test -z "$as_dir" && as_dir=.
6466   for ac_exec_ext in '' $ac_executable_extensions; do
6467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468     ac_cv_prog_ac_ct_LIPO="lipo"
6469     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470     break 2
6471   fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6479 if test -n "$ac_ct_LIPO"; then
6480   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6481 $as_echo "$ac_ct_LIPO" >&6; }
6482 else
6483   { $as_echo "$as_me:$LINENO: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487   if test "x$ac_ct_LIPO" = x; then
6488     LIPO=":"
6489   else
6490     case $cross_compiling:$ac_tool_warned in
6491 yes:)
6492 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6495 esac
6496     LIPO=$ac_ct_LIPO
6497   fi
6498 else
6499   LIPO="$ac_cv_prog_LIPO"
6500 fi
6501
6502     if test -n "$ac_tool_prefix"; then
6503   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}otool; ac_word=$2
6505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_OTOOL+set}" = set; then
6508   $as_echo_n "(cached) " >&6
6509 else
6510   if test -n "$OTOOL"; then
6511   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518   for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 OTOOL=$ac_cv_prog_OTOOL
6531 if test -n "$OTOOL"; then
6532   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6533 $as_echo "$OTOOL" >&6; }
6534 else
6535   { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539
6540 fi
6541 if test -z "$ac_cv_prog_OTOOL"; then
6542   ac_ct_OTOOL=$OTOOL
6543   # Extract the first word of "otool", so it can be a program name with args.
6544 set dummy otool; ac_word=$2
6545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$ac_ct_OTOOL"; then
6551   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_ac_ct_OTOOL="otool"
6561     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6571 if test -n "$ac_ct_OTOOL"; then
6572   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6573 $as_echo "$ac_ct_OTOOL" >&6; }
6574 else
6575   { $as_echo "$as_me:$LINENO: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579   if test "x$ac_ct_OTOOL" = x; then
6580     OTOOL=":"
6581   else
6582     case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588     OTOOL=$ac_ct_OTOOL
6589   fi
6590 else
6591   OTOOL="$ac_cv_prog_OTOOL"
6592 fi
6593
6594     if test -n "$ac_tool_prefix"; then
6595   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$OTOOL64"; then
6603   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6613     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 OTOOL64=$ac_cv_prog_OTOOL64
6623 if test -n "$OTOOL64"; then
6624   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6625 $as_echo "$OTOOL64" >&6; }
6626 else
6627   { $as_echo "$as_me:$LINENO: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631
6632 fi
6633 if test -z "$ac_cv_prog_OTOOL64"; then
6634   ac_ct_OTOOL64=$OTOOL64
6635   # Extract the first word of "otool64", so it can be a program name with args.
6636 set dummy otool64; ac_word=$2
6637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6640   $as_echo_n "(cached) " >&6
6641 else
6642   if test -n "$ac_ct_OTOOL64"; then
6643   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650   for ac_exec_ext in '' $ac_executable_extensions; do
6651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652     ac_cv_prog_ac_ct_OTOOL64="otool64"
6653     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657 done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6663 if test -n "$ac_ct_OTOOL64"; then
6664   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6665 $as_echo "$ac_ct_OTOOL64" >&6; }
6666 else
6667   { $as_echo "$as_me:$LINENO: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671   if test "x$ac_ct_OTOOL64" = x; then
6672     OTOOL64=":"
6673   else
6674     case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680     OTOOL64=$ac_ct_OTOOL64
6681   fi
6682 else
6683   OTOOL64="$ac_cv_prog_OTOOL64"
6684 fi
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6713 $as_echo_n "checking for -single_module linker flag... " >&6; }
6714 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6715   $as_echo_n "(cached) " >&6
6716 else
6717   lt_cv_apple_cc_single_mod=no
6718       if test -z "${LT_MULTI_MODULE}"; then
6719         # By default we will add the -single_module flag. You can override
6720         # by either setting the environment variable LT_MULTI_MODULE
6721         # non-empty at configure time, or by adding -multi_module to the
6722         # link flags.
6723         rm -rf libconftest.dylib*
6724         echo "int foo(void){return 1;}" > conftest.c
6725         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6726 -dynamiclib -Wl,-single_module conftest.c" >&5
6727         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6728           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6729         _lt_result=$?
6730         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6731           lt_cv_apple_cc_single_mod=yes
6732         else
6733           cat conftest.err >&5
6734         fi
6735         rm -rf libconftest.dylib*
6736         rm -f conftest.*
6737       fi
6738 fi
6739 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6740 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6741     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6742 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6743 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6744   $as_echo_n "(cached) " >&6
6745 else
6746   lt_cv_ld_exported_symbols_list=no
6747       save_LDFLAGS=$LDFLAGS
6748       echo "_main" > conftest.sym
6749       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6750       cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h.  */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h.  */
6756
6757 int
6758 main ()
6759 {
6760
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (ac_try="$ac_link"
6767 case "(($ac_try" in
6768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769   *) ac_try_echo=$ac_try;;
6770 esac
6771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6772 $as_echo "$ac_try_echo") >&5
6773   (eval "$ac_link") 2>conftest.er1
6774   ac_status=$?
6775   grep -v '^ *+' conftest.er1 >conftest.err
6776   rm -f conftest.er1
6777   cat conftest.err >&5
6778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } && {
6780          test -z "$ac_c_werror_flag" ||
6781          test ! -s conftest.err
6782        } && test -s conftest$ac_exeext && {
6783          test "$cross_compiling" = yes ||
6784          $as_test_x conftest$ac_exeext
6785        }; then
6786   lt_cv_ld_exported_symbols_list=yes
6787 else
6788   $as_echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791         lt_cv_ld_exported_symbols_list=no
6792 fi
6793
6794 rm -rf conftest.dSYM
6795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6796       conftest$ac_exeext conftest.$ac_ext
6797         LDFLAGS="$save_LDFLAGS"
6798
6799 fi
6800 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6801 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6802     case $host_os in
6803     rhapsody* | darwin1.[012])
6804       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6805     darwin1.*)
6806       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6807     darwin*) # darwin 5.x on
6808       # if running on 10.5 or later, the deployment target defaults
6809       # to the OS version, if on x86, and 10.4, the deployment
6810       # target defaults to 10.4. Don't you love it?
6811       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6812         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6813           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6814         10.[012]*)
6815           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6816         10.*)
6817           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6818       esac
6819     ;;
6820   esac
6821     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6822       _lt_dar_single_mod='$single_module'
6823     fi
6824     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6825       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6826     else
6827       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6828     fi
6829     if test "$DSYMUTIL" != ":"; then
6830       _lt_dsymutil='~$DSYMUTIL $lib || :'
6831     else
6832       _lt_dsymutil=
6833     fi
6834     ;;
6835   esac
6836
6837 ac_ext=c
6838 ac_cpp='$CPP $CPPFLAGS'
6839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6842 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6844 # On Suns, sometimes $CPP names a directory.
6845 if test -n "$CPP" && test -d "$CPP"; then
6846   CPP=
6847 fi
6848 if test -z "$CPP"; then
6849   if test "${ac_cv_prog_CPP+set}" = set; then
6850   $as_echo_n "(cached) " >&6
6851 else
6852       # Double quotes because CPP needs to be expanded
6853     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6854     do
6855       ac_preproc_ok=false
6856 for ac_c_preproc_warn_flag in '' yes
6857 do
6858   # Use a header file that comes with gcc, so configuring glibc
6859   # with a fresh cross-compiler works.
6860   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861   # <limits.h> exists even on freestanding compilers.
6862   # On the NeXT, cc -E runs the code through the compiler's parser,
6863   # not just through cpp. "Syntax error" is here to catch this case.
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 #ifdef __STDC__
6871 # include <limits.h>
6872 #else
6873 # include <assert.h>
6874 #endif
6875                      Syntax error
6876 _ACEOF
6877 if { (ac_try="$ac_cpp conftest.$ac_ext"
6878 case "(($ac_try" in
6879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880   *) ac_try_echo=$ac_try;;
6881 esac
6882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6883 $as_echo "$ac_try_echo") >&5
6884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6885   ac_status=$?
6886   grep -v '^ *+' conftest.er1 >conftest.err
6887   rm -f conftest.er1
6888   cat conftest.err >&5
6889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); } >/dev/null && {
6891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6892          test ! -s conftest.err
6893        }; then
6894   :
6895 else
6896   $as_echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899   # Broken: fails on valid input.
6900 continue
6901 fi
6902
6903 rm -f conftest.err conftest.$ac_ext
6904
6905   # OK, works on sane cases.  Now check whether nonexistent headers
6906   # can be detected and how.
6907   cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h.  */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h.  */
6913 #include <ac_nonexistent.h>
6914 _ACEOF
6915 if { (ac_try="$ac_cpp conftest.$ac_ext"
6916 case "(($ac_try" in
6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918   *) ac_try_echo=$ac_try;;
6919 esac
6920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6921 $as_echo "$ac_try_echo") >&5
6922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } >/dev/null && {
6929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930          test ! -s conftest.err
6931        }; then
6932   # Broken: success on invalid input.
6933 continue
6934 else
6935   $as_echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938   # Passes both tests.
6939 ac_preproc_ok=:
6940 break
6941 fi
6942
6943 rm -f conftest.err conftest.$ac_ext
6944
6945 done
6946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6947 rm -f conftest.err conftest.$ac_ext
6948 if $ac_preproc_ok; then
6949   break
6950 fi
6951
6952     done
6953     ac_cv_prog_CPP=$CPP
6954
6955 fi
6956   CPP=$ac_cv_prog_CPP
6957 else
6958   ac_cv_prog_CPP=$CPP
6959 fi
6960 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6961 $as_echo "$CPP" >&6; }
6962 ac_preproc_ok=false
6963 for ac_c_preproc_warn_flag in '' yes
6964 do
6965   # Use a header file that comes with gcc, so configuring glibc
6966   # with a fresh cross-compiler works.
6967   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6968   # <limits.h> exists even on freestanding compilers.
6969   # On the NeXT, cc -E runs the code through the compiler's parser,
6970   # not just through cpp. "Syntax error" is here to catch this case.
6971   cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h.  */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h.  */
6977 #ifdef __STDC__
6978 # include <limits.h>
6979 #else
6980 # include <assert.h>
6981 #endif
6982                      Syntax error
6983 _ACEOF
6984 if { (ac_try="$ac_cpp conftest.$ac_ext"
6985 case "(($ac_try" in
6986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987   *) ac_try_echo=$ac_try;;
6988 esac
6989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990 $as_echo "$ac_try_echo") >&5
6991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } >/dev/null && {
6998          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6999          test ! -s conftest.err
7000        }; then
7001   :
7002 else
7003   $as_echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006   # Broken: fails on valid input.
7007 continue
7008 fi
7009
7010 rm -f conftest.err conftest.$ac_ext
7011
7012   # OK, works on sane cases.  Now check whether nonexistent headers
7013   # can be detected and how.
7014   cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h.  */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h.  */
7020 #include <ac_nonexistent.h>
7021 _ACEOF
7022 if { (ac_try="$ac_cpp conftest.$ac_ext"
7023 case "(($ac_try" in
7024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025   *) ac_try_echo=$ac_try;;
7026 esac
7027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7028 $as_echo "$ac_try_echo") >&5
7029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7030   ac_status=$?
7031   grep -v '^ *+' conftest.er1 >conftest.err
7032   rm -f conftest.er1
7033   cat conftest.err >&5
7034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); } >/dev/null && {
7036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7037          test ! -s conftest.err
7038        }; then
7039   # Broken: success on invalid input.
7040 continue
7041 else
7042   $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045   # Passes both tests.
7046 ac_preproc_ok=:
7047 break
7048 fi
7049
7050 rm -f conftest.err conftest.$ac_ext
7051
7052 done
7053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7054 rm -f conftest.err conftest.$ac_ext
7055 if $ac_preproc_ok; then
7056   :
7057 else
7058   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7060 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7061 See \`config.log' for more details." >&5
7062 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7063 See \`config.log' for more details." >&2;}
7064    { (exit 1); exit 1; }; }; }
7065 fi
7066
7067 ac_ext=c
7068 ac_cpp='$CPP $CPPFLAGS'
7069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7072
7073
7074 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7075 $as_echo_n "checking for ANSI C header files... " >&6; }
7076 if test "${ac_cv_header_stdc+set}" = set; then
7077   $as_echo_n "(cached) " >&6
7078 else
7079   cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h.  */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h.  */
7085 #include <stdlib.h>
7086 #include <stdarg.h>
7087 #include <string.h>
7088 #include <float.h>
7089
7090 int
7091 main ()
7092 {
7093
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7100 case "(($ac_try" in
7101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102   *) ac_try_echo=$ac_try;;
7103 esac
7104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7105 $as_echo "$ac_try_echo") >&5
7106   (eval "$ac_compile") 2>conftest.er1
7107   ac_status=$?
7108   grep -v '^ *+' conftest.er1 >conftest.err
7109   rm -f conftest.er1
7110   cat conftest.err >&5
7111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } && {
7113          test -z "$ac_c_werror_flag" ||
7114          test ! -s conftest.err
7115        } && test -s conftest.$ac_objext; then
7116   ac_cv_header_stdc=yes
7117 else
7118   $as_echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121         ac_cv_header_stdc=no
7122 fi
7123
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125
7126 if test $ac_cv_header_stdc = yes; then
7127   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7128   cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h.  */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h.  */
7134 #include <string.h>
7135
7136 _ACEOF
7137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7138   $EGREP "memchr" >/dev/null 2>&1; then
7139   :
7140 else
7141   ac_cv_header_stdc=no
7142 fi
7143 rm -f conftest*
7144
7145 fi
7146
7147 if test $ac_cv_header_stdc = yes; then
7148   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7149   cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h.  */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h.  */
7155 #include <stdlib.h>
7156
7157 _ACEOF
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159   $EGREP "free" >/dev/null 2>&1; then
7160   :
7161 else
7162   ac_cv_header_stdc=no
7163 fi
7164 rm -f conftest*
7165
7166 fi
7167
7168 if test $ac_cv_header_stdc = yes; then
7169   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7170   if test "$cross_compiling" = yes; then
7171   :
7172 else
7173   cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h.  */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h.  */
7179 #include <ctype.h>
7180 #include <stdlib.h>
7181 #if ((' ' & 0x0FF) == 0x020)
7182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7184 #else
7185 # define ISLOWER(c) \
7186                    (('a' <= (c) && (c) <= 'i') \
7187                      || ('j' <= (c) && (c) <= 'r') \
7188                      || ('s' <= (c) && (c) <= 'z'))
7189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7190 #endif
7191
7192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7193 int
7194 main ()
7195 {
7196   int i;
7197   for (i = 0; i < 256; i++)
7198     if (XOR (islower (i), ISLOWER (i))
7199         || toupper (i) != TOUPPER (i))
7200       return 2;
7201   return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest$ac_exeext
7205 if { (ac_try="$ac_link"
7206 case "(($ac_try" in
7207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208   *) ac_try_echo=$ac_try;;
7209 esac
7210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7211 $as_echo "$ac_try_echo") >&5
7212   (eval "$ac_link") 2>&5
7213   ac_status=$?
7214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7216   { (case "(($ac_try" in
7217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218   *) ac_try_echo=$ac_try;;
7219 esac
7220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7221 $as_echo "$ac_try_echo") >&5
7222   (eval "$ac_try") 2>&5
7223   ac_status=$?
7224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; }; then
7226   :
7227 else
7228   $as_echo "$as_me: program exited with status $ac_status" >&5
7229 $as_echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 ( exit $ac_status )
7233 ac_cv_header_stdc=no
7234 fi
7235 rm -rf conftest.dSYM
7236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7237 fi
7238
7239
7240 fi
7241 fi
7242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7243 $as_echo "$ac_cv_header_stdc" >&6; }
7244 if test $ac_cv_header_stdc = yes; then
7245
7246 cat >>confdefs.h <<\_ACEOF
7247 #define STDC_HEADERS 1
7248 _ACEOF
7249
7250 fi
7251
7252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7263                   inttypes.h stdint.h unistd.h
7264 do
7265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7267 $as_echo_n "checking for $ac_header... " >&6; }
7268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7269   $as_echo_n "(cached) " >&6
7270 else
7271   cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277 $ac_includes_default
7278
7279 #include <$ac_header>
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7283 case "(($ac_try" in
7284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285   *) ac_try_echo=$ac_try;;
7286 esac
7287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7288 $as_echo "$ac_try_echo") >&5
7289   (eval "$ac_compile") 2>conftest.er1
7290   ac_status=$?
7291   grep -v '^ *+' conftest.er1 >conftest.err
7292   rm -f conftest.er1
7293   cat conftest.err >&5
7294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } && {
7296          test -z "$ac_c_werror_flag" ||
7297          test ! -s conftest.err
7298        } && test -s conftest.$ac_objext; then
7299   eval "$as_ac_Header=yes"
7300 else
7301   $as_echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304         eval "$as_ac_Header=no"
7305 fi
7306
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 fi
7309 ac_res=`eval 'as_val=${'$as_ac_Header'}
7310                  $as_echo "$as_val"'`
7311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7312 $as_echo "$ac_res" >&6; }
7313 as_val=`eval 'as_val=${'$as_ac_Header'}
7314                  $as_echo "$as_val"'`
7315    if test "x$as_val" = x""yes; then
7316   cat >>confdefs.h <<_ACEOF
7317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7318 _ACEOF
7319
7320 fi
7321
7322 done
7323
7324
7325
7326 for ac_header in dlfcn.h
7327 do
7328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7330 $as_echo_n "checking for $ac_header... " >&6; }
7331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7332   $as_echo_n "(cached) " >&6
7333 else
7334   cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h.  */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h.  */
7340 $ac_includes_default
7341
7342 #include <$ac_header>
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7346 case "(($ac_try" in
7347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348   *) ac_try_echo=$ac_try;;
7349 esac
7350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352   (eval "$ac_compile") 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } && {
7359          test -z "$ac_c_werror_flag" ||
7360          test ! -s conftest.err
7361        } && test -s conftest.$ac_objext; then
7362   eval "$as_ac_Header=yes"
7363 else
7364   $as_echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7366
7367         eval "$as_ac_Header=no"
7368 fi
7369
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 fi
7372 ac_res=`eval 'as_val=${'$as_ac_Header'}
7373                  $as_echo "$as_val"'`
7374                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7375 $as_echo "$ac_res" >&6; }
7376 as_val=`eval 'as_val=${'$as_ac_Header'}
7377                  $as_echo "$as_val"'`
7378    if test "x$as_val" = x""yes; then
7379   cat >>confdefs.h <<_ACEOF
7380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7381 _ACEOF
7382
7383 fi
7384
7385 done
7386
7387
7388
7389 # Set options
7390
7391
7392
7393         enable_dlopen=no
7394
7395
7396   enable_win32_dll=no
7397
7398
7399             # Check whether --enable-shared was given.
7400 if test "${enable_shared+set}" = set; then
7401   enableval=$enable_shared; p=${PACKAGE-default}
7402     case $enableval in
7403     yes) enable_shared=yes ;;
7404     no) enable_shared=no ;;
7405     *)
7406       enable_shared=no
7407       # Look at the argument we got.  We use all the common list separators.
7408       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409       for pkg in $enableval; do
7410         IFS="$lt_save_ifs"
7411         if test "X$pkg" = "X$p"; then
7412           enable_shared=yes
7413         fi
7414       done
7415       IFS="$lt_save_ifs"
7416       ;;
7417     esac
7418 else
7419   enable_shared=yes
7420 fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430   # Check whether --enable-static was given.
7431 if test "${enable_static+set}" = set; then
7432   enableval=$enable_static; p=${PACKAGE-default}
7433     case $enableval in
7434     yes) enable_static=yes ;;
7435     no) enable_static=no ;;
7436     *)
7437      enable_static=no
7438       # Look at the argument we got.  We use all the common list separators.
7439       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7440       for pkg in $enableval; do
7441         IFS="$lt_save_ifs"
7442         if test "X$pkg" = "X$p"; then
7443           enable_static=yes
7444         fi
7445       done
7446       IFS="$lt_save_ifs"
7447       ;;
7448     esac
7449 else
7450   enable_static=yes
7451 fi
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 # Check whether --with-pic was given.
7463 if test "${with_pic+set}" = set; then
7464   withval=$with_pic; pic_mode="$withval"
7465 else
7466   pic_mode=default
7467 fi
7468
7469
7470 test -z "$pic_mode" && pic_mode=default
7471
7472
7473
7474
7475
7476
7477
7478   # Check whether --enable-fast-install was given.
7479 if test "${enable_fast_install+set}" = set; then
7480   enableval=$enable_fast_install; p=${PACKAGE-default}
7481     case $enableval in
7482     yes) enable_fast_install=yes ;;
7483     no) enable_fast_install=no ;;
7484     *)
7485       enable_fast_install=no
7486       # Look at the argument we got.  We use all the common list separators.
7487       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488       for pkg in $enableval; do
7489         IFS="$lt_save_ifs"
7490         if test "X$pkg" = "X$p"; then
7491           enable_fast_install=yes
7492         fi
7493       done
7494       IFS="$lt_save_ifs"
7495       ;;
7496     esac
7497 else
7498   enable_fast_install=yes
7499 fi
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 # This can be used to rebuild libtool when needed
7512 LIBTOOL_DEPS="$ltmain"
7513
7514 # Always use our own libtool.
7515 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 test -z "$LN_S" && LN_S="ln -s"
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 if test -n "${ZSH_VERSION+set}" ; then
7557    setopt NO_GLOB_SUBST
7558 fi
7559
7560 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7561 $as_echo_n "checking for objdir... " >&6; }
7562 if test "${lt_cv_objdir+set}" = set; then
7563   $as_echo_n "(cached) " >&6
7564 else
7565   rm -f .libs 2>/dev/null
7566 mkdir .libs 2>/dev/null
7567 if test -d .libs; then
7568   lt_cv_objdir=.libs
7569 else
7570   # MS-DOS does not allow filenames that begin with a dot.
7571   lt_cv_objdir=_libs
7572 fi
7573 rmdir .libs 2>/dev/null
7574 fi
7575 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7576 $as_echo "$lt_cv_objdir" >&6; }
7577 objdir=$lt_cv_objdir
7578
7579
7580
7581
7582
7583 cat >>confdefs.h <<_ACEOF
7584 #define LT_OBJDIR "$lt_cv_objdir/"
7585 _ACEOF
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 case $host_os in
7604 aix3*)
7605   # AIX sometimes has problems with the GCC collect2 program.  For some
7606   # reason, if we set the COLLECT_NAMES environment variable, the problems
7607   # vanish in a puff of smoke.
7608   if test "X${COLLECT_NAMES+set}" != Xset; then
7609     COLLECT_NAMES=
7610     export COLLECT_NAMES
7611   fi
7612   ;;
7613 esac
7614
7615 # Sed substitution that helps us do robust quoting.  It backslashifies
7616 # metacharacters that are still active within double-quoted strings.
7617 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7618
7619 # Same as above, but do not quote variable references.
7620 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7621
7622 # Sed substitution to delay expansion of an escaped shell variable in a
7623 # double_quote_subst'ed string.
7624 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7625
7626 # Sed substitution to delay expansion of an escaped single quote.
7627 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7628
7629 # Sed substitution to avoid accidental globbing in evaled expressions
7630 no_glob_subst='s/\*/\\\*/g'
7631
7632 # Global variables:
7633 ofile=libtool
7634 can_build_shared=yes
7635
7636 # All known linkers require a `.a' archive for static linking (except MSVC,
7637 # which needs '.lib').
7638 libext=a
7639
7640 with_gnu_ld="$lt_cv_prog_gnu_ld"
7641
7642 old_CC="$CC"
7643 old_CFLAGS="$CFLAGS"
7644
7645 # Set sane defaults for various variables
7646 test -z "$CC" && CC=cc
7647 test -z "$LTCC" && LTCC=$CC
7648 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7649 test -z "$LD" && LD=ld
7650 test -z "$ac_objext" && ac_objext=o
7651
7652 for cc_temp in $compiler""; do
7653   case $cc_temp in
7654     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7655     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7656     \-*) ;;
7657     *) break;;
7658   esac
7659 done
7660 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7661
7662
7663 # Only perform the check for file, if the check method requires it
7664 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7665 case $deplibs_check_method in
7666 file_magic*)
7667   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7668     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7669 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7670 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7671   $as_echo_n "(cached) " >&6
7672 else
7673   case $MAGIC_CMD in
7674 [\\/*] |  ?:[\\/]*)
7675   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676   ;;
7677 *)
7678   lt_save_MAGIC_CMD="$MAGIC_CMD"
7679   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681   for ac_dir in $ac_dummy; do
7682     IFS="$lt_save_ifs"
7683     test -z "$ac_dir" && ac_dir=.
7684     if test -f $ac_dir/${ac_tool_prefix}file; then
7685       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7686       if test -n "$file_magic_test_file"; then
7687         case $deplibs_check_method in
7688         "file_magic "*)
7689           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692             $EGREP "$file_magic_regex" > /dev/null; then
7693             :
7694           else
7695             cat <<_LT_EOF 1>&2
7696
7697 *** Warning: the command libtool uses to detect shared libraries,
7698 *** $file_magic_cmd, produces output that libtool cannot recognize.
7699 *** The result is that libtool may fail to recognize shared libraries
7700 *** as such.  This will affect the creation of libtool libraries that
7701 *** depend on shared libraries, but programs linked with such libtool
7702 *** libraries will work regardless of this problem.  Nevertheless, you
7703 *** may want to report the problem to your system manager and/or to
7704 *** bug-libtool@gnu.org
7705
7706 _LT_EOF
7707           fi ;;
7708         esac
7709       fi
7710       break
7711     fi
7712   done
7713   IFS="$lt_save_ifs"
7714   MAGIC_CMD="$lt_save_MAGIC_CMD"
7715   ;;
7716 esac
7717 fi
7718
7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720 if test -n "$MAGIC_CMD"; then
7721   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7722 $as_echo "$MAGIC_CMD" >&6; }
7723 else
7724   { $as_echo "$as_me:$LINENO: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729
7730
7731
7732 if test -z "$lt_cv_path_MAGIC_CMD"; then
7733   if test -n "$ac_tool_prefix"; then
7734     { $as_echo "$as_me:$LINENO: checking for file" >&5
7735 $as_echo_n "checking for file... " >&6; }
7736 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7737   $as_echo_n "(cached) " >&6
7738 else
7739   case $MAGIC_CMD in
7740 [\\/*] |  ?:[\\/]*)
7741   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7742   ;;
7743 *)
7744   lt_save_MAGIC_CMD="$MAGIC_CMD"
7745   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7746   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7747   for ac_dir in $ac_dummy; do
7748     IFS="$lt_save_ifs"
7749     test -z "$ac_dir" && ac_dir=.
7750     if test -f $ac_dir/file; then
7751       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7752       if test -n "$file_magic_test_file"; then
7753         case $deplibs_check_method in
7754         "file_magic "*)
7755           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7756           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7757           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7758             $EGREP "$file_magic_regex" > /dev/null; then
7759             :
7760           else
7761             cat <<_LT_EOF 1>&2
7762
7763 *** Warning: the command libtool uses to detect shared libraries,
7764 *** $file_magic_cmd, produces output that libtool cannot recognize.
7765 *** The result is that libtool may fail to recognize shared libraries
7766 *** as such.  This will affect the creation of libtool libraries that
7767 *** depend on shared libraries, but programs linked with such libtool
7768 *** libraries will work regardless of this problem.  Nevertheless, you
7769 *** may want to report the problem to your system manager and/or to
7770 *** bug-libtool@gnu.org
7771
7772 _LT_EOF
7773           fi ;;
7774         esac
7775       fi
7776       break
7777     fi
7778   done
7779   IFS="$lt_save_ifs"
7780   MAGIC_CMD="$lt_save_MAGIC_CMD"
7781   ;;
7782 esac
7783 fi
7784
7785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786 if test -n "$MAGIC_CMD"; then
7787   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7788 $as_echo "$MAGIC_CMD" >&6; }
7789 else
7790   { $as_echo "$as_me:$LINENO: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795   else
7796     MAGIC_CMD=:
7797   fi
7798 fi
7799
7800   fi
7801   ;;
7802 esac
7803
7804 # Use C for the default configuration in the libtool script
7805
7806 lt_save_CC="$CC"
7807 ac_ext=c
7808 ac_cpp='$CPP $CPPFLAGS'
7809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812
7813
7814 # Source file extension for C test sources.
7815 ac_ext=c
7816
7817 # Object file extension for compiled C test sources.
7818 objext=o
7819 objext=$objext
7820
7821 # Code to be used in simple compile tests
7822 lt_simple_compile_test_code="int some_variable = 0;"
7823
7824 # Code to be used in simple link tests
7825 lt_simple_link_test_code='int main(){return(0);}'
7826
7827
7828
7829
7830
7831
7832
7833 # If no C compiler was specified, use CC.
7834 LTCC=${LTCC-"$CC"}
7835
7836 # If no C compiler flags were specified, use CFLAGS.
7837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7838
7839 # Allow CC to be a program name with arguments.
7840 compiler=$CC
7841
7842 # Save the default compiler, since it gets overwritten when the other
7843 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7844 compiler_DEFAULT=$CC
7845
7846 # save warnings/boilerplate of simple test code
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850 _lt_compiler_boilerplate=`cat conftest.err`
7851 $RM conftest*
7852
7853 ac_outfile=conftest.$ac_objext
7854 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7856 _lt_linker_boilerplate=`cat conftest.err`
7857 $RM -r conftest*
7858
7859
7860 if test -n "$compiler"; then
7861
7862 lt_prog_compiler_no_builtin_flag=
7863
7864 if test "$GCC" = yes; then
7865   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7866
7867   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7868 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7869 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7870   $as_echo_n "(cached) " >&6
7871 else
7872   lt_cv_prog_compiler_rtti_exceptions=no
7873    ac_outfile=conftest.$ac_objext
7874    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875    lt_compiler_flag="-fno-rtti -fno-exceptions"
7876    # Insert the option either (1) after the last *FLAGS variable, or
7877    # (2) before a word containing "conftest.", or (3) at the end.
7878    # Note that $ac_compile itself does not contain backslashes and begins
7879    # with a dollar sign (not a hyphen), so the echo should work correctly.
7880    # The option is referenced via a variable to avoid confusing sed.
7881    lt_compile=`echo "$ac_compile" | $SED \
7882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884    -e 's:$: $lt_compiler_flag:'`
7885    (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886    (eval "$lt_compile" 2>conftest.err)
7887    ac_status=$?
7888    cat conftest.err >&5
7889    echo "$as_me:7889: \$? = $ac_status" >&5
7890    if (exit $ac_status) && test -s "$ac_outfile"; then
7891      # The compiler can only warn and ignore the option if not recognized
7892      # So say no if there are warnings other than the usual output.
7893      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7894      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7895      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7896        lt_cv_prog_compiler_rtti_exceptions=yes
7897      fi
7898    fi
7899    $RM conftest*
7900
7901 fi
7902 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7903 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7904
7905 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7906     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7907 else
7908     :
7909 fi
7910
7911 fi
7912
7913
7914
7915
7916
7917
7918   lt_prog_compiler_wl=
7919 lt_prog_compiler_pic=
7920 lt_prog_compiler_static=
7921
7922 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7923 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7924
7925   if test "$GCC" = yes; then
7926     lt_prog_compiler_wl='-Wl,'
7927     lt_prog_compiler_static='-static'
7928
7929     case $host_os in
7930       aix*)
7931       # All AIX code is PIC.
7932       if test "$host_cpu" = ia64; then
7933         # AIX 5 now supports IA64 processor
7934         lt_prog_compiler_static='-Bstatic'
7935       fi
7936       ;;
7937
7938     amigaos*)
7939       case $host_cpu in
7940       powerpc)
7941             # see comment about AmigaOS4 .so support
7942             lt_prog_compiler_pic='-fPIC'
7943         ;;
7944       m68k)
7945             # FIXME: we need at least 68020 code to build shared libraries, but
7946             # adding the `-m68020' flag to GCC prevents building anything better,
7947             # like `-m68040'.
7948             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7949         ;;
7950       esac
7951       ;;
7952
7953     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7954       # PIC is the default for these OSes.
7955       ;;
7956
7957     mingw* | cygwin* | pw32* | os2* | cegcc*)
7958       # This hack is so that the source file can tell whether it is being
7959       # built for inclusion in a dll (and should export symbols for example).
7960       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7961       # (--disable-auto-import) libraries
7962       lt_prog_compiler_pic='-DDLL_EXPORT'
7963       ;;
7964
7965     darwin* | rhapsody*)
7966       # PIC is the default on this platform
7967       # Common symbols not allowed in MH_DYLIB files
7968       lt_prog_compiler_pic='-fno-common'
7969       ;;
7970
7971     hpux*)
7972       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7973       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7974       # sets the default TLS model and affects inlining.
7975       case $host_cpu in
7976       hppa*64*)
7977         # +Z the default
7978         ;;
7979       *)
7980         lt_prog_compiler_pic='-fPIC'
7981         ;;
7982       esac
7983       ;;
7984
7985     interix[3-9]*)
7986       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7987       # Instead, we relocate shared libraries at runtime.
7988       ;;
7989
7990     msdosdjgpp*)
7991       # Just because we use GCC doesn't mean we suddenly get shared libraries
7992       # on systems that don't support them.
7993       lt_prog_compiler_can_build_shared=no
7994       enable_shared=no
7995       ;;
7996
7997     *nto* | *qnx*)
7998       # QNX uses GNU C++, but need to define -shared option too, otherwise
7999       # it will coredump.
8000       lt_prog_compiler_pic='-fPIC -shared'
8001       ;;
8002
8003     sysv4*MP*)
8004       if test -d /usr/nec; then
8005         lt_prog_compiler_pic=-Kconform_pic
8006       fi
8007       ;;
8008
8009     *)
8010       lt_prog_compiler_pic='-fPIC'
8011       ;;
8012     esac
8013   else
8014     # PORTME Check for flag to pass linker flags through the system compiler.
8015     case $host_os in
8016     aix*)
8017       lt_prog_compiler_wl='-Wl,'
8018       if test "$host_cpu" = ia64; then
8019         # AIX 5 now supports IA64 processor
8020         lt_prog_compiler_static='-Bstatic'
8021       else
8022         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8023       fi
8024       ;;
8025
8026     mingw* | cygwin* | pw32* | os2* | cegcc*)
8027       # This hack is so that the source file can tell whether it is being
8028       # built for inclusion in a dll (and should export symbols for example).
8029       lt_prog_compiler_pic='-DDLL_EXPORT'
8030       ;;
8031
8032     hpux9* | hpux10* | hpux11*)
8033       lt_prog_compiler_wl='-Wl,'
8034       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8035       # not for PA HP-UX.
8036       case $host_cpu in
8037       hppa*64*|ia64*)
8038         # +Z the default
8039         ;;
8040       *)
8041         lt_prog_compiler_pic='+Z'
8042         ;;
8043       esac
8044       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8045       lt_prog_compiler_static='${wl}-a ${wl}archive'
8046       ;;
8047
8048     irix5* | irix6* | nonstopux*)
8049       lt_prog_compiler_wl='-Wl,'
8050       # PIC (with -KPIC) is the default.
8051       lt_prog_compiler_static='-non_shared'
8052       ;;
8053
8054     linux* | k*bsd*-gnu)
8055       case $cc_basename in
8056       # old Intel for x86_64 which still supported -KPIC.
8057       ecc*)
8058         lt_prog_compiler_wl='-Wl,'
8059         lt_prog_compiler_pic='-KPIC'
8060         lt_prog_compiler_static='-static'
8061         ;;
8062       # icc used to be incompatible with GCC.
8063       # ICC 10 doesn't accept -KPIC any more.
8064       icc* | ifort*)
8065         lt_prog_compiler_wl='-Wl,'
8066         lt_prog_compiler_pic='-fPIC'
8067         lt_prog_compiler_static='-static'
8068         ;;
8069       # Lahey Fortran 8.1.
8070       lf95*)
8071         lt_prog_compiler_wl='-Wl,'
8072         lt_prog_compiler_pic='--shared'
8073         lt_prog_compiler_static='--static'
8074         ;;
8075       pgcc* | pgf77* | pgf90* | pgf95*)
8076         # Portland Group compilers (*not* the Pentium gcc compiler,
8077         # which looks to be a dead project)
8078         lt_prog_compiler_wl='-Wl,'
8079         lt_prog_compiler_pic='-fpic'
8080         lt_prog_compiler_static='-Bstatic'
8081         ;;
8082       ccc*)
8083         lt_prog_compiler_wl='-Wl,'
8084         # All Alpha code is PIC.
8085         lt_prog_compiler_static='-non_shared'
8086         ;;
8087       xl*)
8088         # IBM XL C 8.0/Fortran 10.1 on PPC
8089         lt_prog_compiler_wl='-Wl,'
8090         lt_prog_compiler_pic='-qpic'
8091         lt_prog_compiler_static='-qstaticlink'
8092         ;;
8093       *)
8094         case `$CC -V 2>&1 | sed 5q` in
8095         *Sun\ C*)
8096           # Sun C 5.9
8097           lt_prog_compiler_pic='-KPIC'
8098           lt_prog_compiler_static='-Bstatic'
8099           lt_prog_compiler_wl='-Wl,'
8100           ;;
8101         *Sun\ F*)
8102           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8103           lt_prog_compiler_pic='-KPIC'
8104           lt_prog_compiler_static='-Bstatic'
8105           lt_prog_compiler_wl=''
8106           ;;
8107         esac
8108         ;;
8109       esac
8110       ;;
8111
8112     newsos6)
8113       lt_prog_compiler_pic='-KPIC'
8114       lt_prog_compiler_static='-Bstatic'
8115       ;;
8116
8117     *nto* | *qnx*)
8118       # QNX uses GNU C++, but need to define -shared option too, otherwise
8119       # it will coredump.
8120       lt_prog_compiler_pic='-fPIC -shared'
8121       ;;
8122
8123     osf3* | osf4* | osf5*)
8124       lt_prog_compiler_wl='-Wl,'
8125       # All OSF/1 code is PIC.
8126       lt_prog_compiler_static='-non_shared'
8127       ;;
8128
8129     rdos*)
8130       lt_prog_compiler_static='-non_shared'
8131       ;;
8132
8133     solaris*)
8134       lt_prog_compiler_pic='-KPIC'
8135       lt_prog_compiler_static='-Bstatic'
8136       case $cc_basename in
8137       f77* | f90* | f95*)
8138         lt_prog_compiler_wl='-Qoption ld ';;
8139       *)
8140         lt_prog_compiler_wl='-Wl,';;
8141       esac
8142       ;;
8143
8144     sunos4*)
8145       lt_prog_compiler_wl='-Qoption ld '
8146       lt_prog_compiler_pic='-PIC'
8147       lt_prog_compiler_static='-Bstatic'
8148       ;;
8149
8150     sysv4 | sysv4.2uw2* | sysv4.3*)
8151       lt_prog_compiler_wl='-Wl,'
8152       lt_prog_compiler_pic='-KPIC'
8153       lt_prog_compiler_static='-Bstatic'
8154       ;;
8155
8156     sysv4*MP*)
8157       if test -d /usr/nec ;then
8158         lt_prog_compiler_pic='-Kconform_pic'
8159         lt_prog_compiler_static='-Bstatic'
8160       fi
8161       ;;
8162
8163     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8164       lt_prog_compiler_wl='-Wl,'
8165       lt_prog_compiler_pic='-KPIC'
8166       lt_prog_compiler_static='-Bstatic'
8167       ;;
8168
8169     unicos*)
8170       lt_prog_compiler_wl='-Wl,'
8171       lt_prog_compiler_can_build_shared=no
8172       ;;
8173
8174     uts4*)
8175       lt_prog_compiler_pic='-pic'
8176       lt_prog_compiler_static='-Bstatic'
8177       ;;
8178
8179     *)
8180       lt_prog_compiler_can_build_shared=no
8181       ;;
8182     esac
8183   fi
8184
8185 case $host_os in
8186   # For platforms which do not support PIC, -DPIC is meaningless:
8187   *djgpp*)
8188     lt_prog_compiler_pic=
8189     ;;
8190   *)
8191     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8192     ;;
8193 esac
8194 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8195 $as_echo "$lt_prog_compiler_pic" >&6; }
8196
8197
8198
8199
8200
8201
8202 #
8203 # Check to make sure the PIC flag actually works.
8204 #
8205 if test -n "$lt_prog_compiler_pic"; then
8206   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8207 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8208 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8209   $as_echo_n "(cached) " >&6
8210 else
8211   lt_cv_prog_compiler_pic_works=no
8212    ac_outfile=conftest.$ac_objext
8213    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8215    # Insert the option either (1) after the last *FLAGS variable, or
8216    # (2) before a word containing "conftest.", or (3) at the end.
8217    # Note that $ac_compile itself does not contain backslashes and begins
8218    # with a dollar sign (not a hyphen), so the echo should work correctly.
8219    # The option is referenced via a variable to avoid confusing sed.
8220    lt_compile=`echo "$ac_compile" | $SED \
8221    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223    -e 's:$: $lt_compiler_flag:'`
8224    (eval echo "\"\$as_me:8224: $lt_compile\"" >&5)
8225    (eval "$lt_compile" 2>conftest.err)
8226    ac_status=$?
8227    cat conftest.err >&5
8228    echo "$as_me:8228: \$? = $ac_status" >&5
8229    if (exit $ac_status) && test -s "$ac_outfile"; then
8230      # The compiler can only warn and ignore the option if not recognized
8231      # So say no if there are warnings other than the usual output.
8232      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8233      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8234      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8235        lt_cv_prog_compiler_pic_works=yes
8236      fi
8237    fi
8238    $RM conftest*
8239
8240 fi
8241 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8242 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8243
8244 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8245     case $lt_prog_compiler_pic in
8246      "" | " "*) ;;
8247      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8248      esac
8249 else
8250     lt_prog_compiler_pic=
8251      lt_prog_compiler_can_build_shared=no
8252 fi
8253
8254 fi
8255
8256
8257
8258
8259
8260
8261 #
8262 # Check to make sure the static flag actually works.
8263 #
8264 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8265 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8266 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8267 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8268   $as_echo_n "(cached) " >&6
8269 else
8270   lt_cv_prog_compiler_static_works=no
8271    save_LDFLAGS="$LDFLAGS"
8272    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8273    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8274    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8275      # The linker can only warn and ignore the option if not recognized
8276      # So say no if there are warnings
8277      if test -s conftest.err; then
8278        # Append any errors to the config.log.
8279        cat conftest.err 1>&5
8280        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8281        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8282        if diff conftest.exp conftest.er2 >/dev/null; then
8283          lt_cv_prog_compiler_static_works=yes
8284        fi
8285      else
8286        lt_cv_prog_compiler_static_works=yes
8287      fi
8288    fi
8289    $RM -r conftest*
8290    LDFLAGS="$save_LDFLAGS"
8291
8292 fi
8293 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8294 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8295
8296 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8297     :
8298 else
8299     lt_prog_compiler_static=
8300 fi
8301
8302
8303
8304
8305
8306
8307
8308   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8310 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8311   $as_echo_n "(cached) " >&6
8312 else
8313   lt_cv_prog_compiler_c_o=no
8314    $RM -r conftest 2>/dev/null
8315    mkdir conftest
8316    cd conftest
8317    mkdir out
8318    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319
8320    lt_compiler_flag="-o out/conftest2.$ac_objext"
8321    # Insert the option either (1) after the last *FLAGS variable, or
8322    # (2) before a word containing "conftest.", or (3) at the end.
8323    # Note that $ac_compile itself does not contain backslashes and begins
8324    # with a dollar sign (not a hyphen), so the echo should work correctly.
8325    lt_compile=`echo "$ac_compile" | $SED \
8326    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328    -e 's:$: $lt_compiler_flag:'`
8329    (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
8330    (eval "$lt_compile" 2>out/conftest.err)
8331    ac_status=$?
8332    cat out/conftest.err >&5
8333    echo "$as_me:8333: \$? = $ac_status" >&5
8334    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8335    then
8336      # The compiler can only warn and ignore the option if not recognized
8337      # So say no if there are warnings
8338      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8339      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8340      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8341        lt_cv_prog_compiler_c_o=yes
8342      fi
8343    fi
8344    chmod u+w . 2>&5
8345    $RM conftest*
8346    # SGI C++ compiler will create directory out/ii_files/ for
8347    # template instantiation
8348    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8349    $RM out/* && rmdir out
8350    cd ..
8351    $RM -r conftest
8352    $RM conftest*
8353
8354 fi
8355 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8356 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8357
8358
8359
8360
8361
8362
8363   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8366   $as_echo_n "(cached) " >&6
8367 else
8368   lt_cv_prog_compiler_c_o=no
8369    $RM -r conftest 2>/dev/null
8370    mkdir conftest
8371    cd conftest
8372    mkdir out
8373    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8374
8375    lt_compiler_flag="-o out/conftest2.$ac_objext"
8376    # Insert the option either (1) after the last *FLAGS variable, or
8377    # (2) before a word containing "conftest.", or (3) at the end.
8378    # Note that $ac_compile itself does not contain backslashes and begins
8379    # with a dollar sign (not a hyphen), so the echo should work correctly.
8380    lt_compile=`echo "$ac_compile" | $SED \
8381    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8383    -e 's:$: $lt_compiler_flag:'`
8384    (eval echo "\"\$as_me:8384: $lt_compile\"" >&5)
8385    (eval "$lt_compile" 2>out/conftest.err)
8386    ac_status=$?
8387    cat out/conftest.err >&5
8388    echo "$as_me:8388: \$? = $ac_status" >&5
8389    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8390    then
8391      # The compiler can only warn and ignore the option if not recognized
8392      # So say no if there are warnings
8393      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8394      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8395      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8396        lt_cv_prog_compiler_c_o=yes
8397      fi
8398    fi
8399    chmod u+w . 2>&5
8400    $RM conftest*
8401    # SGI C++ compiler will create directory out/ii_files/ for
8402    # template instantiation
8403    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8404    $RM out/* && rmdir out
8405    cd ..
8406    $RM -r conftest
8407    $RM conftest*
8408
8409 fi
8410 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8412
8413
8414
8415
8416 hard_links="nottested"
8417 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8418   # do not overwrite the value of need_locks provided by the user
8419   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8420 $as_echo_n "checking if we can lock with hard links... " >&6; }
8421   hard_links=yes
8422   $RM conftest*
8423   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424   touch conftest.a
8425   ln conftest.a conftest.b 2>&5 || hard_links=no
8426   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8427   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8428 $as_echo "$hard_links" >&6; }
8429   if test "$hard_links" = no; then
8430     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8431 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8432     need_locks=warn
8433   fi
8434 else
8435   need_locks=no
8436 fi
8437
8438
8439
8440
8441
8442
8443   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8444 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8445
8446   runpath_var=
8447   allow_undefined_flag=
8448   always_export_symbols=no
8449   archive_cmds=
8450   archive_expsym_cmds=
8451   compiler_needs_object=no
8452   enable_shared_with_static_runtimes=no
8453   export_dynamic_flag_spec=
8454   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8455   hardcode_automatic=no
8456   hardcode_direct=no
8457   hardcode_direct_absolute=no
8458   hardcode_libdir_flag_spec=
8459   hardcode_libdir_flag_spec_ld=
8460   hardcode_libdir_separator=
8461   hardcode_minus_L=no
8462   hardcode_shlibpath_var=unsupported
8463   inherit_rpath=no
8464   link_all_deplibs=unknown
8465   module_cmds=
8466   module_expsym_cmds=
8467   old_archive_from_new_cmds=
8468   old_archive_from_expsyms_cmds=
8469   thread_safe_flag_spec=
8470   whole_archive_flag_spec=
8471   # include_expsyms should be a list of space-separated symbols to be *always*
8472   # included in the symbol list
8473   include_expsyms=
8474   # exclude_expsyms can be an extended regexp of symbols to exclude
8475   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8476   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8477   # as well as any symbol that contains `d'.
8478   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8479   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8480   # platforms (ab)use it in PIC code, but their linkers get confused if
8481   # the symbol is explicitly referenced.  Since portable code cannot
8482   # rely on this symbol name, it's probably fine to never include it in
8483   # preloaded symbol tables.
8484   # Exclude shared library initialization/finalization symbols.
8485   extract_expsyms_cmds=
8486
8487   case $host_os in
8488   cygwin* | mingw* | pw32* | cegcc*)
8489     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8490     # When not using gcc, we currently assume that we are using
8491     # Microsoft Visual C++.
8492     if test "$GCC" != yes; then
8493       with_gnu_ld=no
8494     fi
8495     ;;
8496   interix*)
8497     # we just hope/assume this is gcc and not c89 (= MSVC++)
8498     with_gnu_ld=yes
8499     ;;
8500   openbsd*)
8501     with_gnu_ld=no
8502     ;;
8503   esac
8504
8505   ld_shlibs=yes
8506   if test "$with_gnu_ld" = yes; then
8507     # If archive_cmds runs LD, not CC, wlarc should be empty
8508     wlarc='${wl}'
8509
8510     # Set some defaults for GNU ld with shared library support. These
8511     # are reset later if shared libraries are not supported. Putting them
8512     # here allows them to be overridden if necessary.
8513     runpath_var=LD_RUN_PATH
8514     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8515     export_dynamic_flag_spec='${wl}--export-dynamic'
8516     # ancient GNU ld didn't support --whole-archive et. al.
8517     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8518       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8519     else
8520       whole_archive_flag_spec=
8521     fi
8522     supports_anon_versioning=no
8523     case `$LD -v 2>&1` in
8524       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527       *\ 2.11.*) ;; # other 2.11 versions
8528       *) supports_anon_versioning=yes ;;
8529     esac
8530
8531     # See if GNU ld supports shared libraries.
8532     case $host_os in
8533     aix[3-9]*)
8534       # On AIX/PPC, the GNU linker is very broken
8535       if test "$host_cpu" != ia64; then
8536         ld_shlibs=no
8537         cat <<_LT_EOF 1>&2
8538
8539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support.  If you
8542 *** really care for shared libraries, you may want to modify your PATH
8543 *** so that a non-GNU linker is found, and then restart.
8544
8545 _LT_EOF
8546       fi
8547       ;;
8548
8549     amigaos*)
8550       case $host_cpu in
8551       powerpc)
8552             # see comment about AmigaOS4 .so support
8553             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554             archive_expsym_cmds=''
8555         ;;
8556       m68k)
8557             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)'
8558             hardcode_libdir_flag_spec='-L$libdir'
8559             hardcode_minus_L=yes
8560         ;;
8561       esac
8562       ;;
8563
8564     beos*)
8565       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8566         allow_undefined_flag=unsupported
8567         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8568         # support --undefined.  This deserves some investigation.  FIXME
8569         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570       else
8571         ld_shlibs=no
8572       fi
8573       ;;
8574
8575     cygwin* | mingw* | pw32* | cegcc*)
8576       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8577       # as there is no search path for DLLs.
8578       hardcode_libdir_flag_spec='-L$libdir'
8579       allow_undefined_flag=unsupported
8580       always_export_symbols=no
8581       enable_shared_with_static_runtimes=yes
8582       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8583
8584       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8585         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586         # If the export-symbols file already is a .def file (1st line
8587         # is EXPORTS), use it as is; otherwise, prepend...
8588         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8589           cp $export_symbols $output_objdir/$soname.def;
8590         else
8591           echo EXPORTS > $output_objdir/$soname.def;
8592           cat $export_symbols >> $output_objdir/$soname.def;
8593         fi~
8594         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8595       else
8596         ld_shlibs=no
8597       fi
8598       ;;
8599
8600     interix[3-9]*)
8601       hardcode_direct=no
8602       hardcode_shlibpath_var=no
8603       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604       export_dynamic_flag_spec='${wl}-E'
8605       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8606       # Instead, shared libraries are loaded at an image base (0x10000000 by
8607       # default) and relocated if they conflict, which is a slow very memory
8608       # consuming and fragmenting process.  To avoid this, we pick a random,
8609       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8610       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8611       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8612       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'
8613       ;;
8614
8615     gnu* | linux* | tpf* | k*bsd*-gnu)
8616       tmp_diet=no
8617       if test "$host_os" = linux-dietlibc; then
8618         case $cc_basename in
8619           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8620         esac
8621       fi
8622       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8623          && test "$tmp_diet" = no
8624       then
8625         tmp_addflag=
8626         tmp_sharedflag='-shared'
8627         case $cc_basename,$host_cpu in
8628         pgcc*)                          # Portland Group C compiler
8629           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'
8630           tmp_addflag=' $pic_flag'
8631           ;;
8632         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8633           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'
8634           tmp_addflag=' $pic_flag -Mnomain' ;;
8635         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8636           tmp_addflag=' -i_dynamic' ;;
8637         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8638           tmp_addflag=' -i_dynamic -nofor_main' ;;
8639         ifc* | ifort*)                  # Intel Fortran compiler
8640           tmp_addflag=' -nofor_main' ;;
8641         lf95*)                          # Lahey Fortran 8.1
8642           whole_archive_flag_spec=
8643           tmp_sharedflag='--shared' ;;
8644         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8645           tmp_sharedflag='-qmkshrobj'
8646           tmp_addflag= ;;
8647         esac
8648         case `$CC -V 2>&1 | sed 5q` in
8649         *Sun\ C*)                       # Sun C 5.9
8650           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'
8651           compiler_needs_object=yes
8652           tmp_sharedflag='-G' ;;
8653         *Sun\ F*)                       # Sun Fortran 8.3
8654           tmp_sharedflag='-G' ;;
8655         esac
8656         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657
8658         if test "x$supports_anon_versioning" = xyes; then
8659           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8660             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8661             echo "local: *; };" >> $output_objdir/$libname.ver~
8662             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8663         fi
8664
8665         case $cc_basename in
8666         xlf*)
8667           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8668           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8669           hardcode_libdir_flag_spec=
8670           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8671           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8672           if test "x$supports_anon_versioning" = xyes; then
8673             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8674               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8675               echo "local: *; };" >> $output_objdir/$libname.ver~
8676               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8677           fi
8678           ;;
8679         esac
8680       else
8681         ld_shlibs=no
8682       fi
8683       ;;
8684
8685     netbsd*)
8686       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8687         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8688         wlarc=
8689       else
8690         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8692       fi
8693       ;;
8694
8695     solaris*)
8696       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8697         ld_shlibs=no
8698         cat <<_LT_EOF 1>&2
8699
8700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8701 *** create shared libraries on Solaris systems.  Therefore, libtool
8702 *** is disabling shared libraries support.  We urge you to upgrade GNU
8703 *** binutils to release 2.9.1 or newer.  Another option is to modify
8704 *** your PATH or compiler configuration so that the native linker is
8705 *** used, and then restart.
8706
8707 _LT_EOF
8708       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711       else
8712         ld_shlibs=no
8713       fi
8714       ;;
8715
8716     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8717       case `$LD -v 2>&1` in
8718         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8719         ld_shlibs=no
8720         cat <<_LT_EOF 1>&2
8721
8722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8723 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8724 *** is disabling shared libraries support.  We urge you to upgrade GNU
8725 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8726 *** your PATH or compiler configuration so that the native linker is
8727 *** used, and then restart.
8728
8729 _LT_EOF
8730         ;;
8731         *)
8732           # For security reasons, it is highly recommended that you always
8733           # use absolute paths for naming shared libraries, and exclude the
8734           # DT_RUNPATH tag from executables and libraries.  But doing so
8735           # requires that you compile everything twice, which is a pain.
8736           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8737             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8738             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740           else
8741             ld_shlibs=no
8742           fi
8743         ;;
8744       esac
8745       ;;
8746
8747     sunos4*)
8748       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8749       wlarc=
8750       hardcode_direct=yes
8751       hardcode_shlibpath_var=no
8752       ;;
8753
8754     *)
8755       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8758       else
8759         ld_shlibs=no
8760       fi
8761       ;;
8762     esac
8763
8764     if test "$ld_shlibs" = no; then
8765       runpath_var=
8766       hardcode_libdir_flag_spec=
8767       export_dynamic_flag_spec=
8768       whole_archive_flag_spec=
8769     fi
8770   else
8771     # PORTME fill in a description of your system's linker (not GNU ld)
8772     case $host_os in
8773     aix3*)
8774       allow_undefined_flag=unsupported
8775       always_export_symbols=yes
8776       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'
8777       # Note: this linker hardcodes the directories in LIBPATH if there
8778       # are no directories specified by -L.
8779       hardcode_minus_L=yes
8780       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8781         # Neither direct hardcoding nor static linking is supported with a
8782         # broken collect2.
8783         hardcode_direct=unsupported
8784       fi
8785       ;;
8786
8787     aix[4-9]*)
8788       if test "$host_cpu" = ia64; then
8789         # On IA64, the linker does run time linking by default, so we don't
8790         # have to do anything special.
8791         aix_use_runtimelinking=no
8792         exp_sym_flag='-Bexport'
8793         no_entry_flag=""
8794       else
8795         # If we're using GNU nm, then we don't want the "-C" option.
8796         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8797         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8798           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'
8799         else
8800           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'
8801         fi
8802         aix_use_runtimelinking=no
8803
8804         # Test if we are trying to use run time linking or normal
8805         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8806         # need to do runtime linking.
8807         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8808           for ld_flag in $LDFLAGS; do
8809           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8810             aix_use_runtimelinking=yes
8811             break
8812           fi
8813           done
8814           ;;
8815         esac
8816
8817         exp_sym_flag='-bexport'
8818         no_entry_flag='-bnoentry'
8819       fi
8820
8821       # When large executables or shared objects are built, AIX ld can
8822       # have problems creating the table of contents.  If linking a library
8823       # or program results in "error TOC overflow" add -mminimal-toc to
8824       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8825       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8826
8827       archive_cmds=''
8828       hardcode_direct=yes
8829       hardcode_direct_absolute=yes
8830       hardcode_libdir_separator=':'
8831       link_all_deplibs=yes
8832       file_list_spec='${wl}-f,'
8833
8834       if test "$GCC" = yes; then
8835         case $host_os in aix4.[012]|aix4.[012].*)
8836         # We only want to do this on AIX 4.2 and lower, the check
8837         # below for broken collect2 doesn't work under 4.3+
8838           collect2name=`${CC} -print-prog-name=collect2`
8839           if test -f "$collect2name" &&
8840            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8841           then
8842           # We have reworked collect2
8843           :
8844           else
8845           # We have old collect2
8846           hardcode_direct=unsupported
8847           # It fails to find uninstalled libraries when the uninstalled
8848           # path is not listed in the libpath.  Setting hardcode_minus_L
8849           # to unsupported forces relinking
8850           hardcode_minus_L=yes
8851           hardcode_libdir_flag_spec='-L$libdir'
8852           hardcode_libdir_separator=
8853           fi
8854           ;;
8855         esac
8856         shared_flag='-shared'
8857         if test "$aix_use_runtimelinking" = yes; then
8858           shared_flag="$shared_flag "'${wl}-G'
8859         fi
8860       else
8861         # not using gcc
8862         if test "$host_cpu" = ia64; then
8863         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8864         # chokes on -Wl,-G. The following line is correct:
8865           shared_flag='-G'
8866         else
8867           if test "$aix_use_runtimelinking" = yes; then
8868             shared_flag='${wl}-G'
8869           else
8870             shared_flag='${wl}-bM:SRE'
8871           fi
8872         fi
8873       fi
8874
8875       export_dynamic_flag_spec='${wl}-bexpall'
8876       # It seems that -bexpall does not export symbols beginning with
8877       # underscore (_), so it is better to generate a list of symbols to export.
8878       always_export_symbols=yes
8879       if test "$aix_use_runtimelinking" = yes; then
8880         # Warning - without using the other runtime loading flags (-brtl),
8881         # -berok will link without error, but may produce a broken library.
8882         allow_undefined_flag='-berok'
8883         # Determine the default libpath from the value encoded in an
8884         # empty executable.
8885         cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891
8892 int
8893 main ()
8894 {
8895
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (ac_try="$ac_link"
8902 case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908   (eval "$ac_link") 2>conftest.er1
8909   ac_status=$?
8910   grep -v '^ *+' conftest.er1 >conftest.err
8911   rm -f conftest.er1
8912   cat conftest.err >&5
8913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } && {
8915          test -z "$ac_c_werror_flag" ||
8916          test ! -s conftest.err
8917        } && test -s conftest$ac_exeext && {
8918          test "$cross_compiling" = yes ||
8919          $as_test_x conftest$ac_exeext
8920        }; then
8921
8922 lt_aix_libpath_sed='
8923     /Import File Strings/,/^$/ {
8924         /^0/ {
8925             s/^0  *\(.*\)$/\1/
8926             p
8927         }
8928     }'
8929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8930 # Check for a 64-bit object if we didn't find anything.
8931 if test -z "$aix_libpath"; then
8932   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8933 fi
8934 else
8935   $as_echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938
8939 fi
8940
8941 rm -rf conftest.dSYM
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943       conftest$ac_exeext conftest.$ac_ext
8944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8945
8946         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8947         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"
8948       else
8949         if test "$host_cpu" = ia64; then
8950           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8951           allow_undefined_flag="-z nodefs"
8952           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"
8953         else
8954          # Determine the default libpath from the value encoded in an
8955          # empty executable.
8956          cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962
8963 int
8964 main ()
8965 {
8966
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8973 case "(($ac_try" in
8974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975   *) ac_try_echo=$ac_try;;
8976 esac
8977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8978 $as_echo "$ac_try_echo") >&5
8979   (eval "$ac_link") 2>conftest.er1
8980   ac_status=$?
8981   grep -v '^ *+' conftest.er1 >conftest.err
8982   rm -f conftest.er1
8983   cat conftest.err >&5
8984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } && {
8986          test -z "$ac_c_werror_flag" ||
8987          test ! -s conftest.err
8988        } && test -s conftest$ac_exeext && {
8989          test "$cross_compiling" = yes ||
8990          $as_test_x conftest$ac_exeext
8991        }; then
8992
8993 lt_aix_libpath_sed='
8994     /Import File Strings/,/^$/ {
8995         /^0/ {
8996             s/^0  *\(.*\)$/\1/
8997             p
8998         }
8999     }'
9000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9001 # Check for a 64-bit object if we didn't find anything.
9002 if test -z "$aix_libpath"; then
9003   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004 fi
9005 else
9006   $as_echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009
9010 fi
9011
9012 rm -rf conftest.dSYM
9013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9014       conftest$ac_exeext conftest.$ac_ext
9015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9016
9017          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9018           # Warning - without using the other run time loading flags,
9019           # -berok will link without error, but may produce a broken library.
9020           no_undefined_flag=' ${wl}-bernotok'
9021           allow_undefined_flag=' ${wl}-berok'
9022           # Exported symbols can be pulled into shared objects from archives
9023           whole_archive_flag_spec='$convenience'
9024           archive_cmds_need_lc=yes
9025           # This is similar to how AIX traditionally builds its shared libraries.
9026           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'
9027         fi
9028       fi
9029       ;;
9030
9031     amigaos*)
9032       case $host_cpu in
9033       powerpc)
9034             # see comment about AmigaOS4 .so support
9035             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036             archive_expsym_cmds=''
9037         ;;
9038       m68k)
9039             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)'
9040             hardcode_libdir_flag_spec='-L$libdir'
9041             hardcode_minus_L=yes
9042         ;;
9043       esac
9044       ;;
9045
9046     bsdi[45]*)
9047       export_dynamic_flag_spec=-rdynamic
9048       ;;
9049
9050     cygwin* | mingw* | pw32* | cegcc*)
9051       # When not using gcc, we currently assume that we are using
9052       # Microsoft Visual C++.
9053       # hardcode_libdir_flag_spec is actually meaningless, as there is
9054       # no search path for DLLs.
9055       hardcode_libdir_flag_spec=' '
9056       allow_undefined_flag=unsupported
9057       # Tell ltmain to make .lib files, not .a files.
9058       libext=lib
9059       # Tell ltmain to make .dll files, not .so files.
9060       shrext_cmds=".dll"
9061       # FIXME: Setting linknames here is a bad hack.
9062       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9063       # The linker will automatically build a .lib file if we build a DLL.
9064       old_archive_from_new_cmds='true'
9065       # FIXME: Should let the user specify the lib program.
9066       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9067       fix_srcfile_path='`cygpath -w "$srcfile"`'
9068       enable_shared_with_static_runtimes=yes
9069       ;;
9070
9071     darwin* | rhapsody*)
9072
9073
9074   archive_cmds_need_lc=no
9075   hardcode_direct=no
9076   hardcode_automatic=yes
9077   hardcode_shlibpath_var=unsupported
9078   whole_archive_flag_spec=''
9079   link_all_deplibs=yes
9080   allow_undefined_flag="$_lt_dar_allow_undefined"
9081   case $cc_basename in
9082      ifort*) _lt_dar_can_shared=yes ;;
9083      *) _lt_dar_can_shared=$GCC ;;
9084   esac
9085   if test "$_lt_dar_can_shared" = "yes"; then
9086     output_verbose_link_cmd=echo
9087     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9088     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9089     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}"
9090     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}"
9091
9092   else
9093   ld_shlibs=no
9094   fi
9095
9096       ;;
9097
9098     dgux*)
9099       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100       hardcode_libdir_flag_spec='-L$libdir'
9101       hardcode_shlibpath_var=no
9102       ;;
9103
9104     freebsd1*)
9105       ld_shlibs=no
9106       ;;
9107
9108     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9109     # support.  Future versions do this automatically, but an explicit c++rt0.o
9110     # does not break anything, and helps significantly (at the cost of a little
9111     # extra space).
9112     freebsd2.2*)
9113       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9114       hardcode_libdir_flag_spec='-R$libdir'
9115       hardcode_direct=yes
9116       hardcode_shlibpath_var=no
9117       ;;
9118
9119     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9120     freebsd2*)
9121       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122       hardcode_direct=yes
9123       hardcode_minus_L=yes
9124       hardcode_shlibpath_var=no
9125       ;;
9126
9127     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9128     freebsd* | dragonfly*)
9129       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9130       hardcode_libdir_flag_spec='-R$libdir'
9131       hardcode_direct=yes
9132       hardcode_shlibpath_var=no
9133       ;;
9134
9135     hpux9*)
9136       if test "$GCC" = yes; then
9137         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'
9138       else
9139         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'
9140       fi
9141       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142       hardcode_libdir_separator=:
9143       hardcode_direct=yes
9144
9145       # hardcode_minus_L: Not really in the search PATH,
9146       # but as the default location of the library.
9147       hardcode_minus_L=yes
9148       export_dynamic_flag_spec='${wl}-E'
9149       ;;
9150
9151     hpux10*)
9152       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9153         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154       else
9155         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9156       fi
9157       if test "$with_gnu_ld" = no; then
9158         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9159         hardcode_libdir_flag_spec_ld='+b $libdir'
9160         hardcode_libdir_separator=:
9161         hardcode_direct=yes
9162         hardcode_direct_absolute=yes
9163         export_dynamic_flag_spec='${wl}-E'
9164         # hardcode_minus_L: Not really in the search PATH,
9165         # but as the default location of the library.
9166         hardcode_minus_L=yes
9167       fi
9168       ;;
9169
9170     hpux11*)
9171       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9172         case $host_cpu in
9173         hppa*64*)
9174           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175           ;;
9176         ia64*)
9177           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9178           ;;
9179         *)
9180           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9181           ;;
9182         esac
9183       else
9184         case $host_cpu in
9185         hppa*64*)
9186           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187           ;;
9188         ia64*)
9189           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9190           ;;
9191         *)
9192           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9193           ;;
9194         esac
9195       fi
9196       if test "$with_gnu_ld" = no; then
9197         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198         hardcode_libdir_separator=:
9199
9200         case $host_cpu in
9201         hppa*64*|ia64*)
9202           hardcode_direct=no
9203           hardcode_shlibpath_var=no
9204           ;;
9205         *)
9206           hardcode_direct=yes
9207           hardcode_direct_absolute=yes
9208           export_dynamic_flag_spec='${wl}-E'
9209
9210           # hardcode_minus_L: Not really in the search PATH,
9211           # but as the default location of the library.
9212           hardcode_minus_L=yes
9213           ;;
9214         esac
9215       fi
9216       ;;
9217
9218     irix5* | irix6* | nonstopux*)
9219       if test "$GCC" = yes; then
9220         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'
9221         # Try to use the -exported_symbol ld option, if it does not
9222         # work, assume that -exports_file does not work either and
9223         # implicitly export all symbols.
9224         save_LDFLAGS="$LDFLAGS"
9225         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9226         cat >conftest.$ac_ext <<_ACEOF
9227 int foo(void) {}
9228 _ACEOF
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (ac_try="$ac_link"
9231 case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9236 $as_echo "$ac_try_echo") >&5
9237   (eval "$ac_link") 2>conftest.er1
9238   ac_status=$?
9239   grep -v '^ *+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } && {
9244          test -z "$ac_c_werror_flag" ||
9245          test ! -s conftest.err
9246        } && test -s conftest$ac_exeext && {
9247          test "$cross_compiling" = yes ||
9248          $as_test_x conftest$ac_exeext
9249        }; then
9250   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'
9251
9252 else
9253   $as_echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256
9257 fi
9258
9259 rm -rf conftest.dSYM
9260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9261       conftest$ac_exeext conftest.$ac_ext
9262         LDFLAGS="$save_LDFLAGS"
9263       else
9264         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'
9265         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'
9266       fi
9267       archive_cmds_need_lc='no'
9268       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269       hardcode_libdir_separator=:
9270       inherit_rpath=yes
9271       link_all_deplibs=yes
9272       ;;
9273
9274     netbsd*)
9275       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9277       else
9278         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9279       fi
9280       hardcode_libdir_flag_spec='-R$libdir'
9281       hardcode_direct=yes
9282       hardcode_shlibpath_var=no
9283       ;;
9284
9285     newsos6)
9286       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287       hardcode_direct=yes
9288       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289       hardcode_libdir_separator=:
9290       hardcode_shlibpath_var=no
9291       ;;
9292
9293     *nto* | *qnx*)
9294       ;;
9295
9296     openbsd*)
9297       if test -f /usr/libexec/ld.so; then
9298         hardcode_direct=yes
9299         hardcode_shlibpath_var=no
9300         hardcode_direct_absolute=yes
9301         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305           export_dynamic_flag_spec='${wl}-E'
9306         else
9307           case $host_os in
9308            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310              hardcode_libdir_flag_spec='-R$libdir'
9311              ;;
9312            *)
9313              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9315              ;;
9316           esac
9317         fi
9318       else
9319         ld_shlibs=no
9320       fi
9321       ;;
9322
9323     os2*)
9324       hardcode_libdir_flag_spec='-L$libdir'
9325       hardcode_minus_L=yes
9326       allow_undefined_flag=unsupported
9327       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'
9328       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9329       ;;
9330
9331     osf3*)
9332       if test "$GCC" = yes; then
9333         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334         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'
9335       else
9336         allow_undefined_flag=' -expect_unresolved \*'
9337         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'
9338       fi
9339       archive_cmds_need_lc='no'
9340       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341       hardcode_libdir_separator=:
9342       ;;
9343
9344     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9345       if test "$GCC" = yes; then
9346         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9347         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'
9348         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349       else
9350         allow_undefined_flag=' -expect_unresolved \*'
9351         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'
9352         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~
9353         $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'
9354
9355         # Both c and cxx compiler support -rpath directly
9356         hardcode_libdir_flag_spec='-rpath $libdir'
9357       fi
9358       archive_cmds_need_lc='no'
9359       hardcode_libdir_separator=:
9360       ;;
9361
9362     solaris*)
9363       no_undefined_flag=' -z defs'
9364       if test "$GCC" = yes; then
9365         wlarc='${wl}'
9366         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9369       else
9370         case `$CC -V 2>&1` in
9371         *"Compilers 5.0"*)
9372           wlarc=''
9373           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9375           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9376           ;;
9377         *)
9378           wlarc='${wl}'
9379           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9380           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9382           ;;
9383         esac
9384       fi
9385       hardcode_libdir_flag_spec='-R$libdir'
9386       hardcode_shlibpath_var=no
9387       case $host_os in
9388       solaris2.[0-5] | solaris2.[0-5].*) ;;
9389       *)
9390         # The compiler driver will combine and reorder linker options,
9391         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9392         # but is careful enough not to reorder.
9393         # Supported since Solaris 2.6 (maybe 2.5.1?)
9394         if test "$GCC" = yes; then
9395           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9396         else
9397           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9398         fi
9399         ;;
9400       esac
9401       link_all_deplibs=yes
9402       ;;
9403
9404     sunos4*)
9405       if test "x$host_vendor" = xsequent; then
9406         # Use $CC to link under sequent, because it throws in some extra .o
9407         # files that make .init and .fini sections work.
9408         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409       else
9410         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9411       fi
9412       hardcode_libdir_flag_spec='-L$libdir'
9413       hardcode_direct=yes
9414       hardcode_minus_L=yes
9415       hardcode_shlibpath_var=no
9416       ;;
9417
9418     sysv4)
9419       case $host_vendor in
9420         sni)
9421           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422           hardcode_direct=yes # is this really true???
9423         ;;
9424         siemens)
9425           ## LD is ld it makes a PLAMLIB
9426           ## CC just makes a GrossModule.
9427           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9428           reload_cmds='$CC -r -o $output$reload_objs'
9429           hardcode_direct=no
9430         ;;
9431         motorola)
9432           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9434         ;;
9435       esac
9436       runpath_var='LD_RUN_PATH'
9437       hardcode_shlibpath_var=no
9438       ;;
9439
9440     sysv4.3*)
9441       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442       hardcode_shlibpath_var=no
9443       export_dynamic_flag_spec='-Bexport'
9444       ;;
9445
9446     sysv4*MP*)
9447       if test -d /usr/nec; then
9448         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449         hardcode_shlibpath_var=no
9450         runpath_var=LD_RUN_PATH
9451         hardcode_runpath_var=yes
9452         ld_shlibs=yes
9453       fi
9454       ;;
9455
9456     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9457       no_undefined_flag='${wl}-z,text'
9458       archive_cmds_need_lc=no
9459       hardcode_shlibpath_var=no
9460       runpath_var='LD_RUN_PATH'
9461
9462       if test "$GCC" = yes; then
9463         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465       else
9466         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468       fi
9469       ;;
9470
9471     sysv5* | sco3.2v5* | sco5v6*)
9472       # Note: We can NOT use -z defs as we might desire, because we do not
9473       # link with -lc, and that would cause any symbols used from libc to
9474       # always be unresolved, which means just about no library would
9475       # ever link correctly.  If we're not using GNU ld we use -z text
9476       # though, which does catch some bad symbols but isn't as heavy-handed
9477       # as -z defs.
9478       no_undefined_flag='${wl}-z,text'
9479       allow_undefined_flag='${wl}-z,nodefs'
9480       archive_cmds_need_lc=no
9481       hardcode_shlibpath_var=no
9482       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9483       hardcode_libdir_separator=':'
9484       link_all_deplibs=yes
9485       export_dynamic_flag_spec='${wl}-Bexport'
9486       runpath_var='LD_RUN_PATH'
9487
9488       if test "$GCC" = yes; then
9489         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491       else
9492         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494       fi
9495       ;;
9496
9497     uts4*)
9498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499       hardcode_libdir_flag_spec='-L$libdir'
9500       hardcode_shlibpath_var=no
9501       ;;
9502
9503     *)
9504       ld_shlibs=no
9505       ;;
9506     esac
9507
9508     if test x$host_vendor = xsni; then
9509       case $host in
9510       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9511         export_dynamic_flag_spec='${wl}-Blargedynsym'
9512         ;;
9513       esac
9514     fi
9515   fi
9516
9517 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9518 $as_echo "$ld_shlibs" >&6; }
9519 test "$ld_shlibs" = no && can_build_shared=no
9520
9521 with_gnu_ld=$with_gnu_ld
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537 #
9538 # Do we need to explicitly link libc?
9539 #
9540 case "x$archive_cmds_need_lc" in
9541 x|xyes)
9542   # Assume -lc should be added
9543   archive_cmds_need_lc=yes
9544
9545   if test "$enable_shared" = yes && test "$GCC" = yes; then
9546     case $archive_cmds in
9547     *'~'*)
9548       # FIXME: we may have to deal with multi-command sequences.
9549       ;;
9550     '$CC '*)
9551       # Test whether the compiler implicitly links with -lc since on some
9552       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9553       # to ld, don't add -lc before -lgcc.
9554       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9555 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9556       $RM conftest*
9557       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9558
9559       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9560   (eval $ac_compile) 2>&5
9561   ac_status=$?
9562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } 2>conftest.err; then
9564         soname=conftest
9565         lib=conftest
9566         libobjs=conftest.$ac_objext
9567         deplibs=
9568         wl=$lt_prog_compiler_wl
9569         pic_flag=$lt_prog_compiler_pic
9570         compiler_flags=-v
9571         linker_flags=-v
9572         verstring=
9573         output_objdir=.
9574         libname=conftest
9575         lt_save_allow_undefined_flag=$allow_undefined_flag
9576         allow_undefined_flag=
9577         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9578   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9579   ac_status=$?
9580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }
9582         then
9583           archive_cmds_need_lc=no
9584         else
9585           archive_cmds_need_lc=yes
9586         fi
9587         allow_undefined_flag=$lt_save_allow_undefined_flag
9588       else
9589         cat conftest.err 1>&5
9590       fi
9591       $RM conftest*
9592       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9593 $as_echo "$archive_cmds_need_lc" >&6; }
9594       ;;
9595     esac
9596   fi
9597   ;;
9598 esac
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9757 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9758
9759 if test "$GCC" = yes; then
9760   case $host_os in
9761     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9762     *) lt_awk_arg="/^libraries:/" ;;
9763   esac
9764   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9765   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9766     # if the path contains ";" then we assume it to be the separator
9767     # otherwise default to the standard path separator (i.e. ":") - it is
9768     # assumed that no part of a normal pathname contains ";" but that should
9769     # okay in the real world where ";" in dirpaths is itself problematic.
9770     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9771   else
9772     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9773   fi
9774   # Ok, now we have the path, separated by spaces, we can step through it
9775   # and add multilib dir if necessary.
9776   lt_tmp_lt_search_path_spec=
9777   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9778   for lt_sys_path in $lt_search_path_spec; do
9779     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9780       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9781     else
9782       test -d "$lt_sys_path" && \
9783         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9784     fi
9785   done
9786   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9787 BEGIN {RS=" "; FS="/|\n";} {
9788   lt_foo="";
9789   lt_count=0;
9790   for (lt_i = NF; lt_i > 0; lt_i--) {
9791     if ($lt_i != "" && $lt_i != ".") {
9792       if ($lt_i == "..") {
9793         lt_count++;
9794       } else {
9795         if (lt_count == 0) {
9796           lt_foo="/" $lt_i lt_foo;
9797         } else {
9798           lt_count--;
9799         }
9800       }
9801     }
9802   }
9803   if (lt_foo != "") { lt_freq[lt_foo]++; }
9804   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9805 }'`
9806   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9807 else
9808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9809 fi
9810 library_names_spec=
9811 libname_spec='lib$name'
9812 soname_spec=
9813 shrext_cmds=".so"
9814 postinstall_cmds=
9815 postuninstall_cmds=
9816 finish_cmds=
9817 finish_eval=
9818 shlibpath_var=
9819 shlibpath_overrides_runpath=unknown
9820 version_type=none
9821 dynamic_linker="$host_os ld.so"
9822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9823 need_lib_prefix=unknown
9824 hardcode_into_libs=no
9825
9826 # when you set need_version to no, make sure it does not cause -set_version
9827 # flags to be left without arguments
9828 need_version=unknown
9829
9830 case $host_os in
9831 aix3*)
9832   version_type=linux
9833   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9834   shlibpath_var=LIBPATH
9835
9836   # AIX 3 has no versioning support, so we append a major version to the name.
9837   soname_spec='${libname}${release}${shared_ext}$major'
9838   ;;
9839
9840 aix[4-9]*)
9841   version_type=linux
9842   need_lib_prefix=no
9843   need_version=no
9844   hardcode_into_libs=yes
9845   if test "$host_cpu" = ia64; then
9846     # AIX 5 supports IA64
9847     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9848     shlibpath_var=LD_LIBRARY_PATH
9849   else
9850     # With GCC up to 2.95.x, collect2 would create an import file
9851     # for dependence libraries.  The import file would start with
9852     # the line `#! .'.  This would cause the generated library to
9853     # depend on `.', always an invalid library.  This was fixed in
9854     # development snapshots of GCC prior to 3.0.
9855     case $host_os in
9856       aix4 | aix4.[01] | aix4.[01].*)
9857       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9858            echo ' yes '
9859            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9860         :
9861       else
9862         can_build_shared=no
9863       fi
9864       ;;
9865     esac
9866     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9867     # soname into executable. Probably we can add versioning support to
9868     # collect2, so additional links can be useful in future.
9869     if test "$aix_use_runtimelinking" = yes; then
9870       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9871       # instead of lib<name>.a to let people know that these are not
9872       # typical AIX shared libraries.
9873       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874     else
9875       # We preserve .a as extension for shared libraries through AIX4.2
9876       # and later when we are not doing run time linking.
9877       library_names_spec='${libname}${release}.a $libname.a'
9878       soname_spec='${libname}${release}${shared_ext}$major'
9879     fi
9880     shlibpath_var=LIBPATH
9881   fi
9882   ;;
9883
9884 amigaos*)
9885   case $host_cpu in
9886   powerpc)
9887     # Since July 2007 AmigaOS4 officially supports .so libraries.
9888     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890     ;;
9891   m68k)
9892     library_names_spec='$libname.ixlibrary $libname.a'
9893     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9894     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'
9895     ;;
9896   esac
9897   ;;
9898
9899 beos*)
9900   library_names_spec='${libname}${shared_ext}'
9901   dynamic_linker="$host_os ld.so"
9902   shlibpath_var=LIBRARY_PATH
9903   ;;
9904
9905 bsdi[45]*)
9906   version_type=linux
9907   need_version=no
9908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909   soname_spec='${libname}${release}${shared_ext}$major'
9910   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9911   shlibpath_var=LD_LIBRARY_PATH
9912   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9913   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9914   # the default ld.so.conf also contains /usr/contrib/lib and
9915   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9916   # libtool to hard-code these into programs
9917   ;;
9918
9919 cygwin* | mingw* | pw32* | cegcc*)
9920   version_type=windows
9921   shrext_cmds=".dll"
9922   need_version=no
9923   need_lib_prefix=no
9924
9925   case $GCC,$host_os in
9926   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9927     library_names_spec='$libname.dll.a'
9928     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9929     postinstall_cmds='base_file=`basename \${file}`~
9930       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9931       dldir=$destdir/`dirname \$dlpath`~
9932       test -d \$dldir || mkdir -p \$dldir~
9933       $install_prog $dir/$dlname \$dldir/$dlname~
9934       chmod a+x \$dldir/$dlname~
9935       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9936         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9937       fi'
9938     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9939       dlpath=$dir/\$dldll~
9940        $RM \$dlpath'
9941     shlibpath_overrides_runpath=yes
9942
9943     case $host_os in
9944     cygwin*)
9945       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9946       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9948       ;;
9949     mingw* | cegcc*)
9950       # MinGW DLLs use traditional 'lib' prefix
9951       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9953       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9954         # It is most probably a Windows format PATH printed by
9955         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9956         # path with ; separators, and with drive letters. We can handle the
9957         # drive letters (cygwin fileutils understands them), so leave them,
9958         # especially as we might pass files found there to a mingw objdump,
9959         # which wouldn't understand a cygwinified path. Ahh.
9960         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9961       else
9962         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9963       fi
9964       ;;
9965     pw32*)
9966       # pw32 DLLs use 'pw' prefix rather than 'lib'
9967       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968       ;;
9969     esac
9970     ;;
9971
9972   *)
9973     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9974     ;;
9975   esac
9976   dynamic_linker='Win32 ld.exe'
9977   # FIXME: first we should search . and the directory the executable is in
9978   shlibpath_var=PATH
9979   ;;
9980
9981 darwin* | rhapsody*)
9982   dynamic_linker="$host_os dyld"
9983   version_type=darwin
9984   need_lib_prefix=no
9985   need_version=no
9986   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9987   soname_spec='${libname}${release}${major}$shared_ext'
9988   shlibpath_overrides_runpath=yes
9989   shlibpath_var=DYLD_LIBRARY_PATH
9990   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9991
9992   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9993   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9994   ;;
9995
9996 dgux*)
9997   version_type=linux
9998   need_lib_prefix=no
9999   need_version=no
10000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10001   soname_spec='${libname}${release}${shared_ext}$major'
10002   shlibpath_var=LD_LIBRARY_PATH
10003   ;;
10004
10005 freebsd1*)
10006   dynamic_linker=no
10007   ;;
10008
10009 freebsd* | dragonfly*)
10010   # DragonFly does not have aout.  When/if they implement a new
10011   # versioning mechanism, adjust this.
10012   if test -x /usr/bin/objformat; then
10013     objformat=`/usr/bin/objformat`
10014   else
10015     case $host_os in
10016     freebsd[123]*) objformat=aout ;;
10017     *) objformat=elf ;;
10018     esac
10019   fi
10020   version_type=freebsd-$objformat
10021   case $version_type in
10022     freebsd-elf*)
10023       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10024       need_version=no
10025       need_lib_prefix=no
10026       ;;
10027     freebsd-*)
10028       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10029       need_version=yes
10030       ;;
10031   esac
10032   shlibpath_var=LD_LIBRARY_PATH
10033   case $host_os in
10034   freebsd2*)
10035     shlibpath_overrides_runpath=yes
10036     ;;
10037   freebsd3.[01]* | freebsdelf3.[01]*)
10038     shlibpath_overrides_runpath=yes
10039     hardcode_into_libs=yes
10040     ;;
10041   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10042   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10043     shlibpath_overrides_runpath=no
10044     hardcode_into_libs=yes
10045     ;;
10046   *) # from 4.6 on, and DragonFly
10047     shlibpath_overrides_runpath=yes
10048     hardcode_into_libs=yes
10049     ;;
10050   esac
10051   ;;
10052
10053 gnu*)
10054   version_type=linux
10055   need_lib_prefix=no
10056   need_version=no
10057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10058   soname_spec='${libname}${release}${shared_ext}$major'
10059   shlibpath_var=LD_LIBRARY_PATH
10060   hardcode_into_libs=yes
10061   ;;
10062
10063 hpux9* | hpux10* | hpux11*)
10064   # Give a soname corresponding to the major version so that dld.sl refuses to
10065   # link against other versions.
10066   version_type=sunos
10067   need_lib_prefix=no
10068   need_version=no
10069   case $host_cpu in
10070   ia64*)
10071     shrext_cmds='.so'
10072     hardcode_into_libs=yes
10073     dynamic_linker="$host_os dld.so"
10074     shlibpath_var=LD_LIBRARY_PATH
10075     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077     soname_spec='${libname}${release}${shared_ext}$major'
10078     if test "X$HPUX_IA64_MODE" = X32; then
10079       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10080     else
10081       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10082     fi
10083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10084     ;;
10085   hppa*64*)
10086     shrext_cmds='.sl'
10087     hardcode_into_libs=yes
10088     dynamic_linker="$host_os dld.sl"
10089     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092     soname_spec='${libname}${release}${shared_ext}$major'
10093     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10095     ;;
10096   *)
10097     shrext_cmds='.sl'
10098     dynamic_linker="$host_os dld.sl"
10099     shlibpath_var=SHLIB_PATH
10100     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102     soname_spec='${libname}${release}${shared_ext}$major'
10103     ;;
10104   esac
10105   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10106   postinstall_cmds='chmod 555 $lib'
10107   ;;
10108
10109 interix[3-9]*)
10110   version_type=linux
10111   need_lib_prefix=no
10112   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10116   shlibpath_var=LD_LIBRARY_PATH
10117   shlibpath_overrides_runpath=no
10118   hardcode_into_libs=yes
10119   ;;
10120
10121 irix5* | irix6* | nonstopux*)
10122   case $host_os in
10123     nonstopux*) version_type=nonstopux ;;
10124     *)
10125         if test "$lt_cv_prog_gnu_ld" = yes; then
10126                 version_type=linux
10127         else
10128                 version_type=irix
10129         fi ;;
10130   esac
10131   need_lib_prefix=no
10132   need_version=no
10133   soname_spec='${libname}${release}${shared_ext}$major'
10134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10135   case $host_os in
10136   irix5* | nonstopux*)
10137     libsuff= shlibsuff=
10138     ;;
10139   *)
10140     case $LD in # libtool.m4 will add one of these switches to LD
10141     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10142       libsuff= shlibsuff= libmagic=32-bit;;
10143     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10144       libsuff=32 shlibsuff=N32 libmagic=N32;;
10145     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10146       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10147     *) libsuff= shlibsuff= libmagic=never-match;;
10148     esac
10149     ;;
10150   esac
10151   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10152   shlibpath_overrides_runpath=no
10153   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10154   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10155   hardcode_into_libs=yes
10156   ;;
10157
10158 # No shared lib support for Linux oldld, aout, or coff.
10159 linux*oldld* | linux*aout* | linux*coff*)
10160   dynamic_linker=no
10161   ;;
10162
10163 # This must be Linux ELF.
10164 linux* | k*bsd*-gnu)
10165   version_type=linux
10166   need_lib_prefix=no
10167   need_version=no
10168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169   soname_spec='${libname}${release}${shared_ext}$major'
10170   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10171   shlibpath_var=LD_LIBRARY_PATH
10172   shlibpath_overrides_runpath=no
10173   # Some binutils ld are patched to set DT_RUNPATH
10174   save_LDFLAGS=$LDFLAGS
10175   save_libdir=$libdir
10176   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10177        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10178   cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184
10185 int
10186 main ()
10187 {
10188
10189   ;
10190   return 0;
10191 }
10192 _ACEOF
10193 rm -f conftest.$ac_objext conftest$ac_exeext
10194 if { (ac_try="$ac_link"
10195 case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10200 $as_echo "$ac_try_echo") >&5
10201   (eval "$ac_link") 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } && {
10208          test -z "$ac_c_werror_flag" ||
10209          test ! -s conftest.err
10210        } && test -s conftest$ac_exeext && {
10211          test "$cross_compiling" = yes ||
10212          $as_test_x conftest$ac_exeext
10213        }; then
10214   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10215   shlibpath_overrides_runpath=yes
10216 fi
10217
10218 else
10219   $as_echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222
10223 fi
10224
10225 rm -rf conftest.dSYM
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227       conftest$ac_exeext conftest.$ac_ext
10228   LDFLAGS=$save_LDFLAGS
10229   libdir=$save_libdir
10230
10231   # This implies no fast_install, which is unacceptable.
10232   # Some rework will be needed to allow for fast_install
10233   # before this can be enabled.
10234   hardcode_into_libs=yes
10235
10236   # Add ABI-specific directories to the system library path.
10237   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10238
10239   # Append ld.so.conf contents to the search path
10240   if test -f /etc/ld.so.conf; then
10241     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' ' '`
10242     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10243   fi
10244
10245   # We used to test for /lib/ld.so.1 and disable shared libraries on
10246   # powerpc, because MkLinux only supported shared libraries with the
10247   # GNU dynamic linker.  Since this was broken with cross compilers,
10248   # most powerpc-linux boxes support dynamic linking these days and
10249   # people can always --disable-shared, the test was removed, and we
10250   # assume the GNU/Linux dynamic linker is in use.
10251   dynamic_linker='GNU/Linux ld.so'
10252   ;;
10253
10254 netbsd*)
10255   version_type=sunos
10256   need_lib_prefix=no
10257   need_version=no
10258   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10260     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10261     dynamic_linker='NetBSD (a.out) ld.so'
10262   else
10263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10264     soname_spec='${libname}${release}${shared_ext}$major'
10265     dynamic_linker='NetBSD ld.elf_so'
10266   fi
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=yes
10269   hardcode_into_libs=yes
10270   ;;
10271
10272 newsos6)
10273   version_type=linux
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275   shlibpath_var=LD_LIBRARY_PATH
10276   shlibpath_overrides_runpath=yes
10277   ;;
10278
10279 *nto* | *qnx*)
10280   version_type=qnx
10281   need_lib_prefix=no
10282   need_version=no
10283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284   soname_spec='${libname}${release}${shared_ext}$major'
10285   shlibpath_var=LD_LIBRARY_PATH
10286   shlibpath_overrides_runpath=no
10287   hardcode_into_libs=yes
10288   dynamic_linker='ldqnx.so'
10289   ;;
10290
10291 openbsd*)
10292   version_type=sunos
10293   sys_lib_dlsearch_path_spec="/usr/lib"
10294   need_lib_prefix=no
10295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10296   case $host_os in
10297     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10298     *)                          need_version=no  ;;
10299   esac
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10304     case $host_os in
10305       openbsd2.[89] | openbsd2.[89].*)
10306         shlibpath_overrides_runpath=no
10307         ;;
10308       *)
10309         shlibpath_overrides_runpath=yes
10310         ;;
10311       esac
10312   else
10313     shlibpath_overrides_runpath=yes
10314   fi
10315   ;;
10316
10317 os2*)
10318   libname_spec='$name'
10319   shrext_cmds=".dll"
10320   need_lib_prefix=no
10321   library_names_spec='$libname${shared_ext} $libname.a'
10322   dynamic_linker='OS/2 ld.exe'
10323   shlibpath_var=LIBPATH
10324   ;;
10325
10326 osf3* | osf4* | osf5*)
10327   version_type=osf
10328   need_lib_prefix=no
10329   need_version=no
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332   shlibpath_var=LD_LIBRARY_PATH
10333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10335   ;;
10336
10337 rdos*)
10338   dynamic_linker=no
10339   ;;
10340
10341 solaris*)
10342   version_type=linux
10343   need_lib_prefix=no
10344   need_version=no
10345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346   soname_spec='${libname}${release}${shared_ext}$major'
10347   shlibpath_var=LD_LIBRARY_PATH
10348   shlibpath_overrides_runpath=yes
10349   hardcode_into_libs=yes
10350   # ldd complains unless libraries are executable
10351   postinstall_cmds='chmod +x $lib'
10352   ;;
10353
10354 sunos4*)
10355   version_type=sunos
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10358   shlibpath_var=LD_LIBRARY_PATH
10359   shlibpath_overrides_runpath=yes
10360   if test "$with_gnu_ld" = yes; then
10361     need_lib_prefix=no
10362   fi
10363   need_version=yes
10364   ;;
10365
10366 sysv4 | sysv4.3*)
10367   version_type=linux
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369   soname_spec='${libname}${release}${shared_ext}$major'
10370   shlibpath_var=LD_LIBRARY_PATH
10371   case $host_vendor in
10372     sni)
10373       shlibpath_overrides_runpath=no
10374       need_lib_prefix=no
10375       runpath_var=LD_RUN_PATH
10376       ;;
10377     siemens)
10378       need_lib_prefix=no
10379       ;;
10380     motorola)
10381       need_lib_prefix=no
10382       need_version=no
10383       shlibpath_overrides_runpath=no
10384       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10385       ;;
10386   esac
10387   ;;
10388
10389 sysv4*MP*)
10390   if test -d /usr/nec ;then
10391     version_type=linux
10392     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10393     soname_spec='$libname${shared_ext}.$major'
10394     shlibpath_var=LD_LIBRARY_PATH
10395   fi
10396   ;;
10397
10398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10399   version_type=freebsd-elf
10400   need_lib_prefix=no
10401   need_version=no
10402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10403   soname_spec='${libname}${release}${shared_ext}$major'
10404   shlibpath_var=LD_LIBRARY_PATH
10405   shlibpath_overrides_runpath=yes
10406   hardcode_into_libs=yes
10407   if test "$with_gnu_ld" = yes; then
10408     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10409   else
10410     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10411     case $host_os in
10412       sco3.2v5*)
10413         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10414         ;;
10415     esac
10416   fi
10417   sys_lib_dlsearch_path_spec='/usr/lib'
10418   ;;
10419
10420 tpf*)
10421   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10422   version_type=linux
10423   need_lib_prefix=no
10424   need_version=no
10425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426   shlibpath_var=LD_LIBRARY_PATH
10427   shlibpath_overrides_runpath=no
10428   hardcode_into_libs=yes
10429   ;;
10430
10431 uts4*)
10432   version_type=linux
10433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434   soname_spec='${libname}${release}${shared_ext}$major'
10435   shlibpath_var=LD_LIBRARY_PATH
10436   ;;
10437
10438 *)
10439   dynamic_linker=no
10440   ;;
10441 esac
10442 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10443 $as_echo "$dynamic_linker" >&6; }
10444 test "$dynamic_linker" = no && can_build_shared=no
10445
10446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10447 if test "$GCC" = yes; then
10448   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10449 fi
10450
10451 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10452   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10453 fi
10454 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10455   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10456 fi
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10545 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10546 hardcode_action=
10547 if test -n "$hardcode_libdir_flag_spec" ||
10548    test -n "$runpath_var" ||
10549    test "X$hardcode_automatic" = "Xyes" ; then
10550
10551   # We can hardcode non-existent directories.
10552   if test "$hardcode_direct" != no &&
10553      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10554      # have to relink, otherwise we might link with an installed library
10555      # when we should be linking with a yet-to-be-installed one
10556      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10557      test "$hardcode_minus_L" != no; then
10558     # Linking always hardcodes the temporary library directory.
10559     hardcode_action=relink
10560   else
10561     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10562     hardcode_action=immediate
10563   fi
10564 else
10565   # We cannot hardcode anything, or else we can only hardcode existing
10566   # directories.
10567   hardcode_action=unsupported
10568 fi
10569 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10570 $as_echo "$hardcode_action" >&6; }
10571
10572 if test "$hardcode_action" = relink ||
10573    test "$inherit_rpath" = yes; then
10574   # Fast installation is not supported
10575   enable_fast_install=no
10576 elif test "$shlibpath_overrides_runpath" = yes ||
10577      test "$enable_shared" = no; then
10578   # Fast installation is not necessary
10579   enable_fast_install=needless
10580 fi
10581
10582
10583
10584
10585
10586
10587   if test "x$enable_dlopen" != xyes; then
10588   enable_dlopen=unknown
10589   enable_dlopen_self=unknown
10590   enable_dlopen_self_static=unknown
10591 else
10592   lt_cv_dlopen=no
10593   lt_cv_dlopen_libs=
10594
10595   case $host_os in
10596   beos*)
10597     lt_cv_dlopen="load_add_on"
10598     lt_cv_dlopen_libs=
10599     lt_cv_dlopen_self=yes
10600     ;;
10601
10602   mingw* | pw32* | cegcc*)
10603     lt_cv_dlopen="LoadLibrary"
10604     lt_cv_dlopen_libs=
10605     ;;
10606
10607   cygwin*)
10608     lt_cv_dlopen="dlopen"
10609     lt_cv_dlopen_libs=
10610     ;;
10611
10612   darwin*)
10613   # if libdl is installed we need to link against it
10614     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10617   $as_echo_n "(cached) " >&6
10618 else
10619   ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-ldl  $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627
10628 /* Override any GCC internal prototype to avoid an error.
10629    Use char because int might match the return type of a GCC
10630    builtin and then its argument prototype would still apply.  */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char dlopen ();
10635 int
10636 main ()
10637 {
10638 return dlopen ();
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647   *) ac_try_echo=$ac_try;;
10648 esac
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651   (eval "$ac_link") 2>conftest.er1
10652   ac_status=$?
10653   grep -v '^ *+' conftest.er1 >conftest.err
10654   rm -f conftest.er1
10655   cat conftest.err >&5
10656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } && {
10658          test -z "$ac_c_werror_flag" ||
10659          test ! -s conftest.err
10660        } && test -s conftest$ac_exeext && {
10661          test "$cross_compiling" = yes ||
10662          $as_test_x conftest$ac_exeext
10663        }; then
10664   ac_cv_lib_dl_dlopen=yes
10665 else
10666   $as_echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669         ac_cv_lib_dl_dlopen=no
10670 fi
10671
10672 rm -rf conftest.dSYM
10673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10674       conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10680   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10681 else
10682
10683     lt_cv_dlopen="dyld"
10684     lt_cv_dlopen_libs=
10685     lt_cv_dlopen_self=yes
10686
10687 fi
10688
10689     ;;
10690
10691   *)
10692     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10693 $as_echo_n "checking for shl_load... " >&6; }
10694 if test "${ac_cv_func_shl_load+set}" = set; then
10695   $as_echo_n "(cached) " >&6
10696 else
10697   cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10705 #define shl_load innocuous_shl_load
10706
10707 /* System header to define __stub macros and hopefully few prototypes,
10708     which can conflict with char shl_load (); below.
10709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10710     <limits.h> exists even on freestanding compilers.  */
10711
10712 #ifdef __STDC__
10713 # include <limits.h>
10714 #else
10715 # include <assert.h>
10716 #endif
10717
10718 #undef shl_load
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721    Use char because int might match the return type of a GCC
10722    builtin and then its argument prototype would still apply.  */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char shl_load ();
10727 /* The GNU C library defines this for functions which it implements
10728     to always fail with ENOSYS.  Some functions are actually named
10729     something starting with __ and the normal name is an alias.  */
10730 #if defined __stub_shl_load || defined __stub___shl_load
10731 choke me
10732 #endif
10733
10734 int
10735 main ()
10736 {
10737 return shl_load ();
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746   *) ac_try_echo=$ac_try;;
10747 esac
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750   (eval "$ac_link") 2>conftest.er1
10751   ac_status=$?
10752   grep -v '^ *+' conftest.er1 >conftest.err
10753   rm -f conftest.er1
10754   cat conftest.err >&5
10755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } && {
10757          test -z "$ac_c_werror_flag" ||
10758          test ! -s conftest.err
10759        } && test -s conftest$ac_exeext && {
10760          test "$cross_compiling" = yes ||
10761          $as_test_x conftest$ac_exeext
10762        }; then
10763   ac_cv_func_shl_load=yes
10764 else
10765   $as_echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768         ac_cv_func_shl_load=no
10769 fi
10770
10771 rm -rf conftest.dSYM
10772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10773       conftest$ac_exeext conftest.$ac_ext
10774 fi
10775 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10776 $as_echo "$ac_cv_func_shl_load" >&6; }
10777 if test "x$ac_cv_func_shl_load" = x""yes; then
10778   lt_cv_dlopen="shl_load"
10779 else
10780   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10781 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10782 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10783   $as_echo_n "(cached) " >&6
10784 else
10785   ac_check_lib_save_LIBS=$LIBS
10786 LIBS="-ldld  $LIBS"
10787 cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h.  */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h.  */
10793
10794 /* Override any GCC internal prototype to avoid an error.
10795    Use char because int might match the return type of a GCC
10796    builtin and then its argument prototype would still apply.  */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char shl_load ();
10801 int
10802 main ()
10803 {
10804 return shl_load ();
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10816 $as_echo "$ac_try_echo") >&5
10817   (eval "$ac_link") 2>conftest.er1
10818   ac_status=$?
10819   grep -v '^ *+' conftest.er1 >conftest.err
10820   rm -f conftest.er1
10821   cat conftest.err >&5
10822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); } && {
10824          test -z "$ac_c_werror_flag" ||
10825          test ! -s conftest.err
10826        } && test -s conftest$ac_exeext && {
10827          test "$cross_compiling" = yes ||
10828          $as_test_x conftest$ac_exeext
10829        }; then
10830   ac_cv_lib_dld_shl_load=yes
10831 else
10832   $as_echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835         ac_cv_lib_dld_shl_load=no
10836 fi
10837
10838 rm -rf conftest.dSYM
10839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10840       conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10842 fi
10843 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10844 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10845 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10846   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10847 else
10848   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10849 $as_echo_n "checking for dlopen... " >&6; }
10850 if test "${ac_cv_func_dlopen+set}" = set; then
10851   $as_echo_n "(cached) " >&6
10852 else
10853   cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h.  */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h.  */
10859 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10861 #define dlopen innocuous_dlopen
10862
10863 /* System header to define __stub macros and hopefully few prototypes,
10864     which can conflict with char dlopen (); below.
10865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10866     <limits.h> exists even on freestanding compilers.  */
10867
10868 #ifdef __STDC__
10869 # include <limits.h>
10870 #else
10871 # include <assert.h>
10872 #endif
10873
10874 #undef dlopen
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877    Use char because int might match the return type of a GCC
10878    builtin and then its argument prototype would still apply.  */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char dlopen ();
10883 /* The GNU C library defines this for functions which it implements
10884     to always fail with ENOSYS.  Some functions are actually named
10885     something starting with __ and the normal name is an alias.  */
10886 #if defined __stub_dlopen || defined __stub___dlopen
10887 choke me
10888 #endif
10889
10890 int
10891 main ()
10892 {
10893 return dlopen ();
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10905 $as_echo "$ac_try_echo") >&5
10906   (eval "$ac_link") 2>conftest.er1
10907   ac_status=$?
10908   grep -v '^ *+' conftest.er1 >conftest.err
10909   rm -f conftest.er1
10910   cat conftest.err >&5
10911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } && {
10913          test -z "$ac_c_werror_flag" ||
10914          test ! -s conftest.err
10915        } && test -s conftest$ac_exeext && {
10916          test "$cross_compiling" = yes ||
10917          $as_test_x conftest$ac_exeext
10918        }; then
10919   ac_cv_func_dlopen=yes
10920 else
10921   $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924         ac_cv_func_dlopen=no
10925 fi
10926
10927 rm -rf conftest.dSYM
10928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929       conftest$ac_exeext conftest.$ac_ext
10930 fi
10931 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10932 $as_echo "$ac_cv_func_dlopen" >&6; }
10933 if test "x$ac_cv_func_dlopen" = x""yes; then
10934   lt_cv_dlopen="dlopen"
10935 else
10936   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10937 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10939   $as_echo_n "(cached) " >&6
10940 else
10941   ac_check_lib_save_LIBS=$LIBS
10942 LIBS="-ldl  $LIBS"
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949
10950 /* Override any GCC internal prototype to avoid an error.
10951    Use char because int might match the return type of a GCC
10952    builtin and then its argument prototype would still apply.  */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char dlopen ();
10957 int
10958 main ()
10959 {
10960 return dlopen ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973   (eval "$ac_link") 2>conftest.er1
10974   ac_status=$?
10975   grep -v '^ *+' conftest.er1 >conftest.err
10976   rm -f conftest.er1
10977   cat conftest.err >&5
10978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); } && {
10980          test -z "$ac_c_werror_flag" ||
10981          test ! -s conftest.err
10982        } && test -s conftest$ac_exeext && {
10983          test "$cross_compiling" = yes ||
10984          $as_test_x conftest$ac_exeext
10985        }; then
10986   ac_cv_lib_dl_dlopen=yes
10987 else
10988   $as_echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991         ac_cv_lib_dl_dlopen=no
10992 fi
10993
10994 rm -rf conftest.dSYM
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996       conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11001 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11002   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11003 else
11004   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11005 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11006 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11007   $as_echo_n "(cached) " >&6
11008 else
11009   ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lsvld  $LIBS"
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017
11018 /* Override any GCC internal prototype to avoid an error.
11019    Use char because int might match the return type of a GCC
11020    builtin and then its argument prototype would still apply.  */
11021 #ifdef __cplusplus
11022 extern "C"
11023 #endif
11024 char dlopen ();
11025 int
11026 main ()
11027 {
11028 return dlopen ();
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (ac_try="$ac_link"
11035 case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11040 $as_echo "$ac_try_echo") >&5
11041   (eval "$ac_link") 2>conftest.er1
11042   ac_status=$?
11043   grep -v '^ *+' conftest.er1 >conftest.err
11044   rm -f conftest.er1
11045   cat conftest.err >&5
11046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } && {
11048          test -z "$ac_c_werror_flag" ||
11049          test ! -s conftest.err
11050        } && test -s conftest$ac_exeext && {
11051          test "$cross_compiling" = yes ||
11052          $as_test_x conftest$ac_exeext
11053        }; then
11054   ac_cv_lib_svld_dlopen=yes
11055 else
11056   $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059         ac_cv_lib_svld_dlopen=no
11060 fi
11061
11062 rm -rf conftest.dSYM
11063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11064       conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11066 fi
11067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11068 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11069 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11070   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11071 else
11072   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11073 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11074 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11075   $as_echo_n "(cached) " >&6
11076 else
11077   ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-ldld  $LIBS"
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h.  */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h.  */
11085
11086 /* Override any GCC internal prototype to avoid an error.
11087    Use char because int might match the return type of a GCC
11088    builtin and then its argument prototype would still apply.  */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char dld_link ();
11093 int
11094 main ()
11095 {
11096 return dld_link ();
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (ac_try="$ac_link"
11103 case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11108 $as_echo "$ac_try_echo") >&5
11109   (eval "$ac_link") 2>conftest.er1
11110   ac_status=$?
11111   grep -v '^ *+' conftest.er1 >conftest.err
11112   rm -f conftest.er1
11113   cat conftest.err >&5
11114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } && {
11116          test -z "$ac_c_werror_flag" ||
11117          test ! -s conftest.err
11118        } && test -s conftest$ac_exeext && {
11119          test "$cross_compiling" = yes ||
11120          $as_test_x conftest$ac_exeext
11121        }; then
11122   ac_cv_lib_dld_dld_link=yes
11123 else
11124   $as_echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127         ac_cv_lib_dld_dld_link=no
11128 fi
11129
11130 rm -rf conftest.dSYM
11131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11132       conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11134 fi
11135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11136 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11137 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11138   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11139 fi
11140
11141
11142 fi
11143
11144
11145 fi
11146
11147
11148 fi
11149
11150
11151 fi
11152
11153
11154 fi
11155
11156     ;;
11157   esac
11158
11159   if test "x$lt_cv_dlopen" != xno; then
11160     enable_dlopen=yes
11161   else
11162     enable_dlopen=no
11163   fi
11164
11165   case $lt_cv_dlopen in
11166   dlopen)
11167     save_CPPFLAGS="$CPPFLAGS"
11168     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11169
11170     save_LDFLAGS="$LDFLAGS"
11171     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11172
11173     save_LIBS="$LIBS"
11174     LIBS="$lt_cv_dlopen_libs $LIBS"
11175
11176     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11177 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11178 if test "${lt_cv_dlopen_self+set}" = set; then
11179   $as_echo_n "(cached) " >&6
11180 else
11181           if test "$cross_compiling" = yes; then :
11182   lt_cv_dlopen_self=cross
11183 else
11184   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11185   lt_status=$lt_dlunknown
11186   cat > conftest.$ac_ext <<_LT_EOF
11187 #line 11187 "configure"
11188 #include "confdefs.h"
11189
11190 #if HAVE_DLFCN_H
11191 #include <dlfcn.h>
11192 #endif
11193
11194 #include <stdio.h>
11195
11196 #ifdef RTLD_GLOBAL
11197 #  define LT_DLGLOBAL           RTLD_GLOBAL
11198 #else
11199 #  ifdef DL_GLOBAL
11200 #    define LT_DLGLOBAL         DL_GLOBAL
11201 #  else
11202 #    define LT_DLGLOBAL         0
11203 #  endif
11204 #endif
11205
11206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11207    find out it does not work in some platform. */
11208 #ifndef LT_DLLAZY_OR_NOW
11209 #  ifdef RTLD_LAZY
11210 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11211 #  else
11212 #    ifdef DL_LAZY
11213 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11214 #    else
11215 #      ifdef RTLD_NOW
11216 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11217 #      else
11218 #        ifdef DL_NOW
11219 #          define LT_DLLAZY_OR_NOW      DL_NOW
11220 #        else
11221 #          define LT_DLLAZY_OR_NOW      0
11222 #        endif
11223 #      endif
11224 #    endif
11225 #  endif
11226 #endif
11227
11228 void fnord() { int i=42;}
11229 int main ()
11230 {
11231   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11232   int status = $lt_dlunknown;
11233
11234   if (self)
11235     {
11236       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11237       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11238       /* dlclose (self); */
11239     }
11240   else
11241     puts (dlerror ());
11242
11243   return status;
11244 }
11245 _LT_EOF
11246   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11247   (eval $ac_link) 2>&5
11248   ac_status=$?
11249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11251     (./conftest; exit; ) >&5 2>/dev/null
11252     lt_status=$?
11253     case x$lt_status in
11254       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11255       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11256       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11257     esac
11258   else :
11259     # compilation failed
11260     lt_cv_dlopen_self=no
11261   fi
11262 fi
11263 rm -fr conftest*
11264
11265
11266 fi
11267 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11268 $as_echo "$lt_cv_dlopen_self" >&6; }
11269
11270     if test "x$lt_cv_dlopen_self" = xyes; then
11271       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11272       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11273 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11274 if test "${lt_cv_dlopen_self_static+set}" = set; then
11275   $as_echo_n "(cached) " >&6
11276 else
11277           if test "$cross_compiling" = yes; then :
11278   lt_cv_dlopen_self_static=cross
11279 else
11280   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11281   lt_status=$lt_dlunknown
11282   cat > conftest.$ac_ext <<_LT_EOF
11283 #line 11283 "configure"
11284 #include "confdefs.h"
11285
11286 #if HAVE_DLFCN_H
11287 #include <dlfcn.h>
11288 #endif
11289
11290 #include <stdio.h>
11291
11292 #ifdef RTLD_GLOBAL
11293 #  define LT_DLGLOBAL           RTLD_GLOBAL
11294 #else
11295 #  ifdef DL_GLOBAL
11296 #    define LT_DLGLOBAL         DL_GLOBAL
11297 #  else
11298 #    define LT_DLGLOBAL         0
11299 #  endif
11300 #endif
11301
11302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11303    find out it does not work in some platform. */
11304 #ifndef LT_DLLAZY_OR_NOW
11305 #  ifdef RTLD_LAZY
11306 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11307 #  else
11308 #    ifdef DL_LAZY
11309 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11310 #    else
11311 #      ifdef RTLD_NOW
11312 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11313 #      else
11314 #        ifdef DL_NOW
11315 #          define LT_DLLAZY_OR_NOW      DL_NOW
11316 #        else
11317 #          define LT_DLLAZY_OR_NOW      0
11318 #        endif
11319 #      endif
11320 #    endif
11321 #  endif
11322 #endif
11323
11324 void fnord() { int i=42;}
11325 int main ()
11326 {
11327   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11328   int status = $lt_dlunknown;
11329
11330   if (self)
11331     {
11332       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11333       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11334       /* dlclose (self); */
11335     }
11336   else
11337     puts (dlerror ());
11338
11339   return status;
11340 }
11341 _LT_EOF
11342   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343   (eval $ac_link) 2>&5
11344   ac_status=$?
11345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11347     (./conftest; exit; ) >&5 2>/dev/null
11348     lt_status=$?
11349     case x$lt_status in
11350       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11351       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11352       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11353     esac
11354   else :
11355     # compilation failed
11356     lt_cv_dlopen_self_static=no
11357   fi
11358 fi
11359 rm -fr conftest*
11360
11361
11362 fi
11363 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11364 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11365     fi
11366
11367     CPPFLAGS="$save_CPPFLAGS"
11368     LDFLAGS="$save_LDFLAGS"
11369     LIBS="$save_LIBS"
11370     ;;
11371   esac
11372
11373   case $lt_cv_dlopen_self in
11374   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11375   *) enable_dlopen_self=unknown ;;
11376   esac
11377
11378   case $lt_cv_dlopen_self_static in
11379   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11380   *) enable_dlopen_self_static=unknown ;;
11381   esac
11382 fi
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400 striplib=
11401 old_striplib=
11402 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11403 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11404 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11405   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11406   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11407   { $as_echo "$as_me:$LINENO: result: yes" >&5
11408 $as_echo "yes" >&6; }
11409 else
11410 # FIXME - insert some real tests, host_os isn't really good enough
11411   case $host_os in
11412   darwin*)
11413     if test -n "$STRIP" ; then
11414       striplib="$STRIP -x"
11415       old_striplib="$STRIP -S"
11416       { $as_echo "$as_me:$LINENO: result: yes" >&5
11417 $as_echo "yes" >&6; }
11418     else
11419       { $as_echo "$as_me:$LINENO: result: no" >&5
11420 $as_echo "no" >&6; }
11421     fi
11422     ;;
11423   *)
11424     { $as_echo "$as_me:$LINENO: result: no" >&5
11425 $as_echo "no" >&6; }
11426     ;;
11427   esac
11428 fi
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441   # Report which library types will actually be built
11442   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11443 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11444   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11445 $as_echo "$can_build_shared" >&6; }
11446
11447   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11448 $as_echo_n "checking whether to build shared libraries... " >&6; }
11449   test "$can_build_shared" = "no" && enable_shared=no
11450
11451   # On AIX, shared libraries and static libraries use the same namespace, and
11452   # are all built from PIC.
11453   case $host_os in
11454   aix3*)
11455     test "$enable_shared" = yes && enable_static=no
11456     if test -n "$RANLIB"; then
11457       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11458       postinstall_cmds='$RANLIB $lib'
11459     fi
11460     ;;
11461
11462   aix[4-9]*)
11463     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11464       test "$enable_shared" = yes && enable_static=no
11465     fi
11466     ;;
11467   esac
11468   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11469 $as_echo "$enable_shared" >&6; }
11470
11471   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11472 $as_echo_n "checking whether to build static libraries... " >&6; }
11473   # Make sure either enable_shared or enable_static is yes.
11474   test "$enable_shared" = yes || enable_static=yes
11475   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11476 $as_echo "$enable_static" >&6; }
11477
11478
11479
11480
11481 fi
11482 ac_ext=c
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11487
11488 CC="$lt_save_CC"
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502         ac_config_commands="$ac_config_commands libtool"
11503
11504
11505
11506
11507 # Only expand once:
11508
11509
11510 # By default we simply use the C compiler to build assembly code.
11511
11512 test "${CCAS+set}" = set || CCAS=$CC
11513 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11514
11515
11516
11517 depcc="$CCAS"   am_compiler_list=
11518
11519 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11520 $as_echo_n "checking dependency style of $depcc... " >&6; }
11521 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11522   $as_echo_n "(cached) " >&6
11523 else
11524   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11525   # We make a subdir and do the tests there.  Otherwise we can end up
11526   # making bogus files that we don't know about and never remove.  For
11527   # instance it was reported that on HP-UX the gcc test will end up
11528   # making a dummy file named `D' -- because `-MD' means `put the output
11529   # in D'.
11530   mkdir conftest.dir
11531   # Copy depcomp to subdir because otherwise we won't find it if we're
11532   # using a relative directory.
11533   cp "$am_depcomp" conftest.dir
11534   cd conftest.dir
11535   # We will build objects and dependencies in a subdirectory because
11536   # it helps to detect inapplicable dependency modes.  For instance
11537   # both Tru64's cc and ICC support -MD to output dependencies as a
11538   # side effect of compilation, but ICC will put the dependencies in
11539   # the current directory while Tru64 will put them in the object
11540   # directory.
11541   mkdir sub
11542
11543   am_cv_CCAS_dependencies_compiler_type=none
11544   if test "$am_compiler_list" = ""; then
11545      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11546   fi
11547   am__universal=false
11548
11549
11550   for depmode in $am_compiler_list; do
11551     # Setup a source with many dependencies, because some compilers
11552     # like to wrap large dependency lists on column 80 (with \), and
11553     # we should not choose a depcomp mode which is confused by this.
11554     #
11555     # We need to recreate these files for each test, as the compiler may
11556     # overwrite some of them when testing with obscure command lines.
11557     # This happens at least with the AIX C compiler.
11558     : > sub/conftest.c
11559     for i in 1 2 3 4 5 6; do
11560       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11561       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11562       # Solaris 8's {/usr,}/bin/sh.
11563       touch sub/conftst$i.h
11564     done
11565     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11566
11567     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11568     # mode.  It turns out that the SunPro C++ compiler does not properly
11569     # handle `-M -o', and we need to detect this.  Also, some Intel
11570     # versions had trouble with output in subdirs
11571     am__obj=sub/conftest.${OBJEXT-o}
11572     am__minus_obj="-o $am__obj"
11573     case $depmode in
11574     gcc)
11575       # This depmode causes a compiler race in universal mode.
11576       test "$am__universal" = false || continue
11577       ;;
11578     nosideeffect)
11579       # after this tag, mechanisms are not by side-effect, so they'll
11580       # only be used when explicitly requested
11581       if test "x$enable_dependency_tracking" = xyes; then
11582         continue
11583       else
11584         break
11585       fi
11586       ;;
11587     msvisualcpp | msvcmsys)
11588       # This compiler won't grok `-c -o', but also, the minuso test has
11589       # not run yet.  These depmodes are late enough in the game, and
11590       # so weak that their functioning should not be impacted.
11591       am__obj=conftest.${OBJEXT-o}
11592       am__minus_obj=
11593       ;;
11594     none) break ;;
11595     esac
11596     if depmode=$depmode \
11597        source=sub/conftest.c object=$am__obj \
11598        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11599        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11600          >/dev/null 2>conftest.err &&
11601        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11602        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11603        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11604        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11605       # icc doesn't choke on unknown options, it will just issue warnings
11606       # or remarks (even with -Werror).  So we grep stderr for any message
11607       # that says an option was ignored or not supported.
11608       # When given -MP, icc 7.0 and 7.1 complain thusly:
11609       #   icc: Command line warning: ignoring option '-M'; no argument required
11610       # The diagnosis changed in icc 8.0:
11611       #   icc: Command line remark: option '-MP' not supported
11612       if (grep 'ignoring option' conftest.err ||
11613           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11614         am_cv_CCAS_dependencies_compiler_type=$depmode
11615         break
11616       fi
11617     fi
11618   done
11619
11620   cd ..
11621   rm -rf conftest.dir
11622 else
11623   am_cv_CCAS_dependencies_compiler_type=none
11624 fi
11625
11626 fi
11627 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11628 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11629 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11630
11631  if
11632   test "x$enable_dependency_tracking" != xno \
11633   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11634   am__fastdepCCAS_TRUE=
11635   am__fastdepCCAS_FALSE='#'
11636 else
11637   am__fastdepCCAS_TRUE='#'
11638   am__fastdepCCAS_FALSE=
11639 fi
11640
11641
11642
11643
11644         { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11645 $as_echo_n "checking zfs author... " >&6; }
11646         { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11647 $as_echo "$ZFS_META_AUTHOR" >&6; }
11648
11649         { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11650 $as_echo_n "checking zfs license... " >&6; }
11651         { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11652 $as_echo "$ZFS_META_LICENSE" >&6; }
11653
11654
11655
11656         RPM=rpm
11657         RPMBUILD=rpmbuild
11658
11659         { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11660 $as_echo_n "checking whether $RPM is available... " >&6; }
11661         if tmp=$($RPM --version 2>/dev/null); then
11662
11663                 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11664                 HAVE_RPM=yes
11665                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11666 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11667
11668 else
11669
11670                 HAVE_RPM=no
11671                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11672 $as_echo "$HAVE_RPM" >&6; }
11673
11674 fi
11675
11676
11677         { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11678 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11679         if tmp=$($RPMBUILD --version 2>/dev/null); then
11680
11681                 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11682                 HAVE_RPMBUILD=yes
11683                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11684 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11685
11686 else
11687
11688                 HAVE_RPMBUILD=no
11689                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11690 $as_echo "$HAVE_RPMBUILD" >&6; }
11691
11692 fi
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704         DPKG=dpkg
11705         DPKGBUILD=dpkg-buildpackage
11706
11707         { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11708 $as_echo_n "checking whether $DPKG is available... " >&6; }
11709         if tmp=$($DPKG --version 2>/dev/null); then
11710
11711                 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11712                 HAVE_DPKG=yes
11713                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11714 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11715
11716 else
11717
11718                 HAVE_DPKG=no
11719                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11720 $as_echo "$HAVE_DPKG" >&6; }
11721
11722 fi
11723
11724
11725         { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11726 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11727         if tmp=$($DPKGBUILD --version 2>/dev/null); then
11728
11729                 DPKGBUILD_VERSION=$(echo $tmp | \
11730                     $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11731                 HAVE_DPKGBUILD=yes
11732                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11733 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11734
11735 else
11736
11737                 HAVE_DPKGBUILD=no
11738                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11739 $as_echo "$HAVE_DPKGBUILD" >&6; }
11740
11741 fi
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753         ALIEN=alien
11754
11755         { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11756 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11757         if tmp=$($ALIEN --version 2>/dev/null); then
11758
11759                 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11760                 HAVE_ALIEN=yes
11761                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11762 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11763
11764 else
11765
11766                 HAVE_ALIEN=no
11767                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11768 $as_echo "$HAVE_ALIEN" >&6; }
11769
11770 fi
11771
11772
11773
11774
11775
11776
11777
11778         { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11779 $as_echo_n "checking linux distribution... " >&6; }
11780         if test -f /etc/redhat-release ; then
11781                 VENDOR=redhat ;
11782         elif test -f /etc/fedora-release ; then
11783                 VENDOR=fedora ;
11784         elif test -f /etc/lsb-release ; then
11785                 VENDOR=ubuntu ;
11786         elif test -f /etc/debian_version ; then
11787                 VENDOR=debian ;
11788         elif test -f /etc/SuSE-release ; then
11789                 VENDOR=sles ;
11790         elif test -f /etc/slackware-version ; then
11791                 VENDOR=slackware ;
11792         elif test -f /etc/gentoo-release ; then
11793                 VENDOR=gentoo ;
11794         else
11795                 VENDOR= ;
11796         fi
11797         { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11798 $as_echo "$VENDOR" >&6; }
11799
11800
11801         { $as_echo "$as_me:$LINENO: checking default package type" >&5
11802 $as_echo_n "checking default package type... " >&6; }
11803         case "$VENDOR" in
11804                 fedora)     DEFAULT_PACKAGE=rpm ;;
11805                 redhat)     DEFAULT_PACKAGE=rpm ;;
11806                 sles)       DEFAULT_PACKAGE=rpm ;;
11807                 ubuntu)     DEFAULT_PACKAGE=deb ;;
11808                 debian)     DEFAULT_PACKAGE=deb ;;
11809                 slackware)  DEFAULT_PACKAGE=tgz ;;
11810                 *)          DEFAULT_PACKAGE=rpm ;;
11811         esac
11812
11813         { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11814 $as_echo "$DEFAULT_PACKAGE" >&6; }
11815
11816
11817
11818
11819         TARGET_ASM_DIR=asm-generic
11820
11821
11822         ZFS_CONFIG=all
11823
11824 # Check whether --with-config was given.
11825 if test "${with_config+set}" = set; then
11826   withval=$with_config; ZFS_CONFIG="$withval"
11827 fi
11828
11829
11830         { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11831 $as_echo_n "checking zfs config... " >&6; }
11832         { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11833 $as_echo "$ZFS_CONFIG" >&6; };
11834
11835
11836         case "$ZFS_CONFIG" in
11837                 kernel)
11838
11839
11840 # Check whether --with-linux was given.
11841 if test "${with_linux+set}" = set; then
11842   withval=$with_linux; kernelsrc="$withval"
11843 fi
11844
11845
11846
11847 # Check whether --with-linux-obj was given.
11848 if test "${with_linux_obj+set}" = set; then
11849   withval=$with_linux_obj; kernelbuild="$withval"
11850 fi
11851
11852
11853         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11854 $as_echo_n "checking kernel source directory... " >&6; }
11855         if test -z "$kernelsrc"; then
11856                 headersdir="/lib/modules/$(uname -r)/build"
11857                 if test -e "$headersdir"; then
11858                         sourcelink=$(readlink -f "$headersdir")
11859                 else
11860                         sourcelink=$(ls -1d /usr/src/kernels/* \
11861                                      /usr/src/linux-* \
11862                                      2>/dev/null | grep -v obj | tail -1)
11863                 fi
11864
11865                 if test -n "$sourcelink" && test -e ${sourcelink}; then
11866                         kernelsrc=`readlink -f ${sourcelink}`
11867                 else
11868                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
11869 $as_echo "Not found" >&6; }
11870                         { { $as_echo "$as_me:$LINENO: error:
11871         *** Please make sure the kernel devel package for your distribution
11872         *** is installed then try again.  If that fails you can specify the
11873         *** location of the kernel source with the '--with-linux=PATH' option." >&5
11874 $as_echo "$as_me: error:
11875         *** Please make sure the kernel devel package for your distribution
11876         *** is installed then try again.  If that fails you can specify the
11877         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11878    { (exit 1); exit 1; }; }
11879                 fi
11880         else
11881                 if test "$kernelsrc" = "NONE"; then
11882                         kernsrcver=NONE
11883                 fi
11884         fi
11885
11886         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11887 $as_echo "$kernelsrc" >&6; }
11888         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11889 $as_echo_n "checking kernel build directory... " >&6; }
11890         if test -z "$kernelbuild"; then
11891                 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11892                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11893                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11894                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11895                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11896                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11897                 else
11898                         kernelbuild=${kernelsrc}
11899                 fi
11900         fi
11901         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11902 $as_echo "$kernelbuild" >&6; }
11903
11904         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11905 $as_echo_n "checking kernel source version... " >&6; }
11906         utsrelease1=$kernelbuild/include/linux/version.h
11907         utsrelease2=$kernelbuild/include/linux/utsrelease.h
11908         utsrelease3=$kernelbuild/include/generated/utsrelease.h
11909         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11910                 utsrelease=linux/version.h
11911         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11912                 utsrelease=linux/utsrelease.h
11913         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11914                 utsrelease=generated/utsrelease.h
11915         fi
11916
11917         if test "$utsrelease"; then
11918                 kernsrcver=`(echo "#include <$utsrelease>";
11919                              echo "kernsrcver=UTS_RELEASE") |
11920                              cpp -I $kernelbuild/include |
11921                              grep "^kernsrcver=" | cut -d \" -f 2`
11922
11923                 if test -z "$kernsrcver"; then
11924                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
11925 $as_echo "Not found" >&6; }
11926                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11927 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11928    { (exit 1); exit 1; }; }
11929                 fi
11930         else
11931                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11932 $as_echo "Not found" >&6; }
11933                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11934 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11935    { (exit 1); exit 1; }; }
11936         fi
11937
11938         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11939 $as_echo "$kernsrcver" >&6; }
11940
11941         LINUX=${kernelsrc}
11942         LINUX_OBJ=${kernelbuild}
11943         LINUX_VERSION=${kernsrcver}
11944
11945
11946
11947
11948
11949
11950         modpost=$LINUX/scripts/Makefile.modpost
11951         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11952 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11953         if test -f "$modpost"; then
11954                 if grep -q Modules.symvers $modpost; then
11955                         LINUX_SYMBOLS=Modules.symvers
11956                 else
11957                         LINUX_SYMBOLS=Module.symvers
11958                 fi
11959         else
11960                 LINUX_SYMBOLS=NONE
11961         fi
11962         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11963 $as_echo "$LINUX_SYMBOLS" >&6; }
11964
11965
11966
11967
11968
11969 # Check whether --with-spl was given.
11970 if test "${with_spl+set}" = set; then
11971   withval=$with_spl; splsrc="$withval"
11972 fi
11973
11974
11975
11976 # Check whether --with-spl-obj was given.
11977 if test "${with_spl_obj+set}" = set; then
11978   withval=$with_spl_obj; splbuild="$withval"
11979 fi
11980
11981
11982
11983         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
11984 $as_echo_n "checking spl source directory... " >&6; }
11985         if test -z "$splsrc"; then
11986                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
11987                             2>/dev/null | tail -1`
11988
11989                 if test -z "$sourcelink" || test ! -e $sourcelink; then
11990                         sourcelink=../spl
11991                 fi
11992
11993                 if test -e $sourcelink; then
11994                         splsrc=`readlink -f ${sourcelink}`
11995                 else
11996                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
11997 $as_echo "Not found" >&6; }
11998                         { { $as_echo "$as_me:$LINENO: error:
11999         *** Please make sure the spl devel package for your distribution
12000         *** is installed then try again.  If that fails you can specify the
12001         *** location of the spl source with the '--with-spl=PATH' option." >&5
12002 $as_echo "$as_me: error:
12003         *** Please make sure the spl devel package for your distribution
12004         *** is installed then try again.  If that fails you can specify the
12005         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12006    { (exit 1); exit 1; }; }
12007                 fi
12008         else
12009                 if test "$splsrc" = "NONE"; then
12010                         splbuild=NONE
12011                         splsrcver=NONE
12012                 fi
12013         fi
12014
12015         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12016 $as_echo "$splsrc" >&6; }
12017         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12018 $as_echo_n "checking spl build directory... " >&6; }
12019         if test -z "$splbuild"; then
12020                 splbuild=${splsrc}
12021         fi
12022         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12023 $as_echo "$splbuild" >&6; }
12024
12025         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12026 $as_echo_n "checking spl source version... " >&6; }
12027         if test -r $splbuild/spl_config.h &&
12028                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12029
12030                 splsrcver=`(echo "#include <spl_config.h>";
12031                             echo "splsrcver=SPL_META_VERSION") |
12032                             cpp -I $splbuild |
12033                             grep "^splsrcver=" | cut -d \" -f 2`
12034         fi
12035
12036         if test -z "$splsrcver"; then
12037                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12038 $as_echo "Not found" >&6; }
12039                 { { $as_echo "$as_me:$LINENO: error:
12040                 *** Cannot determine the version of the spl source.
12041                 *** Please prepare the spl source before running this script" >&5
12042 $as_echo "$as_me: error:
12043                 *** Cannot determine the version of the spl source.
12044                 *** Please prepare the spl source before running this script" >&2;}
12045    { (exit 1); exit 1; }; }
12046         fi
12047
12048         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12049 $as_echo "$splsrcver" >&6; }
12050
12051         SPL=${splsrc}
12052         SPL_OBJ=${splbuild}
12053         SPL_VERSION=${splsrcver}
12054
12055
12056
12057
12058
12059
12060         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12061 $as_echo_n "checking spl file name for module symbols... " >&6; }
12062         if test -r $SPL_OBJ/Module.symvers; then
12063                 SPL_SYMBOLS=Module.symvers
12064         elif test -r $SPL_OBJ/Modules.symvers; then
12065                 SPL_SYMBOLS=Modules.symvers
12066         elif test -r $SPL_OBJ/module/Module.symvers; then
12067                 SPL_SYMBOLS=Module.symvers
12068         elif test -r $SPL_OBJ/module/Modules.symvers; then
12069                 SPL_SYMBOLS=Modules.symvers
12070         else
12071                 SPL_SYMBOLS=$LINUX_SYMBOLS
12072         fi
12073
12074         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12075 $as_echo "$SPL_SYMBOLS" >&6; }
12076
12077
12078
12079
12080
12081         if test "$ZFS_META_LICENSE" = CDDL; then
12082                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12083 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12084
12085
12086 cat confdefs.h - <<_ACEOF >conftest.c
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092
12093
12094                 #ifndef AUTOCONF_INCLUDED
12095                 #include <linux/config.h>
12096                 #endif
12097
12098 int
12099 main (void)
12100 {
12101
12102                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12103                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12104                 #endif
12105
12106   ;
12107   return 0;
12108 }
12109
12110 _ACEOF
12111
12112
12113         rm -Rf build && mkdir -p build
12114         echo "obj-m := conftest.o" >build/Makefile
12115         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117   (eval $ac_try) 2>&5
12118   ac_status=$?
12119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126
12127                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12128 $as_echo "yes" >&6; }
12129                 { { $as_echo "$as_me:$LINENO: error:
12130                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12131                 *** incompatible with the CDDL license.  You must rebuild
12132                 *** your kernel without this option." >&5
12133 $as_echo "$as_me: error:
12134                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12135                 *** incompatible with the CDDL license.  You must rebuild
12136                 *** your kernel without this option." >&2;}
12137    { (exit 1); exit 1; }; }
12138
12139 else
12140   $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143                 { $as_echo "$as_me:$LINENO: result: no" >&5
12144 $as_echo "no" >&6; }
12145
12146
12147
12148
12149 fi
12150
12151         rm -Rf build
12152
12153
12154
12155         fi
12156
12157         if test "$ZFS_META_LICENSE" = GPL; then
12158
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_GPL_ONLY_SYMBOLS 1
12161 _ACEOF
12162
12163         fi
12164
12165
12166         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12167 $as_echo_n "checking block device operation prototypes... " >&6; }
12168
12169
12170 cat confdefs.h - <<_ACEOF >conftest.c
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176
12177
12178                 #include <linux/blkdev.h>
12179
12180 int
12181 main (void)
12182 {
12183
12184                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12185                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12186                 int (*blk_ioctl) (struct block_device *, fmode_t,
12187                                   unsigned, unsigned long) = NULL;
12188                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12189                                          unsigned, unsigned long) = NULL;
12190                 struct block_device_operations blk_ops = {
12191                         .open           = blk_open,
12192                         .release        = blk_release,
12193                         .ioctl          = blk_ioctl,
12194                         .compat_ioctl   = blk_compat_ioctl,
12195                 };
12196
12197                 blk_ops.open(NULL, 0);
12198                 blk_ops.release(NULL, 0);
12199                 blk_ops.ioctl(NULL, 0, 0, 0);
12200                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12201
12202   ;
12203   return 0;
12204 }
12205
12206 _ACEOF
12207
12208
12209         rm -Rf build && mkdir -p build
12210         echo "obj-m := conftest.o" >build/Makefile
12211         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218   (eval $ac_try) 2>&5
12219   ac_status=$?
12220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; }; then
12222
12223                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12224 $as_echo "struct block_device" >&6; }
12225
12226 cat >>confdefs.h <<\_ACEOF
12227 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12228 _ACEOF
12229
12230
12231 else
12232   $as_echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12236 $as_echo "struct inode" >&6; }
12237
12238
12239
12240 fi
12241
12242         rm -Rf build
12243
12244
12245
12246         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12247 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12248
12249
12250 cat confdefs.h - <<_ACEOF >conftest.c
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256
12257
12258                 #include <linux/types.h>
12259
12260 int
12261 main (void)
12262 {
12263
12264                 fmode_t *ptr;
12265
12266   ;
12267   return 0;
12268 }
12269
12270 _ACEOF
12271
12272
12273         rm -Rf build && mkdir -p build
12274         echo "obj-m := conftest.o" >build/Makefile
12275         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282   (eval $ac_try) 2>&5
12283   ac_status=$?
12284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); }; }; then
12286
12287                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12288 $as_echo "yes" >&6; }
12289
12290 cat >>confdefs.h <<\_ACEOF
12291 #define HAVE_FMODE_T 1
12292 _ACEOF
12293
12294
12295 else
12296   $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299                 { $as_echo "$as_me:$LINENO: result: no" >&5
12300 $as_echo "no" >&6; }
12301
12302
12303
12304 fi
12305
12306         rm -Rf build
12307
12308
12309
12310
12311         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12312 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12313
12314
12315 cat confdefs.h - <<_ACEOF >conftest.c
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321
12322
12323                 #include <linux/kobject.h>
12324
12325 int
12326 main (void)
12327 {
12328
12329                 int val;
12330                 val = KOBJ_NAME_LEN;
12331
12332   ;
12333   return 0;
12334 }
12335
12336 _ACEOF
12337
12338
12339         rm -Rf build && mkdir -p build
12340         echo "obj-m := conftest.o" >build/Makefile
12341         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343   (eval $ac_try) 2>&5
12344   ac_status=$?
12345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352
12353                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12354 $as_echo "yes" >&6; }
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_KOBJ_NAME_LEN 1
12358 _ACEOF
12359
12360
12361 else
12362   $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365                 { $as_echo "$as_me:$LINENO: result: no" >&5
12366 $as_echo "no" >&6; }
12367
12368
12369
12370 fi
12371
12372         rm -Rf build
12373
12374
12375
12376
12377         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12378 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12379         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12380                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12381         rc=$?
12382         if test $rc -ne 0; then
12383                 export=0
12384                 for file in fs/block_dev.c; do
12385                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12386                         rc=$?
12387                         if test $rc -eq 0; then
12388                                 export=1
12389                                 break;
12390                         fi
12391                 done
12392                 if test $export -eq 0; then
12393                         { $as_echo "$as_me:$LINENO: result: no" >&5
12394 $as_echo "no" >&6; }
12395
12396                 else
12397                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12398 $as_echo "yes" >&6; }
12399
12400 cat >>confdefs.h <<\_ACEOF
12401 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12402 _ACEOF
12403
12404                 fi
12405         else
12406                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12407 $as_echo "yes" >&6; }
12408
12409 cat >>confdefs.h <<\_ACEOF
12410 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12411 _ACEOF
12412
12413         fi
12414
12415
12416
12417         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12418 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12419
12420
12421 cat confdefs.h - <<_ACEOF >conftest.c
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427
12428
12429                 #include <linux/buffer_head.h>
12430
12431 int
12432 main (void)
12433 {
12434
12435                 struct block_device *bdev;
12436                 invalidate_bdev(bdev);
12437
12438   ;
12439   return 0;
12440 }
12441
12442 _ACEOF
12443
12444
12445         rm -Rf build && mkdir -p build
12446         echo "obj-m := conftest.o" >build/Makefile
12447         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454   (eval $ac_try) 2>&5
12455   ac_status=$?
12456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; }; then
12458
12459                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12460 $as_echo "yes" >&6; }
12461
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_1ARG_INVALIDATE_BDEV 1
12464 _ACEOF
12465
12466
12467 else
12468   $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471                 { $as_echo "$as_me:$LINENO: result: no" >&5
12472 $as_echo "no" >&6; }
12473
12474
12475
12476 fi
12477
12478         rm -Rf build
12479
12480
12481
12482
12483         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12484 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12485
12486
12487 cat confdefs.h - <<_ACEOF >conftest.c
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494
12495                 #include <linux/blkdev.h>
12496
12497 int
12498 main (void)
12499 {
12500
12501                 struct block_device *bdev = NULL;
12502                 bdev_logical_block_size(bdev);
12503
12504   ;
12505   return 0;
12506 }
12507
12508 _ACEOF
12509
12510
12511         rm -Rf build && mkdir -p build
12512         echo "obj-m := conftest.o" >build/Makefile
12513         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515   (eval $ac_try) 2>&5
12516   ac_status=$?
12517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524
12525                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12526 $as_echo "yes" >&6; }
12527
12528 cat >>confdefs.h <<\_ACEOF
12529 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12530 _ACEOF
12531
12532
12533 else
12534   $as_echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12536
12537                 { $as_echo "$as_me:$LINENO: result: no" >&5
12538 $as_echo "no" >&6; }
12539
12540
12541
12542 fi
12543
12544         rm -Rf build
12545
12546
12547
12548
12549         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12550 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12551         EXTRA_KCFLAGS="-Werror"
12552
12553
12554 cat confdefs.h - <<_ACEOF >conftest.c
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560
12561
12562                 #include <linux/bio.h>
12563
12564 int
12565 main (void)
12566 {
12567
12568                 struct bio bio;
12569                 (void)bio_empty_barrier(&bio);
12570
12571   ;
12572   return 0;
12573 }
12574
12575 _ACEOF
12576
12577
12578         rm -Rf build && mkdir -p build
12579         echo "obj-m := conftest.o" >build/Makefile
12580         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582   (eval $ac_try) 2>&5
12583   ac_status=$?
12584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591
12592                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12593 $as_echo "yes" >&6; }
12594
12595 cat >>confdefs.h <<\_ACEOF
12596 #define HAVE_BIO_EMPTY_BARRIER 1
12597 _ACEOF
12598
12599
12600 else
12601   $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604                 { $as_echo "$as_me:$LINENO: result: no" >&5
12605 $as_echo "no" >&6; }
12606
12607
12608
12609 fi
12610
12611         rm -Rf build
12612
12613
12614
12615
12616         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12617 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12618         tmp_flags="$EXTRA_KCFLAGS"
12619         EXTRA_KCFLAGS="-Werror"
12620
12621
12622 cat confdefs.h - <<_ACEOF >conftest.c
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628
12629
12630                 #include <linux/bio.h>
12631
12632 int
12633 main (void)
12634 {
12635
12636                 void (*wanted_end_io)(struct bio *, int) = NULL;
12637                 bio_end_io_t *local_end_io;
12638
12639                 local_end_io = wanted_end_io;
12640
12641   ;
12642   return 0;
12643 }
12644
12645 _ACEOF
12646
12647
12648         rm -Rf build && mkdir -p build
12649         echo "obj-m := conftest.o" >build/Makefile
12650         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652   (eval $ac_try) 2>&5
12653   ac_status=$?
12654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661
12662                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12663 $as_echo "yes" >&6; }
12664
12665 cat >>confdefs.h <<\_ACEOF
12666 #define HAVE_2ARGS_BIO_END_IO_T 1
12667 _ACEOF
12668
12669
12670 else
12671   $as_echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674                 { $as_echo "$as_me:$LINENO: result: no" >&5
12675 $as_echo "no" >&6; }
12676
12677
12678
12679 fi
12680
12681         rm -Rf build
12682
12683
12684         EXTRA_KCFLAGS="$tmp_flags"
12685
12686
12687         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
12688 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12689
12690
12691 cat confdefs.h - <<_ACEOF >conftest.c
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697
12698
12699                 #include <linux/bio.h>
12700
12701 int
12702 main (void)
12703 {
12704
12705                 int flags;
12706                 flags = BIO_RW_SYNCIO;
12707
12708   ;
12709   return 0;
12710 }
12711
12712 _ACEOF
12713
12714
12715         rm -Rf build && mkdir -p build
12716         echo "obj-m := conftest.o" >build/Makefile
12717         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; }; then
12728
12729                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12730 $as_echo "yes" >&6; }
12731
12732 cat >>confdefs.h <<\_ACEOF
12733 #define HAVE_BIO_RW_SYNCIO 1
12734 _ACEOF
12735
12736
12737 else
12738   $as_echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741                 { $as_echo "$as_me:$LINENO: result: no" >&5
12742 $as_echo "no" >&6; }
12743
12744
12745
12746 fi
12747
12748         rm -Rf build
12749
12750
12751
12752
12753         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
12754 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
12755
12756
12757 cat confdefs.h - <<_ACEOF >conftest.c
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763
12764
12765                 #include <linux/blkdev.h>
12766
12767 int
12768 main (void)
12769 {
12770
12771                 struct request *req = NULL;
12772                 (void) blk_end_request(req, 0, 0);
12773
12774   ;
12775   return 0;
12776 }
12777
12778 _ACEOF
12779
12780
12781         rm -Rf build && mkdir -p build
12782         echo "obj-m := conftest.o" >build/Makefile
12783         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785   (eval $ac_try) 2>&5
12786   ac_status=$?
12787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794
12795                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12796 $as_echo "yes" >&6; }
12797
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_BLK_END_REQUEST 1
12800 _ACEOF
12801
12802
12803 else
12804   $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807                 { $as_echo "$as_me:$LINENO: result: no" >&5
12808 $as_echo "no" >&6; }
12809
12810
12811
12812 fi
12813
12814         rm -Rf build
12815
12816
12817
12818         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
12819 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
12820
12821
12822 cat confdefs.h - <<_ACEOF >conftest.c
12823 /* confdefs.h.  */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h.  */
12828
12829
12830                 #include <linux/module.h>
12831                 #include <linux/blkdev.h>
12832
12833                 MODULE_LICENSE("CDDL");
12834
12835 int
12836 main (void)
12837 {
12838
12839                 struct request *req = NULL;
12840                 (void) blk_end_request(req, 0, 0);
12841
12842   ;
12843   return 0;
12844 }
12845
12846 _ACEOF
12847
12848
12849         rm -Rf build && mkdir -p build
12850         echo "obj-m := conftest.o" >build/Makefile
12851         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853   (eval $ac_try) 2>&5
12854   ac_status=$?
12855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858   (eval $ac_try) 2>&5
12859   ac_status=$?
12860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; }; then
12862
12863                 { $as_echo "$as_me:$LINENO: result: no" >&5
12864 $as_echo "no" >&6; }
12865
12866 else
12867   $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12871 $as_echo "yes" >&6; }
12872
12873 cat >>confdefs.h <<\_ACEOF
12874 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
12875 _ACEOF
12876
12877
12878
12879
12880 fi
12881
12882         rm -Rf build
12883
12884
12885
12886
12887         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
12888 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
12889
12890
12891 cat confdefs.h - <<_ACEOF >conftest.c
12892 /* confdefs.h.  */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h.  */
12897
12898
12899                 #include <linux/blkdev.h>
12900
12901 int
12902 main (void)
12903 {
12904
12905                 struct request_queue *q = NULL;
12906                 (void) blk_fetch_request(q);
12907
12908   ;
12909   return 0;
12910 }
12911
12912 _ACEOF
12913
12914
12915         rm -Rf build && mkdir -p build
12916         echo "obj-m := conftest.o" >build/Makefile
12917         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919   (eval $ac_try) 2>&5
12920   ac_status=$?
12921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928
12929                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12930 $as_echo "yes" >&6; }
12931
12932 cat >>confdefs.h <<\_ACEOF
12933 #define HAVE_BLK_FETCH_REQUEST 1
12934 _ACEOF
12935
12936
12937 else
12938   $as_echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941                 { $as_echo "$as_me:$LINENO: result: no" >&5
12942 $as_echo "no" >&6; }
12943
12944
12945
12946 fi
12947
12948         rm -Rf build
12949
12950
12951
12952
12953         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
12954 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
12955
12956
12957 cat confdefs.h - <<_ACEOF >conftest.c
12958 /* confdefs.h.  */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h.  */
12963
12964
12965                 #include <linux/blkdev.h>
12966
12967 int
12968 main (void)
12969 {
12970
12971                 struct request_queue *q = NULL;
12972                 struct request *req = NULL;
12973                 blk_requeue_request(q, req);
12974
12975   ;
12976   return 0;
12977 }
12978
12979 _ACEOF
12980
12981
12982         rm -Rf build && mkdir -p build
12983         echo "obj-m := conftest.o" >build/Makefile
12984         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991   (eval $ac_try) 2>&5
12992   ac_status=$?
12993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; }; then
12995
12996                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12997 $as_echo "yes" >&6; }
12998
12999 cat >>confdefs.h <<\_ACEOF
13000 #define HAVE_BLK_REQUEUE_REQUEST 1
13001 _ACEOF
13002
13003
13004 else
13005   $as_echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008                 { $as_echo "$as_me:$LINENO: result: no" >&5
13009 $as_echo "no" >&6; }
13010
13011
13012
13013 fi
13014
13015         rm -Rf build
13016
13017
13018
13019
13020         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13021 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13022
13023
13024 cat confdefs.h - <<_ACEOF >conftest.c
13025 /* confdefs.h.  */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h.  */
13030
13031
13032                 #include <linux/blkdev.h>
13033
13034 int
13035 main (void)
13036 {
13037
13038                 struct request *req = NULL;
13039                 (void) blk_rq_bytes(req);
13040
13041   ;
13042   return 0;
13043 }
13044
13045 _ACEOF
13046
13047
13048         rm -Rf build && mkdir -p build
13049         echo "obj-m := conftest.o" >build/Makefile
13050         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052   (eval $ac_try) 2>&5
13053   ac_status=$?
13054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057   (eval $ac_try) 2>&5
13058   ac_status=$?
13059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); }; }; then
13061
13062                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13063 $as_echo "yes" >&6; }
13064
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_BLK_RQ_BYTES 1
13067 _ACEOF
13068
13069
13070 else
13071   $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074                 { $as_echo "$as_me:$LINENO: result: no" >&5
13075 $as_echo "no" >&6; }
13076
13077
13078
13079 fi
13080
13081         rm -Rf build
13082
13083
13084
13085         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13086 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13087
13088
13089 cat confdefs.h - <<_ACEOF >conftest.c
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095
13096
13097                 #include <linux/module.h>
13098                 #include <linux/blkdev.h>
13099
13100                 MODULE_LICENSE("CDDL");
13101
13102 int
13103 main (void)
13104 {
13105
13106                 struct request *req = NULL;
13107                 (void) blk_rq_bytes(req);
13108
13109   ;
13110   return 0;
13111 }
13112
13113 _ACEOF
13114
13115
13116         rm -Rf build && mkdir -p build
13117         echo "obj-m := conftest.o" >build/Makefile
13118         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125   (eval $ac_try) 2>&5
13126   ac_status=$?
13127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129
13130                 { $as_echo "$as_me:$LINENO: result: no" >&5
13131 $as_echo "no" >&6; }
13132
13133 else
13134   $as_echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13138 $as_echo "yes" >&6; }
13139
13140 cat >>confdefs.h <<\_ACEOF
13141 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13142 _ACEOF
13143
13144
13145
13146
13147 fi
13148
13149         rm -Rf build
13150
13151
13152
13153
13154         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13155 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13156
13157
13158 cat confdefs.h - <<_ACEOF >conftest.c
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164
13165
13166                 #include <linux/blkdev.h>
13167
13168 int
13169 main (void)
13170 {
13171
13172                 struct request *req = NULL;
13173                 (void) blk_rq_pos(req);
13174
13175   ;
13176   return 0;
13177 }
13178
13179 _ACEOF
13180
13181
13182         rm -Rf build && mkdir -p build
13183         echo "obj-m := conftest.o" >build/Makefile
13184         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186   (eval $ac_try) 2>&5
13187   ac_status=$?
13188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191   (eval $ac_try) 2>&5
13192   ac_status=$?
13193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; }; then
13195
13196                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13197 $as_echo "yes" >&6; }
13198
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_BLK_RQ_POS 1
13201 _ACEOF
13202
13203
13204 else
13205   $as_echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208                 { $as_echo "$as_me:$LINENO: result: no" >&5
13209 $as_echo "no" >&6; }
13210
13211
13212
13213 fi
13214
13215         rm -Rf build
13216
13217
13218
13219
13220         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13221 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13222
13223
13224 cat confdefs.h - <<_ACEOF >conftest.c
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230
13231
13232                 #include <linux/blkdev.h>
13233
13234 int
13235 main (void)
13236 {
13237
13238                 struct request *req = NULL;
13239                 (void) blk_rq_sectors(req);
13240
13241   ;
13242   return 0;
13243 }
13244
13245 _ACEOF
13246
13247
13248         rm -Rf build && mkdir -p build
13249         echo "obj-m := conftest.o" >build/Makefile
13250         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252   (eval $ac_try) 2>&5
13253   ac_status=$?
13254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; }; then
13261
13262                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13263 $as_echo "yes" >&6; }
13264
13265 cat >>confdefs.h <<\_ACEOF
13266 #define HAVE_BLK_RQ_SECTORS 1
13267 _ACEOF
13268
13269
13270 else
13271   $as_echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274                 { $as_echo "$as_me:$LINENO: result: no" >&5
13275 $as_echo "no" >&6; }
13276
13277
13278
13279 fi
13280
13281         rm -Rf build
13282
13283
13284
13285
13286         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13287 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13288
13289
13290 cat confdefs.h - <<_ACEOF >conftest.c
13291 /* confdefs.h.  */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h.  */
13296
13297
13298                 #include <linux/blkdev.h>
13299
13300 int
13301 main (void)
13302 {
13303
13304                 struct gendisk *disk = NULL;
13305                 (void) get_disk_ro(disk);
13306
13307   ;
13308   return 0;
13309 }
13310
13311 _ACEOF
13312
13313
13314         rm -Rf build && mkdir -p build
13315         echo "obj-m := conftest.o" >build/Makefile
13316         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318   (eval $ac_try) 2>&5
13319   ac_status=$?
13320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327
13328                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13329 $as_echo "yes" >&6; }
13330
13331 cat >>confdefs.h <<\_ACEOF
13332 #define HAVE_GET_DISK_RO 1
13333 _ACEOF
13334
13335
13336 else
13337   $as_echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340                 { $as_echo "$as_me:$LINENO: result: no" >&5
13341 $as_echo "no" >&6; }
13342
13343
13344
13345 fi
13346
13347         rm -Rf build
13348
13349
13350
13351
13352         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13353 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13354
13355
13356 cat confdefs.h - <<_ACEOF >conftest.c
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362
13363
13364                 #include <linux/blkdev.h>
13365
13366 int
13367 main (void)
13368 {
13369
13370                 struct request *req = NULL;
13371                 (void) rq_is_sync(req);
13372
13373   ;
13374   return 0;
13375 }
13376
13377 _ACEOF
13378
13379
13380         rm -Rf build && mkdir -p build
13381         echo "obj-m := conftest.o" >build/Makefile
13382         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384   (eval $ac_try) 2>&5
13385   ac_status=$?
13386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; }; then
13393
13394                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13395 $as_echo "yes" >&6; }
13396
13397 cat >>confdefs.h <<\_ACEOF
13398 #define HAVE_RQ_IS_SYNC 1
13399 _ACEOF
13400
13401
13402 else
13403   $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406                 { $as_echo "$as_me:$LINENO: result: no" >&5
13407 $as_echo "no" >&6; }
13408
13409
13410
13411 fi
13412
13413         rm -Rf build
13414
13415
13416
13417
13418         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13419 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13420
13421
13422 cat confdefs.h - <<_ACEOF >conftest.c
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428
13429
13430                 #include <linux/blkdev.h>
13431
13432 int
13433 main (void)
13434 {
13435
13436                 struct bio_vec *bv;
13437                 struct req_iterator iter;
13438                 struct request *req = NULL;
13439                 rq_for_each_segment(bv, req, iter) { }
13440
13441   ;
13442   return 0;
13443 }
13444
13445 _ACEOF
13446
13447
13448         rm -Rf build && mkdir -p build
13449         echo "obj-m := conftest.o" >build/Makefile
13450         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457   (eval $ac_try) 2>&5
13458   ac_status=$?
13459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; }; then
13461
13462                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13463 $as_echo "yes" >&6; }
13464
13465 cat >>confdefs.h <<\_ACEOF
13466 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13467 _ACEOF
13468
13469
13470 else
13471   $as_echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474                 { $as_echo "$as_me:$LINENO: result: no" >&5
13475 $as_echo "no" >&6; }
13476
13477
13478
13479 fi
13480
13481         rm -Rf build
13482
13483
13484
13485
13486         if test "$LINUX_OBJ" != "$LINUX"; then
13487                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
13488         fi
13489
13490
13491
13492                         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
13493         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
13494
13495
13496  ;;
13497                 user)
13498
13499         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13500 $as_echo_n "checking for target asm dir... " >&6; }
13501         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
13502
13503         case $TARGET_ARCH in
13504         i386|x86_64)
13505                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13506                 ;;
13507         *)
13508                 TARGET_ASM_DIR=asm-generic
13509                 ;;
13510         esac
13511
13512
13513         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13514 $as_echo "$TARGET_ASM_DIR" >&6; }
13515
13516
13517         { $as_echo "$as_me:$LINENO: checking for sa_init in -lshare" >&5
13518 $as_echo_n "checking for sa_init in -lshare... " >&6; }
13519 if test "${ac_cv_lib_share_sa_init+set}" = set; then
13520   $as_echo_n "(cached) " >&6
13521 else
13522   ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-lshare  $LIBS"
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h.  */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h.  */
13530
13531 /* Override any GCC internal prototype to avoid an error.
13532    Use char because int might match the return type of a GCC
13533    builtin and then its argument prototype would still apply.  */
13534 #ifdef __cplusplus
13535 extern "C"
13536 #endif
13537 char sa_init ();
13538 int
13539 main ()
13540 {
13541 return sa_init ();
13542   ;
13543   return 0;
13544 }
13545 _ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (ac_try="$ac_link"
13548 case "(($ac_try" in
13549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550   *) ac_try_echo=$ac_try;;
13551 esac
13552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13553 $as_echo "$ac_try_echo") >&5
13554   (eval "$ac_link") 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } && {
13561          test -z "$ac_c_werror_flag" ||
13562          test ! -s conftest.err
13563        } && test -s conftest$ac_exeext && {
13564          test "$cross_compiling" = yes ||
13565          $as_test_x conftest$ac_exeext
13566        }; then
13567   ac_cv_lib_share_sa_init=yes
13568 else
13569   $as_echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572         ac_cv_lib_share_sa_init=no
13573 fi
13574
13575 rm -rf conftest.dSYM
13576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13577       conftest$ac_exeext conftest.$ac_ext
13578 LIBS=$ac_check_lib_save_LIBS
13579 fi
13580 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_share_sa_init" >&5
13581 $as_echo "$ac_cv_lib_share_sa_init" >&6; }
13582 if test "x$ac_cv_lib_share_sa_init" = x""yes; then
13583
13584 cat >>confdefs.h <<\_ACEOF
13585 #define HAVE_LIBSHARE 1
13586 _ACEOF
13587
13588 fi
13589
13590
13591
13592         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
13593 $as_echo_n "checking for ioctl()... " >&6; }
13594         cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600 #include <unistd.h>
13601
13602 _ACEOF
13603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13604   $EGREP "ioctl" >/dev/null 2>&1; then
13605   is_unistd=yes
13606 else
13607   is_unistd=no
13608 fi
13609 rm -f conftest*
13610
13611         cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h.  */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h.  */
13617 #include <sys/ioctl.h>
13618
13619 _ACEOF
13620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13621   $EGREP "ioctl" >/dev/null 2>&1; then
13622   is_sys_ioctl=yes
13623 else
13624   is_sys_ioctl=no
13625 fi
13626 rm -f conftest*
13627
13628         cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 #include <stropts.h>
13635
13636 _ACEOF
13637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13638   $EGREP "ioctl" >/dev/null 2>&1; then
13639   is_stropts=yes
13640 else
13641   is_stropts=no
13642 fi
13643 rm -f conftest*
13644
13645
13646         if test $is_unistd = yes; then
13647                 result=unistd.h
13648
13649 cat >>confdefs.h <<\_ACEOF
13650 #define HAVE_IOCTL_IN_UNISTD_H 1
13651 _ACEOF
13652
13653         else
13654
13655                 if test $is_sys_ioctl = yes; then
13656                         result=sys/ioctl.h
13657
13658 cat >>confdefs.h <<\_ACEOF
13659 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
13660 _ACEOF
13661
13662                 elif test $is_stropts = yes; then
13663
13664 cat >>confdefs.h <<\_ACEOF
13665 #define HAVE_IOCTL_IN_STROPTS_H 1
13666 _ACEOF
13667
13668                 else
13669                         result=no
13670                 fi
13671         fi
13672
13673         if test $result = no; then
13674                 { $as_echo "$as_me:$LINENO: result: no" >&5
13675 $as_echo "no" >&6; }
13676                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
13677 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
13678    { (exit 1); exit 1; }; }
13679         else
13680                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13681 $as_echo "yes" >&6; }
13682         fi
13683
13684
13685         ZLIB=
13686
13687         if test "${ac_cv_header_zlib_h+set}" = set; then
13688   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13689 $as_echo_n "checking for zlib.h... " >&6; }
13690 if test "${ac_cv_header_zlib_h+set}" = set; then
13691   $as_echo_n "(cached) " >&6
13692 fi
13693 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13694 $as_echo "$ac_cv_header_zlib_h" >&6; }
13695 else
13696   # Is the header compilable?
13697 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
13698 $as_echo_n "checking zlib.h usability... " >&6; }
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705 $ac_includes_default
13706 #include <zlib.h>
13707 _ACEOF
13708 rm -f conftest.$ac_objext
13709 if { (ac_try="$ac_compile"
13710 case "(($ac_try" in
13711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712   *) ac_try_echo=$ac_try;;
13713 esac
13714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13715 $as_echo "$ac_try_echo") >&5
13716   (eval "$ac_compile") 2>conftest.er1
13717   ac_status=$?
13718   grep -v '^ *+' conftest.er1 >conftest.err
13719   rm -f conftest.er1
13720   cat conftest.err >&5
13721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } && {
13723          test -z "$ac_c_werror_flag" ||
13724          test ! -s conftest.err
13725        } && test -s conftest.$ac_objext; then
13726   ac_header_compiler=yes
13727 else
13728   $as_echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         ac_header_compiler=no
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 $as_echo "$ac_header_compiler" >&6; }
13737
13738 # Is the header present?
13739 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
13740 $as_echo_n "checking zlib.h presence... " >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 #include <zlib.h>
13748 _ACEOF
13749 if { (ac_try="$ac_cpp conftest.$ac_ext"
13750 case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13755 $as_echo "$ac_try_echo") >&5
13756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13757   ac_status=$?
13758   grep -v '^ *+' conftest.er1 >conftest.err
13759   rm -f conftest.er1
13760   cat conftest.err >&5
13761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); } >/dev/null && {
13763          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13764          test ! -s conftest.err
13765        }; then
13766   ac_header_preproc=yes
13767 else
13768   $as_echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771   ac_header_preproc=no
13772 fi
13773
13774 rm -f conftest.err conftest.$ac_ext
13775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13776 $as_echo "$ac_header_preproc" >&6; }
13777
13778 # So?  What about this header?
13779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13780   yes:no: )
13781     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13782 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13783     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13784 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13785     ac_header_preproc=yes
13786     ;;
13787   no:yes:* )
13788     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13789 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13790     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
13791 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
13792     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13793 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13794     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
13795 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13796     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13797 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13798     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13799 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13800
13801     ;;
13802 esac
13803 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13804 $as_echo_n "checking for zlib.h... " >&6; }
13805 if test "${ac_cv_header_zlib_h+set}" = set; then
13806   $as_echo_n "(cached) " >&6
13807 else
13808   ac_cv_header_zlib_h=$ac_header_preproc
13809 fi
13810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13811 $as_echo "$ac_cv_header_zlib_h" >&6; }
13812
13813 fi
13814 if test "x$ac_cv_header_zlib_h" = x""yes; then
13815   :
13816 else
13817   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13819 { { $as_echo "$as_me:$LINENO: error:
13820         *** zlib.h missing, zlib-devel package required
13821 See \`config.log' for more details." >&5
13822 $as_echo "$as_me: error:
13823         *** zlib.h missing, zlib-devel package required
13824 See \`config.log' for more details." >&2;}
13825    { (exit 1); exit 1; }; }; }
13826 fi
13827
13828
13829
13830
13831 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13832 $as_echo_n "checking for compress2 in -lz... " >&6; }
13833 if test "${ac_cv_lib_z_compress2+set}" = set; then
13834   $as_echo_n "(cached) " >&6
13835 else
13836   ac_check_lib_save_LIBS=$LIBS
13837 LIBS="-lz  $LIBS"
13838 cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844
13845 /* Override any GCC internal prototype to avoid an error.
13846    Use char because int might match the return type of a GCC
13847    builtin and then its argument prototype would still apply.  */
13848 #ifdef __cplusplus
13849 extern "C"
13850 #endif
13851 char compress2 ();
13852 int
13853 main ()
13854 {
13855 return compress2 ();
13856   ;
13857   return 0;
13858 }
13859 _ACEOF
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (ac_try="$ac_link"
13862 case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868   (eval "$ac_link") 2>conftest.er1
13869   ac_status=$?
13870   grep -v '^ *+' conftest.er1 >conftest.err
13871   rm -f conftest.er1
13872   cat conftest.err >&5
13873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } && {
13875          test -z "$ac_c_werror_flag" ||
13876          test ! -s conftest.err
13877        } && test -s conftest$ac_exeext && {
13878          test "$cross_compiling" = yes ||
13879          $as_test_x conftest$ac_exeext
13880        }; then
13881   ac_cv_lib_z_compress2=yes
13882 else
13883   $as_echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886         ac_cv_lib_z_compress2=no
13887 fi
13888
13889 rm -rf conftest.dSYM
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891       conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13893 fi
13894 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13895 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13896 if test "x$ac_cv_lib_z_compress2" = x""yes; then
13897   cat >>confdefs.h <<_ACEOF
13898 #define HAVE_LIBZ 1
13899 _ACEOF
13900
13901   LIBS="-lz $LIBS"
13902
13903 else
13904   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13906 { { $as_echo "$as_me:$LINENO: error:
13907         *** compress2() missing, zlib-devel package required
13908 See \`config.log' for more details." >&5
13909 $as_echo "$as_me: error:
13910         *** compress2() missing, zlib-devel package required
13911 See \`config.log' for more details." >&2;}
13912    { (exit 1); exit 1; }; }; }
13913 fi
13914
13915
13916
13917 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
13918 $as_echo_n "checking for uncompress in -lz... " >&6; }
13919 if test "${ac_cv_lib_z_uncompress+set}" = set; then
13920   $as_echo_n "(cached) " >&6
13921 else
13922   ac_check_lib_save_LIBS=$LIBS
13923 LIBS="-lz  $LIBS"
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h.  */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h.  */
13930
13931 /* Override any GCC internal prototype to avoid an error.
13932    Use char because int might match the return type of a GCC
13933    builtin and then its argument prototype would still apply.  */
13934 #ifdef __cplusplus
13935 extern "C"
13936 #endif
13937 char uncompress ();
13938 int
13939 main ()
13940 {
13941 return uncompress ();
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 rm -f conftest.$ac_objext conftest$ac_exeext
13947 if { (ac_try="$ac_link"
13948 case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13953 $as_echo "$ac_try_echo") >&5
13954   (eval "$ac_link") 2>conftest.er1
13955   ac_status=$?
13956   grep -v '^ *+' conftest.er1 >conftest.err
13957   rm -f conftest.er1
13958   cat conftest.err >&5
13959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); } && {
13961          test -z "$ac_c_werror_flag" ||
13962          test ! -s conftest.err
13963        } && test -s conftest$ac_exeext && {
13964          test "$cross_compiling" = yes ||
13965          $as_test_x conftest$ac_exeext
13966        }; then
13967   ac_cv_lib_z_uncompress=yes
13968 else
13969   $as_echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972         ac_cv_lib_z_uncompress=no
13973 fi
13974
13975 rm -rf conftest.dSYM
13976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13977       conftest$ac_exeext conftest.$ac_ext
13978 LIBS=$ac_check_lib_save_LIBS
13979 fi
13980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
13981 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
13982 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
13983   cat >>confdefs.h <<_ACEOF
13984 #define HAVE_LIBZ 1
13985 _ACEOF
13986
13987   LIBS="-lz $LIBS"
13988
13989 else
13990   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13992 { { $as_echo "$as_me:$LINENO: error:
13993         *** uncompress() missing, zlib-devel package required
13994 See \`config.log' for more details." >&5
13995 $as_echo "$as_me: error:
13996         *** uncompress() missing, zlib-devel package required
13997 See \`config.log' for more details." >&2;}
13998    { (exit 1); exit 1; }; }; }
13999 fi
14000
14001
14002
14003 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
14004 $as_echo_n "checking for crc32 in -lz... " >&6; }
14005 if test "${ac_cv_lib_z_crc32+set}" = set; then
14006   $as_echo_n "(cached) " >&6
14007 else
14008   ac_check_lib_save_LIBS=$LIBS
14009 LIBS="-lz  $LIBS"
14010 cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016
14017 /* Override any GCC internal prototype to avoid an error.
14018    Use char because int might match the return type of a GCC
14019    builtin and then its argument prototype would still apply.  */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 char crc32 ();
14024 int
14025 main ()
14026 {
14027 return crc32 ();
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (ac_try="$ac_link"
14034 case "(($ac_try" in
14035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036   *) ac_try_echo=$ac_try;;
14037 esac
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040   (eval "$ac_link") 2>conftest.er1
14041   ac_status=$?
14042   grep -v '^ *+' conftest.er1 >conftest.err
14043   rm -f conftest.er1
14044   cat conftest.err >&5
14045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } && {
14047          test -z "$ac_c_werror_flag" ||
14048          test ! -s conftest.err
14049        } && test -s conftest$ac_exeext && {
14050          test "$cross_compiling" = yes ||
14051          $as_test_x conftest$ac_exeext
14052        }; then
14053   ac_cv_lib_z_crc32=yes
14054 else
14055   $as_echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058         ac_cv_lib_z_crc32=no
14059 fi
14060
14061 rm -rf conftest.dSYM
14062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14063       conftest$ac_exeext conftest.$ac_ext
14064 LIBS=$ac_check_lib_save_LIBS
14065 fi
14066 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
14067 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14068 if test "x$ac_cv_lib_z_crc32" = x""yes; then
14069   cat >>confdefs.h <<_ACEOF
14070 #define HAVE_LIBZ 1
14071 _ACEOF
14072
14073   LIBS="-lz $LIBS"
14074
14075 else
14076   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14078 { { $as_echo "$as_me:$LINENO: error:
14079         *** crc32() missing, zlib-devel package required
14080 See \`config.log' for more details." >&5
14081 $as_echo "$as_me: error:
14082         *** crc32() missing, zlib-devel package required
14083 See \`config.log' for more details." >&2;}
14084    { (exit 1); exit 1; }; }; }
14085 fi
14086
14087
14088         ZLIB="-lz"
14089
14090
14091 cat >>confdefs.h <<\_ACEOF
14092 #define HAVE_ZLIB 1
14093 _ACEOF
14094
14095
14096
14097         LIBUUID=
14098
14099         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14100   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14101 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14102 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14103   $as_echo_n "(cached) " >&6
14104 fi
14105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14106 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14107 else
14108   # Is the header compilable?
14109 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14110 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 $ac_includes_default
14118 #include <uuid/uuid.h>
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (ac_try="$ac_compile"
14122 case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14127 $as_echo "$ac_try_echo") >&5
14128   (eval "$ac_compile") 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } && {
14135          test -z "$ac_c_werror_flag" ||
14136          test ! -s conftest.err
14137        } && test -s conftest.$ac_objext; then
14138   ac_header_compiler=yes
14139 else
14140   $as_echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143         ac_header_compiler=no
14144 fi
14145
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14148 $as_echo "$ac_header_compiler" >&6; }
14149
14150 # Is the header present?
14151 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
14152 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
14153 cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h.  */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h.  */
14159 #include <uuid/uuid.h>
14160 _ACEOF
14161 if { (ac_try="$ac_cpp conftest.$ac_ext"
14162 case "(($ac_try" in
14163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164   *) ac_try_echo=$ac_try;;
14165 esac
14166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14167 $as_echo "$ac_try_echo") >&5
14168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } >/dev/null && {
14175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14176          test ! -s conftest.err
14177        }; then
14178   ac_header_preproc=yes
14179 else
14180   $as_echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183   ac_header_preproc=no
14184 fi
14185
14186 rm -f conftest.err conftest.$ac_ext
14187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14188 $as_echo "$ac_header_preproc" >&6; }
14189
14190 # So?  What about this header?
14191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14192   yes:no: )
14193     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
14194 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14195     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
14196 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
14197     ac_header_preproc=yes
14198     ;;
14199   no:yes:* )
14200     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
14201 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
14202     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
14203 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
14204     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
14205 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
14206     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
14207 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14208     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
14209 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
14210     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
14211 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
14212
14213     ;;
14214 esac
14215 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14216 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14217 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14218   $as_echo_n "(cached) " >&6
14219 else
14220   ac_cv_header_uuid_uuid_h=$ac_header_preproc
14221 fi
14222 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14223 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14224
14225 fi
14226 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
14227   :
14228 else
14229   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14231 { { $as_echo "$as_me:$LINENO: error:
14232         *** uuid/uuid.h missing, libuuid-devel package required
14233 See \`config.log' for more details." >&5
14234 $as_echo "$as_me: error:
14235         *** uuid/uuid.h missing, libuuid-devel package required
14236 See \`config.log' for more details." >&2;}
14237    { (exit 1); exit 1; }; }; }
14238 fi
14239
14240
14241
14242
14243 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
14244 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
14245 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
14246   $as_echo_n "(cached) " >&6
14247 else
14248   ac_check_lib_save_LIBS=$LIBS
14249 LIBS="-luuid  $LIBS"
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256
14257 /* Override any GCC internal prototype to avoid an error.
14258    Use char because int might match the return type of a GCC
14259    builtin and then its argument prototype would still apply.  */
14260 #ifdef __cplusplus
14261 extern "C"
14262 #endif
14263 char uuid_generate ();
14264 int
14265 main ()
14266 {
14267 return uuid_generate ();
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (ac_try="$ac_link"
14274 case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14279 $as_echo "$ac_try_echo") >&5
14280   (eval "$ac_link") 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } && {
14287          test -z "$ac_c_werror_flag" ||
14288          test ! -s conftest.err
14289        } && test -s conftest$ac_exeext && {
14290          test "$cross_compiling" = yes ||
14291          $as_test_x conftest$ac_exeext
14292        }; then
14293   ac_cv_lib_uuid_uuid_generate=yes
14294 else
14295   $as_echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298         ac_cv_lib_uuid_uuid_generate=no
14299 fi
14300
14301 rm -rf conftest.dSYM
14302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14303       conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14305 fi
14306 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
14307 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
14308 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
14309   cat >>confdefs.h <<_ACEOF
14310 #define HAVE_LIBUUID 1
14311 _ACEOF
14312
14313   LIBS="-luuid $LIBS"
14314
14315 else
14316   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14318 { { $as_echo "$as_me:$LINENO: error:
14319         *** uuid_generate() missing, libuuid-devel package required
14320 See \`config.log' for more details." >&5
14321 $as_echo "$as_me: error:
14322         *** uuid_generate() missing, libuuid-devel package required
14323 See \`config.log' for more details." >&2;}
14324    { (exit 1); exit 1; }; }; }
14325 fi
14326
14327
14328
14329 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
14330 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
14331 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
14332   $as_echo_n "(cached) " >&6
14333 else
14334   ac_check_lib_save_LIBS=$LIBS
14335 LIBS="-luuid  $LIBS"
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342
14343 /* Override any GCC internal prototype to avoid an error.
14344    Use char because int might match the return type of a GCC
14345    builtin and then its argument prototype would still apply.  */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char uuid_is_null ();
14350 int
14351 main ()
14352 {
14353 return uuid_is_null ();
14354   ;
14355   return 0;
14356 }
14357 _ACEOF
14358 rm -f conftest.$ac_objext conftest$ac_exeext
14359 if { (ac_try="$ac_link"
14360 case "(($ac_try" in
14361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362   *) ac_try_echo=$ac_try;;
14363 esac
14364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14365 $as_echo "$ac_try_echo") >&5
14366   (eval "$ac_link") 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } && {
14373          test -z "$ac_c_werror_flag" ||
14374          test ! -s conftest.err
14375        } && test -s conftest$ac_exeext && {
14376          test "$cross_compiling" = yes ||
14377          $as_test_x conftest$ac_exeext
14378        }; then
14379   ac_cv_lib_uuid_uuid_is_null=yes
14380 else
14381   $as_echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384         ac_cv_lib_uuid_uuid_is_null=no
14385 fi
14386
14387 rm -rf conftest.dSYM
14388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14389       conftest$ac_exeext conftest.$ac_ext
14390 LIBS=$ac_check_lib_save_LIBS
14391 fi
14392 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
14393 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
14394 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
14395   cat >>confdefs.h <<_ACEOF
14396 #define HAVE_LIBUUID 1
14397 _ACEOF
14398
14399   LIBS="-luuid $LIBS"
14400
14401 else
14402   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14404 { { $as_echo "$as_me:$LINENO: error:
14405         *** uuid_is_null() missing, libuuid-devel package required
14406 See \`config.log' for more details." >&5
14407 $as_echo "$as_me: error:
14408         *** uuid_is_null() missing, libuuid-devel package required
14409 See \`config.log' for more details." >&2;}
14410    { (exit 1); exit 1; }; }; }
14411 fi
14412
14413
14414         LIBUUID="-luuid"
14415
14416
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_LIBUUID 1
14419 _ACEOF
14420
14421
14422
14423
14424 # Check whether --with-blkid was given.
14425 if test "${with_blkid+set}" = set; then
14426   withval=$with_blkid;
14427 else
14428   with_blkid=check
14429 fi
14430
14431
14432         LIBBLKID=
14433         if test "x$with_blkid" != xno; then
14434
14435                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
14436 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
14437 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
14438   $as_echo_n "(cached) " >&6
14439 else
14440   ac_check_lib_save_LIBS=$LIBS
14441 LIBS="-lblkid  $LIBS"
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h.  */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h.  */
14448
14449 /* Override any GCC internal prototype to avoid an error.
14450    Use char because int might match the return type of a GCC
14451    builtin and then its argument prototype would still apply.  */
14452 #ifdef __cplusplus
14453 extern "C"
14454 #endif
14455 char blkid_get_cache ();
14456 int
14457 main ()
14458 {
14459 return blkid_get_cache ();
14460   ;
14461   return 0;
14462 }
14463 _ACEOF
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (ac_try="$ac_link"
14466 case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14471 $as_echo "$ac_try_echo") >&5
14472   (eval "$ac_link") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } && {
14479          test -z "$ac_c_werror_flag" ||
14480          test ! -s conftest.err
14481        } && test -s conftest$ac_exeext && {
14482          test "$cross_compiling" = yes ||
14483          $as_test_x conftest$ac_exeext
14484        }; then
14485   ac_cv_lib_blkid_blkid_get_cache=yes
14486 else
14487   $as_echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490         ac_cv_lib_blkid_blkid_get_cache=no
14491 fi
14492
14493 rm -rf conftest.dSYM
14494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14495       conftest$ac_exeext conftest.$ac_ext
14496 LIBS=$ac_check_lib_save_LIBS
14497 fi
14498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
14499 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
14500 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
14501
14502                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
14503 $as_echo_n "checking for blkid zfs support... " >&6; }
14504
14505                         ZFS_DEV=`mktemp`
14506                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
14507                                 >/dev/null 2>/dev/null
14508                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
14509                                 dd of=$ZFS_DEV bs=1k count=8 \
14510                                 seek=132 conv=notrunc &>/dev/null \
14511                                 >/dev/null 2>/dev/null
14512
14513                         saved_LDFLAGS="$LDFLAGS"
14514                         LDFLAGS="-lblkid"
14515
14516                         if test "$cross_compiling" = yes; then
14517   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14519 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14520 See \`config.log' for more details." >&5
14521 $as_echo "$as_me: error: cannot run test program while cross compiling
14522 See \`config.log' for more details." >&2;}
14523    { (exit 1); exit 1; }; }; }
14524 else
14525   cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h.  */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h.  */
14531
14532                                 #include <stdio.h>
14533                                 #include <blkid/blkid.h>
14534
14535 int
14536 main ()
14537 {
14538
14539                                 blkid_cache cache;
14540                                 char *value;
14541
14542                                 if (blkid_get_cache(&cache, NULL) < 0)
14543                                         return 1;
14544
14545                                 value = blkid_get_tag_value(cache, "TYPE",
14546                                                             "$ZFS_DEV");
14547                                 if (!value) {
14548                                         blkid_put_cache(cache);
14549                                         return 2;
14550                                 }
14551
14552                                 if (strcmp(value, "zfs")) {
14553                                         free(value);
14554                                         blkid_put_cache(cache);
14555                                         return 3;
14556                                 }
14557
14558                                 free(value);
14559                                 blkid_put_cache(cache);
14560
14561   ;
14562   return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest$ac_exeext
14566 if { (ac_try="$ac_link"
14567 case "(($ac_try" in
14568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569   *) ac_try_echo=$ac_try;;
14570 esac
14571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14572 $as_echo "$ac_try_echo") >&5
14573   (eval "$ac_link") 2>&5
14574   ac_status=$?
14575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14577   { (case "(($ac_try" in
14578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579   *) ac_try_echo=$ac_try;;
14580 esac
14581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14582 $as_echo "$ac_try_echo") >&5
14583   (eval "$ac_try") 2>&5
14584   ac_status=$?
14585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587
14588                                 rm -f $ZFS_DEV
14589                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14590 $as_echo "yes" >&6; }
14591                                 LIBBLKID="-lblkid"
14592
14593
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_LIBBLKID 1
14596 _ACEOF
14597
14598
14599 else
14600   $as_echo "$as_me: program exited with status $ac_status" >&5
14601 $as_echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604 ( exit $ac_status )
14605
14606                                 rm -f $ZFS_DEV
14607                                 { $as_echo "$as_me:$LINENO: result: no" >&5
14608 $as_echo "no" >&6; }
14609                                 if test "x$with_blkid" != xcheck; then
14610   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14612 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
14613 See \`config.log' for more details." >&5
14614 $as_echo "$as_me: error: --with-blkid given but unavailable
14615 See \`config.log' for more details." >&2;}
14616    { (exit 1); exit 1; }; }; }
14617 fi
14618
14619
14620 fi
14621 rm -rf conftest.dSYM
14622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14623 fi
14624
14625
14626
14627                         LDFLAGS="$saved_LDFLAGS"
14628
14629 else
14630
14631                         if test "x$with_blkid" != xcheck; then
14632   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14634 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
14635 See \`config.log' for more details." >&5
14636 $as_echo "$as_me: error: --with-blkid given but unavailable
14637 See \`config.log' for more details." >&2;}
14638    { (exit 1); exit 1; }; }; }
14639 fi
14640
14641
14642
14643 fi
14644
14645
14646 fi
14647
14648
14649
14650         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
14651 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
14652
14653         saved_flags="$CFLAGS"
14654         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
14655
14656         if test "$cross_compiling" = yes; then
14657   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14659 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14660 See \`config.log' for more details." >&5
14661 $as_echo "$as_me: error: cannot run test program while cross compiling
14662 See \`config.log' for more details." >&2;}
14663    { (exit 1); exit 1; }; }; }
14664 else
14665   cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671
14672 int
14673 main ()
14674 {
14675
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 rm -f conftest$ac_exeext
14681 if { (ac_try="$ac_link"
14682 case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14687 $as_echo "$ac_try_echo") >&5
14688   (eval "$ac_link") 2>&5
14689   ac_status=$?
14690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14692   { (case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697 $as_echo "$ac_try_echo") >&5
14698   (eval "$ac_try") 2>&5
14699   ac_status=$?
14700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); }; }; then
14702
14703                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
14704                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14705 $as_echo "yes" >&6; }
14706
14707 else
14708   $as_echo "$as_me: program exited with status $ac_status" >&5
14709 $as_echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ( exit $ac_status )
14713
14714                 FRAME_LARGER_THAN=
14715                 { $as_echo "$as_me:$LINENO: result: no" >&5
14716 $as_echo "no" >&6; }
14717
14718 fi
14719 rm -rf conftest.dSYM
14720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14721 fi
14722
14723
14724
14725         CFLAGS="$saved_flags"
14726
14727
14728
14729
14730         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
14731 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
14732
14733         saved_CFLAGS="$CFLAGS"
14734         CFLAGS="-fstack-check"
14735         saved_LDFLAGS="$LDFLAGS"
14736         LDFLAGS="-lpthread"
14737
14738         if test "$cross_compiling" = yes; then
14739   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14741 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14742 See \`config.log' for more details." >&5
14743 $as_echo "$as_me: error: cannot run test program while cross compiling
14744 See \`config.log' for more details." >&2;}
14745    { (exit 1); exit 1; }; }; }
14746 else
14747   cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753
14754                 #include <pthread.h>
14755                 #include <sys/resource.h>
14756                 #include <unistd.h>
14757                 #include <bits/local_lim.h>
14758
14759                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
14760                 #define STACK_SIZE 8192
14761                 #define BUFSIZE 4096
14762
14763                 void * func(void *arg)
14764                 {
14765                         char buf[BUFSIZE];
14766                 }
14767
14768 int
14769 main ()
14770 {
14771
14772                 pthread_t tid;
14773                 pthread_attr_t attr;
14774                 struct rlimit l;
14775
14776                 l.rlim_cur = 0;
14777                 l.rlim_max = 0;
14778                 setrlimit(RLIMIT_CORE, &l);
14779                 pthread_attr_init(&attr);
14780                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
14781                 pthread_attr_setguardsize(&attr, PAGESIZE);
14782                 pthread_create(&tid, &attr, func, NULL);
14783                 pthread_join(tid, NULL);
14784
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest$ac_exeext
14790 if { (ac_try="$ac_link"
14791 case "(($ac_try" in
14792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793   *) ac_try_echo=$ac_try;;
14794 esac
14795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14796 $as_echo "$ac_try_echo") >&5
14797   (eval "$ac_link") 2>&5
14798   ac_status=$?
14799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14801   { (case "(($ac_try" in
14802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803   *) ac_try_echo=$ac_try;;
14804 esac
14805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14806 $as_echo "$ac_try_echo") >&5
14807   (eval "$ac_try") 2>&5
14808   ac_status=$?
14809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; }; then
14811
14812                 { $as_echo "$as_me:$LINENO: result: no" >&5
14813 $as_echo "no" >&6; }
14814
14815 else
14816   $as_echo "$as_me: program exited with status $ac_status" >&5
14817 $as_echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ( exit $ac_status )
14821
14822
14823 cat >>confdefs.h <<\_ACEOF
14824 #define NPTL_GUARD_WITHIN_STACK 1
14825 _ACEOF
14826
14827                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14828 $as_echo "yes" >&6; }
14829
14830 fi
14831 rm -rf conftest.dSYM
14832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14833 fi
14834
14835
14836         CFLAGS="$saved_CFLAGS"
14837         LDFLAGS="$saved_LDFLAGS"
14838
14839    ;;
14840                 all)
14841
14842
14843 # Check whether --with-linux was given.
14844 if test "${with_linux+set}" = set; then
14845   withval=$with_linux; kernelsrc="$withval"
14846 fi
14847
14848
14849
14850 # Check whether --with-linux-obj was given.
14851 if test "${with_linux_obj+set}" = set; then
14852   withval=$with_linux_obj; kernelbuild="$withval"
14853 fi
14854
14855
14856         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
14857 $as_echo_n "checking kernel source directory... " >&6; }
14858         if test -z "$kernelsrc"; then
14859                 headersdir="/lib/modules/$(uname -r)/build"
14860                 if test -e "$headersdir"; then
14861                         sourcelink=$(readlink -f "$headersdir")
14862                 else
14863                         sourcelink=$(ls -1d /usr/src/kernels/* \
14864                                      /usr/src/linux-* \
14865                                      2>/dev/null | grep -v obj | tail -1)
14866                 fi
14867
14868                 if test -n "$sourcelink" && test -e ${sourcelink}; then
14869                         kernelsrc=`readlink -f ${sourcelink}`
14870                 else
14871                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
14872 $as_echo "Not found" >&6; }
14873                         { { $as_echo "$as_me:$LINENO: error:
14874         *** Please make sure the kernel devel package for your distribution
14875         *** is installed then try again.  If that fails you can specify the
14876         *** location of the kernel source with the '--with-linux=PATH' option." >&5
14877 $as_echo "$as_me: error:
14878         *** Please make sure the kernel devel package for your distribution
14879         *** is installed then try again.  If that fails you can specify the
14880         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
14881    { (exit 1); exit 1; }; }
14882                 fi
14883         else
14884                 if test "$kernelsrc" = "NONE"; then
14885                         kernsrcver=NONE
14886                 fi
14887         fi
14888
14889         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
14890 $as_echo "$kernelsrc" >&6; }
14891         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
14892 $as_echo_n "checking kernel build directory... " >&6; }
14893         if test -z "$kernelbuild"; then
14894                 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
14895                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
14896                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
14897                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
14898                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
14899                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
14900                 else
14901                         kernelbuild=${kernelsrc}
14902                 fi
14903         fi
14904         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
14905 $as_echo "$kernelbuild" >&6; }
14906
14907         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
14908 $as_echo_n "checking kernel source version... " >&6; }
14909         utsrelease1=$kernelbuild/include/linux/version.h
14910         utsrelease2=$kernelbuild/include/linux/utsrelease.h
14911         utsrelease3=$kernelbuild/include/generated/utsrelease.h
14912         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
14913                 utsrelease=linux/version.h
14914         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
14915                 utsrelease=linux/utsrelease.h
14916         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
14917                 utsrelease=generated/utsrelease.h
14918         fi
14919
14920         if test "$utsrelease"; then
14921                 kernsrcver=`(echo "#include <$utsrelease>";
14922                              echo "kernsrcver=UTS_RELEASE") |
14923                              cpp -I $kernelbuild/include |
14924                              grep "^kernsrcver=" | cut -d \" -f 2`
14925
14926                 if test -z "$kernsrcver"; then
14927                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
14928 $as_echo "Not found" >&6; }
14929                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
14930 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
14931    { (exit 1); exit 1; }; }
14932                 fi
14933         else
14934                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14935 $as_echo "Not found" >&6; }
14936                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
14937 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
14938    { (exit 1); exit 1; }; }
14939         fi
14940
14941         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
14942 $as_echo "$kernsrcver" >&6; }
14943
14944         LINUX=${kernelsrc}
14945         LINUX_OBJ=${kernelbuild}
14946         LINUX_VERSION=${kernsrcver}
14947
14948
14949
14950
14951
14952
14953         modpost=$LINUX/scripts/Makefile.modpost
14954         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
14955 $as_echo_n "checking kernel file name for module symbols... " >&6; }
14956         if test -f "$modpost"; then
14957                 if grep -q Modules.symvers $modpost; then
14958                         LINUX_SYMBOLS=Modules.symvers
14959                 else
14960                         LINUX_SYMBOLS=Module.symvers
14961                 fi
14962         else
14963                 LINUX_SYMBOLS=NONE
14964         fi
14965         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14966 $as_echo "$LINUX_SYMBOLS" >&6; }
14967
14968
14969
14970
14971
14972 # Check whether --with-spl was given.
14973 if test "${with_spl+set}" = set; then
14974   withval=$with_spl; splsrc="$withval"
14975 fi
14976
14977
14978
14979 # Check whether --with-spl-obj was given.
14980 if test "${with_spl_obj+set}" = set; then
14981   withval=$with_spl_obj; splbuild="$withval"
14982 fi
14983
14984
14985
14986         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
14987 $as_echo_n "checking spl source directory... " >&6; }
14988         if test -z "$splsrc"; then
14989                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
14990                             2>/dev/null | tail -1`
14991
14992                 if test -z "$sourcelink" || test ! -e $sourcelink; then
14993                         sourcelink=../spl
14994                 fi
14995
14996                 if test -e $sourcelink; then
14997                         splsrc=`readlink -f ${sourcelink}`
14998                 else
14999                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
15000 $as_echo "Not found" >&6; }
15001                         { { $as_echo "$as_me:$LINENO: error:
15002         *** Please make sure the spl devel package for your distribution
15003         *** is installed then try again.  If that fails you can specify the
15004         *** location of the spl source with the '--with-spl=PATH' option." >&5
15005 $as_echo "$as_me: error:
15006         *** Please make sure the spl devel package for your distribution
15007         *** is installed then try again.  If that fails you can specify the
15008         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
15009    { (exit 1); exit 1; }; }
15010                 fi
15011         else
15012                 if test "$splsrc" = "NONE"; then
15013                         splbuild=NONE
15014                         splsrcver=NONE
15015                 fi
15016         fi
15017
15018         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
15019 $as_echo "$splsrc" >&6; }
15020         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
15021 $as_echo_n "checking spl build directory... " >&6; }
15022         if test -z "$splbuild"; then
15023                 splbuild=${splsrc}
15024         fi
15025         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
15026 $as_echo "$splbuild" >&6; }
15027
15028         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
15029 $as_echo_n "checking spl source version... " >&6; }
15030         if test -r $splbuild/spl_config.h &&
15031                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
15032
15033                 splsrcver=`(echo "#include <spl_config.h>";
15034                             echo "splsrcver=SPL_META_VERSION") |
15035                             cpp -I $splbuild |
15036                             grep "^splsrcver=" | cut -d \" -f 2`
15037         fi
15038
15039         if test -z "$splsrcver"; then
15040                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15041 $as_echo "Not found" >&6; }
15042                 { { $as_echo "$as_me:$LINENO: error:
15043                 *** Cannot determine the version of the spl source.
15044                 *** Please prepare the spl source before running this script" >&5
15045 $as_echo "$as_me: error:
15046                 *** Cannot determine the version of the spl source.
15047                 *** Please prepare the spl source before running this script" >&2;}
15048    { (exit 1); exit 1; }; }
15049         fi
15050
15051         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
15052 $as_echo "$splsrcver" >&6; }
15053
15054         SPL=${splsrc}
15055         SPL_OBJ=${splbuild}
15056         SPL_VERSION=${splsrcver}
15057
15058
15059
15060
15061
15062
15063         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
15064 $as_echo_n "checking spl file name for module symbols... " >&6; }
15065         if test -r $SPL_OBJ/Module.symvers; then
15066                 SPL_SYMBOLS=Module.symvers
15067         elif test -r $SPL_OBJ/Modules.symvers; then
15068                 SPL_SYMBOLS=Modules.symvers
15069         elif test -r $SPL_OBJ/module/Module.symvers; then
15070                 SPL_SYMBOLS=Module.symvers
15071         elif test -r $SPL_OBJ/module/Modules.symvers; then
15072                 SPL_SYMBOLS=Modules.symvers
15073         else
15074                 SPL_SYMBOLS=$LINUX_SYMBOLS
15075         fi
15076
15077         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
15078 $as_echo "$SPL_SYMBOLS" >&6; }
15079
15080
15081
15082
15083
15084         if test "$ZFS_META_LICENSE" = CDDL; then
15085                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
15086 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
15087
15088
15089 cat confdefs.h - <<_ACEOF >conftest.c
15090 /* confdefs.h.  */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h.  */
15095
15096
15097                 #ifndef AUTOCONF_INCLUDED
15098                 #include <linux/config.h>
15099                 #endif
15100
15101 int
15102 main (void)
15103 {
15104
15105                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
15106                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
15107                 #endif
15108
15109   ;
15110   return 0;
15111 }
15112
15113 _ACEOF
15114
15115
15116         rm -Rf build && mkdir -p build
15117         echo "obj-m := conftest.o" >build/Makefile
15118         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125   (eval $ac_try) 2>&5
15126   ac_status=$?
15127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; }; then
15129
15130                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15131 $as_echo "yes" >&6; }
15132                 { { $as_echo "$as_me:$LINENO: error:
15133                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15134                 *** incompatible with the CDDL license.  You must rebuild
15135                 *** your kernel without this option." >&5
15136 $as_echo "$as_me: error:
15137                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15138                 *** incompatible with the CDDL license.  You must rebuild
15139                 *** your kernel without this option." >&2;}
15140    { (exit 1); exit 1; }; }
15141
15142 else
15143   $as_echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15145
15146                 { $as_echo "$as_me:$LINENO: result: no" >&5
15147 $as_echo "no" >&6; }
15148
15149
15150
15151
15152 fi
15153
15154         rm -Rf build
15155
15156
15157
15158         fi
15159
15160         if test "$ZFS_META_LICENSE" = GPL; then
15161
15162 cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_GPL_ONLY_SYMBOLS 1
15164 _ACEOF
15165
15166         fi
15167
15168
15169         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
15170 $as_echo_n "checking block device operation prototypes... " >&6; }
15171
15172
15173 cat confdefs.h - <<_ACEOF >conftest.c
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179
15180
15181                 #include <linux/blkdev.h>
15182
15183 int
15184 main (void)
15185 {
15186
15187                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
15188                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
15189                 int (*blk_ioctl) (struct block_device *, fmode_t,
15190                                   unsigned, unsigned long) = NULL;
15191                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
15192                                          unsigned, unsigned long) = NULL;
15193                 struct block_device_operations blk_ops = {
15194                         .open           = blk_open,
15195                         .release        = blk_release,
15196                         .ioctl          = blk_ioctl,
15197                         .compat_ioctl   = blk_compat_ioctl,
15198                 };
15199
15200                 blk_ops.open(NULL, 0);
15201                 blk_ops.release(NULL, 0);
15202                 blk_ops.ioctl(NULL, 0, 0, 0);
15203                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
15204
15205   ;
15206   return 0;
15207 }
15208
15209 _ACEOF
15210
15211
15212         rm -Rf build && mkdir -p build
15213         echo "obj-m := conftest.o" >build/Makefile
15214         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216   (eval $ac_try) 2>&5
15217   ac_status=$?
15218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221   (eval $ac_try) 2>&5
15222   ac_status=$?
15223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); }; }; then
15225
15226                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
15227 $as_echo "struct block_device" >&6; }
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
15231 _ACEOF
15232
15233
15234 else
15235   $as_echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
15239 $as_echo "struct inode" >&6; }
15240
15241
15242
15243 fi
15244
15245         rm -Rf build
15246
15247
15248
15249         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15250 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15251
15252
15253 cat confdefs.h - <<_ACEOF >conftest.c
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259
15260
15261                 #include <linux/types.h>
15262
15263 int
15264 main (void)
15265 {
15266
15267                 fmode_t *ptr;
15268
15269   ;
15270   return 0;
15271 }
15272
15273 _ACEOF
15274
15275
15276         rm -Rf build && mkdir -p build
15277         echo "obj-m := conftest.o" >build/Makefile
15278         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280   (eval $ac_try) 2>&5
15281   ac_status=$?
15282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285   (eval $ac_try) 2>&5
15286   ac_status=$?
15287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); }; }; then
15289
15290                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15291 $as_echo "yes" >&6; }
15292
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_FMODE_T 1
15295 _ACEOF
15296
15297
15298 else
15299   $as_echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302                 { $as_echo "$as_me:$LINENO: result: no" >&5
15303 $as_echo "no" >&6; }
15304
15305
15306
15307 fi
15308
15309         rm -Rf build
15310
15311
15312
15313
15314         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
15315 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
15316
15317
15318 cat confdefs.h - <<_ACEOF >conftest.c
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324
15325
15326                 #include <linux/kobject.h>
15327
15328 int
15329 main (void)
15330 {
15331
15332                 int val;
15333                 val = KOBJ_NAME_LEN;
15334
15335   ;
15336   return 0;
15337 }
15338
15339 _ACEOF
15340
15341
15342         rm -Rf build && mkdir -p build
15343         echo "obj-m := conftest.o" >build/Makefile
15344         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346   (eval $ac_try) 2>&5
15347   ac_status=$?
15348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351   (eval $ac_try) 2>&5
15352   ac_status=$?
15353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; }; then
15355
15356                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15357 $as_echo "yes" >&6; }
15358
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_KOBJ_NAME_LEN 1
15361 _ACEOF
15362
15363
15364 else
15365   $as_echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15367
15368                 { $as_echo "$as_me:$LINENO: result: no" >&5
15369 $as_echo "no" >&6; }
15370
15371
15372
15373 fi
15374
15375         rm -Rf build
15376
15377
15378
15379
15380         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
15381 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
15382         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15383                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15384         rc=$?
15385         if test $rc -ne 0; then
15386                 export=0
15387                 for file in fs/block_dev.c; do
15388                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
15389                         rc=$?
15390                         if test $rc -eq 0; then
15391                                 export=1
15392                                 break;
15393                         fi
15394                 done
15395                 if test $export -eq 0; then
15396                         { $as_echo "$as_me:$LINENO: result: no" >&5
15397 $as_echo "no" >&6; }
15398
15399                 else
15400                         { $as_echo "$as_me:$LINENO: result: yes" >&5
15401 $as_echo "yes" >&6; }
15402
15403 cat >>confdefs.h <<\_ACEOF
15404 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15405 _ACEOF
15406
15407                 fi
15408         else
15409                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15410 $as_echo "yes" >&6; }
15411
15412 cat >>confdefs.h <<\_ACEOF
15413 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15414 _ACEOF
15415
15416         fi
15417
15418
15419
15420         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
15421 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15422
15423
15424 cat confdefs.h - <<_ACEOF >conftest.c
15425 /* confdefs.h.  */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h.  */
15430
15431
15432                 #include <linux/buffer_head.h>
15433
15434 int
15435 main (void)
15436 {
15437
15438                 struct block_device *bdev;
15439                 invalidate_bdev(bdev);
15440
15441   ;
15442   return 0;
15443 }
15444
15445 _ACEOF
15446
15447
15448         rm -Rf build && mkdir -p build
15449         echo "obj-m := conftest.o" >build/Makefile
15450         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457   (eval $ac_try) 2>&5
15458   ac_status=$?
15459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461
15462                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15463 $as_echo "yes" >&6; }
15464
15465 cat >>confdefs.h <<\_ACEOF
15466 #define HAVE_1ARG_INVALIDATE_BDEV 1
15467 _ACEOF
15468
15469
15470 else
15471   $as_echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474                 { $as_echo "$as_me:$LINENO: result: no" >&5
15475 $as_echo "no" >&6; }
15476
15477
15478
15479 fi
15480
15481         rm -Rf build
15482
15483
15484
15485
15486         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
15487 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15488
15489
15490 cat confdefs.h - <<_ACEOF >conftest.c
15491 /* confdefs.h.  */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h.  */
15496
15497
15498                 #include <linux/blkdev.h>
15499
15500 int
15501 main (void)
15502 {
15503
15504                 struct block_device *bdev = NULL;
15505                 bdev_logical_block_size(bdev);
15506
15507   ;
15508   return 0;
15509 }
15510
15511 _ACEOF
15512
15513
15514         rm -Rf build && mkdir -p build
15515         echo "obj-m := conftest.o" >build/Makefile
15516         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518   (eval $ac_try) 2>&5
15519   ac_status=$?
15520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523   (eval $ac_try) 2>&5
15524   ac_status=$?
15525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); }; }; then
15527
15528                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15529 $as_echo "yes" >&6; }
15530
15531 cat >>confdefs.h <<\_ACEOF
15532 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
15533 _ACEOF
15534
15535
15536 else
15537   $as_echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540                 { $as_echo "$as_me:$LINENO: result: no" >&5
15541 $as_echo "no" >&6; }
15542
15543
15544
15545 fi
15546
15547         rm -Rf build
15548
15549
15550
15551
15552         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
15553 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
15554         EXTRA_KCFLAGS="-Werror"
15555
15556
15557 cat confdefs.h - <<_ACEOF >conftest.c
15558 /* confdefs.h.  */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h.  */
15563
15564
15565                 #include <linux/bio.h>
15566
15567 int
15568 main (void)
15569 {
15570
15571                 struct bio bio;
15572                 (void)bio_empty_barrier(&bio);
15573
15574   ;
15575   return 0;
15576 }
15577
15578 _ACEOF
15579
15580
15581         rm -Rf build && mkdir -p build
15582         echo "obj-m := conftest.o" >build/Makefile
15583         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585   (eval $ac_try) 2>&5
15586   ac_status=$?
15587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590   (eval $ac_try) 2>&5
15591   ac_status=$?
15592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; }; then
15594
15595                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15596 $as_echo "yes" >&6; }
15597
15598 cat >>confdefs.h <<\_ACEOF
15599 #define HAVE_BIO_EMPTY_BARRIER 1
15600 _ACEOF
15601
15602
15603 else
15604   $as_echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607                 { $as_echo "$as_me:$LINENO: result: no" >&5
15608 $as_echo "no" >&6; }
15609
15610
15611
15612 fi
15613
15614         rm -Rf build
15615
15616
15617
15618
15619         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
15620 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
15621         tmp_flags="$EXTRA_KCFLAGS"
15622         EXTRA_KCFLAGS="-Werror"
15623
15624
15625 cat confdefs.h - <<_ACEOF >conftest.c
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631
15632
15633                 #include <linux/bio.h>
15634
15635 int
15636 main (void)
15637 {
15638
15639                 void (*wanted_end_io)(struct bio *, int) = NULL;
15640                 bio_end_io_t *local_end_io;
15641
15642                 local_end_io = wanted_end_io;
15643
15644   ;
15645   return 0;
15646 }
15647
15648 _ACEOF
15649
15650
15651         rm -Rf build && mkdir -p build
15652         echo "obj-m := conftest.o" >build/Makefile
15653         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655   (eval $ac_try) 2>&5
15656   ac_status=$?
15657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660   (eval $ac_try) 2>&5
15661   ac_status=$?
15662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; }; then
15664
15665                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15666 $as_echo "yes" >&6; }
15667
15668 cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_2ARGS_BIO_END_IO_T 1
15670 _ACEOF
15671
15672
15673 else
15674   $as_echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677                 { $as_echo "$as_me:$LINENO: result: no" >&5
15678 $as_echo "no" >&6; }
15679
15680
15681
15682 fi
15683
15684         rm -Rf build
15685
15686
15687         EXTRA_KCFLAGS="$tmp_flags"
15688
15689
15690         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
15691 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
15692
15693
15694 cat confdefs.h - <<_ACEOF >conftest.c
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700
15701
15702                 #include <linux/bio.h>
15703
15704 int
15705 main (void)
15706 {
15707
15708                 int flags;
15709                 flags = BIO_RW_SYNCIO;
15710
15711   ;
15712   return 0;
15713 }
15714
15715 _ACEOF
15716
15717
15718         rm -Rf build && mkdir -p build
15719         echo "obj-m := conftest.o" >build/Makefile
15720         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727   (eval $ac_try) 2>&5
15728   ac_status=$?
15729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; }; then
15731
15732                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15733 $as_echo "yes" >&6; }
15734
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_BIO_RW_SYNCIO 1
15737 _ACEOF
15738
15739
15740 else
15741   $as_echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744                 { $as_echo "$as_me:$LINENO: result: no" >&5
15745 $as_echo "no" >&6; }
15746
15747
15748
15749 fi
15750
15751         rm -Rf build
15752
15753
15754
15755
15756         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
15757 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
15758
15759
15760 cat confdefs.h - <<_ACEOF >conftest.c
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766
15767
15768                 #include <linux/blkdev.h>
15769
15770 int
15771 main (void)
15772 {
15773
15774                 struct request *req = NULL;
15775                 (void) blk_end_request(req, 0, 0);
15776
15777   ;
15778   return 0;
15779 }
15780
15781 _ACEOF
15782
15783
15784         rm -Rf build && mkdir -p build
15785         echo "obj-m := conftest.o" >build/Makefile
15786         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788   (eval $ac_try) 2>&5
15789   ac_status=$?
15790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793   (eval $ac_try) 2>&5
15794   ac_status=$?
15795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; }; then
15797
15798                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15799 $as_echo "yes" >&6; }
15800
15801 cat >>confdefs.h <<\_ACEOF
15802 #define HAVE_BLK_END_REQUEST 1
15803 _ACEOF
15804
15805
15806 else
15807   $as_echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810                 { $as_echo "$as_me:$LINENO: result: no" >&5
15811 $as_echo "no" >&6; }
15812
15813
15814
15815 fi
15816
15817         rm -Rf build
15818
15819
15820
15821         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
15822 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
15823
15824
15825 cat confdefs.h - <<_ACEOF >conftest.c
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831
15832
15833                 #include <linux/module.h>
15834                 #include <linux/blkdev.h>
15835
15836                 MODULE_LICENSE("CDDL");
15837
15838 int
15839 main (void)
15840 {
15841
15842                 struct request *req = NULL;
15843                 (void) blk_end_request(req, 0, 0);
15844
15845   ;
15846   return 0;
15847 }
15848
15849 _ACEOF
15850
15851
15852         rm -Rf build && mkdir -p build
15853         echo "obj-m := conftest.o" >build/Makefile
15854         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865
15866                 { $as_echo "$as_me:$LINENO: result: no" >&5
15867 $as_echo "no" >&6; }
15868
15869 else
15870   $as_echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15874 $as_echo "yes" >&6; }
15875
15876 cat >>confdefs.h <<\_ACEOF
15877 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
15878 _ACEOF
15879
15880
15881
15882
15883 fi
15884
15885         rm -Rf build
15886
15887
15888
15889
15890         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
15891 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
15892
15893
15894 cat confdefs.h - <<_ACEOF >conftest.c
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900
15901
15902                 #include <linux/blkdev.h>
15903
15904 int
15905 main (void)
15906 {
15907
15908                 struct request_queue *q = NULL;
15909                 (void) blk_fetch_request(q);
15910
15911   ;
15912   return 0;
15913 }
15914
15915 _ACEOF
15916
15917
15918         rm -Rf build && mkdir -p build
15919         echo "obj-m := conftest.o" >build/Makefile
15920         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927   (eval $ac_try) 2>&5
15928   ac_status=$?
15929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); }; }; then
15931
15932                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15933 $as_echo "yes" >&6; }
15934
15935 cat >>confdefs.h <<\_ACEOF
15936 #define HAVE_BLK_FETCH_REQUEST 1
15937 _ACEOF
15938
15939
15940 else
15941   $as_echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944                 { $as_echo "$as_me:$LINENO: result: no" >&5
15945 $as_echo "no" >&6; }
15946
15947
15948
15949 fi
15950
15951         rm -Rf build
15952
15953
15954
15955
15956         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
15957 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
15958
15959
15960 cat confdefs.h - <<_ACEOF >conftest.c
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966
15967
15968                 #include <linux/blkdev.h>
15969
15970 int
15971 main (void)
15972 {
15973
15974                 struct request_queue *q = NULL;
15975                 struct request *req = NULL;
15976                 blk_requeue_request(q, req);
15977
15978   ;
15979   return 0;
15980 }
15981
15982 _ACEOF
15983
15984
15985         rm -Rf build && mkdir -p build
15986         echo "obj-m := conftest.o" >build/Makefile
15987         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998
15999                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16000 $as_echo "yes" >&6; }
16001
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_BLK_REQUEUE_REQUEST 1
16004 _ACEOF
16005
16006
16007 else
16008   $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011                 { $as_echo "$as_me:$LINENO: result: no" >&5
16012 $as_echo "no" >&6; }
16013
16014
16015
16016 fi
16017
16018         rm -Rf build
16019
16020
16021
16022
16023         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
16024 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
16025
16026
16027 cat confdefs.h - <<_ACEOF >conftest.c
16028 /* confdefs.h.  */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h.  */
16033
16034
16035                 #include <linux/blkdev.h>
16036
16037 int
16038 main (void)
16039 {
16040
16041                 struct request *req = NULL;
16042                 (void) blk_rq_bytes(req);
16043
16044   ;
16045   return 0;
16046 }
16047
16048 _ACEOF
16049
16050
16051         rm -Rf build && mkdir -p build
16052         echo "obj-m := conftest.o" >build/Makefile
16053         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064
16065                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16066 $as_echo "yes" >&6; }
16067
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_BLK_RQ_BYTES 1
16070 _ACEOF
16071
16072
16073 else
16074   $as_echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077                 { $as_echo "$as_me:$LINENO: result: no" >&5
16078 $as_echo "no" >&6; }
16079
16080
16081
16082 fi
16083
16084         rm -Rf build
16085
16086
16087
16088         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
16089 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
16090
16091
16092 cat confdefs.h - <<_ACEOF >conftest.c
16093 /* confdefs.h.  */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h.  */
16098
16099
16100                 #include <linux/module.h>
16101                 #include <linux/blkdev.h>
16102
16103                 MODULE_LICENSE("CDDL");
16104
16105 int
16106 main (void)
16107 {
16108
16109                 struct request *req = NULL;
16110                 (void) blk_rq_bytes(req);
16111
16112   ;
16113   return 0;
16114 }
16115
16116 _ACEOF
16117
16118
16119         rm -Rf build && mkdir -p build
16120         echo "obj-m := conftest.o" >build/Makefile
16121         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128   (eval $ac_try) 2>&5
16129   ac_status=$?
16130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); }; }; then
16132
16133                 { $as_echo "$as_me:$LINENO: result: no" >&5
16134 $as_echo "no" >&6; }
16135
16136 else
16137   $as_echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16141 $as_echo "yes" >&6; }
16142
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
16145 _ACEOF
16146
16147
16148
16149
16150 fi
16151
16152         rm -Rf build
16153
16154
16155
16156
16157         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
16158 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
16159
16160
16161 cat confdefs.h - <<_ACEOF >conftest.c
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167
16168
16169                 #include <linux/blkdev.h>
16170
16171 int
16172 main (void)
16173 {
16174
16175                 struct request *req = NULL;
16176                 (void) blk_rq_pos(req);
16177
16178   ;
16179   return 0;
16180 }
16181
16182 _ACEOF
16183
16184
16185         rm -Rf build && mkdir -p build
16186         echo "obj-m := conftest.o" >build/Makefile
16187         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194   (eval $ac_try) 2>&5
16195   ac_status=$?
16196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198
16199                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16200 $as_echo "yes" >&6; }
16201
16202 cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_BLK_RQ_POS 1
16204 _ACEOF
16205
16206
16207 else
16208   $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211                 { $as_echo "$as_me:$LINENO: result: no" >&5
16212 $as_echo "no" >&6; }
16213
16214
16215
16216 fi
16217
16218         rm -Rf build
16219
16220
16221
16222
16223         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
16224 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
16225
16226
16227 cat confdefs.h - <<_ACEOF >conftest.c
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16233
16234
16235                 #include <linux/blkdev.h>
16236
16237 int
16238 main (void)
16239 {
16240
16241                 struct request *req = NULL;
16242                 (void) blk_rq_sectors(req);
16243
16244   ;
16245   return 0;
16246 }
16247
16248 _ACEOF
16249
16250
16251         rm -Rf build && mkdir -p build
16252         echo "obj-m := conftest.o" >build/Makefile
16253         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255   (eval $ac_try) 2>&5
16256   ac_status=$?
16257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264
16265                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16266 $as_echo "yes" >&6; }
16267
16268 cat >>confdefs.h <<\_ACEOF
16269 #define HAVE_BLK_RQ_SECTORS 1
16270 _ACEOF
16271
16272
16273 else
16274   $as_echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277                 { $as_echo "$as_me:$LINENO: result: no" >&5
16278 $as_echo "no" >&6; }
16279
16280
16281
16282 fi
16283
16284         rm -Rf build
16285
16286
16287
16288
16289         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
16290 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16291
16292
16293 cat confdefs.h - <<_ACEOF >conftest.c
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299
16300
16301                 #include <linux/blkdev.h>
16302
16303 int
16304 main (void)
16305 {
16306
16307                 struct gendisk *disk = NULL;
16308                 (void) get_disk_ro(disk);
16309
16310   ;
16311   return 0;
16312 }
16313
16314 _ACEOF
16315
16316
16317         rm -Rf build && mkdir -p build
16318         echo "obj-m := conftest.o" >build/Makefile
16319         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330
16331                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16332 $as_echo "yes" >&6; }
16333
16334 cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_GET_DISK_RO 1
16336 _ACEOF
16337
16338
16339 else
16340   $as_echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343                 { $as_echo "$as_me:$LINENO: result: no" >&5
16344 $as_echo "no" >&6; }
16345
16346
16347
16348 fi
16349
16350         rm -Rf build
16351
16352
16353
16354
16355         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
16356 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
16357
16358
16359 cat confdefs.h - <<_ACEOF >conftest.c
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365
16366
16367                 #include <linux/blkdev.h>
16368
16369 int
16370 main (void)
16371 {
16372
16373                 struct request *req = NULL;
16374                 (void) rq_is_sync(req);
16375
16376   ;
16377   return 0;
16378 }
16379
16380 _ACEOF
16381
16382
16383         rm -Rf build && mkdir -p build
16384         echo "obj-m := conftest.o" >build/Makefile
16385         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392   (eval $ac_try) 2>&5
16393   ac_status=$?
16394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; }; then
16396
16397                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16398 $as_echo "yes" >&6; }
16399
16400 cat >>confdefs.h <<\_ACEOF
16401 #define HAVE_RQ_IS_SYNC 1
16402 _ACEOF
16403
16404
16405 else
16406   $as_echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16408
16409                 { $as_echo "$as_me:$LINENO: result: no" >&5
16410 $as_echo "no" >&6; }
16411
16412
16413
16414 fi
16415
16416         rm -Rf build
16417
16418
16419
16420
16421         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
16422 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
16423
16424
16425 cat confdefs.h - <<_ACEOF >conftest.c
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431
16432
16433                 #include <linux/blkdev.h>
16434
16435 int
16436 main (void)
16437 {
16438
16439                 struct bio_vec *bv;
16440                 struct req_iterator iter;
16441                 struct request *req = NULL;
16442                 rq_for_each_segment(bv, req, iter) { }
16443
16444   ;
16445   return 0;
16446 }
16447
16448 _ACEOF
16449
16450
16451         rm -Rf build && mkdir -p build
16452         echo "obj-m := conftest.o" >build/Makefile
16453         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455   (eval $ac_try) 2>&5
16456   ac_status=$?
16457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460   (eval $ac_try) 2>&5
16461   ac_status=$?
16462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; }; then
16464
16465                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16466 $as_echo "yes" >&6; }
16467
16468 cat >>confdefs.h <<\_ACEOF
16469 #define HAVE_RQ_FOR_EACH_SEGMENT 1
16470 _ACEOF
16471
16472
16473 else
16474   $as_echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16476
16477                 { $as_echo "$as_me:$LINENO: result: no" >&5
16478 $as_echo "no" >&6; }
16479
16480
16481
16482 fi
16483
16484         rm -Rf build
16485
16486
16487
16488
16489         if test "$LINUX_OBJ" != "$LINUX"; then
16490                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16491         fi
16492
16493
16494
16495                         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16496         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
16497
16498
16499
16500
16501
16502         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16503 $as_echo_n "checking for target asm dir... " >&6; }
16504         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16505
16506         case $TARGET_ARCH in
16507         i386|x86_64)
16508                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16509                 ;;
16510         *)
16511                 TARGET_ASM_DIR=asm-generic
16512                 ;;
16513         esac
16514
16515
16516         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16517 $as_echo "$TARGET_ASM_DIR" >&6; }
16518
16519
16520         { $as_echo "$as_me:$LINENO: checking for sa_init in -lshare" >&5
16521 $as_echo_n "checking for sa_init in -lshare... " >&6; }
16522 if test "${ac_cv_lib_share_sa_init+set}" = set; then
16523   $as_echo_n "(cached) " >&6
16524 else
16525   ac_check_lib_save_LIBS=$LIBS
16526 LIBS="-lshare  $LIBS"
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h.  */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h.  */
16533
16534 /* Override any GCC internal prototype to avoid an error.
16535    Use char because int might match the return type of a GCC
16536    builtin and then its argument prototype would still apply.  */
16537 #ifdef __cplusplus
16538 extern "C"
16539 #endif
16540 char sa_init ();
16541 int
16542 main ()
16543 {
16544 return sa_init ();
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16556 $as_echo "$ac_try_echo") >&5
16557   (eval "$ac_link") 2>conftest.er1
16558   ac_status=$?
16559   grep -v '^ *+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } && {
16564          test -z "$ac_c_werror_flag" ||
16565          test ! -s conftest.err
16566        } && test -s conftest$ac_exeext && {
16567          test "$cross_compiling" = yes ||
16568          $as_test_x conftest$ac_exeext
16569        }; then
16570   ac_cv_lib_share_sa_init=yes
16571 else
16572   $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575         ac_cv_lib_share_sa_init=no
16576 fi
16577
16578 rm -rf conftest.dSYM
16579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16580       conftest$ac_exeext conftest.$ac_ext
16581 LIBS=$ac_check_lib_save_LIBS
16582 fi
16583 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_share_sa_init" >&5
16584 $as_echo "$ac_cv_lib_share_sa_init" >&6; }
16585 if test "x$ac_cv_lib_share_sa_init" = x""yes; then
16586
16587 cat >>confdefs.h <<\_ACEOF
16588 #define HAVE_LIBSHARE 1
16589 _ACEOF
16590
16591 fi
16592
16593
16594
16595         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16596 $as_echo_n "checking for ioctl()... " >&6; }
16597         cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h.  */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h.  */
16603 #include <unistd.h>
16604
16605 _ACEOF
16606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16607   $EGREP "ioctl" >/dev/null 2>&1; then
16608   is_unistd=yes
16609 else
16610   is_unistd=no
16611 fi
16612 rm -f conftest*
16613
16614         cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h.  */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h.  */
16620 #include <sys/ioctl.h>
16621
16622 _ACEOF
16623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16624   $EGREP "ioctl" >/dev/null 2>&1; then
16625   is_sys_ioctl=yes
16626 else
16627   is_sys_ioctl=no
16628 fi
16629 rm -f conftest*
16630
16631         cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637 #include <stropts.h>
16638
16639 _ACEOF
16640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16641   $EGREP "ioctl" >/dev/null 2>&1; then
16642   is_stropts=yes
16643 else
16644   is_stropts=no
16645 fi
16646 rm -f conftest*
16647
16648
16649         if test $is_unistd = yes; then
16650                 result=unistd.h
16651
16652 cat >>confdefs.h <<\_ACEOF
16653 #define HAVE_IOCTL_IN_UNISTD_H 1
16654 _ACEOF
16655
16656         else
16657
16658                 if test $is_sys_ioctl = yes; then
16659                         result=sys/ioctl.h
16660
16661 cat >>confdefs.h <<\_ACEOF
16662 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16663 _ACEOF
16664
16665                 elif test $is_stropts = yes; then
16666
16667 cat >>confdefs.h <<\_ACEOF
16668 #define HAVE_IOCTL_IN_STROPTS_H 1
16669 _ACEOF
16670
16671                 else
16672                         result=no
16673                 fi
16674         fi
16675
16676         if test $result = no; then
16677                 { $as_echo "$as_me:$LINENO: result: no" >&5
16678 $as_echo "no" >&6; }
16679                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16680 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16681    { (exit 1); exit 1; }; }
16682         else
16683                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16684 $as_echo "yes" >&6; }
16685         fi
16686
16687
16688         ZLIB=
16689
16690         if test "${ac_cv_header_zlib_h+set}" = set; then
16691   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16692 $as_echo_n "checking for zlib.h... " >&6; }
16693 if test "${ac_cv_header_zlib_h+set}" = set; then
16694   $as_echo_n "(cached) " >&6
16695 fi
16696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16697 $as_echo "$ac_cv_header_zlib_h" >&6; }
16698 else
16699   # Is the header compilable?
16700 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16701 $as_echo_n "checking zlib.h usability... " >&6; }
16702 cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708 $ac_includes_default
16709 #include <zlib.h>
16710 _ACEOF
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715   *) ac_try_echo=$ac_try;;
16716 esac
16717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16718 $as_echo "$ac_try_echo") >&5
16719   (eval "$ac_compile") 2>conftest.er1
16720   ac_status=$?
16721   grep -v '^ *+' conftest.er1 >conftest.err
16722   rm -f conftest.er1
16723   cat conftest.err >&5
16724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } && {
16726          test -z "$ac_c_werror_flag" ||
16727          test ! -s conftest.err
16728        } && test -s conftest.$ac_objext; then
16729   ac_header_compiler=yes
16730 else
16731   $as_echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734         ac_header_compiler=no
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16739 $as_echo "$ac_header_compiler" >&6; }
16740
16741 # Is the header present?
16742 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16743 $as_echo_n "checking zlib.h presence... " >&6; }
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 #include <zlib.h>
16751 _ACEOF
16752 if { (ac_try="$ac_cpp conftest.$ac_ext"
16753 case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } >/dev/null && {
16766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16767          test ! -s conftest.err
16768        }; then
16769   ac_header_preproc=yes
16770 else
16771   $as_echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774   ac_header_preproc=no
16775 fi
16776
16777 rm -f conftest.err conftest.$ac_ext
16778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16779 $as_echo "$ac_header_preproc" >&6; }
16780
16781 # So?  What about this header?
16782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16783   yes:no: )
16784     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16785 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16786     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
16787 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
16788     ac_header_preproc=yes
16789     ;;
16790   no:yes:* )
16791     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16792 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16793     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
16794 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
16795     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16796 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16797     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
16798 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16799     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16800 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
16801     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16802 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
16803
16804     ;;
16805 esac
16806 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16807 $as_echo_n "checking for zlib.h... " >&6; }
16808 if test "${ac_cv_header_zlib_h+set}" = set; then
16809   $as_echo_n "(cached) " >&6
16810 else
16811   ac_cv_header_zlib_h=$ac_header_preproc
16812 fi
16813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16814 $as_echo "$ac_cv_header_zlib_h" >&6; }
16815
16816 fi
16817 if test "x$ac_cv_header_zlib_h" = x""yes; then
16818   :
16819 else
16820   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16822 { { $as_echo "$as_me:$LINENO: error:
16823         *** zlib.h missing, zlib-devel package required
16824 See \`config.log' for more details." >&5
16825 $as_echo "$as_me: error:
16826         *** zlib.h missing, zlib-devel package required
16827 See \`config.log' for more details." >&2;}
16828    { (exit 1); exit 1; }; }; }
16829 fi
16830
16831
16832
16833
16834 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
16835 $as_echo_n "checking for compress2 in -lz... " >&6; }
16836 if test "${ac_cv_lib_z_compress2+set}" = set; then
16837   $as_echo_n "(cached) " >&6
16838 else
16839   ac_check_lib_save_LIBS=$LIBS
16840 LIBS="-lz  $LIBS"
16841 cat >conftest.$ac_ext <<_ACEOF
16842 /* confdefs.h.  */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h.  */
16847
16848 /* Override any GCC internal prototype to avoid an error.
16849    Use char because int might match the return type of a GCC
16850    builtin and then its argument prototype would still apply.  */
16851 #ifdef __cplusplus
16852 extern "C"
16853 #endif
16854 char compress2 ();
16855 int
16856 main ()
16857 {
16858 return compress2 ();
16859   ;
16860   return 0;
16861 }
16862 _ACEOF
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (ac_try="$ac_link"
16865 case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16870 $as_echo "$ac_try_echo") >&5
16871   (eval "$ac_link") 2>conftest.er1
16872   ac_status=$?
16873   grep -v '^ *+' conftest.er1 >conftest.err
16874   rm -f conftest.er1
16875   cat conftest.err >&5
16876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); } && {
16878          test -z "$ac_c_werror_flag" ||
16879          test ! -s conftest.err
16880        } && test -s conftest$ac_exeext && {
16881          test "$cross_compiling" = yes ||
16882          $as_test_x conftest$ac_exeext
16883        }; then
16884   ac_cv_lib_z_compress2=yes
16885 else
16886   $as_echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889         ac_cv_lib_z_compress2=no
16890 fi
16891
16892 rm -rf conftest.dSYM
16893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16894       conftest$ac_exeext conftest.$ac_ext
16895 LIBS=$ac_check_lib_save_LIBS
16896 fi
16897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
16898 $as_echo "$ac_cv_lib_z_compress2" >&6; }
16899 if test "x$ac_cv_lib_z_compress2" = x""yes; then
16900   cat >>confdefs.h <<_ACEOF
16901 #define HAVE_LIBZ 1
16902 _ACEOF
16903
16904   LIBS="-lz $LIBS"
16905
16906 else
16907   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16909 { { $as_echo "$as_me:$LINENO: error:
16910         *** compress2() missing, zlib-devel package required
16911 See \`config.log' for more details." >&5
16912 $as_echo "$as_me: error:
16913         *** compress2() missing, zlib-devel package required
16914 See \`config.log' for more details." >&2;}
16915    { (exit 1); exit 1; }; }; }
16916 fi
16917
16918
16919
16920 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
16921 $as_echo_n "checking for uncompress in -lz... " >&6; }
16922 if test "${ac_cv_lib_z_uncompress+set}" = set; then
16923   $as_echo_n "(cached) " >&6
16924 else
16925   ac_check_lib_save_LIBS=$LIBS
16926 LIBS="-lz  $LIBS"
16927 cat >conftest.$ac_ext <<_ACEOF
16928 /* confdefs.h.  */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h.  */
16933
16934 /* Override any GCC internal prototype to avoid an error.
16935    Use char because int might match the return type of a GCC
16936    builtin and then its argument prototype would still apply.  */
16937 #ifdef __cplusplus
16938 extern "C"
16939 #endif
16940 char uncompress ();
16941 int
16942 main ()
16943 {
16944 return uncompress ();
16945   ;
16946   return 0;
16947 }
16948 _ACEOF
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957   (eval "$ac_link") 2>conftest.er1
16958   ac_status=$?
16959   grep -v '^ *+' conftest.er1 >conftest.err
16960   rm -f conftest.er1
16961   cat conftest.err >&5
16962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); } && {
16964          test -z "$ac_c_werror_flag" ||
16965          test ! -s conftest.err
16966        } && test -s conftest$ac_exeext && {
16967          test "$cross_compiling" = yes ||
16968          $as_test_x conftest$ac_exeext
16969        }; then
16970   ac_cv_lib_z_uncompress=yes
16971 else
16972   $as_echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975         ac_cv_lib_z_uncompress=no
16976 fi
16977
16978 rm -rf conftest.dSYM
16979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16980       conftest$ac_exeext conftest.$ac_ext
16981 LIBS=$ac_check_lib_save_LIBS
16982 fi
16983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
16984 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16985 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
16986   cat >>confdefs.h <<_ACEOF
16987 #define HAVE_LIBZ 1
16988 _ACEOF
16989
16990   LIBS="-lz $LIBS"
16991
16992 else
16993   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16995 { { $as_echo "$as_me:$LINENO: error:
16996         *** uncompress() missing, zlib-devel package required
16997 See \`config.log' for more details." >&5
16998 $as_echo "$as_me: error:
16999         *** uncompress() missing, zlib-devel package required
17000 See \`config.log' for more details." >&2;}
17001    { (exit 1); exit 1; }; }; }
17002 fi
17003
17004
17005
17006 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
17007 $as_echo_n "checking for crc32 in -lz... " >&6; }
17008 if test "${ac_cv_lib_z_crc32+set}" = set; then
17009   $as_echo_n "(cached) " >&6
17010 else
17011   ac_check_lib_save_LIBS=$LIBS
17012 LIBS="-lz  $LIBS"
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h.  */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h.  */
17019
17020 /* Override any GCC internal prototype to avoid an error.
17021    Use char because int might match the return type of a GCC
17022    builtin and then its argument prototype would still apply.  */
17023 #ifdef __cplusplus
17024 extern "C"
17025 #endif
17026 char crc32 ();
17027 int
17028 main ()
17029 {
17030 return crc32 ();
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext conftest$ac_exeext
17036 if { (ac_try="$ac_link"
17037 case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043   (eval "$ac_link") 2>conftest.er1
17044   ac_status=$?
17045   grep -v '^ *+' conftest.er1 >conftest.err
17046   rm -f conftest.er1
17047   cat conftest.err >&5
17048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } && {
17050          test -z "$ac_c_werror_flag" ||
17051          test ! -s conftest.err
17052        } && test -s conftest$ac_exeext && {
17053          test "$cross_compiling" = yes ||
17054          $as_test_x conftest$ac_exeext
17055        }; then
17056   ac_cv_lib_z_crc32=yes
17057 else
17058   $as_echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061         ac_cv_lib_z_crc32=no
17062 fi
17063
17064 rm -rf conftest.dSYM
17065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17066       conftest$ac_exeext conftest.$ac_ext
17067 LIBS=$ac_check_lib_save_LIBS
17068 fi
17069 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
17070 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17071 if test "x$ac_cv_lib_z_crc32" = x""yes; then
17072   cat >>confdefs.h <<_ACEOF
17073 #define HAVE_LIBZ 1
17074 _ACEOF
17075
17076   LIBS="-lz $LIBS"
17077
17078 else
17079   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17081 { { $as_echo "$as_me:$LINENO: error:
17082         *** crc32() missing, zlib-devel package required
17083 See \`config.log' for more details." >&5
17084 $as_echo "$as_me: error:
17085         *** crc32() missing, zlib-devel package required
17086 See \`config.log' for more details." >&2;}
17087    { (exit 1); exit 1; }; }; }
17088 fi
17089
17090
17091         ZLIB="-lz"
17092
17093
17094 cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_ZLIB 1
17096 _ACEOF
17097
17098
17099
17100         LIBUUID=
17101
17102         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17103   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17104 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17105 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17106   $as_echo_n "(cached) " >&6
17107 fi
17108 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17109 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17110 else
17111   # Is the header compilable?
17112 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17113 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
17114 cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120 $ac_includes_default
17121 #include <uuid/uuid.h>
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17130 $as_echo "$ac_try_echo") >&5
17131   (eval "$ac_compile") 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } && {
17138          test -z "$ac_c_werror_flag" ||
17139          test ! -s conftest.err
17140        } && test -s conftest.$ac_objext; then
17141   ac_header_compiler=yes
17142 else
17143   $as_echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146         ac_header_compiler=no
17147 fi
17148
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17151 $as_echo "$ac_header_compiler" >&6; }
17152
17153 # Is the header present?
17154 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17155 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h.  */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h.  */
17162 #include <uuid/uuid.h>
17163 _ACEOF
17164 if { (ac_try="$ac_cpp conftest.$ac_ext"
17165 case "(($ac_try" in
17166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167   *) ac_try_echo=$ac_try;;
17168 esac
17169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17170 $as_echo "$ac_try_echo") >&5
17171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17172   ac_status=$?
17173   grep -v '^ *+' conftest.er1 >conftest.err
17174   rm -f conftest.er1
17175   cat conftest.err >&5
17176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } >/dev/null && {
17178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17179          test ! -s conftest.err
17180        }; then
17181   ac_header_preproc=yes
17182 else
17183   $as_echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186   ac_header_preproc=no
17187 fi
17188
17189 rm -f conftest.err conftest.$ac_ext
17190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17191 $as_echo "$ac_header_preproc" >&6; }
17192
17193 # So?  What about this header?
17194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17195   yes:no: )
17196     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17197 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17198     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17199 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
17200     ac_header_preproc=yes
17201     ;;
17202   no:yes:* )
17203     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17204 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17205     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
17206 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
17207     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17208 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17209     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
17210 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17211     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17212 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17213     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17214 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17215
17216     ;;
17217 esac
17218 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17219 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17220 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17221   $as_echo_n "(cached) " >&6
17222 else
17223   ac_cv_header_uuid_uuid_h=$ac_header_preproc
17224 fi
17225 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17226 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17227
17228 fi
17229 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17230   :
17231 else
17232   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17234 { { $as_echo "$as_me:$LINENO: error:
17235         *** uuid/uuid.h missing, libuuid-devel package required
17236 See \`config.log' for more details." >&5
17237 $as_echo "$as_me: error:
17238         *** uuid/uuid.h missing, libuuid-devel package required
17239 See \`config.log' for more details." >&2;}
17240    { (exit 1); exit 1; }; }; }
17241 fi
17242
17243
17244
17245
17246 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17247 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17248 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17249   $as_echo_n "(cached) " >&6
17250 else
17251   ac_check_lib_save_LIBS=$LIBS
17252 LIBS="-luuid  $LIBS"
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259
17260 /* Override any GCC internal prototype to avoid an error.
17261    Use char because int might match the return type of a GCC
17262    builtin and then its argument prototype would still apply.  */
17263 #ifdef __cplusplus
17264 extern "C"
17265 #endif
17266 char uuid_generate ();
17267 int
17268 main ()
17269 {
17270 return uuid_generate ();
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 rm -f conftest.$ac_objext conftest$ac_exeext
17276 if { (ac_try="$ac_link"
17277 case "(($ac_try" in
17278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279   *) ac_try_echo=$ac_try;;
17280 esac
17281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283   (eval "$ac_link") 2>conftest.er1
17284   ac_status=$?
17285   grep -v '^ *+' conftest.er1 >conftest.err
17286   rm -f conftest.er1
17287   cat conftest.err >&5
17288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); } && {
17290          test -z "$ac_c_werror_flag" ||
17291          test ! -s conftest.err
17292        } && test -s conftest$ac_exeext && {
17293          test "$cross_compiling" = yes ||
17294          $as_test_x conftest$ac_exeext
17295        }; then
17296   ac_cv_lib_uuid_uuid_generate=yes
17297 else
17298   $as_echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301         ac_cv_lib_uuid_uuid_generate=no
17302 fi
17303
17304 rm -rf conftest.dSYM
17305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17306       conftest$ac_exeext conftest.$ac_ext
17307 LIBS=$ac_check_lib_save_LIBS
17308 fi
17309 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
17310 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17311 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17312   cat >>confdefs.h <<_ACEOF
17313 #define HAVE_LIBUUID 1
17314 _ACEOF
17315
17316   LIBS="-luuid $LIBS"
17317
17318 else
17319   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17321 { { $as_echo "$as_me:$LINENO: error:
17322         *** uuid_generate() missing, libuuid-devel package required
17323 See \`config.log' for more details." >&5
17324 $as_echo "$as_me: error:
17325         *** uuid_generate() missing, libuuid-devel package required
17326 See \`config.log' for more details." >&2;}
17327    { (exit 1); exit 1; }; }; }
17328 fi
17329
17330
17331
17332 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17333 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17334 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17335   $as_echo_n "(cached) " >&6
17336 else
17337   ac_check_lib_save_LIBS=$LIBS
17338 LIBS="-luuid  $LIBS"
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345
17346 /* Override any GCC internal prototype to avoid an error.
17347    Use char because int might match the return type of a GCC
17348    builtin and then its argument prototype would still apply.  */
17349 #ifdef __cplusplus
17350 extern "C"
17351 #endif
17352 char uuid_is_null ();
17353 int
17354 main ()
17355 {
17356 return uuid_is_null ();
17357   ;
17358   return 0;
17359 }
17360 _ACEOF
17361 rm -f conftest.$ac_objext conftest$ac_exeext
17362 if { (ac_try="$ac_link"
17363 case "(($ac_try" in
17364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365   *) ac_try_echo=$ac_try;;
17366 esac
17367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17368 $as_echo "$ac_try_echo") >&5
17369   (eval "$ac_link") 2>conftest.er1
17370   ac_status=$?
17371   grep -v '^ *+' conftest.er1 >conftest.err
17372   rm -f conftest.er1
17373   cat conftest.err >&5
17374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } && {
17376          test -z "$ac_c_werror_flag" ||
17377          test ! -s conftest.err
17378        } && test -s conftest$ac_exeext && {
17379          test "$cross_compiling" = yes ||
17380          $as_test_x conftest$ac_exeext
17381        }; then
17382   ac_cv_lib_uuid_uuid_is_null=yes
17383 else
17384   $as_echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387         ac_cv_lib_uuid_uuid_is_null=no
17388 fi
17389
17390 rm -rf conftest.dSYM
17391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17392       conftest$ac_exeext conftest.$ac_ext
17393 LIBS=$ac_check_lib_save_LIBS
17394 fi
17395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17396 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17397 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17398   cat >>confdefs.h <<_ACEOF
17399 #define HAVE_LIBUUID 1
17400 _ACEOF
17401
17402   LIBS="-luuid $LIBS"
17403
17404 else
17405   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17407 { { $as_echo "$as_me:$LINENO: error:
17408         *** uuid_is_null() missing, libuuid-devel package required
17409 See \`config.log' for more details." >&5
17410 $as_echo "$as_me: error:
17411         *** uuid_is_null() missing, libuuid-devel package required
17412 See \`config.log' for more details." >&2;}
17413    { (exit 1); exit 1; }; }; }
17414 fi
17415
17416
17417         LIBUUID="-luuid"
17418
17419
17420 cat >>confdefs.h <<\_ACEOF
17421 #define HAVE_LIBUUID 1
17422 _ACEOF
17423
17424
17425
17426
17427 # Check whether --with-blkid was given.
17428 if test "${with_blkid+set}" = set; then
17429   withval=$with_blkid;
17430 else
17431   with_blkid=check
17432 fi
17433
17434
17435         LIBBLKID=
17436         if test "x$with_blkid" != xno; then
17437
17438                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17439 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17440 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17441   $as_echo_n "(cached) " >&6
17442 else
17443   ac_check_lib_save_LIBS=$LIBS
17444 LIBS="-lblkid  $LIBS"
17445 cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451
17452 /* Override any GCC internal prototype to avoid an error.
17453    Use char because int might match the return type of a GCC
17454    builtin and then its argument prototype would still apply.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 char blkid_get_cache ();
17459 int
17460 main ()
17461 {
17462 return blkid_get_cache ();
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17474 $as_echo "$ac_try_echo") >&5
17475   (eval "$ac_link") 2>conftest.er1
17476   ac_status=$?
17477   grep -v '^ *+' conftest.er1 >conftest.err
17478   rm -f conftest.er1
17479   cat conftest.err >&5
17480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); } && {
17482          test -z "$ac_c_werror_flag" ||
17483          test ! -s conftest.err
17484        } && test -s conftest$ac_exeext && {
17485          test "$cross_compiling" = yes ||
17486          $as_test_x conftest$ac_exeext
17487        }; then
17488   ac_cv_lib_blkid_blkid_get_cache=yes
17489 else
17490   $as_echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493         ac_cv_lib_blkid_blkid_get_cache=no
17494 fi
17495
17496 rm -rf conftest.dSYM
17497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17498       conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17500 fi
17501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17502 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17503 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17504
17505                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17506 $as_echo_n "checking for blkid zfs support... " >&6; }
17507
17508                         ZFS_DEV=`mktemp`
17509                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17510                                 >/dev/null 2>/dev/null
17511                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17512                                 dd of=$ZFS_DEV bs=1k count=8 \
17513                                 seek=132 conv=notrunc &>/dev/null \
17514                                 >/dev/null 2>/dev/null
17515
17516                         saved_LDFLAGS="$LDFLAGS"
17517                         LDFLAGS="-lblkid"
17518
17519                         if test "$cross_compiling" = yes; then
17520   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17522 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17523 See \`config.log' for more details." >&5
17524 $as_echo "$as_me: error: cannot run test program while cross compiling
17525 See \`config.log' for more details." >&2;}
17526    { (exit 1); exit 1; }; }; }
17527 else
17528   cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534
17535                                 #include <stdio.h>
17536                                 #include <blkid/blkid.h>
17537
17538 int
17539 main ()
17540 {
17541
17542                                 blkid_cache cache;
17543                                 char *value;
17544
17545                                 if (blkid_get_cache(&cache, NULL) < 0)
17546                                         return 1;
17547
17548                                 value = blkid_get_tag_value(cache, "TYPE",
17549                                                             "$ZFS_DEV");
17550                                 if (!value) {
17551                                         blkid_put_cache(cache);
17552                                         return 2;
17553                                 }
17554
17555                                 if (strcmp(value, "zfs")) {
17556                                         free(value);
17557                                         blkid_put_cache(cache);
17558                                         return 3;
17559                                 }
17560
17561                                 free(value);
17562                                 blkid_put_cache(cache);
17563
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 rm -f conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17575 $as_echo "$ac_try_echo") >&5
17576   (eval "$ac_link") 2>&5
17577   ac_status=$?
17578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17580   { (case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17585 $as_echo "$ac_try_echo") >&5
17586   (eval "$ac_try") 2>&5
17587   ac_status=$?
17588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; }; then
17590
17591                                 rm -f $ZFS_DEV
17592                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17593 $as_echo "yes" >&6; }
17594                                 LIBBLKID="-lblkid"
17595
17596
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_LIBBLKID 1
17599 _ACEOF
17600
17601
17602 else
17603   $as_echo "$as_me: program exited with status $ac_status" >&5
17604 $as_echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 ( exit $ac_status )
17608
17609                                 rm -f $ZFS_DEV
17610                                 { $as_echo "$as_me:$LINENO: result: no" >&5
17611 $as_echo "no" >&6; }
17612                                 if test "x$with_blkid" != xcheck; then
17613   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17615 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17616 See \`config.log' for more details." >&5
17617 $as_echo "$as_me: error: --with-blkid given but unavailable
17618 See \`config.log' for more details." >&2;}
17619    { (exit 1); exit 1; }; }; }
17620 fi
17621
17622
17623 fi
17624 rm -rf conftest.dSYM
17625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17626 fi
17627
17628
17629
17630                         LDFLAGS="$saved_LDFLAGS"
17631
17632 else
17633
17634                         if test "x$with_blkid" != xcheck; then
17635   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17637 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17638 See \`config.log' for more details." >&5
17639 $as_echo "$as_me: error: --with-blkid given but unavailable
17640 See \`config.log' for more details." >&2;}
17641    { (exit 1); exit 1; }; }; }
17642 fi
17643
17644
17645
17646 fi
17647
17648
17649 fi
17650
17651
17652
17653         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17654 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17655
17656         saved_flags="$CFLAGS"
17657         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17658
17659         if test "$cross_compiling" = yes; then
17660   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17662 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17663 See \`config.log' for more details." >&5
17664 $as_echo "$as_me: error: cannot run test program while cross compiling
17665 See \`config.log' for more details." >&2;}
17666    { (exit 1); exit 1; }; }; }
17667 else
17668   cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h.  */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h.  */
17674
17675 int
17676 main ()
17677 {
17678
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest$ac_exeext
17684 if { (ac_try="$ac_link"
17685 case "(($ac_try" in
17686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687   *) ac_try_echo=$ac_try;;
17688 esac
17689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17690 $as_echo "$ac_try_echo") >&5
17691   (eval "$ac_link") 2>&5
17692   ac_status=$?
17693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17695   { (case "(($ac_try" in
17696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697   *) ac_try_echo=$ac_try;;
17698 esac
17699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17700 $as_echo "$ac_try_echo") >&5
17701   (eval "$ac_try") 2>&5
17702   ac_status=$?
17703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705
17706                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17707                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17708 $as_echo "yes" >&6; }
17709
17710 else
17711   $as_echo "$as_me: program exited with status $ac_status" >&5
17712 $as_echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715 ( exit $ac_status )
17716
17717                 FRAME_LARGER_THAN=
17718                 { $as_echo "$as_me:$LINENO: result: no" >&5
17719 $as_echo "no" >&6; }
17720
17721 fi
17722 rm -rf conftest.dSYM
17723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17724 fi
17725
17726
17727
17728         CFLAGS="$saved_flags"
17729
17730
17731
17732
17733         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17734 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
17735
17736         saved_CFLAGS="$CFLAGS"
17737         CFLAGS="-fstack-check"
17738         saved_LDFLAGS="$LDFLAGS"
17739         LDFLAGS="-lpthread"
17740
17741         if test "$cross_compiling" = yes; then
17742   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17744 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17745 See \`config.log' for more details." >&5
17746 $as_echo "$as_me: error: cannot run test program while cross compiling
17747 See \`config.log' for more details." >&2;}
17748    { (exit 1); exit 1; }; }; }
17749 else
17750   cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h.  */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h.  */
17756
17757                 #include <pthread.h>
17758                 #include <sys/resource.h>
17759                 #include <unistd.h>
17760                 #include <bits/local_lim.h>
17761
17762                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17763                 #define STACK_SIZE 8192
17764                 #define BUFSIZE 4096
17765
17766                 void * func(void *arg)
17767                 {
17768                         char buf[BUFSIZE];
17769                 }
17770
17771 int
17772 main ()
17773 {
17774
17775                 pthread_t tid;
17776                 pthread_attr_t attr;
17777                 struct rlimit l;
17778
17779                 l.rlim_cur = 0;
17780                 l.rlim_max = 0;
17781                 setrlimit(RLIMIT_CORE, &l);
17782                 pthread_attr_init(&attr);
17783                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17784                 pthread_attr_setguardsize(&attr, PAGESIZE);
17785                 pthread_create(&tid, &attr, func, NULL);
17786                 pthread_join(tid, NULL);
17787
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17799 $as_echo "$ac_try_echo") >&5
17800   (eval "$ac_link") 2>&5
17801   ac_status=$?
17802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17804   { (case "(($ac_try" in
17805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806   *) ac_try_echo=$ac_try;;
17807 esac
17808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17809 $as_echo "$ac_try_echo") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; }; then
17814
17815                 { $as_echo "$as_me:$LINENO: result: no" >&5
17816 $as_echo "no" >&6; }
17817
17818 else
17819   $as_echo "$as_me: program exited with status $ac_status" >&5
17820 $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 ( exit $ac_status )
17824
17825
17826 cat >>confdefs.h <<\_ACEOF
17827 #define NPTL_GUARD_WITHIN_STACK 1
17828 _ACEOF
17829
17830                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17831 $as_echo "yes" >&6; }
17832
17833 fi
17834 rm -rf conftest.dSYM
17835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17836 fi
17837
17838
17839         CFLAGS="$saved_CFLAGS"
17840         LDFLAGS="$saved_LDFLAGS"
17841
17842    ;;
17843                 srpm)                        ;;
17844                 *)
17845                 { $as_echo "$as_me:$LINENO: result: Error!" >&5
17846 $as_echo "Error!" >&6; }
17847                 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
17848                               user kernel|user|all|srpm" >&5
17849 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
17850                               user kernel|user|all|srpm" >&2;}
17851    { (exit 1); exit 1; }; } ;;
17852         esac
17853
17854          if test "$ZFS_CONFIG" = user ||
17855                        test "$ZFS_CONFIG" = all; then
17856   CONFIG_USER_TRUE=
17857   CONFIG_USER_FALSE='#'
17858 else
17859   CONFIG_USER_TRUE='#'
17860   CONFIG_USER_FALSE=
17861 fi
17862
17863          if test "$ZFS_CONFIG" = kernel ||
17864                        test "$ZFS_CONFIG" = all; then
17865   CONFIG_KERNEL_TRUE=
17866   CONFIG_KERNEL_FALSE='#'
17867 else
17868   CONFIG_KERNEL_TRUE='#'
17869   CONFIG_KERNEL_FALSE=
17870 fi
17871
17872
17873
17874         { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
17875 $as_echo_n "checking whether debugging is enabled... " >&6; }
17876         # Check whether --enable-debug was given.
17877 if test "${enable_debug+set}" = set; then
17878   enableval=$enable_debug;
17879 else
17880   enable_debug=no
17881 fi
17882
17883
17884         if test "x$enable_debug" = xyes; then
17885
17886                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
17887                 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
17888                 DEBUG_CFLAGS="-DDEBUG -Werror"
17889                 DEBUG_STACKFLAGS="-fstack-check"
17890
17891 else
17892
17893                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
17894                 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
17895                 DEBUG_CFLAGS="-DNDEBUG"
17896                 DEBUG_STACKFLAGS=""
17897
17898 fi
17899
17900
17901
17902
17903         { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
17904 $as_echo "$enable_debug" >&6; }
17905
17906
17907 ac_config_files="$ac_config_files Makefile etc/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zpool_id/Makefile cmd/zpool_layout/Makefile cmd/ztest/Makefile cmd/zpios/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/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"
17908
17909
17910 cat >confcache <<\_ACEOF
17911 # This file is a shell script that caches the results of configure
17912 # tests run on this system so they can be shared between configure
17913 # scripts and configure runs, see configure's option --config-cache.
17914 # It is not useful on other systems.  If it contains results you don't
17915 # want to keep, you may remove or edit it.
17916 #
17917 # config.status only pays attention to the cache file if you give it
17918 # the --recheck option to rerun configure.
17919 #
17920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17922 # following values.
17923
17924 _ACEOF
17925
17926 # The following way of writing the cache mishandles newlines in values,
17927 # but we know of no workaround that is simple, portable, and efficient.
17928 # So, we kill variables containing newlines.
17929 # Ultrix sh set writes to stderr and can't be redirected directly,
17930 # and sets the high bit in the cache file unless we assign to the vars.
17931 (
17932   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17933     eval ac_val=\$$ac_var
17934     case $ac_val in #(
17935     *${as_nl}*)
17936       case $ac_var in #(
17937       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17939       esac
17940       case $ac_var in #(
17941       _ | IFS | as_nl) ;; #(
17942       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17943       *) $as_unset $ac_var ;;
17944       esac ;;
17945     esac
17946   done
17947
17948   (set) 2>&1 |
17949     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17950     *${as_nl}ac_space=\ *)
17951       # `set' does not quote correctly, so add quotes (double-quote
17952       # substitution turns \\\\ into \\, and sed turns \\ into \).
17953       sed -n \
17954         "s/'/'\\\\''/g;
17955           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17956       ;; #(
17957     *)
17958       # `set' quotes correctly as required by POSIX, so do not add quotes.
17959       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17960       ;;
17961     esac |
17962     sort
17963 ) |
17964   sed '
17965      /^ac_cv_env_/b end
17966      t clear
17967      :clear
17968      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17969      t end
17970      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17971      :end' >>confcache
17972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17973   if test -w "$cache_file"; then
17974     test "x$cache_file" != "x/dev/null" &&
17975       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17976 $as_echo "$as_me: updating cache $cache_file" >&6;}
17977     cat confcache >$cache_file
17978   else
17979     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17981   fi
17982 fi
17983 rm -f confcache
17984
17985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17986 # Let make expand exec_prefix.
17987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17988
17989 DEFS=-DHAVE_CONFIG_H
17990
17991 ac_libobjs=
17992 ac_ltlibobjs=
17993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17994   # 1. Remove the extension, and $U if already installed.
17995   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17996   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17997   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17998   #    will be set to the directory where LIBOBJS objects are built.
17999   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18000   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18001 done
18002 LIBOBJS=$ac_libobjs
18003
18004 LTLIBOBJS=$ac_ltlibobjs
18005
18006
18007 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18008   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18009 Usually this means the macro was only invoked conditionally." >&5
18010 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18011 Usually this means the macro was only invoked conditionally." >&2;}
18012    { (exit 1); exit 1; }; }
18013 fi
18014  if test -n "$EXEEXT"; then
18015   am__EXEEXT_TRUE=
18016   am__EXEEXT_FALSE='#'
18017 else
18018   am__EXEEXT_TRUE='#'
18019   am__EXEEXT_FALSE=
18020 fi
18021
18022 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18023   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18024 Usually this means the macro was only invoked conditionally." >&5
18025 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18026 Usually this means the macro was only invoked conditionally." >&2;}
18027    { (exit 1); exit 1; }; }
18028 fi
18029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18030   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18031 Usually this means the macro was only invoked conditionally." >&5
18032 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18033 Usually this means the macro was only invoked conditionally." >&2;}
18034    { (exit 1); exit 1; }; }
18035 fi
18036 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18037   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
18038 Usually this means the macro was only invoked conditionally." >&5
18039 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
18040 Usually this means the macro was only invoked conditionally." >&2;}
18041    { (exit 1); exit 1; }; }
18042 fi
18043 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18044   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18045 Usually this means the macro was only invoked conditionally." >&5
18046 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18047 Usually this means the macro was only invoked conditionally." >&2;}
18048    { (exit 1); exit 1; }; }
18049 fi
18050 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18051   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18052 Usually this means the macro was only invoked conditionally." >&5
18053 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18054 Usually this means the macro was only invoked conditionally." >&2;}
18055    { (exit 1); exit 1; }; }
18056 fi
18057
18058 : ${CONFIG_STATUS=./config.status}
18059 ac_write_fail=0
18060 ac_clean_files_save=$ac_clean_files
18061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18062 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18063 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18064 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18065 #! $SHELL
18066 # Generated by $as_me.
18067 # Run this file to recreate the current configuration.
18068 # Compiler output produced by configure, useful for debugging
18069 # configure, is in config.log if it exists.
18070
18071 debug=false
18072 ac_cs_recheck=false
18073 ac_cs_silent=false
18074 SHELL=\${CONFIG_SHELL-$SHELL}
18075 _ACEOF
18076
18077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18078 ## --------------------- ##
18079 ## M4sh Initialization.  ##
18080 ## --------------------- ##
18081
18082 # Be more Bourne compatible
18083 DUALCASE=1; export DUALCASE # for MKS sh
18084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18085   emulate sh
18086   NULLCMD=:
18087   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18088   # is contrary to our usage.  Disable this feature.
18089   alias -g '${1+"$@"}'='"$@"'
18090   setopt NO_GLOB_SUBST
18091 else
18092   case `(set -o) 2>/dev/null` in
18093   *posix*) set -o posix ;;
18094 esac
18095
18096 fi
18097
18098
18099
18100
18101 # PATH needs CR
18102 # Avoid depending upon Character Ranges.
18103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18106 as_cr_digits='0123456789'
18107 as_cr_alnum=$as_cr_Letters$as_cr_digits
18108
18109 as_nl='
18110 '
18111 export as_nl
18112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18116 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18117   as_echo='printf %s\n'
18118   as_echo_n='printf %s'
18119 else
18120   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18121     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18122     as_echo_n='/usr/ucb/echo -n'
18123   else
18124     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18125     as_echo_n_body='eval
18126       arg=$1;
18127       case $arg in
18128       *"$as_nl"*)
18129         expr "X$arg" : "X\\(.*\\)$as_nl";
18130         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18131       esac;
18132       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18133     '
18134     export as_echo_n_body
18135     as_echo_n='sh -c $as_echo_n_body as_echo'
18136   fi
18137   export as_echo_body
18138   as_echo='sh -c $as_echo_body as_echo'
18139 fi
18140
18141 # The user is always right.
18142 if test "${PATH_SEPARATOR+set}" != set; then
18143   PATH_SEPARATOR=:
18144   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18145     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18146       PATH_SEPARATOR=';'
18147   }
18148 fi
18149
18150 # Support unset when possible.
18151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18152   as_unset=unset
18153 else
18154   as_unset=false
18155 fi
18156
18157
18158 # IFS
18159 # We need space, tab and new line, in precisely that order.  Quoting is
18160 # there to prevent editors from complaining about space-tab.
18161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18162 # splitting by setting IFS to empty value.)
18163 IFS=" ""        $as_nl"
18164
18165 # Find who we are.  Look in the path if we contain no directory separator.
18166 case $0 in
18167   *[\\/]* ) as_myself=$0 ;;
18168   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18169 for as_dir in $PATH
18170 do
18171   IFS=$as_save_IFS
18172   test -z "$as_dir" && as_dir=.
18173   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18174 done
18175 IFS=$as_save_IFS
18176
18177      ;;
18178 esac
18179 # We did not find ourselves, most probably we were run as `sh COMMAND'
18180 # in which case we are not to be found in the path.
18181 if test "x$as_myself" = x; then
18182   as_myself=$0
18183 fi
18184 if test ! -f "$as_myself"; then
18185   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18186   { (exit 1); exit 1; }
18187 fi
18188
18189 # Work around bugs in pre-3.0 UWIN ksh.
18190 for as_var in ENV MAIL MAILPATH
18191 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18192 done
18193 PS1='$ '
18194 PS2='> '
18195 PS4='+ '
18196
18197 # NLS nuisances.
18198 LC_ALL=C
18199 export LC_ALL
18200 LANGUAGE=C
18201 export LANGUAGE
18202
18203 # Required to use basename.
18204 if expr a : '\(a\)' >/dev/null 2>&1 &&
18205    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18206   as_expr=expr
18207 else
18208   as_expr=false
18209 fi
18210
18211 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18212   as_basename=basename
18213 else
18214   as_basename=false
18215 fi
18216
18217
18218 # Name of the executable.
18219 as_me=`$as_basename -- "$0" ||
18220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18221          X"$0" : 'X\(//\)$' \| \
18222          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18223 $as_echo X/"$0" |
18224     sed '/^.*\/\([^/][^/]*\)\/*$/{
18225             s//\1/
18226             q
18227           }
18228           /^X\/\(\/\/\)$/{
18229             s//\1/
18230             q
18231           }
18232           /^X\/\(\/\).*/{
18233             s//\1/
18234             q
18235           }
18236           s/.*/./; q'`
18237
18238 # CDPATH.
18239 $as_unset CDPATH
18240
18241
18242
18243   as_lineno_1=$LINENO
18244   as_lineno_2=$LINENO
18245   test "x$as_lineno_1" != "x$as_lineno_2" &&
18246   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18247
18248   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18249   # uniformly replaced by the line number.  The first 'sed' inserts a
18250   # line-number line after each line using $LINENO; the second 'sed'
18251   # does the real work.  The second script uses 'N' to pair each
18252   # line-number line with the line containing $LINENO, and appends
18253   # trailing '-' during substitution so that $LINENO is not a special
18254   # case at line end.
18255   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18256   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18257   # E. McMahon (1931-1989) for sed's syntax.  :-)
18258   sed -n '
18259     p
18260     /[$]LINENO/=
18261   ' <$as_myself |
18262     sed '
18263       s/[$]LINENO.*/&-/
18264       t lineno
18265       b
18266       :lineno
18267       N
18268       :loop
18269       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18270       t loop
18271       s/-\n.*//
18272     ' >$as_me.lineno &&
18273   chmod +x "$as_me.lineno" ||
18274     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18275    { (exit 1); exit 1; }; }
18276
18277   # Don't try to exec as it changes $[0], causing all sort of problems
18278   # (the dirname of $[0] is not the place where we might find the
18279   # original and so on.  Autoconf is especially sensitive to this).
18280   . "./$as_me.lineno"
18281   # Exit status is that of the last command.
18282   exit
18283 }
18284
18285
18286 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18287   as_dirname=dirname
18288 else
18289   as_dirname=false
18290 fi
18291
18292 ECHO_C= ECHO_N= ECHO_T=
18293 case `echo -n x` in
18294 -n*)
18295   case `echo 'x\c'` in
18296   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18297   *)   ECHO_C='\c';;
18298   esac;;
18299 *)
18300   ECHO_N='-n';;
18301 esac
18302 if expr a : '\(a\)' >/dev/null 2>&1 &&
18303    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18304   as_expr=expr
18305 else
18306   as_expr=false
18307 fi
18308
18309 rm -f conf$$ conf$$.exe conf$$.file
18310 if test -d conf$$.dir; then
18311   rm -f conf$$.dir/conf$$.file
18312 else
18313   rm -f conf$$.dir
18314   mkdir conf$$.dir 2>/dev/null
18315 fi
18316 if (echo >conf$$.file) 2>/dev/null; then
18317   if ln -s conf$$.file conf$$ 2>/dev/null; then
18318     as_ln_s='ln -s'
18319     # ... but there are two gotchas:
18320     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18321     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18322     # In both cases, we have to default to `cp -p'.
18323     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18324       as_ln_s='cp -p'
18325   elif ln conf$$.file conf$$ 2>/dev/null; then
18326     as_ln_s=ln
18327   else
18328     as_ln_s='cp -p'
18329   fi
18330 else
18331   as_ln_s='cp -p'
18332 fi
18333 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18334 rmdir conf$$.dir 2>/dev/null
18335
18336 if mkdir -p . 2>/dev/null; then
18337   as_mkdir_p=:
18338 else
18339   test -d ./-p && rmdir ./-p
18340   as_mkdir_p=false
18341 fi
18342
18343 if test -x / >/dev/null 2>&1; then
18344   as_test_x='test -x'
18345 else
18346   if ls -dL / >/dev/null 2>&1; then
18347     as_ls_L_option=L
18348   else
18349     as_ls_L_option=
18350   fi
18351   as_test_x='
18352     eval sh -c '\''
18353       if test -d "$1"; then
18354         test -d "$1/.";
18355       else
18356         case $1 in
18357         -*)set "./$1";;
18358         esac;
18359         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18360         ???[sx]*):;;*)false;;esac;fi
18361     '\'' sh
18362   '
18363 fi
18364 as_executable_p=$as_test_x
18365
18366 # Sed expression to map a string onto a valid CPP name.
18367 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18368
18369 # Sed expression to map a string onto a valid variable name.
18370 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18371
18372
18373 exec 6>&1
18374
18375 # Save the log message, to keep $[0] and so on meaningful, and to
18376 # report actual input values of CONFIG_FILES etc. instead of their
18377 # values after options handling.
18378 ac_log="
18379 This file was extended by $as_me, which was
18380 generated by GNU Autoconf 2.63.  Invocation command line was
18381
18382   CONFIG_FILES    = $CONFIG_FILES
18383   CONFIG_HEADERS  = $CONFIG_HEADERS
18384   CONFIG_LINKS    = $CONFIG_LINKS
18385   CONFIG_COMMANDS = $CONFIG_COMMANDS
18386   $ $0 $@
18387
18388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18389 "
18390
18391 _ACEOF
18392
18393 case $ac_config_files in *"
18394 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18395 esac
18396
18397 case $ac_config_headers in *"
18398 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18399 esac
18400
18401
18402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18403 # Files that config.status was made for.
18404 config_files="$ac_config_files"
18405 config_headers="$ac_config_headers"
18406 config_commands="$ac_config_commands"
18407
18408 _ACEOF
18409
18410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18411 ac_cs_usage="\
18412 \`$as_me' instantiates files from templates according to the
18413 current configuration.
18414
18415 Usage: $0 [OPTION]... [FILE]...
18416
18417   -h, --help       print this help, then exit
18418   -V, --version    print version number and configuration settings, then exit
18419   -q, --quiet, --silent
18420                    do not print progress messages
18421   -d, --debug      don't remove temporary files
18422       --recheck    update $as_me by reconfiguring in the same conditions
18423       --file=FILE[:TEMPLATE]
18424                    instantiate the configuration file FILE
18425       --header=FILE[:TEMPLATE]
18426                    instantiate the configuration header FILE
18427
18428 Configuration files:
18429 $config_files
18430
18431 Configuration headers:
18432 $config_headers
18433
18434 Configuration commands:
18435 $config_commands
18436
18437 Report bugs to <bug-autoconf@gnu.org>."
18438
18439 _ACEOF
18440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18441 ac_cs_version="\\
18442 config.status
18443 configured by $0, generated by GNU Autoconf 2.63,
18444   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18445
18446 Copyright (C) 2008 Free Software Foundation, Inc.
18447 This config.status script is free software; the Free Software Foundation
18448 gives unlimited permission to copy, distribute and modify it."
18449
18450 ac_pwd='$ac_pwd'
18451 srcdir='$srcdir'
18452 INSTALL='$INSTALL'
18453 MKDIR_P='$MKDIR_P'
18454 AWK='$AWK'
18455 test -n "\$AWK" || AWK=awk
18456 _ACEOF
18457
18458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18459 # The default lists apply if the user does not specify any file.
18460 ac_need_defaults=:
18461 while test $# != 0
18462 do
18463   case $1 in
18464   --*=*)
18465     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18466     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18467     ac_shift=:
18468     ;;
18469   *)
18470     ac_option=$1
18471     ac_optarg=$2
18472     ac_shift=shift
18473     ;;
18474   esac
18475
18476   case $ac_option in
18477   # Handling of the options.
18478   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18479     ac_cs_recheck=: ;;
18480   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18481     $as_echo "$ac_cs_version"; exit ;;
18482   --debug | --debu | --deb | --de | --d | -d )
18483     debug=: ;;
18484   --file | --fil | --fi | --f )
18485     $ac_shift
18486     case $ac_optarg in
18487     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18488     esac
18489     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18490     ac_need_defaults=false;;
18491   --header | --heade | --head | --hea )
18492     $ac_shift
18493     case $ac_optarg in
18494     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18495     esac
18496     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18497     ac_need_defaults=false;;
18498   --he | --h)
18499     # Conflict between --help and --header
18500     { $as_echo "$as_me: error: ambiguous option: $1
18501 Try \`$0 --help' for more information." >&2
18502    { (exit 1); exit 1; }; };;
18503   --help | --hel | -h )
18504     $as_echo "$ac_cs_usage"; exit ;;
18505   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18506   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18507     ac_cs_silent=: ;;
18508
18509   # This is an error.
18510   -*) { $as_echo "$as_me: error: unrecognized option: $1
18511 Try \`$0 --help' for more information." >&2
18512    { (exit 1); exit 1; }; } ;;
18513
18514   *) ac_config_targets="$ac_config_targets $1"
18515      ac_need_defaults=false ;;
18516
18517   esac
18518   shift
18519 done
18520
18521 ac_configure_extra_args=
18522
18523 if $ac_cs_silent; then
18524   exec 6>/dev/null
18525   ac_configure_extra_args="$ac_configure_extra_args --silent"
18526 fi
18527
18528 _ACEOF
18529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18530 if \$ac_cs_recheck; then
18531   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18532   shift
18533   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18534   CONFIG_SHELL='$SHELL'
18535   export CONFIG_SHELL
18536   exec "\$@"
18537 fi
18538
18539 _ACEOF
18540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18541 exec 5>>config.log
18542 {
18543   echo
18544   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18545 ## Running $as_me. ##
18546 _ASBOX
18547   $as_echo "$ac_log"
18548 } >&5
18549
18550 _ACEOF
18551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18552 #
18553 # INIT-COMMANDS
18554 #
18555 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18556
18557
18558 # The HP-UX ksh and POSIX shell print the target directory to stdout
18559 # if CDPATH is set.
18560 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18561
18562 sed_quote_subst='$sed_quote_subst'
18563 double_quote_subst='$double_quote_subst'
18564 delay_variable_subst='$delay_variable_subst'
18565 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18566 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18567 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18568 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18569 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18570 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18571 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18572 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18573 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18574 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18575 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18576 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18577 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18578 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18579 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18580 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18581 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18582 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18583 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18584 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18585 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18586 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18587 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18588 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18589 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18590 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18591 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18592 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18593 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18594 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18595 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18596 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18597 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18598 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18599 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18600 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18601 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18602 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18603 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18604 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18605 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18606 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18607 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18608 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18609 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"`'
18610 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"`'
18611 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18612 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18613 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18614 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18615 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18616 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18617 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18618 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18619 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18620 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18621 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18622 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18623 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18624 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18625 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18626 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18627 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18628 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18629 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18630 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18631 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18632 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18633 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18634 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18635 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18636 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18637 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18638 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18639 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18640 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18641 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18642 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18643 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18644 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18645 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18646 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18647 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18648 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18649 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18650 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18651 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18652 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18653 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18654 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18655 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18656 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18657 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18658 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18659 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18660 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18661 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18662 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18663 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18664 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18665 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18666 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18667 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18668 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18669 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18670 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18671 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18672 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18673 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18674 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18675 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18676 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18677 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18678 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18679 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18680 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18681 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18682 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18683
18684 LTCC='$LTCC'
18685 LTCFLAGS='$LTCFLAGS'
18686 compiler='$compiler_DEFAULT'
18687
18688 # Quote evaled strings.
18689 for var in SED \
18690 GREP \
18691 EGREP \
18692 FGREP \
18693 LD \
18694 NM \
18695 LN_S \
18696 lt_SP2NL \
18697 lt_NL2SP \
18698 reload_flag \
18699 OBJDUMP \
18700 deplibs_check_method \
18701 file_magic_cmd \
18702 AR \
18703 AR_FLAGS \
18704 STRIP \
18705 RANLIB \
18706 CC \
18707 CFLAGS \
18708 compiler \
18709 lt_cv_sys_global_symbol_pipe \
18710 lt_cv_sys_global_symbol_to_cdecl \
18711 lt_cv_sys_global_symbol_to_c_name_address \
18712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18713 SHELL \
18714 ECHO \
18715 lt_prog_compiler_no_builtin_flag \
18716 lt_prog_compiler_wl \
18717 lt_prog_compiler_pic \
18718 lt_prog_compiler_static \
18719 lt_cv_prog_compiler_c_o \
18720 need_locks \
18721 DSYMUTIL \
18722 NMEDIT \
18723 LIPO \
18724 OTOOL \
18725 OTOOL64 \
18726 shrext_cmds \
18727 export_dynamic_flag_spec \
18728 whole_archive_flag_spec \
18729 compiler_needs_object \
18730 with_gnu_ld \
18731 allow_undefined_flag \
18732 no_undefined_flag \
18733 hardcode_libdir_flag_spec \
18734 hardcode_libdir_flag_spec_ld \
18735 hardcode_libdir_separator \
18736 fix_srcfile_path \
18737 exclude_expsyms \
18738 include_expsyms \
18739 file_list_spec \
18740 variables_saved_for_relink \
18741 libname_spec \
18742 library_names_spec \
18743 soname_spec \
18744 finish_eval \
18745 old_striplib \
18746 striplib; do
18747     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18748     *[\\\\\\\`\\"\\\$]*)
18749       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18750       ;;
18751     *)
18752       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18753       ;;
18754     esac
18755 done
18756
18757 # Double-quote double-evaled strings.
18758 for var in reload_cmds \
18759 old_postinstall_cmds \
18760 old_postuninstall_cmds \
18761 old_archive_cmds \
18762 extract_expsyms_cmds \
18763 old_archive_from_new_cmds \
18764 old_archive_from_expsyms_cmds \
18765 archive_cmds \
18766 archive_expsym_cmds \
18767 module_cmds \
18768 module_expsym_cmds \
18769 export_symbols_cmds \
18770 prelink_cmds \
18771 postinstall_cmds \
18772 postuninstall_cmds \
18773 finish_cmds \
18774 sys_lib_search_path_spec \
18775 sys_lib_dlsearch_path_spec; do
18776     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18777     *[\\\\\\\`\\"\\\$]*)
18778       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18779       ;;
18780     *)
18781       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18782       ;;
18783     esac
18784 done
18785
18786 # Fix-up fallback echo if it was mangled by the above quoting rules.
18787 case \$lt_ECHO in
18788 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18789   ;;
18790 esac
18791
18792 ac_aux_dir='$ac_aux_dir'
18793 xsi_shell='$xsi_shell'
18794 lt_shell_append='$lt_shell_append'
18795
18796 # See if we are running on zsh, and set the options which allow our
18797 # commands through without removal of \ escapes INIT.
18798 if test -n "\${ZSH_VERSION+set}" ; then
18799    setopt NO_GLOB_SUBST
18800 fi
18801
18802
18803     PACKAGE='$PACKAGE'
18804     VERSION='$VERSION'
18805     TIMESTAMP='$TIMESTAMP'
18806     RM='$RM'
18807     ofile='$ofile'
18808
18809
18810
18811
18812 _ACEOF
18813
18814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18815
18816 # Handling of arguments.
18817 for ac_config_target in $ac_config_targets
18818 do
18819   case $ac_config_target in
18820     "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
18821     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18822     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18823     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18824     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
18825     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18826     "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
18827     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18828     "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
18829     "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
18830     "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
18831     "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
18832     "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
18833     "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
18834     "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
18835     "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
18836     "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
18837     "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
18838     "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
18839     "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
18840     "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
18841     "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
18842     "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
18843     "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
18844     "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
18845     "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
18846     "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
18847     "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
18848     "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
18849     "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
18850     "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
18851     "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
18852     "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
18853     "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
18854     "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
18855     "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
18856     "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
18857     "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
18858     "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
18859     "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
18860     "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
18861     "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
18862     "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
18863     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18864     "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
18865     "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
18866     "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
18867     "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
18868     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18869     "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
18870     "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
18871     "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
18872     "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
18873     "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
18874     "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
18875     "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
18876     "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
18877
18878   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18879 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18880    { (exit 1); exit 1; }; };;
18881   esac
18882 done
18883
18884
18885 # If the user did not use the arguments to specify the items to instantiate,
18886 # then the envvar interface is used.  Set only those that are not.
18887 # We use the long form for the default assignment because of an extremely
18888 # bizarre bug on SunOS 4.1.3.
18889 if $ac_need_defaults; then
18890   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18891   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18892   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18893 fi
18894
18895 # Have a temporary directory for convenience.  Make it in the build tree
18896 # simply because there is no reason against having it here, and in addition,
18897 # creating and moving files from /tmp can sometimes cause problems.
18898 # Hook for its removal unless debugging.
18899 # Note that there is a small window in which the directory will not be cleaned:
18900 # after its creation but before its name has been assigned to `$tmp'.
18901 $debug ||
18902 {
18903   tmp=
18904   trap 'exit_status=$?
18905   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18906 ' 0
18907   trap '{ (exit 1); exit 1; }' 1 2 13 15
18908 }
18909 # Create a (secure) tmp directory for tmp files.
18910
18911 {
18912   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18913   test -n "$tmp" && test -d "$tmp"
18914 }  ||
18915 {
18916   tmp=./conf$$-$RANDOM
18917   (umask 077 && mkdir "$tmp")
18918 } ||
18919 {
18920    $as_echo "$as_me: cannot create a temporary directory in ." >&2
18921    { (exit 1); exit 1; }
18922 }
18923
18924 # Set up the scripts for CONFIG_FILES section.
18925 # No need to generate them if there are no CONFIG_FILES.
18926 # This happens for instance with `./config.status config.h'.
18927 if test -n "$CONFIG_FILES"; then
18928
18929
18930 ac_cr='\r'
18931 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18932 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18933   ac_cs_awk_cr='\\r'
18934 else
18935   ac_cs_awk_cr=$ac_cr
18936 fi
18937
18938 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18939 _ACEOF
18940
18941
18942 {
18943   echo "cat >conf$$subs.awk <<_ACEOF" &&
18944   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18945   echo "_ACEOF"
18946 } >conf$$subs.sh ||
18947   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18948 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18949    { (exit 1); exit 1; }; }
18950 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18951 ac_delim='%!_!# '
18952 for ac_last_try in false false false false false :; do
18953   . ./conf$$subs.sh ||
18954     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18955 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18956    { (exit 1); exit 1; }; }
18957
18958   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18959   if test $ac_delim_n = $ac_delim_num; then
18960     break
18961   elif $ac_last_try; then
18962     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18963 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18964    { (exit 1); exit 1; }; }
18965   else
18966     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18967   fi
18968 done
18969 rm -f conf$$subs.sh
18970
18971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18972 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18973 _ACEOF
18974 sed -n '
18975 h
18976 s/^/S["/; s/!.*/"]=/
18977 p
18978 g
18979 s/^[^!]*!//
18980 :repl
18981 t repl
18982 s/'"$ac_delim"'$//
18983 t delim
18984 :nl
18985 h
18986 s/\(.\{148\}\).*/\1/
18987 t more1
18988 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18989 p
18990 n
18991 b repl
18992 :more1
18993 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18994 p
18995 g
18996 s/.\{148\}//
18997 t nl
18998 :delim
18999 h
19000 s/\(.\{148\}\).*/\1/
19001 t more2
19002 s/["\\]/\\&/g; s/^/"/; s/$/"/
19003 p
19004 b
19005 :more2
19006 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19007 p
19008 g
19009 s/.\{148\}//
19010 t delim
19011 ' <conf$$subs.awk | sed '
19012 /^[^""]/{
19013   N
19014   s/\n//
19015 }
19016 ' >>$CONFIG_STATUS || ac_write_fail=1
19017 rm -f conf$$subs.awk
19018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19019 _ACAWK
19020 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19021   for (key in S) S_is_set[key] = 1
19022   FS = "\a"
19023
19024 }
19025 {
19026   line = $ 0
19027   nfields = split(line, field, "@")
19028   substed = 0
19029   len = length(field[1])
19030   for (i = 2; i < nfields; i++) {
19031     key = field[i]
19032     keylen = length(key)
19033     if (S_is_set[key]) {
19034       value = S[key]
19035       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19036       len += length(value) + length(field[++i])
19037       substed = 1
19038     } else
19039       len += 1 + keylen
19040   }
19041
19042   print line
19043 }
19044
19045 _ACAWK
19046 _ACEOF
19047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19048 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19049   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19050 else
19051   cat
19052 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19053   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19054 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19055    { (exit 1); exit 1; }; }
19056 _ACEOF
19057
19058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19060 # trailing colons and then remove the whole line if VPATH becomes empty
19061 # (actually we leave an empty line to preserve line numbers).
19062 if test "x$srcdir" = x.; then
19063   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19064 s/:*\$(srcdir):*/:/
19065 s/:*\${srcdir}:*/:/
19066 s/:*@srcdir@:*/:/
19067 s/^\([^=]*=[     ]*\):*/\1/
19068 s/:*$//
19069 s/^[^=]*=[       ]*$//
19070 }'
19071 fi
19072
19073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19074 fi # test -n "$CONFIG_FILES"
19075
19076 # Set up the scripts for CONFIG_HEADERS section.
19077 # No need to generate them if there are no CONFIG_HEADERS.
19078 # This happens for instance with `./config.status Makefile'.
19079 if test -n "$CONFIG_HEADERS"; then
19080 cat >"$tmp/defines.awk" <<\_ACAWK ||
19081 BEGIN {
19082 _ACEOF
19083
19084 # Transform confdefs.h into an awk script `defines.awk', embedded as
19085 # here-document in config.status, that substitutes the proper values into
19086 # config.h.in to produce config.h.
19087
19088 # Create a delimiter string that does not exist in confdefs.h, to ease
19089 # handling of long lines.
19090 ac_delim='%!_!# '
19091 for ac_last_try in false false :; do
19092   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19093   if test -z "$ac_t"; then
19094     break
19095   elif $ac_last_try; then
19096     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19097 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19098    { (exit 1); exit 1; }; }
19099   else
19100     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19101   fi
19102 done
19103
19104 # For the awk script, D is an array of macro values keyed by name,
19105 # likewise P contains macro parameters if any.  Preserve backslash
19106 # newline sequences.
19107
19108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19109 sed -n '
19110 s/.\{148\}/&'"$ac_delim"'/g
19111 t rset
19112 :rset
19113 s/^[     ]*#[    ]*define[       ][      ]*/ /
19114 t def
19115 d
19116 :def
19117 s/\\$//
19118 t bsnl
19119 s/["\\]/\\&/g
19120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19121 D["\1"]=" \3"/p
19122 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19123 d
19124 :bsnl
19125 s/["\\]/\\&/g
19126 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19127 D["\1"]=" \3\\\\\\n"\\/p
19128 t cont
19129 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19130 t cont
19131 d
19132 :cont
19133 n
19134 s/.\{148\}/&'"$ac_delim"'/g
19135 t clear
19136 :clear
19137 s/\\$//
19138 t bsnlc
19139 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19140 d
19141 :bsnlc
19142 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19143 b cont
19144 ' <confdefs.h | sed '
19145 s/'"$ac_delim"'/"\\\
19146 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19147
19148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19149   for (key in D) D_is_set[key] = 1
19150   FS = "\a"
19151 }
19152 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19153   line = \$ 0
19154   split(line, arg, " ")
19155   if (arg[1] == "#") {
19156     defundef = arg[2]
19157     mac1 = arg[3]
19158   } else {
19159     defundef = substr(arg[1], 2)
19160     mac1 = arg[2]
19161   }
19162   split(mac1, mac2, "(") #)
19163   macro = mac2[1]
19164   prefix = substr(line, 1, index(line, defundef) - 1)
19165   if (D_is_set[macro]) {
19166     # Preserve the white space surrounding the "#".
19167     print prefix "define", macro P[macro] D[macro]
19168     next
19169   } else {
19170     # Replace #undef with comments.  This is necessary, for example,
19171     # in the case of _POSIX_SOURCE, which is predefined and required
19172     # on some systems where configure will not decide to define it.
19173     if (defundef == "undef") {
19174       print "/*", prefix defundef, macro, "*/"
19175       next
19176     }
19177   }
19178 }
19179 { print }
19180 _ACAWK
19181 _ACEOF
19182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19183   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19184 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19185    { (exit 1); exit 1; }; }
19186 fi # test -n "$CONFIG_HEADERS"
19187
19188
19189 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19190 shift
19191 for ac_tag
19192 do
19193   case $ac_tag in
19194   :[FHLC]) ac_mode=$ac_tag; continue;;
19195   esac
19196   case $ac_mode$ac_tag in
19197   :[FHL]*:*);;
19198   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19199 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19200    { (exit 1); exit 1; }; };;
19201   :[FH]-) ac_tag=-:-;;
19202   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19203   esac
19204   ac_save_IFS=$IFS
19205   IFS=:
19206   set x $ac_tag
19207   IFS=$ac_save_IFS
19208   shift
19209   ac_file=$1
19210   shift
19211
19212   case $ac_mode in
19213   :L) ac_source=$1;;
19214   :[FH])
19215     ac_file_inputs=
19216     for ac_f
19217     do
19218       case $ac_f in
19219       -) ac_f="$tmp/stdin";;
19220       *) # Look for the file first in the build tree, then in the source tree
19221          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19222          # because $ac_f cannot contain `:'.
19223          test -f "$ac_f" ||
19224            case $ac_f in
19225            [\\/$]*) false;;
19226            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19227            esac ||
19228            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19229 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19230    { (exit 1); exit 1; }; };;
19231       esac
19232       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19233       ac_file_inputs="$ac_file_inputs '$ac_f'"
19234     done
19235
19236     # Let's still pretend it is `configure' which instantiates (i.e., don't
19237     # use $as_me), people would be surprised to read:
19238     #    /* config.h.  Generated by config.status.  */
19239     configure_input='Generated from '`
19240           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19241         `' by configure.'
19242     if test x"$ac_file" != x-; then
19243       configure_input="$ac_file.  $configure_input"
19244       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19245 $as_echo "$as_me: creating $ac_file" >&6;}
19246     fi
19247     # Neutralize special characters interpreted by sed in replacement strings.
19248     case $configure_input in #(
19249     *\&* | *\|* | *\\* )
19250        ac_sed_conf_input=`$as_echo "$configure_input" |
19251        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19252     *) ac_sed_conf_input=$configure_input;;
19253     esac
19254
19255     case $ac_tag in
19256     *:-:* | *:-) cat >"$tmp/stdin" \
19257       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19258 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19259    { (exit 1); exit 1; }; } ;;
19260     esac
19261     ;;
19262   esac
19263
19264   ac_dir=`$as_dirname -- "$ac_file" ||
19265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19266          X"$ac_file" : 'X\(//\)[^/]' \| \
19267          X"$ac_file" : 'X\(//\)$' \| \
19268          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19269 $as_echo X"$ac_file" |
19270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19271             s//\1/
19272             q
19273           }
19274           /^X\(\/\/\)[^/].*/{
19275             s//\1/
19276             q
19277           }
19278           /^X\(\/\/\)$/{
19279             s//\1/
19280             q
19281           }
19282           /^X\(\/\).*/{
19283             s//\1/
19284             q
19285           }
19286           s/.*/./; q'`
19287   { as_dir="$ac_dir"
19288   case $as_dir in #(
19289   -*) as_dir=./$as_dir;;
19290   esac
19291   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19292     as_dirs=
19293     while :; do
19294       case $as_dir in #(
19295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19296       *) as_qdir=$as_dir;;
19297       esac
19298       as_dirs="'$as_qdir' $as_dirs"
19299       as_dir=`$as_dirname -- "$as_dir" ||
19300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19301          X"$as_dir" : 'X\(//\)[^/]' \| \
19302          X"$as_dir" : 'X\(//\)$' \| \
19303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19304 $as_echo X"$as_dir" |
19305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19306             s//\1/
19307             q
19308           }
19309           /^X\(\/\/\)[^/].*/{
19310             s//\1/
19311             q
19312           }
19313           /^X\(\/\/\)$/{
19314             s//\1/
19315             q
19316           }
19317           /^X\(\/\).*/{
19318             s//\1/
19319             q
19320           }
19321           s/.*/./; q'`
19322       test -d "$as_dir" && break
19323     done
19324     test -z "$as_dirs" || eval "mkdir $as_dirs"
19325   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19326 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19327    { (exit 1); exit 1; }; }; }
19328   ac_builddir=.
19329
19330 case "$ac_dir" in
19331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19332 *)
19333   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19334   # A ".." for each directory in $ac_dir_suffix.
19335   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19336   case $ac_top_builddir_sub in
19337   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19338   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19339   esac ;;
19340 esac
19341 ac_abs_top_builddir=$ac_pwd
19342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19343 # for backward compatibility:
19344 ac_top_builddir=$ac_top_build_prefix
19345
19346 case $srcdir in
19347   .)  # We are building in place.
19348     ac_srcdir=.
19349     ac_top_srcdir=$ac_top_builddir_sub
19350     ac_abs_top_srcdir=$ac_pwd ;;
19351   [\\/]* | ?:[\\/]* )  # Absolute name.
19352     ac_srcdir=$srcdir$ac_dir_suffix;
19353     ac_top_srcdir=$srcdir
19354     ac_abs_top_srcdir=$srcdir ;;
19355   *) # Relative name.
19356     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19357     ac_top_srcdir=$ac_top_build_prefix$srcdir
19358     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19359 esac
19360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19361
19362
19363   case $ac_mode in
19364   :F)
19365   #
19366   # CONFIG_FILE
19367   #
19368
19369   case $INSTALL in
19370   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19371   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19372   esac
19373   ac_MKDIR_P=$MKDIR_P
19374   case $MKDIR_P in
19375   [\\/$]* | ?:[\\/]* ) ;;
19376   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19377   esac
19378 _ACEOF
19379
19380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19381 # If the template does not know about datarootdir, expand it.
19382 # FIXME: This hack should be removed a few years after 2.60.
19383 ac_datarootdir_hack=; ac_datarootdir_seen=
19384
19385 ac_sed_dataroot='
19386 /datarootdir/ {
19387   p
19388   q
19389 }
19390 /@datadir@/p
19391 /@docdir@/p
19392 /@infodir@/p
19393 /@localedir@/p
19394 /@mandir@/p
19395 '
19396 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19397 *datarootdir*) ac_datarootdir_seen=yes;;
19398 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19399   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19400 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19401 _ACEOF
19402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19403   ac_datarootdir_hack='
19404   s&@datadir@&$datadir&g
19405   s&@docdir@&$docdir&g
19406   s&@infodir@&$infodir&g
19407   s&@localedir@&$localedir&g
19408   s&@mandir@&$mandir&g
19409     s&\\\${datarootdir}&$datarootdir&g' ;;
19410 esac
19411 _ACEOF
19412
19413 # Neutralize VPATH when `$srcdir' = `.'.
19414 # Shell code in configure.ac might set extrasub.
19415 # FIXME: do we really want to maintain this feature?
19416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19417 ac_sed_extra="$ac_vpsub
19418 $extrasub
19419 _ACEOF
19420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19421 :t
19422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19423 s|@configure_input@|$ac_sed_conf_input|;t t
19424 s&@top_builddir@&$ac_top_builddir_sub&;t t
19425 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19426 s&@srcdir@&$ac_srcdir&;t t
19427 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19428 s&@top_srcdir@&$ac_top_srcdir&;t t
19429 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19430 s&@builddir@&$ac_builddir&;t t
19431 s&@abs_builddir@&$ac_abs_builddir&;t t
19432 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19433 s&@INSTALL@&$ac_INSTALL&;t t
19434 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19435 $ac_datarootdir_hack
19436 "
19437 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19438   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19439 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19440    { (exit 1); exit 1; }; }
19441
19442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19443   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19444   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19445   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19446 which seems to be undefined.  Please make sure it is defined." >&5
19447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19448 which seems to be undefined.  Please make sure it is defined." >&2;}
19449
19450   rm -f "$tmp/stdin"
19451   case $ac_file in
19452   -) cat "$tmp/out" && rm -f "$tmp/out";;
19453   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19454   esac \
19455   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19456 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19457    { (exit 1); exit 1; }; }
19458  ;;
19459   :H)
19460   #
19461   # CONFIG_HEADER
19462   #
19463   if test x"$ac_file" != x-; then
19464     {
19465       $as_echo "/* $configure_input  */" \
19466       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19467     } >"$tmp/config.h" \
19468       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19469 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19470    { (exit 1); exit 1; }; }
19471     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19472       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19473 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19474     else
19475       rm -f "$ac_file"
19476       mv "$tmp/config.h" "$ac_file" \
19477         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19478 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19479    { (exit 1); exit 1; }; }
19480     fi
19481   else
19482     $as_echo "/* $configure_input  */" \
19483       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19484       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19485 $as_echo "$as_me: error: could not create -" >&2;}
19486    { (exit 1); exit 1; }; }
19487   fi
19488 # Compute "$ac_file"'s index in $config_headers.
19489 _am_arg="$ac_file"
19490 _am_stamp_count=1
19491 for _am_header in $config_headers :; do
19492   case $_am_header in
19493     $_am_arg | $_am_arg:* )
19494       break ;;
19495     * )
19496       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19497   esac
19498 done
19499 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19500 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19501          X"$_am_arg" : 'X\(//\)[^/]' \| \
19502          X"$_am_arg" : 'X\(//\)$' \| \
19503          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19504 $as_echo X"$_am_arg" |
19505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19506             s//\1/
19507             q
19508           }
19509           /^X\(\/\/\)[^/].*/{
19510             s//\1/
19511             q
19512           }
19513           /^X\(\/\/\)$/{
19514             s//\1/
19515             q
19516           }
19517           /^X\(\/\).*/{
19518             s//\1/
19519             q
19520           }
19521           s/.*/./; q'`/stamp-h$_am_stamp_count
19522  ;;
19523
19524   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19525 $as_echo "$as_me: executing $ac_file commands" >&6;}
19526  ;;
19527   esac
19528
19529
19530   case $ac_file$ac_mode in
19531     "zfs_config.h":H)
19532         (mv zfs_config.h zfs_config.h.tmp &&
19533         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
19534         rm zfs_config.h.tmp) || exit 1 ;;
19535     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19536   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19537   # are listed without --file.  Let's play safe and only enable the eval
19538   # if we detect the quoting.
19539   case $CONFIG_FILES in
19540   *\'*) eval set x "$CONFIG_FILES" ;;
19541   *)   set x $CONFIG_FILES ;;
19542   esac
19543   shift
19544   for mf
19545   do
19546     # Strip MF so we end up with the name of the file.
19547     mf=`echo "$mf" | sed -e 's/:.*$//'`
19548     # Check whether this is an Automake generated Makefile or not.
19549     # We used to match only the files named `Makefile.in', but
19550     # some people rename them; so instead we look at the file content.
19551     # Grep'ing the first line is not enough: some people post-process
19552     # each Makefile.in and add a new line on top of each file to say so.
19553     # Grep'ing the whole file is not good either: AIX grep has a line
19554     # limit of 2048, but all sed's we know have understand at least 4000.
19555     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19556       dirpart=`$as_dirname -- "$mf" ||
19557 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19558          X"$mf" : 'X\(//\)[^/]' \| \
19559          X"$mf" : 'X\(//\)$' \| \
19560          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19561 $as_echo X"$mf" |
19562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19563             s//\1/
19564             q
19565           }
19566           /^X\(\/\/\)[^/].*/{
19567             s//\1/
19568             q
19569           }
19570           /^X\(\/\/\)$/{
19571             s//\1/
19572             q
19573           }
19574           /^X\(\/\).*/{
19575             s//\1/
19576             q
19577           }
19578           s/.*/./; q'`
19579     else
19580       continue
19581     fi
19582     # Extract the definition of DEPDIR, am__include, and am__quote
19583     # from the Makefile without running `make'.
19584     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19585     test -z "$DEPDIR" && continue
19586     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19587     test -z "am__include" && continue
19588     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19589     # When using ansi2knr, U may be empty or an underscore; expand it
19590     U=`sed -n 's/^U = //p' < "$mf"`
19591     # Find all dependency output files, they are included files with
19592     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19593     # simplest approach to changing $(DEPDIR) to its actual value in the
19594     # expansion.
19595     for file in `sed -n "
19596       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19597          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19598       # Make sure the directory exists.
19599       test -f "$dirpart/$file" && continue
19600       fdir=`$as_dirname -- "$file" ||
19601 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19602          X"$file" : 'X\(//\)[^/]' \| \
19603          X"$file" : 'X\(//\)$' \| \
19604          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19605 $as_echo X"$file" |
19606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19607             s//\1/
19608             q
19609           }
19610           /^X\(\/\/\)[^/].*/{
19611             s//\1/
19612             q
19613           }
19614           /^X\(\/\/\)$/{
19615             s//\1/
19616             q
19617           }
19618           /^X\(\/\).*/{
19619             s//\1/
19620             q
19621           }
19622           s/.*/./; q'`
19623       { as_dir=$dirpart/$fdir
19624   case $as_dir in #(
19625   -*) as_dir=./$as_dir;;
19626   esac
19627   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19628     as_dirs=
19629     while :; do
19630       case $as_dir in #(
19631       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19632       *) as_qdir=$as_dir;;
19633       esac
19634       as_dirs="'$as_qdir' $as_dirs"
19635       as_dir=`$as_dirname -- "$as_dir" ||
19636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637          X"$as_dir" : 'X\(//\)[^/]' \| \
19638          X"$as_dir" : 'X\(//\)$' \| \
19639          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19640 $as_echo X"$as_dir" |
19641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19642             s//\1/
19643             q
19644           }
19645           /^X\(\/\/\)[^/].*/{
19646             s//\1/
19647             q
19648           }
19649           /^X\(\/\/\)$/{
19650             s//\1/
19651             q
19652           }
19653           /^X\(\/\).*/{
19654             s//\1/
19655             q
19656           }
19657           s/.*/./; q'`
19658       test -d "$as_dir" && break
19659     done
19660     test -z "$as_dirs" || eval "mkdir $as_dirs"
19661   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19662 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19663    { (exit 1); exit 1; }; }; }
19664       # echo "creating $dirpart/$file"
19665       echo '# dummy' > "$dirpart/$file"
19666     done
19667   done
19668 }
19669  ;;
19670     "libtool":C)
19671
19672     # See if we are running on zsh, and set the options which allow our
19673     # commands through without removal of \ escapes.
19674     if test -n "${ZSH_VERSION+set}" ; then
19675       setopt NO_GLOB_SUBST
19676     fi
19677
19678     cfgfile="${ofile}T"
19679     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19680     $RM "$cfgfile"
19681
19682     cat <<_LT_EOF >> "$cfgfile"
19683 #! $SHELL
19684
19685 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19686 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19687 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19688 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19689 #
19690 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19691 #                 2006, 2007, 2008 Free Software Foundation, Inc.
19692 #   Written by Gordon Matzigkeit, 1996
19693 #
19694 #   This file is part of GNU Libtool.
19695 #
19696 # GNU Libtool is free software; you can redistribute it and/or
19697 # modify it under the terms of the GNU General Public License as
19698 # published by the Free Software Foundation; either version 2 of
19699 # the License, or (at your option) any later version.
19700 #
19701 # As a special exception to the GNU General Public License,
19702 # if you distribute this file as part of a program or library that
19703 # is built using GNU Libtool, you may include this file under the
19704 # same distribution terms that you use for the rest of that program.
19705 #
19706 # GNU Libtool is distributed in the hope that it will be useful,
19707 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19708 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19709 # GNU General Public License for more details.
19710 #
19711 # You should have received a copy of the GNU General Public License
19712 # along with GNU Libtool; see the file COPYING.  If not, a copy
19713 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19714 # obtained by writing to the Free Software Foundation, Inc.,
19715 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19716
19717
19718 # The names of the tagged configurations supported by this script.
19719 available_tags=""
19720
19721 # ### BEGIN LIBTOOL CONFIG
19722
19723 # Which release of libtool.m4 was used?
19724 macro_version=$macro_version
19725 macro_revision=$macro_revision
19726
19727 # Whether or not to build shared libraries.
19728 build_libtool_libs=$enable_shared
19729
19730 # Whether or not to build static libraries.
19731 build_old_libs=$enable_static
19732
19733 # What type of objects to build.
19734 pic_mode=$pic_mode
19735
19736 # Whether or not to optimize for fast installation.
19737 fast_install=$enable_fast_install
19738
19739 # The host system.
19740 host_alias=$host_alias
19741 host=$host
19742 host_os=$host_os
19743
19744 # The build system.
19745 build_alias=$build_alias
19746 build=$build
19747 build_os=$build_os
19748
19749 # A sed program that does not truncate output.
19750 SED=$lt_SED
19751
19752 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19753 Xsed="\$SED -e 1s/^X//"
19754
19755 # A grep program that handles long lines.
19756 GREP=$lt_GREP
19757
19758 # An ERE matcher.
19759 EGREP=$lt_EGREP
19760
19761 # A literal string matcher.
19762 FGREP=$lt_FGREP
19763
19764 # A BSD- or MS-compatible name lister.
19765 NM=$lt_NM
19766
19767 # Whether we need soft or hard links.
19768 LN_S=$lt_LN_S
19769
19770 # What is the maximum length of a command?
19771 max_cmd_len=$max_cmd_len
19772
19773 # Object file suffix (normally "o").
19774 objext=$ac_objext
19775
19776 # Executable file suffix (normally "").
19777 exeext=$exeext
19778
19779 # whether the shell understands "unset".
19780 lt_unset=$lt_unset
19781
19782 # turn spaces into newlines.
19783 SP2NL=$lt_lt_SP2NL
19784
19785 # turn newlines into spaces.
19786 NL2SP=$lt_lt_NL2SP
19787
19788 # How to create reloadable object files.
19789 reload_flag=$lt_reload_flag
19790 reload_cmds=$lt_reload_cmds
19791
19792 # An object symbol dumper.
19793 OBJDUMP=$lt_OBJDUMP
19794
19795 # Method to check whether dependent libraries are shared objects.
19796 deplibs_check_method=$lt_deplibs_check_method
19797
19798 # Command to use when deplibs_check_method == "file_magic".
19799 file_magic_cmd=$lt_file_magic_cmd
19800
19801 # The archiver.
19802 AR=$lt_AR
19803 AR_FLAGS=$lt_AR_FLAGS
19804
19805 # A symbol stripping program.
19806 STRIP=$lt_STRIP
19807
19808 # Commands used to install an old-style archive.
19809 RANLIB=$lt_RANLIB
19810 old_postinstall_cmds=$lt_old_postinstall_cmds
19811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19812
19813 # A C compiler.
19814 LTCC=$lt_CC
19815
19816 # LTCC compiler flags.
19817 LTCFLAGS=$lt_CFLAGS
19818
19819 # Take the output of nm and produce a listing of raw symbols and C names.
19820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19821
19822 # Transform the output of nm in a proper C declaration.
19823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19824
19825 # Transform the output of nm in a C name address pair.
19826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19827
19828 # Transform the output of nm in a C name address pair when lib prefix is needed.
19829 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19830
19831 # The name of the directory that contains temporary libtool files.
19832 objdir=$objdir
19833
19834 # Shell to use when invoking shell scripts.
19835 SHELL=$lt_SHELL
19836
19837 # An echo program that does not interpret backslashes.
19838 ECHO=$lt_ECHO
19839
19840 # Used to examine libraries when file_magic_cmd begins with "file".
19841 MAGIC_CMD=$MAGIC_CMD
19842
19843 # Must we lock files when doing compilation?
19844 need_locks=$lt_need_locks
19845
19846 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19847 DSYMUTIL=$lt_DSYMUTIL
19848
19849 # Tool to change global to local symbols on Mac OS X.
19850 NMEDIT=$lt_NMEDIT
19851
19852 # Tool to manipulate fat objects and archives on Mac OS X.
19853 LIPO=$lt_LIPO
19854
19855 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19856 OTOOL=$lt_OTOOL
19857
19858 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19859 OTOOL64=$lt_OTOOL64
19860
19861 # Old archive suffix (normally "a").
19862 libext=$libext
19863
19864 # Shared library suffix (normally ".so").
19865 shrext_cmds=$lt_shrext_cmds
19866
19867 # The commands to extract the exported symbol list from a shared archive.
19868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19869
19870 # Variables whose values should be saved in libtool wrapper scripts and
19871 # restored at link time.
19872 variables_saved_for_relink=$lt_variables_saved_for_relink
19873
19874 # Do we need the "lib" prefix for modules?
19875 need_lib_prefix=$need_lib_prefix
19876
19877 # Do we need a version for libraries?
19878 need_version=$need_version
19879
19880 # Library versioning type.
19881 version_type=$version_type
19882
19883 # Shared library runtime path variable.
19884 runpath_var=$runpath_var
19885
19886 # Shared library path variable.
19887 shlibpath_var=$shlibpath_var
19888
19889 # Is shlibpath searched before the hard-coded library search path?
19890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19891
19892 # Format of library name prefix.
19893 libname_spec=$lt_libname_spec
19894
19895 # List of archive names.  First name is the real one, the rest are links.
19896 # The last name is the one that the linker finds with -lNAME
19897 library_names_spec=$lt_library_names_spec
19898
19899 # The coded name of the library, if different from the real name.
19900 soname_spec=$lt_soname_spec
19901
19902 # Command to use after installation of a shared archive.
19903 postinstall_cmds=$lt_postinstall_cmds
19904
19905 # Command to use after uninstallation of a shared archive.
19906 postuninstall_cmds=$lt_postuninstall_cmds
19907
19908 # Commands used to finish a libtool library installation in a directory.
19909 finish_cmds=$lt_finish_cmds
19910
19911 # As "finish_cmds", except a single script fragment to be evaled but
19912 # not shown.
19913 finish_eval=$lt_finish_eval
19914
19915 # Whether we should hardcode library paths into libraries.
19916 hardcode_into_libs=$hardcode_into_libs
19917
19918 # Compile-time system search path for libraries.
19919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19920
19921 # Run-time system search path for libraries.
19922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19923
19924 # Whether dlopen is supported.
19925 dlopen_support=$enable_dlopen
19926
19927 # Whether dlopen of programs is supported.
19928 dlopen_self=$enable_dlopen_self
19929
19930 # Whether dlopen of statically linked programs is supported.
19931 dlopen_self_static=$enable_dlopen_self_static
19932
19933 # Commands to strip libraries.
19934 old_striplib=$lt_old_striplib
19935 striplib=$lt_striplib
19936
19937
19938 # The linker used to build libraries.
19939 LD=$lt_LD
19940
19941 # Commands used to build an old-style archive.
19942 old_archive_cmds=$lt_old_archive_cmds
19943
19944 # A language specific compiler.
19945 CC=$lt_compiler
19946
19947 # Is the compiler the GNU compiler?
19948 with_gcc=$GCC
19949
19950 # Compiler flag to turn off builtin functions.
19951 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19952
19953 # How to pass a linker flag through the compiler.
19954 wl=$lt_lt_prog_compiler_wl
19955
19956 # Additional compiler flags for building library objects.
19957 pic_flag=$lt_lt_prog_compiler_pic
19958
19959 # Compiler flag to prevent dynamic linking.
19960 link_static_flag=$lt_lt_prog_compiler_static
19961
19962 # Does compiler simultaneously support -c and -o options?
19963 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19964
19965 # Whether or not to add -lc for building shared libraries.
19966 build_libtool_need_lc=$archive_cmds_need_lc
19967
19968 # Whether or not to disallow shared libs when runtime libs are static.
19969 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19970
19971 # Compiler flag to allow reflexive dlopens.
19972 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19973
19974 # Compiler flag to generate shared objects directly from archives.
19975 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19976
19977 # Whether the compiler copes with passing no objects directly.
19978 compiler_needs_object=$lt_compiler_needs_object
19979
19980 # Create an old-style archive from a shared archive.
19981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19982
19983 # Create a temporary old-style archive to link instead of a shared archive.
19984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19985
19986 # Commands used to build a shared archive.
19987 archive_cmds=$lt_archive_cmds
19988 archive_expsym_cmds=$lt_archive_expsym_cmds
19989
19990 # Commands used to build a loadable module if different from building
19991 # a shared archive.
19992 module_cmds=$lt_module_cmds
19993 module_expsym_cmds=$lt_module_expsym_cmds
19994
19995 # Whether we are building with GNU ld or not.
19996 with_gnu_ld=$lt_with_gnu_ld
19997
19998 # Flag that allows shared libraries with undefined symbols to be built.
19999 allow_undefined_flag=$lt_allow_undefined_flag
20000
20001 # Flag that enforces no undefined symbols.
20002 no_undefined_flag=$lt_no_undefined_flag
20003
20004 # Flag to hardcode \$libdir into a binary during linking.
20005 # This must work even if \$libdir does not exist
20006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20007
20008 # If ld is used when linking, flag to hardcode \$libdir into a binary
20009 # during linking.  This must work even if \$libdir does not exist.
20010 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20011
20012 # Whether we need a single "-rpath" flag with a separated argument.
20013 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20014
20015 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20016 # DIR into the resulting binary.
20017 hardcode_direct=$hardcode_direct
20018
20019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20020 # DIR into the resulting binary and the resulting library dependency is
20021 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20022 # library is relocated.
20023 hardcode_direct_absolute=$hardcode_direct_absolute
20024
20025 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20026 # into the resulting binary.
20027 hardcode_minus_L=$hardcode_minus_L
20028
20029 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20030 # into the resulting binary.
20031 hardcode_shlibpath_var=$hardcode_shlibpath_var
20032
20033 # Set to "yes" if building a shared library automatically hardcodes DIR
20034 # into the library and all subsequent libraries and executables linked
20035 # against it.
20036 hardcode_automatic=$hardcode_automatic
20037
20038 # Set to yes if linker adds runtime paths of dependent libraries
20039 # to runtime path list.
20040 inherit_rpath=$inherit_rpath
20041
20042 # Whether libtool must link a program against all its dependency libraries.
20043 link_all_deplibs=$link_all_deplibs
20044
20045 # Fix the shell variable \$srcfile for the compiler.
20046 fix_srcfile_path=$lt_fix_srcfile_path
20047
20048 # Set to "yes" if exported symbols are required.
20049 always_export_symbols=$always_export_symbols
20050
20051 # The commands to list exported symbols.
20052 export_symbols_cmds=$lt_export_symbols_cmds
20053
20054 # Symbols that should not be listed in the preloaded symbols.
20055 exclude_expsyms=$lt_exclude_expsyms
20056
20057 # Symbols that must always be exported.
20058 include_expsyms=$lt_include_expsyms
20059
20060 # Commands necessary for linking programs (against libraries) with templates.
20061 prelink_cmds=$lt_prelink_cmds
20062
20063 # Specify filename containing input files.
20064 file_list_spec=$lt_file_list_spec
20065
20066 # How to hardcode a shared library path into an executable.
20067 hardcode_action=$hardcode_action
20068
20069 # ### END LIBTOOL CONFIG
20070
20071 _LT_EOF
20072
20073   case $host_os in
20074   aix3*)
20075     cat <<\_LT_EOF >> "$cfgfile"
20076 # AIX sometimes has problems with the GCC collect2 program.  For some
20077 # reason, if we set the COLLECT_NAMES environment variable, the problems
20078 # vanish in a puff of smoke.
20079 if test "X${COLLECT_NAMES+set}" != Xset; then
20080   COLLECT_NAMES=
20081   export COLLECT_NAMES
20082 fi
20083 _LT_EOF
20084     ;;
20085   esac
20086
20087
20088 ltmain="$ac_aux_dir/ltmain.sh"
20089
20090
20091   # We use sed instead of cat because bash on DJGPP gets confused if
20092   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20093   # text mode, it properly converts lines to CR/LF.  This bash problem
20094   # is reportedly fixed, but why not run on old versions too?
20095   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20096     || (rm -f "$cfgfile"; exit 1)
20097
20098   case $xsi_shell in
20099   yes)
20100     cat << \_LT_EOF >> "$cfgfile"
20101
20102 # func_dirname file append nondir_replacement
20103 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20104 # otherwise set result to NONDIR_REPLACEMENT.
20105 func_dirname ()
20106 {
20107   case ${1} in
20108     */*) func_dirname_result="${1%/*}${2}" ;;
20109     *  ) func_dirname_result="${3}" ;;
20110   esac
20111 }
20112
20113 # func_basename file
20114 func_basename ()
20115 {
20116   func_basename_result="${1##*/}"
20117 }
20118
20119 # func_dirname_and_basename file append nondir_replacement
20120 # perform func_basename and func_dirname in a single function
20121 # call:
20122 #   dirname:  Compute the dirname of FILE.  If nonempty,
20123 #             add APPEND to the result, otherwise set result
20124 #             to NONDIR_REPLACEMENT.
20125 #             value returned in "$func_dirname_result"
20126 #   basename: Compute filename of FILE.
20127 #             value retuned in "$func_basename_result"
20128 # Implementation must be kept synchronized with func_dirname
20129 # and func_basename. For efficiency, we do not delegate to
20130 # those functions but instead duplicate the functionality here.
20131 func_dirname_and_basename ()
20132 {
20133   case ${1} in
20134     */*) func_dirname_result="${1%/*}${2}" ;;
20135     *  ) func_dirname_result="${3}" ;;
20136   esac
20137   func_basename_result="${1##*/}"
20138 }
20139
20140 # func_stripname prefix suffix name
20141 # strip PREFIX and SUFFIX off of NAME.
20142 # PREFIX and SUFFIX must not contain globbing or regex special
20143 # characters, hashes, percent signs, but SUFFIX may contain a leading
20144 # dot (in which case that matches only a dot).
20145 func_stripname ()
20146 {
20147   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20148   # positional parameters, so assign one to ordinary parameter first.
20149   func_stripname_result=${3}
20150   func_stripname_result=${func_stripname_result#"${1}"}
20151   func_stripname_result=${func_stripname_result%"${2}"}
20152 }
20153
20154 # func_opt_split
20155 func_opt_split ()
20156 {
20157   func_opt_split_opt=${1%%=*}
20158   func_opt_split_arg=${1#*=}
20159 }
20160
20161 # func_lo2o object
20162 func_lo2o ()
20163 {
20164   case ${1} in
20165     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20166     *)    func_lo2o_result=${1} ;;
20167   esac
20168 }
20169
20170 # func_xform libobj-or-source
20171 func_xform ()
20172 {
20173   func_xform_result=${1%.*}.lo
20174 }
20175
20176 # func_arith arithmetic-term...
20177 func_arith ()
20178 {
20179   func_arith_result=$(( $* ))
20180 }
20181
20182 # func_len string
20183 # STRING may not start with a hyphen.
20184 func_len ()
20185 {
20186   func_len_result=${#1}
20187 }
20188
20189 _LT_EOF
20190     ;;
20191   *) # Bourne compatible functions.
20192     cat << \_LT_EOF >> "$cfgfile"
20193
20194 # func_dirname file append nondir_replacement
20195 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20196 # otherwise set result to NONDIR_REPLACEMENT.
20197 func_dirname ()
20198 {
20199   # Extract subdirectory from the argument.
20200   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20201   if test "X$func_dirname_result" = "X${1}"; then
20202     func_dirname_result="${3}"
20203   else
20204     func_dirname_result="$func_dirname_result${2}"
20205   fi
20206 }
20207
20208 # func_basename file
20209 func_basename ()
20210 {
20211   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20212 }
20213
20214
20215 # func_stripname prefix suffix name
20216 # strip PREFIX and SUFFIX off of NAME.
20217 # PREFIX and SUFFIX must not contain globbing or regex special
20218 # characters, hashes, percent signs, but SUFFIX may contain a leading
20219 # dot (in which case that matches only a dot).
20220 # func_strip_suffix prefix name
20221 func_stripname ()
20222 {
20223   case ${2} in
20224     .*) func_stripname_result=`$ECHO "X${3}" \
20225            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20226     *)  func_stripname_result=`$ECHO "X${3}" \
20227            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20228   esac
20229 }
20230
20231 # sed scripts:
20232 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20233 my_sed_long_arg='1s/^-[^=]*=//'
20234
20235 # func_opt_split
20236 func_opt_split ()
20237 {
20238   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20239   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20240 }
20241
20242 # func_lo2o object
20243 func_lo2o ()
20244 {
20245   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20246 }
20247
20248 # func_xform libobj-or-source
20249 func_xform ()
20250 {
20251   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20252 }
20253
20254 # func_arith arithmetic-term...
20255 func_arith ()
20256 {
20257   func_arith_result=`expr "$@"`
20258 }
20259
20260 # func_len string
20261 # STRING may not start with a hyphen.
20262 func_len ()
20263 {
20264   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20265 }
20266
20267 _LT_EOF
20268 esac
20269
20270 case $lt_shell_append in
20271   yes)
20272     cat << \_LT_EOF >> "$cfgfile"
20273
20274 # func_append var value
20275 # Append VALUE to the end of shell variable VAR.
20276 func_append ()
20277 {
20278   eval "$1+=\$2"
20279 }
20280 _LT_EOF
20281     ;;
20282   *)
20283     cat << \_LT_EOF >> "$cfgfile"
20284
20285 # func_append var value
20286 # Append VALUE to the end of shell variable VAR.
20287 func_append ()
20288 {
20289   eval "$1=\$$1\$2"
20290 }
20291
20292 _LT_EOF
20293     ;;
20294   esac
20295
20296
20297   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20298     || (rm -f "$cfgfile"; exit 1)
20299
20300   mv -f "$cfgfile" "$ofile" ||
20301     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20302   chmod +x "$ofile"
20303
20304  ;;
20305
20306   esac
20307 done # for ac_tag
20308
20309
20310 { (exit 0); exit 0; }
20311 _ACEOF
20312 chmod +x $CONFIG_STATUS
20313 ac_clean_files=$ac_clean_files_save
20314
20315 test $ac_write_fail = 0 ||
20316   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20317 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20318    { (exit 1); exit 1; }; }
20319
20320
20321 # configure is writing to config.log, and then calls config.status.
20322 # config.status does its own redirection, appending to config.log.
20323 # Unfortunately, on DOS this fails, as config.log is still kept open
20324 # by configure, so config.status won't be able to write to it; its
20325 # output is simply discarded.  So we exec the FD to /dev/null,
20326 # effectively closing config.log, so it can be properly (re)opened and
20327 # appended to by config.status.  When coming back to configure, we
20328 # need to make the FD available again.
20329 if test "$no_create" != yes; then
20330   ac_cs_success=:
20331   ac_config_status_args=
20332   test "$silent" = yes &&
20333     ac_config_status_args="$ac_config_status_args --quiet"
20334   exec 5>/dev/null
20335   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20336   exec 5>>config.log
20337   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20338   # would make configure fail if this is the last instruction.
20339   $ac_cs_success || { (exit 1); exit 1; }
20340 fi
20341 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20342   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20343 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20344 fi
20345