]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Merge tag 'upstream/0.6.5.11'
[mirror_spl-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for spl 0.6.5.11.
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='spl'
745 PACKAGE_TARNAME='spl'
746 PACKAGE_VERSION='0.6.5.11'
747 PACKAGE_STRING='spl 0.6.5.11'
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 CONFIG_KERNEL_FALSE
791 CONFIG_KERNEL_TRUE
792 CONFIG_USER_FALSE
793 CONFIG_USER_TRUE
794 DEBUG_KMEM_TRACKING
795 DEBUG_KMEM
796 DEBUG_SPL
797 DEBUG_CFLAGS
798 KERNELCPPFLAGS
799 KERNELMAKE_PARAMS
800 LINUX_SYMBOLS
801 LINUX_VERSION
802 LINUX_OBJ
803 LINUX
804 SPL_CONFIG
805 ALIEN_VERSION
806 ALIEN
807 HAVE_ALIEN
808 DPKGBUILD_VERSION
809 DPKGBUILD
810 HAVE_DPKGBUILD
811 DPKG_VERSION
812 DPKG
813 HAVE_DPKG
814 SRPM_DEFINE_COMMON
815 SRPM_DEFINE_DKMS
816 SRPM_DEFINE_KMOD
817 SRPM_DEFINE_UTIL
818 RPM_DEFINE_COMMON
819 RPM_DEFINE_DKMS
820 RPM_DEFINE_KMOD
821 RPM_DEFINE_UTIL
822 RPM_SPEC_DIR
823 RPMBUILD_VERSION
824 RPMBUILD
825 HAVE_RPMBUILD
826 RPM_VERSION
827 RPM
828 HAVE_RPM
829 DEFAULT_PACKAGE
830 VENDOR
831 CPP
832 OTOOL64
833 OTOOL
834 LIPO
835 NMEDIT
836 DSYMUTIL
837 lt_ECHO
838 RANLIB
839 AR
840 OBJDUMP
841 LN_S
842 NM
843 ac_ct_DUMPBIN
844 DUMPBIN
845 LD
846 FGREP
847 EGREP
848 GREP
849 SED
850 LIBTOOL
851 am__fastdepCC_FALSE
852 am__fastdepCC_TRUE
853 CCDEPMODE
854 AMDEPBACKSLASH
855 AMDEP_FALSE
856 AMDEP_TRUE
857 am__quote
858 am__include
859 DEPDIR
860 OBJEXT
861 EXEEXT
862 ac_ct_CC
863 CPPFLAGS
864 LDFLAGS
865 CFLAGS
866 CC
867 am__untar
868 am__tar
869 AMTAR
870 am__leading_dot
871 SET_MAKE
872 mkdir_p
873 MKDIR_P
874 INSTALL_STRIP_PROGRAM
875 STRIP
876 install_sh
877 MAKEINFO
878 AUTOHEADER
879 AUTOMAKE
880 AUTOCONF
881 ACLOCAL
882 VERSION
883 PACKAGE
884 CYGPATH_W
885 am__isrc
886 INSTALL_DATA
887 INSTALL_SCRIPT
888 INSTALL_PROGRAM
889 AM_BACKSLASH
890 AM_DEFAULT_VERBOSITY
891 MAINT
892 MAINTAINER_MODE_FALSE
893 MAINTAINER_MODE_TRUE
894 target_os
895 target_vendor
896 target_cpu
897 target
898 host_os
899 host_vendor
900 host_cpu
901 host
902 build_os
903 build_vendor
904 build_cpu
905 build
906 SPL_META_LT_AGE
907 SPL_META_LT_REVISION
908 SPL_META_LT_CURRENT
909 SPL_META_AUTHOR
910 SPL_META_DATA
911 SPL_META_ALIAS
912 SPL_META_LICENSE
913 RELEASE
914 SPL_META_RELEASE
915 SPL_META_VERSION
916 SPL_META_NAME
917 AWK
918 target_alias
919 host_alias
920 build_alias
921 LIBS
922 ECHO_T
923 ECHO_N
924 ECHO_C
925 DEFS
926 mandir
927 localedir
928 libdir
929 psdir
930 pdfdir
931 dvidir
932 htmldir
933 infodir
934 docdir
935 oldincludedir
936 includedir
937 localstatedir
938 sharedstatedir
939 sysconfdir
940 datadir
941 datarootdir
942 libexecdir
943 sbindir
944 bindir
945 program_transform_name
946 prefix
947 exec_prefix
948 PACKAGE_BUGREPORT
949 PACKAGE_STRING
950 PACKAGE_VERSION
951 PACKAGE_TARNAME
952 PACKAGE_NAME
953 PATH_SEPARATOR
954 SHELL'
955 ac_subst_files=''
956 ac_user_opts='
957 enable_option_checking
958 enable_maintainer_mode
959 enable_silent_rules
960 enable_dependency_tracking
961 enable_shared
962 enable_static
963 with_pic
964 enable_fast_install
965 with_gnu_ld
966 enable_libtool_lock
967 with_spec
968 with_config
969 enable_linux_builtin
970 with_linux
971 with_linux_obj
972 enable_debug
973 enable_debug_kmem
974 enable_debug_kmem_tracking
975 enable_atomic_spinlocks
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
987
988 # Initialize some variables set by options.
989 ac_init_help=
990 ac_init_version=false
991 ac_unrecognized_opts=
992 ac_unrecognized_sep=
993 # The variables have the same names as the options, with
994 # dashes changed to underlines.
995 cache_file=/dev/null
996 exec_prefix=NONE
997 no_create=
998 no_recursion=
999 prefix=NONE
1000 program_prefix=NONE
1001 program_suffix=NONE
1002 program_transform_name=s,x,x,
1003 silent=
1004 site=
1005 srcdir=
1006 verbose=
1007 x_includes=NONE
1008 x_libraries=NONE
1009
1010 # Installation directory options.
1011 # These are left unexpanded so users can "make install exec_prefix=/foo"
1012 # and all the variables that are supposed to be based on exec_prefix
1013 # by default will actually change.
1014 # Use braces instead of parens because sh, perl, etc. also accept them.
1015 # (The list follows the same order as the GNU Coding Standards.)
1016 bindir='${exec_prefix}/bin'
1017 sbindir='${exec_prefix}/sbin'
1018 libexecdir='${exec_prefix}/libexec'
1019 datarootdir='${prefix}/share'
1020 datadir='${datarootdir}'
1021 sysconfdir='${prefix}/etc'
1022 sharedstatedir='${prefix}/com'
1023 localstatedir='${prefix}/var'
1024 includedir='${prefix}/include'
1025 oldincludedir='/usr/include'
1026 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027 infodir='${datarootdir}/info'
1028 htmldir='${docdir}'
1029 dvidir='${docdir}'
1030 pdfdir='${docdir}'
1031 psdir='${docdir}'
1032 libdir='${exec_prefix}/lib'
1033 localedir='${datarootdir}/locale'
1034 mandir='${datarootdir}/man'
1035
1036 ac_prev=
1037 ac_dashdash=
1038 for ac_option
1039 do
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\$ac_option
1043 ac_prev=
1044 continue
1045 fi
1046
1047 case $ac_option in
1048 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 *) ac_optarg=yes ;;
1050 esac
1051
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1053
1054 case $ac_dashdash$ac_option in
1055 --)
1056 ac_dashdash=yes ;;
1057
1058 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059 ac_prev=bindir ;;
1060 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061 bindir=$ac_optarg ;;
1062
1063 -build | --build | --buil | --bui | --bu)
1064 ac_prev=build_alias ;;
1065 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066 build_alias=$ac_optarg ;;
1067
1068 -cache-file | --cache-file | --cache-fil | --cache-fi \
1069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070 ac_prev=cache_file ;;
1071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073 cache_file=$ac_optarg ;;
1074
1075 --config-cache | -C)
1076 cache_file=config.cache ;;
1077
1078 -datadir | --datadir | --datadi | --datad)
1079 ac_prev=datadir ;;
1080 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081 datadir=$ac_optarg ;;
1082
1083 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084 | --dataroo | --dataro | --datar)
1085 ac_prev=datarootdir ;;
1086 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088 datarootdir=$ac_optarg ;;
1089
1090 -disable-* | --disable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=no ;;
1106
1107 -docdir | --docdir | --docdi | --doc | --do)
1108 ac_prev=docdir ;;
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1111
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 ac_prev=dvidir ;;
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1116
1117 -enable-* | --enable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "enable_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1133
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1142
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1146
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1153
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1158
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1164
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1171
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1176
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1181
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1188
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1193
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1200
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1205
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1209
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1213
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1217
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1226
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1231
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1238
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1245
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1262
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1267
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1272
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1276
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
1281 sbindir=$ac_optarg ;;
1282
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
1292 sharedstatedir=$ac_optarg ;;
1293
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
1297 site=$ac_optarg ;;
1298
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1303
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1310
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1315
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1318
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1321
1322 -with-* | --with-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1327 { (exit 1); exit 1; }; }
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332 "with_$ac_useropt"
1333 "*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=\$ac_optarg ;;
1338
1339 -without-* | --without-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349 "with_$ac_useropt"
1350 "*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=no ;;
1355
1356 --x)
1357 # Obsolete; use --with-x.
1358 with_x=yes ;;
1359
1360 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361 | --x-incl | --x-inc | --x-in | --x-i)
1362 ac_prev=x_includes ;;
1363 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365 x_includes=$ac_optarg ;;
1366
1367 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369 ac_prev=x_libraries ;;
1370 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372 x_libraries=$ac_optarg ;;
1373
1374 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1375 Try \`$0 --help' for more information." >&2
1376 { (exit 1); exit 1; }; }
1377 ;;
1378
1379 *=*)
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1383 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1384 { (exit 1); exit 1; }; }
1385 eval $ac_envvar=\$ac_optarg
1386 export $ac_envvar ;;
1387
1388 *)
1389 # FIXME: should be removed in autoconf 3.0.
1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1393 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1394 ;;
1395
1396 esac
1397 done
1398
1399 if test -n "$ac_prev"; then
1400 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1401 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1402 { (exit 1); exit 1; }; }
1403 fi
1404
1405 if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1407 no) ;;
1408 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1409 { (exit 1); exit 1; }; } ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 esac
1412 fi
1413
1414 # Check all directory arguments for consistency.
1415 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir
1419 do
1420 eval ac_val=\$$ac_var
1421 # Remove trailing slashes.
1422 case $ac_val in
1423 */ )
1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\$ac_val;;
1426 esac
1427 # Be sure to have absolute directory names.
1428 case $ac_val in
1429 [\\/$]* | ?:[\\/]* ) continue;;
1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431 esac
1432 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1433 { (exit 1); exit 1; }; }
1434 done
1435
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1439 build=$build_alias
1440 host=$host_alias
1441 target=$target_alias
1442
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1448 If a cross compiler is detected then cross compile mode will be used." >&2
1449 elif test "x$build_alias" != "x$host_alias"; then
1450 cross_compiling=yes
1451 fi
1452 fi
1453
1454 ac_tool_prefix=
1455 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456
1457 test "$silent" = yes && exec 6>/dev/null
1458
1459
1460 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di=`ls -di .` &&
1462 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1463 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1464 { (exit 1); exit 1; }; }
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1467 { (exit 1); exit 1; }; }
1468
1469
1470 # Find the source files, if location was not specified.
1471 if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479 $as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)$/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\).*/{
1493 s//\1/
1494 q
1495 }
1496 s/.*/./; q'`
1497 srcdir=$ac_confdir
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 srcdir=..
1500 fi
1501 else
1502 ac_srcdir_defaulted=no
1503 fi
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1507 { (exit 1); exit 1; }; }
1508 fi
1509 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1510 ac_abs_confdir=`(
1511 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1512 { (exit 1); exit 1; }; }
1513 pwd)`
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1516 srcdir=.
1517 fi
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1521 case $srcdir in
1522 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523 esac
1524 for ac_var in $ac_precious_vars; do
1525 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_${ac_var}_value=\$${ac_var}
1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529 done
1530
1531 #
1532 # Report the --help message.
1533 #
1534 if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1537 cat <<_ACEOF
1538 \`configure' configures spl 0.6.5.11 to adapt to many kinds of systems.
1539
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1541
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE. See below for descriptions of some of the useful variables.
1544
1545 Defaults for the options are specified in brackets.
1546
1547 Configuration:
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1557
1558 Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1562 [PREFIX]
1563
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1568
1569 For better control, use the options below.
1570
1571 Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --libdir=DIR object code libraries [EPREFIX/lib]
1579 --includedir=DIR C header files [PREFIX/include]
1580 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583 --infodir=DIR info documentation [DATAROOTDIR/info]
1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585 --mandir=DIR man documentation [DATAROOTDIR/man]
1586 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1587 --htmldir=DIR html documentation [DOCDIR]
1588 --dvidir=DIR dvi documentation [DOCDIR]
1589 --pdfdir=DIR pdf documentation [DOCDIR]
1590 --psdir=DIR ps documentation [DOCDIR]
1591 _ACEOF
1592
1593 cat <<\_ACEOF
1594
1595 Program names:
1596 --program-prefix=PREFIX prepend PREFIX to installed program names
1597 --program-suffix=SUFFIX append SUFFIX to installed program names
1598 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1599
1600 System types:
1601 --build=BUILD configure for building on BUILD [guessed]
1602 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1603 --target=TARGET configure for building compilers for TARGET [HOST]
1604 _ACEOF
1605 fi
1606
1607 if test -n "$ac_init_help"; then
1608 case $ac_init_help in
1609 short | recursive ) echo "Configuration of spl 0.6.5.11:";;
1610 esac
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-linux-builtin Configure for builtin in-tree kernel modules
1629 [default=no]
1630 --enable-debug Enable generic debug support [default=no]
1631 --enable-debug-kmem Enable basic kmem accounting [default=no]
1632 --enable-debug-kmem-tracking
1633 Enable detailed kmem tracking [default=no]
1634 --enable-atomic-spinlocks
1635 Atomic types use spinlocks [default=check]
1636
1637 Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-pic try to use only PIC/non-PIC objects [default=use
1641 both]
1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1643 --with-spec=SPEC Spec files 'generic|redhat'
1644 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1645 --with-linux=PATH Path to kernel source
1646 --with-linux-obj=PATH Path to kernel build objects
1647
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1656 CPP C preprocessor
1657
1658 Use these variables to override the choices made by `configure' or to help
1659 it to find libraries and programs with nonstandard names/locations.
1660
1661 _ACEOF
1662 ac_status=$?
1663 fi
1664
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
1671 ac_builddir=.
1672
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *)
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1688
1689 case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1718 fi
1719
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722 cat <<\_ACEOF
1723 spl configure 0.6.5.11
1724 generated by GNU Autoconf 2.63
1725
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1730 _ACEOF
1731 exit
1732 fi
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1736
1737 It was created by spl $as_me 0.6.5.11, which was
1738 generated by GNU Autoconf 2.63. Invocation command line was
1739
1740 $ $0 $@
1741
1742 _ACEOF
1743 exec 5>>config.log
1744 {
1745 cat <<_ASUNAME
1746 ## --------- ##
1747 ## Platform. ##
1748 ## --------- ##
1749
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766
1767 _ASUNAME
1768
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 $as_echo "PATH: $as_dir"
1775 done
1776 IFS=$as_save_IFS
1777
1778 } >&5
1779
1780 cat >&5 <<_ACEOF
1781
1782
1783 ## ----------- ##
1784 ## Core tests. ##
1785 ## ----------- ##
1786
1787 _ACEOF
1788
1789
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_configure_args=
1796 ac_configure_args0=
1797 ac_configure_args1=
1798 ac_must_keep_next=false
1799 for ac_pass in 1 2
1800 do
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
1808 *\'*)
1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 case $ac_pass in
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 2)
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1817 else
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1826 ;;
1827 -* ) ac_must_keep_next=true ;;
1828 esac
1829 fi
1830 ac_configure_args="$ac_configure_args '$ac_arg'"
1831 ;;
1832 esac
1833 done
1834 done
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1847
1848 cat <<\_ASBOX
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1852 _ASBOX
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1855 (
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) $as_unset $ac_var ;;
1868 esac ;;
1869 esac
1870 done
1871 (set) 2>&1 |
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1874 sed -n \
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 ;; #(
1878 *)
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 ;;
1881 esac |
1882 sort
1883 )
1884 echo
1885
1886 cat <<\_ASBOX
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1890 _ASBOX
1891 echo
1892 for ac_var in $ac_subst_vars
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 $as_echo "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1901
1902 if test -n "$ac_subst_files"; then
1903 cat <<\_ASBOX
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1907 _ASBOX
1908 echo
1909 for ac_var in $ac_subst_files
1910 do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 esac
1915 $as_echo "$ac_var='\''$ac_val'\''"
1916 done | sort
1917 echo
1918 fi
1919
1920 if test -s confdefs.h; then
1921 cat <<\_ASBOX
1922 ## ----------- ##
1923 ## confdefs.h. ##
1924 ## ----------- ##
1925 _ASBOX
1926 echo
1927 cat confdefs.h
1928 echo
1929 fi
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1933 } >&5
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940 done
1941 ac_signal=0
1942
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1945
1946 # Predefined preprocessor variables.
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 _ACEOF
1961
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970 _ACEOF
1971
1972
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1975 ac_site_file1=NONE
1976 ac_site_file2=NONE
1977 if test -n "$CONFIG_SITE"; then
1978 ac_site_file1=$CONFIG_SITE
1979 elif test "x$prefix" != xNONE; then
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
1982 else
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
1985 fi
1986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987 do
1988 test "x$ac_site_file" = xNONE && continue
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
1993 . "$ac_site_file"
1994 fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 $as_echo "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008 else
2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 $as_echo "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012 fi
2013
2014 # Check that the precious variables saved in the cache have kept the same
2015 # value.
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2023 set,)
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,set)
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2031 ,);;
2032 *)
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w=`echo x $ac_old_val`
2036 ac_new_val_w=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2041 else
2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\$ac_old_val
2045 fi
2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2047 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2049 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2050 fi;;
2051 esac
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2054 case $ac_new_val in
2055 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 *) ac_arg=$ac_var=$ac_new_val ;;
2057 esac
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061 esac
2062 fi
2063 done
2064 if $ac_cache_corrupted; then
2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071 { (exit 1); exit 1; }; }
2072 fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098 ac_ext=c
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
2104
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112 for ac_prog in gawk mawk nawk awk
2113 do
2114 # Extract the first word of "$ac_prog", so it can be a program name with args.
2115 set dummy $ac_prog; ac_word=$2
2116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 $as_echo_n "checking for $ac_word... " >&6; }
2118 if test "${ac_cv_prog_AWK+set}" = set; then
2119 $as_echo_n "(cached) " >&6
2120 else
2121 if test -n "$AWK"; then
2122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_AWK="$ac_prog"
2132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2134 fi
2135 done
2136 done
2137 IFS=$as_save_IFS
2138
2139 fi
2140 fi
2141 AWK=$ac_cv_prog_AWK
2142 if test -n "$AWK"; then
2143 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2144 $as_echo "$AWK" >&6; }
2145 else
2146 { $as_echo "$as_me:$LINENO: result: no" >&5
2147 $as_echo "no" >&6; }
2148 fi
2149
2150
2151 test -n "$AWK" && break
2152 done
2153
2154 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2155 $as_echo_n "checking metadata... " >&6; }
2156
2157 META="$srcdir/META"
2158 _spl_ac_meta_type="none"
2159 if test -f "$META"; then
2160 _spl_ac_meta_type="META file"
2161
2162 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2163 if test -n "$SPL_META_NAME"; then
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define SPL_META_NAME "$SPL_META_NAME"
2167 _ACEOF
2168
2169
2170 fi
2171
2172 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2173 if test -n "$SPL_META_VERSION"; then
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define SPL_META_VERSION "$SPL_META_VERSION"
2177 _ACEOF
2178
2179
2180 fi
2181
2182 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2183 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2184 _match="${SPL_META_NAME}-${SPL_META_VERSION}"
2185 _alias=$(git describe --match=${_match} 2>/dev/null)
2186 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2187 if test -n "${_release}"; then
2188 SPL_META_RELEASE=${_release}
2189 _spl_ac_meta_type="git describe"
2190 fi
2191 fi
2192
2193 if test -n "$SPL_META_RELEASE"; then
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2197 _ACEOF
2198
2199
2200
2201 RELEASE="$SPL_META_RELEASE"
2202
2203 fi
2204
2205 SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2206 if test -n "$SPL_META_LICENSE"; then
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define SPL_META_LICENSE "$SPL_META_LICENSE"
2210 _ACEOF
2211
2212
2213 fi
2214
2215 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2216 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2217 test -n "$SPL_META_RELEASE" &&
2218 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2222 _ACEOF
2223
2224
2225 fi
2226
2227 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2228 if test -n "$SPL_META_DATA"; then
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define SPL_META_DATA "$SPL_META_DATA"
2232 _ACEOF
2233
2234
2235 fi
2236
2237 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2238 if test -n "$SPL_META_AUTHOR"; then
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2242 _ACEOF
2243
2244
2245 fi
2246
2247
2248 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2249 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2250 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2251 if test -n "$SPL_META_LT_CURRENT" \
2252 -o -n "$SPL_META_LT_REVISION" \
2253 -o -n "$SPL_META_LT_AGE"; then
2254 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2255 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2256 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2260 _ACEOF
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2265 _ACEOF
2266
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2270 _ACEOF
2271
2272
2273
2274
2275 fi
2276 fi
2277
2278 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_type" >&5
2279 $as_echo "$_spl_ac_meta_type" >&6; }
2280
2281
2282 ac_aux_dir=
2283 for ac_dir in config "$srcdir"/config; do
2284 if test -f "$ac_dir/install-sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 break
2288 elif test -f "$ac_dir/install.sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 break
2292 elif test -f "$ac_dir/shtool"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/shtool install -c"
2295 break
2296 fi
2297 done
2298 if test -z "$ac_aux_dir"; then
2299 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2300 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2301 { (exit 1); exit 1; }; }
2302 fi
2303
2304 # These three variables are undocumented and unsupported,
2305 # and are intended to be withdrawn in a future Autoconf release.
2306 # They can cause serious problems if a builder's source tree is in a directory
2307 # whose full name contains unusual characters.
2308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311
2312
2313
2314 # Make sure we can run config.sub.
2315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2316 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2317 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2318 { (exit 1); exit 1; }; }
2319
2320 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2321 $as_echo_n "checking build system type... " >&6; }
2322 if test "${ac_cv_build+set}" = set; then
2323 $as_echo_n "(cached) " >&6
2324 else
2325 ac_build_alias=$build_alias
2326 test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328 test "x$ac_build_alias" = x &&
2329 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2330 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2331 { (exit 1); exit 1; }; }
2332 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2333 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2334 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2335 { (exit 1); exit 1; }; }
2336
2337 fi
2338 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2339 $as_echo "$ac_cv_build" >&6; }
2340 case $ac_cv_build in
2341 *-*-*) ;;
2342 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2343 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2344 { (exit 1); exit 1; }; };;
2345 esac
2346 build=$ac_cv_build
2347 ac_save_IFS=$IFS; IFS='-'
2348 set x $ac_cv_build
2349 shift
2350 build_cpu=$1
2351 build_vendor=$2
2352 shift; shift
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2355 build_os=$*
2356 IFS=$ac_save_IFS
2357 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2358
2359
2360 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2361 $as_echo_n "checking host system type... " >&6; }
2362 if test "${ac_cv_host+set}" = set; then
2363 $as_echo_n "(cached) " >&6
2364 else
2365 if test "x$host_alias" = x; then
2366 ac_cv_host=$ac_cv_build
2367 else
2368 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2369 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2370 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2371 { (exit 1); exit 1; }; }
2372 fi
2373
2374 fi
2375 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2376 $as_echo "$ac_cv_host" >&6; }
2377 case $ac_cv_host in
2378 *-*-*) ;;
2379 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2380 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2381 { (exit 1); exit 1; }; };;
2382 esac
2383 host=$ac_cv_host
2384 ac_save_IFS=$IFS; IFS='-'
2385 set x $ac_cv_host
2386 shift
2387 host_cpu=$1
2388 host_vendor=$2
2389 shift; shift
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2392 host_os=$*
2393 IFS=$ac_save_IFS
2394 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2395
2396
2397 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2398 $as_echo_n "checking target system type... " >&6; }
2399 if test "${ac_cv_target+set}" = set; then
2400 $as_echo_n "(cached) " >&6
2401 else
2402 if test "x$target_alias" = x; then
2403 ac_cv_target=$ac_cv_host
2404 else
2405 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2406 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2407 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2408 { (exit 1); exit 1; }; }
2409 fi
2410
2411 fi
2412 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2413 $as_echo "$ac_cv_target" >&6; }
2414 case $ac_cv_target in
2415 *-*-*) ;;
2416 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2417 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2418 { (exit 1); exit 1; }; };;
2419 esac
2420 target=$ac_cv_target
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_target
2423 shift
2424 target_cpu=$1
2425 target_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 target_os=$*
2430 IFS=$ac_save_IFS
2431 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2432
2433
2434 # The aliases save the names the user supplied, while $host etc.
2435 # will get canonicalized.
2436 test -n "$target_alias" &&
2437 test "$program_prefix$program_suffix$program_transform_name" = \
2438 NONENONEs,x,x, &&
2439 program_prefix=${target_alias}-
2440
2441 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2442 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2443 # Check whether --enable-maintainer-mode was given.
2444 if test "${enable_maintainer_mode+set}" = set; then
2445 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2446 else
2447 USE_MAINTAINER_MODE=no
2448 fi
2449
2450 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2451 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2452 if test $USE_MAINTAINER_MODE = yes; then
2453 MAINTAINER_MODE_TRUE=
2454 MAINTAINER_MODE_FALSE='#'
2455 else
2456 MAINTAINER_MODE_TRUE='#'
2457 MAINTAINER_MODE_FALSE=
2458 fi
2459
2460 MAINT=$MAINTAINER_MODE_TRUE
2461
2462
2463 # Check whether --enable-silent-rules was given.
2464 if test "${enable_silent_rules+set}" = set; then
2465 enableval=$enable_silent_rules;
2466 fi
2467
2468 case $enable_silent_rules in
2469 yes) AM_DEFAULT_VERBOSITY=0;;
2470 no) AM_DEFAULT_VERBOSITY=1;;
2471 *) AM_DEFAULT_VERBOSITY=0;;
2472 esac
2473 AM_BACKSLASH='\'
2474
2475 am__api_version='1.11'
2476
2477 # Find a good install program. We prefer a C program (faster),
2478 # so one script is as good as another. But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2483 # AIX /bin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # OS/2's system install, which has a completely different semantic
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 # Reject install programs that cannot install multiple files.
2491 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2493 if test -z "$INSTALL"; then
2494 if test "${ac_cv_path_install+set}" = set; then
2495 $as_echo_n "(cached) " >&6
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 # Account for people who put trailing slashes in PATH elements.
2503 case $as_dir/ in
2504 ./ | .// | /cC/* | \
2505 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2506 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2507 /usr/ucb/* ) ;;
2508 *)
2509 # OSF1 and SCO ODT 3.0 have their own names for install.
2510 # Don't use installbsd from OSF since it installs stuff as root
2511 # by default.
2512 for ac_prog in ginstall scoinst install; do
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2515 if test $ac_prog = install &&
2516 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # AIX install. It has an incompatible calling convention.
2518 :
2519 elif test $ac_prog = install &&
2520 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # program-specific install script used by HP pwplus--don't use.
2522 :
2523 else
2524 rm -rf conftest.one conftest.two conftest.dir
2525 echo one > conftest.one
2526 echo two > conftest.two
2527 mkdir conftest.dir
2528 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2529 test -s conftest.one && test -s conftest.two &&
2530 test -s conftest.dir/conftest.one &&
2531 test -s conftest.dir/conftest.two
2532 then
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534 break 3
2535 fi
2536 fi
2537 fi
2538 done
2539 done
2540 ;;
2541 esac
2542
2543 done
2544 IFS=$as_save_IFS
2545
2546 rm -rf conftest.one conftest.two conftest.dir
2547
2548 fi
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2551 else
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 INSTALL=$ac_install_sh
2557 fi
2558 fi
2559 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2560 $as_echo "$INSTALL" >&6; }
2561
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571 $as_echo_n "checking whether build environment is sane... " >&6; }
2572 # Just in case
2573 sleep 1
2574 echo timestamp > conftest.file
2575 # Reject unsafe characters in $srcdir or the absolute working directory
2576 # name. Accept space and tab only in the latter.
2577 am_lf='
2578 '
2579 case `pwd` in
2580 *[\\\"\#\$\&\'\`$am_lf]*)
2581 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2582 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2583 { (exit 1); exit 1; }; };;
2584 esac
2585 case $srcdir in
2586 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2587 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2588 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2589 { (exit 1); exit 1; }; };;
2590 esac
2591
2592 # Do `set' in a subshell so we don't clobber the current shell's
2593 # arguments. Must try -L first in case configure is actually a
2594 # symlink; some systems play weird games with the mod time of symlinks
2595 # (eg FreeBSD returns the mod time of the symlink's containing
2596 # directory).
2597 if (
2598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2599 if test "$*" = "X"; then
2600 # -L didn't work.
2601 set X `ls -t "$srcdir/configure" conftest.file`
2602 fi
2603 rm -f conftest.file
2604 if test "$*" != "X $srcdir/configure conftest.file" \
2605 && test "$*" != "X conftest.file $srcdir/configure"; then
2606
2607 # If neither matched, then we have a broken ls. This can happen
2608 # if, for instance, CONFIG_SHELL is bash and it inherits a
2609 # broken ls alias from the environment. This has actually
2610 # happened. Such a system could not be considered "sane".
2611 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2612 alias in your environment" >&5
2613 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2614 alias in your environment" >&2;}
2615 { (exit 1); exit 1; }; }
2616 fi
2617
2618 test "$2" = conftest.file
2619 )
2620 then
2621 # Ok.
2622 :
2623 else
2624 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2625 Check your system clock" >&5
2626 $as_echo "$as_me: error: newly created file is older than distributed files!
2627 Check your system clock" >&2;}
2628 { (exit 1); exit 1; }; }
2629 fi
2630 { $as_echo "$as_me:$LINENO: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632 test "$program_prefix" != NONE &&
2633 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2634 # Use a double $ so make ignores it.
2635 test "$program_suffix" != NONE &&
2636 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2637 # Double any \ or $.
2638 # By default was `s,x,x', remove it if useless.
2639 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2640 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2641
2642 # expand $ac_aux_dir to an absolute path
2643 am_aux_dir=`cd $ac_aux_dir && pwd`
2644
2645 if test x"${MISSING+set}" != xset; then
2646 case $am_aux_dir in
2647 *\ * | *\ *)
2648 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2649 *)
2650 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2651 esac
2652 fi
2653 # Use eval to expand $SHELL
2654 if eval "$MISSING --run true"; then
2655 am_missing_run="$MISSING --run "
2656 else
2657 am_missing_run=
2658 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2659 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2660 fi
2661
2662 if test x"${install_sh}" != xset; then
2663 case $am_aux_dir in
2664 *\ * | *\ *)
2665 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2666 *)
2667 install_sh="\${SHELL} $am_aux_dir/install-sh"
2668 esac
2669 fi
2670
2671 # Installed binaries are usually stripped using `strip' when the user
2672 # run `make install-strip'. However `strip' might not be the right
2673 # tool to use in cross-compilation environments, therefore Automake
2674 # will honor the `STRIP' environment variable to overrule this program.
2675 if test "$cross_compiling" != no; then
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}strip; ac_word=$2
2679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_STRIP+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$STRIP"; then
2685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 STRIP=$ac_cv_prog_STRIP
2705 if test -n "$STRIP"; then
2706 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2707 $as_echo "$STRIP" >&6; }
2708 else
2709 { $as_echo "$as_me:$LINENO: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$ac_cv_prog_STRIP"; then
2716 ac_ct_STRIP=$STRIP
2717 # Extract the first word of "strip", so it can be a program name with args.
2718 set dummy strip; ac_word=$2
2719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$ac_ct_STRIP"; then
2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_STRIP="strip"
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2745 if test -n "$ac_ct_STRIP"; then
2746 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2747 $as_echo "$ac_ct_STRIP" >&6; }
2748 else
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753 if test "x$ac_ct_STRIP" = x; then
2754 STRIP=":"
2755 else
2756 case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2761 esac
2762 STRIP=$ac_ct_STRIP
2763 fi
2764 else
2765 STRIP="$ac_cv_prog_STRIP"
2766 fi
2767
2768 fi
2769 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2770
2771 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2772 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2773 if test -z "$MKDIR_P"; then
2774 if test "${ac_cv_path_mkdir+set}" = set; then
2775 $as_echo_n "(cached) " >&6
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_prog in mkdir gmkdir; do
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2786 'mkdir (GNU coreutils) '* | \
2787 'mkdir (coreutils) '* | \
2788 'mkdir (fileutils) '4.1*)
2789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2790 break 3;;
2791 esac
2792 done
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798
2799 if test "${ac_cv_path_mkdir+set}" = set; then
2800 MKDIR_P="$ac_cv_path_mkdir -p"
2801 else
2802 # As a last resort, use the slow shell script. Don't cache a
2803 # value for MKDIR_P within a source directory, because that will
2804 # break other packages using the cache if that directory is
2805 # removed, or if the value is a relative name.
2806 test -d ./--version && rmdir ./--version
2807 MKDIR_P="$ac_install_sh -d"
2808 fi
2809 fi
2810 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2811 $as_echo "$MKDIR_P" >&6; }
2812
2813 mkdir_p="$MKDIR_P"
2814 case $mkdir_p in
2815 [\\/$]* | ?:[\\/]*) ;;
2816 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2817 esac
2818
2819 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2820 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2821 set x ${MAKE-make}
2822 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2823 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2824 $as_echo_n "(cached) " >&6
2825 else
2826 cat >conftest.make <<\_ACEOF
2827 SHELL = /bin/sh
2828 all:
2829 @echo '@@@%%%=$(MAKE)=@@@%%%'
2830 _ACEOF
2831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2832 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2833 *@@@%%%=?*=@@@%%%*)
2834 eval ac_cv_prog_make_${ac_make}_set=yes;;
2835 *)
2836 eval ac_cv_prog_make_${ac_make}_set=no;;
2837 esac
2838 rm -f conftest.make
2839 fi
2840 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2841 { $as_echo "$as_me:$LINENO: result: yes" >&5
2842 $as_echo "yes" >&6; }
2843 SET_MAKE=
2844 else
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2847 SET_MAKE="MAKE=${MAKE-make}"
2848 fi
2849
2850 rm -rf .tst 2>/dev/null
2851 mkdir .tst 2>/dev/null
2852 if test -d .tst; then
2853 am__leading_dot=.
2854 else
2855 am__leading_dot=_
2856 fi
2857 rmdir .tst 2>/dev/null
2858
2859 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2860 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2861 # is not polluted with repeated "-I."
2862 am__isrc=' -I$(srcdir)'
2863 # test to see if srcdir already configured
2864 if test -f $srcdir/config.status; then
2865 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2866 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2867 { (exit 1); exit 1; }; }
2868 fi
2869 fi
2870
2871 # test whether we have cygpath
2872 if test -z "$CYGPATH_W"; then
2873 if (cygpath --version) >/dev/null 2>/dev/null; then
2874 CYGPATH_W='cygpath -w'
2875 else
2876 CYGPATH_W=echo
2877 fi
2878 fi
2879
2880
2881 # Define the identity of the package.
2882 PACKAGE='spl'
2883 VERSION='0.6.5.11'
2884
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE "$PACKAGE"
2888 _ACEOF
2889
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define VERSION "$VERSION"
2893 _ACEOF
2894
2895 # Some tools Automake needs.
2896
2897 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2898
2899
2900 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2901
2902
2903 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2904
2905
2906 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2907
2908
2909 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2910
2911 # We need awk for the "check" target. The system "awk" is bad on
2912 # some platforms.
2913 # Always define AMTAR for backward compatibility.
2914
2915 AMTAR=${AMTAR-"${am_missing_run}tar"}
2916
2917 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2918
2919
2920
2921
2922
2923 ac_config_headers="$ac_config_headers spl_config.h"
2924
2925
2926 # Find a good install program. We prefer a C program (faster),
2927 # so one script is as good as another. But avoid the broken or
2928 # incompatible versions:
2929 # SysV /etc/install, /usr/sbin/install
2930 # SunOS /usr/etc/install
2931 # IRIX /sbin/install
2932 # AIX /bin/install
2933 # AmigaOS /C/install, which installs bootblocks on floppy discs
2934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2937 # OS/2's system install, which has a completely different semantic
2938 # ./install, which can be erroneously created by make from ./install.sh.
2939 # Reject install programs that cannot install multiple files.
2940 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2942 if test -z "$INSTALL"; then
2943 if test "${ac_cv_path_install+set}" = set; then
2944 $as_echo_n "(cached) " >&6
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 # Account for people who put trailing slashes in PATH elements.
2952 case $as_dir/ in
2953 ./ | .// | /cC/* | \
2954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2956 /usr/ucb/* ) ;;
2957 *)
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2960 # by default.
2961 for ac_prog in ginstall scoinst install; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2964 if test $ac_prog = install &&
2965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # AIX install. It has an incompatible calling convention.
2967 :
2968 elif test $ac_prog = install &&
2969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # program-specific install script used by HP pwplus--don't use.
2971 :
2972 else
2973 rm -rf conftest.one conftest.two conftest.dir
2974 echo one > conftest.one
2975 echo two > conftest.two
2976 mkdir conftest.dir
2977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2978 test -s conftest.one && test -s conftest.two &&
2979 test -s conftest.dir/conftest.one &&
2980 test -s conftest.dir/conftest.two
2981 then
2982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2983 break 3
2984 fi
2985 fi
2986 fi
2987 done
2988 done
2989 ;;
2990 esac
2991
2992 done
2993 IFS=$as_save_IFS
2994
2995 rm -rf conftest.one conftest.two conftest.dir
2996
2997 fi
2998 if test "${ac_cv_path_install+set}" = set; then
2999 INSTALL=$ac_cv_path_install
3000 else
3001 # As a last resort, use the slow shell script. Don't cache a
3002 # value for INSTALL within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the value is a relative name.
3005 INSTALL=$ac_install_sh
3006 fi
3007 fi
3008 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3009 $as_echo "$INSTALL" >&6; }
3010
3011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3012 # It thinks the first close brace ends the variable substitution.
3013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3014
3015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3016
3017 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:$LINENO: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_CC"; then
3064 ac_ct_CC=$CC
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc; ac_word=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC="gcc"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3096 else
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101 if test "x$ac_ct_CC" = x; then
3102 CC=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 CC=$ac_ct_CC
3111 fi
3112 else
3113 CC="$ac_cv_prog_CC"
3114 fi
3115
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}cc; ac_word=$2
3120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_CC+set}" = set; then
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_CC="${ac_tool_prefix}cc"
3136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150 { $as_echo "$as_me:$LINENO: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 fi
3157 if test -z "$CC"; then
3158 # Extract the first word of "cc", so it can be a program name with args.
3159 set dummy cc; ac_word=$2
3160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 ac_prog_rejected=no
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177 ac_prog_rejected=yes
3178 continue
3179 fi
3180 ac_cv_prog_CC="cc"
3181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 if test $ac_prog_rejected = yes; then
3189 # We found a bogon in the path, so make sure we never use it.
3190 set dummy $ac_cv_prog_CC
3191 shift
3192 if test $# != 0; then
3193 # We chose a different compiler from the bogus one.
3194 # However, it has the same basename, so the bogon will be chosen
3195 # first if we set CC to just the basename; use the full file name.
3196 shift
3197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3198 fi
3199 fi
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207 { $as_echo "$as_me:$LINENO: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212 fi
3213 if test -z "$CC"; then
3214 if test -n "$ac_tool_prefix"; then
3215 for ac_prog in cl.exe
3216 do
3217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_CC+set}" = set; then
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3248 else
3249 { $as_echo "$as_me:$LINENO: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254 test -n "$CC" && break
3255 done
3256 fi
3257 if test -z "$CC"; then
3258 ac_ct_CC=$CC
3259 for ac_prog in cl.exe
3260 do
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$ac_ct_CC"; then
3269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_ac_ct_CC="$ac_prog"
3279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289 if test -n "$ac_ct_CC"; then
3290 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3291 $as_echo "$ac_ct_CC" >&6; }
3292 else
3293 { $as_echo "$as_me:$LINENO: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298 test -n "$ac_ct_CC" && break
3299 done
3300
3301 if test "x$ac_ct_CC" = x; then
3302 CC=""
3303 else
3304 case $cross_compiling:$ac_tool_warned in
3305 yes:)
3306 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned=yes ;;
3309 esac
3310 CC=$ac_ct_CC
3311 fi
3312 fi
3313
3314 fi
3315
3316
3317 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3320 See \`config.log' for more details." >&5
3321 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3322 See \`config.log' for more details." >&2;}
3323 { (exit 1); exit 1; }; }; }
3324
3325 # Provide some information about the compiler.
3326 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3327 set X $ac_compile
3328 ac_compiler=$2
3329 { (ac_try="$ac_compiler --version >&5"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335 $as_echo "$ac_try_echo") >&5
3336 (eval "$ac_compiler --version >&5") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3340 { (ac_try="$ac_compiler -v >&5"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler -v >&5") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351 { (ac_try="$ac_compiler -V >&5"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -V >&5") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369
3370 int
3371 main ()
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 ac_clean_files_save=$ac_clean_files
3379 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3380 # Try to create an executable without -o first, disregard a.out.
3381 # It will help us diagnose broken compilers, and finding out an intuition
3382 # of exeext.
3383 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3384 $as_echo_n "checking for C compiler default output file name... " >&6; }
3385 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3386
3387 # The possible output files:
3388 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3389
3390 ac_rmfiles=
3391 for ac_file in $ac_files
3392 do
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3396 esac
3397 done
3398 rm -f $ac_rmfiles
3399
3400 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3412 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3413 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3414 # so that the user can short-circuit this test for compilers unknown to
3415 # Autoconf.
3416 for ac_file in $ac_files ''
3417 do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3421 ;;
3422 [ab].out )
3423 # We found the default executable, but exeext='' is most
3424 # certainly right.
3425 break;;
3426 *.* )
3427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3428 then :; else
3429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 fi
3431 # We set ac_cv_exeext here because the later test for it is not
3432 # safe: cross compilers may not add the suffix if given an `-o'
3433 # argument, so we may need to know it at that point already.
3434 # Even if this section looks crufty: it has the advantage of
3435 # actually working.
3436 break;;
3437 * )
3438 break;;
3439 esac
3440 done
3441 test "$ac_cv_exeext" = no && ac_cv_exeext=
3442
3443 else
3444 ac_file=''
3445 fi
3446
3447 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3448 $as_echo "$ac_file" >&6; }
3449 if test -z "$ac_file"; then
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3456 See \`config.log' for more details." >&5
3457 $as_echo "$as_me: error: C compiler cannot create executables
3458 See \`config.log' for more details." >&2;}
3459 { (exit 77); exit 77; }; }; }
3460 fi
3461
3462 ac_exeext=$ac_cv_exeext
3463
3464 # Check that the compiler produces executables we can run. If not, either
3465 # the compiler is broken, or we cross compile.
3466 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3467 $as_echo_n "checking whether the C compiler works... " >&6; }
3468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3469 # If not cross compiling, check that we can run a simple program.
3470 if test "$cross_compiling" != yes; then
3471 if { ac_try='./$ac_file'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477 $as_echo "$ac_try_echo") >&5
3478 (eval "$ac_try") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 cross_compiling=no
3483 else
3484 if test "$cross_compiling" = maybe; then
3485 cross_compiling=yes
3486 else
3487 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3490 If you meant to cross compile, use \`--host'.
3491 See \`config.log' for more details." >&5
3492 $as_echo "$as_me: error: cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }; }
3496 fi
3497 fi
3498 fi
3499 { $as_echo "$as_me:$LINENO: result: yes" >&5
3500 $as_echo "yes" >&6; }
3501
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 # Check that the compiler produces executables we can run. If not, either
3505 # the compiler is broken, or we cross compile.
3506 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3507 $as_echo_n "checking whether we are cross compiling... " >&6; }
3508 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3509 $as_echo "$cross_compiling" >&6; }
3510
3511 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3512 $as_echo_n "checking for suffix of executables... " >&6; }
3513 if { (ac_try="$ac_link"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_link") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; then
3524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3526 # work properly (i.e., refer to `conftest.exe'), while it won't with
3527 # `rm'.
3528 for ac_file in conftest.exe conftest conftest.*; do
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533 break;;
3534 * ) break;;
3535 esac
3536 done
3537 else
3538 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }; }
3545 fi
3546
3547 rm -f conftest$ac_cv_exeext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3549 $as_echo "$ac_cv_exeext" >&6; }
3550
3551 rm -f conftest.$ac_ext
3552 EXEEXT=$ac_cv_exeext
3553 ac_exeext=$EXEEXT
3554 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if test "${ac_cv_objext+set}" = set; then
3557 $as_echo_n "(cached) " >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.o conftest.obj
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581 $as_echo "$ac_try_echo") >&5
3582 (eval "$ac_compile") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; then
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591 break;;
3592 esac
3593 done
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
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 object files: cannot compile
3601 See \`config.log' for more details." >&5
3602 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3603 See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }; }
3605 fi
3606
3607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608 fi
3609 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3610 $as_echo "$ac_cv_objext" >&6; }
3611 OBJEXT=$ac_cv_objext
3612 ac_objext=$OBJEXT
3613 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3616 $as_echo_n "(cached) " >&6
3617 else
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624
3625 int
3626 main ()
3627 {
3628 #ifndef __GNUC__
3629 choke me
3630 #endif
3631
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.$ac_objext
3637 if { (ac_try="$ac_compile"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643 $as_echo "$ac_try_echo") >&5
3644 (eval "$ac_compile") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && {
3651 test -z "$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3653 } && test -s conftest.$ac_objext; then
3654 ac_compiler_gnu=yes
3655 else
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 ac_compiler_gnu=no
3660 fi
3661
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664
3665 fi
3666 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3667 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3668 if test $ac_compiler_gnu = yes; then
3669 GCC=yes
3670 else
3671 GCC=
3672 fi
3673 ac_test_CFLAGS=${CFLAGS+set}
3674 ac_save_CFLAGS=$CFLAGS
3675 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3676 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3677 if test "${ac_cv_prog_cc_g+set}" = set; then
3678 $as_echo_n "(cached) " >&6
3679 else
3680 ac_save_c_werror_flag=$ac_c_werror_flag
3681 ac_c_werror_flag=yes
3682 ac_cv_prog_cc_g=no
3683 CFLAGS="-g"
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690
3691 int
3692 main ()
3693 {
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3717 ac_cv_prog_cc_g=yes
3718 else
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 CFLAGS=""
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729
3730 int
3731 main ()
3732 {
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745 $as_echo "$ac_try_echo") >&5
3746 (eval "$ac_compile") 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } && {
3753 test -z "$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3755 } && test -s conftest.$ac_objext; then
3756 :
3757 else
3758 $as_echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3762 CFLAGS="-g"
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h. */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3785 $as_echo "$ac_try_echo") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3796 ac_cv_prog_cc_g=yes
3797 else
3798 $as_echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801
3802 fi
3803
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 fi
3806
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3812 fi
3813 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3814 $as_echo "$ac_cv_prog_cc_g" >&6; }
3815 if test "$ac_test_CFLAGS" = set; then
3816 CFLAGS=$ac_save_CFLAGS
3817 elif test $ac_cv_prog_cc_g = yes; then
3818 if test "$GCC" = yes; then
3819 CFLAGS="-g -O2"
3820 else
3821 CFLAGS="-g"
3822 fi
3823 else
3824 if test "$GCC" = yes; then
3825 CFLAGS="-O2"
3826 else
3827 CFLAGS=
3828 fi
3829 fi
3830 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3831 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3832 if test "${ac_cv_prog_cc_c89+set}" = set; then
3833 $as_echo_n "(cached) " >&6
3834 else
3835 ac_cv_prog_cc_c89=no
3836 ac_save_CC=$CC
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #include <stdarg.h>
3844 #include <stdio.h>
3845 #include <sys/types.h>
3846 #include <sys/stat.h>
3847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3848 struct buf { int x; };
3849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3850 static char *e (p, i)
3851 char **p;
3852 int i;
3853 {
3854 return p[i];
3855 }
3856 static char *f (char * (*g) (char **, int), char **p, ...)
3857 {
3858 char *s;
3859 va_list v;
3860 va_start (v,p);
3861 s = g (p, va_arg (v,int));
3862 va_end (v);
3863 return s;
3864 }
3865
3866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3867 function prototypes and stuff, but not '\xHH' hex character constants.
3868 These don't provoke an error unfortunately, instead are silently treated
3869 as 'x'. The following induces an error, until -std is added to get
3870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3871 array size at least. It's necessary to write '\x00'==0 to get something
3872 that's true only with -std. */
3873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3874
3875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3876 inside strings and character constants. */
3877 #define FOO(x) 'x'
3878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3879
3880 int test (int i, double x);
3881 struct s1 {int (*f) (int a);};
3882 struct s2 {int (*f) (double a);};
3883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884 int argc;
3885 char **argv;
3886 int
3887 main ()
3888 {
3889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896 do
3897 CC="$ac_save_CC $ac_arg"
3898 rm -f conftest.$ac_objext
3899 if { (ac_try="$ac_compile"
3900 case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3905 $as_echo "$ac_try_echo") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3916 ac_cv_prog_cc_c89=$ac_arg
3917 else
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921
3922 fi
3923
3924 rm -f core conftest.err conftest.$ac_objext
3925 test "x$ac_cv_prog_cc_c89" != "xno" && break
3926 done
3927 rm -f conftest.$ac_ext
3928 CC=$ac_save_CC
3929
3930 fi
3931 # AC_CACHE_VAL
3932 case "x$ac_cv_prog_cc_c89" in
3933 x)
3934 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3935 $as_echo "none needed" >&6; } ;;
3936 xno)
3937 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3938 $as_echo "unsupported" >&6; } ;;
3939 *)
3940 CC="$CC $ac_cv_prog_cc_c89"
3941 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3943 esac
3944
3945
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 DEPDIR="${am__leading_dot}deps"
3952
3953 ac_config_commands="$ac_config_commands depfiles"
3954
3955
3956 am_make=${MAKE-make}
3957 cat > confinc << 'END'
3958 am__doit:
3959 @echo this is the am__doit target
3960 .PHONY: am__doit
3961 END
3962 # If we don't find an include directive, just comment out the code.
3963 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3964 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3965 am__include="#"
3966 am__quote=
3967 _am_result=none
3968 # First try GNU make style include.
3969 echo "include confinc" > confmf
3970 # Ignore all kinds of additional output from `make'.
3971 case `$am_make -s -f confmf 2> /dev/null` in #(
3972 *the\ am__doit\ target*)
3973 am__include=include
3974 am__quote=
3975 _am_result=GNU
3976 ;;
3977 esac
3978 # Now try BSD make style include.
3979 if test "$am__include" = "#"; then
3980 echo '.include "confinc"' > confmf
3981 case `$am_make -s -f confmf 2> /dev/null` in #(
3982 *the\ am__doit\ target*)
3983 am__include=.include
3984 am__quote="\""
3985 _am_result=BSD
3986 ;;
3987 esac
3988 fi
3989
3990
3991 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3992 $as_echo "$_am_result" >&6; }
3993 rm -f confinc confmf
3994
3995 # Check whether --enable-dependency-tracking was given.
3996 if test "${enable_dependency_tracking+set}" = set; then
3997 enableval=$enable_dependency_tracking;
3998 fi
3999
4000 if test "x$enable_dependency_tracking" != xno; then
4001 am_depcomp="$ac_aux_dir/depcomp"
4002 AMDEPBACKSLASH='\'
4003 fi
4004 if test "x$enable_dependency_tracking" != xno; then
4005 AMDEP_TRUE=
4006 AMDEP_FALSE='#'
4007 else
4008 AMDEP_TRUE='#'
4009 AMDEP_FALSE=
4010 fi
4011
4012
4013
4014 depcc="$CC" am_compiler_list=
4015
4016 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4017 $as_echo_n "checking dependency style of $depcc... " >&6; }
4018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4022 # We make a subdir and do the tests there. Otherwise we can end up
4023 # making bogus files that we don't know about and never remove. For
4024 # instance it was reported that on HP-UX the gcc test will end up
4025 # making a dummy file named `D' -- because `-MD' means `put the output
4026 # in D'.
4027 mkdir conftest.dir
4028 # Copy depcomp to subdir because otherwise we won't find it if we're
4029 # using a relative directory.
4030 cp "$am_depcomp" conftest.dir
4031 cd conftest.dir
4032 # We will build objects and dependencies in a subdirectory because
4033 # it helps to detect inapplicable dependency modes. For instance
4034 # both Tru64's cc and ICC support -MD to output dependencies as a
4035 # side effect of compilation, but ICC will put the dependencies in
4036 # the current directory while Tru64 will put them in the object
4037 # directory.
4038 mkdir sub
4039
4040 am_cv_CC_dependencies_compiler_type=none
4041 if test "$am_compiler_list" = ""; then
4042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4043 fi
4044 am__universal=false
4045 case " $depcc " in #(
4046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4047 esac
4048
4049 for depmode in $am_compiler_list; do
4050 # Setup a source with many dependencies, because some compilers
4051 # like to wrap large dependency lists on column 80 (with \), and
4052 # we should not choose a depcomp mode which is confused by this.
4053 #
4054 # We need to recreate these files for each test, as the compiler may
4055 # overwrite some of them when testing with obscure command lines.
4056 # This happens at least with the AIX C compiler.
4057 : > sub/conftest.c
4058 for i in 1 2 3 4 5 6; do
4059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4060 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4061 # Solaris 8's {/usr,}/bin/sh.
4062 touch sub/conftst$i.h
4063 done
4064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4065
4066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4067 # mode. It turns out that the SunPro C++ compiler does not properly
4068 # handle `-M -o', and we need to detect this. Also, some Intel
4069 # versions had trouble with output in subdirs
4070 am__obj=sub/conftest.${OBJEXT-o}
4071 am__minus_obj="-o $am__obj"
4072 case $depmode in
4073 gcc)
4074 # This depmode causes a compiler race in universal mode.
4075 test "$am__universal" = false || continue
4076 ;;
4077 nosideeffect)
4078 # after this tag, mechanisms are not by side-effect, so they'll
4079 # only be used when explicitly requested
4080 if test "x$enable_dependency_tracking" = xyes; then
4081 continue
4082 else
4083 break
4084 fi
4085 ;;
4086 msvisualcpp | msvcmsys)
4087 # This compiler won't grok `-c -o', but also, the minuso test has
4088 # not run yet. These depmodes are late enough in the game, and
4089 # so weak that their functioning should not be impacted.
4090 am__obj=conftest.${OBJEXT-o}
4091 am__minus_obj=
4092 ;;
4093 none) break ;;
4094 esac
4095 if depmode=$depmode \
4096 source=sub/conftest.c object=$am__obj \
4097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4099 >/dev/null 2>conftest.err &&
4100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4104 # icc doesn't choke on unknown options, it will just issue warnings
4105 # or remarks (even with -Werror). So we grep stderr for any message
4106 # that says an option was ignored or not supported.
4107 # When given -MP, icc 7.0 and 7.1 complain thusly:
4108 # icc: Command line warning: ignoring option '-M'; no argument required
4109 # The diagnosis changed in icc 8.0:
4110 # icc: Command line remark: option '-MP' not supported
4111 if (grep 'ignoring option' conftest.err ||
4112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4113 am_cv_CC_dependencies_compiler_type=$depmode
4114 break
4115 fi
4116 fi
4117 done
4118
4119 cd ..
4120 rm -rf conftest.dir
4121 else
4122 am_cv_CC_dependencies_compiler_type=none
4123 fi
4124
4125 fi
4126 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129
4130 if
4131 test "x$enable_dependency_tracking" != xno \
4132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133 am__fastdepCC_TRUE=
4134 am__fastdepCC_FALSE='#'
4135 else
4136 am__fastdepCC_TRUE='#'
4137 am__fastdepCC_FALSE=
4138 fi
4139
4140
4141 case `pwd` in
4142 *\ * | *\ *)
4143 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4144 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4145 esac
4146
4147
4148
4149 macro_version='2.2.6b'
4150 macro_revision='1.3017'
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 ltmain="$ac_aux_dir/ltmain.sh"
4165
4166 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4168 if test "${ac_cv_path_SED+set}" = set; then
4169 $as_echo_n "(cached) " >&6
4170 else
4171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4172 for ac_i in 1 2 3 4 5 6 7; do
4173 ac_script="$ac_script$as_nl$ac_script"
4174 done
4175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4176 $as_unset ac_script || ac_script=
4177 if test -z "$SED"; then
4178 ac_path_SED_found=false
4179 # Loop through the user's path and test for each of PROGNAME-LIST
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_prog in sed gsed; do
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4188 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4189 # Check for GNU ac_path_SED and select it if it is found.
4190 # Check for GNU $ac_path_SED
4191 case `"$ac_path_SED" --version 2>&1` in
4192 *GNU*)
4193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4194 *)
4195 ac_count=0
4196 $as_echo_n 0123456789 >"conftest.in"
4197 while :
4198 do
4199 cat "conftest.in" "conftest.in" >"conftest.tmp"
4200 mv "conftest.tmp" "conftest.in"
4201 cp "conftest.in" "conftest.nl"
4202 $as_echo '' >> "conftest.nl"
4203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4205 ac_count=`expr $ac_count + 1`
4206 if test $ac_count -gt ${ac_path_SED_max-0}; then
4207 # Best one so far, save it but keep looking for a better one
4208 ac_cv_path_SED="$ac_path_SED"
4209 ac_path_SED_max=$ac_count
4210 fi
4211 # 10*(2^10) chars as input seems more than enough
4212 test $ac_count -gt 10 && break
4213 done
4214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215 esac
4216
4217 $ac_path_SED_found && break 3
4218 done
4219 done
4220 done
4221 IFS=$as_save_IFS
4222 if test -z "$ac_cv_path_SED"; then
4223 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4224 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4225 { (exit 1); exit 1; }; }
4226 fi
4227 else
4228 ac_cv_path_SED=$SED
4229 fi
4230
4231 fi
4232 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4233 $as_echo "$ac_cv_path_SED" >&6; }
4234 SED="$ac_cv_path_SED"
4235 rm -f conftest.sed
4236
4237 test -z "$SED" && SED=sed
4238 Xsed="$SED -e 1s/^X//"
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4251 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4252 if test "${ac_cv_path_GREP+set}" = set; then
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if test -z "$GREP"; then
4256 ac_path_GREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in grep ggrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4267 # Check for GNU ac_path_GREP and select it if it is found.
4268 # Check for GNU $ac_path_GREP
4269 case `"$ac_path_GREP" --version 2>&1` in
4270 *GNU*)
4271 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4272 *)
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4276 do
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'GREP' >> "conftest.nl"
4281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 ac_count=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_GREP="$ac_path_GREP"
4287 ac_path_GREP_max=$ac_count
4288 fi
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 esac
4294
4295 $ac_path_GREP_found && break 3
4296 done
4297 done
4298 done
4299 IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_GREP"; then
4301 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4302 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4303 { (exit 1); exit 1; }; }
4304 fi
4305 else
4306 ac_cv_path_GREP=$GREP
4307 fi
4308
4309 fi
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4311 $as_echo "$ac_cv_path_GREP" >&6; }
4312 GREP="$ac_cv_path_GREP"
4313
4314
4315 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4316 $as_echo_n "checking for egrep... " >&6; }
4317 if test "${ac_cv_path_EGREP+set}" = set; then
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4321 then ac_cv_path_EGREP="$GREP -E"
4322 else
4323 if test -z "$EGREP"; then
4324 ac_path_EGREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in egrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4334 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4335 # Check for GNU ac_path_EGREP and select it if it is found.
4336 # Check for GNU $ac_path_EGREP
4337 case `"$ac_path_EGREP" --version 2>&1` in
4338 *GNU*)
4339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4340 *)
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4344 do
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'EGREP' >> "conftest.nl"
4349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 ac_count=`expr $ac_count + 1`
4352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_EGREP="$ac_path_EGREP"
4355 ac_path_EGREP_max=$ac_count
4356 fi
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4362
4363 $ac_path_EGREP_found && break 3
4364 done
4365 done
4366 done
4367 IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_EGREP"; then
4369 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4370 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4371 { (exit 1); exit 1; }; }
4372 fi
4373 else
4374 ac_cv_path_EGREP=$EGREP
4375 fi
4376
4377 fi
4378 fi
4379 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4380 $as_echo "$ac_cv_path_EGREP" >&6; }
4381 EGREP="$ac_cv_path_EGREP"
4382
4383
4384 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4385 $as_echo_n "checking for fgrep... " >&6; }
4386 if test "${ac_cv_path_FGREP+set}" = set; then
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4390 then ac_cv_path_FGREP="$GREP -F"
4391 else
4392 if test -z "$FGREP"; then
4393 ac_path_FGREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in fgrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4403 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4404 # Check for GNU ac_path_FGREP and select it if it is found.
4405 # Check for GNU $ac_path_FGREP
4406 case `"$ac_path_FGREP" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4409 *)
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'FGREP' >> "conftest.nl"
4418 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 ac_count=`expr $ac_count + 1`
4421 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_FGREP="$ac_path_FGREP"
4424 ac_path_FGREP_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4431
4432 $ac_path_FGREP_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_FGREP"; then
4438 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4439 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4440 { (exit 1); exit 1; }; }
4441 fi
4442 else
4443 ac_cv_path_FGREP=$FGREP
4444 fi
4445
4446 fi
4447 fi
4448 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4449 $as_echo "$ac_cv_path_FGREP" >&6; }
4450 FGREP="$ac_cv_path_FGREP"
4451
4452
4453 test -z "$GREP" && GREP=grep
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473 # Check whether --with-gnu-ld was given.
4474 if test "${with_gnu_ld+set}" = set; then
4475 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4476 else
4477 with_gnu_ld=no
4478 fi
4479
4480 ac_prog=ld
4481 if test "$GCC" = yes; then
4482 # Check if gcc -print-prog-name=ld gives a path.
4483 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4484 $as_echo_n "checking for ld used by $CC... " >&6; }
4485 case $host in
4486 *-*-mingw*)
4487 # gcc leaves a trailing carriage return which upsets mingw
4488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4489 *)
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4491 esac
4492 case $ac_prog in
4493 # Accept absolute paths.
4494 [\\/]* | ?:[\\/]*)
4495 re_direlt='/[^/][^/]*/\.\./'
4496 # Canonicalize the pathname of ld
4497 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4498 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4499 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4500 done
4501 test -z "$LD" && LD="$ac_prog"
4502 ;;
4503 "")
4504 # If it fails, then pretend we aren't using GCC.
4505 ac_prog=ld
4506 ;;
4507 *)
4508 # If it is relative, then search for the first ld in PATH.
4509 with_gnu_ld=unknown
4510 ;;
4511 esac
4512 elif test "$with_gnu_ld" = yes; then
4513 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4514 $as_echo_n "checking for GNU ld... " >&6; }
4515 else
4516 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4517 $as_echo_n "checking for non-GNU ld... " >&6; }
4518 fi
4519 if test "${lt_cv_path_LD+set}" = set; then
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -z "$LD"; then
4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524 for ac_dir in $PATH; do
4525 IFS="$lt_save_ifs"
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4528 lt_cv_path_LD="$ac_dir/$ac_prog"
4529 # Check to see if the program is GNU ld. I'd rather use --version,
4530 # but apparently some variants of GNU ld only accept -v.
4531 # Break only if it was the GNU/non-GNU ld that we prefer.
4532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4533 *GNU* | *'with BFD'*)
4534 test "$with_gnu_ld" != no && break
4535 ;;
4536 *)
4537 test "$with_gnu_ld" != yes && break
4538 ;;
4539 esac
4540 fi
4541 done
4542 IFS="$lt_save_ifs"
4543 else
4544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4545 fi
4546 fi
4547
4548 LD="$lt_cv_path_LD"
4549 if test -n "$LD"; then
4550 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4551 $as_echo "$LD" >&6; }
4552 else
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554 $as_echo "no" >&6; }
4555 fi
4556 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4557 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4561 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4562 $as_echo_n "(cached) " >&6
4563 else
4564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565 case `$LD -v 2>&1 </dev/null` in
4566 *GNU* | *'with BFD'*)
4567 lt_cv_prog_gnu_ld=yes
4568 ;;
4569 *)
4570 lt_cv_prog_gnu_ld=no
4571 ;;
4572 esac
4573 fi
4574 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4576 with_gnu_ld=$lt_cv_prog_gnu_ld
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4587 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4588 if test "${lt_cv_path_NM+set}" = set; then
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$NM"; then
4592 # Let the user override the test.
4593 lt_cv_path_NM="$NM"
4594 else
4595 lt_nm_to_check="${ac_tool_prefix}nm"
4596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4597 lt_nm_to_check="$lt_nm_to_check nm"
4598 fi
4599 for lt_tmp_nm in $lt_nm_to_check; do
4600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4602 IFS="$lt_save_ifs"
4603 test -z "$ac_dir" && ac_dir=.
4604 tmp_nm="$ac_dir/$lt_tmp_nm"
4605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4606 # Check to see if the nm accepts a BSD-compat flag.
4607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4608 # nm: unknown option "B" ignored
4609 # Tru64's nm complains that /dev/null is an invalid object file
4610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4611 */dev/null* | *'Invalid file or object type'*)
4612 lt_cv_path_NM="$tmp_nm -B"
4613 break
4614 ;;
4615 *)
4616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4617 */dev/null*)
4618 lt_cv_path_NM="$tmp_nm -p"
4619 break
4620 ;;
4621 *)
4622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4623 continue # so that we can try to find one that supports BSD flags
4624 ;;
4625 esac
4626 ;;
4627 esac
4628 fi
4629 done
4630 IFS="$lt_save_ifs"
4631 done
4632 : ${lt_cv_path_NM=no}
4633 fi
4634 fi
4635 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4636 $as_echo "$lt_cv_path_NM" >&6; }
4637 if test "$lt_cv_path_NM" != "no"; then
4638 NM="$lt_cv_path_NM"
4639 else
4640 # Didn't find any BSD compatible name lister, look for dumpbin.
4641 if test -n "$ac_tool_prefix"; then
4642 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4643 do
4644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$DUMPBIN"; then
4652 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 DUMPBIN=$ac_cv_prog_DUMPBIN
4672 if test -n "$DUMPBIN"; then
4673 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4674 $as_echo "$DUMPBIN" >&6; }
4675 else
4676 { $as_echo "$as_me:$LINENO: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 test -n "$DUMPBIN" && break
4682 done
4683 fi
4684 if test -z "$DUMPBIN"; then
4685 ac_ct_DUMPBIN=$DUMPBIN
4686 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4687 do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy $ac_prog; ac_word=$2
4690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$ac_ct_DUMPBIN"; then
4696 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4716 if test -n "$ac_ct_DUMPBIN"; then
4717 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4718 $as_echo "$ac_ct_DUMPBIN" >&6; }
4719 else
4720 { $as_echo "$as_me:$LINENO: result: no" >&5
4721 $as_echo "no" >&6; }
4722 fi
4723
4724
4725 test -n "$ac_ct_DUMPBIN" && break
4726 done
4727
4728 if test "x$ac_ct_DUMPBIN" = x; then
4729 DUMPBIN=":"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737 DUMPBIN=$ac_ct_DUMPBIN
4738 fi
4739 fi
4740
4741
4742 if test "$DUMPBIN" != ":"; then
4743 NM="$DUMPBIN"
4744 fi
4745 fi
4746 test -z "$NM" && NM=nm
4747
4748
4749
4750
4751
4752
4753 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4755 if test "${lt_cv_nm_interface+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4757 else
4758 lt_cv_nm_interface="BSD nm"
4759 echo "int some_variable = 0;" > conftest.$ac_ext
4760 (eval echo "\"\$as_me:4760: $ac_compile\"" >&5)
4761 (eval "$ac_compile" 2>conftest.err)
4762 cat conftest.err >&5
4763 (eval echo "\"\$as_me:4763: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4765 cat conftest.err >&5
4766 (eval echo "\"\$as_me:4766: output\"" >&5)
4767 cat conftest.out >&5
4768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4769 lt_cv_nm_interface="MS dumpbin"
4770 fi
4771 rm -f conftest*
4772 fi
4773 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4774 $as_echo "$lt_cv_nm_interface" >&6; }
4775
4776 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4777 $as_echo_n "checking whether ln -s works... " >&6; }
4778 LN_S=$as_ln_s
4779 if test "$LN_S" = "ln -s"; then
4780 { $as_echo "$as_me:$LINENO: result: yes" >&5
4781 $as_echo "yes" >&6; }
4782 else
4783 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4784 $as_echo "no, using $LN_S" >&6; }
4785 fi
4786
4787 # find the maximum length of command line arguments
4788 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4790 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4792 else
4793 i=0
4794 teststring="ABCD"
4795
4796 case $build_os in
4797 msdosdjgpp*)
4798 # On DJGPP, this test can blow up pretty badly due to problems in libc
4799 # (any single argument exceeding 2000 bytes causes a buffer overrun
4800 # during glob expansion). Even if it were fixed, the result of this
4801 # check would be larger than it should be.
4802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4803 ;;
4804
4805 gnu*)
4806 # Under GNU Hurd, this test is not required because there is
4807 # no limit to the length of command line arguments.
4808 # Libtool will interpret -1 as no limit whatsoever
4809 lt_cv_sys_max_cmd_len=-1;
4810 ;;
4811
4812 cygwin* | mingw* | cegcc*)
4813 # On Win9x/ME, this test blows up -- it succeeds, but takes
4814 # about 5 minutes as the teststring grows exponentially.
4815 # Worse, since 9x/ME are not pre-emptively multitasking,
4816 # you end up with a "frozen" computer, even though with patience
4817 # the test eventually succeeds (with a max line length of 256k).
4818 # Instead, let's just punt: use the minimum linelength reported by
4819 # all of the supported platforms: 8192 (on NT/2K/XP).
4820 lt_cv_sys_max_cmd_len=8192;
4821 ;;
4822
4823 amigaos*)
4824 # On AmigaOS with pdksh, this test takes hours, literally.
4825 # So we just punt and use a minimum line length of 8192.
4826 lt_cv_sys_max_cmd_len=8192;
4827 ;;
4828
4829 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4830 # This has been around since 386BSD, at least. Likely further.
4831 if test -x /sbin/sysctl; then
4832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4833 elif test -x /usr/sbin/sysctl; then
4834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4835 else
4836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4837 fi
4838 # And add a safety zone
4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4841 ;;
4842
4843 interix*)
4844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4845 lt_cv_sys_max_cmd_len=196608
4846 ;;
4847
4848 osf*)
4849 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4850 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4851 # nice to cause kernel panics so lets avoid the loop below.
4852 # First set a reasonable default.
4853 lt_cv_sys_max_cmd_len=16384
4854 #
4855 if test -x /sbin/sysconfig; then
4856 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4857 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4858 esac
4859 fi
4860 ;;
4861 sco3.2v5*)
4862 lt_cv_sys_max_cmd_len=102400
4863 ;;
4864 sysv5* | sco5v6* | sysv4.2uw2*)
4865 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4866 if test -n "$kargmax"; then
4867 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4868 else
4869 lt_cv_sys_max_cmd_len=32768
4870 fi
4871 ;;
4872 *)
4873 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4874 if test -n "$lt_cv_sys_max_cmd_len"; then
4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4877 else
4878 # Make teststring a little bigger before we do anything with it.
4879 # a 1K string should be a reasonable start.
4880 for i in 1 2 3 4 5 6 7 8 ; do
4881 teststring=$teststring$teststring
4882 done
4883 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4884 # If test is not a shell built-in, we'll probably end up computing a
4885 # maximum length that is only half of the actual maximum length, but
4886 # we can't tell.
4887 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4888 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4889 test $i != 17 # 1/2 MB should be enough
4890 do
4891 i=`expr $i + 1`
4892 teststring=$teststring$teststring
4893 done
4894 # Only check the string length outside the loop.
4895 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4896 teststring=
4897 # Add a significant safety factor because C++ compilers can tack on
4898 # massive amounts of additional arguments before passing them to the
4899 # linker. It appears as though 1/2 is a usable value.
4900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4901 fi
4902 ;;
4903 esac
4904
4905 fi
4906
4907 if test -n $lt_cv_sys_max_cmd_len ; then
4908 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4909 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4910 else
4911 { $as_echo "$as_me:$LINENO: result: none" >&5
4912 $as_echo "none" >&6; }
4913 fi
4914 max_cmd_len=$lt_cv_sys_max_cmd_len
4915
4916
4917
4918
4919
4920
4921 : ${CP="cp -f"}
4922 : ${MV="mv -f"}
4923 : ${RM="rm -f"}
4924
4925 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4926 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4927 # Try some XSI features
4928 xsi_shell=no
4929 ( _lt_dummy="a/b/c"
4930 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4931 = c,a/b,, \
4932 && eval 'test $(( 1 + 1 )) -eq 2 \
4933 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4934 && xsi_shell=yes
4935 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4936 $as_echo "$xsi_shell" >&6; }
4937
4938
4939 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4940 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4941 lt_shell_append=no
4942 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4943 >/dev/null 2>&1 \
4944 && lt_shell_append=yes
4945 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4946 $as_echo "$lt_shell_append" >&6; }
4947
4948
4949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4950 lt_unset=unset
4951 else
4952 lt_unset=false
4953 fi
4954
4955
4956
4957
4958
4959 # test EBCDIC or ASCII
4960 case `echo X|tr X '\101'` in
4961 A) # ASCII based system
4962 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4963 lt_SP2NL='tr \040 \012'
4964 lt_NL2SP='tr \015\012 \040\040'
4965 ;;
4966 *) # EBCDIC based system
4967 lt_SP2NL='tr \100 \n'
4968 lt_NL2SP='tr \r\n \100\100'
4969 ;;
4970 esac
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4981 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4982 if test "${lt_cv_ld_reload_flag+set}" = set; then
4983 $as_echo_n "(cached) " >&6
4984 else
4985 lt_cv_ld_reload_flag='-r'
4986 fi
4987 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4988 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4989 reload_flag=$lt_cv_ld_reload_flag
4990 case $reload_flag in
4991 "" | " "*) ;;
4992 *) reload_flag=" $reload_flag" ;;
4993 esac
4994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4995 case $host_os in
4996 darwin*)
4997 if test "$GCC" = yes; then
4998 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4999 else
5000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5001 fi
5002 ;;
5003 esac
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013 if test -n "$ac_tool_prefix"; then
5014 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5015 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -n "$OBJDUMP"; then
5022 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 OBJDUMP=$ac_cv_prog_OBJDUMP
5042 if test -n "$OBJDUMP"; then
5043 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5044 $as_echo "$OBJDUMP" >&6; }
5045 else
5046 { $as_echo "$as_me:$LINENO: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050
5051 fi
5052 if test -z "$ac_cv_prog_OBJDUMP"; then
5053 ac_ct_OBJDUMP=$OBJDUMP
5054 # Extract the first word of "objdump", so it can be a program name with args.
5055 set dummy objdump; ac_word=$2
5056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$ac_ct_OBJDUMP"; then
5062 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5082 if test -n "$ac_ct_OBJDUMP"; then
5083 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5084 $as_echo "$ac_ct_OBJDUMP" >&6; }
5085 else
5086 { $as_echo "$as_me:$LINENO: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090 if test "x$ac_ct_OBJDUMP" = x; then
5091 OBJDUMP="false"
5092 else
5093 case $cross_compiling:$ac_tool_warned in
5094 yes:)
5095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097 ac_tool_warned=yes ;;
5098 esac
5099 OBJDUMP=$ac_ct_OBJDUMP
5100 fi
5101 else
5102 OBJDUMP="$ac_cv_prog_OBJDUMP"
5103 fi
5104
5105 test -z "$OBJDUMP" && OBJDUMP=objdump
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5116 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5117 if test "${lt_cv_deplibs_check_method+set}" = set; then
5118 $as_echo_n "(cached) " >&6
5119 else
5120 lt_cv_file_magic_cmd='$MAGIC_CMD'
5121 lt_cv_file_magic_test_file=
5122 lt_cv_deplibs_check_method='unknown'
5123 # Need to set the preceding variable on all platforms that support
5124 # interlibrary dependencies.
5125 # 'none' -- dependencies not supported.
5126 # `unknown' -- same as none, but documents that we really don't know.
5127 # 'pass_all' -- all dependencies passed with no checks.
5128 # 'test_compile' -- check by making test program.
5129 # 'file_magic [[regex]]' -- check by looking for files in library path
5130 # which responds to the $file_magic_cmd with a given extended regex.
5131 # If you have `file' or equivalent on your system and you're not sure
5132 # whether `pass_all' will *always* work, you probably want this one.
5133
5134 case $host_os in
5135 aix[4-9]*)
5136 lt_cv_deplibs_check_method=pass_all
5137 ;;
5138
5139 beos*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142
5143 bsdi[45]*)
5144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5145 lt_cv_file_magic_cmd='/usr/bin/file -L'
5146 lt_cv_file_magic_test_file=/shlib/libc.so
5147 ;;
5148
5149 cygwin*)
5150 # func_win32_libid is a shell function defined in ltmain.sh
5151 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5152 lt_cv_file_magic_cmd='func_win32_libid'
5153 ;;
5154
5155 mingw* | pw32*)
5156 # Base MSYS/MinGW do not provide the 'file' command needed by
5157 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5158 # unless we find 'file', for example because we are cross-compiling.
5159 if ( file / ) >/dev/null 2>&1; then
5160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5161 lt_cv_file_magic_cmd='func_win32_libid'
5162 else
5163 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5164 lt_cv_file_magic_cmd='$OBJDUMP -f'
5165 fi
5166 ;;
5167
5168 cegcc)
5169 # use the weaker test based on 'objdump'. See mingw*.
5170 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5171 lt_cv_file_magic_cmd='$OBJDUMP -f'
5172 ;;
5173
5174 darwin* | rhapsody*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178 freebsd* | dragonfly*)
5179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5180 case $host_cpu in
5181 i*86 )
5182 # Not sure whether the presence of OpenBSD here was a mistake.
5183 # Let's accept both of them until this is cleared up.
5184 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5185 lt_cv_file_magic_cmd=/usr/bin/file
5186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5187 ;;
5188 esac
5189 else
5190 lt_cv_deplibs_check_method=pass_all
5191 fi
5192 ;;
5193
5194 gnu*)
5195 lt_cv_deplibs_check_method=pass_all
5196 ;;
5197
5198 hpux10.20* | hpux11*)
5199 lt_cv_file_magic_cmd=/usr/bin/file
5200 case $host_cpu in
5201 ia64*)
5202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5203 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5204 ;;
5205 hppa*64*)
5206 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]'
5207 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5208 ;;
5209 *)
5210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5211 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5212 ;;
5213 esac
5214 ;;
5215
5216 interix[3-9]*)
5217 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5219 ;;
5220
5221 irix5* | irix6* | nonstopux*)
5222 case $LD in
5223 *-32|*"-32 ") libmagic=32-bit;;
5224 *-n32|*"-n32 ") libmagic=N32;;
5225 *-64|*"-64 ") libmagic=64-bit;;
5226 *) libmagic=never-match;;
5227 esac
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231 # This must be Linux ELF.
5232 linux* | k*bsd*-gnu)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236 netbsd*)
5237 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5239 else
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5241 fi
5242 ;;
5243
5244 newos6*)
5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5246 lt_cv_file_magic_cmd=/usr/bin/file
5247 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5248 ;;
5249
5250 *nto* | *qnx*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 openbsd*)
5255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5257 else
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5259 fi
5260 ;;
5261
5262 osf3* | osf4* | osf5*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265
5266 rdos*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270 solaris*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278 sysv4 | sysv4.3*)
5279 case $host_vendor in
5280 motorola)
5281 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]'
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5283 ;;
5284 ncr)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287 sequent)
5288 lt_cv_file_magic_cmd='/bin/file'
5289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5290 ;;
5291 sni)
5292 lt_cv_file_magic_cmd='/bin/file'
5293 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5294 lt_cv_file_magic_test_file=/lib/libc.so
5295 ;;
5296 siemens)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299 pc)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302 esac
5303 ;;
5304
5305 tpf*)
5306 lt_cv_deplibs_check_method=pass_all
5307 ;;
5308 esac
5309
5310 fi
5311 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5312 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5313 file_magic_cmd=$lt_cv_file_magic_cmd
5314 deplibs_check_method=$lt_cv_deplibs_check_method
5315 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328 if test -n "$ac_tool_prefix"; then
5329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5330 set dummy ${ac_tool_prefix}ar; ac_word=$2
5331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if test "${ac_cv_prog_AR+set}" = set; then
5334 $as_echo_n "(cached) " >&6
5335 else
5336 if test -n "$AR"; then
5337 ac_cv_prog_AR="$AR" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_prog_AR="${ac_tool_prefix}ar"
5347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350 done
5351 done
5352 IFS=$as_save_IFS
5353
5354 fi
5355 fi
5356 AR=$ac_cv_prog_AR
5357 if test -n "$AR"; then
5358 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5359 $as_echo "$AR" >&6; }
5360 else
5361 { $as_echo "$as_me:$LINENO: result: no" >&5
5362 $as_echo "no" >&6; }
5363 fi
5364
5365
5366 fi
5367 if test -z "$ac_cv_prog_AR"; then
5368 ac_ct_AR=$AR
5369 # Extract the first word of "ar", so it can be a program name with args.
5370 set dummy ar; ac_word=$2
5371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5374 $as_echo_n "(cached) " >&6
5375 else
5376 if test -n "$ac_ct_AR"; then
5377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_prog_ac_ct_AR="ar"
5387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390 done
5391 done
5392 IFS=$as_save_IFS
5393
5394 fi
5395 fi
5396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5397 if test -n "$ac_ct_AR"; then
5398 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5399 $as_echo "$ac_ct_AR" >&6; }
5400 else
5401 { $as_echo "$as_me:$LINENO: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404
5405 if test "x$ac_ct_AR" = x; then
5406 AR="false"
5407 else
5408 case $cross_compiling:$ac_tool_warned in
5409 yes:)
5410 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5412 ac_tool_warned=yes ;;
5413 esac
5414 AR=$ac_ct_AR
5415 fi
5416 else
5417 AR="$ac_cv_prog_AR"
5418 fi
5419
5420 test -z "$AR" && AR=ar
5421 test -z "$AR_FLAGS" && AR_FLAGS=cru
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}strip; ac_word=$2
5436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_prog_STRIP+set}" = set; then
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$STRIP"; then
5442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 STRIP=$ac_cv_prog_STRIP
5462 if test -n "$STRIP"; then
5463 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5464 $as_echo "$STRIP" >&6; }
5465 else
5466 { $as_echo "$as_me:$LINENO: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471 fi
5472 if test -z "$ac_cv_prog_STRIP"; then
5473 ac_ct_STRIP=$STRIP
5474 # Extract the first word of "strip", so it can be a program name with args.
5475 set dummy strip; ac_word=$2
5476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$ac_ct_STRIP"; then
5482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_prog_ac_ct_STRIP="strip"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5502 if test -n "$ac_ct_STRIP"; then
5503 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5504 $as_echo "$ac_ct_STRIP" >&6; }
5505 else
5506 { $as_echo "$as_me:$LINENO: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510 if test "x$ac_ct_STRIP" = x; then
5511 STRIP=":"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514 yes:)
5515 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517 ac_tool_warned=yes ;;
5518 esac
5519 STRIP=$ac_ct_STRIP
5520 fi
5521 else
5522 STRIP="$ac_cv_prog_STRIP"
5523 fi
5524
5525 test -z "$STRIP" && STRIP=:
5526
5527
5528
5529
5530
5531
5532 if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if test "${ac_cv_prog_RANLIB+set}" = set; then
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$RANLIB"; then
5541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 RANLIB=$ac_cv_prog_RANLIB
5561 if test -n "$RANLIB"; then
5562 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5563 $as_echo "$RANLIB" >&6; }
5564 else
5565 { $as_echo "$as_me:$LINENO: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570 fi
5571 if test -z "$ac_cv_prog_RANLIB"; then
5572 ac_ct_RANLIB=$RANLIB
5573 # Extract the first word of "ranlib", so it can be a program name with args.
5574 set dummy ranlib; ac_word=$2
5575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$ac_ct_RANLIB"; then
5581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_prog_ac_ct_RANLIB="ranlib"
5591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5596 IFS=$as_save_IFS
5597
5598 fi
5599 fi
5600 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5601 if test -n "$ac_ct_RANLIB"; then
5602 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5603 $as_echo "$ac_ct_RANLIB" >&6; }
5604 else
5605 { $as_echo "$as_me:$LINENO: result: no" >&5
5606 $as_echo "no" >&6; }
5607 fi
5608
5609 if test "x$ac_ct_RANLIB" = x; then
5610 RANLIB=":"
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 RANLIB=$ac_ct_RANLIB
5619 fi
5620 else
5621 RANLIB="$ac_cv_prog_RANLIB"
5622 fi
5623
5624 test -z "$RANLIB" && RANLIB=:
5625
5626
5627
5628
5629
5630
5631 # Determine commands to create old-style static archives.
5632 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5633 old_postinstall_cmds='chmod 644 $oldlib'
5634 old_postuninstall_cmds=
5635
5636 if test -n "$RANLIB"; then
5637 case $host_os in
5638 openbsd*)
5639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5640 ;;
5641 *)
5642 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5643 ;;
5644 esac
5645 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5646 fi
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 # If no C compiler was specified, use CC.
5682 LTCC=${LTCC-"$CC"}
5683
5684 # If no C compiler flags were specified, use CFLAGS.
5685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5686
5687 # Allow CC to be a program name with arguments.
5688 compiler=$CC
5689
5690
5691 # Check for command to grab the raw symbol name followed by C symbol from nm.
5692 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5693 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5694 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5695 $as_echo_n "(cached) " >&6
5696 else
5697
5698 # These are sane defaults that work on at least a few old systems.
5699 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5700
5701 # Character class describing NM global symbol codes.
5702 symcode='[BCDEGRST]'
5703
5704 # Regexp to match symbols that can be accessed directly from C.
5705 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5706
5707 # Define system-specific variables.
5708 case $host_os in
5709 aix*)
5710 symcode='[BCDT]'
5711 ;;
5712 cygwin* | mingw* | pw32* | cegcc*)
5713 symcode='[ABCDGISTW]'
5714 ;;
5715 hpux*)
5716 if test "$host_cpu" = ia64; then
5717 symcode='[ABCDEGRST]'
5718 fi
5719 ;;
5720 irix* | nonstopux*)
5721 symcode='[BCDEGRST]'
5722 ;;
5723 osf*)
5724 symcode='[BCDEGQRST]'
5725 ;;
5726 solaris*)
5727 symcode='[BDRT]'
5728 ;;
5729 sco3.2v5*)
5730 symcode='[DT]'
5731 ;;
5732 sysv4.2uw2*)
5733 symcode='[DT]'
5734 ;;
5735 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5736 symcode='[ABDT]'
5737 ;;
5738 sysv4)
5739 symcode='[DFNSTU]'
5740 ;;
5741 esac
5742
5743 # If we're using GNU nm, then use its standard symbol codes.
5744 case `$NM -V 2>&1` in
5745 *GNU* | *'with BFD'*)
5746 symcode='[ABCDGIRSTW]' ;;
5747 esac
5748
5749 # Transform an extracted symbol line into a proper C declaration.
5750 # Some systems (esp. on ia64) link data and code symbols differently,
5751 # so use this general approach.
5752 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5753
5754 # Transform an extracted symbol line into symbol name and symbol address
5755 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5756 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'"
5757
5758 # Handle CRLF in mingw tool chain
5759 opt_cr=
5760 case $build_os in
5761 mingw*)
5762 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5763 ;;
5764 esac
5765
5766 # Try without a prefix underscore, then with it.
5767 for ac_symprfx in "" "_"; do
5768
5769 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5770 symxfrm="\\1 $ac_symprfx\\2 \\2"
5771
5772 # Write the raw and C identifiers.
5773 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5774 # Fake it for dumpbin and say T for any non-static function
5775 # and D for any global variable.
5776 # Also find C++ and __fastcall symbols from MSVC++,
5777 # which start with @ or ?.
5778 lt_cv_sys_global_symbol_pipe="$AWK '"\
5779 " {last_section=section; section=\$ 3};"\
5780 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5781 " \$ 0!~/External *\|/{next};"\
5782 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5783 " {if(hide[section]) next};"\
5784 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5785 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5786 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5787 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5788 " ' prfx=^$ac_symprfx"
5789 else
5790 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5791 fi
5792
5793 # Check to see that the pipe works correctly.
5794 pipe_works=no
5795
5796 rm -f conftest*
5797 cat > conftest.$ac_ext <<_LT_EOF
5798 #ifdef __cplusplus
5799 extern "C" {
5800 #endif
5801 char nm_test_var;
5802 void nm_test_func(void);
5803 void nm_test_func(void){}
5804 #ifdef __cplusplus
5805 }
5806 #endif
5807 int main(){nm_test_var='a';nm_test_func();return(0);}
5808 _LT_EOF
5809
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>&5
5812 ac_status=$?
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; then
5815 # Now try to grab the symbols.
5816 nlist=conftest.nm
5817 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5818 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5819 ac_status=$?
5820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } && test -s "$nlist"; then
5822 # Try sorting and uniquifying the output.
5823 if sort "$nlist" | uniq > "$nlist"T; then
5824 mv -f "$nlist"T "$nlist"
5825 else
5826 rm -f "$nlist"T
5827 fi
5828
5829 # Make sure that we snagged all the symbols we need.
5830 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5831 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5832 cat <<_LT_EOF > conftest.$ac_ext
5833 #ifdef __cplusplus
5834 extern "C" {
5835 #endif
5836
5837 _LT_EOF
5838 # Now generate the symbol file.
5839 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5840
5841 cat <<_LT_EOF >> conftest.$ac_ext
5842
5843 /* The mapping between symbol names and symbols. */
5844 const struct {
5845 const char *name;
5846 void *address;
5847 }
5848 lt__PROGRAM__LTX_preloaded_symbols[] =
5849 {
5850 { "@PROGRAM@", (void *) 0 },
5851 _LT_EOF
5852 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5853 cat <<\_LT_EOF >> conftest.$ac_ext
5854 {0, (void *) 0}
5855 };
5856
5857 /* This works around a problem in FreeBSD linker */
5858 #ifdef FREEBSD_WORKAROUND
5859 static const void *lt_preloaded_setup() {
5860 return lt__PROGRAM__LTX_preloaded_symbols;
5861 }
5862 #endif
5863
5864 #ifdef __cplusplus
5865 }
5866 #endif
5867 _LT_EOF
5868 # Now try linking the two files.
5869 mv conftest.$ac_objext conftstm.$ac_objext
5870 lt_save_LIBS="$LIBS"
5871 lt_save_CFLAGS="$CFLAGS"
5872 LIBS="conftstm.$ac_objext"
5873 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>&5
5876 ac_status=$?
5877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5879 pipe_works=yes
5880 fi
5881 LIBS="$lt_save_LIBS"
5882 CFLAGS="$lt_save_CFLAGS"
5883 else
5884 echo "cannot find nm_test_func in $nlist" >&5
5885 fi
5886 else
5887 echo "cannot find nm_test_var in $nlist" >&5
5888 fi
5889 else
5890 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5891 fi
5892 else
5893 echo "$progname: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 fi
5896 rm -rf conftest* conftst*
5897
5898 # Do not use the global_symbol_pipe unless it works.
5899 if test "$pipe_works" = yes; then
5900 break
5901 else
5902 lt_cv_sys_global_symbol_pipe=
5903 fi
5904 done
5905
5906 fi
5907
5908 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5909 lt_cv_sys_global_symbol_to_cdecl=
5910 fi
5911 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5912 { $as_echo "$as_me:$LINENO: result: failed" >&5
5913 $as_echo "failed" >&6; }
5914 else
5915 { $as_echo "$as_me:$LINENO: result: ok" >&5
5916 $as_echo "ok" >&6; }
5917 fi
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941 # Check whether --enable-libtool-lock was given.
5942 if test "${enable_libtool_lock+set}" = set; then
5943 enableval=$enable_libtool_lock;
5944 fi
5945
5946 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5947
5948 # Some flags need to be propagated to the compiler or linker for good
5949 # libtool support.
5950 case $host in
5951 ia64-*-hpux*)
5952 # Find out which ABI we are using.
5953 echo 'int i;' > conftest.$ac_ext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; then
5959 case `/usr/bin/file conftest.$ac_objext` in
5960 *ELF-32*)
5961 HPUX_IA64_MODE="32"
5962 ;;
5963 *ELF-64*)
5964 HPUX_IA64_MODE="64"
5965 ;;
5966 esac
5967 fi
5968 rm -rf conftest*
5969 ;;
5970 *-*-irix6*)
5971 # Find out which ABI we are using.
5972 echo '#line 5972 "configure"' > conftest.$ac_ext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>&5
5975 ac_status=$?
5976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; then
5978 if test "$lt_cv_prog_gnu_ld" = yes; then
5979 case `/usr/bin/file conftest.$ac_objext` in
5980 *32-bit*)
5981 LD="${LD-ld} -melf32bsmip"
5982 ;;
5983 *N32*)
5984 LD="${LD-ld} -melf32bmipn32"
5985 ;;
5986 *64-bit*)
5987 LD="${LD-ld} -melf64bmip"
5988 ;;
5989 esac
5990 else
5991 case `/usr/bin/file conftest.$ac_objext` in
5992 *32-bit*)
5993 LD="${LD-ld} -32"
5994 ;;
5995 *N32*)
5996 LD="${LD-ld} -n32"
5997 ;;
5998 *64-bit*)
5999 LD="${LD-ld} -64"
6000 ;;
6001 esac
6002 fi
6003 fi
6004 rm -rf conftest*
6005 ;;
6006
6007 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6008 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6009 # Find out which ABI we are using.
6010 echo 'int i;' > conftest.$ac_ext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>&5
6013 ac_status=$?
6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; then
6016 case `/usr/bin/file conftest.o` in
6017 *32-bit*)
6018 case $host in
6019 x86_64-*kfreebsd*-gnu)
6020 LD="${LD-ld} -m elf_i386_fbsd"
6021 ;;
6022 x86_64-*linux*)
6023 LD="${LD-ld} -m elf_i386"
6024 ;;
6025 ppc64-*linux*|powerpc64-*linux*)
6026 LD="${LD-ld} -m elf32ppclinux"
6027 ;;
6028 s390x-*linux*)
6029 LD="${LD-ld} -m elf_s390"
6030 ;;
6031 sparc64-*linux*)
6032 LD="${LD-ld} -m elf32_sparc"
6033 ;;
6034 esac
6035 ;;
6036 *64-bit*)
6037 case $host in
6038 x86_64-*kfreebsd*-gnu)
6039 LD="${LD-ld} -m elf_x86_64_fbsd"
6040 ;;
6041 x86_64-*linux*)
6042 LD="${LD-ld} -m elf_x86_64"
6043 ;;
6044 ppc*-*linux*|powerpc*-*linux*)
6045 LD="${LD-ld} -m elf64ppc"
6046 ;;
6047 s390*-*linux*|s390*-*tpf*)
6048 LD="${LD-ld} -m elf64_s390"
6049 ;;
6050 sparc*-*linux*)
6051 LD="${LD-ld} -m elf64_sparc"
6052 ;;
6053 esac
6054 ;;
6055 esac
6056 fi
6057 rm -rf conftest*
6058 ;;
6059
6060 *-*-sco3.2v5*)
6061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6062 SAVE_CFLAGS="$CFLAGS"
6063 CFLAGS="$CFLAGS -belf"
6064 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6065 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6066 if test "${lt_cv_cc_needs_belf+set}" = set; then
6067 $as_echo_n "(cached) " >&6
6068 else
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081
6082 int
6083 main ()
6084 {
6085
6086 ;
6087 return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6092 case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095 esac
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_link") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest$ac_exeext && {
6108 test "$cross_compiling" = yes ||
6109 $as_test_x conftest$ac_exeext
6110 }; then
6111 lt_cv_cc_needs_belf=yes
6112 else
6113 $as_echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 lt_cv_cc_needs_belf=no
6117 fi
6118
6119 rm -rf conftest.dSYM
6120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6121 conftest$ac_exeext conftest.$ac_ext
6122 ac_ext=c
6123 ac_cpp='$CPP $CPPFLAGS'
6124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127
6128 fi
6129 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6130 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6133 CFLAGS="$SAVE_CFLAGS"
6134 fi
6135 ;;
6136 sparc*-*solaris*)
6137 # Find out which ABI we are using.
6138 echo 'int i;' > conftest.$ac_ext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>&5
6141 ac_status=$?
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; then
6144 case `/usr/bin/file conftest.o` in
6145 *64-bit*)
6146 case $lt_cv_prog_gnu_ld in
6147 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6148 *)
6149 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6150 LD="${LD-ld} -64"
6151 fi
6152 ;;
6153 esac
6154 ;;
6155 esac
6156 fi
6157 rm -rf conftest*
6158 ;;
6159 esac
6160
6161 need_locks="$enable_libtool_lock"
6162
6163
6164 case $host_os in
6165 rhapsody* | darwin*)
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if test -n "$DSYMUTIL"; then
6175 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6195 if test -n "$DSYMUTIL"; then
6196 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6197 $as_echo "$DSYMUTIL" >&6; }
6198 else
6199 { $as_echo "$as_me:$LINENO: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203
6204 fi
6205 if test -z "$ac_cv_prog_DSYMUTIL"; then
6206 ac_ct_DSYMUTIL=$DSYMUTIL
6207 # Extract the first word of "dsymutil", so it can be a program name with args.
6208 set dummy dsymutil; ac_word=$2
6209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$ac_ct_DSYMUTIL"; then
6215 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6235 if test -n "$ac_ct_DSYMUTIL"; then
6236 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6237 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6238 else
6239 { $as_echo "$as_me:$LINENO: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243 if test "x$ac_ct_DSYMUTIL" = x; then
6244 DSYMUTIL=":"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247 yes:)
6248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned=yes ;;
6251 esac
6252 DSYMUTIL=$ac_ct_DSYMUTIL
6253 fi
6254 else
6255 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6256 fi
6257
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if test -n "$NMEDIT"; then
6267 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 NMEDIT=$ac_cv_prog_NMEDIT
6287 if test -n "$NMEDIT"; then
6288 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6289 $as_echo "$NMEDIT" >&6; }
6290 else
6291 { $as_echo "$as_me:$LINENO: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295
6296 fi
6297 if test -z "$ac_cv_prog_NMEDIT"; then
6298 ac_ct_NMEDIT=$NMEDIT
6299 # Extract the first word of "nmedit", so it can be a program name with args.
6300 set dummy nmedit; ac_word=$2
6301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$ac_ct_NMEDIT"; then
6307 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6327 if test -n "$ac_ct_NMEDIT"; then
6328 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6329 $as_echo "$ac_ct_NMEDIT" >&6; }
6330 else
6331 { $as_echo "$as_me:$LINENO: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335 if test "x$ac_ct_NMEDIT" = x; then
6336 NMEDIT=":"
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339 yes:)
6340 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344 NMEDIT=$ac_ct_NMEDIT
6345 fi
6346 else
6347 NMEDIT="$ac_cv_prog_NMEDIT"
6348 fi
6349
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if test "${ac_cv_prog_LIPO+set}" = set; then
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$LIPO"; then
6359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 LIPO=$ac_cv_prog_LIPO
6379 if test -n "$LIPO"; then
6380 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6381 $as_echo "$LIPO" >&6; }
6382 else
6383 { $as_echo "$as_me:$LINENO: result: no" >&5
6384 $as_echo "no" >&6; }
6385 fi
6386
6387
6388 fi
6389 if test -z "$ac_cv_prog_LIPO"; then
6390 ac_ct_LIPO=$LIPO
6391 # Extract the first word of "lipo", so it can be a program name with args.
6392 set dummy lipo; ac_word=$2
6393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_LIPO"; then
6399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_LIPO="lipo"
6409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6419 if test -n "$ac_ct_LIPO"; then
6420 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6421 $as_echo "$ac_ct_LIPO" >&6; }
6422 else
6423 { $as_echo "$as_me:$LINENO: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427 if test "x$ac_ct_LIPO" = x; then
6428 LIPO=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 LIPO=$ac_ct_LIPO
6437 fi
6438 else
6439 LIPO="$ac_cv_prog_LIPO"
6440 fi
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}otool; ac_word=$2
6445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_OTOOL+set}" = set; then
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$OTOOL"; then
6451 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 OTOOL=$ac_cv_prog_OTOOL
6471 if test -n "$OTOOL"; then
6472 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6473 $as_echo "$OTOOL" >&6; }
6474 else
6475 { $as_echo "$as_me:$LINENO: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_OTOOL"; then
6482 ac_ct_OTOOL=$OTOOL
6483 # Extract the first word of "otool", so it can be a program name with args.
6484 set dummy otool; ac_word=$2
6485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_OTOOL"; then
6491 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_OTOOL="otool"
6501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6511 if test -n "$ac_ct_OTOOL"; then
6512 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6513 $as_echo "$ac_ct_OTOOL" >&6; }
6514 else
6515 { $as_echo "$as_me:$LINENO: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519 if test "x$ac_ct_OTOOL" = x; then
6520 OTOOL=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 OTOOL=$ac_ct_OTOOL
6529 fi
6530 else
6531 OTOOL="$ac_cv_prog_OTOOL"
6532 fi
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$OTOOL64"; then
6543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 OTOOL64=$ac_cv_prog_OTOOL64
6563 if test -n "$OTOOL64"; then
6564 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6565 $as_echo "$OTOOL64" >&6; }
6566 else
6567 { $as_echo "$as_me:$LINENO: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_OTOOL64"; then
6574 ac_ct_OTOOL64=$OTOOL64
6575 # Extract the first word of "otool64", so it can be a program name with args.
6576 set dummy otool64; ac_word=$2
6577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$ac_ct_OTOOL64"; then
6583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_OTOOL64="otool64"
6593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6603 if test -n "$ac_ct_OTOOL64"; then
6604 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6605 $as_echo "$ac_ct_OTOOL64" >&6; }
6606 else
6607 { $as_echo "$as_me:$LINENO: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611 if test "x$ac_ct_OTOOL64" = x; then
6612 OTOOL64=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 OTOOL64=$ac_ct_OTOOL64
6621 fi
6622 else
6623 OTOOL64="$ac_cv_prog_OTOOL64"
6624 fi
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6653 $as_echo_n "checking for -single_module linker flag... " >&6; }
6654 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6655 $as_echo_n "(cached) " >&6
6656 else
6657 lt_cv_apple_cc_single_mod=no
6658 if test -z "${LT_MULTI_MODULE}"; then
6659 # By default we will add the -single_module flag. You can override
6660 # by either setting the environment variable LT_MULTI_MODULE
6661 # non-empty at configure time, or by adding -multi_module to the
6662 # link flags.
6663 rm -rf libconftest.dylib*
6664 echo "int foo(void){return 1;}" > conftest.c
6665 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6666 -dynamiclib -Wl,-single_module conftest.c" >&5
6667 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6668 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6669 _lt_result=$?
6670 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6671 lt_cv_apple_cc_single_mod=yes
6672 else
6673 cat conftest.err >&5
6674 fi
6675 rm -rf libconftest.dylib*
6676 rm -f conftest.*
6677 fi
6678 fi
6679 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6680 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6681 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6682 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6683 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6685 else
6686 lt_cv_ld_exported_symbols_list=no
6687 save_LDFLAGS=$LDFLAGS
6688 echo "_main" > conftest.sym
6689 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696
6697 int
6698 main ()
6699 {
6700
6701 ;
6702 return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (ac_try="$ac_link"
6707 case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710 esac
6711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6712 $as_echo "$ac_try_echo") >&5
6713 (eval "$ac_link") 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest$ac_exeext && {
6723 test "$cross_compiling" = yes ||
6724 $as_test_x conftest$ac_exeext
6725 }; then
6726 lt_cv_ld_exported_symbols_list=yes
6727 else
6728 $as_echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 lt_cv_ld_exported_symbols_list=no
6732 fi
6733
6734 rm -rf conftest.dSYM
6735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6736 conftest$ac_exeext conftest.$ac_ext
6737 LDFLAGS="$save_LDFLAGS"
6738
6739 fi
6740 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6741 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6742 case $host_os in
6743 rhapsody* | darwin1.[012])
6744 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6745 darwin1.*)
6746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6747 darwin*) # darwin 5.x on
6748 # if running on 10.5 or later, the deployment target defaults
6749 # to the OS version, if on x86, and 10.4, the deployment
6750 # target defaults to 10.4. Don't you love it?
6751 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6752 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6753 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6754 10.[012]*)
6755 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6756 10.*)
6757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6758 esac
6759 ;;
6760 esac
6761 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6762 _lt_dar_single_mod='$single_module'
6763 fi
6764 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6765 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6766 else
6767 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6768 fi
6769 if test "$DSYMUTIL" != ":"; then
6770 _lt_dsymutil='~$DSYMUTIL $lib || :'
6771 else
6772 _lt_dsymutil=
6773 fi
6774 ;;
6775 esac
6776
6777 ac_ext=c
6778 ac_cpp='$CPP $CPPFLAGS'
6779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6784 # On Suns, sometimes $CPP names a directory.
6785 if test -n "$CPP" && test -d "$CPP"; then
6786 CPP=
6787 fi
6788 if test -z "$CPP"; then
6789 if test "${ac_cv_prog_CPP+set}" = set; then
6790 $as_echo_n "(cached) " >&6
6791 else
6792 # Double quotes because CPP needs to be expanded
6793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6794 do
6795 ac_preproc_ok=false
6796 for ac_c_preproc_warn_flag in '' yes
6797 do
6798 # Use a header file that comes with gcc, so configuring glibc
6799 # with a fresh cross-compiler works.
6800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6801 # <limits.h> exists even on freestanding compilers.
6802 # On the NeXT, cc -E runs the code through the compiler's parser,
6803 # not just through cpp. "Syntax error" is here to catch this case.
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #ifdef __STDC__
6811 # include <limits.h>
6812 #else
6813 # include <assert.h>
6814 #endif
6815 Syntax error
6816 _ACEOF
6817 if { (ac_try="$ac_cpp conftest.$ac_ext"
6818 case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null && {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 }; then
6834 :
6835 else
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 # Broken: fails on valid input.
6840 continue
6841 fi
6842
6843 rm -f conftest.err conftest.$ac_ext
6844
6845 # OK, works on sane cases. Now check whether nonexistent headers
6846 # can be detected and how.
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <ac_nonexistent.h>
6854 _ACEOF
6855 if { (ac_try="$ac_cpp conftest.$ac_ext"
6856 case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6859 esac
6860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6861 $as_echo "$ac_try_echo") >&5
6862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev/null && {
6869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 }; then
6872 # Broken: success on invalid input.
6873 continue
6874 else
6875 $as_echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 # Passes both tests.
6879 ac_preproc_ok=:
6880 break
6881 fi
6882
6883 rm -f conftest.err conftest.$ac_ext
6884
6885 done
6886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6887 rm -f conftest.err conftest.$ac_ext
6888 if $ac_preproc_ok; then
6889 break
6890 fi
6891
6892 done
6893 ac_cv_prog_CPP=$CPP
6894
6895 fi
6896 CPP=$ac_cv_prog_CPP
6897 else
6898 ac_cv_prog_CPP=$CPP
6899 fi
6900 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6901 $as_echo "$CPP" >&6; }
6902 ac_preproc_ok=false
6903 for ac_c_preproc_warn_flag in '' yes
6904 do
6905 # Use a header file that comes with gcc, so configuring glibc
6906 # with a fresh cross-compiler works.
6907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 # <limits.h> exists even on freestanding compilers.
6909 # On the NeXT, cc -E runs the code through the compiler's parser,
6910 # not just through cpp. "Syntax error" is here to catch this case.
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #ifdef __STDC__
6918 # include <limits.h>
6919 #else
6920 # include <assert.h>
6921 #endif
6922 Syntax error
6923 _ACEOF
6924 if { (ac_try="$ac_cpp conftest.$ac_ext"
6925 case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928 esac
6929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930 $as_echo "$ac_try_echo") >&5
6931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null && {
6938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 }; then
6941 :
6942 else
6943 $as_echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 # Broken: fails on valid input.
6947 continue
6948 fi
6949
6950 rm -f conftest.err conftest.$ac_ext
6951
6952 # OK, works on sane cases. Now check whether nonexistent headers
6953 # can be detected and how.
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <ac_nonexistent.h>
6961 _ACEOF
6962 if { (ac_try="$ac_cpp conftest.$ac_ext"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null && {
6976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 }; then
6979 # Broken: success on invalid input.
6980 continue
6981 else
6982 $as_echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 # Passes both tests.
6986 ac_preproc_ok=:
6987 break
6988 fi
6989
6990 rm -f conftest.err conftest.$ac_ext
6991
6992 done
6993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994 rm -f conftest.err conftest.$ac_ext
6995 if $ac_preproc_ok; then
6996 :
6997 else
6998 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7000 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7001 See \`config.log' for more details." >&5
7002 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7003 See \`config.log' for more details." >&2;}
7004 { (exit 1); exit 1; }; }; }
7005 fi
7006
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013
7014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7015 $as_echo_n "checking for ANSI C header files... " >&6; }
7016 if test "${ac_cv_header_stdc+set}" = set; then
7017 $as_echo_n "(cached) " >&6
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 #include <stdlib.h>
7026 #include <stdarg.h>
7027 #include <string.h>
7028 #include <float.h>
7029
7030 int
7031 main ()
7032 {
7033
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043 esac
7044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7045 $as_echo "$ac_try_echo") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.$ac_objext; then
7056 ac_cv_header_stdc=yes
7057 else
7058 $as_echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061 ac_cv_header_stdc=no
7062 fi
7063
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065
7066 if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <string.h>
7075
7076 _ACEOF
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "memchr" >/dev/null 2>&1; then
7079 :
7080 else
7081 ac_cv_header_stdc=no
7082 fi
7083 rm -f conftest*
7084
7085 fi
7086
7087 if test $ac_cv_header_stdc = yes; then
7088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 #include <stdlib.h>
7096
7097 _ACEOF
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "free" >/dev/null 2>&1; then
7100 :
7101 else
7102 ac_cv_header_stdc=no
7103 fi
7104 rm -f conftest*
7105
7106 fi
7107
7108 if test $ac_cv_header_stdc = yes; then
7109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7110 if test "$cross_compiling" = yes; then
7111 :
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <ctype.h>
7120 #include <stdlib.h>
7121 #if ((' ' & 0x0FF) == 0x020)
7122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7124 #else
7125 # define ISLOWER(c) \
7126 (('a' <= (c) && (c) <= 'i') \
7127 || ('j' <= (c) && (c) <= 'r') \
7128 || ('s' <= (c) && (c) <= 'z'))
7129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7130 #endif
7131
7132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7133 int
7134 main ()
7135 {
7136 int i;
7137 for (i = 0; i < 256; i++)
7138 if (XOR (islower (i), ISLOWER (i))
7139 || toupper (i) != TOUPPER (i))
7140 return 2;
7141 return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest$ac_exeext
7145 if { (ac_try="$ac_link"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_link") 2>&5
7153 ac_status=$?
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156 { (case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162 (eval "$ac_try") 2>&5
7163 ac_status=$?
7164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 :
7167 else
7168 $as_echo "$as_me: program exited with status $ac_status" >&5
7169 $as_echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 ( exit $ac_status )
7173 ac_cv_header_stdc=no
7174 fi
7175 rm -rf conftest.dSYM
7176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7177 fi
7178
7179
7180 fi
7181 fi
7182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7183 $as_echo "$ac_cv_header_stdc" >&6; }
7184 if test $ac_cv_header_stdc = yes; then
7185
7186 cat >>confdefs.h <<\_ACEOF
7187 #define STDC_HEADERS 1
7188 _ACEOF
7189
7190 fi
7191
7192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7203 inttypes.h stdint.h unistd.h
7204 do
7205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7207 $as_echo_n "checking for $ac_header... " >&6; }
7208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7218
7219 #include <$ac_header>
7220 _ACEOF
7221 rm -f conftest.$ac_objext
7222 if { (ac_try="$ac_compile"
7223 case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226 esac
7227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228 $as_echo "$ac_try_echo") >&5
7229 (eval "$ac_compile") 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest.$ac_objext; then
7239 eval "$as_ac_Header=yes"
7240 else
7241 $as_echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 eval "$as_ac_Header=no"
7245 fi
7246
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 fi
7249 ac_res=`eval 'as_val=${'$as_ac_Header'}
7250 $as_echo "$as_val"'`
7251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7252 $as_echo "$ac_res" >&6; }
7253 as_val=`eval 'as_val=${'$as_ac_Header'}
7254 $as_echo "$as_val"'`
7255 if test "x$as_val" = x""yes; then
7256 cat >>confdefs.h <<_ACEOF
7257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258 _ACEOF
7259
7260 fi
7261
7262 done
7263
7264
7265
7266 for ac_header in dlfcn.h
7267 do
7268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 $as_echo_n "checking for $ac_header... " >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7281
7282 #include <$ac_header>
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 eval "$as_ac_Header=yes"
7303 else
7304 $as_echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 eval "$as_ac_Header=no"
7308 fi
7309
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 ac_res=`eval 'as_val=${'$as_ac_Header'}
7313 $as_echo "$as_val"'`
7314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7315 $as_echo "$ac_res" >&6; }
7316 as_val=`eval 'as_val=${'$as_ac_Header'}
7317 $as_echo "$as_val"'`
7318 if test "x$as_val" = x""yes; then
7319 cat >>confdefs.h <<_ACEOF
7320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321 _ACEOF
7322
7323 fi
7324
7325 done
7326
7327
7328
7329 # Set options
7330
7331
7332
7333 enable_dlopen=no
7334
7335
7336 enable_win32_dll=no
7337
7338
7339 # Check whether --enable-shared was given.
7340 if test "${enable_shared+set}" = set; then
7341 enableval=$enable_shared; p=${PACKAGE-default}
7342 case $enableval in
7343 yes) enable_shared=yes ;;
7344 no) enable_shared=no ;;
7345 *)
7346 enable_shared=no
7347 # Look at the argument we got. We use all the common list separators.
7348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7349 for pkg in $enableval; do
7350 IFS="$lt_save_ifs"
7351 if test "X$pkg" = "X$p"; then
7352 enable_shared=yes
7353 fi
7354 done
7355 IFS="$lt_save_ifs"
7356 ;;
7357 esac
7358 else
7359 enable_shared=yes
7360 fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 # Check whether --enable-static was given.
7371 if test "${enable_static+set}" = set; then
7372 enableval=$enable_static; p=${PACKAGE-default}
7373 case $enableval in
7374 yes) enable_static=yes ;;
7375 no) enable_static=no ;;
7376 *)
7377 enable_static=no
7378 # Look at the argument we got. We use all the common list separators.
7379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7380 for pkg in $enableval; do
7381 IFS="$lt_save_ifs"
7382 if test "X$pkg" = "X$p"; then
7383 enable_static=yes
7384 fi
7385 done
7386 IFS="$lt_save_ifs"
7387 ;;
7388 esac
7389 else
7390 enable_static=yes
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 # Check whether --with-pic was given.
7403 if test "${with_pic+set}" = set; then
7404 withval=$with_pic; pic_mode="$withval"
7405 else
7406 pic_mode=default
7407 fi
7408
7409
7410 test -z "$pic_mode" && pic_mode=default
7411
7412
7413
7414
7415
7416
7417
7418 # Check whether --enable-fast-install was given.
7419 if test "${enable_fast_install+set}" = set; then
7420 enableval=$enable_fast_install; p=${PACKAGE-default}
7421 case $enableval in
7422 yes) enable_fast_install=yes ;;
7423 no) enable_fast_install=no ;;
7424 *)
7425 enable_fast_install=no
7426 # Look at the argument we got. We use all the common list separators.
7427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428 for pkg in $enableval; do
7429 IFS="$lt_save_ifs"
7430 if test "X$pkg" = "X$p"; then
7431 enable_fast_install=yes
7432 fi
7433 done
7434 IFS="$lt_save_ifs"
7435 ;;
7436 esac
7437 else
7438 enable_fast_install=yes
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 # This can be used to rebuild libtool when needed
7452 LIBTOOL_DEPS="$ltmain"
7453
7454 # Always use our own libtool.
7455 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481 test -z "$LN_S" && LN_S="ln -s"
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496 if test -n "${ZSH_VERSION+set}" ; then
7497 setopt NO_GLOB_SUBST
7498 fi
7499
7500 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7501 $as_echo_n "checking for objdir... " >&6; }
7502 if test "${lt_cv_objdir+set}" = set; then
7503 $as_echo_n "(cached) " >&6
7504 else
7505 rm -f .libs 2>/dev/null
7506 mkdir .libs 2>/dev/null
7507 if test -d .libs; then
7508 lt_cv_objdir=.libs
7509 else
7510 # MS-DOS does not allow filenames that begin with a dot.
7511 lt_cv_objdir=_libs
7512 fi
7513 rmdir .libs 2>/dev/null
7514 fi
7515 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7516 $as_echo "$lt_cv_objdir" >&6; }
7517 objdir=$lt_cv_objdir
7518
7519
7520
7521
7522
7523 cat >>confdefs.h <<_ACEOF
7524 #define LT_OBJDIR "$lt_cv_objdir/"
7525 _ACEOF
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 case $host_os in
7544 aix3*)
7545 # AIX sometimes has problems with the GCC collect2 program. For some
7546 # reason, if we set the COLLECT_NAMES environment variable, the problems
7547 # vanish in a puff of smoke.
7548 if test "X${COLLECT_NAMES+set}" != Xset; then
7549 COLLECT_NAMES=
7550 export COLLECT_NAMES
7551 fi
7552 ;;
7553 esac
7554
7555 # Sed substitution that helps us do robust quoting. It backslashifies
7556 # metacharacters that are still active within double-quoted strings.
7557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7558
7559 # Same as above, but do not quote variable references.
7560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7561
7562 # Sed substitution to delay expansion of an escaped shell variable in a
7563 # double_quote_subst'ed string.
7564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7565
7566 # Sed substitution to delay expansion of an escaped single quote.
7567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7568
7569 # Sed substitution to avoid accidental globbing in evaled expressions
7570 no_glob_subst='s/\*/\\\*/g'
7571
7572 # Global variables:
7573 ofile=libtool
7574 can_build_shared=yes
7575
7576 # All known linkers require a `.a' archive for static linking (except MSVC,
7577 # which needs '.lib').
7578 libext=a
7579
7580 with_gnu_ld="$lt_cv_prog_gnu_ld"
7581
7582 old_CC="$CC"
7583 old_CFLAGS="$CFLAGS"
7584
7585 # Set sane defaults for various variables
7586 test -z "$CC" && CC=cc
7587 test -z "$LTCC" && LTCC=$CC
7588 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7589 test -z "$LD" && LD=ld
7590 test -z "$ac_objext" && ac_objext=o
7591
7592 for cc_temp in $compiler""; do
7593 case $cc_temp in
7594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7596 \-*) ;;
7597 *) break;;
7598 esac
7599 done
7600 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7601
7602
7603 # Only perform the check for file, if the check method requires it
7604 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7605 case $deplibs_check_method in
7606 file_magic*)
7607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7608 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7609 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7612 else
7613 case $MAGIC_CMD in
7614 [\\/*] | ?:[\\/]*)
7615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7616 ;;
7617 *)
7618 lt_save_MAGIC_CMD="$MAGIC_CMD"
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7621 for ac_dir in $ac_dummy; do
7622 IFS="$lt_save_ifs"
7623 test -z "$ac_dir" && ac_dir=.
7624 if test -f $ac_dir/${ac_tool_prefix}file; then
7625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7626 if test -n "$file_magic_test_file"; then
7627 case $deplibs_check_method in
7628 "file_magic "*)
7629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7632 $EGREP "$file_magic_regex" > /dev/null; then
7633 :
7634 else
7635 cat <<_LT_EOF 1>&2
7636
7637 *** Warning: the command libtool uses to detect shared libraries,
7638 *** $file_magic_cmd, produces output that libtool cannot recognize.
7639 *** The result is that libtool may fail to recognize shared libraries
7640 *** as such. This will affect the creation of libtool libraries that
7641 *** depend on shared libraries, but programs linked with such libtool
7642 *** libraries will work regardless of this problem. Nevertheless, you
7643 *** may want to report the problem to your system manager and/or to
7644 *** bug-libtool@gnu.org
7645
7646 _LT_EOF
7647 fi ;;
7648 esac
7649 fi
7650 break
7651 fi
7652 done
7653 IFS="$lt_save_ifs"
7654 MAGIC_CMD="$lt_save_MAGIC_CMD"
7655 ;;
7656 esac
7657 fi
7658
7659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660 if test -n "$MAGIC_CMD"; then
7661 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7662 $as_echo "$MAGIC_CMD" >&6; }
7663 else
7664 { $as_echo "$as_me:$LINENO: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667
7668
7669
7670
7671
7672 if test -z "$lt_cv_path_MAGIC_CMD"; then
7673 if test -n "$ac_tool_prefix"; then
7674 { $as_echo "$as_me:$LINENO: checking for file" >&5
7675 $as_echo_n "checking for file... " >&6; }
7676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7678 else
7679 case $MAGIC_CMD in
7680 [\\/*] | ?:[\\/]*)
7681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7682 ;;
7683 *)
7684 lt_save_MAGIC_CMD="$MAGIC_CMD"
7685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7687 for ac_dir in $ac_dummy; do
7688 IFS="$lt_save_ifs"
7689 test -z "$ac_dir" && ac_dir=.
7690 if test -f $ac_dir/file; then
7691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7692 if test -n "$file_magic_test_file"; then
7693 case $deplibs_check_method in
7694 "file_magic "*)
7695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7698 $EGREP "$file_magic_regex" > /dev/null; then
7699 :
7700 else
7701 cat <<_LT_EOF 1>&2
7702
7703 *** Warning: the command libtool uses to detect shared libraries,
7704 *** $file_magic_cmd, produces output that libtool cannot recognize.
7705 *** The result is that libtool may fail to recognize shared libraries
7706 *** as such. This will affect the creation of libtool libraries that
7707 *** depend on shared libraries, but programs linked with such libtool
7708 *** libraries will work regardless of this problem. Nevertheless, you
7709 *** may want to report the problem to your system manager and/or to
7710 *** bug-libtool@gnu.org
7711
7712 _LT_EOF
7713 fi ;;
7714 esac
7715 fi
7716 break
7717 fi
7718 done
7719 IFS="$lt_save_ifs"
7720 MAGIC_CMD="$lt_save_MAGIC_CMD"
7721 ;;
7722 esac
7723 fi
7724
7725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726 if test -n "$MAGIC_CMD"; then
7727 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7728 $as_echo "$MAGIC_CMD" >&6; }
7729 else
7730 { $as_echo "$as_me:$LINENO: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734
7735 else
7736 MAGIC_CMD=:
7737 fi
7738 fi
7739
7740 fi
7741 ;;
7742 esac
7743
7744 # Use C for the default configuration in the libtool script
7745
7746 lt_save_CC="$CC"
7747 ac_ext=c
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753
7754 # Source file extension for C test sources.
7755 ac_ext=c
7756
7757 # Object file extension for compiled C test sources.
7758 objext=o
7759 objext=$objext
7760
7761 # Code to be used in simple compile tests
7762 lt_simple_compile_test_code="int some_variable = 0;"
7763
7764 # Code to be used in simple link tests
7765 lt_simple_link_test_code='int main(){return(0);}'
7766
7767
7768
7769
7770
7771
7772
7773 # If no C compiler was specified, use CC.
7774 LTCC=${LTCC-"$CC"}
7775
7776 # If no C compiler flags were specified, use CFLAGS.
7777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7778
7779 # Allow CC to be a program name with arguments.
7780 compiler=$CC
7781
7782 # Save the default compiler, since it gets overwritten when the other
7783 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7784 compiler_DEFAULT=$CC
7785
7786 # save warnings/boilerplate of simple test code
7787 ac_outfile=conftest.$ac_objext
7788 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7789 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7790 _lt_compiler_boilerplate=`cat conftest.err`
7791 $RM conftest*
7792
7793 ac_outfile=conftest.$ac_objext
7794 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7795 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7796 _lt_linker_boilerplate=`cat conftest.err`
7797 $RM -r conftest*
7798
7799
7800 ## CAVEAT EMPTOR:
7801 ## There is no encapsulation within the following macros, do not change
7802 ## the running order or otherwise move them around unless you know exactly
7803 ## what you are doing...
7804 if test -n "$compiler"; then
7805
7806 lt_prog_compiler_no_builtin_flag=
7807
7808 if test "$GCC" = yes; then
7809 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7810
7811 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7812 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7813 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7814 $as_echo_n "(cached) " >&6
7815 else
7816 lt_cv_prog_compiler_rtti_exceptions=no
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7819 lt_compiler_flag="-fno-rtti -fno-exceptions"
7820 # Insert the option either (1) after the last *FLAGS variable, or
7821 # (2) before a word containing "conftest.", or (3) at the end.
7822 # Note that $ac_compile itself does not contain backslashes and begins
7823 # with a dollar sign (not a hyphen), so the echo should work correctly.
7824 # The option is referenced via a variable to avoid confusing sed.
7825 lt_compile=`echo "$ac_compile" | $SED \
7826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828 -e 's:$: $lt_compiler_flag:'`
7829 (eval echo "\"\$as_me:7829: $lt_compile\"" >&5)
7830 (eval "$lt_compile" 2>conftest.err)
7831 ac_status=$?
7832 cat conftest.err >&5
7833 echo "$as_me:7833: \$? = $ac_status" >&5
7834 if (exit $ac_status) && test -s "$ac_outfile"; then
7835 # The compiler can only warn and ignore the option if not recognized
7836 # So say no if there are warnings other than the usual output.
7837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7840 lt_cv_prog_compiler_rtti_exceptions=yes
7841 fi
7842 fi
7843 $RM conftest*
7844
7845 fi
7846 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7847 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7848
7849 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7850 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7851 else
7852 :
7853 fi
7854
7855 fi
7856
7857
7858
7859
7860
7861
7862 lt_prog_compiler_wl=
7863 lt_prog_compiler_pic=
7864 lt_prog_compiler_static=
7865
7866 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7867 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7868
7869 if test "$GCC" = yes; then
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_static='-static'
7872
7873 case $host_os in
7874 aix*)
7875 # All AIX code is PIC.
7876 if test "$host_cpu" = ia64; then
7877 # AIX 5 now supports IA64 processor
7878 lt_prog_compiler_static='-Bstatic'
7879 fi
7880 ;;
7881
7882 amigaos*)
7883 case $host_cpu in
7884 powerpc)
7885 # see comment about AmigaOS4 .so support
7886 lt_prog_compiler_pic='-fPIC'
7887 ;;
7888 m68k)
7889 # FIXME: we need at least 68020 code to build shared libraries, but
7890 # adding the `-m68020' flag to GCC prevents building anything better,
7891 # like `-m68040'.
7892 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7893 ;;
7894 esac
7895 ;;
7896
7897 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7898 # PIC is the default for these OSes.
7899 ;;
7900
7901 mingw* | cygwin* | pw32* | os2* | cegcc*)
7902 # This hack is so that the source file can tell whether it is being
7903 # built for inclusion in a dll (and should export symbols for example).
7904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7905 # (--disable-auto-import) libraries
7906 lt_prog_compiler_pic='-DDLL_EXPORT'
7907 ;;
7908
7909 darwin* | rhapsody*)
7910 # PIC is the default on this platform
7911 # Common symbols not allowed in MH_DYLIB files
7912 lt_prog_compiler_pic='-fno-common'
7913 ;;
7914
7915 hpux*)
7916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7918 # sets the default TLS model and affects inlining.
7919 case $host_cpu in
7920 hppa*64*)
7921 # +Z the default
7922 ;;
7923 *)
7924 lt_prog_compiler_pic='-fPIC'
7925 ;;
7926 esac
7927 ;;
7928
7929 interix[3-9]*)
7930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7931 # Instead, we relocate shared libraries at runtime.
7932 ;;
7933
7934 msdosdjgpp*)
7935 # Just because we use GCC doesn't mean we suddenly get shared libraries
7936 # on systems that don't support them.
7937 lt_prog_compiler_can_build_shared=no
7938 enable_shared=no
7939 ;;
7940
7941 *nto* | *qnx*)
7942 # QNX uses GNU C++, but need to define -shared option too, otherwise
7943 # it will coredump.
7944 lt_prog_compiler_pic='-fPIC -shared'
7945 ;;
7946
7947 sysv4*MP*)
7948 if test -d /usr/nec; then
7949 lt_prog_compiler_pic=-Kconform_pic
7950 fi
7951 ;;
7952
7953 *)
7954 lt_prog_compiler_pic='-fPIC'
7955 ;;
7956 esac
7957 else
7958 # PORTME Check for flag to pass linker flags through the system compiler.
7959 case $host_os in
7960 aix*)
7961 lt_prog_compiler_wl='-Wl,'
7962 if test "$host_cpu" = ia64; then
7963 # AIX 5 now supports IA64 processor
7964 lt_prog_compiler_static='-Bstatic'
7965 else
7966 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7967 fi
7968 ;;
7969
7970 mingw* | cygwin* | pw32* | os2* | cegcc*)
7971 # This hack is so that the source file can tell whether it is being
7972 # built for inclusion in a dll (and should export symbols for example).
7973 lt_prog_compiler_pic='-DDLL_EXPORT'
7974 ;;
7975
7976 hpux9* | hpux10* | hpux11*)
7977 lt_prog_compiler_wl='-Wl,'
7978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7979 # not for PA HP-UX.
7980 case $host_cpu in
7981 hppa*64*|ia64*)
7982 # +Z the default
7983 ;;
7984 *)
7985 lt_prog_compiler_pic='+Z'
7986 ;;
7987 esac
7988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7989 lt_prog_compiler_static='${wl}-a ${wl}archive'
7990 ;;
7991
7992 irix5* | irix6* | nonstopux*)
7993 lt_prog_compiler_wl='-Wl,'
7994 # PIC (with -KPIC) is the default.
7995 lt_prog_compiler_static='-non_shared'
7996 ;;
7997
7998 linux* | k*bsd*-gnu)
7999 case $cc_basename in
8000 # old Intel for x86_64 which still supported -KPIC.
8001 ecc*)
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-KPIC'
8004 lt_prog_compiler_static='-static'
8005 ;;
8006 # icc used to be incompatible with GCC.
8007 # ICC 10 doesn't accept -KPIC any more.
8008 icc* | ifort*)
8009 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-fPIC'
8011 lt_prog_compiler_static='-static'
8012 ;;
8013 # Lahey Fortran 8.1.
8014 lf95*)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='--shared'
8017 lt_prog_compiler_static='--static'
8018 ;;
8019 pgcc* | pgf77* | pgf90* | pgf95*)
8020 # Portland Group compilers (*not* the Pentium gcc compiler,
8021 # which looks to be a dead project)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-fpic'
8024 lt_prog_compiler_static='-Bstatic'
8025 ;;
8026 ccc*)
8027 lt_prog_compiler_wl='-Wl,'
8028 # All Alpha code is PIC.
8029 lt_prog_compiler_static='-non_shared'
8030 ;;
8031 xl*)
8032 # IBM XL C 8.0/Fortran 10.1 on PPC
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-qpic'
8035 lt_prog_compiler_static='-qstaticlink'
8036 ;;
8037 *)
8038 case `$CC -V 2>&1 | sed 5q` in
8039 *Sun\ C*)
8040 # Sun C 5.9
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-Bstatic'
8043 lt_prog_compiler_wl='-Wl,'
8044 ;;
8045 *Sun\ F*)
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 lt_prog_compiler_wl=''
8050 ;;
8051 esac
8052 ;;
8053 esac
8054 ;;
8055
8056 newsos6)
8057 lt_prog_compiler_pic='-KPIC'
8058 lt_prog_compiler_static='-Bstatic'
8059 ;;
8060
8061 *nto* | *qnx*)
8062 # QNX uses GNU C++, but need to define -shared option too, otherwise
8063 # it will coredump.
8064 lt_prog_compiler_pic='-fPIC -shared'
8065 ;;
8066
8067 osf3* | osf4* | osf5*)
8068 lt_prog_compiler_wl='-Wl,'
8069 # All OSF/1 code is PIC.
8070 lt_prog_compiler_static='-non_shared'
8071 ;;
8072
8073 rdos*)
8074 lt_prog_compiler_static='-non_shared'
8075 ;;
8076
8077 solaris*)
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 case $cc_basename in
8081 f77* | f90* | f95*)
8082 lt_prog_compiler_wl='-Qoption ld ';;
8083 *)
8084 lt_prog_compiler_wl='-Wl,';;
8085 esac
8086 ;;
8087
8088 sunos4*)
8089 lt_prog_compiler_wl='-Qoption ld '
8090 lt_prog_compiler_pic='-PIC'
8091 lt_prog_compiler_static='-Bstatic'
8092 ;;
8093
8094 sysv4 | sysv4.2uw2* | sysv4.3*)
8095 lt_prog_compiler_wl='-Wl,'
8096 lt_prog_compiler_pic='-KPIC'
8097 lt_prog_compiler_static='-Bstatic'
8098 ;;
8099
8100 sysv4*MP*)
8101 if test -d /usr/nec ;then
8102 lt_prog_compiler_pic='-Kconform_pic'
8103 lt_prog_compiler_static='-Bstatic'
8104 fi
8105 ;;
8106
8107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-Bstatic'
8111 ;;
8112
8113 unicos*)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_can_build_shared=no
8116 ;;
8117
8118 uts4*)
8119 lt_prog_compiler_pic='-pic'
8120 lt_prog_compiler_static='-Bstatic'
8121 ;;
8122
8123 *)
8124 lt_prog_compiler_can_build_shared=no
8125 ;;
8126 esac
8127 fi
8128
8129 case $host_os in
8130 # For platforms which do not support PIC, -DPIC is meaningless:
8131 *djgpp*)
8132 lt_prog_compiler_pic=
8133 ;;
8134 *)
8135 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8136 ;;
8137 esac
8138 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8139 $as_echo "$lt_prog_compiler_pic" >&6; }
8140
8141
8142
8143
8144
8145
8146 #
8147 # Check to make sure the PIC flag actually works.
8148 #
8149 if test -n "$lt_prog_compiler_pic"; then
8150 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8151 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8152 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8153 $as_echo_n "(cached) " >&6
8154 else
8155 lt_cv_prog_compiler_pic_works=no
8156 ac_outfile=conftest.$ac_objext
8157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8158 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8159 # Insert the option either (1) after the last *FLAGS variable, or
8160 # (2) before a word containing "conftest.", or (3) at the end.
8161 # Note that $ac_compile itself does not contain backslashes and begins
8162 # with a dollar sign (not a hyphen), so the echo should work correctly.
8163 # The option is referenced via a variable to avoid confusing sed.
8164 lt_compile=`echo "$ac_compile" | $SED \
8165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8167 -e 's:$: $lt_compiler_flag:'`
8168 (eval echo "\"\$as_me:8168: $lt_compile\"" >&5)
8169 (eval "$lt_compile" 2>conftest.err)
8170 ac_status=$?
8171 cat conftest.err >&5
8172 echo "$as_me:8172: \$? = $ac_status" >&5
8173 if (exit $ac_status) && test -s "$ac_outfile"; then
8174 # The compiler can only warn and ignore the option if not recognized
8175 # So say no if there are warnings other than the usual output.
8176 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8179 lt_cv_prog_compiler_pic_works=yes
8180 fi
8181 fi
8182 $RM conftest*
8183
8184 fi
8185 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8186 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8187
8188 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8189 case $lt_prog_compiler_pic in
8190 "" | " "*) ;;
8191 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8192 esac
8193 else
8194 lt_prog_compiler_pic=
8195 lt_prog_compiler_can_build_shared=no
8196 fi
8197
8198 fi
8199
8200
8201
8202
8203
8204
8205 #
8206 # Check to make sure the static flag actually works.
8207 #
8208 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8209 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8210 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8211 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8212 $as_echo_n "(cached) " >&6
8213 else
8214 lt_cv_prog_compiler_static_works=no
8215 save_LDFLAGS="$LDFLAGS"
8216 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8217 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8219 # The linker can only warn and ignore the option if not recognized
8220 # So say no if there are warnings
8221 if test -s conftest.err; then
8222 # Append any errors to the config.log.
8223 cat conftest.err 1>&5
8224 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_static_works=yes
8228 fi
8229 else
8230 lt_cv_prog_compiler_static_works=yes
8231 fi
8232 fi
8233 $RM -r conftest*
8234 LDFLAGS="$save_LDFLAGS"
8235
8236 fi
8237 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8238 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8239
8240 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8241 :
8242 else
8243 lt_prog_compiler_static=
8244 fi
8245
8246
8247
8248
8249
8250
8251
8252 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8253 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8256 else
8257 lt_cv_prog_compiler_c_o=no
8258 $RM -r conftest 2>/dev/null
8259 mkdir conftest
8260 cd conftest
8261 mkdir out
8262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8263
8264 lt_compiler_flag="-o out/conftest2.$ac_objext"
8265 # Insert the option either (1) after the last *FLAGS variable, or
8266 # (2) before a word containing "conftest.", or (3) at the end.
8267 # Note that $ac_compile itself does not contain backslashes and begins
8268 # with a dollar sign (not a hyphen), so the echo should work correctly.
8269 lt_compile=`echo "$ac_compile" | $SED \
8270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8272 -e 's:$: $lt_compiler_flag:'`
8273 (eval echo "\"\$as_me:8273: $lt_compile\"" >&5)
8274 (eval "$lt_compile" 2>out/conftest.err)
8275 ac_status=$?
8276 cat out/conftest.err >&5
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8279 then
8280 # The compiler can only warn and ignore the option if not recognized
8281 # So say no if there are warnings
8282 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8285 lt_cv_prog_compiler_c_o=yes
8286 fi
8287 fi
8288 chmod u+w . 2>&5
8289 $RM conftest*
8290 # SGI C++ compiler will create directory out/ii_files/ for
8291 # template instantiation
8292 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8293 $RM out/* && rmdir out
8294 cd ..
8295 $RM -r conftest
8296 $RM conftest*
8297
8298 fi
8299 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8300 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8301
8302
8303
8304
8305
8306
8307 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8309 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8310 $as_echo_n "(cached) " >&6
8311 else
8312 lt_cv_prog_compiler_c_o=no
8313 $RM -r conftest 2>/dev/null
8314 mkdir conftest
8315 cd conftest
8316 mkdir out
8317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318
8319 lt_compiler_flag="-o out/conftest2.$ac_objext"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 lt_compile=`echo "$ac_compile" | $SED \
8325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327 -e 's:$: $lt_compiler_flag:'`
8328 (eval echo "\"\$as_me:8328: $lt_compile\"" >&5)
8329 (eval "$lt_compile" 2>out/conftest.err)
8330 ac_status=$?
8331 cat out/conftest.err >&5
8332 echo "$as_me:8332: \$? = $ac_status" >&5
8333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8334 then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings
8337 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_c_o=yes
8341 fi
8342 fi
8343 chmod u+w . 2>&5
8344 $RM conftest*
8345 # SGI C++ compiler will create directory out/ii_files/ for
8346 # template instantiation
8347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8348 $RM out/* && rmdir out
8349 cd ..
8350 $RM -r conftest
8351 $RM conftest*
8352
8353 fi
8354 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8355 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8356
8357
8358
8359
8360 hard_links="nottested"
8361 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8362 # do not overwrite the value of need_locks provided by the user
8363 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8364 $as_echo_n "checking if we can lock with hard links... " >&6; }
8365 hard_links=yes
8366 $RM conftest*
8367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8368 touch conftest.a
8369 ln conftest.a conftest.b 2>&5 || hard_links=no
8370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8371 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8372 $as_echo "$hard_links" >&6; }
8373 if test "$hard_links" = no; then
8374 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8375 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8376 need_locks=warn
8377 fi
8378 else
8379 need_locks=no
8380 fi
8381
8382
8383
8384
8385
8386
8387 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8389
8390 runpath_var=
8391 allow_undefined_flag=
8392 always_export_symbols=no
8393 archive_cmds=
8394 archive_expsym_cmds=
8395 compiler_needs_object=no
8396 enable_shared_with_static_runtimes=no
8397 export_dynamic_flag_spec=
8398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8399 hardcode_automatic=no
8400 hardcode_direct=no
8401 hardcode_direct_absolute=no
8402 hardcode_libdir_flag_spec=
8403 hardcode_libdir_flag_spec_ld=
8404 hardcode_libdir_separator=
8405 hardcode_minus_L=no
8406 hardcode_shlibpath_var=unsupported
8407 inherit_rpath=no
8408 link_all_deplibs=unknown
8409 module_cmds=
8410 module_expsym_cmds=
8411 old_archive_from_new_cmds=
8412 old_archive_from_expsyms_cmds=
8413 thread_safe_flag_spec=
8414 whole_archive_flag_spec=
8415 # include_expsyms should be a list of space-separated symbols to be *always*
8416 # included in the symbol list
8417 include_expsyms=
8418 # exclude_expsyms can be an extended regexp of symbols to exclude
8419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8421 # as well as any symbol that contains `d'.
8422 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8424 # platforms (ab)use it in PIC code, but their linkers get confused if
8425 # the symbol is explicitly referenced. Since portable code cannot
8426 # rely on this symbol name, it's probably fine to never include it in
8427 # preloaded symbol tables.
8428 # Exclude shared library initialization/finalization symbols.
8429 extract_expsyms_cmds=
8430
8431 case $host_os in
8432 cygwin* | mingw* | pw32* | cegcc*)
8433 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8434 # When not using gcc, we currently assume that we are using
8435 # Microsoft Visual C++.
8436 if test "$GCC" != yes; then
8437 with_gnu_ld=no
8438 fi
8439 ;;
8440 interix*)
8441 # we just hope/assume this is gcc and not c89 (= MSVC++)
8442 with_gnu_ld=yes
8443 ;;
8444 openbsd*)
8445 with_gnu_ld=no
8446 ;;
8447 esac
8448
8449 ld_shlibs=yes
8450 if test "$with_gnu_ld" = yes; then
8451 # If archive_cmds runs LD, not CC, wlarc should be empty
8452 wlarc='${wl}'
8453
8454 # Set some defaults for GNU ld with shared library support. These
8455 # are reset later if shared libraries are not supported. Putting them
8456 # here allows them to be overridden if necessary.
8457 runpath_var=LD_RUN_PATH
8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8459 export_dynamic_flag_spec='${wl}--export-dynamic'
8460 # ancient GNU ld didn't support --whole-archive et. al.
8461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8462 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8463 else
8464 whole_archive_flag_spec=
8465 fi
8466 supports_anon_versioning=no
8467 case `$LD -v 2>&1` in
8468 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8469 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8470 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8471 *\ 2.11.*) ;; # other 2.11 versions
8472 *) supports_anon_versioning=yes ;;
8473 esac
8474
8475 # See if GNU ld supports shared libraries.
8476 case $host_os in
8477 aix[3-9]*)
8478 # On AIX/PPC, the GNU linker is very broken
8479 if test "$host_cpu" != ia64; then
8480 ld_shlibs=no
8481 cat <<_LT_EOF 1>&2
8482
8483 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8484 *** to be unable to reliably create shared libraries on AIX.
8485 *** Therefore, libtool is disabling shared libraries support. If you
8486 *** really care for shared libraries, you may want to modify your PATH
8487 *** so that a non-GNU linker is found, and then restart.
8488
8489 _LT_EOF
8490 fi
8491 ;;
8492
8493 amigaos*)
8494 case $host_cpu in
8495 powerpc)
8496 # see comment about AmigaOS4 .so support
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 archive_expsym_cmds=''
8499 ;;
8500 m68k)
8501 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)'
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_minus_L=yes
8504 ;;
8505 esac
8506 ;;
8507
8508 beos*)
8509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510 allow_undefined_flag=unsupported
8511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8512 # support --undefined. This deserves some investigation. FIXME
8513 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 else
8515 ld_shlibs=no
8516 fi
8517 ;;
8518
8519 cygwin* | mingw* | pw32* | cegcc*)
8520 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8521 # as there is no search path for DLLs.
8522 hardcode_libdir_flag_spec='-L$libdir'
8523 allow_undefined_flag=unsupported
8524 always_export_symbols=no
8525 enable_shared_with_static_runtimes=yes
8526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8527
8528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8530 # If the export-symbols file already is a .def file (1st line
8531 # is EXPORTS), use it as is; otherwise, prepend...
8532 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8533 cp $export_symbols $output_objdir/$soname.def;
8534 else
8535 echo EXPORTS > $output_objdir/$soname.def;
8536 cat $export_symbols >> $output_objdir/$soname.def;
8537 fi~
8538 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8539 else
8540 ld_shlibs=no
8541 fi
8542 ;;
8543
8544 interix[3-9]*)
8545 hardcode_direct=no
8546 hardcode_shlibpath_var=no
8547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8548 export_dynamic_flag_spec='${wl}-E'
8549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8550 # Instead, shared libraries are loaded at an image base (0x10000000 by
8551 # default) and relocated if they conflict, which is a slow very memory
8552 # consuming and fragmenting process. To avoid this, we pick a random,
8553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8556 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'
8557 ;;
8558
8559 gnu* | linux* | tpf* | k*bsd*-gnu)
8560 tmp_diet=no
8561 if test "$host_os" = linux-dietlibc; then
8562 case $cc_basename in
8563 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8564 esac
8565 fi
8566 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8567 && test "$tmp_diet" = no
8568 then
8569 tmp_addflag=
8570 tmp_sharedflag='-shared'
8571 case $cc_basename,$host_cpu in
8572 pgcc*) # Portland Group C compiler
8573 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'
8574 tmp_addflag=' $pic_flag'
8575 ;;
8576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8577 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'
8578 tmp_addflag=' $pic_flag -Mnomain' ;;
8579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8580 tmp_addflag=' -i_dynamic' ;;
8581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8582 tmp_addflag=' -i_dynamic -nofor_main' ;;
8583 ifc* | ifort*) # Intel Fortran compiler
8584 tmp_addflag=' -nofor_main' ;;
8585 lf95*) # Lahey Fortran 8.1
8586 whole_archive_flag_spec=
8587 tmp_sharedflag='--shared' ;;
8588 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8589 tmp_sharedflag='-qmkshrobj'
8590 tmp_addflag= ;;
8591 esac
8592 case `$CC -V 2>&1 | sed 5q` in
8593 *Sun\ C*) # Sun C 5.9
8594 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'
8595 compiler_needs_object=yes
8596 tmp_sharedflag='-G' ;;
8597 *Sun\ F*) # Sun Fortran 8.3
8598 tmp_sharedflag='-G' ;;
8599 esac
8600 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601
8602 if test "x$supports_anon_versioning" = xyes; then
8603 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8605 echo "local: *; };" >> $output_objdir/$libname.ver~
8606 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8607 fi
8608
8609 case $cc_basename in
8610 xlf*)
8611 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8612 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8613 hardcode_libdir_flag_spec=
8614 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8615 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8616 if test "x$supports_anon_versioning" = xyes; then
8617 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8619 echo "local: *; };" >> $output_objdir/$libname.ver~
8620 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8621 fi
8622 ;;
8623 esac
8624 else
8625 ld_shlibs=no
8626 fi
8627 ;;
8628
8629 netbsd*)
8630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8631 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8632 wlarc=
8633 else
8634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8636 fi
8637 ;;
8638
8639 solaris*)
8640 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8641 ld_shlibs=no
8642 cat <<_LT_EOF 1>&2
8643
8644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8645 *** create shared libraries on Solaris systems. Therefore, libtool
8646 *** is disabling shared libraries support. We urge you to upgrade GNU
8647 *** binutils to release 2.9.1 or newer. Another option is to modify
8648 *** your PATH or compiler configuration so that the native linker is
8649 *** used, and then restart.
8650
8651 _LT_EOF
8652 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8655 else
8656 ld_shlibs=no
8657 fi
8658 ;;
8659
8660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8661 case `$LD -v 2>&1` in
8662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
8665
8666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8667 *** reliably create shared libraries on SCO systems. Therefore, libtool
8668 *** is disabling shared libraries support. We urge you to upgrade GNU
8669 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8672
8673 _LT_EOF
8674 ;;
8675 *)
8676 # For security reasons, it is highly recommended that you always
8677 # use absolute paths for naming shared libraries, and exclude the
8678 # DT_RUNPATH tag from executables and libraries. But doing so
8679 # requires that you compile everything twice, which is a pain.
8680 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
8688 esac
8689 ;;
8690
8691 sunos4*)
8692 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693 wlarc=
8694 hardcode_direct=yes
8695 hardcode_shlibpath_var=no
8696 ;;
8697
8698 *)
8699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702 else
8703 ld_shlibs=no
8704 fi
8705 ;;
8706 esac
8707
8708 if test "$ld_shlibs" = no; then
8709 runpath_var=
8710 hardcode_libdir_flag_spec=
8711 export_dynamic_flag_spec=
8712 whole_archive_flag_spec=
8713 fi
8714 else
8715 # PORTME fill in a description of your system's linker (not GNU ld)
8716 case $host_os in
8717 aix3*)
8718 allow_undefined_flag=unsupported
8719 always_export_symbols=yes
8720 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'
8721 # Note: this linker hardcodes the directories in LIBPATH if there
8722 # are no directories specified by -L.
8723 hardcode_minus_L=yes
8724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8725 # Neither direct hardcoding nor static linking is supported with a
8726 # broken collect2.
8727 hardcode_direct=unsupported
8728 fi
8729 ;;
8730
8731 aix[4-9]*)
8732 if test "$host_cpu" = ia64; then
8733 # On IA64, the linker does run time linking by default, so we don't
8734 # have to do anything special.
8735 aix_use_runtimelinking=no
8736 exp_sym_flag='-Bexport'
8737 no_entry_flag=""
8738 else
8739 # If we're using GNU nm, then we don't want the "-C" option.
8740 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8741 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8742 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'
8743 else
8744 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'
8745 fi
8746 aix_use_runtimelinking=no
8747
8748 # Test if we are trying to use run time linking or normal
8749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8750 # need to do runtime linking.
8751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8752 for ld_flag in $LDFLAGS; do
8753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8754 aix_use_runtimelinking=yes
8755 break
8756 fi
8757 done
8758 ;;
8759 esac
8760
8761 exp_sym_flag='-bexport'
8762 no_entry_flag='-bnoentry'
8763 fi
8764
8765 # When large executables or shared objects are built, AIX ld can
8766 # have problems creating the table of contents. If linking a library
8767 # or program results in "error TOC overflow" add -mminimal-toc to
8768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8770
8771 archive_cmds=''
8772 hardcode_direct=yes
8773 hardcode_direct_absolute=yes
8774 hardcode_libdir_separator=':'
8775 link_all_deplibs=yes
8776 file_list_spec='${wl}-f,'
8777
8778 if test "$GCC" = yes; then
8779 case $host_os in aix4.[012]|aix4.[012].*)
8780 # We only want to do this on AIX 4.2 and lower, the check
8781 # below for broken collect2 doesn't work under 4.3+
8782 collect2name=`${CC} -print-prog-name=collect2`
8783 if test -f "$collect2name" &&
8784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8785 then
8786 # We have reworked collect2
8787 :
8788 else
8789 # We have old collect2
8790 hardcode_direct=unsupported
8791 # It fails to find uninstalled libraries when the uninstalled
8792 # path is not listed in the libpath. Setting hardcode_minus_L
8793 # to unsupported forces relinking
8794 hardcode_minus_L=yes
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_libdir_separator=
8797 fi
8798 ;;
8799 esac
8800 shared_flag='-shared'
8801 if test "$aix_use_runtimelinking" = yes; then
8802 shared_flag="$shared_flag "'${wl}-G'
8803 fi
8804 else
8805 # not using gcc
8806 if test "$host_cpu" = ia64; then
8807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8808 # chokes on -Wl,-G. The following line is correct:
8809 shared_flag='-G'
8810 else
8811 if test "$aix_use_runtimelinking" = yes; then
8812 shared_flag='${wl}-G'
8813 else
8814 shared_flag='${wl}-bM:SRE'
8815 fi
8816 fi
8817 fi
8818
8819 export_dynamic_flag_spec='${wl}-bexpall'
8820 # It seems that -bexpall does not export symbols beginning with
8821 # underscore (_), so it is better to generate a list of symbols to export.
8822 always_export_symbols=yes
8823 if test "$aix_use_runtimelinking" = yes; then
8824 # Warning - without using the other runtime loading flags (-brtl),
8825 # -berok will link without error, but may produce a broken library.
8826 allow_undefined_flag='-berok'
8827 # Determine the default libpath from the value encoded in an
8828 # empty executable.
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835
8836 int
8837 main ()
8838 {
8839
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (ac_try="$ac_link"
8846 case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849 esac
8850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8851 $as_echo "$ac_try_echo") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest$ac_exeext && {
8862 test "$cross_compiling" = yes ||
8863 $as_test_x conftest$ac_exeext
8864 }; then
8865
8866 lt_aix_libpath_sed='
8867 /Import File Strings/,/^$/ {
8868 /^0/ {
8869 s/^0 *\(.*\)$/\1/
8870 p
8871 }
8872 }'
8873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8874 # Check for a 64-bit object if we didn't find anything.
8875 if test -z "$aix_libpath"; then
8876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8877 fi
8878 else
8879 $as_echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8881
8882
8883 fi
8884
8885 rm -rf conftest.dSYM
8886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8887 conftest$ac_exeext conftest.$ac_ext
8888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8889
8890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8891 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"
8892 else
8893 if test "$host_cpu" = ia64; then
8894 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8895 allow_undefined_flag="-z nodefs"
8896 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"
8897 else
8898 # Determine the default libpath from the value encoded in an
8899 # empty executable.
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906
8907 int
8908 main ()
8909 {
8910
8911 ;
8912 return 0;
8913 }
8914 _ACEOF
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (ac_try="$ac_link"
8917 case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920 esac
8921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923 (eval "$ac_link") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest$ac_exeext && {
8933 test "$cross_compiling" = yes ||
8934 $as_test_x conftest$ac_exeext
8935 }; then
8936
8937 lt_aix_libpath_sed='
8938 /Import File Strings/,/^$/ {
8939 /^0/ {
8940 s/^0 *\(.*\)$/\1/
8941 p
8942 }
8943 }'
8944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945 # Check for a 64-bit object if we didn't find anything.
8946 if test -z "$aix_libpath"; then
8947 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948 fi
8949 else
8950 $as_echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953
8954 fi
8955
8956 rm -rf conftest.dSYM
8957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8958 conftest$ac_exeext conftest.$ac_ext
8959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8960
8961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8962 # Warning - without using the other run time loading flags,
8963 # -berok will link without error, but may produce a broken library.
8964 no_undefined_flag=' ${wl}-bernotok'
8965 allow_undefined_flag=' ${wl}-berok'
8966 # Exported symbols can be pulled into shared objects from archives
8967 whole_archive_flag_spec='$convenience'
8968 archive_cmds_need_lc=yes
8969 # This is similar to how AIX traditionally builds its shared libraries.
8970 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'
8971 fi
8972 fi
8973 ;;
8974
8975 amigaos*)
8976 case $host_cpu in
8977 powerpc)
8978 # see comment about AmigaOS4 .so support
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds=''
8981 ;;
8982 m68k)
8983 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)'
8984 hardcode_libdir_flag_spec='-L$libdir'
8985 hardcode_minus_L=yes
8986 ;;
8987 esac
8988 ;;
8989
8990 bsdi[45]*)
8991 export_dynamic_flag_spec=-rdynamic
8992 ;;
8993
8994 cygwin* | mingw* | pw32* | cegcc*)
8995 # When not using gcc, we currently assume that we are using
8996 # Microsoft Visual C++.
8997 # hardcode_libdir_flag_spec is actually meaningless, as there is
8998 # no search path for DLLs.
8999 hardcode_libdir_flag_spec=' '
9000 allow_undefined_flag=unsupported
9001 # Tell ltmain to make .lib files, not .a files.
9002 libext=lib
9003 # Tell ltmain to make .dll files, not .so files.
9004 shrext_cmds=".dll"
9005 # FIXME: Setting linknames here is a bad hack.
9006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9007 # The linker will automatically build a .lib file if we build a DLL.
9008 old_archive_from_new_cmds='true'
9009 # FIXME: Should let the user specify the lib program.
9010 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9011 fix_srcfile_path='`cygpath -w "$srcfile"`'
9012 enable_shared_with_static_runtimes=yes
9013 ;;
9014
9015 darwin* | rhapsody*)
9016
9017
9018 archive_cmds_need_lc=no
9019 hardcode_direct=no
9020 hardcode_automatic=yes
9021 hardcode_shlibpath_var=unsupported
9022 whole_archive_flag_spec=''
9023 link_all_deplibs=yes
9024 allow_undefined_flag="$_lt_dar_allow_undefined"
9025 case $cc_basename in
9026 ifort*) _lt_dar_can_shared=yes ;;
9027 *) _lt_dar_can_shared=$GCC ;;
9028 esac
9029 if test "$_lt_dar_can_shared" = "yes"; then
9030 output_verbose_link_cmd=echo
9031 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9032 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9033 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}"
9034 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}"
9035
9036 else
9037 ld_shlibs=no
9038 fi
9039
9040 ;;
9041
9042 dgux*)
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 freebsd1*)
9049 ld_shlibs=no
9050 ;;
9051
9052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9053 # support. Future versions do this automatically, but an explicit c++rt0.o
9054 # does not break anything, and helps significantly (at the cost of a little
9055 # extra space).
9056 freebsd2.2*)
9057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9058 hardcode_libdir_flag_spec='-R$libdir'
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9061 ;;
9062
9063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9064 freebsd2*)
9065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_direct=yes
9067 hardcode_minus_L=yes
9068 hardcode_shlibpath_var=no
9069 ;;
9070
9071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9072 freebsd* | dragonfly*)
9073 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9074 hardcode_libdir_flag_spec='-R$libdir'
9075 hardcode_direct=yes
9076 hardcode_shlibpath_var=no
9077 ;;
9078
9079 hpux9*)
9080 if test "$GCC" = yes; then
9081 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'
9082 else
9083 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'
9084 fi
9085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9086 hardcode_libdir_separator=:
9087 hardcode_direct=yes
9088
9089 # hardcode_minus_L: Not really in the search PATH,
9090 # but as the default location of the library.
9091 hardcode_minus_L=yes
9092 export_dynamic_flag_spec='${wl}-E'
9093 ;;
9094
9095 hpux10*)
9096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9097 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9098 else
9099 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9100 fi
9101 if test "$with_gnu_ld" = no; then
9102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103 hardcode_libdir_flag_spec_ld='+b $libdir'
9104 hardcode_libdir_separator=:
9105 hardcode_direct=yes
9106 hardcode_direct_absolute=yes
9107 export_dynamic_flag_spec='${wl}-E'
9108 # hardcode_minus_L: Not really in the search PATH,
9109 # but as the default location of the library.
9110 hardcode_minus_L=yes
9111 fi
9112 ;;
9113
9114 hpux11*)
9115 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9116 case $host_cpu in
9117 hppa*64*)
9118 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9119 ;;
9120 ia64*)
9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9122 ;;
9123 *)
9124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9125 ;;
9126 esac
9127 else
9128 case $host_cpu in
9129 hppa*64*)
9130 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9131 ;;
9132 ia64*)
9133 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9134 ;;
9135 *)
9136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9137 ;;
9138 esac
9139 fi
9140 if test "$with_gnu_ld" = no; then
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_separator=:
9143
9144 case $host_cpu in
9145 hppa*64*|ia64*)
9146 hardcode_direct=no
9147 hardcode_shlibpath_var=no
9148 ;;
9149 *)
9150 hardcode_direct=yes
9151 hardcode_direct_absolute=yes
9152 export_dynamic_flag_spec='${wl}-E'
9153
9154 # hardcode_minus_L: Not really in the search PATH,
9155 # but as the default location of the library.
9156 hardcode_minus_L=yes
9157 ;;
9158 esac
9159 fi
9160 ;;
9161
9162 irix5* | irix6* | nonstopux*)
9163 if test "$GCC" = yes; then
9164 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'
9165 # Try to use the -exported_symbol ld option, if it does not
9166 # work, assume that -exports_file does not work either and
9167 # implicitly export all symbols.
9168 save_LDFLAGS="$LDFLAGS"
9169 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9170 cat >conftest.$ac_ext <<_ACEOF
9171 int foo(void) {}
9172 _ACEOF
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (ac_try="$ac_link"
9175 case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9180 $as_echo "$ac_try_echo") >&5
9181 (eval "$ac_link") 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && {
9188 test -z "$ac_c_werror_flag" ||
9189 test ! -s conftest.err
9190 } && test -s conftest$ac_exeext && {
9191 test "$cross_compiling" = yes ||
9192 $as_test_x conftest$ac_exeext
9193 }; then
9194 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'
9195
9196 else
9197 $as_echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200
9201 fi
9202
9203 rm -rf conftest.dSYM
9204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9205 conftest$ac_exeext conftest.$ac_ext
9206 LDFLAGS="$save_LDFLAGS"
9207 else
9208 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'
9209 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'
9210 fi
9211 archive_cmds_need_lc='no'
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 hardcode_libdir_separator=:
9214 inherit_rpath=yes
9215 link_all_deplibs=yes
9216 ;;
9217
9218 netbsd*)
9219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9221 else
9222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9223 fi
9224 hardcode_libdir_flag_spec='-R$libdir'
9225 hardcode_direct=yes
9226 hardcode_shlibpath_var=no
9227 ;;
9228
9229 newsos6)
9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9231 hardcode_direct=yes
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233 hardcode_libdir_separator=:
9234 hardcode_shlibpath_var=no
9235 ;;
9236
9237 *nto* | *qnx*)
9238 ;;
9239
9240 openbsd*)
9241 if test -f /usr/libexec/ld.so; then
9242 hardcode_direct=yes
9243 hardcode_shlibpath_var=no
9244 hardcode_direct_absolute=yes
9245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9247 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9249 export_dynamic_flag_spec='${wl}-E'
9250 else
9251 case $host_os in
9252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_libdir_flag_spec='-R$libdir'
9255 ;;
9256 *)
9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259 ;;
9260 esac
9261 fi
9262 else
9263 ld_shlibs=no
9264 fi
9265 ;;
9266
9267 os2*)
9268 hardcode_libdir_flag_spec='-L$libdir'
9269 hardcode_minus_L=yes
9270 allow_undefined_flag=unsupported
9271 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'
9272 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9273 ;;
9274
9275 osf3*)
9276 if test "$GCC" = yes; then
9277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9278 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'
9279 else
9280 allow_undefined_flag=' -expect_unresolved \*'
9281 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'
9282 fi
9283 archive_cmds_need_lc='no'
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 hardcode_libdir_separator=:
9286 ;;
9287
9288 osf4* | osf5*) # as osf3* with the addition of -msym flag
9289 if test "$GCC" = yes; then
9290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291 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'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 else
9294 allow_undefined_flag=' -expect_unresolved \*'
9295 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'
9296 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~
9297 $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'
9298
9299 # Both c and cxx compiler support -rpath directly
9300 hardcode_libdir_flag_spec='-rpath $libdir'
9301 fi
9302 archive_cmds_need_lc='no'
9303 hardcode_libdir_separator=:
9304 ;;
9305
9306 solaris*)
9307 no_undefined_flag=' -z defs'
9308 if test "$GCC" = yes; then
9309 wlarc='${wl}'
9310 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9312 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9313 else
9314 case `$CC -V 2>&1` in
9315 *"Compilers 5.0"*)
9316 wlarc=''
9317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9320 ;;
9321 *)
9322 wlarc='${wl}'
9323 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9326 ;;
9327 esac
9328 fi
9329 hardcode_libdir_flag_spec='-R$libdir'
9330 hardcode_shlibpath_var=no
9331 case $host_os in
9332 solaris2.[0-5] | solaris2.[0-5].*) ;;
9333 *)
9334 # The compiler driver will combine and reorder linker options,
9335 # but understands `-z linker_flag'. GCC discards it without `$wl',
9336 # but is careful enough not to reorder.
9337 # Supported since Solaris 2.6 (maybe 2.5.1?)
9338 if test "$GCC" = yes; then
9339 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9340 else
9341 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9342 fi
9343 ;;
9344 esac
9345 link_all_deplibs=yes
9346 ;;
9347
9348 sunos4*)
9349 if test "x$host_vendor" = xsequent; then
9350 # Use $CC to link under sequent, because it throws in some extra .o
9351 # files that make .init and .fini sections work.
9352 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9355 fi
9356 hardcode_libdir_flag_spec='-L$libdir'
9357 hardcode_direct=yes
9358 hardcode_minus_L=yes
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 sysv4)
9363 case $host_vendor in
9364 sni)
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_direct=yes # is this really true???
9367 ;;
9368 siemens)
9369 ## LD is ld it makes a PLAMLIB
9370 ## CC just makes a GrossModule.
9371 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9372 reload_cmds='$CC -r -o $output$reload_objs'
9373 hardcode_direct=no
9374 ;;
9375 motorola)
9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9378 ;;
9379 esac
9380 runpath_var='LD_RUN_PATH'
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 sysv4.3*)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_shlibpath_var=no
9387 export_dynamic_flag_spec='-Bexport'
9388 ;;
9389
9390 sysv4*MP*)
9391 if test -d /usr/nec; then
9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_shlibpath_var=no
9394 runpath_var=LD_RUN_PATH
9395 hardcode_runpath_var=yes
9396 ld_shlibs=yes
9397 fi
9398 ;;
9399
9400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9401 no_undefined_flag='${wl}-z,text'
9402 archive_cmds_need_lc=no
9403 hardcode_shlibpath_var=no
9404 runpath_var='LD_RUN_PATH'
9405
9406 if test "$GCC" = yes; then
9407 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 else
9410 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 fi
9413 ;;
9414
9415 sysv5* | sco3.2v5* | sco5v6*)
9416 # Note: We can NOT use -z defs as we might desire, because we do not
9417 # link with -lc, and that would cause any symbols used from libc to
9418 # always be unresolved, which means just about no library would
9419 # ever link correctly. If we're not using GNU ld we use -z text
9420 # though, which does catch some bad symbols but isn't as heavy-handed
9421 # as -z defs.
9422 no_undefined_flag='${wl}-z,text'
9423 allow_undefined_flag='${wl}-z,nodefs'
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
9426 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9427 hardcode_libdir_separator=':'
9428 link_all_deplibs=yes
9429 export_dynamic_flag_spec='${wl}-Bexport'
9430 runpath_var='LD_RUN_PATH'
9431
9432 if test "$GCC" = yes; then
9433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 else
9436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 fi
9439 ;;
9440
9441 uts4*)
9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 hardcode_shlibpath_var=no
9445 ;;
9446
9447 *)
9448 ld_shlibs=no
9449 ;;
9450 esac
9451
9452 if test x$host_vendor = xsni; then
9453 case $host in
9454 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9455 export_dynamic_flag_spec='${wl}-Blargedynsym'
9456 ;;
9457 esac
9458 fi
9459 fi
9460
9461 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9462 $as_echo "$ld_shlibs" >&6; }
9463 test "$ld_shlibs" = no && can_build_shared=no
9464
9465 with_gnu_ld=$with_gnu_ld
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481 #
9482 # Do we need to explicitly link libc?
9483 #
9484 case "x$archive_cmds_need_lc" in
9485 x|xyes)
9486 # Assume -lc should be added
9487 archive_cmds_need_lc=yes
9488
9489 if test "$enable_shared" = yes && test "$GCC" = yes; then
9490 case $archive_cmds in
9491 *'~'*)
9492 # FIXME: we may have to deal with multi-command sequences.
9493 ;;
9494 '$CC '*)
9495 # Test whether the compiler implicitly links with -lc since on some
9496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9497 # to ld, don't add -lc before -lgcc.
9498 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9500 $RM conftest*
9501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>&5
9505 ac_status=$?
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } 2>conftest.err; then
9508 soname=conftest
9509 lib=conftest
9510 libobjs=conftest.$ac_objext
9511 deplibs=
9512 wl=$lt_prog_compiler_wl
9513 pic_flag=$lt_prog_compiler_pic
9514 compiler_flags=-v
9515 linker_flags=-v
9516 verstring=
9517 output_objdir=.
9518 libname=conftest
9519 lt_save_allow_undefined_flag=$allow_undefined_flag
9520 allow_undefined_flag=
9521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9522 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9523 ac_status=$?
9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }
9526 then
9527 archive_cmds_need_lc=no
9528 else
9529 archive_cmds_need_lc=yes
9530 fi
9531 allow_undefined_flag=$lt_save_allow_undefined_flag
9532 else
9533 cat conftest.err 1>&5
9534 fi
9535 $RM conftest*
9536 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9537 $as_echo "$archive_cmds_need_lc" >&6; }
9538 ;;
9539 esac
9540 fi
9541 ;;
9542 esac
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9701 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9702
9703 if test "$GCC" = yes; then
9704 case $host_os in
9705 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9706 *) lt_awk_arg="/^libraries:/" ;;
9707 esac
9708 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9709 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9710 # if the path contains ";" then we assume it to be the separator
9711 # otherwise default to the standard path separator (i.e. ":") - it is
9712 # assumed that no part of a normal pathname contains ";" but that should
9713 # okay in the real world where ";" in dirpaths is itself problematic.
9714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9715 else
9716 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9717 fi
9718 # Ok, now we have the path, separated by spaces, we can step through it
9719 # and add multilib dir if necessary.
9720 lt_tmp_lt_search_path_spec=
9721 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9722 for lt_sys_path in $lt_search_path_spec; do
9723 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9725 else
9726 test -d "$lt_sys_path" && \
9727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9728 fi
9729 done
9730 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9731 BEGIN {RS=" "; FS="/|\n";} {
9732 lt_foo="";
9733 lt_count=0;
9734 for (lt_i = NF; lt_i > 0; lt_i--) {
9735 if ($lt_i != "" && $lt_i != ".") {
9736 if ($lt_i == "..") {
9737 lt_count++;
9738 } else {
9739 if (lt_count == 0) {
9740 lt_foo="/" $lt_i lt_foo;
9741 } else {
9742 lt_count--;
9743 }
9744 }
9745 }
9746 }
9747 if (lt_foo != "") { lt_freq[lt_foo]++; }
9748 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9749 }'`
9750 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9751 else
9752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9753 fi
9754 library_names_spec=
9755 libname_spec='lib$name'
9756 soname_spec=
9757 shrext_cmds=".so"
9758 postinstall_cmds=
9759 postuninstall_cmds=
9760 finish_cmds=
9761 finish_eval=
9762 shlibpath_var=
9763 shlibpath_overrides_runpath=unknown
9764 version_type=none
9765 dynamic_linker="$host_os ld.so"
9766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9767 need_lib_prefix=unknown
9768 hardcode_into_libs=no
9769
9770 # when you set need_version to no, make sure it does not cause -set_version
9771 # flags to be left without arguments
9772 need_version=unknown
9773
9774 case $host_os in
9775 aix3*)
9776 version_type=linux
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9778 shlibpath_var=LIBPATH
9779
9780 # AIX 3 has no versioning support, so we append a major version to the name.
9781 soname_spec='${libname}${release}${shared_ext}$major'
9782 ;;
9783
9784 aix[4-9]*)
9785 version_type=linux
9786 need_lib_prefix=no
9787 need_version=no
9788 hardcode_into_libs=yes
9789 if test "$host_cpu" = ia64; then
9790 # AIX 5 supports IA64
9791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 else
9794 # With GCC up to 2.95.x, collect2 would create an import file
9795 # for dependence libraries. The import file would start with
9796 # the line `#! .'. This would cause the generated library to
9797 # depend on `.', always an invalid library. This was fixed in
9798 # development snapshots of GCC prior to 3.0.
9799 case $host_os in
9800 aix4 | aix4.[01] | aix4.[01].*)
9801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9802 echo ' yes '
9803 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9804 :
9805 else
9806 can_build_shared=no
9807 fi
9808 ;;
9809 esac
9810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9811 # soname into executable. Probably we can add versioning support to
9812 # collect2, so additional links can be useful in future.
9813 if test "$aix_use_runtimelinking" = yes; then
9814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9815 # instead of lib<name>.a to let people know that these are not
9816 # typical AIX shared libraries.
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 else
9819 # We preserve .a as extension for shared libraries through AIX4.2
9820 # and later when we are not doing run time linking.
9821 library_names_spec='${libname}${release}.a $libname.a'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 fi
9824 shlibpath_var=LIBPATH
9825 fi
9826 ;;
9827
9828 amigaos*)
9829 case $host_cpu in
9830 powerpc)
9831 # Since July 2007 AmigaOS4 officially supports .so libraries.
9832 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 ;;
9835 m68k)
9836 library_names_spec='$libname.ixlibrary $libname.a'
9837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9838 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'
9839 ;;
9840 esac
9841 ;;
9842
9843 beos*)
9844 library_names_spec='${libname}${shared_ext}'
9845 dynamic_linker="$host_os ld.so"
9846 shlibpath_var=LIBRARY_PATH
9847 ;;
9848
9849 bsdi[45]*)
9850 version_type=linux
9851 need_version=no
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9858 # the default ld.so.conf also contains /usr/contrib/lib and
9859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9860 # libtool to hard-code these into programs
9861 ;;
9862
9863 cygwin* | mingw* | pw32* | cegcc*)
9864 version_type=windows
9865 shrext_cmds=".dll"
9866 need_version=no
9867 need_lib_prefix=no
9868
9869 case $GCC,$host_os in
9870 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9871 library_names_spec='$libname.dll.a'
9872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9873 postinstall_cmds='base_file=`basename \${file}`~
9874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9875 dldir=$destdir/`dirname \$dlpath`~
9876 test -d \$dldir || mkdir -p \$dldir~
9877 $install_prog $dir/$dlname \$dldir/$dlname~
9878 chmod a+x \$dldir/$dlname~
9879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9881 fi'
9882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9883 dlpath=$dir/\$dldll~
9884 $RM \$dlpath'
9885 shlibpath_overrides_runpath=yes
9886
9887 case $host_os in
9888 cygwin*)
9889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9891 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9892 ;;
9893 mingw* | cegcc*)
9894 # MinGW DLLs use traditional 'lib' prefix
9895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9897 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9898 # It is most probably a Windows format PATH printed by
9899 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9900 # path with ; separators, and with drive letters. We can handle the
9901 # drive letters (cygwin fileutils understands them), so leave them,
9902 # especially as we might pass files found there to a mingw objdump,
9903 # which wouldn't understand a cygwinified path. Ahh.
9904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9905 else
9906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9907 fi
9908 ;;
9909 pw32*)
9910 # pw32 DLLs use 'pw' prefix rather than 'lib'
9911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912 ;;
9913 esac
9914 ;;
9915
9916 *)
9917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9918 ;;
9919 esac
9920 dynamic_linker='Win32 ld.exe'
9921 # FIXME: first we should search . and the directory the executable is in
9922 shlibpath_var=PATH
9923 ;;
9924
9925 darwin* | rhapsody*)
9926 dynamic_linker="$host_os dyld"
9927 version_type=darwin
9928 need_lib_prefix=no
9929 need_version=no
9930 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9931 soname_spec='${libname}${release}${major}$shared_ext'
9932 shlibpath_overrides_runpath=yes
9933 shlibpath_var=DYLD_LIBRARY_PATH
9934 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9935
9936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9938 ;;
9939
9940 dgux*)
9941 version_type=linux
9942 need_lib_prefix=no
9943 need_version=no
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 ;;
9948
9949 freebsd1*)
9950 dynamic_linker=no
9951 ;;
9952
9953 freebsd* | dragonfly*)
9954 # DragonFly does not have aout. When/if they implement a new
9955 # versioning mechanism, adjust this.
9956 if test -x /usr/bin/objformat; then
9957 objformat=`/usr/bin/objformat`
9958 else
9959 case $host_os in
9960 freebsd[123]*) objformat=aout ;;
9961 *) objformat=elf ;;
9962 esac
9963 fi
9964 version_type=freebsd-$objformat
9965 case $version_type in
9966 freebsd-elf*)
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 need_version=no
9969 need_lib_prefix=no
9970 ;;
9971 freebsd-*)
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9973 need_version=yes
9974 ;;
9975 esac
9976 shlibpath_var=LD_LIBRARY_PATH
9977 case $host_os in
9978 freebsd2*)
9979 shlibpath_overrides_runpath=yes
9980 ;;
9981 freebsd3.[01]* | freebsdelf3.[01]*)
9982 shlibpath_overrides_runpath=yes
9983 hardcode_into_libs=yes
9984 ;;
9985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9987 shlibpath_overrides_runpath=no
9988 hardcode_into_libs=yes
9989 ;;
9990 *) # from 4.6 on, and DragonFly
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9993 ;;
9994 esac
9995 ;;
9996
9997 gnu*)
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 hardcode_into_libs=yes
10005 ;;
10006
10007 hpux9* | hpux10* | hpux11*)
10008 # Give a soname corresponding to the major version so that dld.sl refuses to
10009 # link against other versions.
10010 version_type=sunos
10011 need_lib_prefix=no
10012 need_version=no
10013 case $host_cpu in
10014 ia64*)
10015 shrext_cmds='.so'
10016 hardcode_into_libs=yes
10017 dynamic_linker="$host_os dld.so"
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 if test "X$HPUX_IA64_MODE" = X32; then
10023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10024 else
10025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10026 fi
10027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10028 ;;
10029 hppa*64*)
10030 shrext_cmds='.sl'
10031 hardcode_into_libs=yes
10032 dynamic_linker="$host_os dld.sl"
10033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10039 ;;
10040 *)
10041 shrext_cmds='.sl'
10042 dynamic_linker="$host_os dld.sl"
10043 shlibpath_var=SHLIB_PATH
10044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 ;;
10048 esac
10049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10050 postinstall_cmds='chmod 555 $lib'
10051 ;;
10052
10053 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10063 ;;
10064
10065 irix5* | irix6* | nonstopux*)
10066 case $host_os in
10067 nonstopux*) version_type=nonstopux ;;
10068 *)
10069 if test "$lt_cv_prog_gnu_ld" = yes; then
10070 version_type=linux
10071 else
10072 version_type=irix
10073 fi ;;
10074 esac
10075 need_lib_prefix=no
10076 need_version=no
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10079 case $host_os in
10080 irix5* | nonstopux*)
10081 libsuff= shlibsuff=
10082 ;;
10083 *)
10084 case $LD in # libtool.m4 will add one of these switches to LD
10085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10086 libsuff= shlibsuff= libmagic=32-bit;;
10087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10088 libsuff=32 shlibsuff=N32 libmagic=N32;;
10089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10091 *) libsuff= shlibsuff= libmagic=never-match;;
10092 esac
10093 ;;
10094 esac
10095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10096 shlibpath_overrides_runpath=no
10097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10099 hardcode_into_libs=yes
10100 ;;
10101
10102 # No shared lib support for Linux oldld, aout, or coff.
10103 linux*oldld* | linux*aout* | linux*coff*)
10104 dynamic_linker=no
10105 ;;
10106
10107 # This must be Linux ELF.
10108 linux* | k*bsd*-gnu)
10109 version_type=linux
10110 need_lib_prefix=no
10111 need_version=no
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10115 shlibpath_var=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath=no
10117 # Some binutils ld are patched to set DT_RUNPATH
10118 save_LDFLAGS=$LDFLAGS
10119 save_libdir=$libdir
10120 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10121 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128
10129 int
10130 main ()
10131 {
10132
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (ac_try="$ac_link"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142 esac
10143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 $as_echo "$ac_try_echo") >&5
10145 (eval "$ac_link") 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest$ac_exeext && {
10155 test "$cross_compiling" = yes ||
10156 $as_test_x conftest$ac_exeext
10157 }; then
10158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10159 shlibpath_overrides_runpath=yes
10160 fi
10161
10162 else
10163 $as_echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166
10167 fi
10168
10169 rm -rf conftest.dSYM
10170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LDFLAGS=$save_LDFLAGS
10173 libdir=$save_libdir
10174
10175 # This implies no fast_install, which is unacceptable.
10176 # Some rework will be needed to allow for fast_install
10177 # before this can be enabled.
10178 hardcode_into_libs=yes
10179
10180 # Add ABI-specific directories to the system library path.
10181 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10182
10183 # Append ld.so.conf contents to the search path
10184 if test -f /etc/ld.so.conf; then
10185 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' ' '`
10186 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10187 fi
10188
10189 # We used to test for /lib/ld.so.1 and disable shared libraries on
10190 # powerpc, because MkLinux only supported shared libraries with the
10191 # GNU dynamic linker. Since this was broken with cross compilers,
10192 # most powerpc-linux boxes support dynamic linking these days and
10193 # people can always --disable-shared, the test was removed, and we
10194 # assume the GNU/Linux dynamic linker is in use.
10195 dynamic_linker='GNU/Linux ld.so'
10196 ;;
10197
10198 netbsd*)
10199 version_type=sunos
10200 need_lib_prefix=no
10201 need_version=no
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10205 dynamic_linker='NetBSD (a.out) ld.so'
10206 else
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 dynamic_linker='NetBSD ld.elf_so'
10210 fi
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10213 hardcode_into_libs=yes
10214 ;;
10215
10216 newsos6)
10217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes
10221 ;;
10222
10223 *nto* | *qnx*)
10224 version_type=qnx
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=no
10231 hardcode_into_libs=yes
10232 dynamic_linker='ldqnx.so'
10233 ;;
10234
10235 openbsd*)
10236 version_type=sunos
10237 sys_lib_dlsearch_path_spec="/usr/lib"
10238 need_lib_prefix=no
10239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10240 case $host_os in
10241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10242 *) need_version=no ;;
10243 esac
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10248 case $host_os in
10249 openbsd2.[89] | openbsd2.[89].*)
10250 shlibpath_overrides_runpath=no
10251 ;;
10252 *)
10253 shlibpath_overrides_runpath=yes
10254 ;;
10255 esac
10256 else
10257 shlibpath_overrides_runpath=yes
10258 fi
10259 ;;
10260
10261 os2*)
10262 libname_spec='$name'
10263 shrext_cmds=".dll"
10264 need_lib_prefix=no
10265 library_names_spec='$libname${shared_ext} $libname.a'
10266 dynamic_linker='OS/2 ld.exe'
10267 shlibpath_var=LIBPATH
10268 ;;
10269
10270 osf3* | osf4* | osf5*)
10271 version_type=osf
10272 need_lib_prefix=no
10273 need_version=no
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10279 ;;
10280
10281 rdos*)
10282 dynamic_linker=no
10283 ;;
10284
10285 solaris*)
10286 version_type=linux
10287 need_lib_prefix=no
10288 need_version=no
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
10294 # ldd complains unless libraries are executable
10295 postinstall_cmds='chmod +x $lib'
10296 ;;
10297
10298 sunos4*)
10299 version_type=sunos
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 if test "$with_gnu_ld" = yes; then
10305 need_lib_prefix=no
10306 fi
10307 need_version=yes
10308 ;;
10309
10310 sysv4 | sysv4.3*)
10311 version_type=linux
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 case $host_vendor in
10316 sni)
10317 shlibpath_overrides_runpath=no
10318 need_lib_prefix=no
10319 runpath_var=LD_RUN_PATH
10320 ;;
10321 siemens)
10322 need_lib_prefix=no
10323 ;;
10324 motorola)
10325 need_lib_prefix=no
10326 need_version=no
10327 shlibpath_overrides_runpath=no
10328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10329 ;;
10330 esac
10331 ;;
10332
10333 sysv4*MP*)
10334 if test -d /usr/nec ;then
10335 version_type=linux
10336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10337 soname_spec='$libname${shared_ext}.$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 fi
10340 ;;
10341
10342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10343 version_type=freebsd-elf
10344 need_lib_prefix=no
10345 need_version=no
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10350 hardcode_into_libs=yes
10351 if test "$with_gnu_ld" = yes; then
10352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10353 else
10354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10355 case $host_os in
10356 sco3.2v5*)
10357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10358 ;;
10359 esac
10360 fi
10361 sys_lib_dlsearch_path_spec='/usr/lib'
10362 ;;
10363
10364 tpf*)
10365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372 hardcode_into_libs=yes
10373 ;;
10374
10375 uts4*)
10376 version_type=linux
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 ;;
10381
10382 *)
10383 dynamic_linker=no
10384 ;;
10385 esac
10386 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10387 $as_echo "$dynamic_linker" >&6; }
10388 test "$dynamic_linker" = no && can_build_shared=no
10389
10390 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10391 if test "$GCC" = yes; then
10392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10393 fi
10394
10395 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10397 fi
10398 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10400 fi
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10489 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10490 hardcode_action=
10491 if test -n "$hardcode_libdir_flag_spec" ||
10492 test -n "$runpath_var" ||
10493 test "X$hardcode_automatic" = "Xyes" ; then
10494
10495 # We can hardcode non-existent directories.
10496 if test "$hardcode_direct" != no &&
10497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10498 # have to relink, otherwise we might link with an installed library
10499 # when we should be linking with a yet-to-be-installed one
10500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10501 test "$hardcode_minus_L" != no; then
10502 # Linking always hardcodes the temporary library directory.
10503 hardcode_action=relink
10504 else
10505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10506 hardcode_action=immediate
10507 fi
10508 else
10509 # We cannot hardcode anything, or else we can only hardcode existing
10510 # directories.
10511 hardcode_action=unsupported
10512 fi
10513 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10514 $as_echo "$hardcode_action" >&6; }
10515
10516 if test "$hardcode_action" = relink ||
10517 test "$inherit_rpath" = yes; then
10518 # Fast installation is not supported
10519 enable_fast_install=no
10520 elif test "$shlibpath_overrides_runpath" = yes ||
10521 test "$enable_shared" = no; then
10522 # Fast installation is not necessary
10523 enable_fast_install=needless
10524 fi
10525
10526
10527
10528
10529
10530
10531 if test "x$enable_dlopen" != xyes; then
10532 enable_dlopen=unknown
10533 enable_dlopen_self=unknown
10534 enable_dlopen_self_static=unknown
10535 else
10536 lt_cv_dlopen=no
10537 lt_cv_dlopen_libs=
10538
10539 case $host_os in
10540 beos*)
10541 lt_cv_dlopen="load_add_on"
10542 lt_cv_dlopen_libs=
10543 lt_cv_dlopen_self=yes
10544 ;;
10545
10546 mingw* | pw32* | cegcc*)
10547 lt_cv_dlopen="LoadLibrary"
10548 lt_cv_dlopen_libs=
10549 ;;
10550
10551 cygwin*)
10552 lt_cv_dlopen="dlopen"
10553 lt_cv_dlopen_libs=
10554 ;;
10555
10556 darwin*)
10557 # if libdl is installed we need to link against it
10558 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10559 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10561 $as_echo_n "(cached) " >&6
10562 else
10563 ac_check_lib_save_LIBS=$LIBS
10564 LIBS="-ldl $LIBS"
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h. */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571
10572 /* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10575 #ifdef __cplusplus
10576 extern "C"
10577 #endif
10578 char dlopen ();
10579 int
10580 main ()
10581 {
10582 return dlopen ();
10583 ;
10584 return 0;
10585 }
10586 _ACEOF
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10594 $as_echo "$ac_try_echo") >&5
10595 (eval "$ac_link") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest$ac_exeext && {
10605 test "$cross_compiling" = yes ||
10606 $as_test_x conftest$ac_exeext
10607 }; then
10608 ac_cv_lib_dl_dlopen=yes
10609 else
10610 $as_echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613 ac_cv_lib_dl_dlopen=no
10614 fi
10615
10616 rm -rf conftest.dSYM
10617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10620 fi
10621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10623 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10625 else
10626
10627 lt_cv_dlopen="dyld"
10628 lt_cv_dlopen_libs=
10629 lt_cv_dlopen_self=yes
10630
10631 fi
10632
10633 ;;
10634
10635 *)
10636 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10637 $as_echo_n "checking for shl_load... " >&6; }
10638 if test "${ac_cv_func_shl_load+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10640 else
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10649 #define shl_load innocuous_shl_load
10650
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char shl_load (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10655
10656 #ifdef __STDC__
10657 # include <limits.h>
10658 #else
10659 # include <assert.h>
10660 #endif
10661
10662 #undef shl_load
10663
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char shl_load ();
10671 /* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674 #if defined __stub_shl_load || defined __stub___shl_load
10675 choke me
10676 #endif
10677
10678 int
10679 main ()
10680 {
10681 return shl_load ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10706 }; then
10707 ac_cv_func_shl_load=yes
10708 else
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_cv_func_shl_load=no
10713 fi
10714
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718 fi
10719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10720 $as_echo "$ac_cv_func_shl_load" >&6; }
10721 if test "x$ac_cv_func_shl_load" = x""yes; then
10722 lt_cv_dlopen="shl_load"
10723 else
10724 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10725 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10726 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10727 $as_echo_n "(cached) " >&6
10728 else
10729 ac_check_lib_save_LIBS=$LIBS
10730 LIBS="-ldld $LIBS"
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char shl_load ();
10745 int
10746 main ()
10747 {
10748 return shl_load ();
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (ac_try="$ac_link"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758 esac
10759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10760 $as_echo "$ac_try_echo") >&5
10761 (eval "$ac_link") 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest$ac_exeext && {
10771 test "$cross_compiling" = yes ||
10772 $as_test_x conftest$ac_exeext
10773 }; then
10774 ac_cv_lib_dld_shl_load=yes
10775 else
10776 $as_echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_lib_dld_shl_load=no
10780 fi
10781
10782 rm -rf conftest.dSYM
10783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10788 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10789 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10791 else
10792 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10793 $as_echo_n "checking for dlopen... " >&6; }
10794 if test "${ac_cv_func_dlopen+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10805 #define dlopen innocuous_dlopen
10806
10807 /* System header to define __stub macros and hopefully few prototypes,
10808 which can conflict with char dlopen (); below.
10809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10810 <limits.h> exists even on freestanding compilers. */
10811
10812 #ifdef __STDC__
10813 # include <limits.h>
10814 #else
10815 # include <assert.h>
10816 #endif
10817
10818 #undef dlopen
10819
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dlopen ();
10827 /* The GNU C library defines this for functions which it implements
10828 to always fail with ENOSYS. Some functions are actually named
10829 something starting with __ and the normal name is an alias. */
10830 #if defined __stub_dlopen || defined __stub___dlopen
10831 choke me
10832 #endif
10833
10834 int
10835 main ()
10836 {
10837 return dlopen ();
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847 esac
10848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10849 $as_echo "$ac_try_echo") >&5
10850 (eval "$ac_link") 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } && {
10857 test -z "$ac_c_werror_flag" ||
10858 test ! -s conftest.err
10859 } && test -s conftest$ac_exeext && {
10860 test "$cross_compiling" = yes ||
10861 $as_test_x conftest$ac_exeext
10862 }; then
10863 ac_cv_func_dlopen=yes
10864 else
10865 $as_echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 ac_cv_func_dlopen=no
10869 fi
10870
10871 rm -rf conftest.dSYM
10872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10873 conftest$ac_exeext conftest.$ac_ext
10874 fi
10875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10876 $as_echo "$ac_cv_func_dlopen" >&6; }
10877 if test "x$ac_cv_func_dlopen" = x""yes; then
10878 lt_cv_dlopen="dlopen"
10879 else
10880 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10883 $as_echo_n "(cached) " >&6
10884 else
10885 ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-ldl $LIBS"
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char dlopen ();
10901 int
10902 main ()
10903 {
10904 return dlopen ();
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914 esac
10915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10916 $as_echo "$ac_try_echo") >&5
10917 (eval "$ac_link") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest$ac_exeext && {
10927 test "$cross_compiling" = yes ||
10928 $as_test_x conftest$ac_exeext
10929 }; then
10930 ac_cv_lib_dl_dlopen=yes
10931 else
10932 $as_echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 ac_cv_lib_dl_dlopen=no
10936 fi
10937
10938 rm -rf conftest.dSYM
10939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10940 conftest$ac_exeext conftest.$ac_ext
10941 LIBS=$ac_check_lib_save_LIBS
10942 fi
10943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10944 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10945 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10947 else
10948 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10949 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10951 $as_echo_n "(cached) " >&6
10952 else
10953 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lsvld $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char dlopen ();
10969 int
10970 main ()
10971 {
10972 return dlopen ();
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10997 }; then
10998 ac_cv_lib_svld_dlopen=yes
10999 else
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_cv_lib_svld_dlopen=no
11004 fi
11005
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11010 fi
11011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11012 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11013 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11015 else
11016 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11017 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldld $LIBS"
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char dld_link ();
11037 int
11038 main ()
11039 {
11040 return dld_link ();
11041 ;
11042 return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050 esac
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11065 }; then
11066 ac_cv_lib_dld_dld_link=yes
11067 else
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 ac_cv_lib_dld_dld_link=no
11072 fi
11073
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11078 fi
11079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11080 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11081 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11083 fi
11084
11085
11086 fi
11087
11088
11089 fi
11090
11091
11092 fi
11093
11094
11095 fi
11096
11097
11098 fi
11099
11100 ;;
11101 esac
11102
11103 if test "x$lt_cv_dlopen" != xno; then
11104 enable_dlopen=yes
11105 else
11106 enable_dlopen=no
11107 fi
11108
11109 case $lt_cv_dlopen in
11110 dlopen)
11111 save_CPPFLAGS="$CPPFLAGS"
11112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11113
11114 save_LDFLAGS="$LDFLAGS"
11115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11116
11117 save_LIBS="$LIBS"
11118 LIBS="$lt_cv_dlopen_libs $LIBS"
11119
11120 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11121 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11122 if test "${lt_cv_dlopen_self+set}" = set; then
11123 $as_echo_n "(cached) " >&6
11124 else
11125 if test "$cross_compiling" = yes; then :
11126 lt_cv_dlopen_self=cross
11127 else
11128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11129 lt_status=$lt_dlunknown
11130 cat > conftest.$ac_ext <<_LT_EOF
11131 #line 11131 "configure"
11132 #include "confdefs.h"
11133
11134 #if HAVE_DLFCN_H
11135 #include <dlfcn.h>
11136 #endif
11137
11138 #include <stdio.h>
11139
11140 #ifdef RTLD_GLOBAL
11141 # define LT_DLGLOBAL RTLD_GLOBAL
11142 #else
11143 # ifdef DL_GLOBAL
11144 # define LT_DLGLOBAL DL_GLOBAL
11145 # else
11146 # define LT_DLGLOBAL 0
11147 # endif
11148 #endif
11149
11150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11151 find out it does not work in some platform. */
11152 #ifndef LT_DLLAZY_OR_NOW
11153 # ifdef RTLD_LAZY
11154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11155 # else
11156 # ifdef DL_LAZY
11157 # define LT_DLLAZY_OR_NOW DL_LAZY
11158 # else
11159 # ifdef RTLD_NOW
11160 # define LT_DLLAZY_OR_NOW RTLD_NOW
11161 # else
11162 # ifdef DL_NOW
11163 # define LT_DLLAZY_OR_NOW DL_NOW
11164 # else
11165 # define LT_DLLAZY_OR_NOW 0
11166 # endif
11167 # endif
11168 # endif
11169 # endif
11170 #endif
11171
11172 void fnord() { int i=42;}
11173 int main ()
11174 {
11175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11176 int status = $lt_dlunknown;
11177
11178 if (self)
11179 {
11180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11182 /* dlclose (self); */
11183 }
11184 else
11185 puts (dlerror ());
11186
11187 return status;
11188 }
11189 _LT_EOF
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>&5
11192 ac_status=$?
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11195 (./conftest; exit; ) >&5 2>/dev/null
11196 lt_status=$?
11197 case x$lt_status in
11198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11201 esac
11202 else :
11203 # compilation failed
11204 lt_cv_dlopen_self=no
11205 fi
11206 fi
11207 rm -fr conftest*
11208
11209
11210 fi
11211 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11212 $as_echo "$lt_cv_dlopen_self" >&6; }
11213
11214 if test "x$lt_cv_dlopen_self" = xyes; then
11215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11216 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self_static+set}" = set; then
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self_static=cross
11223 else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11229
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11233
11234 #include <stdio.h>
11235
11236 #ifdef RTLD_GLOBAL
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11238 #else
11239 # ifdef DL_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11241 # else
11242 # define LT_DLGLOBAL 0
11243 # endif
11244 #endif
11245
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 # ifdef RTLD_LAZY
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11251 # else
11252 # ifdef DL_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11254 # else
11255 # ifdef RTLD_NOW
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11257 # else
11258 # ifdef DL_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11260 # else
11261 # define LT_DLLAZY_OR_NOW 0
11262 # endif
11263 # endif
11264 # endif
11265 # endif
11266 #endif
11267
11268 void fnord() { int i=42;}
11269 int main ()
11270 {
11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272 int status = $lt_dlunknown;
11273
11274 if (self)
11275 {
11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278 /* dlclose (self); */
11279 }
11280 else
11281 puts (dlerror ());
11282
11283 return status;
11284 }
11285 _LT_EOF
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11291 (./conftest; exit; ) >&5 2>/dev/null
11292 lt_status=$?
11293 case x$lt_status in
11294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11297 esac
11298 else :
11299 # compilation failed
11300 lt_cv_dlopen_self_static=no
11301 fi
11302 fi
11303 rm -fr conftest*
11304
11305
11306 fi
11307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11309 fi
11310
11311 CPPFLAGS="$save_CPPFLAGS"
11312 LDFLAGS="$save_LDFLAGS"
11313 LIBS="$save_LIBS"
11314 ;;
11315 esac
11316
11317 case $lt_cv_dlopen_self in
11318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11319 *) enable_dlopen_self=unknown ;;
11320 esac
11321
11322 case $lt_cv_dlopen_self_static in
11323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11324 *) enable_dlopen_self_static=unknown ;;
11325 esac
11326 fi
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344 striplib=
11345 old_striplib=
11346 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11348 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11351 { $as_echo "$as_me:$LINENO: result: yes" >&5
11352 $as_echo "yes" >&6; }
11353 else
11354 # FIXME - insert some real tests, host_os isn't really good enough
11355 case $host_os in
11356 darwin*)
11357 if test -n "$STRIP" ; then
11358 striplib="$STRIP -x"
11359 old_striplib="$STRIP -S"
11360 { $as_echo "$as_me:$LINENO: result: yes" >&5
11361 $as_echo "yes" >&6; }
11362 else
11363 { $as_echo "$as_me:$LINENO: result: no" >&5
11364 $as_echo "no" >&6; }
11365 fi
11366 ;;
11367 *)
11368 { $as_echo "$as_me:$LINENO: result: no" >&5
11369 $as_echo "no" >&6; }
11370 ;;
11371 esac
11372 fi
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385 # Report which library types will actually be built
11386 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11388 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11389 $as_echo "$can_build_shared" >&6; }
11390
11391 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11392 $as_echo_n "checking whether to build shared libraries... " >&6; }
11393 test "$can_build_shared" = "no" && enable_shared=no
11394
11395 # On AIX, shared libraries and static libraries use the same namespace, and
11396 # are all built from PIC.
11397 case $host_os in
11398 aix3*)
11399 test "$enable_shared" = yes && enable_static=no
11400 if test -n "$RANLIB"; then
11401 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11402 postinstall_cmds='$RANLIB $lib'
11403 fi
11404 ;;
11405
11406 aix[4-9]*)
11407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11408 test "$enable_shared" = yes && enable_static=no
11409 fi
11410 ;;
11411 esac
11412 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11413 $as_echo "$enable_shared" >&6; }
11414
11415 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11416 $as_echo_n "checking whether to build static libraries... " >&6; }
11417 # Make sure either enable_shared or enable_static is yes.
11418 test "$enable_shared" = yes || enable_static=yes
11419 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11420 $as_echo "$enable_static" >&6; }
11421
11422
11423
11424
11425 fi
11426 ac_ext=c
11427 ac_cpp='$CPP $CPPFLAGS'
11428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11431
11432 CC="$lt_save_CC"
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446 ac_config_commands="$ac_config_commands libtool"
11447
11448
11449
11450
11451 # Only expand once:
11452
11453
11454
11455
11456 { $as_echo "$as_me:$LINENO: checking spl author" >&5
11457 $as_echo_n "checking spl author... " >&6; }
11458 { $as_echo "$as_me:$LINENO: result: $SPL_META_AUTHOR" >&5
11459 $as_echo "$SPL_META_AUTHOR" >&6; }
11460
11461 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11462 $as_echo_n "checking spl license... " >&6; }
11463 { $as_echo "$as_me:$LINENO: result: $SPL_META_LICENSE" >&5
11464 $as_echo "$SPL_META_LICENSE" >&6; }
11465
11466
11467
11468 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11469 $as_echo_n "checking linux distribution... " >&6; }
11470 if test -f /etc/toss-release ; then
11471 VENDOR=toss ;
11472 elif test -f /etc/fedora-release ; then
11473 VENDOR=fedora ;
11474 elif test -f /etc/redhat-release ; then
11475 VENDOR=redhat ;
11476 elif test -f /etc/gentoo-release ; then
11477 VENDOR=gentoo ;
11478 elif test -f /etc/arch-release ; then
11479 VENDOR=arch ;
11480 elif test -f /etc/SuSE-release ; then
11481 VENDOR=sles ;
11482 elif test -f /etc/slackware-version ; then
11483 VENDOR=slackware ;
11484 elif test -f /etc/lunar.release ; then
11485 VENDOR=lunar ;
11486 elif test -f /etc/lsb-release ; then
11487 VENDOR=ubuntu ;
11488 elif test -f /etc/debian_version ; then
11489 VENDOR=debian ;
11490 else
11491 VENDOR= ;
11492 fi
11493 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11494 $as_echo "$VENDOR" >&6; }
11495
11496
11497 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11498 $as_echo_n "checking default package type... " >&6; }
11499 case "$VENDOR" in
11500 toss) DEFAULT_PACKAGE=rpm ;;
11501 redhat) DEFAULT_PACKAGE=rpm ;;
11502 fedora) DEFAULT_PACKAGE=rpm ;;
11503 gentoo) DEFAULT_PACKAGE=tgz ;;
11504 arch) DEFAULT_PACKAGE=tgz ;;
11505 sles) DEFAULT_PACKAGE=rpm ;;
11506 slackware) DEFAULT_PACKAGE=tgz ;;
11507 lunar) DEFAULT_PACKAGE=tgz ;;
11508 ubuntu) DEFAULT_PACKAGE=deb ;;
11509 debian) DEFAULT_PACKAGE=deb ;;
11510 *) DEFAULT_PACKAGE=rpm ;;
11511 esac
11512
11513 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11514 $as_echo "$DEFAULT_PACKAGE" >&6; }
11515
11516
11517
11518 RPM=rpm
11519 RPMBUILD=rpmbuild
11520
11521 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11522 $as_echo_n "checking whether $RPM is available... " >&6; }
11523 if tmp=$($RPM --version 2>/dev/null); then
11524
11525 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11526 HAVE_RPM=yes
11527 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11528 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11529
11530 else
11531
11532 HAVE_RPM=no
11533 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11534 $as_echo "$HAVE_RPM" >&6; }
11535
11536 fi
11537
11538
11539 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11540 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11541 if tmp=$($RPMBUILD --version 2>/dev/null); then
11542
11543 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11544 HAVE_RPMBUILD=yes
11545 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11546 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11547
11548 else
11549
11550 HAVE_RPMBUILD=no
11551 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11552 $as_echo "$HAVE_RPMBUILD" >&6; }
11553
11554 fi
11555
11556
11557 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
11558 RPM_DEFINE_UTIL=
11559 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
11560 RPM_DEFINE_DKMS=
11561
11562 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11563 SRPM_DEFINE_UTIL=
11564 SRPM_DEFINE_KMOD=
11565 SRPM_DEFINE_DKMS=
11566
11567 RPM_SPEC_DIR="rpm/generic"
11568
11569 # Check whether --with-spec was given.
11570 if test "${with_spec+set}" = set; then
11571 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11572 fi
11573
11574
11575 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
11576 $as_echo_n "checking whether spec files are available... " >&6; }
11577 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11578 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599 DPKG=dpkg
11600 DPKGBUILD=dpkg-buildpackage
11601
11602 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11603 $as_echo_n "checking whether $DPKG is available... " >&6; }
11604 if tmp=$($DPKG --version 2>/dev/null); then
11605
11606 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11607 HAVE_DPKG=yes
11608 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11609 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11610
11611 else
11612
11613 HAVE_DPKG=no
11614 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11615 $as_echo "$HAVE_DPKG" >&6; }
11616
11617 fi
11618
11619
11620 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11621 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11622 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11623
11624 DPKGBUILD_VERSION=$(echo $tmp | \
11625 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11626 HAVE_DPKGBUILD=yes
11627 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11628 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11629
11630 else
11631
11632 HAVE_DPKGBUILD=no
11633 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11634 $as_echo "$HAVE_DPKGBUILD" >&6; }
11635
11636 fi
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648 ALIEN=alien
11649
11650 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11651 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11652 if tmp=$($ALIEN --version 2>/dev/null); then
11653
11654 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11655 HAVE_ALIEN=yes
11656 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11657 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11658
11659 else
11660
11661 HAVE_ALIEN=no
11662 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11663 $as_echo "$HAVE_ALIEN" >&6; }
11664
11665 fi
11666
11667
11668
11669
11670
11671
11672
11673
11674 SPL_CONFIG=all
11675
11676 # Check whether --with-config was given.
11677 if test "${with_config+set}" = set; then
11678 withval=$with_config; SPL_CONFIG="$withval"
11679 fi
11680
11681 # Check whether --enable-linux-builtin was given.
11682 if test "${enable_linux_builtin+set}" = set; then
11683 enableval=$enable_linux_builtin;
11684 else
11685 enable_linux_builtin=no
11686 fi
11687
11688
11689 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11690 $as_echo_n "checking spl config... " >&6; }
11691 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11692 $as_echo "$SPL_CONFIG" >&6; };
11693
11694
11695 case "$SPL_CONFIG" in
11696 kernel)
11697
11698
11699 # Check whether --with-linux was given.
11700 if test "${with_linux+set}" = set; then
11701 withval=$with_linux; kernelsrc="$withval"
11702 fi
11703
11704
11705
11706 # Check whether --with-linux-obj was given.
11707 if test "${with_linux_obj+set}" = set; then
11708 withval=$with_linux_obj; kernelbuild="$withval"
11709 fi
11710
11711
11712 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11713 $as_echo_n "checking kernel source directory... " >&6; }
11714 if test -z "$kernelsrc"; then
11715 if test -e "/lib/modules/$(uname -r)/source"; then
11716 headersdir="/lib/modules/$(uname -r)/source"
11717 sourcelink=$(readlink -f "$headersdir")
11718 elif test -e "/lib/modules/$(uname -r)/build"; then
11719 headersdir="/lib/modules/$(uname -r)/build"
11720 sourcelink=$(readlink -f "$headersdir")
11721 else
11722 sourcelink=$(ls -1d /usr/src/kernels/* \
11723 /usr/src/linux-* \
11724 2>/dev/null | grep -v obj | tail -1)
11725 fi
11726
11727 if test -n "$sourcelink" && test -e ${sourcelink}; then
11728 kernelsrc=`readlink -f ${sourcelink}`
11729 else
11730 kernelsrc="Not found"
11731 fi
11732 else
11733 if test "$kernelsrc" = "NONE"; then
11734 kernsrcver=NONE
11735 fi
11736 fi
11737
11738 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11739 $as_echo "$kernelsrc" >&6; }
11740 if test ! -d "$kernelsrc"; then
11741 { { $as_echo "$as_me:$LINENO: error:
11742 *** Please make sure the kernel devel package for your distribution
11743 *** is installed and then try again. If that fails, you can specify the
11744 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11745 $as_echo "$as_me: error:
11746 *** Please make sure the kernel devel package for your distribution
11747 *** is installed and then try again. If that fails, you can specify the
11748 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11749 { (exit 1); exit 1; }; }
11750 fi
11751
11752 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11753 $as_echo_n "checking kernel build directory... " >&6; }
11754 if test -z "$kernelbuild"; then
11755 if test -e "/lib/modules/$(uname -r)/build"; then
11756 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11757 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11758 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11759 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11760 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11761 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11762 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11763 else
11764 kernelbuild=${kernelsrc}
11765 fi
11766 fi
11767 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11768 $as_echo "$kernelbuild" >&6; }
11769
11770 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11771 $as_echo_n "checking kernel source version... " >&6; }
11772 utsrelease1=$kernelbuild/include/linux/version.h
11773 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11774 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11775 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11776 utsrelease=linux/version.h
11777 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11778 utsrelease=linux/utsrelease.h
11779 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11780 utsrelease=generated/utsrelease.h
11781 fi
11782
11783 if test "$utsrelease"; then
11784 kernsrcver=`(echo "#include <$utsrelease>";
11785 echo "kernsrcver=UTS_RELEASE") |
11786 cpp -I $kernelbuild/include |
11787 grep "^kernsrcver=" | cut -d \" -f 2`
11788
11789 if test -z "$kernsrcver"; then
11790 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11791 $as_echo "Not found" >&6; }
11792 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11793 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11794 { (exit 1); exit 1; }; }
11795 fi
11796 else
11797 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11798 $as_echo "Not found" >&6; }
11799 if test "x$enable_linux_builtin" != xyes; then
11800 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11801 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11802 { (exit 1); exit 1; }; }
11803 else
11804 { { $as_echo "$as_me:$LINENO: error:
11805 *** Cannot find UTS_RELEASE definition.
11806 *** Please run 'make prepare' inside the kernel source tree." >&5
11807 $as_echo "$as_me: error:
11808 *** Cannot find UTS_RELEASE definition.
11809 *** Please run 'make prepare' inside the kernel source tree." >&2;}
11810 { (exit 1); exit 1; }; }
11811 fi
11812 fi
11813
11814 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11815 $as_echo "$kernsrcver" >&6; }
11816
11817 LINUX=${kernelsrc}
11818 LINUX_OBJ=${kernelbuild}
11819 LINUX_VERSION=${kernsrcver}
11820
11821
11822
11823
11824
11825
11826 modpost=$LINUX/scripts/Makefile.modpost
11827 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11828 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11829 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
11830 if grep -q Modules.symvers $modpost; then
11831 LINUX_SYMBOLS=Modules.symvers
11832 else
11833 LINUX_SYMBOLS=Module.symvers
11834 fi
11835
11836 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11837 { { $as_echo "$as_me:$LINENO: error:
11838 *** Please make sure the kernel devel package for your distribution
11839 *** is installed. If you are building with a custom kernel, make sure the
11840 *** kernel is configured, built, and the '--with-linux=PATH' configure
11841 *** option refers to the location of the kernel source." >&5
11842 $as_echo "$as_me: error:
11843 *** Please make sure the kernel devel package for your distribution
11844 *** is installed. If you are building with a custom kernel, make sure the
11845 *** kernel is configured, built, and the '--with-linux=PATH' configure
11846 *** option refers to the location of the kernel source." >&2;}
11847 { (exit 1); exit 1; }; }
11848 fi
11849 else
11850 LINUX_SYMBOLS=NONE
11851 fi
11852 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11853 $as_echo "$LINUX_SYMBOLS" >&6; }
11854
11855
11856
11857
11858 if test "${LINUX_OBJ}" != "${LINUX}"; then
11859 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11860 fi
11861
11862
11863 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11864
11865
11866
11867 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11868 $as_echo_n "checking whether debugging is enabled... " >&6; }
11869 # Check whether --enable-debug was given.
11870 if test "${enable_debug+set}" = set; then
11871 enableval=$enable_debug;
11872 else
11873 enable_debug=no
11874 fi
11875
11876
11877 if test "x$enable_debug" = xyes; then
11878
11879 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11880 DEBUG_CFLAGS="-DDEBUG -Werror"
11881 DEBUG_SPL="_with_debug"
11882
11883 else
11884
11885 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11886 DEBUG_CFLAGS="-DNDEBUG"
11887 DEBUG_SPL="_without_debug"
11888
11889 fi
11890
11891
11892
11893
11894 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11895 $as_echo "$enable_debug" >&6; }
11896
11897
11898 # Check whether --enable-debug-kmem was given.
11899 if test "${enable_debug_kmem+set}" = set; then
11900 enableval=$enable_debug_kmem;
11901 else
11902 enable_debug_kmem=no
11903 fi
11904
11905
11906 if test "x$enable_debug_kmem" = xyes; then
11907
11908 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11909 DEBUG_KMEM="_with_debug_kmem"
11910
11911 cat >>confdefs.h <<\_ACEOF
11912 #define DEBUG_KMEM 1
11913 _ACEOF
11914
11915
11916 else
11917
11918 DEBUG_KMEM="_without_debug_kmem"
11919
11920 fi
11921
11922
11923
11924 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11925 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11926 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11927 $as_echo "$enable_debug_kmem" >&6; }
11928
11929
11930 # Check whether --enable-debug-kmem-tracking was given.
11931 if test "${enable_debug_kmem_tracking+set}" = set; then
11932 enableval=$enable_debug_kmem_tracking;
11933 else
11934 enable_debug_kmem_tracking=no
11935 fi
11936
11937
11938 if test "x$enable_debug_kmem_tracking" = xyes; then
11939
11940 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11941 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
11942
11943 cat >>confdefs.h <<\_ACEOF
11944 #define DEBUG_KMEM_TRACKING 1
11945 _ACEOF
11946
11947
11948 else
11949
11950 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
11951
11952 fi
11953
11954
11955
11956 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11957 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11958 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11959 $as_echo "$enable_debug_kmem_tracking" >&6; }
11960
11961 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
11962 $as_echo_n "checking whether modules can be built... " >&6; }
11963
11964
11965 cat confdefs.h - <<_ACEOF >conftest.c
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971
11972
11973 int
11974 main (void)
11975 {
11976
11977 ;
11978 return 0;
11979 }
11980
11981 _ACEOF
11982
11983
11984 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11985 echo "obj-m := conftest.o" >build/Makefile
11986 modpost_flag=''
11987 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11988 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999
12000 { $as_echo "$as_me:$LINENO: result: yes" >&5
12001 $as_echo "yes" >&6; }
12002
12003 else
12004 $as_echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 { $as_echo "$as_me:$LINENO: result: no" >&5
12008 $as_echo "no" >&6; }
12009 if test "x$enable_linux_builtin" != xyes; then
12010 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12011 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12012 { (exit 1); exit 1; }; }
12013 else
12014 { { $as_echo "$as_me:$LINENO: error:
12015 *** Unable to build an empty module.
12016 *** Please run 'make scripts' inside the kernel source tree." >&5
12017 $as_echo "$as_me: error:
12018 *** Unable to build an empty module.
12019 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12020 { (exit 1); exit 1; }; }
12021 fi
12022
12023
12024
12025 fi
12026
12027 rm -Rf build
12028
12029
12030
12031 if test "x$cross_compiling" != xyes; then
12032
12033 if test "$cross_compiling" = yes; then
12034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12036 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12037 See \`config.log' for more details." >&5
12038 $as_echo "$as_me: error: cannot run test program while cross compiling
12039 See \`config.log' for more details." >&2;}
12040 { (exit 1); exit 1; }; }; }
12041 else
12042 cat >conftest.$ac_ext <<_ACEOF
12043
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049
12050 #include "$LINUX/include/linux/license.h"
12051
12052 int
12053 main ()
12054 {
12055
12056 return !license_is_gpl_compatible(
12057 "$SPL_META_LICENSE");
12058
12059 ;
12060 return 0;
12061 }
12062
12063 _ACEOF
12064 rm -f conftest$ac_exeext
12065 if { (ac_try="$ac_link"
12066 case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069 esac
12070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12071 $as_echo "$ac_try_echo") >&5
12072 (eval "$ac_link") 2>&5
12073 ac_status=$?
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12076 { (case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_try") 2>&5
12083 ac_status=$?
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086
12087
12088 cat >>confdefs.h <<\_ACEOF
12089 #define SPL_IS_GPL_COMPATIBLE 1
12090 _ACEOF
12091
12092
12093 else
12094 $as_echo "$as_me: program exited with status $ac_status" >&5
12095 $as_echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ( exit $ac_status )
12099
12100
12101 fi
12102 rm -rf conftest.dSYM
12103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12104 fi
12105
12106
12107
12108 fi
12109
12110
12111
12112 # Check whether --enable-atomic-spinlocks was given.
12113 if test "${enable_atomic_spinlocks+set}" = set; then
12114 enableval=$enable_atomic_spinlocks;
12115 else
12116 enable_atomic_spinlocks=check
12117 fi
12118
12119
12120
12121
12122 cat confdefs.h - <<_ACEOF >conftest.c
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128
12129
12130 #include <linux/fs.h>
12131
12132 int
12133 main (void)
12134 {
12135
12136 atomic64_t *ptr __attribute__ ((unused));
12137
12138 ;
12139 return 0;
12140 }
12141
12142 _ACEOF
12143
12144
12145 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12146 echo "obj-m := conftest.o" >build/Makefile
12147 modpost_flag=''
12148 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12149 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160
12161 have_atomic64_t=yes
12162
12163 cat >>confdefs.h <<\_ACEOF
12164 #define HAVE_ATOMIC64_T 1
12165 _ACEOF
12166
12167
12168 else
12169 $as_echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 have_atomic64_t=no
12173
12174
12175
12176 fi
12177
12178 rm -Rf build
12179
12180
12181
12182 if test "x$enable_atomic_spinlocks" = xcheck; then
12183
12184 if test "x$have_atomic64_t" = xyes; then
12185
12186 enable_atomic_spinlocks=no
12187
12188 else
12189
12190 enable_atomic_spinlocks=yes
12191
12192 fi
12193
12194
12195 fi
12196
12197
12198 if test "x$enable_atomic_spinlocks" = xyes; then
12199
12200
12201 cat >>confdefs.h <<\_ACEOF
12202 #define ATOMIC_SPINLOCK 1
12203 _ACEOF
12204
12205
12206 else
12207
12208 if test "x$have_atomic64_t" = xno; then
12209
12210 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12212 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12213 See \`config.log' for more details." >&5
12214 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12215 See \`config.log' for more details." >&2;}
12216 { (exit 1); exit 1; }; }; }
12217
12218 fi
12219
12220
12221 fi
12222
12223
12224 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12225 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12226 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12227 $as_echo "$enable_atomic_spinlocks" >&6; }
12228
12229 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12230 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12231 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12232 $as_echo "$have_atomic64_t" >&6; }
12233
12234
12235 tmp_flags="$EXTRA_KCFLAGS"
12236 EXTRA_KCFLAGS="-Werror"
12237 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
12238 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12239
12240
12241 cat confdefs.h - <<_ACEOF >conftest.c
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247
12248
12249 #include <linux/mm.h>
12250
12251 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12252
12253 int
12254 main (void)
12255 {
12256
12257 struct shrinker cache_shrinker = {
12258 .shrink = shrinker_cb,
12259 .seeks = DEFAULT_SEEKS,
12260 };
12261 register_shrinker(&cache_shrinker);
12262
12263 ;
12264 return 0;
12265 }
12266
12267 _ACEOF
12268
12269
12270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12271 echo "obj-m := conftest.o" >build/Makefile
12272 modpost_flag=''
12273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12274 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285
12286 { $as_echo "$as_me:$LINENO: result: yes" >&5
12287 $as_echo "yes" >&6; }
12288
12289 cat >>confdefs.h <<\_ACEOF
12290 #define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
12291 _ACEOF
12292
12293
12294 else
12295 $as_echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298 { $as_echo "$as_me:$LINENO: result: no" >&5
12299 $as_echo "no" >&6; }
12300 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
12301 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12302
12303
12304 cat confdefs.h - <<_ACEOF >conftest.c
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310
12311
12312 #include <linux/mm.h>
12313
12314 int shrinker_cb(struct shrinker *, int nr_to_scan,
12315 gfp_t gfp_mask);
12316
12317 int
12318 main (void)
12319 {
12320
12321 struct shrinker cache_shrinker = {
12322 .shrink = shrinker_cb,
12323 .seeks = DEFAULT_SEEKS,
12324 };
12325 register_shrinker(&cache_shrinker);
12326
12327 ;
12328 return 0;
12329 }
12330
12331 _ACEOF
12332
12333
12334 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12335 echo "obj-m := conftest.o" >build/Makefile
12336 modpost_flag=''
12337 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349
12350 { $as_echo "$as_me:$LINENO: result: yes" >&5
12351 $as_echo "yes" >&6; }
12352
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12355 _ACEOF
12356
12357
12358 else
12359 $as_echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 { $as_echo "$as_me:$LINENO: result: no" >&5
12363 $as_echo "no" >&6; }
12364 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
12365 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12366
12367
12368 cat confdefs.h - <<_ACEOF >conftest.c
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374
12375
12376 #include <linux/mm.h>
12377
12378 int shrinker_cb(struct shrinker *,
12379 struct shrink_control *sc);
12380
12381 int
12382 main (void)
12383 {
12384
12385 struct shrinker cache_shrinker = {
12386 .shrink = shrinker_cb,
12387 .seeks = DEFAULT_SEEKS,
12388 };
12389 register_shrinker(&cache_shrinker);
12390
12391 ;
12392 return 0;
12393 }
12394
12395 _ACEOF
12396
12397
12398 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12399 echo "obj-m := conftest.o" >build/Makefile
12400 modpost_flag=''
12401 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12402 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413
12414 { $as_echo "$as_me:$LINENO: result: yes" >&5
12415 $as_echo "yes" >&6; }
12416
12417 cat >>confdefs.h <<\_ACEOF
12418 #define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
12419 _ACEOF
12420
12421
12422 else
12423 $as_echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426 { $as_echo "$as_me:$LINENO: result: no" >&5
12427 $as_echo "no" >&6; }
12428 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
12429 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
12430
12431
12432 cat confdefs.h - <<_ACEOF >conftest.c
12433 /* confdefs.h. */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438
12439
12440 #include <linux/mm.h>
12441
12442 unsigned long shrinker_cb(
12443 struct shrinker *,
12444 struct shrink_control *sc);
12445
12446 int
12447 main (void)
12448 {
12449
12450 struct shrinker cache_shrinker = {
12451 .count_objects = shrinker_cb,
12452 .scan_objects = shrinker_cb,
12453 .seeks = DEFAULT_SEEKS,
12454 };
12455 register_shrinker(&cache_shrinker);
12456
12457 ;
12458 return 0;
12459 }
12460
12461 _ACEOF
12462
12463
12464 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12465 echo "obj-m := conftest.o" >build/Makefile
12466 modpost_flag=''
12467 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12468 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479
12480 { $as_echo "$as_me:$LINENO: result: yes" >&5
12481 $as_echo "yes" >&6; }
12482
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_SPLIT_SHRINKER_CALLBACK 1
12485 _ACEOF
12486
12487
12488 else
12489 $as_echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12491
12492 { { $as_echo "$as_me:$LINENO: error: error" >&5
12493 $as_echo "$as_me: error: error" >&2;}
12494 { (exit 1); exit 1; }; }
12495
12496
12497
12498 fi
12499
12500 rm -Rf build
12501
12502
12503
12504
12505
12506 fi
12507
12508 rm -Rf build
12509
12510
12511
12512
12513
12514 fi
12515
12516 rm -Rf build
12517
12518
12519
12520
12521
12522 fi
12523
12524 rm -Rf build
12525
12526
12527 EXTRA_KCFLAGS="$tmp_flags"
12528
12529
12530 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12531 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12532
12533
12534 cat confdefs.h - <<_ACEOF >conftest.c
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540
12541
12542 #include <linux/sysctl.h>
12543
12544 int
12545 main (void)
12546 {
12547
12548 struct ctl_table ctl __attribute__ ((unused));
12549 ctl.ctl_name = 0;
12550
12551 ;
12552 return 0;
12553 }
12554
12555 _ACEOF
12556
12557
12558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12559 echo "obj-m := conftest.o" >build/Makefile
12560 modpost_flag=''
12561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12562 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573
12574 { $as_echo "$as_me:$LINENO: result: yes" >&5
12575 $as_echo "yes" >&6; }
12576
12577 cat >>confdefs.h <<\_ACEOF
12578 #define HAVE_CTL_NAME 1
12579 _ACEOF
12580
12581
12582 else
12583 $as_echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12585
12586 { $as_echo "$as_me:$LINENO: result: no" >&5
12587 $as_echo "no" >&6; }
12588
12589
12590
12591 fi
12592
12593 rm -Rf build
12594
12595
12596
12597
12598 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
12599 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
12600
12601
12602 cat confdefs.h - <<_ACEOF >conftest.c
12603 /* confdefs.h. */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608
12609
12610 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
12611 #error CONFIG_TRIM_UNUSED_KSYMS not defined
12612 #endif
12613
12614 int
12615 main (void)
12616 {
12617
12618 ;
12619 return 0;
12620 }
12621
12622 _ACEOF
12623
12624
12625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12626 echo "obj-m := conftest.o" >build/Makefile
12627 modpost_flag=''
12628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12629 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640
12641 { $as_echo "$as_me:$LINENO: result: yes" >&5
12642 $as_echo "yes" >&6; }
12643
12644 else
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 { $as_echo "$as_me:$LINENO: result: no" >&5
12649 $as_echo "no" >&6; }
12650 { { $as_echo "$as_me:$LINENO: error:
12651 *** This kernel has unused symbols trimming enabled, please disable.
12652 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
12653 $as_echo "$as_me: error:
12654 *** This kernel has unused symbols trimming enabled, please disable.
12655 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
12656 { (exit 1); exit 1; }; }
12657
12658
12659
12660 fi
12661
12662 rm -Rf build
12663
12664
12665
12666
12667 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
12668 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
12669
12670
12671
12672 cat confdefs.h - <<_ACEOF >conftest.c
12673 /* confdefs.h. */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678
12679
12680 #include <linux/proc_fs.h>
12681
12682 int
12683 main (void)
12684 {
12685
12686 PDE_DATA(NULL);
12687
12688 ;
12689 return 0;
12690 }
12691
12692 _ACEOF
12693
12694
12695 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12696 echo "obj-m := conftest.o" >build/Makefile
12697 modpost_flag=''
12698 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12699 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 rc=0
12711 else
12712 $as_echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714 rc=1
12715
12716
12717 fi
12718
12719 rm -Rf build
12720
12721
12722 if test $rc -ne 0; then :
12723
12724 { $as_echo "$as_me:$LINENO: result: no" >&5
12725 $as_echo "no" >&6; }
12726
12727 else
12728 if test "x$enable_linux_builtin" != xyes; then
12729
12730 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
12731 $LINUX_OBJ/Module*.symvers 2>/dev/null
12732 rc=$?
12733 if test $rc -ne 0; then
12734 export=0
12735 for file in ; do
12736 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
12737 "$LINUX_OBJ/$file" 2>/dev/null
12738 rc=$?
12739 if test $rc -eq 0; then
12740 export=1
12741 break;
12742 fi
12743 done
12744 if test $export -eq 0; then :
12745 rc=1
12746 else :
12747 rc=0
12748 fi
12749 else :
12750 rc=0
12751 fi
12752
12753 fi
12754 if test $rc -ne 0; then :
12755
12756 { $as_echo "$as_me:$LINENO: result: no" >&5
12757 $as_echo "no" >&6; }
12758
12759 else :
12760
12761 { $as_echo "$as_me:$LINENO: result: yes" >&5
12762 $as_echo "yes" >&6; }
12763
12764 cat >>confdefs.h <<\_ACEOF
12765 #define HAVE_PDE_DATA 1
12766 _ACEOF
12767
12768
12769 fi
12770 fi
12771
12772
12773 tmp_flags="$EXTRA_KCFLAGS"
12774 EXTRA_KCFLAGS="-Werror"
12775 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
12776 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
12777
12778
12779 cat confdefs.h - <<_ACEOF >conftest.c
12780 /* confdefs.h. */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785
12786
12787 #include <linux/spinlock.h>
12788 #include <linux/fs_struct.h>
12789 #include <linux/path.h>
12790 void (*const set_fs_pwd_func)
12791 (struct fs_struct *, const struct path *)
12792 = set_fs_pwd;
12793
12794 int
12795 main (void)
12796 {
12797
12798 return 0;
12799
12800 ;
12801 return 0;
12802 }
12803
12804 _ACEOF
12805
12806
12807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12808 echo "obj-m := conftest.o" >build/Makefile
12809 modpost_flag=''
12810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12811 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822
12823 { $as_echo "$as_me:$LINENO: result: yes" >&5
12824 $as_echo "yes" >&6; }
12825
12826 cat >>confdefs.h <<\_ACEOF
12827 #define HAVE_SET_FS_PWD_WITH_CONST 1
12828 _ACEOF
12829
12830
12831 else
12832 $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835
12836
12837 cat confdefs.h - <<_ACEOF >conftest.c
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843
12844
12845 #include <linux/spinlock.h>
12846 #include <linux/fs_struct.h>
12847 #include <linux/path.h>
12848 void (*const set_fs_pwd_func)
12849 (struct fs_struct *, struct path *)
12850 = set_fs_pwd;
12851
12852 int
12853 main (void)
12854 {
12855
12856 return 0;
12857
12858 ;
12859 return 0;
12860 }
12861
12862 _ACEOF
12863
12864
12865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12866 echo "obj-m := conftest.o" >build/Makefile
12867 modpost_flag=''
12868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12869 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880
12881 { $as_echo "$as_me:$LINENO: result: no" >&5
12882 $as_echo "no" >&6; }
12883
12884 else
12885 $as_echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
12889 $as_echo "$as_me: error: unknown" >&2;}
12890 { (exit 1); exit 1; }; }
12891
12892
12893
12894 fi
12895
12896 rm -Rf build
12897
12898
12899
12900
12901
12902 fi
12903
12904 rm -Rf build
12905
12906
12907 EXTRA_KCFLAGS="$tmp_flags"
12908
12909 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
12910 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
12911
12912
12913 cat confdefs.h - <<_ACEOF >conftest.c
12914 /* confdefs.h. */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919
12920
12921 #include <linux/fs.h>
12922
12923 int
12924 main (void)
12925 {
12926
12927 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
12928
12929 ;
12930 return 0;
12931 }
12932
12933 _ACEOF
12934
12935
12936 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12937 echo "obj-m := conftest.o" >build/Makefile
12938 modpost_flag=''
12939 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12940 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951
12952 { $as_echo "$as_me:$LINENO: result: yes" >&5
12953 $as_echo "yes" >&6; }
12954
12955 cat >>confdefs.h <<\_ACEOF
12956 #define HAVE_2ARGS_VFS_UNLINK 1
12957 _ACEOF
12958
12959
12960 else
12961 $as_echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 { $as_echo "$as_me:$LINENO: result: no" >&5
12965 $as_echo "no" >&6; }
12966 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
12967 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
12968
12969
12970 cat confdefs.h - <<_ACEOF >conftest.c
12971 /* confdefs.h. */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976
12977
12978 #include <linux/fs.h>
12979
12980 int
12981 main (void)
12982 {
12983
12984 vfs_unlink((struct inode *) NULL,
12985 (struct dentry *) NULL,
12986 (struct inode **) NULL);
12987
12988 ;
12989 return 0;
12990 }
12991
12992 _ACEOF
12993
12994
12995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12996 echo "obj-m := conftest.o" >build/Makefile
12997 modpost_flag=''
12998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12999 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010
13011 { $as_echo "$as_me:$LINENO: result: yes" >&5
13012 $as_echo "yes" >&6; }
13013
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_3ARGS_VFS_UNLINK 1
13016 _ACEOF
13017
13018
13019 else
13020 $as_echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023 { { $as_echo "$as_me:$LINENO: error: no" >&5
13024 $as_echo "$as_me: error: no" >&2;}
13025 { (exit 1); exit 1; }; }
13026
13027
13028
13029 fi
13030
13031 rm -Rf build
13032
13033
13034
13035
13036
13037
13038 fi
13039
13040 rm -Rf build
13041
13042
13043
13044 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
13045 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
13046
13047
13048 cat confdefs.h - <<_ACEOF >conftest.c
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054
13055
13056 #include <linux/fs.h>
13057
13058 int
13059 main (void)
13060 {
13061
13062 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
13063 (struct inode *) NULL, (struct dentry *) NULL);
13064
13065 ;
13066 return 0;
13067 }
13068
13069 _ACEOF
13070
13071
13072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13073 echo "obj-m := conftest.o" >build/Makefile
13074 modpost_flag=''
13075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13076 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087
13088 { $as_echo "$as_me:$LINENO: result: yes" >&5
13089 $as_echo "yes" >&6; }
13090
13091 cat >>confdefs.h <<\_ACEOF
13092 #define HAVE_4ARGS_VFS_RENAME 1
13093 _ACEOF
13094
13095
13096 else
13097 $as_echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100 { $as_echo "$as_me:$LINENO: result: no" >&5
13101 $as_echo "no" >&6; }
13102 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
13103 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
13104
13105
13106 cat confdefs.h - <<_ACEOF >conftest.c
13107 /* confdefs.h. */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112
13113
13114 #include <linux/fs.h>
13115
13116 int
13117 main (void)
13118 {
13119
13120 vfs_rename((struct inode *) NULL,
13121 (struct dentry *) NULL,
13122 (struct inode *) NULL,
13123 (struct dentry *) NULL,
13124 (struct inode **) NULL);
13125
13126 ;
13127 return 0;
13128 }
13129
13130 _ACEOF
13131
13132
13133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13134 echo "obj-m := conftest.o" >build/Makefile
13135 modpost_flag=''
13136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13137 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148
13149 { $as_echo "$as_me:$LINENO: result: yes" >&5
13150 $as_echo "yes" >&6; }
13151
13152 cat >>confdefs.h <<\_ACEOF
13153 #define HAVE_5ARGS_VFS_RENAME 1
13154 _ACEOF
13155
13156
13157 else
13158 $as_echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161 { $as_echo "$as_me:$LINENO: result: no" >&5
13162 $as_echo "no" >&6; }
13163 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
13164 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13165
13166
13167 cat confdefs.h - <<_ACEOF >conftest.c
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173
13174
13175 #include <linux/fs.h>
13176
13177 int
13178 main (void)
13179 {
13180
13181 vfs_rename((struct inode *) NULL,
13182 (struct dentry *) NULL,
13183 (struct inode *) NULL,
13184 (struct dentry *) NULL,
13185 (struct inode **) NULL,
13186 (unsigned int) 0);
13187
13188 ;
13189 return 0;
13190 }
13191
13192 _ACEOF
13193
13194
13195 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13196 echo "obj-m := conftest.o" >build/Makefile
13197 modpost_flag=''
13198 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13199 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210
13211 { $as_echo "$as_me:$LINENO: result: yes" >&5
13212 $as_echo "yes" >&6; }
13213
13214 cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_6ARGS_VFS_RENAME 1
13216 _ACEOF
13217
13218
13219 else
13220 $as_echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223 { { $as_echo "$as_me:$LINENO: error: no" >&5
13224 $as_echo "$as_me: error: no" >&2;}
13225 { (exit 1); exit 1; }; }
13226
13227
13228
13229 fi
13230
13231 rm -Rf build
13232
13233
13234
13235
13236
13237 fi
13238
13239 rm -Rf build
13240
13241
13242
13243
13244
13245 fi
13246
13247 rm -Rf build
13248
13249
13250
13251
13252 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
13253 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13254
13255
13256 cat confdefs.h - <<_ACEOF >conftest.c
13257 /* confdefs.h. */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262
13263
13264 #include <linux/fs.h>
13265
13266 int
13267 main (void)
13268 {
13269
13270 vfs_fsync(NULL, 0);
13271
13272 ;
13273 return 0;
13274 }
13275
13276 _ACEOF
13277
13278
13279 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13280 echo "obj-m := conftest.o" >build/Makefile
13281 modpost_flag=''
13282 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13283 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
13294
13295 { $as_echo "$as_me:$LINENO: result: yes" >&5
13296 $as_echo "yes" >&6; }
13297
13298 cat >>confdefs.h <<\_ACEOF
13299 #define HAVE_2ARGS_VFS_FSYNC 1
13300 _ACEOF
13301
13302
13303 else
13304 $as_echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 { $as_echo "$as_me:$LINENO: result: no" >&5
13308 $as_echo "no" >&6; }
13309
13310
13311
13312 fi
13313
13314 rm -Rf build
13315
13316
13317
13318
13319 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
13320 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13321
13322
13323 cat confdefs.h - <<_ACEOF >conftest.c
13324 /* confdefs.h. */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329
13330
13331 #include <linux/fs.h>
13332
13333 int
13334 main (void)
13335 {
13336
13337 struct inode_operations ops;
13338 ops.truncate_range = NULL;
13339
13340 ;
13341 return 0;
13342 }
13343
13344 _ACEOF
13345
13346
13347 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13348 echo "obj-m := conftest.o" >build/Makefile
13349 modpost_flag=''
13350 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13351 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362
13363 { $as_echo "$as_me:$LINENO: result: yes" >&5
13364 $as_echo "yes" >&6; }
13365
13366 cat >>confdefs.h <<\_ACEOF
13367 #define HAVE_INODE_TRUNCATE_RANGE 1
13368 _ACEOF
13369
13370
13371 else
13372 $as_echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 { $as_echo "$as_me:$LINENO: result: no" >&5
13376 $as_echo "no" >&6; }
13377
13378
13379
13380 fi
13381
13382 rm -Rf build
13383
13384
13385
13386
13387 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
13388 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13389 tmp_flags="$EXTRA_KCFLAGS"
13390 EXTRA_KCFLAGS="-Werror"
13391
13392
13393 cat confdefs.h - <<_ACEOF >conftest.c
13394 /* confdefs.h. */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399
13400
13401 #include <linux/sched.h>
13402 #include <linux/fs_struct.h>
13403
13404 int
13405 main (void)
13406 {
13407
13408 static struct fs_struct fs;
13409 spin_lock_init(&fs.lock);
13410
13411 ;
13412 return 0;
13413 }
13414
13415 _ACEOF
13416
13417
13418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13419 echo "obj-m := conftest.o" >build/Makefile
13420 modpost_flag=''
13421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13422 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
13431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
13433
13434 { $as_echo "$as_me:$LINENO: result: yes" >&5
13435 $as_echo "yes" >&6; }
13436
13437 cat >>confdefs.h <<\_ACEOF
13438 #define HAVE_FS_STRUCT_SPINLOCK 1
13439 _ACEOF
13440
13441
13442 else
13443 $as_echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 { $as_echo "$as_me:$LINENO: result: no" >&5
13447 $as_echo "no" >&6; }
13448
13449
13450
13451 fi
13452
13453 rm -Rf build
13454
13455
13456 EXTRA_KCFLAGS="$tmp_flags"
13457
13458
13459 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
13460 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13461
13462
13463 cat confdefs.h - <<_ACEOF >conftest.c
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469
13470
13471 #include <linux/uidgid.h>
13472
13473 int
13474 main (void)
13475 {
13476
13477 kuid_t userid = KUIDT_INIT(0);
13478 kgid_t groupid = KGIDT_INIT(0);
13479
13480 ;
13481 return 0;
13482 }
13483
13484 _ACEOF
13485
13486
13487 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13488 echo "obj-m := conftest.o" >build/Makefile
13489 modpost_flag=''
13490 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13491 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502
13503
13504
13505 cat confdefs.h - <<_ACEOF >conftest.c
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511
13512
13513 #include <linux/uidgid.h>
13514
13515 int
13516 main (void)
13517 {
13518
13519 kuid_t userid = 0;
13520 kgid_t groupid = 0;
13521
13522 ;
13523 return 0;
13524 }
13525
13526 _ACEOF
13527
13528
13529 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13530 echo "obj-m := conftest.o" >build/Makefile
13531 modpost_flag=''
13532 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13533 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544
13545 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
13546 $as_echo "yes; optional" >&6; }
13547
13548 else
13549 $as_echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
13553 $as_echo "yes; mandatory" >&6; }
13554
13555 cat >>confdefs.h <<\_ACEOF
13556 #define HAVE_KUIDGID_T 1
13557 _ACEOF
13558
13559
13560
13561
13562 fi
13563
13564 rm -Rf build
13565
13566
13567
13568 else
13569 $as_echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 { $as_echo "$as_me:$LINENO: result: no" >&5
13573 $as_echo "no" >&6; }
13574
13575
13576
13577 fi
13578
13579 rm -Rf build
13580
13581
13582
13583
13584
13585 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13586 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13587
13588
13589 cat confdefs.h - <<_ACEOF >conftest.c
13590 /* confdefs.h. */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595
13596
13597 #include <linux/fs.h>
13598
13599 int
13600 main (void)
13601 {
13602
13603 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13604 struct file_operations fops __attribute__ ((unused)) = {
13605 .fallocate = fallocate,
13606 };
13607
13608 ;
13609 return 0;
13610 }
13611
13612 _ACEOF
13613
13614
13615 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13616 echo "obj-m := conftest.o" >build/Makefile
13617 modpost_flag=''
13618 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13619 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630
13631 { $as_echo "$as_me:$LINENO: result: yes" >&5
13632 $as_echo "yes" >&6; }
13633
13634 cat >>confdefs.h <<\_ACEOF
13635 #define HAVE_FILE_FALLOCATE 1
13636 _ACEOF
13637
13638
13639 else
13640 $as_echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 { $as_echo "$as_me:$LINENO: result: no" >&5
13644 $as_echo "no" >&6; }
13645
13646
13647
13648 fi
13649
13650 rm -Rf build
13651
13652
13653
13654
13655 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
13656 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
13657
13658
13659 cat confdefs.h - <<_ACEOF >conftest.c
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665
13666
13667 #include <linux/fs.h>
13668
13669 int
13670 main (void)
13671 {
13672
13673 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
13674 struct inode_operations fops __attribute__ ((unused)) = {
13675 .fallocate = fallocate,
13676 };
13677
13678 ;
13679 return 0;
13680 }
13681
13682 _ACEOF
13683
13684
13685 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13686 echo "obj-m := conftest.o" >build/Makefile
13687 modpost_flag=''
13688 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13689 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700
13701 { $as_echo "$as_me:$LINENO: result: yes" >&5
13702 $as_echo "yes" >&6; }
13703
13704 cat >>confdefs.h <<\_ACEOF
13705 #define HAVE_INODE_FALLOCATE 1
13706 _ACEOF
13707
13708
13709 else
13710 $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 { $as_echo "$as_me:$LINENO: result: no" >&5
13714 $as_echo "no" >&6; }
13715
13716
13717
13718 fi
13719
13720 rm -Rf build
13721
13722
13723
13724
13725 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13726 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13727
13728
13729 cat confdefs.h - <<_ACEOF >conftest.c
13730 /* confdefs.h. */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735
13736
13737 #include <linux/fs.h>
13738
13739 int
13740 main (void)
13741 {
13742
13743 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13744 struct file_operations_no_const fops __attribute__ ((unused)) = {
13745 .fallocate = fallocate,
13746 };
13747
13748 ;
13749 return 0;
13750 }
13751
13752 _ACEOF
13753
13754
13755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13756 echo "obj-m := conftest.o" >build/Makefile
13757 modpost_flag=''
13758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13759 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770
13771 { $as_echo "$as_me:$LINENO: result: yes" >&5
13772 $as_echo "yes" >&6; }
13773
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_FILE_FALLOCATE 1
13776 _ACEOF
13777
13778
13779 else
13780 $as_echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 { $as_echo "$as_me:$LINENO: result: no" >&5
13784 $as_echo "no" >&6; }
13785
13786
13787
13788 fi
13789
13790 rm -Rf build
13791
13792
13793
13794
13795
13796 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
13797 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
13798
13799
13800 cat confdefs.h - <<_ACEOF >conftest.c
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806
13807
13808 #if !defined(CONFIG_ZLIB_INFLATE) && \
13809 !defined(CONFIG_ZLIB_INFLATE_MODULE)
13810 #error CONFIG_ZLIB_INFLATE not defined
13811 #endif
13812
13813 int
13814 main (void)
13815 {
13816
13817 ;
13818 return 0;
13819 }
13820
13821 _ACEOF
13822
13823
13824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13825 echo "obj-m := conftest.o" >build/Makefile
13826 modpost_flag=''
13827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13828 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13836 ac_status=$?
13837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839
13840 { $as_echo "$as_me:$LINENO: result: yes" >&5
13841 $as_echo "yes" >&6; }
13842
13843 else
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 { $as_echo "$as_me:$LINENO: result: no" >&5
13848 $as_echo "no" >&6; }
13849 { { $as_echo "$as_me:$LINENO: error:
13850 *** This kernel does not include the required zlib inflate support.
13851 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
13852 $as_echo "$as_me: error:
13853 *** This kernel does not include the required zlib inflate support.
13854 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
13855 { (exit 1); exit 1; }; }
13856
13857
13858
13859 fi
13860
13861 rm -Rf build
13862
13863
13864
13865
13866 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
13867 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
13868
13869
13870 cat confdefs.h - <<_ACEOF >conftest.c
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876
13877
13878 #if !defined(CONFIG_ZLIB_DEFLATE) && \
13879 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
13880 #error CONFIG_ZLIB_DEFLATE not defined
13881 #endif
13882
13883 int
13884 main (void)
13885 {
13886
13887 ;
13888 return 0;
13889 }
13890
13891 _ACEOF
13892
13893
13894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13895 echo "obj-m := conftest.o" >build/Makefile
13896 modpost_flag=''
13897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13898 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909
13910 { $as_echo "$as_me:$LINENO: result: yes" >&5
13911 $as_echo "yes" >&6; }
13912
13913 else
13914 $as_echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917 { $as_echo "$as_me:$LINENO: result: no" >&5
13918 $as_echo "no" >&6; }
13919 { { $as_echo "$as_me:$LINENO: error:
13920 *** This kernel does not include the required zlib deflate support.
13921 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
13922 $as_echo "$as_me: error:
13923 *** This kernel does not include the required zlib deflate support.
13924 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
13925 { (exit 1); exit 1; }; }
13926
13927
13928
13929 fi
13930
13931 rm -Rf build
13932
13933
13934
13935 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
13936 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
13937
13938
13939 cat confdefs.h - <<_ACEOF >conftest.c
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945
13946
13947 #include <linux/zlib.h>
13948
13949 int
13950 main (void)
13951 {
13952
13953 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
13954
13955 ;
13956 return 0;
13957 }
13958
13959 _ACEOF
13960
13961
13962 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13963 echo "obj-m := conftest.o" >build/Makefile
13964 modpost_flag=''
13965 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13966 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977
13978 { $as_echo "$as_me:$LINENO: result: yes" >&5
13979 $as_echo "yes" >&6; }
13980
13981 cat >>confdefs.h <<\_ACEOF
13982 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
13983 _ACEOF
13984
13985
13986 else
13987 $as_echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990 { $as_echo "$as_me:$LINENO: result: no" >&5
13991 $as_echo "no" >&6; }
13992
13993
13994
13995 fi
13996
13997 rm -Rf build
13998
13999
14000
14001
14002 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
14003 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
14004
14005
14006 cat confdefs.h - <<_ACEOF >conftest.c
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012
14013
14014 #include <linux/mm.h>
14015
14016 int
14017 main (void)
14018 {
14019
14020 struct shrink_control sc __attribute__ ((unused));
14021
14022 sc.nr_to_scan = 0;
14023 sc.gfp_mask = GFP_KERNEL;
14024
14025 ;
14026 return 0;
14027 }
14028
14029 _ACEOF
14030
14031
14032 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14033 echo "obj-m := conftest.o" >build/Makefile
14034 modpost_flag=''
14035 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14036 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047
14048 { $as_echo "$as_me:$LINENO: result: yes" >&5
14049 $as_echo "yes" >&6; }
14050
14051 cat >>confdefs.h <<\_ACEOF
14052 #define HAVE_SHRINK_CONTROL_STRUCT 1
14053 _ACEOF
14054
14055
14056 else
14057 $as_echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14059
14060 { $as_echo "$as_me:$LINENO: result: no" >&5
14061 $as_echo "no" >&6; }
14062
14063
14064
14065 fi
14066
14067 rm -Rf build
14068
14069
14070
14071
14072 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
14073 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14074 tmp_flags="$EXTRA_KCFLAGS"
14075 EXTRA_KCFLAGS="-Werror"
14076
14077
14078 cat confdefs.h - <<_ACEOF >conftest.c
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084
14085
14086 #include <linux/rwsem.h>
14087
14088 int
14089 main (void)
14090 {
14091
14092 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14093 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
14094 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
14095 dummy_semaphore.wait_lock = dummy_lock;
14096
14097 ;
14098 return 0;
14099 }
14100
14101 _ACEOF
14102
14103
14104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14105 echo "obj-m := conftest.o" >build/Makefile
14106 modpost_flag=''
14107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14108 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119
14120 { $as_echo "$as_me:$LINENO: result: yes" >&5
14121 $as_echo "yes" >&6; }
14122
14123 cat >>confdefs.h <<\_ACEOF
14124 #define RWSEM_SPINLOCK_IS_RAW 1
14125 _ACEOF
14126
14127
14128 else
14129 $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 { $as_echo "$as_me:$LINENO: result: no" >&5
14133 $as_echo "no" >&6; }
14134
14135
14136
14137 fi
14138
14139 rm -Rf build
14140
14141
14142 EXTRA_KCFLAGS="$tmp_flags"
14143
14144
14145 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
14146 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
14147 tmp_flags="$EXTRA_KCFLAGS"
14148 EXTRA_KCFLAGS="-Werror"
14149
14150
14151 cat confdefs.h - <<_ACEOF >conftest.c
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157
14158
14159 #include <linux/rwsem.h>
14160
14161 int
14162 main (void)
14163 {
14164
14165 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14166 dummy_semaphore.activity = 0;
14167
14168 ;
14169 return 0;
14170 }
14171
14172 _ACEOF
14173
14174
14175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14176 echo "obj-m := conftest.o" >build/Makefile
14177 modpost_flag=''
14178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190
14191 { $as_echo "$as_me:$LINENO: result: yes" >&5
14192 $as_echo "yes" >&6; }
14193
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_RWSEM_ACTIVITY 1
14196 _ACEOF
14197
14198
14199 else
14200 $as_echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203 { $as_echo "$as_me:$LINENO: result: no" >&5
14204 $as_echo "no" >&6; }
14205
14206
14207
14208 fi
14209
14210 rm -Rf build
14211
14212
14213 EXTRA_KCFLAGS="$tmp_flags"
14214
14215
14216 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14217 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
14218 tmp_flags="$EXTRA_KCFLAGS"
14219 EXTRA_KCFLAGS="-Werror"
14220
14221
14222 cat confdefs.h - <<_ACEOF >conftest.c
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228
14229
14230 #include <linux/rwsem.h>
14231
14232 int
14233 main (void)
14234 {
14235
14236 DECLARE_RWSEM(dummy_semaphore);
14237 (void) atomic_long_read(&dummy_semaphore.count);
14238
14239 ;
14240 return 0;
14241 }
14242
14243 _ACEOF
14244
14245
14246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14247 echo "obj-m := conftest.o" >build/Makefile
14248 modpost_flag=''
14249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14250 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261
14262 { $as_echo "$as_me:$LINENO: result: yes" >&5
14263 $as_echo "yes" >&6; }
14264
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
14267 _ACEOF
14268
14269
14270 else
14271 $as_echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 { $as_echo "$as_me:$LINENO: result: no" >&5
14275 $as_echo "no" >&6; }
14276
14277
14278
14279 fi
14280
14281 rm -Rf build
14282
14283
14284 EXTRA_KCFLAGS="$tmp_flags"
14285
14286 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
14287 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14288
14289
14290 cat confdefs.h - <<_ACEOF >conftest.c
14291 /* confdefs.h. */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296
14297
14298 #include <linux/sched.h>
14299 #include <linux/sched/rt.h>
14300
14301 int
14302 main (void)
14303 {
14304
14305 return 0;
14306
14307 ;
14308 return 0;
14309 }
14310
14311 _ACEOF
14312
14313
14314 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14315 echo "obj-m := conftest.o" >build/Makefile
14316 modpost_flag=''
14317 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14318 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329
14330
14331 cat >>confdefs.h <<\_ACEOF
14332 #define HAVE_SCHED_RT_HEADER 1
14333 _ACEOF
14334
14335 { $as_echo "$as_me:$LINENO: result: yes" >&5
14336 $as_echo "yes" >&6; }
14337
14338 else
14339 $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 { $as_echo "$as_me:$LINENO: result: no" >&5
14343 $as_echo "no" >&6; }
14344
14345
14346
14347 fi
14348
14349 rm -Rf build
14350
14351
14352
14353 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
14354 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
14355
14356
14357 cat confdefs.h - <<_ACEOF >conftest.c
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363
14364
14365 #include <linux/sched.h>
14366 #include <linux/sched/signal.h>
14367
14368 int
14369 main (void)
14370 {
14371
14372 return 0;
14373
14374 ;
14375 return 0;
14376 }
14377
14378 _ACEOF
14379
14380
14381 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14382 echo "obj-m := conftest.o" >build/Makefile
14383 modpost_flag=''
14384 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14385 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396
14397
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE_SCHED_SIGNAL_HEADER 1
14400 _ACEOF
14401
14402 { $as_echo "$as_me:$LINENO: result: yes" >&5
14403 $as_echo "yes" >&6; }
14404
14405 else
14406 $as_echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 { $as_echo "$as_me:$LINENO: result: no" >&5
14410 $as_echo "no" >&6; }
14411
14412
14413
14414 fi
14415
14416 rm -Rf build
14417
14418
14419
14420
14421 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
14422 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
14423
14424
14425 cat confdefs.h - <<_ACEOF >conftest.c
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431
14432
14433 #include <linux/fs.h>
14434
14435 int
14436 main (void)
14437 {
14438
14439 vfs_getattr((const struct path *)NULL,
14440 (struct kstat *)NULL,
14441 (u32)0,
14442 (unsigned int)0);
14443
14444 ;
14445 return 0;
14446 }
14447
14448 _ACEOF
14449
14450
14451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14452 echo "obj-m := conftest.o" >build/Makefile
14453 modpost_flag=''
14454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466
14467 { $as_echo "$as_me:$LINENO: result: yes" >&5
14468 $as_echo "yes" >&6; }
14469
14470 cat >>confdefs.h <<\_ACEOF
14471 #define HAVE_4ARGS_VFS_GETATTR 1
14472 _ACEOF
14473
14474
14475 else
14476 $as_echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 { $as_echo "$as_me:$LINENO: result: no" >&5
14480 $as_echo "no" >&6; }
14481
14482
14483
14484 fi
14485
14486 rm -Rf build
14487
14488
14489
14490
14491 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
14492 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
14493
14494
14495 cat confdefs.h - <<_ACEOF >conftest.c
14496 /* confdefs.h. */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14501
14502
14503 #include <linux/fs.h>
14504
14505 int
14506 main (void)
14507 {
14508
14509 vfs_getattr((struct vfsmount *)NULL,
14510 (struct dentry *)NULL,
14511 (struct kstat *)NULL);
14512
14513 ;
14514 return 0;
14515 }
14516
14517 _ACEOF
14518
14519
14520 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14521 echo "obj-m := conftest.o" >build/Makefile
14522 modpost_flag=''
14523 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14524 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535
14536 { $as_echo "$as_me:$LINENO: result: yes" >&5
14537 $as_echo "yes" >&6; }
14538
14539 cat >>confdefs.h <<\_ACEOF
14540 #define HAVE_3ARGS_VFS_GETATTR 1
14541 _ACEOF
14542
14543
14544 else
14545 $as_echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548 { $as_echo "$as_me:$LINENO: result: no" >&5
14549 $as_echo "no" >&6; }
14550
14551
14552
14553 fi
14554
14555 rm -Rf build
14556
14557
14558
14559
14560 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
14561 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
14562
14563
14564 cat confdefs.h - <<_ACEOF >conftest.c
14565 /* confdefs.h. */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14570
14571
14572 #include <linux/fs.h>
14573
14574 int
14575 main (void)
14576 {
14577
14578 vfs_getattr((struct path *) NULL,
14579 (struct kstat *)NULL);
14580
14581 ;
14582 return 0;
14583 }
14584
14585 _ACEOF
14586
14587
14588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14589 echo "obj-m := conftest.o" >build/Makefile
14590 modpost_flag=''
14591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14592 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603
14604 { $as_echo "$as_me:$LINENO: result: yes" >&5
14605 $as_echo "yes" >&6; }
14606
14607 cat >>confdefs.h <<\_ACEOF
14608 #define HAVE_2ARGS_VFS_GETATTR 1
14609 _ACEOF
14610
14611
14612 else
14613 $as_echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616 { $as_echo "$as_me:$LINENO: result: no" >&5
14617 $as_echo "no" >&6; }
14618
14619
14620
14621 fi
14622
14623 rm -Rf build
14624
14625
14626
14627
14628 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
14629 $as_echo_n "checking whether usleep_range() is available... " >&6; }
14630
14631
14632 cat confdefs.h - <<_ACEOF >conftest.c
14633 /* confdefs.h. */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638
14639
14640 #include <linux/delay.h>
14641
14642 int
14643 main (void)
14644 {
14645
14646 usleep_range(0, 0);
14647
14648 ;
14649 return 0;
14650 }
14651
14652 _ACEOF
14653
14654
14655 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14656 echo "obj-m := conftest.o" >build/Makefile
14657 modpost_flag=''
14658 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14659 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670
14671 { $as_echo "$as_me:$LINENO: result: yes" >&5
14672 $as_echo "yes" >&6; }
14673
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_USLEEP_RANGE 1
14676 _ACEOF
14677
14678
14679 else
14680 $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683 { $as_echo "$as_me:$LINENO: result: no" >&5
14684 $as_echo "no" >&6; }
14685
14686
14687
14688 fi
14689
14690 rm -Rf build
14691
14692
14693
14694
14695 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
14696 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14697
14698
14699 cat confdefs.h - <<_ACEOF >conftest.c
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705
14706
14707 #include <linux/slab.h>
14708
14709 int
14710 main (void)
14711 {
14712
14713 struct kmem_cache cachep __attribute__ ((unused));
14714 cachep.allocflags = GFP_KERNEL;
14715
14716 ;
14717 return 0;
14718 }
14719
14720 _ACEOF
14721
14722
14723 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14724 echo "obj-m := conftest.o" >build/Makefile
14725 modpost_flag=''
14726 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14727 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14730 ac_status=$?
14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738
14739 { $as_echo "$as_me:$LINENO: result: yes" >&5
14740 $as_echo "yes" >&6; }
14741
14742 cat >>confdefs.h <<\_ACEOF
14743 #define HAVE_KMEM_CACHE_ALLOCFLAGS 1
14744 _ACEOF
14745
14746
14747 else
14748 $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 { $as_echo "$as_me:$LINENO: result: no" >&5
14752 $as_echo "no" >&6; }
14753
14754 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
14755 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
14756
14757
14758 cat confdefs.h - <<_ACEOF >conftest.c
14759 /* confdefs.h. */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764
14765
14766 #include <linux/slab.h>
14767
14768 int
14769 main (void)
14770 {
14771
14772 struct kmem_cache cachep __attribute__ ((unused));
14773 cachep.gfpflags = GFP_KERNEL;
14774
14775 ;
14776 return 0;
14777 }
14778
14779 _ACEOF
14780
14781
14782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14783 echo "obj-m := conftest.o" >build/Makefile
14784 modpost_flag=''
14785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797
14798 { $as_echo "$as_me:$LINENO: result: yes" >&5
14799 $as_echo "yes" >&6; }
14800
14801 cat >>confdefs.h <<\_ACEOF
14802 #define HAVE_KMEM_CACHE_GFPFLAGS 1
14803 _ACEOF
14804
14805
14806 else
14807 $as_echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 { $as_echo "$as_me:$LINENO: result: no" >&5
14811 $as_echo "no" >&6; }
14812
14813
14814
14815 fi
14816
14817 rm -Rf build
14818
14819
14820
14821
14822
14823 fi
14824
14825 rm -Rf build
14826
14827
14828
14829
14830 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
14831 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
14832
14833
14834 cat confdefs.h - <<_ACEOF >conftest.c
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840
14841
14842 #include <linux/wait.h>
14843
14844 int
14845 main (void)
14846 {
14847
14848 int (*action)(void *) = NULL;
14849 wait_on_bit(NULL, 0, action, 0);
14850
14851 ;
14852 return 0;
14853 }
14854
14855 _ACEOF
14856
14857
14858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14859 echo "obj-m := conftest.o" >build/Makefile
14860 modpost_flag=''
14861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14862 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873
14874 { $as_echo "$as_me:$LINENO: result: yes" >&5
14875 $as_echo "yes" >&6; }
14876
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_WAIT_ON_BIT_ACTION 1
14879 _ACEOF
14880
14881
14882 else
14883 $as_echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14885
14886 { $as_echo "$as_me:$LINENO: result: no" >&5
14887 $as_echo "no" >&6; }
14888
14889
14890
14891 fi
14892
14893 rm -Rf build
14894
14895
14896
14897
14898 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
14899 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
14900 tmp_flags="$EXTRA_KCFLAGS"
14901 EXTRA_KCFLAGS="-Werror"
14902
14903
14904 cat confdefs.h - <<_ACEOF >conftest.c
14905 /* confdefs.h. */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14910
14911
14912 #include <linux/fs.h>
14913
14914 int
14915 main (void)
14916 {
14917
14918 struct inode *inode = NULL;
14919 inode_lock_shared(inode);
14920
14921 ;
14922 return 0;
14923 }
14924
14925 _ACEOF
14926
14927
14928 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14929 echo "obj-m := conftest.o" >build/Makefile
14930 modpost_flag=''
14931 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14932 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943
14944 { $as_echo "$as_me:$LINENO: result: yes" >&5
14945 $as_echo "yes" >&6; }
14946
14947 cat >>confdefs.h <<\_ACEOF
14948 #define HAVE_INODE_LOCK_SHARED 1
14949 _ACEOF
14950
14951
14952 else
14953 $as_echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 { $as_echo "$as_me:$LINENO: result: no" >&5
14957 $as_echo "no" >&6; }
14958
14959
14960
14961 fi
14962
14963 rm -Rf build
14964
14965
14966 EXTRA_KCFLAGS="$tmp_flags"
14967
14968
14969 { $as_echo "$as_me:$LINENO: checking whether mutex has owner" >&5
14970 $as_echo_n "checking whether mutex has owner... " >&6; }
14971 tmp_flags="$EXTRA_KCFLAGS"
14972 EXTRA_KCFLAGS="-Werror"
14973
14974
14975 cat confdefs.h - <<_ACEOF >conftest.c
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981
14982
14983 #include <linux/mutex.h>
14984 #include <linux/spinlock.h>
14985
14986 int
14987 main (void)
14988 {
14989
14990 DEFINE_MUTEX(m);
14991 struct task_struct *t __attribute__ ((unused));
14992 t = m.owner;
14993
14994 ;
14995 return 0;
14996 }
14997
14998 _ACEOF
14999
15000
15001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15002 echo "obj-m := conftest.o" >build/Makefile
15003 modpost_flag=''
15004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15013 ac_status=$?
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15016
15017 { $as_echo "$as_me:$LINENO: result: yes" >&5
15018 $as_echo "yes" >&6; }
15019
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_MUTEX_OWNER 1
15022 _ACEOF
15023
15024
15025 else
15026 $as_echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 { $as_echo "$as_me:$LINENO: result: no" >&5
15030 $as_echo "no" >&6; }
15031
15032
15033
15034 fi
15035
15036 rm -Rf build
15037
15038
15039 EXTRA_KCFLAGS="$tmp_flags"
15040
15041
15042 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
15043 $as_echo_n "checking whether group_info->gid exists... " >&6; }
15044 tmp_flags="$EXTRA_KCFLAGS"
15045 EXTRA_KCFLAGS="-Werror"
15046
15047
15048 cat confdefs.h - <<_ACEOF >conftest.c
15049 /* confdefs.h. */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054
15055
15056 #include <linux/cred.h>
15057
15058 int
15059 main (void)
15060 {
15061
15062 struct group_info *gi = groups_alloc(1);
15063 gi->gid[0] = KGIDT_INIT(0);
15064
15065 ;
15066 return 0;
15067 }
15068
15069 _ACEOF
15070
15071
15072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15073 echo "obj-m := conftest.o" >build/Makefile
15074 modpost_flag=''
15075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15076 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087
15088 { $as_echo "$as_me:$LINENO: result: yes" >&5
15089 $as_echo "yes" >&6; }
15090
15091 cat >>confdefs.h <<\_ACEOF
15092 #define HAVE_GROUP_INFO_GID 1
15093 _ACEOF
15094
15095
15096 else
15097 $as_echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15099
15100 { $as_echo "$as_me:$LINENO: result: no" >&5
15101 $as_echo "no" >&6; }
15102
15103
15104
15105 fi
15106
15107 rm -Rf build
15108
15109
15110 EXTRA_KCFLAGS="$tmp_flags"
15111
15112 ;;
15113 user) ;;
15114 all)
15115
15116
15117 # Check whether --with-linux was given.
15118 if test "${with_linux+set}" = set; then
15119 withval=$with_linux; kernelsrc="$withval"
15120 fi
15121
15122
15123
15124 # Check whether --with-linux-obj was given.
15125 if test "${with_linux_obj+set}" = set; then
15126 withval=$with_linux_obj; kernelbuild="$withval"
15127 fi
15128
15129
15130 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15131 $as_echo_n "checking kernel source directory... " >&6; }
15132 if test -z "$kernelsrc"; then
15133 if test -e "/lib/modules/$(uname -r)/source"; then
15134 headersdir="/lib/modules/$(uname -r)/source"
15135 sourcelink=$(readlink -f "$headersdir")
15136 elif test -e "/lib/modules/$(uname -r)/build"; then
15137 headersdir="/lib/modules/$(uname -r)/build"
15138 sourcelink=$(readlink -f "$headersdir")
15139 else
15140 sourcelink=$(ls -1d /usr/src/kernels/* \
15141 /usr/src/linux-* \
15142 2>/dev/null | grep -v obj | tail -1)
15143 fi
15144
15145 if test -n "$sourcelink" && test -e ${sourcelink}; then
15146 kernelsrc=`readlink -f ${sourcelink}`
15147 else
15148 kernelsrc="Not found"
15149 fi
15150 else
15151 if test "$kernelsrc" = "NONE"; then
15152 kernsrcver=NONE
15153 fi
15154 fi
15155
15156 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15157 $as_echo "$kernelsrc" >&6; }
15158 if test ! -d "$kernelsrc"; then
15159 { { $as_echo "$as_me:$LINENO: error:
15160 *** Please make sure the kernel devel package for your distribution
15161 *** is installed and then try again. If that fails, you can specify the
15162 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15163 $as_echo "$as_me: error:
15164 *** Please make sure the kernel devel package for your distribution
15165 *** is installed and then try again. If that fails, you can specify the
15166 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15167 { (exit 1); exit 1; }; }
15168 fi
15169
15170 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15171 $as_echo_n "checking kernel build directory... " >&6; }
15172 if test -z "$kernelbuild"; then
15173 if test -e "/lib/modules/$(uname -r)/build"; then
15174 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15175 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15176 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15177 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15178 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15179 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15180 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15181 else
15182 kernelbuild=${kernelsrc}
15183 fi
15184 fi
15185 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15186 $as_echo "$kernelbuild" >&6; }
15187
15188 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15189 $as_echo_n "checking kernel source version... " >&6; }
15190 utsrelease1=$kernelbuild/include/linux/version.h
15191 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15192 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15193 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15194 utsrelease=linux/version.h
15195 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15196 utsrelease=linux/utsrelease.h
15197 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15198 utsrelease=generated/utsrelease.h
15199 fi
15200
15201 if test "$utsrelease"; then
15202 kernsrcver=`(echo "#include <$utsrelease>";
15203 echo "kernsrcver=UTS_RELEASE") |
15204 cpp -I $kernelbuild/include |
15205 grep "^kernsrcver=" | cut -d \" -f 2`
15206
15207 if test -z "$kernsrcver"; then
15208 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15209 $as_echo "Not found" >&6; }
15210 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15211 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15212 { (exit 1); exit 1; }; }
15213 fi
15214 else
15215 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15216 $as_echo "Not found" >&6; }
15217 if test "x$enable_linux_builtin" != xyes; then
15218 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15219 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15220 { (exit 1); exit 1; }; }
15221 else
15222 { { $as_echo "$as_me:$LINENO: error:
15223 *** Cannot find UTS_RELEASE definition.
15224 *** Please run 'make prepare' inside the kernel source tree." >&5
15225 $as_echo "$as_me: error:
15226 *** Cannot find UTS_RELEASE definition.
15227 *** Please run 'make prepare' inside the kernel source tree." >&2;}
15228 { (exit 1); exit 1; }; }
15229 fi
15230 fi
15231
15232 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15233 $as_echo "$kernsrcver" >&6; }
15234
15235 LINUX=${kernelsrc}
15236 LINUX_OBJ=${kernelbuild}
15237 LINUX_VERSION=${kernsrcver}
15238
15239
15240
15241
15242
15243
15244 modpost=$LINUX/scripts/Makefile.modpost
15245 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15246 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15247 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
15248 if grep -q Modules.symvers $modpost; then
15249 LINUX_SYMBOLS=Modules.symvers
15250 else
15251 LINUX_SYMBOLS=Module.symvers
15252 fi
15253
15254 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15255 { { $as_echo "$as_me:$LINENO: error:
15256 *** Please make sure the kernel devel package for your distribution
15257 *** is installed. If you are building with a custom kernel, make sure the
15258 *** kernel is configured, built, and the '--with-linux=PATH' configure
15259 *** option refers to the location of the kernel source." >&5
15260 $as_echo "$as_me: error:
15261 *** Please make sure the kernel devel package for your distribution
15262 *** is installed. If you are building with a custom kernel, make sure the
15263 *** kernel is configured, built, and the '--with-linux=PATH' configure
15264 *** option refers to the location of the kernel source." >&2;}
15265 { (exit 1); exit 1; }; }
15266 fi
15267 else
15268 LINUX_SYMBOLS=NONE
15269 fi
15270 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15271 $as_echo "$LINUX_SYMBOLS" >&6; }
15272
15273
15274
15275
15276 if test "${LINUX_OBJ}" != "${LINUX}"; then
15277 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15278 fi
15279
15280
15281 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
15282
15283
15284
15285 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15286 $as_echo_n "checking whether debugging is enabled... " >&6; }
15287 # Check whether --enable-debug was given.
15288 if test "${enable_debug+set}" = set; then
15289 enableval=$enable_debug;
15290 else
15291 enable_debug=no
15292 fi
15293
15294
15295 if test "x$enable_debug" = xyes; then
15296
15297 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15298 DEBUG_CFLAGS="-DDEBUG -Werror"
15299 DEBUG_SPL="_with_debug"
15300
15301 else
15302
15303 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15304 DEBUG_CFLAGS="-DNDEBUG"
15305 DEBUG_SPL="_without_debug"
15306
15307 fi
15308
15309
15310
15311
15312 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15313 $as_echo "$enable_debug" >&6; }
15314
15315
15316 # Check whether --enable-debug-kmem was given.
15317 if test "${enable_debug_kmem+set}" = set; then
15318 enableval=$enable_debug_kmem;
15319 else
15320 enable_debug_kmem=no
15321 fi
15322
15323
15324 if test "x$enable_debug_kmem" = xyes; then
15325
15326 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15327 DEBUG_KMEM="_with_debug_kmem"
15328
15329 cat >>confdefs.h <<\_ACEOF
15330 #define DEBUG_KMEM 1
15331 _ACEOF
15332
15333
15334 else
15335
15336 DEBUG_KMEM="_without_debug_kmem"
15337
15338 fi
15339
15340
15341
15342 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15343 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15344 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15345 $as_echo "$enable_debug_kmem" >&6; }
15346
15347
15348 # Check whether --enable-debug-kmem-tracking was given.
15349 if test "${enable_debug_kmem_tracking+set}" = set; then
15350 enableval=$enable_debug_kmem_tracking;
15351 else
15352 enable_debug_kmem_tracking=no
15353 fi
15354
15355
15356 if test "x$enable_debug_kmem_tracking" = xyes; then
15357
15358 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15359 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
15360
15361 cat >>confdefs.h <<\_ACEOF
15362 #define DEBUG_KMEM_TRACKING 1
15363 _ACEOF
15364
15365
15366 else
15367
15368 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
15369
15370 fi
15371
15372
15373
15374 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15375 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15376 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15377 $as_echo "$enable_debug_kmem_tracking" >&6; }
15378
15379 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
15380 $as_echo_n "checking whether modules can be built... " >&6; }
15381
15382
15383 cat confdefs.h - <<_ACEOF >conftest.c
15384 /* confdefs.h. */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389
15390
15391 int
15392 main (void)
15393 {
15394
15395 ;
15396 return 0;
15397 }
15398
15399 _ACEOF
15400
15401
15402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15403 echo "obj-m := conftest.o" >build/Makefile
15404 modpost_flag=''
15405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15414 ac_status=$?
15415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
15417
15418 { $as_echo "$as_me:$LINENO: result: yes" >&5
15419 $as_echo "yes" >&6; }
15420
15421 else
15422 $as_echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 { $as_echo "$as_me:$LINENO: result: no" >&5
15426 $as_echo "no" >&6; }
15427 if test "x$enable_linux_builtin" != xyes; then
15428 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
15429 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
15430 { (exit 1); exit 1; }; }
15431 else
15432 { { $as_echo "$as_me:$LINENO: error:
15433 *** Unable to build an empty module.
15434 *** Please run 'make scripts' inside the kernel source tree." >&5
15435 $as_echo "$as_me: error:
15436 *** Unable to build an empty module.
15437 *** Please run 'make scripts' inside the kernel source tree." >&2;}
15438 { (exit 1); exit 1; }; }
15439 fi
15440
15441
15442
15443 fi
15444
15445 rm -Rf build
15446
15447
15448
15449 if test "x$cross_compiling" != xyes; then
15450
15451 if test "$cross_compiling" = yes; then
15452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15454 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15455 See \`config.log' for more details." >&5
15456 $as_echo "$as_me: error: cannot run test program while cross compiling
15457 See \`config.log' for more details." >&2;}
15458 { (exit 1); exit 1; }; }; }
15459 else
15460 cat >conftest.$ac_ext <<_ACEOF
15461
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467
15468 #include "$LINUX/include/linux/license.h"
15469
15470 int
15471 main ()
15472 {
15473
15474 return !license_is_gpl_compatible(
15475 "$SPL_META_LICENSE");
15476
15477 ;
15478 return 0;
15479 }
15480
15481 _ACEOF
15482 rm -f conftest$ac_exeext
15483 if { (ac_try="$ac_link"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487 esac
15488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15489 $as_echo "$ac_try_echo") >&5
15490 (eval "$ac_link") 2>&5
15491 ac_status=$?
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497 esac
15498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15499 $as_echo "$ac_try_echo") >&5
15500 (eval "$ac_try") 2>&5
15501 ac_status=$?
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504
15505
15506 cat >>confdefs.h <<\_ACEOF
15507 #define SPL_IS_GPL_COMPATIBLE 1
15508 _ACEOF
15509
15510
15511 else
15512 $as_echo "$as_me: program exited with status $ac_status" >&5
15513 $as_echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516 ( exit $ac_status )
15517
15518
15519 fi
15520 rm -rf conftest.dSYM
15521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15522 fi
15523
15524
15525
15526 fi
15527
15528
15529
15530 # Check whether --enable-atomic-spinlocks was given.
15531 if test "${enable_atomic_spinlocks+set}" = set; then
15532 enableval=$enable_atomic_spinlocks;
15533 else
15534 enable_atomic_spinlocks=check
15535 fi
15536
15537
15538
15539
15540 cat confdefs.h - <<_ACEOF >conftest.c
15541 /* confdefs.h. */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546
15547
15548 #include <linux/fs.h>
15549
15550 int
15551 main (void)
15552 {
15553
15554 atomic64_t *ptr __attribute__ ((unused));
15555
15556 ;
15557 return 0;
15558 }
15559
15560 _ACEOF
15561
15562
15563 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15564 echo "obj-m := conftest.o" >build/Makefile
15565 modpost_flag=''
15566 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15567 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578
15579 have_atomic64_t=yes
15580
15581 cat >>confdefs.h <<\_ACEOF
15582 #define HAVE_ATOMIC64_T 1
15583 _ACEOF
15584
15585
15586 else
15587 $as_echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590 have_atomic64_t=no
15591
15592
15593
15594 fi
15595
15596 rm -Rf build
15597
15598
15599
15600 if test "x$enable_atomic_spinlocks" = xcheck; then
15601
15602 if test "x$have_atomic64_t" = xyes; then
15603
15604 enable_atomic_spinlocks=no
15605
15606 else
15607
15608 enable_atomic_spinlocks=yes
15609
15610 fi
15611
15612
15613 fi
15614
15615
15616 if test "x$enable_atomic_spinlocks" = xyes; then
15617
15618
15619 cat >>confdefs.h <<\_ACEOF
15620 #define ATOMIC_SPINLOCK 1
15621 _ACEOF
15622
15623
15624 else
15625
15626 if test "x$have_atomic64_t" = xno; then
15627
15628 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15630 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15631 See \`config.log' for more details." >&5
15632 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15633 See \`config.log' for more details." >&2;}
15634 { (exit 1); exit 1; }; }; }
15635
15636 fi
15637
15638
15639 fi
15640
15641
15642 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15643 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15644 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15645 $as_echo "$enable_atomic_spinlocks" >&6; }
15646
15647 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15648 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15649 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15650 $as_echo "$have_atomic64_t" >&6; }
15651
15652
15653 tmp_flags="$EXTRA_KCFLAGS"
15654 EXTRA_KCFLAGS="-Werror"
15655 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
15656 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15657
15658
15659 cat confdefs.h - <<_ACEOF >conftest.c
15660 /* confdefs.h. */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665
15666
15667 #include <linux/mm.h>
15668
15669 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15670
15671 int
15672 main (void)
15673 {
15674
15675 struct shrinker cache_shrinker = {
15676 .shrink = shrinker_cb,
15677 .seeks = DEFAULT_SEEKS,
15678 };
15679 register_shrinker(&cache_shrinker);
15680
15681 ;
15682 return 0;
15683 }
15684
15685 _ACEOF
15686
15687
15688 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15689 echo "obj-m := conftest.o" >build/Makefile
15690 modpost_flag=''
15691 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15692 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703
15704 { $as_echo "$as_me:$LINENO: result: yes" >&5
15705 $as_echo "yes" >&6; }
15706
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
15709 _ACEOF
15710
15711
15712 else
15713 $as_echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 { $as_echo "$as_me:$LINENO: result: no" >&5
15717 $as_echo "no" >&6; }
15718 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
15719 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15720
15721
15722 cat confdefs.h - <<_ACEOF >conftest.c
15723 /* confdefs.h. */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728
15729
15730 #include <linux/mm.h>
15731
15732 int shrinker_cb(struct shrinker *, int nr_to_scan,
15733 gfp_t gfp_mask);
15734
15735 int
15736 main (void)
15737 {
15738
15739 struct shrinker cache_shrinker = {
15740 .shrink = shrinker_cb,
15741 .seeks = DEFAULT_SEEKS,
15742 };
15743 register_shrinker(&cache_shrinker);
15744
15745 ;
15746 return 0;
15747 }
15748
15749 _ACEOF
15750
15751
15752 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15753 echo "obj-m := conftest.o" >build/Makefile
15754 modpost_flag=''
15755 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15756 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767
15768 { $as_echo "$as_me:$LINENO: result: yes" >&5
15769 $as_echo "yes" >&6; }
15770
15771 cat >>confdefs.h <<\_ACEOF
15772 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
15773 _ACEOF
15774
15775
15776 else
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 { $as_echo "$as_me:$LINENO: result: no" >&5
15781 $as_echo "no" >&6; }
15782 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
15783 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15784
15785
15786 cat confdefs.h - <<_ACEOF >conftest.c
15787 /* confdefs.h. */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15792
15793
15794 #include <linux/mm.h>
15795
15796 int shrinker_cb(struct shrinker *,
15797 struct shrink_control *sc);
15798
15799 int
15800 main (void)
15801 {
15802
15803 struct shrinker cache_shrinker = {
15804 .shrink = shrinker_cb,
15805 .seeks = DEFAULT_SEEKS,
15806 };
15807 register_shrinker(&cache_shrinker);
15808
15809 ;
15810 return 0;
15811 }
15812
15813 _ACEOF
15814
15815
15816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15817 echo "obj-m := conftest.o" >build/Makefile
15818 modpost_flag=''
15819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15820 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831
15832 { $as_echo "$as_me:$LINENO: result: yes" >&5
15833 $as_echo "yes" >&6; }
15834
15835 cat >>confdefs.h <<\_ACEOF
15836 #define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
15837 _ACEOF
15838
15839
15840 else
15841 $as_echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844 { $as_echo "$as_me:$LINENO: result: no" >&5
15845 $as_echo "no" >&6; }
15846 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
15847 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15848
15849
15850 cat confdefs.h - <<_ACEOF >conftest.c
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856
15857
15858 #include <linux/mm.h>
15859
15860 unsigned long shrinker_cb(
15861 struct shrinker *,
15862 struct shrink_control *sc);
15863
15864 int
15865 main (void)
15866 {
15867
15868 struct shrinker cache_shrinker = {
15869 .count_objects = shrinker_cb,
15870 .scan_objects = shrinker_cb,
15871 .seeks = DEFAULT_SEEKS,
15872 };
15873 register_shrinker(&cache_shrinker);
15874
15875 ;
15876 return 0;
15877 }
15878
15879 _ACEOF
15880
15881
15882 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15883 echo "obj-m := conftest.o" >build/Makefile
15884 modpost_flag=''
15885 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15886 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897
15898 { $as_echo "$as_me:$LINENO: result: yes" >&5
15899 $as_echo "yes" >&6; }
15900
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_SPLIT_SHRINKER_CALLBACK 1
15903 _ACEOF
15904
15905
15906 else
15907 $as_echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 { { $as_echo "$as_me:$LINENO: error: error" >&5
15911 $as_echo "$as_me: error: error" >&2;}
15912 { (exit 1); exit 1; }; }
15913
15914
15915
15916 fi
15917
15918 rm -Rf build
15919
15920
15921
15922
15923
15924 fi
15925
15926 rm -Rf build
15927
15928
15929
15930
15931
15932 fi
15933
15934 rm -Rf build
15935
15936
15937
15938
15939
15940 fi
15941
15942 rm -Rf build
15943
15944
15945 EXTRA_KCFLAGS="$tmp_flags"
15946
15947
15948 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
15949 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15950
15951
15952 cat confdefs.h - <<_ACEOF >conftest.c
15953 /* confdefs.h. */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958
15959
15960 #include <linux/sysctl.h>
15961
15962 int
15963 main (void)
15964 {
15965
15966 struct ctl_table ctl __attribute__ ((unused));
15967 ctl.ctl_name = 0;
15968
15969 ;
15970 return 0;
15971 }
15972
15973 _ACEOF
15974
15975
15976 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15977 echo "obj-m := conftest.o" >build/Makefile
15978 modpost_flag=''
15979 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15980 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991
15992 { $as_echo "$as_me:$LINENO: result: yes" >&5
15993 $as_echo "yes" >&6; }
15994
15995 cat >>confdefs.h <<\_ACEOF
15996 #define HAVE_CTL_NAME 1
15997 _ACEOF
15998
15999
16000 else
16001 $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004 { $as_echo "$as_me:$LINENO: result: no" >&5
16005 $as_echo "no" >&6; }
16006
16007
16008
16009 fi
16010
16011 rm -Rf build
16012
16013
16014
16015
16016 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
16017 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
16018
16019
16020 cat confdefs.h - <<_ACEOF >conftest.c
16021 /* confdefs.h. */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026
16027
16028 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16029 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16030 #endif
16031
16032 int
16033 main (void)
16034 {
16035
16036 ;
16037 return 0;
16038 }
16039
16040 _ACEOF
16041
16042
16043 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16044 echo "obj-m := conftest.o" >build/Makefile
16045 modpost_flag=''
16046 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16047 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058
16059 { $as_echo "$as_me:$LINENO: result: yes" >&5
16060 $as_echo "yes" >&6; }
16061
16062 else
16063 $as_echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16065
16066 { $as_echo "$as_me:$LINENO: result: no" >&5
16067 $as_echo "no" >&6; }
16068 { { $as_echo "$as_me:$LINENO: error:
16069 *** This kernel has unused symbols trimming enabled, please disable.
16070 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
16071 $as_echo "$as_me: error:
16072 *** This kernel has unused symbols trimming enabled, please disable.
16073 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
16074 { (exit 1); exit 1; }; }
16075
16076
16077
16078 fi
16079
16080 rm -Rf build
16081
16082
16083
16084
16085 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
16086 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
16087
16088
16089
16090 cat confdefs.h - <<_ACEOF >conftest.c
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096
16097
16098 #include <linux/proc_fs.h>
16099
16100 int
16101 main (void)
16102 {
16103
16104 PDE_DATA(NULL);
16105
16106 ;
16107 return 0;
16108 }
16109
16110 _ACEOF
16111
16112
16113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16114 echo "obj-m := conftest.o" >build/Makefile
16115 modpost_flag=''
16116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16117 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 rc=0
16129 else
16130 $as_echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132 rc=1
16133
16134
16135 fi
16136
16137 rm -Rf build
16138
16139
16140 if test $rc -ne 0; then :
16141
16142 { $as_echo "$as_me:$LINENO: result: no" >&5
16143 $as_echo "no" >&6; }
16144
16145 else
16146 if test "x$enable_linux_builtin" != xyes; then
16147
16148 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16149 $LINUX_OBJ/Module*.symvers 2>/dev/null
16150 rc=$?
16151 if test $rc -ne 0; then
16152 export=0
16153 for file in ; do
16154 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16155 "$LINUX_OBJ/$file" 2>/dev/null
16156 rc=$?
16157 if test $rc -eq 0; then
16158 export=1
16159 break;
16160 fi
16161 done
16162 if test $export -eq 0; then :
16163 rc=1
16164 else :
16165 rc=0
16166 fi
16167 else :
16168 rc=0
16169 fi
16170
16171 fi
16172 if test $rc -ne 0; then :
16173
16174 { $as_echo "$as_me:$LINENO: result: no" >&5
16175 $as_echo "no" >&6; }
16176
16177 else :
16178
16179 { $as_echo "$as_me:$LINENO: result: yes" >&5
16180 $as_echo "yes" >&6; }
16181
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_PDE_DATA 1
16184 _ACEOF
16185
16186
16187 fi
16188 fi
16189
16190
16191 tmp_flags="$EXTRA_KCFLAGS"
16192 EXTRA_KCFLAGS="-Werror"
16193 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
16194 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
16195
16196
16197 cat confdefs.h - <<_ACEOF >conftest.c
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203
16204
16205 #include <linux/spinlock.h>
16206 #include <linux/fs_struct.h>
16207 #include <linux/path.h>
16208 void (*const set_fs_pwd_func)
16209 (struct fs_struct *, const struct path *)
16210 = set_fs_pwd;
16211
16212 int
16213 main (void)
16214 {
16215
16216 return 0;
16217
16218 ;
16219 return 0;
16220 }
16221
16222 _ACEOF
16223
16224
16225 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16226 echo "obj-m := conftest.o" >build/Makefile
16227 modpost_flag=''
16228 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16229 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16237 ac_status=$?
16238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240
16241 { $as_echo "$as_me:$LINENO: result: yes" >&5
16242 $as_echo "yes" >&6; }
16243
16244 cat >>confdefs.h <<\_ACEOF
16245 #define HAVE_SET_FS_PWD_WITH_CONST 1
16246 _ACEOF
16247
16248
16249 else
16250 $as_echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253
16254
16255 cat confdefs.h - <<_ACEOF >conftest.c
16256 /* confdefs.h. */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261
16262
16263 #include <linux/spinlock.h>
16264 #include <linux/fs_struct.h>
16265 #include <linux/path.h>
16266 void (*const set_fs_pwd_func)
16267 (struct fs_struct *, struct path *)
16268 = set_fs_pwd;
16269
16270 int
16271 main (void)
16272 {
16273
16274 return 0;
16275
16276 ;
16277 return 0;
16278 }
16279
16280 _ACEOF
16281
16282
16283 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16284 echo "obj-m := conftest.o" >build/Makefile
16285 modpost_flag=''
16286 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16287 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298
16299 { $as_echo "$as_me:$LINENO: result: no" >&5
16300 $as_echo "no" >&6; }
16301
16302 else
16303 $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
16307 $as_echo "$as_me: error: unknown" >&2;}
16308 { (exit 1); exit 1; }; }
16309
16310
16311
16312 fi
16313
16314 rm -Rf build
16315
16316
16317
16318
16319
16320 fi
16321
16322 rm -Rf build
16323
16324
16325 EXTRA_KCFLAGS="$tmp_flags"
16326
16327 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
16328 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
16329
16330
16331 cat confdefs.h - <<_ACEOF >conftest.c
16332 /* confdefs.h. */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337
16338
16339 #include <linux/fs.h>
16340
16341 int
16342 main (void)
16343 {
16344
16345 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
16346
16347 ;
16348 return 0;
16349 }
16350
16351 _ACEOF
16352
16353
16354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16355 echo "obj-m := conftest.o" >build/Makefile
16356 modpost_flag=''
16357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16358 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369
16370 { $as_echo "$as_me:$LINENO: result: yes" >&5
16371 $as_echo "yes" >&6; }
16372
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_2ARGS_VFS_UNLINK 1
16375 _ACEOF
16376
16377
16378 else
16379 $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 { $as_echo "$as_me:$LINENO: result: no" >&5
16383 $as_echo "no" >&6; }
16384 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
16385 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
16386
16387
16388 cat confdefs.h - <<_ACEOF >conftest.c
16389 /* confdefs.h. */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394
16395
16396 #include <linux/fs.h>
16397
16398 int
16399 main (void)
16400 {
16401
16402 vfs_unlink((struct inode *) NULL,
16403 (struct dentry *) NULL,
16404 (struct inode **) NULL);
16405
16406 ;
16407 return 0;
16408 }
16409
16410 _ACEOF
16411
16412
16413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16414 echo "obj-m := conftest.o" >build/Makefile
16415 modpost_flag=''
16416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16417 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428
16429 { $as_echo "$as_me:$LINENO: result: yes" >&5
16430 $as_echo "yes" >&6; }
16431
16432 cat >>confdefs.h <<\_ACEOF
16433 #define HAVE_3ARGS_VFS_UNLINK 1
16434 _ACEOF
16435
16436
16437 else
16438 $as_echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 { { $as_echo "$as_me:$LINENO: error: no" >&5
16442 $as_echo "$as_me: error: no" >&2;}
16443 { (exit 1); exit 1; }; }
16444
16445
16446
16447 fi
16448
16449 rm -Rf build
16450
16451
16452
16453
16454
16455
16456 fi
16457
16458 rm -Rf build
16459
16460
16461
16462 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
16463 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16464
16465
16466 cat confdefs.h - <<_ACEOF >conftest.c
16467 /* confdefs.h. */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472
16473
16474 #include <linux/fs.h>
16475
16476 int
16477 main (void)
16478 {
16479
16480 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16481 (struct inode *) NULL, (struct dentry *) NULL);
16482
16483 ;
16484 return 0;
16485 }
16486
16487 _ACEOF
16488
16489
16490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16491 echo "obj-m := conftest.o" >build/Makefile
16492 modpost_flag=''
16493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16494 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505
16506 { $as_echo "$as_me:$LINENO: result: yes" >&5
16507 $as_echo "yes" >&6; }
16508
16509 cat >>confdefs.h <<\_ACEOF
16510 #define HAVE_4ARGS_VFS_RENAME 1
16511 _ACEOF
16512
16513
16514 else
16515 $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16517
16518 { $as_echo "$as_me:$LINENO: result: no" >&5
16519 $as_echo "no" >&6; }
16520 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
16521 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16522
16523
16524 cat confdefs.h - <<_ACEOF >conftest.c
16525 /* confdefs.h. */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530
16531
16532 #include <linux/fs.h>
16533
16534 int
16535 main (void)
16536 {
16537
16538 vfs_rename((struct inode *) NULL,
16539 (struct dentry *) NULL,
16540 (struct inode *) NULL,
16541 (struct dentry *) NULL,
16542 (struct inode **) NULL);
16543
16544 ;
16545 return 0;
16546 }
16547
16548 _ACEOF
16549
16550
16551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16552 echo "obj-m := conftest.o" >build/Makefile
16553 modpost_flag=''
16554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16555 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566
16567 { $as_echo "$as_me:$LINENO: result: yes" >&5
16568 $as_echo "yes" >&6; }
16569
16570 cat >>confdefs.h <<\_ACEOF
16571 #define HAVE_5ARGS_VFS_RENAME 1
16572 _ACEOF
16573
16574
16575 else
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 { $as_echo "$as_me:$LINENO: result: no" >&5
16580 $as_echo "no" >&6; }
16581 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
16582 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16583
16584
16585 cat confdefs.h - <<_ACEOF >conftest.c
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591
16592
16593 #include <linux/fs.h>
16594
16595 int
16596 main (void)
16597 {
16598
16599 vfs_rename((struct inode *) NULL,
16600 (struct dentry *) NULL,
16601 (struct inode *) NULL,
16602 (struct dentry *) NULL,
16603 (struct inode **) NULL,
16604 (unsigned int) 0);
16605
16606 ;
16607 return 0;
16608 }
16609
16610 _ACEOF
16611
16612
16613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16614 echo "obj-m := conftest.o" >build/Makefile
16615 modpost_flag=''
16616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16617 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628
16629 { $as_echo "$as_me:$LINENO: result: yes" >&5
16630 $as_echo "yes" >&6; }
16631
16632 cat >>confdefs.h <<\_ACEOF
16633 #define HAVE_6ARGS_VFS_RENAME 1
16634 _ACEOF
16635
16636
16637 else
16638 $as_echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 { { $as_echo "$as_me:$LINENO: error: no" >&5
16642 $as_echo "$as_me: error: no" >&2;}
16643 { (exit 1); exit 1; }; }
16644
16645
16646
16647 fi
16648
16649 rm -Rf build
16650
16651
16652
16653
16654
16655 fi
16656
16657 rm -Rf build
16658
16659
16660
16661
16662
16663 fi
16664
16665 rm -Rf build
16666
16667
16668
16669
16670 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
16671 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16672
16673
16674 cat confdefs.h - <<_ACEOF >conftest.c
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680
16681
16682 #include <linux/fs.h>
16683
16684 int
16685 main (void)
16686 {
16687
16688 vfs_fsync(NULL, 0);
16689
16690 ;
16691 return 0;
16692 }
16693
16694 _ACEOF
16695
16696
16697 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16698 echo "obj-m := conftest.o" >build/Makefile
16699 modpost_flag=''
16700 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16701 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
16705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712
16713 { $as_echo "$as_me:$LINENO: result: yes" >&5
16714 $as_echo "yes" >&6; }
16715
16716 cat >>confdefs.h <<\_ACEOF
16717 #define HAVE_2ARGS_VFS_FSYNC 1
16718 _ACEOF
16719
16720
16721 else
16722 $as_echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 { $as_echo "$as_me:$LINENO: result: no" >&5
16726 $as_echo "no" >&6; }
16727
16728
16729
16730 fi
16731
16732 rm -Rf build
16733
16734
16735
16736
16737 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
16738 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16739
16740
16741 cat confdefs.h - <<_ACEOF >conftest.c
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747
16748
16749 #include <linux/fs.h>
16750
16751 int
16752 main (void)
16753 {
16754
16755 struct inode_operations ops;
16756 ops.truncate_range = NULL;
16757
16758 ;
16759 return 0;
16760 }
16761
16762 _ACEOF
16763
16764
16765 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16766 echo "obj-m := conftest.o" >build/Makefile
16767 modpost_flag=''
16768 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16769 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780
16781 { $as_echo "$as_me:$LINENO: result: yes" >&5
16782 $as_echo "yes" >&6; }
16783
16784 cat >>confdefs.h <<\_ACEOF
16785 #define HAVE_INODE_TRUNCATE_RANGE 1
16786 _ACEOF
16787
16788
16789 else
16790 $as_echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793 { $as_echo "$as_me:$LINENO: result: no" >&5
16794 $as_echo "no" >&6; }
16795
16796
16797
16798 fi
16799
16800 rm -Rf build
16801
16802
16803
16804
16805 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
16806 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16807 tmp_flags="$EXTRA_KCFLAGS"
16808 EXTRA_KCFLAGS="-Werror"
16809
16810
16811 cat confdefs.h - <<_ACEOF >conftest.c
16812 /* confdefs.h. */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817
16818
16819 #include <linux/sched.h>
16820 #include <linux/fs_struct.h>
16821
16822 int
16823 main (void)
16824 {
16825
16826 static struct fs_struct fs;
16827 spin_lock_init(&fs.lock);
16828
16829 ;
16830 return 0;
16831 }
16832
16833 _ACEOF
16834
16835
16836 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16837 echo "obj-m := conftest.o" >build/Makefile
16838 modpost_flag=''
16839 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16840 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851
16852 { $as_echo "$as_me:$LINENO: result: yes" >&5
16853 $as_echo "yes" >&6; }
16854
16855 cat >>confdefs.h <<\_ACEOF
16856 #define HAVE_FS_STRUCT_SPINLOCK 1
16857 _ACEOF
16858
16859
16860 else
16861 $as_echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 { $as_echo "$as_me:$LINENO: result: no" >&5
16865 $as_echo "no" >&6; }
16866
16867
16868
16869 fi
16870
16871 rm -Rf build
16872
16873
16874 EXTRA_KCFLAGS="$tmp_flags"
16875
16876
16877 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
16878 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16879
16880
16881 cat confdefs.h - <<_ACEOF >conftest.c
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887
16888
16889 #include <linux/uidgid.h>
16890
16891 int
16892 main (void)
16893 {
16894
16895 kuid_t userid = KUIDT_INIT(0);
16896 kgid_t groupid = KGIDT_INIT(0);
16897
16898 ;
16899 return 0;
16900 }
16901
16902 _ACEOF
16903
16904
16905 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16906 echo "obj-m := conftest.o" >build/Makefile
16907 modpost_flag=''
16908 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16909 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920
16921
16922
16923 cat confdefs.h - <<_ACEOF >conftest.c
16924 /* confdefs.h. */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929
16930
16931 #include <linux/uidgid.h>
16932
16933 int
16934 main (void)
16935 {
16936
16937 kuid_t userid = 0;
16938 kgid_t groupid = 0;
16939
16940 ;
16941 return 0;
16942 }
16943
16944 _ACEOF
16945
16946
16947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16948 echo "obj-m := conftest.o" >build/Makefile
16949 modpost_flag=''
16950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16951 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
16960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962
16963 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
16964 $as_echo "yes; optional" >&6; }
16965
16966 else
16967 $as_echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
16971 $as_echo "yes; mandatory" >&6; }
16972
16973 cat >>confdefs.h <<\_ACEOF
16974 #define HAVE_KUIDGID_T 1
16975 _ACEOF
16976
16977
16978
16979
16980 fi
16981
16982 rm -Rf build
16983
16984
16985
16986 else
16987 $as_echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 { $as_echo "$as_me:$LINENO: result: no" >&5
16991 $as_echo "no" >&6; }
16992
16993
16994
16995 fi
16996
16997 rm -Rf build
16998
16999
17000
17001
17002
17003 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
17004 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17005
17006
17007 cat confdefs.h - <<_ACEOF >conftest.c
17008 /* confdefs.h. */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013
17014
17015 #include <linux/fs.h>
17016
17017 int
17018 main (void)
17019 {
17020
17021 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17022 struct file_operations fops __attribute__ ((unused)) = {
17023 .fallocate = fallocate,
17024 };
17025
17026 ;
17027 return 0;
17028 }
17029
17030 _ACEOF
17031
17032
17033 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17034 echo "obj-m := conftest.o" >build/Makefile
17035 modpost_flag=''
17036 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17037 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048
17049 { $as_echo "$as_me:$LINENO: result: yes" >&5
17050 $as_echo "yes" >&6; }
17051
17052 cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_FILE_FALLOCATE 1
17054 _ACEOF
17055
17056
17057 else
17058 $as_echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 { $as_echo "$as_me:$LINENO: result: no" >&5
17062 $as_echo "no" >&6; }
17063
17064
17065
17066 fi
17067
17068 rm -Rf build
17069
17070
17071
17072
17073 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
17074 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17075
17076
17077 cat confdefs.h - <<_ACEOF >conftest.c
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083
17084
17085 #include <linux/fs.h>
17086
17087 int
17088 main (void)
17089 {
17090
17091 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
17092 struct inode_operations fops __attribute__ ((unused)) = {
17093 .fallocate = fallocate,
17094 };
17095
17096 ;
17097 return 0;
17098 }
17099
17100 _ACEOF
17101
17102
17103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17104 echo "obj-m := conftest.o" >build/Makefile
17105 modpost_flag=''
17106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17107 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118
17119 { $as_echo "$as_me:$LINENO: result: yes" >&5
17120 $as_echo "yes" >&6; }
17121
17122 cat >>confdefs.h <<\_ACEOF
17123 #define HAVE_INODE_FALLOCATE 1
17124 _ACEOF
17125
17126
17127 else
17128 $as_echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 { $as_echo "$as_me:$LINENO: result: no" >&5
17132 $as_echo "no" >&6; }
17133
17134
17135
17136 fi
17137
17138 rm -Rf build
17139
17140
17141
17142
17143 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
17144 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17145
17146
17147 cat confdefs.h - <<_ACEOF >conftest.c
17148 /* confdefs.h. */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153
17154
17155 #include <linux/fs.h>
17156
17157 int
17158 main (void)
17159 {
17160
17161 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17162 struct file_operations_no_const fops __attribute__ ((unused)) = {
17163 .fallocate = fallocate,
17164 };
17165
17166 ;
17167 return 0;
17168 }
17169
17170 _ACEOF
17171
17172
17173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17174 echo "obj-m := conftest.o" >build/Makefile
17175 modpost_flag=''
17176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17177 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188
17189 { $as_echo "$as_me:$LINENO: result: yes" >&5
17190 $as_echo "yes" >&6; }
17191
17192 cat >>confdefs.h <<\_ACEOF
17193 #define HAVE_FILE_FALLOCATE 1
17194 _ACEOF
17195
17196
17197 else
17198 $as_echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 { $as_echo "$as_me:$LINENO: result: no" >&5
17202 $as_echo "no" >&6; }
17203
17204
17205
17206 fi
17207
17208 rm -Rf build
17209
17210
17211
17212
17213
17214 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
17215 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
17216
17217
17218 cat confdefs.h - <<_ACEOF >conftest.c
17219 /* confdefs.h. */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224
17225
17226 #if !defined(CONFIG_ZLIB_INFLATE) && \
17227 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17228 #error CONFIG_ZLIB_INFLATE not defined
17229 #endif
17230
17231 int
17232 main (void)
17233 {
17234
17235 ;
17236 return 0;
17237 }
17238
17239 _ACEOF
17240
17241
17242 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17243 echo "obj-m := conftest.o" >build/Makefile
17244 modpost_flag=''
17245 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17246 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257
17258 { $as_echo "$as_me:$LINENO: result: yes" >&5
17259 $as_echo "yes" >&6; }
17260
17261 else
17262 $as_echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17264
17265 { $as_echo "$as_me:$LINENO: result: no" >&5
17266 $as_echo "no" >&6; }
17267 { { $as_echo "$as_me:$LINENO: error:
17268 *** This kernel does not include the required zlib inflate support.
17269 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
17270 $as_echo "$as_me: error:
17271 *** This kernel does not include the required zlib inflate support.
17272 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
17273 { (exit 1); exit 1; }; }
17274
17275
17276
17277 fi
17278
17279 rm -Rf build
17280
17281
17282
17283
17284 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
17285 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
17286
17287
17288 cat confdefs.h - <<_ACEOF >conftest.c
17289 /* confdefs.h. */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294
17295
17296 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17297 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17298 #error CONFIG_ZLIB_DEFLATE not defined
17299 #endif
17300
17301 int
17302 main (void)
17303 {
17304
17305 ;
17306 return 0;
17307 }
17308
17309 _ACEOF
17310
17311
17312 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17313 echo "obj-m := conftest.o" >build/Makefile
17314 modpost_flag=''
17315 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17316 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327
17328 { $as_echo "$as_me:$LINENO: result: yes" >&5
17329 $as_echo "yes" >&6; }
17330
17331 else
17332 $as_echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 { $as_echo "$as_me:$LINENO: result: no" >&5
17336 $as_echo "no" >&6; }
17337 { { $as_echo "$as_me:$LINENO: error:
17338 *** This kernel does not include the required zlib deflate support.
17339 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
17340 $as_echo "$as_me: error:
17341 *** This kernel does not include the required zlib deflate support.
17342 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
17343 { (exit 1); exit 1; }; }
17344
17345
17346
17347 fi
17348
17349 rm -Rf build
17350
17351
17352
17353 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
17354 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
17355
17356
17357 cat confdefs.h - <<_ACEOF >conftest.c
17358 /* confdefs.h. */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17363
17364
17365 #include <linux/zlib.h>
17366
17367 int
17368 main (void)
17369 {
17370
17371 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17372
17373 ;
17374 return 0;
17375 }
17376
17377 _ACEOF
17378
17379
17380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17381 echo "obj-m := conftest.o" >build/Makefile
17382 modpost_flag=''
17383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17384 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395
17396 { $as_echo "$as_me:$LINENO: result: yes" >&5
17397 $as_echo "yes" >&6; }
17398
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
17401 _ACEOF
17402
17403
17404 else
17405 $as_echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17407
17408 { $as_echo "$as_me:$LINENO: result: no" >&5
17409 $as_echo "no" >&6; }
17410
17411
17412
17413 fi
17414
17415 rm -Rf build
17416
17417
17418
17419
17420 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
17421 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
17422
17423
17424 cat confdefs.h - <<_ACEOF >conftest.c
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430
17431
17432 #include <linux/mm.h>
17433
17434 int
17435 main (void)
17436 {
17437
17438 struct shrink_control sc __attribute__ ((unused));
17439
17440 sc.nr_to_scan = 0;
17441 sc.gfp_mask = GFP_KERNEL;
17442
17443 ;
17444 return 0;
17445 }
17446
17447 _ACEOF
17448
17449
17450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17451 echo "obj-m := conftest.o" >build/Makefile
17452 modpost_flag=''
17453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17454 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465
17466 { $as_echo "$as_me:$LINENO: result: yes" >&5
17467 $as_echo "yes" >&6; }
17468
17469 cat >>confdefs.h <<\_ACEOF
17470 #define HAVE_SHRINK_CONTROL_STRUCT 1
17471 _ACEOF
17472
17473
17474 else
17475 $as_echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478 { $as_echo "$as_me:$LINENO: result: no" >&5
17479 $as_echo "no" >&6; }
17480
17481
17482
17483 fi
17484
17485 rm -Rf build
17486
17487
17488
17489
17490 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
17491 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17492 tmp_flags="$EXTRA_KCFLAGS"
17493 EXTRA_KCFLAGS="-Werror"
17494
17495
17496 cat confdefs.h - <<_ACEOF >conftest.c
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502
17503
17504 #include <linux/rwsem.h>
17505
17506 int
17507 main (void)
17508 {
17509
17510 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17511 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
17512 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
17513 dummy_semaphore.wait_lock = dummy_lock;
17514
17515 ;
17516 return 0;
17517 }
17518
17519 _ACEOF
17520
17521
17522 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17523 echo "obj-m := conftest.o" >build/Makefile
17524 modpost_flag=''
17525 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17526 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537
17538 { $as_echo "$as_me:$LINENO: result: yes" >&5
17539 $as_echo "yes" >&6; }
17540
17541 cat >>confdefs.h <<\_ACEOF
17542 #define RWSEM_SPINLOCK_IS_RAW 1
17543 _ACEOF
17544
17545
17546 else
17547 $as_echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 { $as_echo "$as_me:$LINENO: result: no" >&5
17551 $as_echo "no" >&6; }
17552
17553
17554
17555 fi
17556
17557 rm -Rf build
17558
17559
17560 EXTRA_KCFLAGS="$tmp_flags"
17561
17562
17563 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
17564 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17565 tmp_flags="$EXTRA_KCFLAGS"
17566 EXTRA_KCFLAGS="-Werror"
17567
17568
17569 cat confdefs.h - <<_ACEOF >conftest.c
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575
17576
17577 #include <linux/rwsem.h>
17578
17579 int
17580 main (void)
17581 {
17582
17583 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17584 dummy_semaphore.activity = 0;
17585
17586 ;
17587 return 0;
17588 }
17589
17590 _ACEOF
17591
17592
17593 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17594 echo "obj-m := conftest.o" >build/Makefile
17595 modpost_flag=''
17596 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17597 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608
17609 { $as_echo "$as_me:$LINENO: result: yes" >&5
17610 $as_echo "yes" >&6; }
17611
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_RWSEM_ACTIVITY 1
17614 _ACEOF
17615
17616
17617 else
17618 $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 { $as_echo "$as_me:$LINENO: result: no" >&5
17622 $as_echo "no" >&6; }
17623
17624
17625
17626 fi
17627
17628 rm -Rf build
17629
17630
17631 EXTRA_KCFLAGS="$tmp_flags"
17632
17633
17634 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
17635 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
17636 tmp_flags="$EXTRA_KCFLAGS"
17637 EXTRA_KCFLAGS="-Werror"
17638
17639
17640 cat confdefs.h - <<_ACEOF >conftest.c
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646
17647
17648 #include <linux/rwsem.h>
17649
17650 int
17651 main (void)
17652 {
17653
17654 DECLARE_RWSEM(dummy_semaphore);
17655 (void) atomic_long_read(&dummy_semaphore.count);
17656
17657 ;
17658 return 0;
17659 }
17660
17661 _ACEOF
17662
17663
17664 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17665 echo "obj-m := conftest.o" >build/Makefile
17666 modpost_flag=''
17667 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17668 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679
17680 { $as_echo "$as_me:$LINENO: result: yes" >&5
17681 $as_echo "yes" >&6; }
17682
17683 cat >>confdefs.h <<\_ACEOF
17684 #define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
17685 _ACEOF
17686
17687
17688 else
17689 $as_echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692 { $as_echo "$as_me:$LINENO: result: no" >&5
17693 $as_echo "no" >&6; }
17694
17695
17696
17697 fi
17698
17699 rm -Rf build
17700
17701
17702 EXTRA_KCFLAGS="$tmp_flags"
17703
17704 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
17705 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
17706
17707
17708 cat confdefs.h - <<_ACEOF >conftest.c
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714
17715
17716 #include <linux/sched.h>
17717 #include <linux/sched/rt.h>
17718
17719 int
17720 main (void)
17721 {
17722
17723 return 0;
17724
17725 ;
17726 return 0;
17727 }
17728
17729 _ACEOF
17730
17731
17732 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17733 echo "obj-m := conftest.o" >build/Makefile
17734 modpost_flag=''
17735 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17736 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17739 ac_status=$?
17740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747
17748
17749 cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_SCHED_RT_HEADER 1
17751 _ACEOF
17752
17753 { $as_echo "$as_me:$LINENO: result: yes" >&5
17754 $as_echo "yes" >&6; }
17755
17756 else
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 { $as_echo "$as_me:$LINENO: result: no" >&5
17761 $as_echo "no" >&6; }
17762
17763
17764
17765 fi
17766
17767 rm -Rf build
17768
17769
17770
17771 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
17772 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
17773
17774
17775 cat confdefs.h - <<_ACEOF >conftest.c
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781
17782
17783 #include <linux/sched.h>
17784 #include <linux/sched/signal.h>
17785
17786 int
17787 main (void)
17788 {
17789
17790 return 0;
17791
17792 ;
17793 return 0;
17794 }
17795
17796 _ACEOF
17797
17798
17799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17800 echo "obj-m := conftest.o" >build/Makefile
17801 modpost_flag=''
17802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17806 ac_status=$?
17807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
17816 cat >>confdefs.h <<\_ACEOF
17817 #define HAVE_SCHED_SIGNAL_HEADER 1
17818 _ACEOF
17819
17820 { $as_echo "$as_me:$LINENO: result: yes" >&5
17821 $as_echo "yes" >&6; }
17822
17823 else
17824 $as_echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827 { $as_echo "$as_me:$LINENO: result: no" >&5
17828 $as_echo "no" >&6; }
17829
17830
17831
17832 fi
17833
17834 rm -Rf build
17835
17836
17837
17838
17839 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
17840 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
17841
17842
17843 cat confdefs.h - <<_ACEOF >conftest.c
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849
17850
17851 #include <linux/fs.h>
17852
17853 int
17854 main (void)
17855 {
17856
17857 vfs_getattr((const struct path *)NULL,
17858 (struct kstat *)NULL,
17859 (u32)0,
17860 (unsigned int)0);
17861
17862 ;
17863 return 0;
17864 }
17865
17866 _ACEOF
17867
17868
17869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17870 echo "obj-m := conftest.o" >build/Makefile
17871 modpost_flag=''
17872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17873 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884
17885 { $as_echo "$as_me:$LINENO: result: yes" >&5
17886 $as_echo "yes" >&6; }
17887
17888 cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_4ARGS_VFS_GETATTR 1
17890 _ACEOF
17891
17892
17893 else
17894 $as_echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 { $as_echo "$as_me:$LINENO: result: no" >&5
17898 $as_echo "no" >&6; }
17899
17900
17901
17902 fi
17903
17904 rm -Rf build
17905
17906
17907
17908
17909 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
17910 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
17911
17912
17913 cat confdefs.h - <<_ACEOF >conftest.c
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919
17920
17921 #include <linux/fs.h>
17922
17923 int
17924 main (void)
17925 {
17926
17927 vfs_getattr((struct vfsmount *)NULL,
17928 (struct dentry *)NULL,
17929 (struct kstat *)NULL);
17930
17931 ;
17932 return 0;
17933 }
17934
17935 _ACEOF
17936
17937
17938 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17939 echo "obj-m := conftest.o" >build/Makefile
17940 modpost_flag=''
17941 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17942 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953
17954 { $as_echo "$as_me:$LINENO: result: yes" >&5
17955 $as_echo "yes" >&6; }
17956
17957 cat >>confdefs.h <<\_ACEOF
17958 #define HAVE_3ARGS_VFS_GETATTR 1
17959 _ACEOF
17960
17961
17962 else
17963 $as_echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 { $as_echo "$as_me:$LINENO: result: no" >&5
17967 $as_echo "no" >&6; }
17968
17969
17970
17971 fi
17972
17973 rm -Rf build
17974
17975
17976
17977
17978 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
17979 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
17980
17981
17982 cat confdefs.h - <<_ACEOF >conftest.c
17983 /* confdefs.h. */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988
17989
17990 #include <linux/fs.h>
17991
17992 int
17993 main (void)
17994 {
17995
17996 vfs_getattr((struct path *) NULL,
17997 (struct kstat *)NULL);
17998
17999 ;
18000 return 0;
18001 }
18002
18003 _ACEOF
18004
18005
18006 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18007 echo "obj-m := conftest.o" >build/Makefile
18008 modpost_flag=''
18009 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18010 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021
18022 { $as_echo "$as_me:$LINENO: result: yes" >&5
18023 $as_echo "yes" >&6; }
18024
18025 cat >>confdefs.h <<\_ACEOF
18026 #define HAVE_2ARGS_VFS_GETATTR 1
18027 _ACEOF
18028
18029
18030 else
18031 $as_echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 { $as_echo "$as_me:$LINENO: result: no" >&5
18035 $as_echo "no" >&6; }
18036
18037
18038
18039 fi
18040
18041 rm -Rf build
18042
18043
18044
18045
18046 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
18047 $as_echo_n "checking whether usleep_range() is available... " >&6; }
18048
18049
18050 cat confdefs.h - <<_ACEOF >conftest.c
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056
18057
18058 #include <linux/delay.h>
18059
18060 int
18061 main (void)
18062 {
18063
18064 usleep_range(0, 0);
18065
18066 ;
18067 return 0;
18068 }
18069
18070 _ACEOF
18071
18072
18073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18074 echo "obj-m := conftest.o" >build/Makefile
18075 modpost_flag=''
18076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18077 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088
18089 { $as_echo "$as_me:$LINENO: result: yes" >&5
18090 $as_echo "yes" >&6; }
18091
18092 cat >>confdefs.h <<\_ACEOF
18093 #define HAVE_USLEEP_RANGE 1
18094 _ACEOF
18095
18096
18097 else
18098 $as_echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 { $as_echo "$as_me:$LINENO: result: no" >&5
18102 $as_echo "no" >&6; }
18103
18104
18105
18106 fi
18107
18108 rm -Rf build
18109
18110
18111
18112
18113 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
18114 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
18115
18116
18117 cat confdefs.h - <<_ACEOF >conftest.c
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123
18124
18125 #include <linux/slab.h>
18126
18127 int
18128 main (void)
18129 {
18130
18131 struct kmem_cache cachep __attribute__ ((unused));
18132 cachep.allocflags = GFP_KERNEL;
18133
18134 ;
18135 return 0;
18136 }
18137
18138 _ACEOF
18139
18140
18141 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18142 echo "obj-m := conftest.o" >build/Makefile
18143 modpost_flag=''
18144 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18145 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156
18157 { $as_echo "$as_me:$LINENO: result: yes" >&5
18158 $as_echo "yes" >&6; }
18159
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_KMEM_CACHE_ALLOCFLAGS 1
18162 _ACEOF
18163
18164
18165 else
18166 $as_echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18168
18169 { $as_echo "$as_me:$LINENO: result: no" >&5
18170 $as_echo "no" >&6; }
18171
18172 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
18173 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
18174
18175
18176 cat confdefs.h - <<_ACEOF >conftest.c
18177 /* confdefs.h. */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18182
18183
18184 #include <linux/slab.h>
18185
18186 int
18187 main (void)
18188 {
18189
18190 struct kmem_cache cachep __attribute__ ((unused));
18191 cachep.gfpflags = GFP_KERNEL;
18192
18193 ;
18194 return 0;
18195 }
18196
18197 _ACEOF
18198
18199
18200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18201 echo "obj-m := conftest.o" >build/Makefile
18202 modpost_flag=''
18203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18204 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215
18216 { $as_echo "$as_me:$LINENO: result: yes" >&5
18217 $as_echo "yes" >&6; }
18218
18219 cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_KMEM_CACHE_GFPFLAGS 1
18221 _ACEOF
18222
18223
18224 else
18225 $as_echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 { $as_echo "$as_me:$LINENO: result: no" >&5
18229 $as_echo "no" >&6; }
18230
18231
18232
18233 fi
18234
18235 rm -Rf build
18236
18237
18238
18239
18240
18241 fi
18242
18243 rm -Rf build
18244
18245
18246
18247
18248 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
18249 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
18250
18251
18252 cat confdefs.h - <<_ACEOF >conftest.c
18253 /* confdefs.h. */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258
18259
18260 #include <linux/wait.h>
18261
18262 int
18263 main (void)
18264 {
18265
18266 int (*action)(void *) = NULL;
18267 wait_on_bit(NULL, 0, action, 0);
18268
18269 ;
18270 return 0;
18271 }
18272
18273 _ACEOF
18274
18275
18276 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18277 echo "obj-m := conftest.o" >build/Makefile
18278 modpost_flag=''
18279 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18280 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291
18292 { $as_echo "$as_me:$LINENO: result: yes" >&5
18293 $as_echo "yes" >&6; }
18294
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_WAIT_ON_BIT_ACTION 1
18297 _ACEOF
18298
18299
18300 else
18301 $as_echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 { $as_echo "$as_me:$LINENO: result: no" >&5
18305 $as_echo "no" >&6; }
18306
18307
18308
18309 fi
18310
18311 rm -Rf build
18312
18313
18314
18315
18316 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
18317 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18318 tmp_flags="$EXTRA_KCFLAGS"
18319 EXTRA_KCFLAGS="-Werror"
18320
18321
18322 cat confdefs.h - <<_ACEOF >conftest.c
18323 /* confdefs.h. */
18324 _ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18328
18329
18330 #include <linux/fs.h>
18331
18332 int
18333 main (void)
18334 {
18335
18336 struct inode *inode = NULL;
18337 inode_lock_shared(inode);
18338
18339 ;
18340 return 0;
18341 }
18342
18343 _ACEOF
18344
18345
18346 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18347 echo "obj-m := conftest.o" >build/Makefile
18348 modpost_flag=''
18349 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18350 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18353 ac_status=$?
18354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361
18362 { $as_echo "$as_me:$LINENO: result: yes" >&5
18363 $as_echo "yes" >&6; }
18364
18365 cat >>confdefs.h <<\_ACEOF
18366 #define HAVE_INODE_LOCK_SHARED 1
18367 _ACEOF
18368
18369
18370 else
18371 $as_echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374 { $as_echo "$as_me:$LINENO: result: no" >&5
18375 $as_echo "no" >&6; }
18376
18377
18378
18379 fi
18380
18381 rm -Rf build
18382
18383
18384 EXTRA_KCFLAGS="$tmp_flags"
18385
18386
18387 { $as_echo "$as_me:$LINENO: checking whether mutex has owner" >&5
18388 $as_echo_n "checking whether mutex has owner... " >&6; }
18389 tmp_flags="$EXTRA_KCFLAGS"
18390 EXTRA_KCFLAGS="-Werror"
18391
18392
18393 cat confdefs.h - <<_ACEOF >conftest.c
18394 /* confdefs.h. */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18399
18400
18401 #include <linux/mutex.h>
18402 #include <linux/spinlock.h>
18403
18404 int
18405 main (void)
18406 {
18407
18408 DEFINE_MUTEX(m);
18409 struct task_struct *t __attribute__ ((unused));
18410 t = m.owner;
18411
18412 ;
18413 return 0;
18414 }
18415
18416 _ACEOF
18417
18418
18419 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18420 echo "obj-m := conftest.o" >build/Makefile
18421 modpost_flag=''
18422 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18423 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18434
18435 { $as_echo "$as_me:$LINENO: result: yes" >&5
18436 $as_echo "yes" >&6; }
18437
18438 cat >>confdefs.h <<\_ACEOF
18439 #define HAVE_MUTEX_OWNER 1
18440 _ACEOF
18441
18442
18443 else
18444 $as_echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18446
18447 { $as_echo "$as_me:$LINENO: result: no" >&5
18448 $as_echo "no" >&6; }
18449
18450
18451
18452 fi
18453
18454 rm -Rf build
18455
18456
18457 EXTRA_KCFLAGS="$tmp_flags"
18458
18459
18460 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
18461 $as_echo_n "checking whether group_info->gid exists... " >&6; }
18462 tmp_flags="$EXTRA_KCFLAGS"
18463 EXTRA_KCFLAGS="-Werror"
18464
18465
18466 cat confdefs.h - <<_ACEOF >conftest.c
18467 /* confdefs.h. */
18468 _ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472
18473
18474 #include <linux/cred.h>
18475
18476 int
18477 main (void)
18478 {
18479
18480 struct group_info *gi = groups_alloc(1);
18481 gi->gid[0] = KGIDT_INIT(0);
18482
18483 ;
18484 return 0;
18485 }
18486
18487 _ACEOF
18488
18489
18490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18491 echo "obj-m := conftest.o" >build/Makefile
18492 modpost_flag=''
18493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18494 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
18503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505
18506 { $as_echo "$as_me:$LINENO: result: yes" >&5
18507 $as_echo "yes" >&6; }
18508
18509 cat >>confdefs.h <<\_ACEOF
18510 #define HAVE_GROUP_INFO_GID 1
18511 _ACEOF
18512
18513
18514 else
18515 $as_echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 { $as_echo "$as_me:$LINENO: result: no" >&5
18519 $as_echo "no" >&6; }
18520
18521
18522
18523 fi
18524
18525 rm -Rf build
18526
18527
18528 EXTRA_KCFLAGS="$tmp_flags"
18529
18530
18531 ;;
18532 srpm) ;;
18533 *)
18534 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18535 $as_echo "Error!" >&6; }
18536 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18537 user kernel|user|all|srpm" >&5
18538 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18539 user kernel|user|all|srpm" >&2;}
18540 { (exit 1); exit 1; }; } ;;
18541 esac
18542
18543 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
18544 CONFIG_USER_TRUE=
18545 CONFIG_USER_FALSE='#'
18546 else
18547 CONFIG_USER_TRUE='#'
18548 CONFIG_USER_FALSE=
18549 fi
18550
18551 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
18552 test "x$enable_linux_builtin" != xyes ; then
18553 CONFIG_KERNEL_TRUE=
18554 CONFIG_KERNEL_FALSE='#'
18555 else
18556 CONFIG_KERNEL_TRUE='#'
18557 CONFIG_KERNEL_FALSE=
18558 fi
18559
18560
18561
18562 ac_config_files="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/spl.spec rpm/redhat/spl-kmod.spec rpm/redhat/spl-dkms.spec rpm/generic/Makefile rpm/generic/spl.spec rpm/generic/spl-kmod.spec rpm/generic/spl-dkms.spec spl.release"
18563
18564
18565 cat >confcache <<\_ACEOF
18566 # This file is a shell script that caches the results of configure
18567 # tests run on this system so they can be shared between configure
18568 # scripts and configure runs, see configure's option --config-cache.
18569 # It is not useful on other systems. If it contains results you don't
18570 # want to keep, you may remove or edit it.
18571 #
18572 # config.status only pays attention to the cache file if you give it
18573 # the --recheck option to rerun configure.
18574 #
18575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18577 # following values.
18578
18579 _ACEOF
18580
18581 # The following way of writing the cache mishandles newlines in values,
18582 # but we know of no workaround that is simple, portable, and efficient.
18583 # So, we kill variables containing newlines.
18584 # Ultrix sh set writes to stderr and can't be redirected directly,
18585 # and sets the high bit in the cache file unless we assign to the vars.
18586 (
18587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18588 eval ac_val=\$$ac_var
18589 case $ac_val in #(
18590 *${as_nl}*)
18591 case $ac_var in #(
18592 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18593 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18594 esac
18595 case $ac_var in #(
18596 _ | IFS | as_nl) ;; #(
18597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18598 *) $as_unset $ac_var ;;
18599 esac ;;
18600 esac
18601 done
18602
18603 (set) 2>&1 |
18604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18605 *${as_nl}ac_space=\ *)
18606 # `set' does not quote correctly, so add quotes (double-quote
18607 # substitution turns \\\\ into \\, and sed turns \\ into \).
18608 sed -n \
18609 "s/'/'\\\\''/g;
18610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18611 ;; #(
18612 *)
18613 # `set' quotes correctly as required by POSIX, so do not add quotes.
18614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18615 ;;
18616 esac |
18617 sort
18618 ) |
18619 sed '
18620 /^ac_cv_env_/b end
18621 t clear
18622 :clear
18623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18624 t end
18625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18626 :end' >>confcache
18627 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18628 if test -w "$cache_file"; then
18629 test "x$cache_file" != "x/dev/null" &&
18630 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18631 $as_echo "$as_me: updating cache $cache_file" >&6;}
18632 cat confcache >$cache_file
18633 else
18634 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18635 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18636 fi
18637 fi
18638 rm -f confcache
18639
18640 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18641 # Let make expand exec_prefix.
18642 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18643
18644 DEFS=-DHAVE_CONFIG_H
18645
18646 ac_libobjs=
18647 ac_ltlibobjs=
18648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18649 # 1. Remove the extension, and $U if already installed.
18650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18653 # will be set to the directory where LIBOBJS objects are built.
18654 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18655 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18656 done
18657 LIBOBJS=$ac_libobjs
18658
18659 LTLIBOBJS=$ac_ltlibobjs
18660
18661
18662 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18663 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18664 Usually this means the macro was only invoked conditionally." >&5
18665 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18666 Usually this means the macro was only invoked conditionally." >&2;}
18667 { (exit 1); exit 1; }; }
18668 fi
18669 if test -n "$EXEEXT"; then
18670 am__EXEEXT_TRUE=
18671 am__EXEEXT_FALSE='#'
18672 else
18673 am__EXEEXT_TRUE='#'
18674 am__EXEEXT_FALSE=
18675 fi
18676
18677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18678 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18679 Usually this means the macro was only invoked conditionally." >&5
18680 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18681 Usually this means the macro was only invoked conditionally." >&2;}
18682 { (exit 1); exit 1; }; }
18683 fi
18684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18685 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18686 Usually this means the macro was only invoked conditionally." >&5
18687 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18688 Usually this means the macro was only invoked conditionally." >&2;}
18689 { (exit 1); exit 1; }; }
18690 fi
18691 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18692 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18693 Usually this means the macro was only invoked conditionally." >&5
18694 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18695 Usually this means the macro was only invoked conditionally." >&2;}
18696 { (exit 1); exit 1; }; }
18697 fi
18698 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18699 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18700 Usually this means the macro was only invoked conditionally." >&5
18701 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18702 Usually this means the macro was only invoked conditionally." >&2;}
18703 { (exit 1); exit 1; }; }
18704 fi
18705
18706 : ${CONFIG_STATUS=./config.status}
18707 ac_write_fail=0
18708 ac_clean_files_save=$ac_clean_files
18709 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18710 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18712 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18713 #! $SHELL
18714 # Generated by $as_me.
18715 # Run this file to recreate the current configuration.
18716 # Compiler output produced by configure, useful for debugging
18717 # configure, is in config.log if it exists.
18718
18719 debug=false
18720 ac_cs_recheck=false
18721 ac_cs_silent=false
18722 SHELL=\${CONFIG_SHELL-$SHELL}
18723 _ACEOF
18724
18725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726 ## --------------------- ##
18727 ## M4sh Initialization. ##
18728 ## --------------------- ##
18729
18730 # Be more Bourne compatible
18731 DUALCASE=1; export DUALCASE # for MKS sh
18732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18733 emulate sh
18734 NULLCMD=:
18735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18736 # is contrary to our usage. Disable this feature.
18737 alias -g '${1+"$@"}'='"$@"'
18738 setopt NO_GLOB_SUBST
18739 else
18740 case `(set -o) 2>/dev/null` in
18741 *posix*) set -o posix ;;
18742 esac
18743
18744 fi
18745
18746
18747
18748
18749 # PATH needs CR
18750 # Avoid depending upon Character Ranges.
18751 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18754 as_cr_digits='0123456789'
18755 as_cr_alnum=$as_cr_Letters$as_cr_digits
18756
18757 as_nl='
18758 '
18759 export as_nl
18760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18761 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18764 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18765 as_echo='printf %s\n'
18766 as_echo_n='printf %s'
18767 else
18768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18770 as_echo_n='/usr/ucb/echo -n'
18771 else
18772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18773 as_echo_n_body='eval
18774 arg=$1;
18775 case $arg in
18776 *"$as_nl"*)
18777 expr "X$arg" : "X\\(.*\\)$as_nl";
18778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18779 esac;
18780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18781 '
18782 export as_echo_n_body
18783 as_echo_n='sh -c $as_echo_n_body as_echo'
18784 fi
18785 export as_echo_body
18786 as_echo='sh -c $as_echo_body as_echo'
18787 fi
18788
18789 # The user is always right.
18790 if test "${PATH_SEPARATOR+set}" != set; then
18791 PATH_SEPARATOR=:
18792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18794 PATH_SEPARATOR=';'
18795 }
18796 fi
18797
18798 # Support unset when possible.
18799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18800 as_unset=unset
18801 else
18802 as_unset=false
18803 fi
18804
18805
18806 # IFS
18807 # We need space, tab and new line, in precisely that order. Quoting is
18808 # there to prevent editors from complaining about space-tab.
18809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18810 # splitting by setting IFS to empty value.)
18811 IFS=" "" $as_nl"
18812
18813 # Find who we are. Look in the path if we contain no directory separator.
18814 case $0 in
18815 *[\\/]* ) as_myself=$0 ;;
18816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18817 for as_dir in $PATH
18818 do
18819 IFS=$as_save_IFS
18820 test -z "$as_dir" && as_dir=.
18821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18822 done
18823 IFS=$as_save_IFS
18824
18825 ;;
18826 esac
18827 # We did not find ourselves, most probably we were run as `sh COMMAND'
18828 # in which case we are not to be found in the path.
18829 if test "x$as_myself" = x; then
18830 as_myself=$0
18831 fi
18832 if test ! -f "$as_myself"; then
18833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18834 { (exit 1); exit 1; }
18835 fi
18836
18837 # Work around bugs in pre-3.0 UWIN ksh.
18838 for as_var in ENV MAIL MAILPATH
18839 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18840 done
18841 PS1='$ '
18842 PS2='> '
18843 PS4='+ '
18844
18845 # NLS nuisances.
18846 LC_ALL=C
18847 export LC_ALL
18848 LANGUAGE=C
18849 export LANGUAGE
18850
18851 # Required to use basename.
18852 if expr a : '\(a\)' >/dev/null 2>&1 &&
18853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18854 as_expr=expr
18855 else
18856 as_expr=false
18857 fi
18858
18859 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18860 as_basename=basename
18861 else
18862 as_basename=false
18863 fi
18864
18865
18866 # Name of the executable.
18867 as_me=`$as_basename -- "$0" ||
18868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18869 X"$0" : 'X\(//\)$' \| \
18870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18871 $as_echo X/"$0" |
18872 sed '/^.*\/\([^/][^/]*\)\/*$/{
18873 s//\1/
18874 q
18875 }
18876 /^X\/\(\/\/\)$/{
18877 s//\1/
18878 q
18879 }
18880 /^X\/\(\/\).*/{
18881 s//\1/
18882 q
18883 }
18884 s/.*/./; q'`
18885
18886 # CDPATH.
18887 $as_unset CDPATH
18888
18889
18890
18891 as_lineno_1=$LINENO
18892 as_lineno_2=$LINENO
18893 test "x$as_lineno_1" != "x$as_lineno_2" &&
18894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18895
18896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18897 # uniformly replaced by the line number. The first 'sed' inserts a
18898 # line-number line after each line using $LINENO; the second 'sed'
18899 # does the real work. The second script uses 'N' to pair each
18900 # line-number line with the line containing $LINENO, and appends
18901 # trailing '-' during substitution so that $LINENO is not a special
18902 # case at line end.
18903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18904 # scripts with optimization help from Paolo Bonzini. Blame Lee
18905 # E. McMahon (1931-1989) for sed's syntax. :-)
18906 sed -n '
18907 p
18908 /[$]LINENO/=
18909 ' <$as_myself |
18910 sed '
18911 s/[$]LINENO.*/&-/
18912 t lineno
18913 b
18914 :lineno
18915 N
18916 :loop
18917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18918 t loop
18919 s/-\n.*//
18920 ' >$as_me.lineno &&
18921 chmod +x "$as_me.lineno" ||
18922 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18923 { (exit 1); exit 1; }; }
18924
18925 # Don't try to exec as it changes $[0], causing all sort of problems
18926 # (the dirname of $[0] is not the place where we might find the
18927 # original and so on. Autoconf is especially sensitive to this).
18928 . "./$as_me.lineno"
18929 # Exit status is that of the last command.
18930 exit
18931 }
18932
18933
18934 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18935 as_dirname=dirname
18936 else
18937 as_dirname=false
18938 fi
18939
18940 ECHO_C= ECHO_N= ECHO_T=
18941 case `echo -n x` in
18942 -n*)
18943 case `echo 'x\c'` in
18944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18945 *) ECHO_C='\c';;
18946 esac;;
18947 *)
18948 ECHO_N='-n';;
18949 esac
18950 if expr a : '\(a\)' >/dev/null 2>&1 &&
18951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18952 as_expr=expr
18953 else
18954 as_expr=false
18955 fi
18956
18957 rm -f conf$$ conf$$.exe conf$$.file
18958 if test -d conf$$.dir; then
18959 rm -f conf$$.dir/conf$$.file
18960 else
18961 rm -f conf$$.dir
18962 mkdir conf$$.dir 2>/dev/null
18963 fi
18964 if (echo >conf$$.file) 2>/dev/null; then
18965 if ln -s conf$$.file conf$$ 2>/dev/null; then
18966 as_ln_s='ln -s'
18967 # ... but there are two gotchas:
18968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18970 # In both cases, we have to default to `cp -p'.
18971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18972 as_ln_s='cp -p'
18973 elif ln conf$$.file conf$$ 2>/dev/null; then
18974 as_ln_s=ln
18975 else
18976 as_ln_s='cp -p'
18977 fi
18978 else
18979 as_ln_s='cp -p'
18980 fi
18981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18982 rmdir conf$$.dir 2>/dev/null
18983
18984 if mkdir -p . 2>/dev/null; then
18985 as_mkdir_p=:
18986 else
18987 test -d ./-p && rmdir ./-p
18988 as_mkdir_p=false
18989 fi
18990
18991 if test -x / >/dev/null 2>&1; then
18992 as_test_x='test -x'
18993 else
18994 if ls -dL / >/dev/null 2>&1; then
18995 as_ls_L_option=L
18996 else
18997 as_ls_L_option=
18998 fi
18999 as_test_x='
19000 eval sh -c '\''
19001 if test -d "$1"; then
19002 test -d "$1/.";
19003 else
19004 case $1 in
19005 -*)set "./$1";;
19006 esac;
19007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19008 ???[sx]*):;;*)false;;esac;fi
19009 '\'' sh
19010 '
19011 fi
19012 as_executable_p=$as_test_x
19013
19014 # Sed expression to map a string onto a valid CPP name.
19015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19016
19017 # Sed expression to map a string onto a valid variable name.
19018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19019
19020
19021 exec 6>&1
19022
19023 # Save the log message, to keep $[0] and so on meaningful, and to
19024 # report actual input values of CONFIG_FILES etc. instead of their
19025 # values after options handling.
19026 ac_log="
19027 This file was extended by spl $as_me 0.6.5.11, which was
19028 generated by GNU Autoconf 2.63. Invocation command line was
19029
19030 CONFIG_FILES = $CONFIG_FILES
19031 CONFIG_HEADERS = $CONFIG_HEADERS
19032 CONFIG_LINKS = $CONFIG_LINKS
19033 CONFIG_COMMANDS = $CONFIG_COMMANDS
19034 $ $0 $@
19035
19036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19037 "
19038
19039 _ACEOF
19040
19041 case $ac_config_files in *"
19042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19043 esac
19044
19045 case $ac_config_headers in *"
19046 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19047 esac
19048
19049
19050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19051 # Files that config.status was made for.
19052 config_files="$ac_config_files"
19053 config_headers="$ac_config_headers"
19054 config_commands="$ac_config_commands"
19055
19056 _ACEOF
19057
19058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19059 ac_cs_usage="\
19060 \`$as_me' instantiates files from templates according to the
19061 current configuration.
19062
19063 Usage: $0 [OPTION]... [FILE]...
19064
19065 -h, --help print this help, then exit
19066 -V, --version print version number and configuration settings, then exit
19067 -q, --quiet, --silent
19068 do not print progress messages
19069 -d, --debug don't remove temporary files
19070 --recheck update $as_me by reconfiguring in the same conditions
19071 --file=FILE[:TEMPLATE]
19072 instantiate the configuration file FILE
19073 --header=FILE[:TEMPLATE]
19074 instantiate the configuration header FILE
19075
19076 Configuration files:
19077 $config_files
19078
19079 Configuration headers:
19080 $config_headers
19081
19082 Configuration commands:
19083 $config_commands
19084
19085 Report bugs to <bug-autoconf@gnu.org>."
19086
19087 _ACEOF
19088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19089 ac_cs_version="\\
19090 spl config.status 0.6.5.11
19091 configured by $0, generated by GNU Autoconf 2.63,
19092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19093
19094 Copyright (C) 2008 Free Software Foundation, Inc.
19095 This config.status script is free software; the Free Software Foundation
19096 gives unlimited permission to copy, distribute and modify it."
19097
19098 ac_pwd='$ac_pwd'
19099 srcdir='$srcdir'
19100 INSTALL='$INSTALL'
19101 MKDIR_P='$MKDIR_P'
19102 AWK='$AWK'
19103 test -n "\$AWK" || AWK=awk
19104 _ACEOF
19105
19106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19107 # The default lists apply if the user does not specify any file.
19108 ac_need_defaults=:
19109 while test $# != 0
19110 do
19111 case $1 in
19112 --*=*)
19113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19115 ac_shift=:
19116 ;;
19117 *)
19118 ac_option=$1
19119 ac_optarg=$2
19120 ac_shift=shift
19121 ;;
19122 esac
19123
19124 case $ac_option in
19125 # Handling of the options.
19126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19127 ac_cs_recheck=: ;;
19128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19129 $as_echo "$ac_cs_version"; exit ;;
19130 --debug | --debu | --deb | --de | --d | -d )
19131 debug=: ;;
19132 --file | --fil | --fi | --f )
19133 $ac_shift
19134 case $ac_optarg in
19135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19136 esac
19137 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19138 ac_need_defaults=false;;
19139 --header | --heade | --head | --hea )
19140 $ac_shift
19141 case $ac_optarg in
19142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19143 esac
19144 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19145 ac_need_defaults=false;;
19146 --he | --h)
19147 # Conflict between --help and --header
19148 { $as_echo "$as_me: error: ambiguous option: $1
19149 Try \`$0 --help' for more information." >&2
19150 { (exit 1); exit 1; }; };;
19151 --help | --hel | -h )
19152 $as_echo "$ac_cs_usage"; exit ;;
19153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19155 ac_cs_silent=: ;;
19156
19157 # This is an error.
19158 -*) { $as_echo "$as_me: error: unrecognized option: $1
19159 Try \`$0 --help' for more information." >&2
19160 { (exit 1); exit 1; }; } ;;
19161
19162 *) ac_config_targets="$ac_config_targets $1"
19163 ac_need_defaults=false ;;
19164
19165 esac
19166 shift
19167 done
19168
19169 ac_configure_extra_args=
19170
19171 if $ac_cs_silent; then
19172 exec 6>/dev/null
19173 ac_configure_extra_args="$ac_configure_extra_args --silent"
19174 fi
19175
19176 _ACEOF
19177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19178 if \$ac_cs_recheck; then
19179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19180 shift
19181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19182 CONFIG_SHELL='$SHELL'
19183 export CONFIG_SHELL
19184 exec "\$@"
19185 fi
19186
19187 _ACEOF
19188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19189 exec 5>>config.log
19190 {
19191 echo
19192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19193 ## Running $as_me. ##
19194 _ASBOX
19195 $as_echo "$ac_log"
19196 } >&5
19197
19198 _ACEOF
19199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19200 #
19201 # INIT-COMMANDS
19202 #
19203 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19204
19205
19206 # The HP-UX ksh and POSIX shell print the target directory to stdout
19207 # if CDPATH is set.
19208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19209
19210 sed_quote_subst='$sed_quote_subst'
19211 double_quote_subst='$double_quote_subst'
19212 delay_variable_subst='$delay_variable_subst'
19213 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19214 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19215 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19216 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19217 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19218 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19219 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19220 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19221 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19222 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19223 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19224 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19225 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19226 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19227 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19228 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19229 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19230 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19231 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19232 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19233 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19234 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19235 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19236 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19237 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19238 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19239 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19240 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19241 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19242 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19243 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19244 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19245 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19246 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19247 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19248 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19249 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19250 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19251 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19252 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19253 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19254 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19255 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19257 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"`'
19258 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"`'
19259 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19260 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19261 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19262 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19263 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19264 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19265 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19266 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19267 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19268 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19269 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19270 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19271 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19272 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19273 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19274 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19275 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19276 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19277 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19278 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19279 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19280 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19281 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19282 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19283 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19284 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19285 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19286 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19287 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19288 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19289 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19290 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19291 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19292 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19293 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19294 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19295 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19296 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19297 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19298 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19299 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19300 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19301 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19302 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19303 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19304 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19305 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19306 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19307 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19308 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19309 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19310 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19311 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19312 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19313 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19314 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19315 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19316 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19317 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19318 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19319 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19320 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19321 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19322 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19323 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19324 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19325 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19326 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19327 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19328 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19329 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19330 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19331
19332 LTCC='$LTCC'
19333 LTCFLAGS='$LTCFLAGS'
19334 compiler='$compiler_DEFAULT'
19335
19336 # Quote evaled strings.
19337 for var in SED \
19338 GREP \
19339 EGREP \
19340 FGREP \
19341 LD \
19342 NM \
19343 LN_S \
19344 lt_SP2NL \
19345 lt_NL2SP \
19346 reload_flag \
19347 OBJDUMP \
19348 deplibs_check_method \
19349 file_magic_cmd \
19350 AR \
19351 AR_FLAGS \
19352 STRIP \
19353 RANLIB \
19354 CC \
19355 CFLAGS \
19356 compiler \
19357 lt_cv_sys_global_symbol_pipe \
19358 lt_cv_sys_global_symbol_to_cdecl \
19359 lt_cv_sys_global_symbol_to_c_name_address \
19360 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19361 SHELL \
19362 ECHO \
19363 lt_prog_compiler_no_builtin_flag \
19364 lt_prog_compiler_wl \
19365 lt_prog_compiler_pic \
19366 lt_prog_compiler_static \
19367 lt_cv_prog_compiler_c_o \
19368 need_locks \
19369 DSYMUTIL \
19370 NMEDIT \
19371 LIPO \
19372 OTOOL \
19373 OTOOL64 \
19374 shrext_cmds \
19375 export_dynamic_flag_spec \
19376 whole_archive_flag_spec \
19377 compiler_needs_object \
19378 with_gnu_ld \
19379 allow_undefined_flag \
19380 no_undefined_flag \
19381 hardcode_libdir_flag_spec \
19382 hardcode_libdir_flag_spec_ld \
19383 hardcode_libdir_separator \
19384 fix_srcfile_path \
19385 exclude_expsyms \
19386 include_expsyms \
19387 file_list_spec \
19388 variables_saved_for_relink \
19389 libname_spec \
19390 library_names_spec \
19391 soname_spec \
19392 finish_eval \
19393 old_striplib \
19394 striplib; do
19395 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19396 *[\\\\\\\`\\"\\\$]*)
19397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19398 ;;
19399 *)
19400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19401 ;;
19402 esac
19403 done
19404
19405 # Double-quote double-evaled strings.
19406 for var in reload_cmds \
19407 old_postinstall_cmds \
19408 old_postuninstall_cmds \
19409 old_archive_cmds \
19410 extract_expsyms_cmds \
19411 old_archive_from_new_cmds \
19412 old_archive_from_expsyms_cmds \
19413 archive_cmds \
19414 archive_expsym_cmds \
19415 module_cmds \
19416 module_expsym_cmds \
19417 export_symbols_cmds \
19418 prelink_cmds \
19419 postinstall_cmds \
19420 postuninstall_cmds \
19421 finish_cmds \
19422 sys_lib_search_path_spec \
19423 sys_lib_dlsearch_path_spec; do
19424 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19425 *[\\\\\\\`\\"\\\$]*)
19426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19427 ;;
19428 *)
19429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19430 ;;
19431 esac
19432 done
19433
19434 # Fix-up fallback echo if it was mangled by the above quoting rules.
19435 case \$lt_ECHO in
19436 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19437 ;;
19438 esac
19439
19440 ac_aux_dir='$ac_aux_dir'
19441 xsi_shell='$xsi_shell'
19442 lt_shell_append='$lt_shell_append'
19443
19444 # See if we are running on zsh, and set the options which allow our
19445 # commands through without removal of \ escapes INIT.
19446 if test -n "\${ZSH_VERSION+set}" ; then
19447 setopt NO_GLOB_SUBST
19448 fi
19449
19450
19451 PACKAGE='$PACKAGE'
19452 VERSION='$VERSION'
19453 TIMESTAMP='$TIMESTAMP'
19454 RM='$RM'
19455 ofile='$ofile'
19456
19457
19458
19459
19460 _ACEOF
19461
19462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19463
19464 # Handling of arguments.
19465 for ac_config_target in $ac_config_targets
19466 do
19467 case $ac_config_target in
19468 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19469 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19470 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19472 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19473 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
19474 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
19475 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19476 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19477 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19478 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19479 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19480 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19481 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
19482 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
19483 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
19484 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
19485 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
19486 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
19487 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
19488 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
19489 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
19490 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
19491 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19492 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
19493 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
19494 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
19495 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
19496 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
19497 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
19498 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
19499 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
19500 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
19501 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
19502
19503 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19504 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19505 { (exit 1); exit 1; }; };;
19506 esac
19507 done
19508
19509
19510 # If the user did not use the arguments to specify the items to instantiate,
19511 # then the envvar interface is used. Set only those that are not.
19512 # We use the long form for the default assignment because of an extremely
19513 # bizarre bug on SunOS 4.1.3.
19514 if $ac_need_defaults; then
19515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19518 fi
19519
19520 # Have a temporary directory for convenience. Make it in the build tree
19521 # simply because there is no reason against having it here, and in addition,
19522 # creating and moving files from /tmp can sometimes cause problems.
19523 # Hook for its removal unless debugging.
19524 # Note that there is a small window in which the directory will not be cleaned:
19525 # after its creation but before its name has been assigned to `$tmp'.
19526 $debug ||
19527 {
19528 tmp=
19529 trap 'exit_status=$?
19530 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19531 ' 0
19532 trap '{ (exit 1); exit 1; }' 1 2 13 15
19533 }
19534 # Create a (secure) tmp directory for tmp files.
19535
19536 {
19537 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19538 test -n "$tmp" && test -d "$tmp"
19539 } ||
19540 {
19541 tmp=./conf$$-$RANDOM
19542 (umask 077 && mkdir "$tmp")
19543 } ||
19544 {
19545 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19546 { (exit 1); exit 1; }
19547 }
19548
19549 # Set up the scripts for CONFIG_FILES section.
19550 # No need to generate them if there are no CONFIG_FILES.
19551 # This happens for instance with `./config.status config.h'.
19552 if test -n "$CONFIG_FILES"; then
19553
19554
19555 ac_cr=' '
19556 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19557 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19558 ac_cs_awk_cr='\\r'
19559 else
19560 ac_cs_awk_cr=$ac_cr
19561 fi
19562
19563 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19564 _ACEOF
19565
19566
19567 {
19568 echo "cat >conf$$subs.awk <<_ACEOF" &&
19569 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19570 echo "_ACEOF"
19571 } >conf$$subs.sh ||
19572 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19573 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19574 { (exit 1); exit 1; }; }
19575 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19576 ac_delim='%!_!# '
19577 for ac_last_try in false false false false false :; do
19578 . ./conf$$subs.sh ||
19579 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19580 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19581 { (exit 1); exit 1; }; }
19582
19583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19584 if test $ac_delim_n = $ac_delim_num; then
19585 break
19586 elif $ac_last_try; then
19587 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19588 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19589 { (exit 1); exit 1; }; }
19590 else
19591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19592 fi
19593 done
19594 rm -f conf$$subs.sh
19595
19596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19597 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19598 _ACEOF
19599 sed -n '
19600 h
19601 s/^/S["/; s/!.*/"]=/
19602 p
19603 g
19604 s/^[^!]*!//
19605 :repl
19606 t repl
19607 s/'"$ac_delim"'$//
19608 t delim
19609 :nl
19610 h
19611 s/\(.\{148\}\).*/\1/
19612 t more1
19613 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19614 p
19615 n
19616 b repl
19617 :more1
19618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19619 p
19620 g
19621 s/.\{148\}//
19622 t nl
19623 :delim
19624 h
19625 s/\(.\{148\}\).*/\1/
19626 t more2
19627 s/["\\]/\\&/g; s/^/"/; s/$/"/
19628 p
19629 b
19630 :more2
19631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19632 p
19633 g
19634 s/.\{148\}//
19635 t delim
19636 ' <conf$$subs.awk | sed '
19637 /^[^""]/{
19638 N
19639 s/\n//
19640 }
19641 ' >>$CONFIG_STATUS || ac_write_fail=1
19642 rm -f conf$$subs.awk
19643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19644 _ACAWK
19645 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19646 for (key in S) S_is_set[key] = 1
19647 FS = "\a"
19648
19649 }
19650 {
19651 line = $ 0
19652 nfields = split(line, field, "@")
19653 substed = 0
19654 len = length(field[1])
19655 for (i = 2; i < nfields; i++) {
19656 key = field[i]
19657 keylen = length(key)
19658 if (S_is_set[key]) {
19659 value = S[key]
19660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19661 len += length(value) + length(field[++i])
19662 substed = 1
19663 } else
19664 len += 1 + keylen
19665 }
19666
19667 print line
19668 }
19669
19670 _ACAWK
19671 _ACEOF
19672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19675 else
19676 cat
19677 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19678 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19679 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19680 { (exit 1); exit 1; }; }
19681 _ACEOF
19682
19683 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19684 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19685 # trailing colons and then remove the whole line if VPATH becomes empty
19686 # (actually we leave an empty line to preserve line numbers).
19687 if test "x$srcdir" = x.; then
19688 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19689 s/:*\$(srcdir):*/:/
19690 s/:*\${srcdir}:*/:/
19691 s/:*@srcdir@:*/:/
19692 s/^\([^=]*=[ ]*\):*/\1/
19693 s/:*$//
19694 s/^[^=]*=[ ]*$//
19695 }'
19696 fi
19697
19698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19699 fi # test -n "$CONFIG_FILES"
19700
19701 # Set up the scripts for CONFIG_HEADERS section.
19702 # No need to generate them if there are no CONFIG_HEADERS.
19703 # This happens for instance with `./config.status Makefile'.
19704 if test -n "$CONFIG_HEADERS"; then
19705 cat >"$tmp/defines.awk" <<\_ACAWK ||
19706 BEGIN {
19707 _ACEOF
19708
19709 # Transform confdefs.h into an awk script `defines.awk', embedded as
19710 # here-document in config.status, that substitutes the proper values into
19711 # config.h.in to produce config.h.
19712
19713 # Create a delimiter string that does not exist in confdefs.h, to ease
19714 # handling of long lines.
19715 ac_delim='%!_!# '
19716 for ac_last_try in false false :; do
19717 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19718 if test -z "$ac_t"; then
19719 break
19720 elif $ac_last_try; then
19721 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19722 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19723 { (exit 1); exit 1; }; }
19724 else
19725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19726 fi
19727 done
19728
19729 # For the awk script, D is an array of macro values keyed by name,
19730 # likewise P contains macro parameters if any. Preserve backslash
19731 # newline sequences.
19732
19733 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19734 sed -n '
19735 s/.\{148\}/&'"$ac_delim"'/g
19736 t rset
19737 :rset
19738 s/^[ ]*#[ ]*define[ ][ ]*/ /
19739 t def
19740 d
19741 :def
19742 s/\\$//
19743 t bsnl
19744 s/["\\]/\\&/g
19745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19746 D["\1"]=" \3"/p
19747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19748 d
19749 :bsnl
19750 s/["\\]/\\&/g
19751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19752 D["\1"]=" \3\\\\\\n"\\/p
19753 t cont
19754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19755 t cont
19756 d
19757 :cont
19758 n
19759 s/.\{148\}/&'"$ac_delim"'/g
19760 t clear
19761 :clear
19762 s/\\$//
19763 t bsnlc
19764 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19765 d
19766 :bsnlc
19767 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19768 b cont
19769 ' <confdefs.h | sed '
19770 s/'"$ac_delim"'/"\\\
19771 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19772
19773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19774 for (key in D) D_is_set[key] = 1
19775 FS = "\a"
19776 }
19777 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19778 line = \$ 0
19779 split(line, arg, " ")
19780 if (arg[1] == "#") {
19781 defundef = arg[2]
19782 mac1 = arg[3]
19783 } else {
19784 defundef = substr(arg[1], 2)
19785 mac1 = arg[2]
19786 }
19787 split(mac1, mac2, "(") #)
19788 macro = mac2[1]
19789 prefix = substr(line, 1, index(line, defundef) - 1)
19790 if (D_is_set[macro]) {
19791 # Preserve the white space surrounding the "#".
19792 print prefix "define", macro P[macro] D[macro]
19793 next
19794 } else {
19795 # Replace #undef with comments. This is necessary, for example,
19796 # in the case of _POSIX_SOURCE, which is predefined and required
19797 # on some systems where configure will not decide to define it.
19798 if (defundef == "undef") {
19799 print "/*", prefix defundef, macro, "*/"
19800 next
19801 }
19802 }
19803 }
19804 { print }
19805 _ACAWK
19806 _ACEOF
19807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19808 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19809 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19810 { (exit 1); exit 1; }; }
19811 fi # test -n "$CONFIG_HEADERS"
19812
19813
19814 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19815 shift
19816 for ac_tag
19817 do
19818 case $ac_tag in
19819 :[FHLC]) ac_mode=$ac_tag; continue;;
19820 esac
19821 case $ac_mode$ac_tag in
19822 :[FHL]*:*);;
19823 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19824 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19825 { (exit 1); exit 1; }; };;
19826 :[FH]-) ac_tag=-:-;;
19827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19828 esac
19829 ac_save_IFS=$IFS
19830 IFS=:
19831 set x $ac_tag
19832 IFS=$ac_save_IFS
19833 shift
19834 ac_file=$1
19835 shift
19836
19837 case $ac_mode in
19838 :L) ac_source=$1;;
19839 :[FH])
19840 ac_file_inputs=
19841 for ac_f
19842 do
19843 case $ac_f in
19844 -) ac_f="$tmp/stdin";;
19845 *) # Look for the file first in the build tree, then in the source tree
19846 # (if the path is not absolute). The absolute path cannot be DOS-style,
19847 # because $ac_f cannot contain `:'.
19848 test -f "$ac_f" ||
19849 case $ac_f in
19850 [\\/$]*) false;;
19851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19852 esac ||
19853 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19854 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19855 { (exit 1); exit 1; }; };;
19856 esac
19857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19858 ac_file_inputs="$ac_file_inputs '$ac_f'"
19859 done
19860
19861 # Let's still pretend it is `configure' which instantiates (i.e., don't
19862 # use $as_me), people would be surprised to read:
19863 # /* config.h. Generated by config.status. */
19864 configure_input='Generated from '`
19865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19866 `' by configure.'
19867 if test x"$ac_file" != x-; then
19868 configure_input="$ac_file. $configure_input"
19869 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19870 $as_echo "$as_me: creating $ac_file" >&6;}
19871 fi
19872 # Neutralize special characters interpreted by sed in replacement strings.
19873 case $configure_input in #(
19874 *\&* | *\|* | *\\* )
19875 ac_sed_conf_input=`$as_echo "$configure_input" |
19876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19877 *) ac_sed_conf_input=$configure_input;;
19878 esac
19879
19880 case $ac_tag in
19881 *:-:* | *:-) cat >"$tmp/stdin" \
19882 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19883 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19884 { (exit 1); exit 1; }; } ;;
19885 esac
19886 ;;
19887 esac
19888
19889 ac_dir=`$as_dirname -- "$ac_file" ||
19890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19891 X"$ac_file" : 'X\(//\)[^/]' \| \
19892 X"$ac_file" : 'X\(//\)$' \| \
19893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19894 $as_echo X"$ac_file" |
19895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19896 s//\1/
19897 q
19898 }
19899 /^X\(\/\/\)[^/].*/{
19900 s//\1/
19901 q
19902 }
19903 /^X\(\/\/\)$/{
19904 s//\1/
19905 q
19906 }
19907 /^X\(\/\).*/{
19908 s//\1/
19909 q
19910 }
19911 s/.*/./; q'`
19912 { as_dir="$ac_dir"
19913 case $as_dir in #(
19914 -*) as_dir=./$as_dir;;
19915 esac
19916 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19917 as_dirs=
19918 while :; do
19919 case $as_dir in #(
19920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19921 *) as_qdir=$as_dir;;
19922 esac
19923 as_dirs="'$as_qdir' $as_dirs"
19924 as_dir=`$as_dirname -- "$as_dir" ||
19925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19926 X"$as_dir" : 'X\(//\)[^/]' \| \
19927 X"$as_dir" : 'X\(//\)$' \| \
19928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19929 $as_echo X"$as_dir" |
19930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19931 s//\1/
19932 q
19933 }
19934 /^X\(\/\/\)[^/].*/{
19935 s//\1/
19936 q
19937 }
19938 /^X\(\/\/\)$/{
19939 s//\1/
19940 q
19941 }
19942 /^X\(\/\).*/{
19943 s//\1/
19944 q
19945 }
19946 s/.*/./; q'`
19947 test -d "$as_dir" && break
19948 done
19949 test -z "$as_dirs" || eval "mkdir $as_dirs"
19950 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19951 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19952 { (exit 1); exit 1; }; }; }
19953 ac_builddir=.
19954
19955 case "$ac_dir" in
19956 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19957 *)
19958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19959 # A ".." for each directory in $ac_dir_suffix.
19960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19961 case $ac_top_builddir_sub in
19962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19964 esac ;;
19965 esac
19966 ac_abs_top_builddir=$ac_pwd
19967 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19968 # for backward compatibility:
19969 ac_top_builddir=$ac_top_build_prefix
19970
19971 case $srcdir in
19972 .) # We are building in place.
19973 ac_srcdir=.
19974 ac_top_srcdir=$ac_top_builddir_sub
19975 ac_abs_top_srcdir=$ac_pwd ;;
19976 [\\/]* | ?:[\\/]* ) # Absolute name.
19977 ac_srcdir=$srcdir$ac_dir_suffix;
19978 ac_top_srcdir=$srcdir
19979 ac_abs_top_srcdir=$srcdir ;;
19980 *) # Relative name.
19981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19982 ac_top_srcdir=$ac_top_build_prefix$srcdir
19983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19984 esac
19985 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19986
19987
19988 case $ac_mode in
19989 :F)
19990 #
19991 # CONFIG_FILE
19992 #
19993
19994 case $INSTALL in
19995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19997 esac
19998 ac_MKDIR_P=$MKDIR_P
19999 case $MKDIR_P in
20000 [\\/$]* | ?:[\\/]* ) ;;
20001 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20002 esac
20003 _ACEOF
20004
20005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20006 # If the template does not know about datarootdir, expand it.
20007 # FIXME: This hack should be removed a few years after 2.60.
20008 ac_datarootdir_hack=; ac_datarootdir_seen=
20009
20010 ac_sed_dataroot='
20011 /datarootdir/ {
20012 p
20013 q
20014 }
20015 /@datadir@/p
20016 /@docdir@/p
20017 /@infodir@/p
20018 /@localedir@/p
20019 /@mandir@/p
20020 '
20021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20022 *datarootdir*) ac_datarootdir_seen=yes;;
20023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20024 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20025 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20026 _ACEOF
20027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028 ac_datarootdir_hack='
20029 s&@datadir@&$datadir&g
20030 s&@docdir@&$docdir&g
20031 s&@infodir@&$infodir&g
20032 s&@localedir@&$localedir&g
20033 s&@mandir@&$mandir&g
20034 s&\\\${datarootdir}&$datarootdir&g' ;;
20035 esac
20036 _ACEOF
20037
20038 # Neutralize VPATH when `$srcdir' = `.'.
20039 # Shell code in configure.ac might set extrasub.
20040 # FIXME: do we really want to maintain this feature?
20041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20042 ac_sed_extra="$ac_vpsub
20043 $extrasub
20044 _ACEOF
20045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20046 :t
20047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20048 s|@configure_input@|$ac_sed_conf_input|;t t
20049 s&@top_builddir@&$ac_top_builddir_sub&;t t
20050 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20051 s&@srcdir@&$ac_srcdir&;t t
20052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20053 s&@top_srcdir@&$ac_top_srcdir&;t t
20054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20055 s&@builddir@&$ac_builddir&;t t
20056 s&@abs_builddir@&$ac_abs_builddir&;t t
20057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20058 s&@INSTALL@&$ac_INSTALL&;t t
20059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20060 $ac_datarootdir_hack
20061 "
20062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20064 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20065 { (exit 1); exit 1; }; }
20066
20067 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20068 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20070 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20071 which seems to be undefined. Please make sure it is defined." >&5
20072 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20073 which seems to be undefined. Please make sure it is defined." >&2;}
20074
20075 rm -f "$tmp/stdin"
20076 case $ac_file in
20077 -) cat "$tmp/out" && rm -f "$tmp/out";;
20078 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20079 esac \
20080 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20081 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20082 { (exit 1); exit 1; }; }
20083 ;;
20084 :H)
20085 #
20086 # CONFIG_HEADER
20087 #
20088 if test x"$ac_file" != x-; then
20089 {
20090 $as_echo "/* $configure_input */" \
20091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20092 } >"$tmp/config.h" \
20093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20095 { (exit 1); exit 1; }; }
20096 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20097 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20098 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20099 else
20100 rm -f "$ac_file"
20101 mv "$tmp/config.h" "$ac_file" \
20102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20103 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20104 { (exit 1); exit 1; }; }
20105 fi
20106 else
20107 $as_echo "/* $configure_input */" \
20108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20109 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20110 $as_echo "$as_me: error: could not create -" >&2;}
20111 { (exit 1); exit 1; }; }
20112 fi
20113 # Compute "$ac_file"'s index in $config_headers.
20114 _am_arg="$ac_file"
20115 _am_stamp_count=1
20116 for _am_header in $config_headers :; do
20117 case $_am_header in
20118 $_am_arg | $_am_arg:* )
20119 break ;;
20120 * )
20121 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20122 esac
20123 done
20124 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20125 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20126 X"$_am_arg" : 'X\(//\)[^/]' \| \
20127 X"$_am_arg" : 'X\(//\)$' \| \
20128 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20129 $as_echo X"$_am_arg" |
20130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20131 s//\1/
20132 q
20133 }
20134 /^X\(\/\/\)[^/].*/{
20135 s//\1/
20136 q
20137 }
20138 /^X\(\/\/\)$/{
20139 s//\1/
20140 q
20141 }
20142 /^X\(\/\).*/{
20143 s//\1/
20144 q
20145 }
20146 s/.*/./; q'`/stamp-h$_am_stamp_count
20147 ;;
20148
20149 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20150 $as_echo "$as_me: executing $ac_file commands" >&6;}
20151 ;;
20152 esac
20153
20154
20155 case $ac_file$ac_mode in
20156 "spl_config.h":H)
20157 (mv spl_config.h spl_config.h.tmp &&
20158 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
20159 rm spl_config.h.tmp) || exit 1 ;;
20160 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20161 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20162 # are listed without --file. Let's play safe and only enable the eval
20163 # if we detect the quoting.
20164 case $CONFIG_FILES in
20165 *\'*) eval set x "$CONFIG_FILES" ;;
20166 *) set x $CONFIG_FILES ;;
20167 esac
20168 shift
20169 for mf
20170 do
20171 # Strip MF so we end up with the name of the file.
20172 mf=`echo "$mf" | sed -e 's/:.*$//'`
20173 # Check whether this is an Automake generated Makefile or not.
20174 # We used to match only the files named `Makefile.in', but
20175 # some people rename them; so instead we look at the file content.
20176 # Grep'ing the first line is not enough: some people post-process
20177 # each Makefile.in and add a new line on top of each file to say so.
20178 # Grep'ing the whole file is not good either: AIX grep has a line
20179 # limit of 2048, but all sed's we know have understand at least 4000.
20180 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20181 dirpart=`$as_dirname -- "$mf" ||
20182 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20183 X"$mf" : 'X\(//\)[^/]' \| \
20184 X"$mf" : 'X\(//\)$' \| \
20185 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20186 $as_echo X"$mf" |
20187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20188 s//\1/
20189 q
20190 }
20191 /^X\(\/\/\)[^/].*/{
20192 s//\1/
20193 q
20194 }
20195 /^X\(\/\/\)$/{
20196 s//\1/
20197 q
20198 }
20199 /^X\(\/\).*/{
20200 s//\1/
20201 q
20202 }
20203 s/.*/./; q'`
20204 else
20205 continue
20206 fi
20207 # Extract the definition of DEPDIR, am__include, and am__quote
20208 # from the Makefile without running `make'.
20209 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20210 test -z "$DEPDIR" && continue
20211 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20212 test -z "am__include" && continue
20213 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20214 # When using ansi2knr, U may be empty or an underscore; expand it
20215 U=`sed -n 's/^U = //p' < "$mf"`
20216 # Find all dependency output files, they are included files with
20217 # $(DEPDIR) in their names. We invoke sed twice because it is the
20218 # simplest approach to changing $(DEPDIR) to its actual value in the
20219 # expansion.
20220 for file in `sed -n "
20221 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20222 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20223 # Make sure the directory exists.
20224 test -f "$dirpart/$file" && continue
20225 fdir=`$as_dirname -- "$file" ||
20226 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20227 X"$file" : 'X\(//\)[^/]' \| \
20228 X"$file" : 'X\(//\)$' \| \
20229 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20230 $as_echo X"$file" |
20231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20232 s//\1/
20233 q
20234 }
20235 /^X\(\/\/\)[^/].*/{
20236 s//\1/
20237 q
20238 }
20239 /^X\(\/\/\)$/{
20240 s//\1/
20241 q
20242 }
20243 /^X\(\/\).*/{
20244 s//\1/
20245 q
20246 }
20247 s/.*/./; q'`
20248 { as_dir=$dirpart/$fdir
20249 case $as_dir in #(
20250 -*) as_dir=./$as_dir;;
20251 esac
20252 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20253 as_dirs=
20254 while :; do
20255 case $as_dir in #(
20256 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20257 *) as_qdir=$as_dir;;
20258 esac
20259 as_dirs="'$as_qdir' $as_dirs"
20260 as_dir=`$as_dirname -- "$as_dir" ||
20261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20262 X"$as_dir" : 'X\(//\)[^/]' \| \
20263 X"$as_dir" : 'X\(//\)$' \| \
20264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20265 $as_echo X"$as_dir" |
20266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20267 s//\1/
20268 q
20269 }
20270 /^X\(\/\/\)[^/].*/{
20271 s//\1/
20272 q
20273 }
20274 /^X\(\/\/\)$/{
20275 s//\1/
20276 q
20277 }
20278 /^X\(\/\).*/{
20279 s//\1/
20280 q
20281 }
20282 s/.*/./; q'`
20283 test -d "$as_dir" && break
20284 done
20285 test -z "$as_dirs" || eval "mkdir $as_dirs"
20286 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20287 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20288 { (exit 1); exit 1; }; }; }
20289 # echo "creating $dirpart/$file"
20290 echo '# dummy' > "$dirpart/$file"
20291 done
20292 done
20293 }
20294 ;;
20295 "libtool":C)
20296
20297 # See if we are running on zsh, and set the options which allow our
20298 # commands through without removal of \ escapes.
20299 if test -n "${ZSH_VERSION+set}" ; then
20300 setopt NO_GLOB_SUBST
20301 fi
20302
20303 cfgfile="${ofile}T"
20304 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20305 $RM "$cfgfile"
20306
20307 cat <<_LT_EOF >> "$cfgfile"
20308 #! $SHELL
20309
20310 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20311 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20313 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20314 #
20315 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20316 # 2006, 2007, 2008 Free Software Foundation, Inc.
20317 # Written by Gordon Matzigkeit, 1996
20318 #
20319 # This file is part of GNU Libtool.
20320 #
20321 # GNU Libtool is free software; you can redistribute it and/or
20322 # modify it under the terms of the GNU General Public License as
20323 # published by the Free Software Foundation; either version 2 of
20324 # the License, or (at your option) any later version.
20325 #
20326 # As a special exception to the GNU General Public License,
20327 # if you distribute this file as part of a program or library that
20328 # is built using GNU Libtool, you may include this file under the
20329 # same distribution terms that you use for the rest of that program.
20330 #
20331 # GNU Libtool is distributed in the hope that it will be useful,
20332 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20334 # GNU General Public License for more details.
20335 #
20336 # You should have received a copy of the GNU General Public License
20337 # along with GNU Libtool; see the file COPYING. If not, a copy
20338 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20339 # obtained by writing to the Free Software Foundation, Inc.,
20340 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20341
20342
20343 # The names of the tagged configurations supported by this script.
20344 available_tags=""
20345
20346 # ### BEGIN LIBTOOL CONFIG
20347
20348 # Which release of libtool.m4 was used?
20349 macro_version=$macro_version
20350 macro_revision=$macro_revision
20351
20352 # Whether or not to build shared libraries.
20353 build_libtool_libs=$enable_shared
20354
20355 # Whether or not to build static libraries.
20356 build_old_libs=$enable_static
20357
20358 # What type of objects to build.
20359 pic_mode=$pic_mode
20360
20361 # Whether or not to optimize for fast installation.
20362 fast_install=$enable_fast_install
20363
20364 # The host system.
20365 host_alias=$host_alias
20366 host=$host
20367 host_os=$host_os
20368
20369 # The build system.
20370 build_alias=$build_alias
20371 build=$build
20372 build_os=$build_os
20373
20374 # A sed program that does not truncate output.
20375 SED=$lt_SED
20376
20377 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20378 Xsed="\$SED -e 1s/^X//"
20379
20380 # A grep program that handles long lines.
20381 GREP=$lt_GREP
20382
20383 # An ERE matcher.
20384 EGREP=$lt_EGREP
20385
20386 # A literal string matcher.
20387 FGREP=$lt_FGREP
20388
20389 # A BSD- or MS-compatible name lister.
20390 NM=$lt_NM
20391
20392 # Whether we need soft or hard links.
20393 LN_S=$lt_LN_S
20394
20395 # What is the maximum length of a command?
20396 max_cmd_len=$max_cmd_len
20397
20398 # Object file suffix (normally "o").
20399 objext=$ac_objext
20400
20401 # Executable file suffix (normally "").
20402 exeext=$exeext
20403
20404 # whether the shell understands "unset".
20405 lt_unset=$lt_unset
20406
20407 # turn spaces into newlines.
20408 SP2NL=$lt_lt_SP2NL
20409
20410 # turn newlines into spaces.
20411 NL2SP=$lt_lt_NL2SP
20412
20413 # How to create reloadable object files.
20414 reload_flag=$lt_reload_flag
20415 reload_cmds=$lt_reload_cmds
20416
20417 # An object symbol dumper.
20418 OBJDUMP=$lt_OBJDUMP
20419
20420 # Method to check whether dependent libraries are shared objects.
20421 deplibs_check_method=$lt_deplibs_check_method
20422
20423 # Command to use when deplibs_check_method == "file_magic".
20424 file_magic_cmd=$lt_file_magic_cmd
20425
20426 # The archiver.
20427 AR=$lt_AR
20428 AR_FLAGS=$lt_AR_FLAGS
20429
20430 # A symbol stripping program.
20431 STRIP=$lt_STRIP
20432
20433 # Commands used to install an old-style archive.
20434 RANLIB=$lt_RANLIB
20435 old_postinstall_cmds=$lt_old_postinstall_cmds
20436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20437
20438 # A C compiler.
20439 LTCC=$lt_CC
20440
20441 # LTCC compiler flags.
20442 LTCFLAGS=$lt_CFLAGS
20443
20444 # Take the output of nm and produce a listing of raw symbols and C names.
20445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20446
20447 # Transform the output of nm in a proper C declaration.
20448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20449
20450 # Transform the output of nm in a C name address pair.
20451 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20452
20453 # Transform the output of nm in a C name address pair when lib prefix is needed.
20454 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20455
20456 # The name of the directory that contains temporary libtool files.
20457 objdir=$objdir
20458
20459 # Shell to use when invoking shell scripts.
20460 SHELL=$lt_SHELL
20461
20462 # An echo program that does not interpret backslashes.
20463 ECHO=$lt_ECHO
20464
20465 # Used to examine libraries when file_magic_cmd begins with "file".
20466 MAGIC_CMD=$MAGIC_CMD
20467
20468 # Must we lock files when doing compilation?
20469 need_locks=$lt_need_locks
20470
20471 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20472 DSYMUTIL=$lt_DSYMUTIL
20473
20474 # Tool to change global to local symbols on Mac OS X.
20475 NMEDIT=$lt_NMEDIT
20476
20477 # Tool to manipulate fat objects and archives on Mac OS X.
20478 LIPO=$lt_LIPO
20479
20480 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20481 OTOOL=$lt_OTOOL
20482
20483 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20484 OTOOL64=$lt_OTOOL64
20485
20486 # Old archive suffix (normally "a").
20487 libext=$libext
20488
20489 # Shared library suffix (normally ".so").
20490 shrext_cmds=$lt_shrext_cmds
20491
20492 # The commands to extract the exported symbol list from a shared archive.
20493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20494
20495 # Variables whose values should be saved in libtool wrapper scripts and
20496 # restored at link time.
20497 variables_saved_for_relink=$lt_variables_saved_for_relink
20498
20499 # Do we need the "lib" prefix for modules?
20500 need_lib_prefix=$need_lib_prefix
20501
20502 # Do we need a version for libraries?
20503 need_version=$need_version
20504
20505 # Library versioning type.
20506 version_type=$version_type
20507
20508 # Shared library runtime path variable.
20509 runpath_var=$runpath_var
20510
20511 # Shared library path variable.
20512 shlibpath_var=$shlibpath_var
20513
20514 # Is shlibpath searched before the hard-coded library search path?
20515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20516
20517 # Format of library name prefix.
20518 libname_spec=$lt_libname_spec
20519
20520 # List of archive names. First name is the real one, the rest are links.
20521 # The last name is the one that the linker finds with -lNAME
20522 library_names_spec=$lt_library_names_spec
20523
20524 # The coded name of the library, if different from the real name.
20525 soname_spec=$lt_soname_spec
20526
20527 # Command to use after installation of a shared archive.
20528 postinstall_cmds=$lt_postinstall_cmds
20529
20530 # Command to use after uninstallation of a shared archive.
20531 postuninstall_cmds=$lt_postuninstall_cmds
20532
20533 # Commands used to finish a libtool library installation in a directory.
20534 finish_cmds=$lt_finish_cmds
20535
20536 # As "finish_cmds", except a single script fragment to be evaled but
20537 # not shown.
20538 finish_eval=$lt_finish_eval
20539
20540 # Whether we should hardcode library paths into libraries.
20541 hardcode_into_libs=$hardcode_into_libs
20542
20543 # Compile-time system search path for libraries.
20544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20545
20546 # Run-time system search path for libraries.
20547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20548
20549 # Whether dlopen is supported.
20550 dlopen_support=$enable_dlopen
20551
20552 # Whether dlopen of programs is supported.
20553 dlopen_self=$enable_dlopen_self
20554
20555 # Whether dlopen of statically linked programs is supported.
20556 dlopen_self_static=$enable_dlopen_self_static
20557
20558 # Commands to strip libraries.
20559 old_striplib=$lt_old_striplib
20560 striplib=$lt_striplib
20561
20562
20563 # The linker used to build libraries.
20564 LD=$lt_LD
20565
20566 # Commands used to build an old-style archive.
20567 old_archive_cmds=$lt_old_archive_cmds
20568
20569 # A language specific compiler.
20570 CC=$lt_compiler
20571
20572 # Is the compiler the GNU compiler?
20573 with_gcc=$GCC
20574
20575 # Compiler flag to turn off builtin functions.
20576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20577
20578 # How to pass a linker flag through the compiler.
20579 wl=$lt_lt_prog_compiler_wl
20580
20581 # Additional compiler flags for building library objects.
20582 pic_flag=$lt_lt_prog_compiler_pic
20583
20584 # Compiler flag to prevent dynamic linking.
20585 link_static_flag=$lt_lt_prog_compiler_static
20586
20587 # Does compiler simultaneously support -c and -o options?
20588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20589
20590 # Whether or not to add -lc for building shared libraries.
20591 build_libtool_need_lc=$archive_cmds_need_lc
20592
20593 # Whether or not to disallow shared libs when runtime libs are static.
20594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20595
20596 # Compiler flag to allow reflexive dlopens.
20597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20598
20599 # Compiler flag to generate shared objects directly from archives.
20600 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20601
20602 # Whether the compiler copes with passing no objects directly.
20603 compiler_needs_object=$lt_compiler_needs_object
20604
20605 # Create an old-style archive from a shared archive.
20606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20607
20608 # Create a temporary old-style archive to link instead of a shared archive.
20609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20610
20611 # Commands used to build a shared archive.
20612 archive_cmds=$lt_archive_cmds
20613 archive_expsym_cmds=$lt_archive_expsym_cmds
20614
20615 # Commands used to build a loadable module if different from building
20616 # a shared archive.
20617 module_cmds=$lt_module_cmds
20618 module_expsym_cmds=$lt_module_expsym_cmds
20619
20620 # Whether we are building with GNU ld or not.
20621 with_gnu_ld=$lt_with_gnu_ld
20622
20623 # Flag that allows shared libraries with undefined symbols to be built.
20624 allow_undefined_flag=$lt_allow_undefined_flag
20625
20626 # Flag that enforces no undefined symbols.
20627 no_undefined_flag=$lt_no_undefined_flag
20628
20629 # Flag to hardcode \$libdir into a binary during linking.
20630 # This must work even if \$libdir does not exist
20631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20632
20633 # If ld is used when linking, flag to hardcode \$libdir into a binary
20634 # during linking. This must work even if \$libdir does not exist.
20635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20636
20637 # Whether we need a single "-rpath" flag with a separated argument.
20638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20639
20640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20641 # DIR into the resulting binary.
20642 hardcode_direct=$hardcode_direct
20643
20644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20645 # DIR into the resulting binary and the resulting library dependency is
20646 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20647 # library is relocated.
20648 hardcode_direct_absolute=$hardcode_direct_absolute
20649
20650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20651 # into the resulting binary.
20652 hardcode_minus_L=$hardcode_minus_L
20653
20654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20655 # into the resulting binary.
20656 hardcode_shlibpath_var=$hardcode_shlibpath_var
20657
20658 # Set to "yes" if building a shared library automatically hardcodes DIR
20659 # into the library and all subsequent libraries and executables linked
20660 # against it.
20661 hardcode_automatic=$hardcode_automatic
20662
20663 # Set to yes if linker adds runtime paths of dependent libraries
20664 # to runtime path list.
20665 inherit_rpath=$inherit_rpath
20666
20667 # Whether libtool must link a program against all its dependency libraries.
20668 link_all_deplibs=$link_all_deplibs
20669
20670 # Fix the shell variable \$srcfile for the compiler.
20671 fix_srcfile_path=$lt_fix_srcfile_path
20672
20673 # Set to "yes" if exported symbols are required.
20674 always_export_symbols=$always_export_symbols
20675
20676 # The commands to list exported symbols.
20677 export_symbols_cmds=$lt_export_symbols_cmds
20678
20679 # Symbols that should not be listed in the preloaded symbols.
20680 exclude_expsyms=$lt_exclude_expsyms
20681
20682 # Symbols that must always be exported.
20683 include_expsyms=$lt_include_expsyms
20684
20685 # Commands necessary for linking programs (against libraries) with templates.
20686 prelink_cmds=$lt_prelink_cmds
20687
20688 # Specify filename containing input files.
20689 file_list_spec=$lt_file_list_spec
20690
20691 # How to hardcode a shared library path into an executable.
20692 hardcode_action=$hardcode_action
20693
20694 # ### END LIBTOOL CONFIG
20695
20696 _LT_EOF
20697
20698 case $host_os in
20699 aix3*)
20700 cat <<\_LT_EOF >> "$cfgfile"
20701 # AIX sometimes has problems with the GCC collect2 program. For some
20702 # reason, if we set the COLLECT_NAMES environment variable, the problems
20703 # vanish in a puff of smoke.
20704 if test "X${COLLECT_NAMES+set}" != Xset; then
20705 COLLECT_NAMES=
20706 export COLLECT_NAMES
20707 fi
20708 _LT_EOF
20709 ;;
20710 esac
20711
20712
20713 ltmain="$ac_aux_dir/ltmain.sh"
20714
20715
20716 # We use sed instead of cat because bash on DJGPP gets confused if
20717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20718 # text mode, it properly converts lines to CR/LF. This bash problem
20719 # is reportedly fixed, but why not run on old versions too?
20720 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20721 || (rm -f "$cfgfile"; exit 1)
20722
20723 case $xsi_shell in
20724 yes)
20725 cat << \_LT_EOF >> "$cfgfile"
20726
20727 # func_dirname file append nondir_replacement
20728 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20729 # otherwise set result to NONDIR_REPLACEMENT.
20730 func_dirname ()
20731 {
20732 case ${1} in
20733 */*) func_dirname_result="${1%/*}${2}" ;;
20734 * ) func_dirname_result="${3}" ;;
20735 esac
20736 }
20737
20738 # func_basename file
20739 func_basename ()
20740 {
20741 func_basename_result="${1##*/}"
20742 }
20743
20744 # func_dirname_and_basename file append nondir_replacement
20745 # perform func_basename and func_dirname in a single function
20746 # call:
20747 # dirname: Compute the dirname of FILE. If nonempty,
20748 # add APPEND to the result, otherwise set result
20749 # to NONDIR_REPLACEMENT.
20750 # value returned in "$func_dirname_result"
20751 # basename: Compute filename of FILE.
20752 # value retuned in "$func_basename_result"
20753 # Implementation must be kept synchronized with func_dirname
20754 # and func_basename. For efficiency, we do not delegate to
20755 # those functions but instead duplicate the functionality here.
20756 func_dirname_and_basename ()
20757 {
20758 case ${1} in
20759 */*) func_dirname_result="${1%/*}${2}" ;;
20760 * ) func_dirname_result="${3}" ;;
20761 esac
20762 func_basename_result="${1##*/}"
20763 }
20764
20765 # func_stripname prefix suffix name
20766 # strip PREFIX and SUFFIX off of NAME.
20767 # PREFIX and SUFFIX must not contain globbing or regex special
20768 # characters, hashes, percent signs, but SUFFIX may contain a leading
20769 # dot (in which case that matches only a dot).
20770 func_stripname ()
20771 {
20772 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20773 # positional parameters, so assign one to ordinary parameter first.
20774 func_stripname_result=${3}
20775 func_stripname_result=${func_stripname_result#"${1}"}
20776 func_stripname_result=${func_stripname_result%"${2}"}
20777 }
20778
20779 # func_opt_split
20780 func_opt_split ()
20781 {
20782 func_opt_split_opt=${1%%=*}
20783 func_opt_split_arg=${1#*=}
20784 }
20785
20786 # func_lo2o object
20787 func_lo2o ()
20788 {
20789 case ${1} in
20790 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20791 *) func_lo2o_result=${1} ;;
20792 esac
20793 }
20794
20795 # func_xform libobj-or-source
20796 func_xform ()
20797 {
20798 func_xform_result=${1%.*}.lo
20799 }
20800
20801 # func_arith arithmetic-term...
20802 func_arith ()
20803 {
20804 func_arith_result=$(( $* ))
20805 }
20806
20807 # func_len string
20808 # STRING may not start with a hyphen.
20809 func_len ()
20810 {
20811 func_len_result=${#1}
20812 }
20813
20814 _LT_EOF
20815 ;;
20816 *) # Bourne compatible functions.
20817 cat << \_LT_EOF >> "$cfgfile"
20818
20819 # func_dirname file append nondir_replacement
20820 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20821 # otherwise set result to NONDIR_REPLACEMENT.
20822 func_dirname ()
20823 {
20824 # Extract subdirectory from the argument.
20825 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20826 if test "X$func_dirname_result" = "X${1}"; then
20827 func_dirname_result="${3}"
20828 else
20829 func_dirname_result="$func_dirname_result${2}"
20830 fi
20831 }
20832
20833 # func_basename file
20834 func_basename ()
20835 {
20836 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20837 }
20838
20839
20840 # func_stripname prefix suffix name
20841 # strip PREFIX and SUFFIX off of NAME.
20842 # PREFIX and SUFFIX must not contain globbing or regex special
20843 # characters, hashes, percent signs, but SUFFIX may contain a leading
20844 # dot (in which case that matches only a dot).
20845 # func_strip_suffix prefix name
20846 func_stripname ()
20847 {
20848 case ${2} in
20849 .*) func_stripname_result=`$ECHO "X${3}" \
20850 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20851 *) func_stripname_result=`$ECHO "X${3}" \
20852 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20853 esac
20854 }
20855
20856 # sed scripts:
20857 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20858 my_sed_long_arg='1s/^-[^=]*=//'
20859
20860 # func_opt_split
20861 func_opt_split ()
20862 {
20863 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20864 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20865 }
20866
20867 # func_lo2o object
20868 func_lo2o ()
20869 {
20870 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20871 }
20872
20873 # func_xform libobj-or-source
20874 func_xform ()
20875 {
20876 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20877 }
20878
20879 # func_arith arithmetic-term...
20880 func_arith ()
20881 {
20882 func_arith_result=`expr "$@"`
20883 }
20884
20885 # func_len string
20886 # STRING may not start with a hyphen.
20887 func_len ()
20888 {
20889 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20890 }
20891
20892 _LT_EOF
20893 esac
20894
20895 case $lt_shell_append in
20896 yes)
20897 cat << \_LT_EOF >> "$cfgfile"
20898
20899 # func_append var value
20900 # Append VALUE to the end of shell variable VAR.
20901 func_append ()
20902 {
20903 eval "$1+=\$2"
20904 }
20905 _LT_EOF
20906 ;;
20907 *)
20908 cat << \_LT_EOF >> "$cfgfile"
20909
20910 # func_append var value
20911 # Append VALUE to the end of shell variable VAR.
20912 func_append ()
20913 {
20914 eval "$1=\$$1\$2"
20915 }
20916
20917 _LT_EOF
20918 ;;
20919 esac
20920
20921
20922 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20923 || (rm -f "$cfgfile"; exit 1)
20924
20925 mv -f "$cfgfile" "$ofile" ||
20926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20927 chmod +x "$ofile"
20928
20929 ;;
20930
20931 esac
20932 done # for ac_tag
20933
20934
20935 { (exit 0); exit 0; }
20936 _ACEOF
20937 chmod +x $CONFIG_STATUS
20938 ac_clean_files=$ac_clean_files_save
20939
20940 test $ac_write_fail = 0 ||
20941 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20942 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20943 { (exit 1); exit 1; }; }
20944
20945
20946 # configure is writing to config.log, and then calls config.status.
20947 # config.status does its own redirection, appending to config.log.
20948 # Unfortunately, on DOS this fails, as config.log is still kept open
20949 # by configure, so config.status won't be able to write to it; its
20950 # output is simply discarded. So we exec the FD to /dev/null,
20951 # effectively closing config.log, so it can be properly (re)opened and
20952 # appended to by config.status. When coming back to configure, we
20953 # need to make the FD available again.
20954 if test "$no_create" != yes; then
20955 ac_cs_success=:
20956 ac_config_status_args=
20957 test "$silent" = yes &&
20958 ac_config_status_args="$ac_config_status_args --quiet"
20959 exec 5>/dev/null
20960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20961 exec 5>>config.log
20962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20963 # would make configure fail if this is the last instruction.
20964 $ac_cs_success || { (exit 1); exit 1; }
20965 fi
20966 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20967 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20968 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20969 fi
20970