]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Merge branch 'upstream'
[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.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 CONFIG_KERNEL_FALSE
791 CONFIG_KERNEL_TRUE
792 CONFIG_USER_FALSE
793 CONFIG_USER_TRUE
794 DEBUG_CFLAGS
795 KERNELCPPFLAGS
796 KERNELMAKE_PARAMS
797 LINUX_SYMBOLS
798 LINUX_VERSION
799 LINUX_OBJ
800 LINUX
801 SPL_CONFIG
802 MAKEPKG_VERSION
803 MAKEPKG
804 HAVE_MAKEPKG
805 PACMAN_VERSION
806 PACMAN
807 HAVE_PACMAN
808 ALIEN_VERSION
809 ALIEN
810 HAVE_ALIEN
811 DPKGBUILD_VERSION
812 DPKGBUILD
813 HAVE_DPKGBUILD
814 DPKG_VERSION
815 DPKG
816 HAVE_DPKG
817 RPMBUILD_VERSION
818 RPMBUILD
819 HAVE_RPMBUILD
820 RPM_VERSION
821 RPM
822 HAVE_RPM
823 DEFAULT_PACKAGE
824 VENDOR
825 LICENSE
826 CPP
827 OTOOL64
828 OTOOL
829 LIPO
830 NMEDIT
831 DSYMUTIL
832 lt_ECHO
833 RANLIB
834 AR
835 OBJDUMP
836 LN_S
837 NM
838 ac_ct_DUMPBIN
839 DUMPBIN
840 LD
841 FGREP
842 EGREP
843 GREP
844 SED
845 LIBTOOL
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 am__untar
863 am__tar
864 AMTAR
865 am__leading_dot
866 SET_MAKE
867 AWK
868 mkdir_p
869 MKDIR_P
870 INSTALL_STRIP_PROGRAM
871 STRIP
872 install_sh
873 MAKEINFO
874 AUTOHEADER
875 AUTOMAKE
876 AUTOCONF
877 ACLOCAL
878 VERSION
879 PACKAGE
880 CYGPATH_W
881 am__isrc
882 INSTALL_DATA
883 INSTALL_SCRIPT
884 INSTALL_PROGRAM
885 AM_BACKSLASH
886 AM_DEFAULT_VERBOSITY
887 MAINT
888 MAINTAINER_MODE_FALSE
889 MAINTAINER_MODE_TRUE
890 target_os
891 target_vendor
892 target_cpu
893 target
894 host_os
895 host_vendor
896 host_cpu
897 host
898 build_os
899 build_vendor
900 build_cpu
901 build
902 SPL_META_LT_AGE
903 SPL_META_LT_REVISION
904 SPL_META_LT_CURRENT
905 SPL_META_AUTHOR
906 SPL_META_DATA
907 SPL_META_ALIAS
908 SPL_META_RELEASE
909 SPL_META_VERSION
910 SPL_META_NAME
911 target_alias
912 host_alias
913 build_alias
914 LIBS
915 ECHO_T
916 ECHO_N
917 ECHO_C
918 DEFS
919 mandir
920 localedir
921 libdir
922 psdir
923 pdfdir
924 dvidir
925 htmldir
926 infodir
927 docdir
928 oldincludedir
929 includedir
930 localstatedir
931 sharedstatedir
932 sysconfdir
933 datadir
934 datarootdir
935 libexecdir
936 sbindir
937 bindir
938 program_transform_name
939 prefix
940 exec_prefix
941 PACKAGE_BUGREPORT
942 PACKAGE_STRING
943 PACKAGE_VERSION
944 PACKAGE_TARNAME
945 PACKAGE_NAME
946 PATH_SEPARATOR
947 SHELL'
948 ac_subst_files=''
949 ac_user_opts='
950 enable_option_checking
951 enable_maintainer_mode
952 enable_silent_rules
953 enable_dependency_tracking
954 enable_shared
955 enable_static
956 with_pic
957 enable_fast_install
958 with_gnu_ld
959 enable_libtool_lock
960 with_config
961 with_linux
962 with_linux_obj
963 enable_debug
964 enable_debug_log
965 enable_debug_kmem
966 enable_debug_kmem_tracking
967 enable_atomic_spinlocks
968 '
969 ac_precious_vars='build_alias
970 host_alias
971 target_alias
972 CC
973 CFLAGS
974 LDFLAGS
975 LIBS
976 CPPFLAGS
977 CPP'
978
979
980 # Initialize some variables set by options.
981 ac_init_help=
982 ac_init_version=false
983 ac_unrecognized_opts=
984 ac_unrecognized_sep=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
987 cache_file=/dev/null
988 exec_prefix=NONE
989 no_create=
990 no_recursion=
991 prefix=NONE
992 program_prefix=NONE
993 program_suffix=NONE
994 program_transform_name=s,x,x,
995 silent=
996 site=
997 srcdir=
998 verbose=
999 x_includes=NONE
1000 x_libraries=NONE
1001
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE}'
1019 infodir='${datarootdir}/info'
1020 htmldir='${docdir}'
1021 dvidir='${docdir}'
1022 pdfdir='${docdir}'
1023 psdir='${docdir}'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1027
1028 ac_prev=
1029 ac_dashdash=
1030 for ac_option
1031 do
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1035 ac_prev=
1036 continue
1037 fi
1038
1039 case $ac_option in
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *) ac_optarg=yes ;;
1042 esac
1043
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1045
1046 case $ac_dashdash$ac_option in
1047 --)
1048 ac_dashdash=yes ;;
1049
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 ac_prev=bindir ;;
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1054
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1059
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1066
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1069
1070 -datadir | --datadir | --datadi | --datad)
1071 ac_prev=datadir ;;
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1074
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1081
1082 -disable-* | --disable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "enable_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=no ;;
1098
1099 -docdir | --docdir | --docdi | --doc | --do)
1100 ac_prev=docdir ;;
1101 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102 docdir=$ac_optarg ;;
1103
1104 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1105 ac_prev=dvidir ;;
1106 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107 dvidir=$ac_optarg ;;
1108
1109 -enable-* | --enable-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "enable_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval enable_$ac_useropt=\$ac_optarg ;;
1125
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1134
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1137 with_gas=yes ;;
1138
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1145
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1150
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 ac_prev=htmldir ;;
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 | --ht=*)
1155 htmldir=$ac_optarg ;;
1156
1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1163
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 ac_prev=infodir ;;
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1168
1169 -libdir | --libdir | --libdi | --libd)
1170 ac_prev=libdir ;;
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1173
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1180
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1185
1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
1187 | --localstate | --localstat | --localsta | --localst | --locals)
1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191 localstatedir=$ac_optarg ;;
1192
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 ac_prev=mandir ;;
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1197
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1200 with_fp=no ;;
1201
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1204 no_create=yes ;;
1205
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 no_recursion=yes ;;
1209
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1218
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 ac_prev=prefix ;;
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1223
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1230
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1237
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1254
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 ac_prev=pdfdir ;;
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1259
1260 -psdir | --psdir | --psdi | --psd | --ps)
1261 ac_prev=psdir ;;
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263 psdir=$ac_optarg ;;
1264
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 silent=yes ;;
1268
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 ac_prev=sbindir ;;
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 | --sbi=* | --sb=*)
1273 sbindir=$ac_optarg ;;
1274
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1278 | --sha | --sh)
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 | --sha=* | --sh=*)
1284 sharedstatedir=$ac_optarg ;;
1285
1286 -site | --site | --sit)
1287 ac_prev=site ;;
1288 -site=* | --site=* | --sit=*)
1289 site=$ac_optarg ;;
1290
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 ac_prev=srcdir ;;
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1295
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1302
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1307
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309 verbose=yes ;;
1310
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1313
1314 -with-* | --with-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1319 { (exit 1); exit 1; }; }
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1323 *"
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=\$ac_optarg ;;
1330
1331 -without-* | --without-*)
1332 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1336 { (exit 1); exit 1; }; }
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1340 *"
1341 "with_$ac_useropt"
1342 "*) ;;
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1345 esac
1346 eval with_$ac_useropt=no ;;
1347
1348 --x)
1349 # Obsolete; use --with-x.
1350 with_x=yes ;;
1351
1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353 | --x-incl | --x-inc | --x-in | --x-i)
1354 ac_prev=x_includes ;;
1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357 x_includes=$ac_optarg ;;
1358
1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361 ac_prev=x_libraries ;;
1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364 x_libraries=$ac_optarg ;;
1365
1366 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1367 Try \`$0 --help' for more information." >&2
1368 { (exit 1); exit 1; }; }
1369 ;;
1370
1371 *=*)
1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1375 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1376 { (exit 1); exit 1; }; }
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1379
1380 *)
1381 # FIXME: should be removed in autoconf 3.0.
1382 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1385 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1386 ;;
1387
1388 esac
1389 done
1390
1391 if test -n "$ac_prev"; then
1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1394 { (exit 1); exit 1; }; }
1395 fi
1396
1397 if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1399 no) ;;
1400 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1401 { (exit 1); exit 1; }; } ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403 esac
1404 fi
1405
1406 # Check all directory arguments for consistency.
1407 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir
1411 do
1412 eval ac_val=\$$ac_var
1413 # Remove trailing slashes.
1414 case $ac_val in
1415 */ )
1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\$ac_val;;
1418 esac
1419 # Be sure to have absolute directory names.
1420 case $ac_val in
1421 [\\/$]* | ?:[\\/]* ) continue;;
1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 esac
1424 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1425 { (exit 1); exit 1; }; }
1426 done
1427
1428 # There might be people who depend on the old broken behavior: `$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1431 build=$build_alias
1432 host=$host_alias
1433 target=$target_alias
1434
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440 If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1442 cross_compiling=yes
1443 fi
1444 fi
1445
1446 ac_tool_prefix=
1447 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448
1449 test "$silent" = yes && exec 6>/dev/null
1450
1451
1452 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453 ac_ls_di=`ls -di .` &&
1454 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1456 { (exit 1); exit 1; }; }
1457 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1458 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1459 { (exit 1); exit 1; }; }
1460
1461
1462 # Find the source files, if location was not specified.
1463 if test -z "$srcdir"; then
1464 ac_srcdir_defaulted=yes
1465 # Try the directory containing this script, then the parent directory.
1466 ac_confdir=`$as_dirname -- "$as_myself" ||
1467 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1468 X"$as_myself" : 'X\(//\)[^/]' \| \
1469 X"$as_myself" : 'X\(//\)$' \| \
1470 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1471 $as_echo X"$as_myself" |
1472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1473 s//\1/
1474 q
1475 }
1476 /^X\(\/\/\)[^/].*/{
1477 s//\1/
1478 q
1479 }
1480 /^X\(\/\/\)$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\).*/{
1485 s//\1/
1486 q
1487 }
1488 s/.*/./; q'`
1489 srcdir=$ac_confdir
1490 if test ! -r "$srcdir/$ac_unique_file"; then
1491 srcdir=..
1492 fi
1493 else
1494 ac_srcdir_defaulted=no
1495 fi
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1497 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1498 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1499 { (exit 1); exit 1; }; }
1500 fi
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502 ac_abs_confdir=`(
1503 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1504 { (exit 1); exit 1; }; }
1505 pwd)`
1506 # When building in place, set srcdir=.
1507 if test "$ac_abs_confdir" = "$ac_pwd"; then
1508 srcdir=.
1509 fi
1510 # Remove unnecessary trailing slashes from srcdir.
1511 # Double slashes in file names in object file debugging info
1512 # mess up M-x gdb in Emacs.
1513 case $srcdir in
1514 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515 esac
1516 for ac_var in $ac_precious_vars; do
1517 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518 eval ac_env_${ac_var}_value=\$${ac_var}
1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1521 done
1522
1523 #
1524 # Report the --help message.
1525 #
1526 if test "$ac_init_help" = "long"; then
1527 # Omit some internal or obsolete options to make the list less imposing.
1528 # This message is too long to be a string in the A/UX 3.1 sh.
1529 cat <<_ACEOF
1530 \`configure' configures this package to adapt to many kinds of systems.
1531
1532 Usage: $0 [OPTION]... [VAR=VALUE]...
1533
1534 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535 VAR=VALUE. See below for descriptions of some of the useful variables.
1536
1537 Defaults for the options are specified in brackets.
1538
1539 Configuration:
1540 -h, --help display this help and exit
1541 --help=short display options specific to this package
1542 --help=recursive display the short help of all the included packages
1543 -V, --version display version information and exit
1544 -q, --quiet, --silent do not print \`checking...' messages
1545 --cache-file=FILE cache test results in FILE [disabled]
1546 -C, --config-cache alias for \`--cache-file=config.cache'
1547 -n, --no-create do not create output files
1548 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549
1550 Installation directories:
1551 --prefix=PREFIX install architecture-independent files in PREFIX
1552 [$ac_default_prefix]
1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1554 [PREFIX]
1555
1556 By default, \`make install' will install all the files in
1557 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1558 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559 for instance \`--prefix=\$HOME'.
1560
1561 For better control, use the options below.
1562
1563 Fine tuning of the installation directories:
1564 --bindir=DIR user executables [EPREFIX/bin]
1565 --sbindir=DIR system admin executables [EPREFIX/sbin]
1566 --libexecdir=DIR program executables [EPREFIX/libexec]
1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1570 --libdir=DIR object code libraries [EPREFIX/lib]
1571 --includedir=DIR C header files [PREFIX/include]
1572 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1575 --infodir=DIR info documentation [DATAROOTDIR/info]
1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1577 --mandir=DIR man documentation [DATAROOTDIR/man]
1578 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1579 --htmldir=DIR html documentation [DOCDIR]
1580 --dvidir=DIR dvi documentation [DOCDIR]
1581 --pdfdir=DIR pdf documentation [DOCDIR]
1582 --psdir=DIR ps documentation [DOCDIR]
1583 _ACEOF
1584
1585 cat <<\_ACEOF
1586
1587 Program names:
1588 --program-prefix=PREFIX prepend PREFIX to installed program names
1589 --program-suffix=SUFFIX append SUFFIX to installed program names
1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1591
1592 System types:
1593 --build=BUILD configure for building on BUILD [guessed]
1594 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1595 --target=TARGET configure for building compilers for TARGET [HOST]
1596 _ACEOF
1597 fi
1598
1599 if test -n "$ac_init_help"; then
1600
1601 cat <<\_ACEOF
1602
1603 Optional Features:
1604 --disable-option-checking ignore unrecognized --enable/--with options
1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1607 --enable-maintainer-mode enable make rules and dependencies not useful
1608 (and sometimes confusing) to the casual installer
1609 --enable-silent-rules less verbose build output (undo: `make V=1')
1610 --disable-silent-rules verbose build output (undo: `make V=0')
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --enable-debug Enable generic debug support [default=no]
1619 --enable-debug-log Enable basic debug logging [default=yes]
1620 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1621 --enable-debug-kmem-tracking
1622 Enable detailed kmem tracking [default=no]
1623 --enable-atomic-spinlocks
1624 Atomic types use spinlocks [default=check]
1625
1626 Optional Packages:
1627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1629 --with-pic try to use only PIC/non-PIC objects [default=use
1630 both]
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1633 --with-linux=PATH Path to kernel source
1634 --with-linux-obj=PATH Path to kernel build objects
1635
1636 Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
1641 LIBS libraries to pass to the linker, e.g. -l<library>
1642 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1643 you have headers in a nonstandard directory <include dir>
1644 CPP C preprocessor
1645
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1648
1649 _ACEOF
1650 ac_status=$?
1651 fi
1652
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
1659 ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678 .) # We are building in place.
1679 ac_srcdir=.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1701 else
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 fi || ac_status=$?
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1705 done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710 cat <<\_ACEOF
1711 configure
1712 generated by GNU Autoconf 2.63
1713
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718 _ACEOF
1719 exit
1720 fi
1721 cat >config.log <<_ACEOF
1722 This file contains any messages produced by compilers while
1723 running configure, to aid debugging if configure makes a mistake.
1724
1725 It was created by $as_me, which was
1726 generated by GNU Autoconf 2.63. Invocation command line was
1727
1728 $ $0 $@
1729
1730 _ACEOF
1731 exec 5>>config.log
1732 {
1733 cat <<_ASUNAME
1734 ## --------- ##
1735 ## Platform. ##
1736 ## --------- ##
1737
1738 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1743
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1746
1747 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1748 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1749 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1751 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1752 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1753 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1754
1755 _ASUNAME
1756
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 $as_echo "PATH: $as_dir"
1763 done
1764 IFS=$as_save_IFS
1765
1766 } >&5
1767
1768 cat >&5 <<_ACEOF
1769
1770
1771 ## ----------- ##
1772 ## Core tests. ##
1773 ## ----------- ##
1774
1775 _ACEOF
1776
1777
1778 # Keep a trace of the command line.
1779 # Strip out --no-create and --no-recursion so they do not pile up.
1780 # Strip out --silent because we don't want to record it for future runs.
1781 # Also quote any args containing shell meta-characters.
1782 # Make two passes to allow for proper duplicate-argument suppression.
1783 ac_configure_args=
1784 ac_configure_args0=
1785 ac_configure_args1=
1786 ac_must_keep_next=false
1787 for ac_pass in 1 2
1788 do
1789 for ac_arg
1790 do
1791 case $ac_arg in
1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794 | -silent | --silent | --silen | --sile | --sil)
1795 continue ;;
1796 *\'*)
1797 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1798 esac
1799 case $ac_pass in
1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1801 2)
1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803 if test $ac_must_keep_next = true; then
1804 ac_must_keep_next=false # Got value, back to normal.
1805 else
1806 case $ac_arg in
1807 *=* | --config-cache | -C | -disable-* | --disable-* \
1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810 | -with-* | --with-* | -without-* | --without-* | --x)
1811 case "$ac_configure_args0 " in
1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813 esac
1814 ;;
1815 -* ) ac_must_keep_next=true ;;
1816 esac
1817 fi
1818 ac_configure_args="$ac_configure_args '$ac_arg'"
1819 ;;
1820 esac
1821 done
1822 done
1823 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1825
1826 # When interrupted or exit'd, cleanup temporary files, and complete
1827 # config.log. We remove comments because anyway the quotes in there
1828 # would cause problems or look ugly.
1829 # WARNING: Use '\'' to represent an apostrophe within the trap.
1830 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831 trap 'exit_status=$?
1832 # Save into config.log some information that might help in debugging.
1833 {
1834 echo
1835
1836 cat <<\_ASBOX
1837 ## ---------------- ##
1838 ## Cache variables. ##
1839 ## ---------------- ##
1840 _ASBOX
1841 echo
1842 # The following way of writing the cache mishandles newlines in values,
1843 (
1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in #(
1847 *${as_nl}*)
1848 case $ac_var in #(
1849 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1851 esac
1852 case $ac_var in #(
1853 _ | IFS | as_nl) ;; #(
1854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1855 *) $as_unset $ac_var ;;
1856 esac ;;
1857 esac
1858 done
1859 (set) 2>&1 |
1860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861 *${as_nl}ac_space=\ *)
1862 sed -n \
1863 "s/'\''/'\''\\\\'\'''\''/g;
1864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865 ;; #(
1866 *)
1867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868 ;;
1869 esac |
1870 sort
1871 )
1872 echo
1873
1874 cat <<\_ASBOX
1875 ## ----------------- ##
1876 ## Output variables. ##
1877 ## ----------------- ##
1878 _ASBOX
1879 echo
1880 for ac_var in $ac_subst_vars
1881 do
1882 eval ac_val=\$$ac_var
1883 case $ac_val in
1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885 esac
1886 $as_echo "$ac_var='\''$ac_val'\''"
1887 done | sort
1888 echo
1889
1890 if test -n "$ac_subst_files"; then
1891 cat <<\_ASBOX
1892 ## ------------------- ##
1893 ## File substitutions. ##
1894 ## ------------------- ##
1895 _ASBOX
1896 echo
1897 for ac_var in $ac_subst_files
1898 do
1899 eval ac_val=\$$ac_var
1900 case $ac_val in
1901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 esac
1903 $as_echo "$ac_var='\''$ac_val'\''"
1904 done | sort
1905 echo
1906 fi
1907
1908 if test -s confdefs.h; then
1909 cat <<\_ASBOX
1910 ## ----------- ##
1911 ## confdefs.h. ##
1912 ## ----------- ##
1913 _ASBOX
1914 echo
1915 cat confdefs.h
1916 echo
1917 fi
1918 test "$ac_signal" != 0 &&
1919 $as_echo "$as_me: caught signal $ac_signal"
1920 $as_echo "$as_me: exit $exit_status"
1921 } >&5
1922 rm -f core *.core core.conftest.* &&
1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1924 exit $exit_status
1925 ' 0
1926 for ac_signal in 1 2 13 15; do
1927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1928 done
1929 ac_signal=0
1930
1931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1932 rm -f -r conftest* confdefs.h
1933
1934 # Predefined preprocessor variables.
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_NAME "$PACKAGE_NAME"
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1943 _ACEOF
1944
1945
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1948 _ACEOF
1949
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_STRING "$PACKAGE_STRING"
1953 _ACEOF
1954
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 _ACEOF
1959
1960
1961 # Let the site file select an alternate cache file if it wants to.
1962 # Prefer an explicitly selected file to automatically selected ones.
1963 ac_site_file1=NONE
1964 ac_site_file2=NONE
1965 if test -n "$CONFIG_SITE"; then
1966 ac_site_file1=$CONFIG_SITE
1967 elif test "x$prefix" != xNONE; then
1968 ac_site_file1=$prefix/share/config.site
1969 ac_site_file2=$prefix/etc/config.site
1970 else
1971 ac_site_file1=$ac_default_prefix/share/config.site
1972 ac_site_file2=$ac_default_prefix/etc/config.site
1973 fi
1974 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1975 do
1976 test "x$ac_site_file" = xNONE && continue
1977 if test -r "$ac_site_file"; then
1978 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1979 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1980 sed 's/^/| /' "$ac_site_file" >&5
1981 . "$ac_site_file"
1982 fi
1983 done
1984
1985 if test -r "$cache_file"; then
1986 # Some versions of bash will fail to source /dev/null (special
1987 # files actually), so we avoid doing that.
1988 if test -f "$cache_file"; then
1989 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1990 $as_echo "$as_me: loading cache $cache_file" >&6;}
1991 case $cache_file in
1992 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993 *) . "./$cache_file";;
1994 esac
1995 fi
1996 else
1997 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1998 $as_echo "$as_me: creating cache $cache_file" >&6;}
1999 >$cache_file
2000 fi
2001
2002 # Check that the precious variables saved in the cache have kept the same
2003 # value.
2004 ac_cache_corrupted=false
2005 for ac_var in $ac_precious_vars; do
2006 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2007 eval ac_new_set=\$ac_env_${ac_var}_set
2008 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2009 eval ac_new_val=\$ac_env_${ac_var}_value
2010 case $ac_old_set,$ac_new_set in
2011 set,)
2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2013 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2014 ac_cache_corrupted=: ;;
2015 ,set)
2016 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2017 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2018 ac_cache_corrupted=: ;;
2019 ,);;
2020 *)
2021 if test "x$ac_old_val" != "x$ac_new_val"; then
2022 # differences in whitespace do not lead to failure.
2023 ac_old_val_w=`echo x $ac_old_val`
2024 ac_new_val_w=`echo x $ac_new_val`
2025 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2026 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028 ac_cache_corrupted=:
2029 else
2030 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2031 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2032 eval $ac_var=\$ac_old_val
2033 fi
2034 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2035 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2036 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2037 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2038 fi;;
2039 esac
2040 # Pass precious variables to config.status.
2041 if test "$ac_new_set" = set; then
2042 case $ac_new_val in
2043 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 *) ac_arg=$ac_var=$ac_new_val ;;
2045 esac
2046 case " $ac_configure_args " in
2047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2048 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2049 esac
2050 fi
2051 done
2052 if $ac_cache_corrupted; then
2053 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2055 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2056 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2057 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2058 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2059 { (exit 1); exit 1; }; }
2060 fi
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078 ac_ext=c
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083
2084
2085 ac_ext=c
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090
2091
2092 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2093 $as_echo_n "checking metadata... " >&6; }
2094
2095 META="$srcdir/META"
2096 _spl_ac_meta_got_file=no
2097 if test -f "$META"; then
2098 _spl_ac_meta_got_file=yes
2099
2100 SPL_META_NAME=`perl -n\
2101 -e "BEGIN { \\$key=shift @ARGV; }"\
2102 -e "next unless s/^\s*\\$key[:=]//i;"\
2103 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2104 -e "s/^\s+//;"\
2105 -e "s/\s+$//;"\
2106 -e "s/^(['\"])(.*)\1/\\$2/;"\
2107 -e "\\$val=\\$_;"\
2108 -e "END { print \\$val if defined \\$val; }"\
2109 '(?:NAME|PROJECT|PACKAGE)' $META`;
2110 if test -n "$SPL_META_NAME"; then
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define SPL_META_NAME "$SPL_META_NAME"
2114 _ACEOF
2115
2116
2117 fi
2118
2119 SPL_META_VERSION=`perl -n\
2120 -e "BEGIN { \\$key=shift @ARGV; }"\
2121 -e "next unless s/^\s*\\$key[:=]//i;"\
2122 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2123 -e "s/^\s+//;"\
2124 -e "s/\s+$//;"\
2125 -e "s/^(['\"])(.*)\1/\\$2/;"\
2126 -e "\\$val=\\$_;"\
2127 -e "END { print \\$val if defined \\$val; }"\
2128 'VERSION' $META`;
2129 if test -n "$SPL_META_VERSION"; then
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define SPL_META_VERSION "$SPL_META_VERSION"
2133 _ACEOF
2134
2135
2136 fi
2137
2138 SPL_META_RELEASE=`perl -n\
2139 -e "BEGIN { \\$key=shift @ARGV; }"\
2140 -e "next unless s/^\s*\\$key[:=]//i;"\
2141 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2142 -e "s/^\s+//;"\
2143 -e "s/\s+$//;"\
2144 -e "s/^(['\"])(.*)\1/\\$2/;"\
2145 -e "\\$val=\\$_;"\
2146 -e "END { print \\$val if defined \\$val; }"\
2147 'RELEASE' $META`;
2148 if test -n "$SPL_META_RELEASE"; then
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2152 _ACEOF
2153
2154
2155 fi
2156
2157 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2158 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2159 test -n "$SPL_META_RELEASE" &&
2160 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2164 _ACEOF
2165
2166
2167 fi
2168
2169 SPL_META_DATA=`perl -n\
2170 -e "BEGIN { \\$key=shift @ARGV; }"\
2171 -e "next unless s/^\s*\\$key[:=]//i;"\
2172 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2173 -e "s/^\s+//;"\
2174 -e "s/\s+$//;"\
2175 -e "s/^(['\"])(.*)\1/\\$2/;"\
2176 -e "\\$val=\\$_;"\
2177 -e "END { print \\$val if defined \\$val; }"\
2178 'DATE' $META`;
2179 if test -n "$SPL_META_DATA"; then
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define SPL_META_DATA "$SPL_META_DATA"
2183 _ACEOF
2184
2185
2186 fi
2187
2188 SPL_META_AUTHOR=`perl -n\
2189 -e "BEGIN { \\$key=shift @ARGV; }"\
2190 -e "next unless s/^\s*\\$key[:=]//i;"\
2191 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2192 -e "s/^\s+//;"\
2193 -e "s/\s+$//;"\
2194 -e "s/^(['\"])(.*)\1/\\$2/;"\
2195 -e "\\$val=\\$_;"\
2196 -e "END { print \\$val if defined \\$val; }"\
2197 'AUTHOR' $META`;
2198 if test -n "$SPL_META_AUTHOR"; then
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2202 _ACEOF
2203
2204
2205 fi
2206
2207
2208 SPL_META_LT_CURRENT=`perl -n\
2209 -e "BEGIN { \\$key=shift @ARGV; }"\
2210 -e "next unless s/^\s*\\$key[:=]//i;"\
2211 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2212 -e "s/^\s+//;"\
2213 -e "s/\s+$//;"\
2214 -e "s/^(['\"])(.*)\1/\\$2/;"\
2215 -e "\\$val=\\$_;"\
2216 -e "END { print \\$val if defined \\$val; }"\
2217 'LT_CURRENT' $META`;
2218 SPL_META_LT_REVISION=`perl -n\
2219 -e "BEGIN { \\$key=shift @ARGV; }"\
2220 -e "next unless s/^\s*\\$key[:=]//i;"\
2221 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2222 -e "s/^\s+//;"\
2223 -e "s/\s+$//;"\
2224 -e "s/^(['\"])(.*)\1/\\$2/;"\
2225 -e "\\$val=\\$_;"\
2226 -e "END { print \\$val if defined \\$val; }"\
2227 'LT_REVISION' $META`;
2228 SPL_META_LT_AGE=`perl -n\
2229 -e "BEGIN { \\$key=shift @ARGV; }"\
2230 -e "next unless s/^\s*\\$key[:=]//i;"\
2231 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2232 -e "s/^\s+//;"\
2233 -e "s/\s+$//;"\
2234 -e "s/^(['\"])(.*)\1/\\$2/;"\
2235 -e "\\$val=\\$_;"\
2236 -e "END { print \\$val if defined \\$val; }"\
2237 'LT_AGE' $META`;
2238 if test -n "$SPL_META_LT_CURRENT" \
2239 -o -n "$SPL_META_LT_REVISION" \
2240 -o -n "$SPL_META_LT_AGE"; then
2241 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2242 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2243 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2247 _ACEOF
2248
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2252 _ACEOF
2253
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2257 _ACEOF
2258
2259
2260
2261
2262 fi
2263 fi
2264
2265 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2266 $as_echo "$_spl_ac_meta_got_file" >&6; }
2267
2268
2269 ac_aux_dir=
2270 for ac_dir in config "$srcdir"/config; do
2271 if test -f "$ac_dir/install-sh"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 break
2275 elif test -f "$ac_dir/install.sh"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 break
2279 elif test -f "$ac_dir/shtool"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2282 break
2283 fi
2284 done
2285 if test -z "$ac_aux_dir"; then
2286 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2287 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2288 { (exit 1); exit 1; }; }
2289 fi
2290
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2298
2299
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2305
2306 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2307 $as_echo_n "checking build system type... " >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 $as_echo_n "(cached) " >&6
2310 else
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2322
2323 fi
2324 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 $as_echo "$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2331 esac
2332 build=$ac_cv_build
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_build
2335 shift
2336 build_cpu=$1
2337 build_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 build_os=$*
2342 IFS=$ac_save_IFS
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2344
2345
2346 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2347 $as_echo_n "checking host system type... " >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 $as_echo_n "(cached) " >&6
2350 else
2351 if test "x$host_alias" = x; then
2352 ac_cv_host=$ac_cv_build
2353 else
2354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2358 fi
2359
2360 fi
2361 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 $as_echo "$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2368 esac
2369 host=$ac_cv_host
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_host
2372 shift
2373 host_cpu=$1
2374 host_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 host_os=$*
2379 IFS=$ac_save_IFS
2380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2381
2382
2383 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2384 $as_echo_n "checking target system type... " >&6; }
2385 if test "${ac_cv_target+set}" = set; then
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test "x$target_alias" = x; then
2389 ac_cv_target=$ac_cv_host
2390 else
2391 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2392 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2393 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2394 { (exit 1); exit 1; }; }
2395 fi
2396
2397 fi
2398 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2399 $as_echo "$ac_cv_target" >&6; }
2400 case $ac_cv_target in
2401 *-*-*) ;;
2402 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2403 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2404 { (exit 1); exit 1; }; };;
2405 esac
2406 target=$ac_cv_target
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_target
2409 shift
2410 target_cpu=$1
2411 target_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 target_os=$*
2416 IFS=$ac_save_IFS
2417 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2418
2419
2420 # The aliases save the names the user supplied, while $host etc.
2421 # will get canonicalized.
2422 test -n "$target_alias" &&
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2424 NONENONEs,x,x, &&
2425 program_prefix=${target_alias}-
2426
2427 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2428 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2429 # Check whether --enable-maintainer-mode was given.
2430 if test "${enable_maintainer_mode+set}" = set; then
2431 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2432 else
2433 USE_MAINTAINER_MODE=no
2434 fi
2435
2436 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2437 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2438 if test $USE_MAINTAINER_MODE = yes; then
2439 MAINTAINER_MODE_TRUE=
2440 MAINTAINER_MODE_FALSE='#'
2441 else
2442 MAINTAINER_MODE_TRUE='#'
2443 MAINTAINER_MODE_FALSE=
2444 fi
2445
2446 MAINT=$MAINTAINER_MODE_TRUE
2447
2448
2449 # Check whether --enable-silent-rules was given.
2450 if test "${enable_silent_rules+set}" = set; then
2451 enableval=$enable_silent_rules;
2452 fi
2453
2454 case $enable_silent_rules in
2455 yes) AM_DEFAULT_VERBOSITY=0;;
2456 no) AM_DEFAULT_VERBOSITY=1;;
2457 *) AM_DEFAULT_VERBOSITY=1;;
2458 esac
2459 AM_BACKSLASH='\'
2460
2461 am__api_version='1.11'
2462
2463 # Find a good install program. We prefer a C program (faster),
2464 # so one script is as good as another. But avoid the broken or
2465 # incompatible versions:
2466 # SysV /etc/install, /usr/sbin/install
2467 # SunOS /usr/etc/install
2468 # IRIX /sbin/install
2469 # AIX /bin/install
2470 # AmigaOS /C/install, which installs bootblocks on floppy discs
2471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2474 # OS/2's system install, which has a completely different semantic
2475 # ./install, which can be erroneously created by make from ./install.sh.
2476 # Reject install programs that cannot install multiple files.
2477 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2478 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2479 if test -z "$INSTALL"; then
2480 if test "${ac_cv_path_install+set}" = set; then
2481 $as_echo_n "(cached) " >&6
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 # Account for people who put trailing slashes in PATH elements.
2489 case $as_dir/ in
2490 ./ | .// | /cC/* | \
2491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2492 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2493 /usr/ucb/* ) ;;
2494 *)
2495 # OSF1 and SCO ODT 3.0 have their own names for install.
2496 # Don't use installbsd from OSF since it installs stuff as root
2497 # by default.
2498 for ac_prog in ginstall scoinst install; do
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2501 if test $ac_prog = install &&
2502 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # AIX install. It has an incompatible calling convention.
2504 :
2505 elif test $ac_prog = install &&
2506 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # program-specific install script used by HP pwplus--don't use.
2508 :
2509 else
2510 rm -rf conftest.one conftest.two conftest.dir
2511 echo one > conftest.one
2512 echo two > conftest.two
2513 mkdir conftest.dir
2514 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2515 test -s conftest.one && test -s conftest.two &&
2516 test -s conftest.dir/conftest.one &&
2517 test -s conftest.dir/conftest.two
2518 then
2519 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2520 break 3
2521 fi
2522 fi
2523 fi
2524 done
2525 done
2526 ;;
2527 esac
2528
2529 done
2530 IFS=$as_save_IFS
2531
2532 rm -rf conftest.one conftest.two conftest.dir
2533
2534 fi
2535 if test "${ac_cv_path_install+set}" = set; then
2536 INSTALL=$ac_cv_path_install
2537 else
2538 # As a last resort, use the slow shell script. Don't cache a
2539 # value for INSTALL within a source directory, because that will
2540 # break other packages using the cache if that directory is
2541 # removed, or if the value is a relative name.
2542 INSTALL=$ac_install_sh
2543 fi
2544 fi
2545 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2546 $as_echo "$INSTALL" >&6; }
2547
2548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2549 # It thinks the first close brace ends the variable substitution.
2550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2551
2552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2553
2554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2555
2556 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2557 $as_echo_n "checking whether build environment is sane... " >&6; }
2558 # Just in case
2559 sleep 1
2560 echo timestamp > conftest.file
2561 # Reject unsafe characters in $srcdir or the absolute working directory
2562 # name. Accept space and tab only in the latter.
2563 am_lf='
2564 '
2565 case `pwd` in
2566 *[\\\"\#\$\&\'\`$am_lf]*)
2567 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2568 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2569 { (exit 1); exit 1; }; };;
2570 esac
2571 case $srcdir in
2572 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2573 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2574 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2575 { (exit 1); exit 1; }; };;
2576 esac
2577
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2586 # -L didn't work.
2587 set X `ls -t "$srcdir/configure" conftest.file`
2588 fi
2589 rm -f conftest.file
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2592
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&5
2599 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" >&2;}
2601 { (exit 1); exit 1; }; }
2602 fi
2603
2604 test "$2" = conftest.file
2605 )
2606 then
2607 # Ok.
2608 :
2609 else
2610 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2611 Check your system clock" >&5
2612 $as_echo "$as_me: error: newly created file is older than distributed files!
2613 Check your system clock" >&2;}
2614 { (exit 1); exit 1; }; }
2615 fi
2616 { $as_echo "$as_me:$LINENO: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 test "$program_prefix" != NONE &&
2619 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2620 # Use a double $ so make ignores it.
2621 test "$program_suffix" != NONE &&
2622 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2623 # Double any \ or $.
2624 # By default was `s,x,x', remove it if useless.
2625 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2626 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2627
2628 # expand $ac_aux_dir to an absolute path
2629 am_aux_dir=`cd $ac_aux_dir && pwd`
2630
2631 if test x"${MISSING+set}" != xset; then
2632 case $am_aux_dir in
2633 *\ * | *\ *)
2634 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635 *)
2636 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2637 esac
2638 fi
2639 # Use eval to expand $SHELL
2640 if eval "$MISSING --run true"; then
2641 am_missing_run="$MISSING --run "
2642 else
2643 am_missing_run=
2644 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2645 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2646 fi
2647
2648 if test x"${install_sh}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652 *)
2653 install_sh="\${SHELL} $am_aux_dir/install-sh"
2654 esac
2655 fi
2656
2657 # Installed binaries are usually stripped using `strip' when the user
2658 # run `make install-strip'. However `strip' might not be the right
2659 # tool to use in cross-compilation environments, therefore Automake
2660 # will honor the `STRIP' environment variable to overrule this program.
2661 if test "$cross_compiling" != no; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}strip; ac_word=$2
2665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_STRIP+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$STRIP"; then
2671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 STRIP=$ac_cv_prog_STRIP
2691 if test -n "$STRIP"; then
2692 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2693 $as_echo "$STRIP" >&6; }
2694 else
2695 { $as_echo "$as_me:$LINENO: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 fi
2701 if test -z "$ac_cv_prog_STRIP"; then
2702 ac_ct_STRIP=$STRIP
2703 # Extract the first word of "strip", so it can be a program name with args.
2704 set dummy strip; ac_word=$2
2705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$ac_ct_STRIP"; then
2711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_STRIP="strip"
2721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2731 if test -n "$ac_ct_STRIP"; then
2732 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2733 $as_echo "$ac_ct_STRIP" >&6; }
2734 else
2735 { $as_echo "$as_me:$LINENO: result: no" >&5
2736 $as_echo "no" >&6; }
2737 fi
2738
2739 if test "x$ac_ct_STRIP" = x; then
2740 STRIP=":"
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 STRIP=$ac_ct_STRIP
2749 fi
2750 else
2751 STRIP="$ac_cv_prog_STRIP"
2752 fi
2753
2754 fi
2755 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2756
2757 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2758 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2759 if test -z "$MKDIR_P"; then
2760 if test "${ac_cv_path_mkdir+set}" = set; then
2761 $as_echo_n "(cached) " >&6
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_prog in mkdir gmkdir; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2772 'mkdir (GNU coreutils) '* | \
2773 'mkdir (coreutils) '* | \
2774 'mkdir (fileutils) '4.1*)
2775 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2776 break 3;;
2777 esac
2778 done
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784
2785 if test "${ac_cv_path_mkdir+set}" = set; then
2786 MKDIR_P="$ac_cv_path_mkdir -p"
2787 else
2788 # As a last resort, use the slow shell script. Don't cache a
2789 # value for MKDIR_P within a source directory, because that will
2790 # break other packages using the cache if that directory is
2791 # removed, or if the value is a relative name.
2792 test -d ./--version && rmdir ./--version
2793 MKDIR_P="$ac_install_sh -d"
2794 fi
2795 fi
2796 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2797 $as_echo "$MKDIR_P" >&6; }
2798
2799 mkdir_p="$MKDIR_P"
2800 case $mkdir_p in
2801 [\\/$]* | ?:[\\/]*) ;;
2802 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2803 esac
2804
2805 for ac_prog in gawk mawk nawk awk
2806 do
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_AWK+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$AWK"; then
2815 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_AWK="$ac_prog"
2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 AWK=$ac_cv_prog_AWK
2835 if test -n "$AWK"; then
2836 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2837 $as_echo "$AWK" >&6; }
2838 else
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843
2844 test -n "$AWK" && break
2845 done
2846
2847 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2848 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2849 set x ${MAKE-make}
2850 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2851 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2852 $as_echo_n "(cached) " >&6
2853 else
2854 cat >conftest.make <<\_ACEOF
2855 SHELL = /bin/sh
2856 all:
2857 @echo '@@@%%%=$(MAKE)=@@@%%%'
2858 _ACEOF
2859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2860 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2861 *@@@%%%=?*=@@@%%%*)
2862 eval ac_cv_prog_make_${ac_make}_set=yes;;
2863 *)
2864 eval ac_cv_prog_make_${ac_make}_set=no;;
2865 esac
2866 rm -f conftest.make
2867 fi
2868 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2869 { $as_echo "$as_me:$LINENO: result: yes" >&5
2870 $as_echo "yes" >&6; }
2871 SET_MAKE=
2872 else
2873 { $as_echo "$as_me:$LINENO: result: no" >&5
2874 $as_echo "no" >&6; }
2875 SET_MAKE="MAKE=${MAKE-make}"
2876 fi
2877
2878 rm -rf .tst 2>/dev/null
2879 mkdir .tst 2>/dev/null
2880 if test -d .tst; then
2881 am__leading_dot=.
2882 else
2883 am__leading_dot=_
2884 fi
2885 rmdir .tst 2>/dev/null
2886
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2894 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897 fi
2898
2899 # test whether we have cygpath
2900 if test -z "$CYGPATH_W"; then
2901 if (cygpath --version) >/dev/null 2>/dev/null; then
2902 CYGPATH_W='cygpath -w'
2903 else
2904 CYGPATH_W=echo
2905 fi
2906 fi
2907
2908
2909 # Define the identity of the package.
2910 PACKAGE=$SPL_META_NAME
2911 VERSION=$SPL_META_VERSION
2912
2913
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE "$PACKAGE"
2916 _ACEOF
2917
2918
2919 cat >>confdefs.h <<_ACEOF
2920 #define VERSION "$VERSION"
2921 _ACEOF
2922
2923 # Some tools Automake needs.
2924
2925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926
2927
2928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929
2930
2931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932
2933
2934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935
2936
2937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2938
2939 # We need awk for the "check" target. The system "awk" is bad on
2940 # some platforms.
2941 # Always define AMTAR for backward compatibility.
2942
2943 AMTAR=${AMTAR-"${am_missing_run}tar"}
2944
2945 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2946
2947
2948
2949
2950
2951 ac_config_headers="$ac_config_headers spl_config.h"
2952
2953
2954 # Find a good install program. We prefer a C program (faster),
2955 # so one script is as good as another. But avoid the broken or
2956 # incompatible versions:
2957 # SysV /etc/install, /usr/sbin/install
2958 # SunOS /usr/etc/install
2959 # IRIX /sbin/install
2960 # AIX /bin/install
2961 # AmigaOS /C/install, which installs bootblocks on floppy discs
2962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965 # OS/2's system install, which has a completely different semantic
2966 # ./install, which can be erroneously created by make from ./install.sh.
2967 # Reject install programs that cannot install multiple files.
2968 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972 $as_echo_n "(cached) " >&6
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 /usr/ucb/* ) ;;
2985 *)
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2988 # by default.
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2995 :
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
2999 :
3000 else
3001 rm -rf conftest.one conftest.two conftest.dir
3002 echo one > conftest.one
3003 echo two > conftest.two
3004 mkdir conftest.dir
3005 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3006 test -s conftest.one && test -s conftest.two &&
3007 test -s conftest.dir/conftest.one &&
3008 test -s conftest.dir/conftest.two
3009 then
3010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3011 break 3
3012 fi
3013 fi
3014 fi
3015 done
3016 done
3017 ;;
3018 esac
3019
3020 done
3021 IFS=$as_save_IFS
3022
3023 rm -rf conftest.one conftest.two conftest.dir
3024
3025 fi
3026 if test "${ac_cv_path_install+set}" = set; then
3027 INSTALL=$ac_cv_path_install
3028 else
3029 # As a last resort, use the slow shell script. Don't cache a
3030 # value for INSTALL within a source directory, because that will
3031 # break other packages using the cache if that directory is
3032 # removed, or if the value is a relative name.
3033 INSTALL=$ac_install_sh
3034 fi
3035 fi
3036 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3037 $as_echo "$INSTALL" >&6; }
3038
3039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3040 # It thinks the first close brace ends the variable substitution.
3041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3042
3043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3044
3045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:$LINENO: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 fi
3091 if test -z "$ac_cv_prog_CC"; then
3092 ac_ct_CC=$CC
3093 # Extract the first word of "gcc", so it can be a program name with args.
3094 set dummy gcc; ac_word=$2
3095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_CC="gcc"
3111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3124 else
3125 { $as_echo "$as_me:$LINENO: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129 if test "x$ac_ct_CC" = x; then
3130 CC=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138 CC=$ac_ct_CC
3139 fi
3140 else
3141 CC="$ac_cv_prog_CC"
3142 fi
3143
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3147 set dummy ${ac_tool_prefix}cc; ac_word=$2
3148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if test "${ac_cv_prog_CC+set}" = set; then
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC="${ac_tool_prefix}cc"
3164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178 { $as_echo "$as_me:$LINENO: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 fi
3185 if test -z "$CC"; then
3186 # Extract the first word of "cc", so it can be a program name with args.
3187 set dummy cc; ac_word=$2
3188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 ac_prog_rejected=no
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3205 ac_prog_rejected=yes
3206 continue
3207 fi
3208 ac_cv_prog_CC="cc"
3209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 if test $ac_prog_rejected = yes; then
3217 # We found a bogon in the path, so make sure we never use it.
3218 set dummy $ac_cv_prog_CC
3219 shift
3220 if test $# != 0; then
3221 # We chose a different compiler from the bogus one.
3222 # However, it has the same basename, so the bogon will be chosen
3223 # first if we set CC to just the basename; use the full file name.
3224 shift
3225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3226 fi
3227 fi
3228 fi
3229 fi
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235 { $as_echo "$as_me:$LINENO: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240 fi
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 for ac_prog in cl.exe
3244 do
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:$LINENO: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282 test -n "$CC" && break
3283 done
3284 fi
3285 if test -z "$CC"; then
3286 ac_ct_CC=$CC
3287 for ac_prog in cl.exe
3288 do
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290 set dummy $ac_prog; ac_word=$2
3291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_CC="$ac_prog"
3307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310 done
3311 done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317 if test -n "$ac_ct_CC"; then
3318 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3319 $as_echo "$ac_ct_CC" >&6; }
3320 else
3321 { $as_echo "$as_me:$LINENO: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325
3326 test -n "$ac_ct_CC" && break
3327 done
3328
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CC=$ac_ct_CC
3339 fi
3340 fi
3341
3342 fi
3343
3344
3345 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&5
3349 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3350 See \`config.log' for more details." >&2;}
3351 { (exit 1); exit 1; }; }; }
3352
3353 # Provide some information about the compiler.
3354 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3355 set X $ac_compile
3356 ac_compiler=$2
3357 { (ac_try="$ac_compiler --version >&5"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler --version >&5") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368 { (ac_try="$ac_compiler -v >&5"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compiler -v >&5") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }
3379 { (ac_try="$ac_compiler -V >&5"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3385 $as_echo "$ac_try_echo") >&5
3386 (eval "$ac_compiler -V >&5") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }
3390
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 ac_clean_files_save=$ac_clean_files
3407 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3408 # Try to create an executable without -o first, disregard a.out.
3409 # It will help us diagnose broken compilers, and finding out an intuition
3410 # of exeext.
3411 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3414
3415 # The possible output files:
3416 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417
3418 ac_rmfiles=
3419 for ac_file in $ac_files
3420 do
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3424 esac
3425 done
3426 rm -f $ac_rmfiles
3427
3428 if { (ac_try="$ac_link_default"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3434 $as_echo "$ac_try_echo") >&5
3435 (eval "$ac_link_default") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; then
3439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3440 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3441 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3442 # so that the user can short-circuit this test for compilers unknown to
3443 # Autoconf.
3444 for ac_file in $ac_files ''
3445 do
3446 test -f "$ac_file" || continue
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 ;;
3450 [ab].out )
3451 # We found the default executable, but exeext='' is most
3452 # certainly right.
3453 break;;
3454 *.* )
3455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3456 then :; else
3457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 fi
3459 # We set ac_cv_exeext here because the later test for it is not
3460 # safe: cross compilers may not add the suffix if given an `-o'
3461 # argument, so we may need to know it at that point already.
3462 # Even if this section looks crufty: it has the advantage of
3463 # actually working.
3464 break;;
3465 * )
3466 break;;
3467 esac
3468 done
3469 test "$ac_cv_exeext" = no && ac_cv_exeext=
3470
3471 else
3472 ac_file=''
3473 fi
3474
3475 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3476 $as_echo "$ac_file" >&6; }
3477 if test -z "$ac_file"; then
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3484 See \`config.log' for more details." >&5
3485 $as_echo "$as_me: error: C compiler cannot create executables
3486 See \`config.log' for more details." >&2;}
3487 { (exit 77); exit 77; }; }; }
3488 fi
3489
3490 ac_exeext=$ac_cv_exeext
3491
3492 # Check that the compiler produces executables we can run. If not, either
3493 # the compiler is broken, or we cross compile.
3494 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3495 $as_echo_n "checking whether the C compiler works... " >&6; }
3496 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3497 # If not cross compiling, check that we can run a simple program.
3498 if test "$cross_compiling" != yes; then
3499 if { ac_try='./$ac_file'
3500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505 $as_echo "$ac_try_echo") >&5
3506 (eval "$ac_try") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 cross_compiling=no
3511 else
3512 if test "$cross_compiling" = maybe; then
3513 cross_compiling=yes
3514 else
3515 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3518 If you meant to cross compile, use \`--host'.
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot run C compiled programs.
3521 If you meant to cross compile, use \`--host'.
3522 See \`config.log' for more details." >&2;}
3523 { (exit 1); exit 1; }; }; }
3524 fi
3525 fi
3526 fi
3527 { $as_echo "$as_me:$LINENO: result: yes" >&5
3528 $as_echo "yes" >&6; }
3529
3530 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3531 ac_clean_files=$ac_clean_files_save
3532 # Check that the compiler produces executables we can run. If not, either
3533 # the compiler is broken, or we cross compile.
3534 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3535 $as_echo_n "checking whether we are cross compiling... " >&6; }
3536 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3538
3539 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3540 $as_echo_n "checking for suffix of executables... " >&6; }
3541 if { (ac_try="$ac_link"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547 $as_echo "$ac_try_echo") >&5
3548 (eval "$ac_link") 2>&5
3549 ac_status=$?
3550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; then
3552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3554 # work properly (i.e., refer to `conftest.exe'), while it won't with
3555 # `rm'.
3556 for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 break;;
3562 * ) break;;
3563 esac
3564 done
3565 else
3566 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." >&5
3570 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }; }
3573 fi
3574
3575 rm -f conftest$ac_cv_exeext
3576 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3577 $as_echo "$ac_cv_exeext" >&6; }
3578
3579 rm -f conftest.$ac_ext
3580 EXEEXT=$ac_cv_exeext
3581 ac_exeext=$EXEEXT
3582 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3583 $as_echo_n "checking for suffix of object files... " >&6; }
3584 if test "${ac_cv_objext+set}" = set; then
3585 $as_echo_n "(cached) " >&6
3586 else
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 rm -f conftest.o conftest.obj
3603 if { (ac_try="$ac_compile"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3609 $as_echo "$ac_try_echo") >&5
3610 (eval "$ac_compile") 2>&5
3611 ac_status=$?
3612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; then
3614 for ac_file in conftest.o conftest.obj conftest.*; do
3615 test -f "$ac_file" || continue;
3616 case $ac_file in
3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3619 break;;
3620 esac
3621 done
3622 else
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3629 See \`config.log' for more details." >&5
3630 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3631 See \`config.log' for more details." >&2;}
3632 { (exit 1); exit 1; }; }; }
3633 fi
3634
3635 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3636 fi
3637 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3638 $as_echo "$ac_cv_objext" >&6; }
3639 OBJEXT=$ac_cv_objext
3640 ac_objext=$OBJEXT
3641 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3642 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3643 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3644 $as_echo_n "(cached) " >&6
3645 else
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h. */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656 #ifndef __GNUC__
3657 choke me
3658 #endif
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671 $as_echo "$ac_try_echo") >&5
3672 (eval "$ac_compile") 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && {
3679 test -z "$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 } && test -s conftest.$ac_objext; then
3682 ac_compiler_gnu=yes
3683 else
3684 $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_compiler_gnu=no
3688 fi
3689
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3692
3693 fi
3694 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3696 if test $ac_compiler_gnu = yes; then
3697 GCC=yes
3698 else
3699 GCC=
3700 fi
3701 ac_test_CFLAGS=${CFLAGS+set}
3702 ac_save_CFLAGS=$CFLAGS
3703 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3705 if test "${ac_cv_prog_cc_g+set}" = set; then
3706 $as_echo_n "(cached) " >&6
3707 else
3708 ac_save_c_werror_flag=$ac_c_werror_flag
3709 ac_c_werror_flag=yes
3710 ac_cv_prog_cc_g=no
3711 CFLAGS="-g"
3712 cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718
3719 int
3720 main ()
3721 {
3722
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3734 $as_echo "$ac_try_echo") >&5
3735 (eval "$ac_compile") 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
3740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } && {
3742 test -z "$ac_c_werror_flag" ||
3743 test ! -s conftest.err
3744 } && test -s conftest.$ac_objext; then
3745 ac_cv_prog_cc_g=yes
3746 else
3747 $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 CFLAGS=""
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757
3758 int
3759 main ()
3760 {
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773 $as_echo "$ac_try_echo") >&5
3774 (eval "$ac_compile") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
3784 :
3785 else
3786 $as_echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3790 CFLAGS="-g"
3791 cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h. */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 rm -f conftest.$ac_objext
3807 if { (ac_try="$ac_compile"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3813 $as_echo "$ac_try_echo") >&5
3814 (eval "$ac_compile") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && {
3821 test -z "$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 } && test -s conftest.$ac_objext; then
3824 ac_cv_prog_cc_g=yes
3825 else
3826 $as_echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829
3830 fi
3831
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 fi
3834
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 fi
3837
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_c_werror_flag=$ac_save_c_werror_flag
3840 fi
3841 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3842 $as_echo "$ac_cv_prog_cc_g" >&6; }
3843 if test "$ac_test_CFLAGS" = set; then
3844 CFLAGS=$ac_save_CFLAGS
3845 elif test $ac_cv_prog_cc_g = yes; then
3846 if test "$GCC" = yes; then
3847 CFLAGS="-g -O2"
3848 else
3849 CFLAGS="-g"
3850 fi
3851 else
3852 if test "$GCC" = yes; then
3853 CFLAGS="-O2"
3854 else
3855 CFLAGS=
3856 fi
3857 fi
3858 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3859 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3860 if test "${ac_cv_prog_cc_c89+set}" = set; then
3861 $as_echo_n "(cached) " >&6
3862 else
3863 ac_cv_prog_cc_c89=no
3864 ac_save_CC=$CC
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <stdarg.h>
3872 #include <stdio.h>
3873 #include <sys/types.h>
3874 #include <sys/stat.h>
3875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3876 struct buf { int x; };
3877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878 static char *e (p, i)
3879 char **p;
3880 int i;
3881 {
3882 return p[i];
3883 }
3884 static char *f (char * (*g) (char **, int), char **p, ...)
3885 {
3886 char *s;
3887 va_list v;
3888 va_start (v,p);
3889 s = g (p, va_arg (v,int));
3890 va_end (v);
3891 return s;
3892 }
3893
3894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3895 function prototypes and stuff, but not '\xHH' hex character constants.
3896 These don't provoke an error unfortunately, instead are silently treated
3897 as 'x'. The following induces an error, until -std is added to get
3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3899 array size at least. It's necessary to write '\x00'==0 to get something
3900 that's true only with -std. */
3901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902
3903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904 inside strings and character constants. */
3905 #define FOO(x) 'x'
3906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907
3908 int test (int i, double x);
3909 struct s1 {int (*f) (int a);};
3910 struct s2 {int (*f) (double a);};
3911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912 int argc;
3913 char **argv;
3914 int
3915 main ()
3916 {
3917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924 do
3925 CC="$ac_save_CC $ac_arg"
3926 rm -f conftest.$ac_objext
3927 if { (ac_try="$ac_compile"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933 $as_echo "$ac_try_echo") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 ac_cv_prog_cc_c89=$ac_arg
3945 else
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949
3950 fi
3951
3952 rm -f core conftest.err conftest.$ac_objext
3953 test "x$ac_cv_prog_cc_c89" != "xno" && break
3954 done
3955 rm -f conftest.$ac_ext
3956 CC=$ac_save_CC
3957
3958 fi
3959 # AC_CACHE_VAL
3960 case "x$ac_cv_prog_cc_c89" in
3961 x)
3962 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3963 $as_echo "none needed" >&6; } ;;
3964 xno)
3965 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3966 $as_echo "unsupported" >&6; } ;;
3967 *)
3968 CC="$CC $ac_cv_prog_cc_c89"
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3970 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3971 esac
3972
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 DEPDIR="${am__leading_dot}deps"
3980
3981 ac_config_commands="$ac_config_commands depfiles"
3982
3983
3984 am_make=${MAKE-make}
3985 cat > confinc << 'END'
3986 am__doit:
3987 @echo this is the am__doit target
3988 .PHONY: am__doit
3989 END
3990 # If we don't find an include directive, just comment out the code.
3991 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3992 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3993 am__include="#"
3994 am__quote=
3995 _am_result=none
3996 # First try GNU make style include.
3997 echo "include confinc" > confmf
3998 # Ignore all kinds of additional output from `make'.
3999 case `$am_make -s -f confmf 2> /dev/null` in #(
4000 *the\ am__doit\ target*)
4001 am__include=include
4002 am__quote=
4003 _am_result=GNU
4004 ;;
4005 esac
4006 # Now try BSD make style include.
4007 if test "$am__include" = "#"; then
4008 echo '.include "confinc"' > confmf
4009 case `$am_make -s -f confmf 2> /dev/null` in #(
4010 *the\ am__doit\ target*)
4011 am__include=.include
4012 am__quote="\""
4013 _am_result=BSD
4014 ;;
4015 esac
4016 fi
4017
4018
4019 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4020 $as_echo "$_am_result" >&6; }
4021 rm -f confinc confmf
4022
4023 # Check whether --enable-dependency-tracking was given.
4024 if test "${enable_dependency_tracking+set}" = set; then
4025 enableval=$enable_dependency_tracking;
4026 fi
4027
4028 if test "x$enable_dependency_tracking" != xno; then
4029 am_depcomp="$ac_aux_dir/depcomp"
4030 AMDEPBACKSLASH='\'
4031 fi
4032 if test "x$enable_dependency_tracking" != xno; then
4033 AMDEP_TRUE=
4034 AMDEP_FALSE='#'
4035 else
4036 AMDEP_TRUE='#'
4037 AMDEP_FALSE=
4038 fi
4039
4040
4041
4042 depcc="$CC" am_compiler_list=
4043
4044 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4045 $as_echo_n "checking dependency style of $depcc... " >&6; }
4046 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4050 # We make a subdir and do the tests there. Otherwise we can end up
4051 # making bogus files that we don't know about and never remove. For
4052 # instance it was reported that on HP-UX the gcc test will end up
4053 # making a dummy file named `D' -- because `-MD' means `put the output
4054 # in D'.
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
4067
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 fi
4072 am__universal=false
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 esac
4076
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4100 case $depmode in
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
4105 nosideeffect)
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4112 fi
4113 ;;
4114 msvisualcpp | msvcmsys)
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
4121 none) break ;;
4122 esac
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149 else
4150 am_cv_CC_dependencies_compiler_type=none
4151 fi
4152
4153 fi
4154 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4155 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4157
4158 if
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
4163 else
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4166 fi
4167
4168
4169 case `pwd` in
4170 *\ * | *\ *)
4171 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4172 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4173 esac
4174
4175
4176
4177 macro_version='2.2.6b'
4178 macro_revision='1.3017'
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 ltmain="$ac_aux_dir/ltmain.sh"
4193
4194 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4195 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4196 if test "${ac_cv_path_SED+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4198 else
4199 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4200 for ac_i in 1 2 3 4 5 6 7; do
4201 ac_script="$ac_script$as_nl$ac_script"
4202 done
4203 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4204 $as_unset ac_script || ac_script=
4205 if test -z "$SED"; then
4206 ac_path_SED_found=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_prog in sed gsed; do
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4216 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4217 # Check for GNU ac_path_SED and select it if it is found.
4218 # Check for GNU $ac_path_SED
4219 case `"$ac_path_SED" --version 2>&1` in
4220 *GNU*)
4221 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4222 *)
4223 ac_count=0
4224 $as_echo_n 0123456789 >"conftest.in"
4225 while :
4226 do
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 $as_echo '' >> "conftest.nl"
4231 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4233 ac_count=`expr $ac_count + 1`
4234 if test $ac_count -gt ${ac_path_SED_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_SED="$ac_path_SED"
4237 ac_path_SED_max=$ac_count
4238 fi
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4241 done
4242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4243 esac
4244
4245 $ac_path_SED_found && break 3
4246 done
4247 done
4248 done
4249 IFS=$as_save_IFS
4250 if test -z "$ac_cv_path_SED"; then
4251 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4252 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4253 { (exit 1); exit 1; }; }
4254 fi
4255 else
4256 ac_cv_path_SED=$SED
4257 fi
4258
4259 fi
4260 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4261 $as_echo "$ac_cv_path_SED" >&6; }
4262 SED="$ac_cv_path_SED"
4263 rm -f conftest.sed
4264
4265 test -z "$SED" && SED=sed
4266 Xsed="$SED -e 1s/^X//"
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if test "${ac_cv_path_GREP+set}" = set; then
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300 *)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 ac_count=`expr $ac_count + 1`
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4322
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4330 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4331 { (exit 1); exit 1; }; }
4332 fi
4333 else
4334 ac_cv_path_GREP=$GREP
4335 fi
4336
4337 fi
4338 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4339 $as_echo "$ac_cv_path_GREP" >&6; }
4340 GREP="$ac_cv_path_GREP"
4341
4342
4343 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4344 $as_echo_n "checking for egrep... " >&6; }
4345 if test "${ac_cv_path_EGREP+set}" = set; then
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4349 then ac_cv_path_EGREP="$GREP -E"
4350 else
4351 if test -z "$EGREP"; then
4352 ac_path_EGREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in egrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4363 # Check for GNU ac_path_EGREP and select it if it is found.
4364 # Check for GNU $ac_path_EGREP
4365 case `"$ac_path_EGREP" --version 2>&1` in
4366 *GNU*)
4367 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4368 *)
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4372 do
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'EGREP' >> "conftest.nl"
4377 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 ac_count=`expr $ac_count + 1`
4380 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_EGREP="$ac_path_EGREP"
4383 ac_path_EGREP_max=$ac_count
4384 fi
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 esac
4390
4391 $ac_path_EGREP_found && break 3
4392 done
4393 done
4394 done
4395 IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_EGREP"; then
4397 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4398 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4399 { (exit 1); exit 1; }; }
4400 fi
4401 else
4402 ac_cv_path_EGREP=$EGREP
4403 fi
4404
4405 fi
4406 fi
4407 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4408 $as_echo "$ac_cv_path_EGREP" >&6; }
4409 EGREP="$ac_cv_path_EGREP"
4410
4411
4412 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4413 $as_echo_n "checking for fgrep... " >&6; }
4414 if test "${ac_cv_path_FGREP+set}" = set; then
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4418 then ac_cv_path_FGREP="$GREP -F"
4419 else
4420 if test -z "$FGREP"; then
4421 ac_path_FGREP_found=false
4422 # Loop through the user's path and test for each of PROGNAME-LIST
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_prog in fgrep; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4431 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4432 # Check for GNU ac_path_FGREP and select it if it is found.
4433 # Check for GNU $ac_path_FGREP
4434 case `"$ac_path_FGREP" --version 2>&1` in
4435 *GNU*)
4436 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4437 *)
4438 ac_count=0
4439 $as_echo_n 0123456789 >"conftest.in"
4440 while :
4441 do
4442 cat "conftest.in" "conftest.in" >"conftest.tmp"
4443 mv "conftest.tmp" "conftest.in"
4444 cp "conftest.in" "conftest.nl"
4445 $as_echo 'FGREP' >> "conftest.nl"
4446 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4448 ac_count=`expr $ac_count + 1`
4449 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4450 # Best one so far, save it but keep looking for a better one
4451 ac_cv_path_FGREP="$ac_path_FGREP"
4452 ac_path_FGREP_max=$ac_count
4453 fi
4454 # 10*(2^10) chars as input seems more than enough
4455 test $ac_count -gt 10 && break
4456 done
4457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4458 esac
4459
4460 $ac_path_FGREP_found && break 3
4461 done
4462 done
4463 done
4464 IFS=$as_save_IFS
4465 if test -z "$ac_cv_path_FGREP"; then
4466 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4467 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4468 { (exit 1); exit 1; }; }
4469 fi
4470 else
4471 ac_cv_path_FGREP=$FGREP
4472 fi
4473
4474 fi
4475 fi
4476 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4477 $as_echo "$ac_cv_path_FGREP" >&6; }
4478 FGREP="$ac_cv_path_FGREP"
4479
4480
4481 test -z "$GREP" && GREP=grep
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501 # Check whether --with-gnu-ld was given.
4502 if test "${with_gnu_ld+set}" = set; then
4503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4504 else
4505 with_gnu_ld=no
4506 fi
4507
4508 ac_prog=ld
4509 if test "$GCC" = yes; then
4510 # Check if gcc -print-prog-name=ld gives a path.
4511 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4512 $as_echo_n "checking for ld used by $CC... " >&6; }
4513 case $host in
4514 *-*-mingw*)
4515 # gcc leaves a trailing carriage return which upsets mingw
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4517 *)
4518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4519 esac
4520 case $ac_prog in
4521 # Accept absolute paths.
4522 [\\/]* | ?:[\\/]*)
4523 re_direlt='/[^/][^/]*/\.\./'
4524 # Canonicalize the pathname of ld
4525 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4526 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4527 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4528 done
4529 test -z "$LD" && LD="$ac_prog"
4530 ;;
4531 "")
4532 # If it fails, then pretend we aren't using GCC.
4533 ac_prog=ld
4534 ;;
4535 *)
4536 # If it is relative, then search for the first ld in PATH.
4537 with_gnu_ld=unknown
4538 ;;
4539 esac
4540 elif test "$with_gnu_ld" = yes; then
4541 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4542 $as_echo_n "checking for GNU ld... " >&6; }
4543 else
4544 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4545 $as_echo_n "checking for non-GNU ld... " >&6; }
4546 fi
4547 if test "${lt_cv_path_LD+set}" = set; then
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -z "$LD"; then
4551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4552 for ac_dir in $PATH; do
4553 IFS="$lt_save_ifs"
4554 test -z "$ac_dir" && ac_dir=.
4555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4556 lt_cv_path_LD="$ac_dir/$ac_prog"
4557 # Check to see if the program is GNU ld. I'd rather use --version,
4558 # but apparently some variants of GNU ld only accept -v.
4559 # Break only if it was the GNU/non-GNU ld that we prefer.
4560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4561 *GNU* | *'with BFD'*)
4562 test "$with_gnu_ld" != no && break
4563 ;;
4564 *)
4565 test "$with_gnu_ld" != yes && break
4566 ;;
4567 esac
4568 fi
4569 done
4570 IFS="$lt_save_ifs"
4571 else
4572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4573 fi
4574 fi
4575
4576 LD="$lt_cv_path_LD"
4577 if test -n "$LD"; then
4578 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4579 $as_echo "$LD" >&6; }
4580 else
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4585 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4586 { (exit 1); exit 1; }; }
4587 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4588 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4589 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4590 $as_echo_n "(cached) " >&6
4591 else
4592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4593 case `$LD -v 2>&1 </dev/null` in
4594 *GNU* | *'with BFD'*)
4595 lt_cv_prog_gnu_ld=yes
4596 ;;
4597 *)
4598 lt_cv_prog_gnu_ld=no
4599 ;;
4600 esac
4601 fi
4602 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4603 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4604 with_gnu_ld=$lt_cv_prog_gnu_ld
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4615 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4616 if test "${lt_cv_path_NM+set}" = set; then
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if test -n "$NM"; then
4620 # Let the user override the test.
4621 lt_cv_path_NM="$NM"
4622 else
4623 lt_nm_to_check="${ac_tool_prefix}nm"
4624 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4625 lt_nm_to_check="$lt_nm_to_check nm"
4626 fi
4627 for lt_tmp_nm in $lt_nm_to_check; do
4628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4629 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4630 IFS="$lt_save_ifs"
4631 test -z "$ac_dir" && ac_dir=.
4632 tmp_nm="$ac_dir/$lt_tmp_nm"
4633 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4634 # Check to see if the nm accepts a BSD-compat flag.
4635 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4636 # nm: unknown option "B" ignored
4637 # Tru64's nm complains that /dev/null is an invalid object file
4638 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4639 */dev/null* | *'Invalid file or object type'*)
4640 lt_cv_path_NM="$tmp_nm -B"
4641 break
4642 ;;
4643 *)
4644 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4645 */dev/null*)
4646 lt_cv_path_NM="$tmp_nm -p"
4647 break
4648 ;;
4649 *)
4650 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4651 continue # so that we can try to find one that supports BSD flags
4652 ;;
4653 esac
4654 ;;
4655 esac
4656 fi
4657 done
4658 IFS="$lt_save_ifs"
4659 done
4660 : ${lt_cv_path_NM=no}
4661 fi
4662 fi
4663 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4664 $as_echo "$lt_cv_path_NM" >&6; }
4665 if test "$lt_cv_path_NM" != "no"; then
4666 NM="$lt_cv_path_NM"
4667 else
4668 # Didn't find any BSD compatible name lister, look for dumpbin.
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4671 do
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$DUMPBIN"; then
4680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 DUMPBIN=$ac_cv_prog_DUMPBIN
4700 if test -n "$DUMPBIN"; then
4701 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4702 $as_echo "$DUMPBIN" >&6; }
4703 else
4704 { $as_echo "$as_me:$LINENO: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708
4709 test -n "$DUMPBIN" && break
4710 done
4711 fi
4712 if test -z "$DUMPBIN"; then
4713 ac_ct_DUMPBIN=$DUMPBIN
4714 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4715 do
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_DUMPBIN"; then
4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4744 if test -n "$ac_ct_DUMPBIN"; then
4745 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4746 $as_echo "$ac_ct_DUMPBIN" >&6; }
4747 else
4748 { $as_echo "$as_me:$LINENO: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 test -n "$ac_ct_DUMPBIN" && break
4754 done
4755
4756 if test "x$ac_ct_DUMPBIN" = x; then
4757 DUMPBIN=":"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 DUMPBIN=$ac_ct_DUMPBIN
4766 fi
4767 fi
4768
4769
4770 if test "$DUMPBIN" != ":"; then
4771 NM="$DUMPBIN"
4772 fi
4773 fi
4774 test -z "$NM" && NM=nm
4775
4776
4777
4778
4779
4780
4781 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4782 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4783 if test "${lt_cv_nm_interface+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4785 else
4786 lt_cv_nm_interface="BSD nm"
4787 echo "int some_variable = 0;" > conftest.$ac_ext
4788 (eval echo "\"\$as_me:4788: $ac_compile\"" >&5)
4789 (eval "$ac_compile" 2>conftest.err)
4790 cat conftest.err >&5
4791 (eval echo "\"\$as_me:4791: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4792 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4793 cat conftest.err >&5
4794 (eval echo "\"\$as_me:4794: output\"" >&5)
4795 cat conftest.out >&5
4796 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4797 lt_cv_nm_interface="MS dumpbin"
4798 fi
4799 rm -f conftest*
4800 fi
4801 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4802 $as_echo "$lt_cv_nm_interface" >&6; }
4803
4804 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4805 $as_echo_n "checking whether ln -s works... " >&6; }
4806 LN_S=$as_ln_s
4807 if test "$LN_S" = "ln -s"; then
4808 { $as_echo "$as_me:$LINENO: result: yes" >&5
4809 $as_echo "yes" >&6; }
4810 else
4811 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4812 $as_echo "no, using $LN_S" >&6; }
4813 fi
4814
4815 # find the maximum length of command line arguments
4816 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4817 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4818 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4820 else
4821 i=0
4822 teststring="ABCD"
4823
4824 case $build_os in
4825 msdosdjgpp*)
4826 # On DJGPP, this test can blow up pretty badly due to problems in libc
4827 # (any single argument exceeding 2000 bytes causes a buffer overrun
4828 # during glob expansion). Even if it were fixed, the result of this
4829 # check would be larger than it should be.
4830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4831 ;;
4832
4833 gnu*)
4834 # Under GNU Hurd, this test is not required because there is
4835 # no limit to the length of command line arguments.
4836 # Libtool will interpret -1 as no limit whatsoever
4837 lt_cv_sys_max_cmd_len=-1;
4838 ;;
4839
4840 cygwin* | mingw* | cegcc*)
4841 # On Win9x/ME, this test blows up -- it succeeds, but takes
4842 # about 5 minutes as the teststring grows exponentially.
4843 # Worse, since 9x/ME are not pre-emptively multitasking,
4844 # you end up with a "frozen" computer, even though with patience
4845 # the test eventually succeeds (with a max line length of 256k).
4846 # Instead, let's just punt: use the minimum linelength reported by
4847 # all of the supported platforms: 8192 (on NT/2K/XP).
4848 lt_cv_sys_max_cmd_len=8192;
4849 ;;
4850
4851 amigaos*)
4852 # On AmigaOS with pdksh, this test takes hours, literally.
4853 # So we just punt and use a minimum line length of 8192.
4854 lt_cv_sys_max_cmd_len=8192;
4855 ;;
4856
4857 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4858 # This has been around since 386BSD, at least. Likely further.
4859 if test -x /sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4861 elif test -x /usr/sbin/sysctl; then
4862 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4863 else
4864 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4865 fi
4866 # And add a safety zone
4867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4869 ;;
4870
4871 interix*)
4872 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4873 lt_cv_sys_max_cmd_len=196608
4874 ;;
4875
4876 osf*)
4877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4879 # nice to cause kernel panics so lets avoid the loop below.
4880 # First set a reasonable default.
4881 lt_cv_sys_max_cmd_len=16384
4882 #
4883 if test -x /sbin/sysconfig; then
4884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4886 esac
4887 fi
4888 ;;
4889 sco3.2v5*)
4890 lt_cv_sys_max_cmd_len=102400
4891 ;;
4892 sysv5* | sco5v6* | sysv4.2uw2*)
4893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4894 if test -n "$kargmax"; then
4895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4896 else
4897 lt_cv_sys_max_cmd_len=32768
4898 fi
4899 ;;
4900 *)
4901 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4902 if test -n "$lt_cv_sys_max_cmd_len"; then
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905 else
4906 # Make teststring a little bigger before we do anything with it.
4907 # a 1K string should be a reasonable start.
4908 for i in 1 2 3 4 5 6 7 8 ; do
4909 teststring=$teststring$teststring
4910 done
4911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4912 # If test is not a shell built-in, we'll probably end up computing a
4913 # maximum length that is only half of the actual maximum length, but
4914 # we can't tell.
4915 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4916 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4917 test $i != 17 # 1/2 MB should be enough
4918 do
4919 i=`expr $i + 1`
4920 teststring=$teststring$teststring
4921 done
4922 # Only check the string length outside the loop.
4923 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4924 teststring=
4925 # Add a significant safety factor because C++ compilers can tack on
4926 # massive amounts of additional arguments before passing them to the
4927 # linker. It appears as though 1/2 is a usable value.
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4929 fi
4930 ;;
4931 esac
4932
4933 fi
4934
4935 if test -n $lt_cv_sys_max_cmd_len ; then
4936 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4937 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4938 else
4939 { $as_echo "$as_me:$LINENO: result: none" >&5
4940 $as_echo "none" >&6; }
4941 fi
4942 max_cmd_len=$lt_cv_sys_max_cmd_len
4943
4944
4945
4946
4947
4948
4949 : ${CP="cp -f"}
4950 : ${MV="mv -f"}
4951 : ${RM="rm -f"}
4952
4953 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4954 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4955 # Try some XSI features
4956 xsi_shell=no
4957 ( _lt_dummy="a/b/c"
4958 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4959 = c,a/b,, \
4960 && eval 'test $(( 1 + 1 )) -eq 2 \
4961 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4962 && xsi_shell=yes
4963 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4964 $as_echo "$xsi_shell" >&6; }
4965
4966
4967 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4968 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4969 lt_shell_append=no
4970 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4971 >/dev/null 2>&1 \
4972 && lt_shell_append=yes
4973 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4974 $as_echo "$lt_shell_append" >&6; }
4975
4976
4977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4978 lt_unset=unset
4979 else
4980 lt_unset=false
4981 fi
4982
4983
4984
4985
4986
4987 # test EBCDIC or ASCII
4988 case `echo X|tr X '\101'` in
4989 A) # ASCII based system
4990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4991 lt_SP2NL='tr \040 \012'
4992 lt_NL2SP='tr \015\012 \040\040'
4993 ;;
4994 *) # EBCDIC based system
4995 lt_SP2NL='tr \100 \n'
4996 lt_NL2SP='tr \r\n \100\100'
4997 ;;
4998 esac
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5009 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5010 if test "${lt_cv_ld_reload_flag+set}" = set; then
5011 $as_echo_n "(cached) " >&6
5012 else
5013 lt_cv_ld_reload_flag='-r'
5014 fi
5015 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5016 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5017 reload_flag=$lt_cv_ld_reload_flag
5018 case $reload_flag in
5019 "" | " "*) ;;
5020 *) reload_flag=" $reload_flag" ;;
5021 esac
5022 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5023 case $host_os in
5024 darwin*)
5025 if test "$GCC" = yes; then
5026 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5027 else
5028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5029 fi
5030 ;;
5031 esac
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$OBJDUMP"; then
5050 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 OBJDUMP=$ac_cv_prog_OBJDUMP
5070 if test -n "$OBJDUMP"; then
5071 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5072 $as_echo "$OBJDUMP" >&6; }
5073 else
5074 { $as_echo "$as_me:$LINENO: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079 fi
5080 if test -z "$ac_cv_prog_OBJDUMP"; then
5081 ac_ct_OBJDUMP=$OBJDUMP
5082 # Extract the first word of "objdump", so it can be a program name with args.
5083 set dummy objdump; ac_word=$2
5084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$ac_ct_OBJDUMP"; then
5090 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103 done
5104 done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5110 if test -n "$ac_ct_OBJDUMP"; then
5111 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5112 $as_echo "$ac_ct_OBJDUMP" >&6; }
5113 else
5114 { $as_echo "$as_me:$LINENO: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117
5118 if test "x$ac_ct_OBJDUMP" = x; then
5119 OBJDUMP="false"
5120 else
5121 case $cross_compiling:$ac_tool_warned in
5122 yes:)
5123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125 ac_tool_warned=yes ;;
5126 esac
5127 OBJDUMP=$ac_ct_OBJDUMP
5128 fi
5129 else
5130 OBJDUMP="$ac_cv_prog_OBJDUMP"
5131 fi
5132
5133 test -z "$OBJDUMP" && OBJDUMP=objdump
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5144 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5145 if test "${lt_cv_deplibs_check_method+set}" = set; then
5146 $as_echo_n "(cached) " >&6
5147 else
5148 lt_cv_file_magic_cmd='$MAGIC_CMD'
5149 lt_cv_file_magic_test_file=
5150 lt_cv_deplibs_check_method='unknown'
5151 # Need to set the preceding variable on all platforms that support
5152 # interlibrary dependencies.
5153 # 'none' -- dependencies not supported.
5154 # `unknown' -- same as none, but documents that we really don't know.
5155 # 'pass_all' -- all dependencies passed with no checks.
5156 # 'test_compile' -- check by making test program.
5157 # 'file_magic [[regex]]' -- check by looking for files in library path
5158 # which responds to the $file_magic_cmd with a given extended regex.
5159 # If you have `file' or equivalent on your system and you're not sure
5160 # whether `pass_all' will *always* work, you probably want this one.
5161
5162 case $host_os in
5163 aix[4-9]*)
5164 lt_cv_deplibs_check_method=pass_all
5165 ;;
5166
5167 beos*)
5168 lt_cv_deplibs_check_method=pass_all
5169 ;;
5170
5171 bsdi[45]*)
5172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5173 lt_cv_file_magic_cmd='/usr/bin/file -L'
5174 lt_cv_file_magic_test_file=/shlib/libc.so
5175 ;;
5176
5177 cygwin*)
5178 # func_win32_libid is a shell function defined in ltmain.sh
5179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5180 lt_cv_file_magic_cmd='func_win32_libid'
5181 ;;
5182
5183 mingw* | pw32*)
5184 # Base MSYS/MinGW do not provide the 'file' command needed by
5185 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5186 # unless we find 'file', for example because we are cross-compiling.
5187 if ( file / ) >/dev/null 2>&1; then
5188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189 lt_cv_file_magic_cmd='func_win32_libid'
5190 else
5191 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5192 lt_cv_file_magic_cmd='$OBJDUMP -f'
5193 fi
5194 ;;
5195
5196 cegcc)
5197 # use the weaker test based on 'objdump'. See mingw*.
5198 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5199 lt_cv_file_magic_cmd='$OBJDUMP -f'
5200 ;;
5201
5202 darwin* | rhapsody*)
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
5205
5206 freebsd* | dragonfly*)
5207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5208 case $host_cpu in
5209 i*86 )
5210 # Not sure whether the presence of OpenBSD here was a mistake.
5211 # Let's accept both of them until this is cleared up.
5212 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5213 lt_cv_file_magic_cmd=/usr/bin/file
5214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5215 ;;
5216 esac
5217 else
5218 lt_cv_deplibs_check_method=pass_all
5219 fi
5220 ;;
5221
5222 gnu*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225
5226 hpux10.20* | hpux11*)
5227 lt_cv_file_magic_cmd=/usr/bin/file
5228 case $host_cpu in
5229 ia64*)
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5231 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5232 ;;
5233 hppa*64*)
5234 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]'
5235 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5236 ;;
5237 *)
5238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5239 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5240 ;;
5241 esac
5242 ;;
5243
5244 interix[3-9]*)
5245 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5247 ;;
5248
5249 irix5* | irix6* | nonstopux*)
5250 case $LD in
5251 *-32|*"-32 ") libmagic=32-bit;;
5252 *-n32|*"-n32 ") libmagic=N32;;
5253 *-64|*"-64 ") libmagic=64-bit;;
5254 *) libmagic=never-match;;
5255 esac
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258
5259 # This must be Linux ELF.
5260 linux* | k*bsd*-gnu)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 netbsd*)
5265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5267 else
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5269 fi
5270 ;;
5271
5272 newos6*)
5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5274 lt_cv_file_magic_cmd=/usr/bin/file
5275 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5276 ;;
5277
5278 *nto* | *qnx*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282 openbsd*)
5283 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5285 else
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5287 fi
5288 ;;
5289
5290 osf3* | osf4* | osf5*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 rdos*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298 solaris*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 sysv4 | sysv4.3*)
5307 case $host_vendor in
5308 motorola)
5309 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]'
5310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5311 ;;
5312 ncr)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315 sequent)
5316 lt_cv_file_magic_cmd='/bin/file'
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5318 ;;
5319 sni)
5320 lt_cv_file_magic_cmd='/bin/file'
5321 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5322 lt_cv_file_magic_test_file=/lib/libc.so
5323 ;;
5324 siemens)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327 pc)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330 esac
5331 ;;
5332
5333 tpf*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336 esac
5337
5338 fi
5339 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5340 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5341 file_magic_cmd=$lt_cv_file_magic_cmd
5342 deplibs_check_method=$lt_cv_deplibs_check_method
5343 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}ar; ac_word=$2
5359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_AR+set}" = set; then
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$AR"; then
5365 ac_cv_prog_AR="$AR" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_AR="${ac_tool_prefix}ar"
5375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 AR=$ac_cv_prog_AR
5385 if test -n "$AR"; then
5386 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5387 $as_echo "$AR" >&6; }
5388 else
5389 { $as_echo "$as_me:$LINENO: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 fi
5395 if test -z "$ac_cv_prog_AR"; then
5396 ac_ct_AR=$AR
5397 # Extract the first word of "ar", so it can be a program name with args.
5398 set dummy ar; ac_word=$2
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_AR"; then
5405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_AR="ar"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5425 if test -n "$ac_ct_AR"; then
5426 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5427 $as_echo "$ac_ct_AR" >&6; }
5428 else
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433 if test "x$ac_ct_AR" = x; then
5434 AR="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 AR=$ac_ct_AR
5443 fi
5444 else
5445 AR="$ac_cv_prog_AR"
5446 fi
5447
5448 test -z "$AR" && AR=ar
5449 test -z "$AR_FLAGS" && AR_FLAGS=cru
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461 if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463 set dummy ${ac_tool_prefix}strip; ac_word=$2
5464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if test "${ac_cv_prog_STRIP+set}" = set; then
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$STRIP"; then
5470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 STRIP=$ac_cv_prog_STRIP
5490 if test -n "$STRIP"; then
5491 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5492 $as_echo "$STRIP" >&6; }
5493 else
5494 { $as_echo "$as_me:$LINENO: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498
5499 fi
5500 if test -z "$ac_cv_prog_STRIP"; then
5501 ac_ct_STRIP=$STRIP
5502 # Extract the first word of "strip", so it can be a program name with args.
5503 set dummy strip; ac_word=$2
5504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$ac_ct_STRIP"; then
5510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523 done
5524 done
5525 IFS=$as_save_IFS
5526
5527 fi
5528 fi
5529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530 if test -n "$ac_ct_STRIP"; then
5531 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5532 $as_echo "$ac_ct_STRIP" >&6; }
5533 else
5534 { $as_echo "$as_me:$LINENO: result: no" >&5
5535 $as_echo "no" >&6; }
5536 fi
5537
5538 if test "x$ac_ct_STRIP" = x; then
5539 STRIP=":"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 STRIP=$ac_ct_STRIP
5548 fi
5549 else
5550 STRIP="$ac_cv_prog_STRIP"
5551 fi
5552
5553 test -z "$STRIP" && STRIP=:
5554
5555
5556
5557
5558
5559
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_prog_RANLIB+set}" = set; then
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$RANLIB"; then
5569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 RANLIB=$ac_cv_prog_RANLIB
5589 if test -n "$RANLIB"; then
5590 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5591 $as_echo "$RANLIB" >&6; }
5592 else
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598 fi
5599 if test -z "$ac_cv_prog_RANLIB"; then
5600 ac_ct_RANLIB=$RANLIB
5601 # Extract the first word of "ranlib", so it can be a program name with args.
5602 set dummy ranlib; ac_word=$2
5603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_RANLIB"; then
5609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_RANLIB="ranlib"
5619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629 if test -n "$ac_ct_RANLIB"; then
5630 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5631 $as_echo "$ac_ct_RANLIB" >&6; }
5632 else
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637 if test "x$ac_ct_RANLIB" = x; then
5638 RANLIB=":"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 RANLIB=$ac_ct_RANLIB
5647 fi
5648 else
5649 RANLIB="$ac_cv_prog_RANLIB"
5650 fi
5651
5652 test -z "$RANLIB" && RANLIB=:
5653
5654
5655
5656
5657
5658
5659 # Determine commands to create old-style static archives.
5660 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661 old_postinstall_cmds='chmod 644 $oldlib'
5662 old_postuninstall_cmds=
5663
5664 if test -n "$RANLIB"; then
5665 case $host_os in
5666 openbsd*)
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5668 ;;
5669 *)
5670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5671 ;;
5672 esac
5673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5674 fi
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709 # If no C compiler was specified, use CC.
5710 LTCC=${LTCC-"$CC"}
5711
5712 # If no C compiler flags were specified, use CFLAGS.
5713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5714
5715 # Allow CC to be a program name with arguments.
5716 compiler=$CC
5717
5718
5719 # Check for command to grab the raw symbol name followed by C symbol from nm.
5720 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5722 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5723 $as_echo_n "(cached) " >&6
5724 else
5725
5726 # These are sane defaults that work on at least a few old systems.
5727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5728
5729 # Character class describing NM global symbol codes.
5730 symcode='[BCDEGRST]'
5731
5732 # Regexp to match symbols that can be accessed directly from C.
5733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5734
5735 # Define system-specific variables.
5736 case $host_os in
5737 aix*)
5738 symcode='[BCDT]'
5739 ;;
5740 cygwin* | mingw* | pw32* | cegcc*)
5741 symcode='[ABCDGISTW]'
5742 ;;
5743 hpux*)
5744 if test "$host_cpu" = ia64; then
5745 symcode='[ABCDEGRST]'
5746 fi
5747 ;;
5748 irix* | nonstopux*)
5749 symcode='[BCDEGRST]'
5750 ;;
5751 osf*)
5752 symcode='[BCDEGQRST]'
5753 ;;
5754 solaris*)
5755 symcode='[BDRT]'
5756 ;;
5757 sco3.2v5*)
5758 symcode='[DT]'
5759 ;;
5760 sysv4.2uw2*)
5761 symcode='[DT]'
5762 ;;
5763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5764 symcode='[ABDT]'
5765 ;;
5766 sysv4)
5767 symcode='[DFNSTU]'
5768 ;;
5769 esac
5770
5771 # If we're using GNU nm, then use its standard symbol codes.
5772 case `$NM -V 2>&1` in
5773 *GNU* | *'with BFD'*)
5774 symcode='[ABCDGIRSTW]' ;;
5775 esac
5776
5777 # Transform an extracted symbol line into a proper C declaration.
5778 # Some systems (esp. on ia64) link data and code symbols differently,
5779 # so use this general approach.
5780 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5781
5782 # Transform an extracted symbol line into symbol name and symbol address
5783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5784 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'"
5785
5786 # Handle CRLF in mingw tool chain
5787 opt_cr=
5788 case $build_os in
5789 mingw*)
5790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5791 ;;
5792 esac
5793
5794 # Try without a prefix underscore, then with it.
5795 for ac_symprfx in "" "_"; do
5796
5797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5798 symxfrm="\\1 $ac_symprfx\\2 \\2"
5799
5800 # Write the raw and C identifiers.
5801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5802 # Fake it for dumpbin and say T for any non-static function
5803 # and D for any global variable.
5804 # Also find C++ and __fastcall symbols from MSVC++,
5805 # which start with @ or ?.
5806 lt_cv_sys_global_symbol_pipe="$AWK '"\
5807 " {last_section=section; section=\$ 3};"\
5808 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5809 " \$ 0!~/External *\|/{next};"\
5810 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5811 " {if(hide[section]) next};"\
5812 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5813 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5814 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5815 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5816 " ' prfx=^$ac_symprfx"
5817 else
5818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5819 fi
5820
5821 # Check to see that the pipe works correctly.
5822 pipe_works=no
5823
5824 rm -f conftest*
5825 cat > conftest.$ac_ext <<_LT_EOF
5826 #ifdef __cplusplus
5827 extern "C" {
5828 #endif
5829 char nm_test_var;
5830 void nm_test_func(void);
5831 void nm_test_func(void){}
5832 #ifdef __cplusplus
5833 }
5834 #endif
5835 int main(){nm_test_var='a';nm_test_func();return(0);}
5836 _LT_EOF
5837
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>&5
5840 ac_status=$?
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; then
5843 # Now try to grab the symbols.
5844 nlist=conftest.nm
5845 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5847 ac_status=$?
5848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && test -s "$nlist"; then
5850 # Try sorting and uniquifying the output.
5851 if sort "$nlist" | uniq > "$nlist"T; then
5852 mv -f "$nlist"T "$nlist"
5853 else
5854 rm -f "$nlist"T
5855 fi
5856
5857 # Make sure that we snagged all the symbols we need.
5858 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5859 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5860 cat <<_LT_EOF > conftest.$ac_ext
5861 #ifdef __cplusplus
5862 extern "C" {
5863 #endif
5864
5865 _LT_EOF
5866 # Now generate the symbol file.
5867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5868
5869 cat <<_LT_EOF >> conftest.$ac_ext
5870
5871 /* The mapping between symbol names and symbols. */
5872 const struct {
5873 const char *name;
5874 void *address;
5875 }
5876 lt__PROGRAM__LTX_preloaded_symbols[] =
5877 {
5878 { "@PROGRAM@", (void *) 0 },
5879 _LT_EOF
5880 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5881 cat <<\_LT_EOF >> conftest.$ac_ext
5882 {0, (void *) 0}
5883 };
5884
5885 /* This works around a problem in FreeBSD linker */
5886 #ifdef FREEBSD_WORKAROUND
5887 static const void *lt_preloaded_setup() {
5888 return lt__PROGRAM__LTX_preloaded_symbols;
5889 }
5890 #endif
5891
5892 #ifdef __cplusplus
5893 }
5894 #endif
5895 _LT_EOF
5896 # Now try linking the two files.
5897 mv conftest.$ac_objext conftstm.$ac_objext
5898 lt_save_LIBS="$LIBS"
5899 lt_save_CFLAGS="$CFLAGS"
5900 LIBS="conftstm.$ac_objext"
5901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5903 (eval $ac_link) 2>&5
5904 ac_status=$?
5905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5907 pipe_works=yes
5908 fi
5909 LIBS="$lt_save_LIBS"
5910 CFLAGS="$lt_save_CFLAGS"
5911 else
5912 echo "cannot find nm_test_func in $nlist" >&5
5913 fi
5914 else
5915 echo "cannot find nm_test_var in $nlist" >&5
5916 fi
5917 else
5918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5919 fi
5920 else
5921 echo "$progname: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 fi
5924 rm -rf conftest* conftst*
5925
5926 # Do not use the global_symbol_pipe unless it works.
5927 if test "$pipe_works" = yes; then
5928 break
5929 else
5930 lt_cv_sys_global_symbol_pipe=
5931 fi
5932 done
5933
5934 fi
5935
5936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5937 lt_cv_sys_global_symbol_to_cdecl=
5938 fi
5939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5940 { $as_echo "$as_me:$LINENO: result: failed" >&5
5941 $as_echo "failed" >&6; }
5942 else
5943 { $as_echo "$as_me:$LINENO: result: ok" >&5
5944 $as_echo "ok" >&6; }
5945 fi
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969 # Check whether --enable-libtool-lock was given.
5970 if test "${enable_libtool_lock+set}" = set; then
5971 enableval=$enable_libtool_lock;
5972 fi
5973
5974 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5975
5976 # Some flags need to be propagated to the compiler or linker for good
5977 # libtool support.
5978 case $host in
5979 ia64-*-hpux*)
5980 # Find out which ABI we are using.
5981 echo 'int i;' > conftest.$ac_ext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>&5
5984 ac_status=$?
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; then
5987 case `/usr/bin/file conftest.$ac_objext` in
5988 *ELF-32*)
5989 HPUX_IA64_MODE="32"
5990 ;;
5991 *ELF-64*)
5992 HPUX_IA64_MODE="64"
5993 ;;
5994 esac
5995 fi
5996 rm -rf conftest*
5997 ;;
5998 *-*-irix6*)
5999 # Find out which ABI we are using.
6000 echo '#line 6000 "configure"' > conftest.$ac_ext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>&5
6003 ac_status=$?
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; then
6006 if test "$lt_cv_prog_gnu_ld" = yes; then
6007 case `/usr/bin/file conftest.$ac_objext` in
6008 *32-bit*)
6009 LD="${LD-ld} -melf32bsmip"
6010 ;;
6011 *N32*)
6012 LD="${LD-ld} -melf32bmipn32"
6013 ;;
6014 *64-bit*)
6015 LD="${LD-ld} -melf64bmip"
6016 ;;
6017 esac
6018 else
6019 case `/usr/bin/file conftest.$ac_objext` in
6020 *32-bit*)
6021 LD="${LD-ld} -32"
6022 ;;
6023 *N32*)
6024 LD="${LD-ld} -n32"
6025 ;;
6026 *64-bit*)
6027 LD="${LD-ld} -64"
6028 ;;
6029 esac
6030 fi
6031 fi
6032 rm -rf conftest*
6033 ;;
6034
6035 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6036 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6041 ac_status=$?
6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; then
6044 case `/usr/bin/file conftest.o` in
6045 *32-bit*)
6046 case $host in
6047 x86_64-*kfreebsd*-gnu)
6048 LD="${LD-ld} -m elf_i386_fbsd"
6049 ;;
6050 x86_64-*linux*)
6051 LD="${LD-ld} -m elf_i386"
6052 ;;
6053 ppc64-*linux*|powerpc64-*linux*)
6054 LD="${LD-ld} -m elf32ppclinux"
6055 ;;
6056 s390x-*linux*)
6057 LD="${LD-ld} -m elf_s390"
6058 ;;
6059 sparc64-*linux*)
6060 LD="${LD-ld} -m elf32_sparc"
6061 ;;
6062 esac
6063 ;;
6064 *64-bit*)
6065 case $host in
6066 x86_64-*kfreebsd*-gnu)
6067 LD="${LD-ld} -m elf_x86_64_fbsd"
6068 ;;
6069 x86_64-*linux*)
6070 LD="${LD-ld} -m elf_x86_64"
6071 ;;
6072 ppc*-*linux*|powerpc*-*linux*)
6073 LD="${LD-ld} -m elf64ppc"
6074 ;;
6075 s390*-*linux*|s390*-*tpf*)
6076 LD="${LD-ld} -m elf64_s390"
6077 ;;
6078 sparc*-*linux*)
6079 LD="${LD-ld} -m elf64_sparc"
6080 ;;
6081 esac
6082 ;;
6083 esac
6084 fi
6085 rm -rf conftest*
6086 ;;
6087
6088 *-*-sco3.2v5*)
6089 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6090 SAVE_CFLAGS="$CFLAGS"
6091 CFLAGS="$CFLAGS -belf"
6092 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6093 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6094 if test "${lt_cv_cc_needs_belf+set}" = set; then
6095 $as_echo_n "(cached) " >&6
6096 else
6097 ac_ext=c
6098 ac_cpp='$CPP $CPPFLAGS'
6099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109
6110 int
6111 main ()
6112 {
6113
6114 ;
6115 return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (ac_try="$ac_link"
6120 case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123 esac
6124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125 $as_echo "$ac_try_echo") >&5
6126 (eval "$ac_link") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest$ac_exeext && {
6136 test "$cross_compiling" = yes ||
6137 $as_test_x conftest$ac_exeext
6138 }; then
6139 lt_cv_cc_needs_belf=yes
6140 else
6141 $as_echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 lt_cv_cc_needs_belf=no
6145 fi
6146
6147 rm -rf conftest.dSYM
6148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6149 conftest$ac_exeext conftest.$ac_ext
6150 ac_ext=c
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156 fi
6157 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6158 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6161 CFLAGS="$SAVE_CFLAGS"
6162 fi
6163 ;;
6164 sparc*-*solaris*)
6165 # Find out which ABI we are using.
6166 echo 'int i;' > conftest.$ac_ext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>&5
6169 ac_status=$?
6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; then
6172 case `/usr/bin/file conftest.o` in
6173 *64-bit*)
6174 case $lt_cv_prog_gnu_ld in
6175 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6176 *)
6177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6178 LD="${LD-ld} -64"
6179 fi
6180 ;;
6181 esac
6182 ;;
6183 esac
6184 fi
6185 rm -rf conftest*
6186 ;;
6187 esac
6188
6189 need_locks="$enable_libtool_lock"
6190
6191
6192 case $host_os in
6193 rhapsody* | darwin*)
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$DSYMUTIL"; then
6203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6223 if test -n "$DSYMUTIL"; then
6224 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6225 $as_echo "$DSYMUTIL" >&6; }
6226 else
6227 { $as_echo "$as_me:$LINENO: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 fi
6233 if test -z "$ac_cv_prog_DSYMUTIL"; then
6234 ac_ct_DSYMUTIL=$DSYMUTIL
6235 # Extract the first word of "dsymutil", so it can be a program name with args.
6236 set dummy dsymutil; ac_word=$2
6237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$ac_ct_DSYMUTIL"; then
6243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6263 if test -n "$ac_ct_DSYMUTIL"; then
6264 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6265 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6266 else
6267 { $as_echo "$as_me:$LINENO: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271 if test "x$ac_ct_DSYMUTIL" = x; then
6272 DSYMUTIL=":"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 DSYMUTIL=$ac_ct_DSYMUTIL
6281 fi
6282 else
6283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6284 fi
6285
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$NMEDIT"; then
6295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 NMEDIT=$ac_cv_prog_NMEDIT
6315 if test -n "$NMEDIT"; then
6316 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6317 $as_echo "$NMEDIT" >&6; }
6318 else
6319 { $as_echo "$as_me:$LINENO: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 fi
6325 if test -z "$ac_cv_prog_NMEDIT"; then
6326 ac_ct_NMEDIT=$NMEDIT
6327 # Extract the first word of "nmedit", so it can be a program name with args.
6328 set dummy nmedit; ac_word=$2
6329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_NMEDIT"; then
6335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6355 if test -n "$ac_ct_NMEDIT"; then
6356 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6357 $as_echo "$ac_ct_NMEDIT" >&6; }
6358 else
6359 { $as_echo "$as_me:$LINENO: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363 if test "x$ac_ct_NMEDIT" = x; then
6364 NMEDIT=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 NMEDIT=$ac_ct_NMEDIT
6373 fi
6374 else
6375 NMEDIT="$ac_cv_prog_NMEDIT"
6376 fi
6377
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_LIPO+set}" = set; then
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$LIPO"; then
6387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 LIPO=$ac_cv_prog_LIPO
6407 if test -n "$LIPO"; then
6408 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6409 $as_echo "$LIPO" >&6; }
6410 else
6411 { $as_echo "$as_me:$LINENO: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416 fi
6417 if test -z "$ac_cv_prog_LIPO"; then
6418 ac_ct_LIPO=$LIPO
6419 # Extract the first word of "lipo", so it can be a program name with args.
6420 set dummy lipo; ac_word=$2
6421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_LIPO"; then
6427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_LIPO="lipo"
6437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6447 if test -n "$ac_ct_LIPO"; then
6448 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6449 $as_echo "$ac_ct_LIPO" >&6; }
6450 else
6451 { $as_echo "$as_me:$LINENO: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455 if test "x$ac_ct_LIPO" = x; then
6456 LIPO=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 LIPO=$ac_ct_LIPO
6465 fi
6466 else
6467 LIPO="$ac_cv_prog_LIPO"
6468 fi
6469
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}otool; ac_word=$2
6473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_OTOOL+set}" = set; then
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$OTOOL"; then
6479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 OTOOL=$ac_cv_prog_OTOOL
6499 if test -n "$OTOOL"; then
6500 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6501 $as_echo "$OTOOL" >&6; }
6502 else
6503 { $as_echo "$as_me:$LINENO: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508 fi
6509 if test -z "$ac_cv_prog_OTOOL"; then
6510 ac_ct_OTOOL=$OTOOL
6511 # Extract the first word of "otool", so it can be a program name with args.
6512 set dummy otool; ac_word=$2
6513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$ac_ct_OTOOL"; then
6519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_ac_ct_OTOOL="otool"
6529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6539 if test -n "$ac_ct_OTOOL"; then
6540 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6541 $as_echo "$ac_ct_OTOOL" >&6; }
6542 else
6543 { $as_echo "$as_me:$LINENO: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547 if test "x$ac_ct_OTOOL" = x; then
6548 OTOOL=":"
6549 else
6550 case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556 OTOOL=$ac_ct_OTOOL
6557 fi
6558 else
6559 OTOOL="$ac_cv_prog_OTOOL"
6560 fi
6561
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$OTOOL64"; then
6571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 OTOOL64=$ac_cv_prog_OTOOL64
6591 if test -n "$OTOOL64"; then
6592 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6593 $as_echo "$OTOOL64" >&6; }
6594 else
6595 { $as_echo "$as_me:$LINENO: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 fi
6601 if test -z "$ac_cv_prog_OTOOL64"; then
6602 ac_ct_OTOOL64=$OTOOL64
6603 # Extract the first word of "otool64", so it can be a program name with args.
6604 set dummy otool64; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$ac_ct_OTOOL64"; then
6611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_OTOOL64="otool64"
6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6631 if test -n "$ac_ct_OTOOL64"; then
6632 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6633 $as_echo "$ac_ct_OTOOL64" >&6; }
6634 else
6635 { $as_echo "$as_me:$LINENO: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639 if test "x$ac_ct_OTOOL64" = x; then
6640 OTOOL64=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648 OTOOL64=$ac_ct_OTOOL64
6649 fi
6650 else
6651 OTOOL64="$ac_cv_prog_OTOOL64"
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6681 $as_echo_n "checking for -single_module linker flag... " >&6; }
6682 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6684 else
6685 lt_cv_apple_cc_single_mod=no
6686 if test -z "${LT_MULTI_MODULE}"; then
6687 # By default we will add the -single_module flag. You can override
6688 # by either setting the environment variable LT_MULTI_MODULE
6689 # non-empty at configure time, or by adding -multi_module to the
6690 # link flags.
6691 rm -rf libconftest.dylib*
6692 echo "int foo(void){return 1;}" > conftest.c
6693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c" >&5
6695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6697 _lt_result=$?
6698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6699 lt_cv_apple_cc_single_mod=yes
6700 else
6701 cat conftest.err >&5
6702 fi
6703 rm -rf libconftest.dylib*
6704 rm -f conftest.*
6705 fi
6706 fi
6707 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6708 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6709 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6710 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6711 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6713 else
6714 lt_cv_ld_exported_symbols_list=no
6715 save_LDFLAGS=$LDFLAGS
6716 echo "_main" > conftest.sym
6717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724
6725 int
6726 main ()
6727 {
6728
6729 ;
6730 return 0;
6731 }
6732 _ACEOF
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (ac_try="$ac_link"
6735 case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738 esac
6739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6740 $as_echo "$ac_try_echo") >&5
6741 (eval "$ac_link") 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest$ac_exeext && {
6751 test "$cross_compiling" = yes ||
6752 $as_test_x conftest$ac_exeext
6753 }; then
6754 lt_cv_ld_exported_symbols_list=yes
6755 else
6756 $as_echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759 lt_cv_ld_exported_symbols_list=no
6760 fi
6761
6762 rm -rf conftest.dSYM
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 conftest$ac_exeext conftest.$ac_ext
6765 LDFLAGS="$save_LDFLAGS"
6766
6767 fi
6768 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6769 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6770 case $host_os in
6771 rhapsody* | darwin1.[012])
6772 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6773 darwin1.*)
6774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6775 darwin*) # darwin 5.x on
6776 # if running on 10.5 or later, the deployment target defaults
6777 # to the OS version, if on x86, and 10.4, the deployment
6778 # target defaults to 10.4. Don't you love it?
6779 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6780 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6781 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6782 10.[012]*)
6783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6784 10.*)
6785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6786 esac
6787 ;;
6788 esac
6789 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6790 _lt_dar_single_mod='$single_module'
6791 fi
6792 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6793 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6794 else
6795 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6796 fi
6797 if test "$DSYMUTIL" != ":"; then
6798 _lt_dsymutil='~$DSYMUTIL $lib || :'
6799 else
6800 _lt_dsymutil=
6801 fi
6802 ;;
6803 esac
6804
6805 ac_ext=c
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6812 # On Suns, sometimes $CPP names a directory.
6813 if test -n "$CPP" && test -d "$CPP"; then
6814 CPP=
6815 fi
6816 if test -z "$CPP"; then
6817 if test "${ac_cv_prog_CPP+set}" = set; then
6818 $as_echo_n "(cached) " >&6
6819 else
6820 # Double quotes because CPP needs to be expanded
6821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6822 do
6823 ac_preproc_ok=false
6824 for ac_c_preproc_warn_flag in '' yes
6825 do
6826 # Use a header file that comes with gcc, so configuring glibc
6827 # with a fresh cross-compiler works.
6828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829 # <limits.h> exists even on freestanding compilers.
6830 # On the NeXT, cc -E runs the code through the compiler's parser,
6831 # not just through cpp. "Syntax error" is here to catch this case.
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #ifdef __STDC__
6839 # include <limits.h>
6840 #else
6841 # include <assert.h>
6842 #endif
6843 Syntax error
6844 _ACEOF
6845 if { (ac_try="$ac_cpp conftest.$ac_ext"
6846 case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849 esac
6850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851 $as_echo "$ac_try_echo") >&5
6852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } >/dev/null && {
6859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 }; then
6862 :
6863 else
6864 $as_echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 # Broken: fails on valid input.
6868 continue
6869 fi
6870
6871 rm -f conftest.err conftest.$ac_ext
6872
6873 # OK, works on sane cases. Now check whether nonexistent headers
6874 # can be detected and how.
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <ac_nonexistent.h>
6882 _ACEOF
6883 if { (ac_try="$ac_cpp conftest.$ac_ext"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null && {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 }; then
6900 # Broken: success on invalid input.
6901 continue
6902 else
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 # Passes both tests.
6907 ac_preproc_ok=:
6908 break
6909 fi
6910
6911 rm -f conftest.err conftest.$ac_ext
6912
6913 done
6914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6915 rm -f conftest.err conftest.$ac_ext
6916 if $ac_preproc_ok; then
6917 break
6918 fi
6919
6920 done
6921 ac_cv_prog_CPP=$CPP
6922
6923 fi
6924 CPP=$ac_cv_prog_CPP
6925 else
6926 ac_cv_prog_CPP=$CPP
6927 fi
6928 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6929 $as_echo "$CPP" >&6; }
6930 ac_preproc_ok=false
6931 for ac_c_preproc_warn_flag in '' yes
6932 do
6933 # Use a header file that comes with gcc, so configuring glibc
6934 # with a fresh cross-compiler works.
6935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6936 # <limits.h> exists even on freestanding compilers.
6937 # On the NeXT, cc -E runs the code through the compiler's parser,
6938 # not just through cpp. "Syntax error" is here to catch this case.
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #ifdef __STDC__
6946 # include <limits.h>
6947 #else
6948 # include <assert.h>
6949 #endif
6950 Syntax error
6951 _ACEOF
6952 if { (ac_try="$ac_cpp conftest.$ac_ext"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6958 $as_echo "$ac_try_echo") >&5
6959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } >/dev/null && {
6966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 }; then
6969 :
6970 else
6971 $as_echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 # Broken: fails on valid input.
6975 continue
6976 fi
6977
6978 rm -f conftest.err conftest.$ac_ext
6979
6980 # OK, works on sane cases. Now check whether nonexistent headers
6981 # can be detected and how.
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #include <ac_nonexistent.h>
6989 _ACEOF
6990 if { (ac_try="$ac_cpp conftest.$ac_ext"
6991 case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994 esac
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } >/dev/null && {
7004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 }; then
7007 # Broken: success on invalid input.
7008 continue
7009 else
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 # Passes both tests.
7014 ac_preproc_ok=:
7015 break
7016 fi
7017
7018 rm -f conftest.err conftest.$ac_ext
7019
7020 done
7021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022 rm -f conftest.err conftest.$ac_ext
7023 if $ac_preproc_ok; then
7024 :
7025 else
7026 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7029 See \`config.log' for more details." >&5
7030 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7031 See \`config.log' for more details." >&2;}
7032 { (exit 1); exit 1; }; }; }
7033 fi
7034
7035 ac_ext=c
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040
7041
7042 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7043 $as_echo_n "checking for ANSI C header files... " >&6; }
7044 if test "${ac_cv_header_stdc+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 #include <stdlib.h>
7054 #include <stdarg.h>
7055 #include <string.h>
7056 #include <float.h>
7057
7058 int
7059 main ()
7060 {
7061
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_header_stdc=yes
7085 else
7086 $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ac_cv_header_stdc=no
7090 fi
7091
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093
7094 if test $ac_cv_header_stdc = yes; then
7095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 #include <string.h>
7103
7104 _ACEOF
7105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106 $EGREP "memchr" >/dev/null 2>&1; then
7107 :
7108 else
7109 ac_cv_header_stdc=no
7110 fi
7111 rm -f conftest*
7112
7113 fi
7114
7115 if test $ac_cv_header_stdc = yes; then
7116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 #include <stdlib.h>
7124
7125 _ACEOF
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "free" >/dev/null 2>&1; then
7128 :
7129 else
7130 ac_cv_header_stdc=no
7131 fi
7132 rm -f conftest*
7133
7134 fi
7135
7136 if test $ac_cv_header_stdc = yes; then
7137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7138 if test "$cross_compiling" = yes; then
7139 :
7140 else
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <ctype.h>
7148 #include <stdlib.h>
7149 #if ((' ' & 0x0FF) == 0x020)
7150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7152 #else
7153 # define ISLOWER(c) \
7154 (('a' <= (c) && (c) <= 'i') \
7155 || ('j' <= (c) && (c) <= 'r') \
7156 || ('s' <= (c) && (c) <= 'z'))
7157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7158 #endif
7159
7160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7161 int
7162 main ()
7163 {
7164 int i;
7165 for (i = 0; i < 256; i++)
7166 if (XOR (islower (i), ISLOWER (i))
7167 || toupper (i) != TOUPPER (i))
7168 return 2;
7169 return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest$ac_exeext
7173 if { (ac_try="$ac_link"
7174 case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177 esac
7178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7179 $as_echo "$ac_try_echo") >&5
7180 (eval "$ac_link") 2>&5
7181 ac_status=$?
7182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7184 { (case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189 $as_echo "$ac_try_echo") >&5
7190 (eval "$ac_try") 2>&5
7191 ac_status=$?
7192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 :
7195 else
7196 $as_echo "$as_me: program exited with status $ac_status" >&5
7197 $as_echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7199
7200 ( exit $ac_status )
7201 ac_cv_header_stdc=no
7202 fi
7203 rm -rf conftest.dSYM
7204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7205 fi
7206
7207
7208 fi
7209 fi
7210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7211 $as_echo "$ac_cv_header_stdc" >&6; }
7212 if test $ac_cv_header_stdc = yes; then
7213
7214 cat >>confdefs.h <<\_ACEOF
7215 #define STDC_HEADERS 1
7216 _ACEOF
7217
7218 fi
7219
7220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7231 inttypes.h stdint.h unistd.h
7232 do
7233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7235 $as_echo_n "checking for $ac_header... " >&6; }
7236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7237 $as_echo_n "(cached) " >&6
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246
7247 #include <$ac_header>
7248 _ACEOF
7249 rm -f conftest.$ac_objext
7250 if { (ac_try="$ac_compile"
7251 case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7254 esac
7255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7256 $as_echo "$ac_try_echo") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 eval "$as_ac_Header=yes"
7268 else
7269 $as_echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 eval "$as_ac_Header=no"
7273 fi
7274
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 fi
7277 ac_res=`eval 'as_val=${'$as_ac_Header'}
7278 $as_echo "$as_val"'`
7279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7280 $as_echo "$ac_res" >&6; }
7281 as_val=`eval 'as_val=${'$as_ac_Header'}
7282 $as_echo "$as_val"'`
7283 if test "x$as_val" = x""yes; then
7284 cat >>confdefs.h <<_ACEOF
7285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7286 _ACEOF
7287
7288 fi
7289
7290 done
7291
7292
7293
7294 for ac_header in dlfcn.h
7295 do
7296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7298 $as_echo_n "checking for $ac_header... " >&6; }
7299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300 $as_echo_n "(cached) " >&6
7301 else
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309
7310 #include <$ac_header>
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7319 $as_echo "$ac_try_echo") >&5
7320 (eval "$ac_compile") 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.$ac_objext; then
7330 eval "$as_ac_Header=yes"
7331 else
7332 $as_echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7334
7335 eval "$as_ac_Header=no"
7336 fi
7337
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 ac_res=`eval 'as_val=${'$as_ac_Header'}
7341 $as_echo "$as_val"'`
7342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7343 $as_echo "$ac_res" >&6; }
7344 as_val=`eval 'as_val=${'$as_ac_Header'}
7345 $as_echo "$as_val"'`
7346 if test "x$as_val" = x""yes; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349 _ACEOF
7350
7351 fi
7352
7353 done
7354
7355
7356
7357 # Set options
7358
7359
7360
7361 enable_dlopen=no
7362
7363
7364 enable_win32_dll=no
7365
7366
7367 # Check whether --enable-shared was given.
7368 if test "${enable_shared+set}" = set; then
7369 enableval=$enable_shared; p=${PACKAGE-default}
7370 case $enableval in
7371 yes) enable_shared=yes ;;
7372 no) enable_shared=no ;;
7373 *)
7374 enable_shared=no
7375 # Look at the argument we got. We use all the common list separators.
7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377 for pkg in $enableval; do
7378 IFS="$lt_save_ifs"
7379 if test "X$pkg" = "X$p"; then
7380 enable_shared=yes
7381 fi
7382 done
7383 IFS="$lt_save_ifs"
7384 ;;
7385 esac
7386 else
7387 enable_shared=yes
7388 fi
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 # Check whether --enable-static was given.
7399 if test "${enable_static+set}" = set; then
7400 enableval=$enable_static; p=${PACKAGE-default}
7401 case $enableval in
7402 yes) enable_static=yes ;;
7403 no) enable_static=no ;;
7404 *)
7405 enable_static=no
7406 # Look at the argument we got. We use all the common list separators.
7407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7408 for pkg in $enableval; do
7409 IFS="$lt_save_ifs"
7410 if test "X$pkg" = "X$p"; then
7411 enable_static=yes
7412 fi
7413 done
7414 IFS="$lt_save_ifs"
7415 ;;
7416 esac
7417 else
7418 enable_static=yes
7419 fi
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 # Check whether --with-pic was given.
7431 if test "${with_pic+set}" = set; then
7432 withval=$with_pic; pic_mode="$withval"
7433 else
7434 pic_mode=default
7435 fi
7436
7437
7438 test -z "$pic_mode" && pic_mode=default
7439
7440
7441
7442
7443
7444
7445
7446 # Check whether --enable-fast-install was given.
7447 if test "${enable_fast_install+set}" = set; then
7448 enableval=$enable_fast_install; p=${PACKAGE-default}
7449 case $enableval in
7450 yes) enable_fast_install=yes ;;
7451 no) enable_fast_install=no ;;
7452 *)
7453 enable_fast_install=no
7454 # Look at the argument we got. We use all the common list separators.
7455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456 for pkg in $enableval; do
7457 IFS="$lt_save_ifs"
7458 if test "X$pkg" = "X$p"; then
7459 enable_fast_install=yes
7460 fi
7461 done
7462 IFS="$lt_save_ifs"
7463 ;;
7464 esac
7465 else
7466 enable_fast_install=yes
7467 fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 # This can be used to rebuild libtool when needed
7480 LIBTOOL_DEPS="$ltmain"
7481
7482 # Always use our own libtool.
7483 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 test -z "$LN_S" && LN_S="ln -s"
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524 if test -n "${ZSH_VERSION+set}" ; then
7525 setopt NO_GLOB_SUBST
7526 fi
7527
7528 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7529 $as_echo_n "checking for objdir... " >&6; }
7530 if test "${lt_cv_objdir+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7532 else
7533 rm -f .libs 2>/dev/null
7534 mkdir .libs 2>/dev/null
7535 if test -d .libs; then
7536 lt_cv_objdir=.libs
7537 else
7538 # MS-DOS does not allow filenames that begin with a dot.
7539 lt_cv_objdir=_libs
7540 fi
7541 rmdir .libs 2>/dev/null
7542 fi
7543 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7544 $as_echo "$lt_cv_objdir" >&6; }
7545 objdir=$lt_cv_objdir
7546
7547
7548
7549
7550
7551 cat >>confdefs.h <<_ACEOF
7552 #define LT_OBJDIR "$lt_cv_objdir/"
7553 _ACEOF
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571 case $host_os in
7572 aix3*)
7573 # AIX sometimes has problems with the GCC collect2 program. For some
7574 # reason, if we set the COLLECT_NAMES environment variable, the problems
7575 # vanish in a puff of smoke.
7576 if test "X${COLLECT_NAMES+set}" != Xset; then
7577 COLLECT_NAMES=
7578 export COLLECT_NAMES
7579 fi
7580 ;;
7581 esac
7582
7583 # Sed substitution that helps us do robust quoting. It backslashifies
7584 # metacharacters that are still active within double-quoted strings.
7585 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7586
7587 # Same as above, but do not quote variable references.
7588 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7589
7590 # Sed substitution to delay expansion of an escaped shell variable in a
7591 # double_quote_subst'ed string.
7592 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7593
7594 # Sed substitution to delay expansion of an escaped single quote.
7595 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7596
7597 # Sed substitution to avoid accidental globbing in evaled expressions
7598 no_glob_subst='s/\*/\\\*/g'
7599
7600 # Global variables:
7601 ofile=libtool
7602 can_build_shared=yes
7603
7604 # All known linkers require a `.a' archive for static linking (except MSVC,
7605 # which needs '.lib').
7606 libext=a
7607
7608 with_gnu_ld="$lt_cv_prog_gnu_ld"
7609
7610 old_CC="$CC"
7611 old_CFLAGS="$CFLAGS"
7612
7613 # Set sane defaults for various variables
7614 test -z "$CC" && CC=cc
7615 test -z "$LTCC" && LTCC=$CC
7616 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7617 test -z "$LD" && LD=ld
7618 test -z "$ac_objext" && ac_objext=o
7619
7620 for cc_temp in $compiler""; do
7621 case $cc_temp in
7622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7624 \-*) ;;
7625 *) break;;
7626 esac
7627 done
7628 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7629
7630
7631 # Only perform the check for file, if the check method requires it
7632 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7633 case $deplibs_check_method in
7634 file_magic*)
7635 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7636 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7637 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7638 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7640 else
7641 case $MAGIC_CMD in
7642 [\\/*] | ?:[\\/]*)
7643 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7644 ;;
7645 *)
7646 lt_save_MAGIC_CMD="$MAGIC_CMD"
7647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7648 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7649 for ac_dir in $ac_dummy; do
7650 IFS="$lt_save_ifs"
7651 test -z "$ac_dir" && ac_dir=.
7652 if test -f $ac_dir/${ac_tool_prefix}file; then
7653 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7654 if test -n "$file_magic_test_file"; then
7655 case $deplibs_check_method in
7656 "file_magic "*)
7657 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7660 $EGREP "$file_magic_regex" > /dev/null; then
7661 :
7662 else
7663 cat <<_LT_EOF 1>&2
7664
7665 *** Warning: the command libtool uses to detect shared libraries,
7666 *** $file_magic_cmd, produces output that libtool cannot recognize.
7667 *** The result is that libtool may fail to recognize shared libraries
7668 *** as such. This will affect the creation of libtool libraries that
7669 *** depend on shared libraries, but programs linked with such libtool
7670 *** libraries will work regardless of this problem. Nevertheless, you
7671 *** may want to report the problem to your system manager and/or to
7672 *** bug-libtool@gnu.org
7673
7674 _LT_EOF
7675 fi ;;
7676 esac
7677 fi
7678 break
7679 fi
7680 done
7681 IFS="$lt_save_ifs"
7682 MAGIC_CMD="$lt_save_MAGIC_CMD"
7683 ;;
7684 esac
7685 fi
7686
7687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7688 if test -n "$MAGIC_CMD"; then
7689 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7690 $as_echo "$MAGIC_CMD" >&6; }
7691 else
7692 { $as_echo "$as_me:$LINENO: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696
7697
7698
7699
7700 if test -z "$lt_cv_path_MAGIC_CMD"; then
7701 if test -n "$ac_tool_prefix"; then
7702 { $as_echo "$as_me:$LINENO: checking for file" >&5
7703 $as_echo_n "checking for file... " >&6; }
7704 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7705 $as_echo_n "(cached) " >&6
7706 else
7707 case $MAGIC_CMD in
7708 [\\/*] | ?:[\\/]*)
7709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7710 ;;
7711 *)
7712 lt_save_MAGIC_CMD="$MAGIC_CMD"
7713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7715 for ac_dir in $ac_dummy; do
7716 IFS="$lt_save_ifs"
7717 test -z "$ac_dir" && ac_dir=.
7718 if test -f $ac_dir/file; then
7719 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7720 if test -n "$file_magic_test_file"; then
7721 case $deplibs_check_method in
7722 "file_magic "*)
7723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7726 $EGREP "$file_magic_regex" > /dev/null; then
7727 :
7728 else
7729 cat <<_LT_EOF 1>&2
7730
7731 *** Warning: the command libtool uses to detect shared libraries,
7732 *** $file_magic_cmd, produces output that libtool cannot recognize.
7733 *** The result is that libtool may fail to recognize shared libraries
7734 *** as such. This will affect the creation of libtool libraries that
7735 *** depend on shared libraries, but programs linked with such libtool
7736 *** libraries will work regardless of this problem. Nevertheless, you
7737 *** may want to report the problem to your system manager and/or to
7738 *** bug-libtool@gnu.org
7739
7740 _LT_EOF
7741 fi ;;
7742 esac
7743 fi
7744 break
7745 fi
7746 done
7747 IFS="$lt_save_ifs"
7748 MAGIC_CMD="$lt_save_MAGIC_CMD"
7749 ;;
7750 esac
7751 fi
7752
7753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7754 if test -n "$MAGIC_CMD"; then
7755 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7756 $as_echo "$MAGIC_CMD" >&6; }
7757 else
7758 { $as_echo "$as_me:$LINENO: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763 else
7764 MAGIC_CMD=:
7765 fi
7766 fi
7767
7768 fi
7769 ;;
7770 esac
7771
7772 # Use C for the default configuration in the libtool script
7773
7774 lt_save_CC="$CC"
7775 ac_ext=c
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781
7782 # Source file extension for C test sources.
7783 ac_ext=c
7784
7785 # Object file extension for compiled C test sources.
7786 objext=o
7787 objext=$objext
7788
7789 # Code to be used in simple compile tests
7790 lt_simple_compile_test_code="int some_variable = 0;"
7791
7792 # Code to be used in simple link tests
7793 lt_simple_link_test_code='int main(){return(0);}'
7794
7795
7796
7797
7798
7799
7800
7801 # If no C compiler was specified, use CC.
7802 LTCC=${LTCC-"$CC"}
7803
7804 # If no C compiler flags were specified, use CFLAGS.
7805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7806
7807 # Allow CC to be a program name with arguments.
7808 compiler=$CC
7809
7810 # Save the default compiler, since it gets overwritten when the other
7811 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7812 compiler_DEFAULT=$CC
7813
7814 # save warnings/boilerplate of simple test code
7815 ac_outfile=conftest.$ac_objext
7816 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7818 _lt_compiler_boilerplate=`cat conftest.err`
7819 $RM conftest*
7820
7821 ac_outfile=conftest.$ac_objext
7822 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7824 _lt_linker_boilerplate=`cat conftest.err`
7825 $RM -r conftest*
7826
7827
7828 if test -n "$compiler"; then
7829
7830 lt_prog_compiler_no_builtin_flag=
7831
7832 if test "$GCC" = yes; then
7833 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7834
7835 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7836 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7838 $as_echo_n "(cached) " >&6
7839 else
7840 lt_cv_prog_compiler_rtti_exceptions=no
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843 lt_compiler_flag="-fno-rtti -fno-exceptions"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 # The option is referenced via a variable to avoid confusing sed.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
7854 (eval "$lt_compile" 2>conftest.err)
7855 ac_status=$?
7856 cat conftest.err >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 if (exit $ac_status) && test -s "$ac_outfile"; then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings other than the usual output.
7861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_rtti_exceptions=yes
7865 fi
7866 fi
7867 $RM conftest*
7868
7869 fi
7870 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7871 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7872
7873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7875 else
7876 :
7877 fi
7878
7879 fi
7880
7881
7882
7883
7884
7885
7886 lt_prog_compiler_wl=
7887 lt_prog_compiler_pic=
7888 lt_prog_compiler_static=
7889
7890 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7891 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7892
7893 if test "$GCC" = yes; then
7894 lt_prog_compiler_wl='-Wl,'
7895 lt_prog_compiler_static='-static'
7896
7897 case $host_os in
7898 aix*)
7899 # All AIX code is PIC.
7900 if test "$host_cpu" = ia64; then
7901 # AIX 5 now supports IA64 processor
7902 lt_prog_compiler_static='-Bstatic'
7903 fi
7904 ;;
7905
7906 amigaos*)
7907 case $host_cpu in
7908 powerpc)
7909 # see comment about AmigaOS4 .so support
7910 lt_prog_compiler_pic='-fPIC'
7911 ;;
7912 m68k)
7913 # FIXME: we need at least 68020 code to build shared libraries, but
7914 # adding the `-m68020' flag to GCC prevents building anything better,
7915 # like `-m68040'.
7916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7917 ;;
7918 esac
7919 ;;
7920
7921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7922 # PIC is the default for these OSes.
7923 ;;
7924
7925 mingw* | cygwin* | pw32* | os2* | cegcc*)
7926 # This hack is so that the source file can tell whether it is being
7927 # built for inclusion in a dll (and should export symbols for example).
7928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7929 # (--disable-auto-import) libraries
7930 lt_prog_compiler_pic='-DDLL_EXPORT'
7931 ;;
7932
7933 darwin* | rhapsody*)
7934 # PIC is the default on this platform
7935 # Common symbols not allowed in MH_DYLIB files
7936 lt_prog_compiler_pic='-fno-common'
7937 ;;
7938
7939 hpux*)
7940 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7941 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7942 # sets the default TLS model and affects inlining.
7943 case $host_cpu in
7944 hppa*64*)
7945 # +Z the default
7946 ;;
7947 *)
7948 lt_prog_compiler_pic='-fPIC'
7949 ;;
7950 esac
7951 ;;
7952
7953 interix[3-9]*)
7954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7955 # Instead, we relocate shared libraries at runtime.
7956 ;;
7957
7958 msdosdjgpp*)
7959 # Just because we use GCC doesn't mean we suddenly get shared libraries
7960 # on systems that don't support them.
7961 lt_prog_compiler_can_build_shared=no
7962 enable_shared=no
7963 ;;
7964
7965 *nto* | *qnx*)
7966 # QNX uses GNU C++, but need to define -shared option too, otherwise
7967 # it will coredump.
7968 lt_prog_compiler_pic='-fPIC -shared'
7969 ;;
7970
7971 sysv4*MP*)
7972 if test -d /usr/nec; then
7973 lt_prog_compiler_pic=-Kconform_pic
7974 fi
7975 ;;
7976
7977 *)
7978 lt_prog_compiler_pic='-fPIC'
7979 ;;
7980 esac
7981 else
7982 # PORTME Check for flag to pass linker flags through the system compiler.
7983 case $host_os in
7984 aix*)
7985 lt_prog_compiler_wl='-Wl,'
7986 if test "$host_cpu" = ia64; then
7987 # AIX 5 now supports IA64 processor
7988 lt_prog_compiler_static='-Bstatic'
7989 else
7990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7991 fi
7992 ;;
7993
7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
7997 lt_prog_compiler_pic='-DDLL_EXPORT'
7998 ;;
7999
8000 hpux9* | hpux10* | hpux11*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003 # not for PA HP-UX.
8004 case $host_cpu in
8005 hppa*64*|ia64*)
8006 # +Z the default
8007 ;;
8008 *)
8009 lt_prog_compiler_pic='+Z'
8010 ;;
8011 esac
8012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8013 lt_prog_compiler_static='${wl}-a ${wl}archive'
8014 ;;
8015
8016 irix5* | irix6* | nonstopux*)
8017 lt_prog_compiler_wl='-Wl,'
8018 # PIC (with -KPIC) is the default.
8019 lt_prog_compiler_static='-non_shared'
8020 ;;
8021
8022 linux* | k*bsd*-gnu)
8023 case $cc_basename in
8024 # old Intel for x86_64 which still supported -KPIC.
8025 ecc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-static'
8029 ;;
8030 # icc used to be incompatible with GCC.
8031 # ICC 10 doesn't accept -KPIC any more.
8032 icc* | ifort*)
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-fPIC'
8035 lt_prog_compiler_static='-static'
8036 ;;
8037 # Lahey Fortran 8.1.
8038 lf95*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='--shared'
8041 lt_prog_compiler_static='--static'
8042 ;;
8043 pgcc* | pgf77* | pgf90* | pgf95*)
8044 # Portland Group compilers (*not* the Pentium gcc compiler,
8045 # which looks to be a dead project)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-fpic'
8048 lt_prog_compiler_static='-Bstatic'
8049 ;;
8050 ccc*)
8051 lt_prog_compiler_wl='-Wl,'
8052 # All Alpha code is PIC.
8053 lt_prog_compiler_static='-non_shared'
8054 ;;
8055 xl*)
8056 # IBM XL C 8.0/Fortran 10.1 on PPC
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-qpic'
8059 lt_prog_compiler_static='-qstaticlink'
8060 ;;
8061 *)
8062 case `$CC -V 2>&1 | sed 5q` in
8063 *Sun\ C*)
8064 # Sun C 5.9
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_wl='-Wl,'
8068 ;;
8069 *Sun\ F*)
8070 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl=''
8074 ;;
8075 esac
8076 ;;
8077 esac
8078 ;;
8079
8080 newsos6)
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 ;;
8084
8085 *nto* | *qnx*)
8086 # QNX uses GNU C++, but need to define -shared option too, otherwise
8087 # it will coredump.
8088 lt_prog_compiler_pic='-fPIC -shared'
8089 ;;
8090
8091 osf3* | osf4* | osf5*)
8092 lt_prog_compiler_wl='-Wl,'
8093 # All OSF/1 code is PIC.
8094 lt_prog_compiler_static='-non_shared'
8095 ;;
8096
8097 rdos*)
8098 lt_prog_compiler_static='-non_shared'
8099 ;;
8100
8101 solaris*)
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 case $cc_basename in
8105 f77* | f90* | f95*)
8106 lt_prog_compiler_wl='-Qoption ld ';;
8107 *)
8108 lt_prog_compiler_wl='-Wl,';;
8109 esac
8110 ;;
8111
8112 sunos4*)
8113 lt_prog_compiler_wl='-Qoption ld '
8114 lt_prog_compiler_pic='-PIC'
8115 lt_prog_compiler_static='-Bstatic'
8116 ;;
8117
8118 sysv4 | sysv4.2uw2* | sysv4.3*)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8122 ;;
8123
8124 sysv4*MP*)
8125 if test -d /usr/nec ;then
8126 lt_prog_compiler_pic='-Kconform_pic'
8127 lt_prog_compiler_static='-Bstatic'
8128 fi
8129 ;;
8130
8131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
8135 ;;
8136
8137 unicos*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_can_build_shared=no
8140 ;;
8141
8142 uts4*)
8143 lt_prog_compiler_pic='-pic'
8144 lt_prog_compiler_static='-Bstatic'
8145 ;;
8146
8147 *)
8148 lt_prog_compiler_can_build_shared=no
8149 ;;
8150 esac
8151 fi
8152
8153 case $host_os in
8154 # For platforms which do not support PIC, -DPIC is meaningless:
8155 *djgpp*)
8156 lt_prog_compiler_pic=
8157 ;;
8158 *)
8159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8160 ;;
8161 esac
8162 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8163 $as_echo "$lt_prog_compiler_pic" >&6; }
8164
8165
8166
8167
8168
8169
8170 #
8171 # Check to make sure the PIC flag actually works.
8172 #
8173 if test -n "$lt_prog_compiler_pic"; then
8174 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8175 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8176 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_prog_compiler_pic_works=no
8180 ac_outfile=conftest.$ac_objext
8181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 # The option is referenced via a variable to avoid confusing sed.
8188 lt_compile=`echo "$ac_compile" | $SED \
8189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191 -e 's:$: $lt_compiler_flag:'`
8192 (eval echo "\"\$as_me:8192: $lt_compile\"" >&5)
8193 (eval "$lt_compile" 2>conftest.err)
8194 ac_status=$?
8195 cat conftest.err >&5
8196 echo "$as_me:8196: \$? = $ac_status" >&5
8197 if (exit $ac_status) && test -s "$ac_outfile"; then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings other than the usual output.
8200 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_pic_works=yes
8204 fi
8205 fi
8206 $RM conftest*
8207
8208 fi
8209 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8210 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8211
8212 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8213 case $lt_prog_compiler_pic in
8214 "" | " "*) ;;
8215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8216 esac
8217 else
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_can_build_shared=no
8220 fi
8221
8222 fi
8223
8224
8225
8226
8227
8228
8229 #
8230 # Check to make sure the static flag actually works.
8231 #
8232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8233 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8234 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8235 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8236 $as_echo_n "(cached) " >&6
8237 else
8238 lt_cv_prog_compiler_static_works=no
8239 save_LDFLAGS="$LDFLAGS"
8240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8243 # The linker can only warn and ignore the option if not recognized
8244 # So say no if there are warnings
8245 if test -s conftest.err; then
8246 # Append any errors to the config.log.
8247 cat conftest.err 1>&5
8248 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250 if diff conftest.exp conftest.er2 >/dev/null; then
8251 lt_cv_prog_compiler_static_works=yes
8252 fi
8253 else
8254 lt_cv_prog_compiler_static_works=yes
8255 fi
8256 fi
8257 $RM -r conftest*
8258 LDFLAGS="$save_LDFLAGS"
8259
8260 fi
8261 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8262 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8263
8264 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8265 :
8266 else
8267 lt_prog_compiler_static=
8268 fi
8269
8270
8271
8272
8273
8274
8275
8276 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8279 $as_echo_n "(cached) " >&6
8280 else
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8283 mkdir conftest
8284 cd conftest
8285 mkdir out
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:8297: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>out/conftest.err)
8299 ac_status=$?
8300 cat out/conftest.err >&5
8301 echo "$as_me:8301: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303 then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8310 fi
8311 fi
8312 chmod u+w . 2>&5
8313 $RM conftest*
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8318 cd ..
8319 $RM -r conftest
8320 $RM conftest*
8321
8322 fi
8323 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325
8326
8327
8328
8329
8330
8331 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8333 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8334 $as_echo_n "(cached) " >&6
8335 else
8336 lt_cv_prog_compiler_c_o=no
8337 $RM -r conftest 2>/dev/null
8338 mkdir conftest
8339 cd conftest
8340 mkdir out
8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8342
8343 lt_compiler_flag="-o out/conftest2.$ac_objext"
8344 # Insert the option either (1) after the last *FLAGS variable, or
8345 # (2) before a word containing "conftest.", or (3) at the end.
8346 # Note that $ac_compile itself does not contain backslashes and begins
8347 # with a dollar sign (not a hyphen), so the echo should work correctly.
8348 lt_compile=`echo "$ac_compile" | $SED \
8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351 -e 's:$: $lt_compiler_flag:'`
8352 (eval echo "\"\$as_me:8352: $lt_compile\"" >&5)
8353 (eval "$lt_compile" 2>out/conftest.err)
8354 ac_status=$?
8355 cat out/conftest.err >&5
8356 echo "$as_me:8356: \$? = $ac_status" >&5
8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8358 then
8359 # The compiler can only warn and ignore the option if not recognized
8360 # So say no if there are warnings
8361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8364 lt_cv_prog_compiler_c_o=yes
8365 fi
8366 fi
8367 chmod u+w . 2>&5
8368 $RM conftest*
8369 # SGI C++ compiler will create directory out/ii_files/ for
8370 # template instantiation
8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8372 $RM out/* && rmdir out
8373 cd ..
8374 $RM -r conftest
8375 $RM conftest*
8376
8377 fi
8378 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8380
8381
8382
8383
8384 hard_links="nottested"
8385 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8386 # do not overwrite the value of need_locks provided by the user
8387 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8388 $as_echo_n "checking if we can lock with hard links... " >&6; }
8389 hard_links=yes
8390 $RM conftest*
8391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392 touch conftest.a
8393 ln conftest.a conftest.b 2>&5 || hard_links=no
8394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8396 $as_echo "$hard_links" >&6; }
8397 if test "$hard_links" = no; then
8398 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8399 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8400 need_locks=warn
8401 fi
8402 else
8403 need_locks=no
8404 fi
8405
8406
8407
8408
8409
8410
8411 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8413
8414 runpath_var=
8415 allow_undefined_flag=
8416 always_export_symbols=no
8417 archive_cmds=
8418 archive_expsym_cmds=
8419 compiler_needs_object=no
8420 enable_shared_with_static_runtimes=no
8421 export_dynamic_flag_spec=
8422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8423 hardcode_automatic=no
8424 hardcode_direct=no
8425 hardcode_direct_absolute=no
8426 hardcode_libdir_flag_spec=
8427 hardcode_libdir_flag_spec_ld=
8428 hardcode_libdir_separator=
8429 hardcode_minus_L=no
8430 hardcode_shlibpath_var=unsupported
8431 inherit_rpath=no
8432 link_all_deplibs=unknown
8433 module_cmds=
8434 module_expsym_cmds=
8435 old_archive_from_new_cmds=
8436 old_archive_from_expsyms_cmds=
8437 thread_safe_flag_spec=
8438 whole_archive_flag_spec=
8439 # include_expsyms should be a list of space-separated symbols to be *always*
8440 # included in the symbol list
8441 include_expsyms=
8442 # exclude_expsyms can be an extended regexp of symbols to exclude
8443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8445 # as well as any symbol that contains `d'.
8446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8448 # platforms (ab)use it in PIC code, but their linkers get confused if
8449 # the symbol is explicitly referenced. Since portable code cannot
8450 # rely on this symbol name, it's probably fine to never include it in
8451 # preloaded symbol tables.
8452 # Exclude shared library initialization/finalization symbols.
8453 extract_expsyms_cmds=
8454
8455 case $host_os in
8456 cygwin* | mingw* | pw32* | cegcc*)
8457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8458 # When not using gcc, we currently assume that we are using
8459 # Microsoft Visual C++.
8460 if test "$GCC" != yes; then
8461 with_gnu_ld=no
8462 fi
8463 ;;
8464 interix*)
8465 # we just hope/assume this is gcc and not c89 (= MSVC++)
8466 with_gnu_ld=yes
8467 ;;
8468 openbsd*)
8469 with_gnu_ld=no
8470 ;;
8471 esac
8472
8473 ld_shlibs=yes
8474 if test "$with_gnu_ld" = yes; then
8475 # If archive_cmds runs LD, not CC, wlarc should be empty
8476 wlarc='${wl}'
8477
8478 # Set some defaults for GNU ld with shared library support. These
8479 # are reset later if shared libraries are not supported. Putting them
8480 # here allows them to be overridden if necessary.
8481 runpath_var=LD_RUN_PATH
8482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8483 export_dynamic_flag_spec='${wl}--export-dynamic'
8484 # ancient GNU ld didn't support --whole-archive et. al.
8485 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8486 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8487 else
8488 whole_archive_flag_spec=
8489 fi
8490 supports_anon_versioning=no
8491 case `$LD -v 2>&1` in
8492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8495 *\ 2.11.*) ;; # other 2.11 versions
8496 *) supports_anon_versioning=yes ;;
8497 esac
8498
8499 # See if GNU ld supports shared libraries.
8500 case $host_os in
8501 aix[3-9]*)
8502 # On AIX/PPC, the GNU linker is very broken
8503 if test "$host_cpu" != ia64; then
8504 ld_shlibs=no
8505 cat <<_LT_EOF 1>&2
8506
8507 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8508 *** to be unable to reliably create shared libraries on AIX.
8509 *** Therefore, libtool is disabling shared libraries support. If you
8510 *** really care for shared libraries, you may want to modify your PATH
8511 *** so that a non-GNU linker is found, and then restart.
8512
8513 _LT_EOF
8514 fi
8515 ;;
8516
8517 amigaos*)
8518 case $host_cpu in
8519 powerpc)
8520 # see comment about AmigaOS4 .so support
8521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522 archive_expsym_cmds=''
8523 ;;
8524 m68k)
8525 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)'
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_minus_L=yes
8528 ;;
8529 esac
8530 ;;
8531
8532 beos*)
8533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8534 allow_undefined_flag=unsupported
8535 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8536 # support --undefined. This deserves some investigation. FIXME
8537 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538 else
8539 ld_shlibs=no
8540 fi
8541 ;;
8542
8543 cygwin* | mingw* | pw32* | cegcc*)
8544 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8545 # as there is no search path for DLLs.
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 allow_undefined_flag=unsupported
8548 always_export_symbols=no
8549 enable_shared_with_static_runtimes=yes
8550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8551
8552 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8554 # If the export-symbols file already is a .def file (1st line
8555 # is EXPORTS), use it as is; otherwise, prepend...
8556 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8557 cp $export_symbols $output_objdir/$soname.def;
8558 else
8559 echo EXPORTS > $output_objdir/$soname.def;
8560 cat $export_symbols >> $output_objdir/$soname.def;
8561 fi~
8562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8563 else
8564 ld_shlibs=no
8565 fi
8566 ;;
8567
8568 interix[3-9]*)
8569 hardcode_direct=no
8570 hardcode_shlibpath_var=no
8571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8572 export_dynamic_flag_spec='${wl}-E'
8573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8574 # Instead, shared libraries are loaded at an image base (0x10000000 by
8575 # default) and relocated if they conflict, which is a slow very memory
8576 # consuming and fragmenting process. To avoid this, we pick a random,
8577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8580 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'
8581 ;;
8582
8583 gnu* | linux* | tpf* | k*bsd*-gnu)
8584 tmp_diet=no
8585 if test "$host_os" = linux-dietlibc; then
8586 case $cc_basename in
8587 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8588 esac
8589 fi
8590 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8591 && test "$tmp_diet" = no
8592 then
8593 tmp_addflag=
8594 tmp_sharedflag='-shared'
8595 case $cc_basename,$host_cpu in
8596 pgcc*) # Portland Group C compiler
8597 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'
8598 tmp_addflag=' $pic_flag'
8599 ;;
8600 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8601 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'
8602 tmp_addflag=' $pic_flag -Mnomain' ;;
8603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8604 tmp_addflag=' -i_dynamic' ;;
8605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8606 tmp_addflag=' -i_dynamic -nofor_main' ;;
8607 ifc* | ifort*) # Intel Fortran compiler
8608 tmp_addflag=' -nofor_main' ;;
8609 lf95*) # Lahey Fortran 8.1
8610 whole_archive_flag_spec=
8611 tmp_sharedflag='--shared' ;;
8612 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8613 tmp_sharedflag='-qmkshrobj'
8614 tmp_addflag= ;;
8615 esac
8616 case `$CC -V 2>&1 | sed 5q` in
8617 *Sun\ C*) # Sun C 5.9
8618 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'
8619 compiler_needs_object=yes
8620 tmp_sharedflag='-G' ;;
8621 *Sun\ F*) # Sun Fortran 8.3
8622 tmp_sharedflag='-G' ;;
8623 esac
8624 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625
8626 if test "x$supports_anon_versioning" = xyes; then
8627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8629 echo "local: *; };" >> $output_objdir/$libname.ver~
8630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8631 fi
8632
8633 case $cc_basename in
8634 xlf*)
8635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8637 hardcode_libdir_flag_spec=
8638 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8639 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8640 if test "x$supports_anon_versioning" = xyes; then
8641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8643 echo "local: *; };" >> $output_objdir/$libname.ver~
8644 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8645 fi
8646 ;;
8647 esac
8648 else
8649 ld_shlibs=no
8650 fi
8651 ;;
8652
8653 netbsd*)
8654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8656 wlarc=
8657 else
8658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8660 fi
8661 ;;
8662
8663 solaris*)
8664 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8665 ld_shlibs=no
8666 cat <<_LT_EOF 1>&2
8667
8668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8669 *** create shared libraries on Solaris systems. Therefore, libtool
8670 *** is disabling shared libraries support. We urge you to upgrade GNU
8671 *** binutils to release 2.9.1 or newer. Another option is to modify
8672 *** your PATH or compiler configuration so that the native linker is
8673 *** used, and then restart.
8674
8675 _LT_EOF
8676 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8679 else
8680 ld_shlibs=no
8681 fi
8682 ;;
8683
8684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8685 case `$LD -v 2>&1` in
8686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8687 ld_shlibs=no
8688 cat <<_LT_EOF 1>&2
8689
8690 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8691 *** reliably create shared libraries on SCO systems. Therefore, libtool
8692 *** is disabling shared libraries support. We urge you to upgrade GNU
8693 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8694 *** your PATH or compiler configuration so that the native linker is
8695 *** used, and then restart.
8696
8697 _LT_EOF
8698 ;;
8699 *)
8700 # For security reasons, it is highly recommended that you always
8701 # use absolute paths for naming shared libraries, and exclude the
8702 # DT_RUNPATH tag from executables and libraries. But doing so
8703 # requires that you compile everything twice, which is a pain.
8704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 else
8709 ld_shlibs=no
8710 fi
8711 ;;
8712 esac
8713 ;;
8714
8715 sunos4*)
8716 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8717 wlarc=
8718 hardcode_direct=yes
8719 hardcode_shlibpath_var=no
8720 ;;
8721
8722 *)
8723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8726 else
8727 ld_shlibs=no
8728 fi
8729 ;;
8730 esac
8731
8732 if test "$ld_shlibs" = no; then
8733 runpath_var=
8734 hardcode_libdir_flag_spec=
8735 export_dynamic_flag_spec=
8736 whole_archive_flag_spec=
8737 fi
8738 else
8739 # PORTME fill in a description of your system's linker (not GNU ld)
8740 case $host_os in
8741 aix3*)
8742 allow_undefined_flag=unsupported
8743 always_export_symbols=yes
8744 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'
8745 # Note: this linker hardcodes the directories in LIBPATH if there
8746 # are no directories specified by -L.
8747 hardcode_minus_L=yes
8748 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8749 # Neither direct hardcoding nor static linking is supported with a
8750 # broken collect2.
8751 hardcode_direct=unsupported
8752 fi
8753 ;;
8754
8755 aix[4-9]*)
8756 if test "$host_cpu" = ia64; then
8757 # On IA64, the linker does run time linking by default, so we don't
8758 # have to do anything special.
8759 aix_use_runtimelinking=no
8760 exp_sym_flag='-Bexport'
8761 no_entry_flag=""
8762 else
8763 # If we're using GNU nm, then we don't want the "-C" option.
8764 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8766 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'
8767 else
8768 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'
8769 fi
8770 aix_use_runtimelinking=no
8771
8772 # Test if we are trying to use run time linking or normal
8773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8774 # need to do runtime linking.
8775 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8776 for ld_flag in $LDFLAGS; do
8777 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8778 aix_use_runtimelinking=yes
8779 break
8780 fi
8781 done
8782 ;;
8783 esac
8784
8785 exp_sym_flag='-bexport'
8786 no_entry_flag='-bnoentry'
8787 fi
8788
8789 # When large executables or shared objects are built, AIX ld can
8790 # have problems creating the table of contents. If linking a library
8791 # or program results in "error TOC overflow" add -mminimal-toc to
8792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8794
8795 archive_cmds=''
8796 hardcode_direct=yes
8797 hardcode_direct_absolute=yes
8798 hardcode_libdir_separator=':'
8799 link_all_deplibs=yes
8800 file_list_spec='${wl}-f,'
8801
8802 if test "$GCC" = yes; then
8803 case $host_os in aix4.[012]|aix4.[012].*)
8804 # We only want to do this on AIX 4.2 and lower, the check
8805 # below for broken collect2 doesn't work under 4.3+
8806 collect2name=`${CC} -print-prog-name=collect2`
8807 if test -f "$collect2name" &&
8808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8809 then
8810 # We have reworked collect2
8811 :
8812 else
8813 # We have old collect2
8814 hardcode_direct=unsupported
8815 # It fails to find uninstalled libraries when the uninstalled
8816 # path is not listed in the libpath. Setting hardcode_minus_L
8817 # to unsupported forces relinking
8818 hardcode_minus_L=yes
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_libdir_separator=
8821 fi
8822 ;;
8823 esac
8824 shared_flag='-shared'
8825 if test "$aix_use_runtimelinking" = yes; then
8826 shared_flag="$shared_flag "'${wl}-G'
8827 fi
8828 else
8829 # not using gcc
8830 if test "$host_cpu" = ia64; then
8831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8832 # chokes on -Wl,-G. The following line is correct:
8833 shared_flag='-G'
8834 else
8835 if test "$aix_use_runtimelinking" = yes; then
8836 shared_flag='${wl}-G'
8837 else
8838 shared_flag='${wl}-bM:SRE'
8839 fi
8840 fi
8841 fi
8842
8843 export_dynamic_flag_spec='${wl}-bexpall'
8844 # It seems that -bexpall does not export symbols beginning with
8845 # underscore (_), so it is better to generate a list of symbols to export.
8846 always_export_symbols=yes
8847 if test "$aix_use_runtimelinking" = yes; then
8848 # Warning - without using the other runtime loading flags (-brtl),
8849 # -berok will link without error, but may produce a broken library.
8850 allow_undefined_flag='-berok'
8851 # Determine the default libpath from the value encoded in an
8852 # empty executable.
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859
8860 int
8861 main ()
8862 {
8863
8864 ;
8865 return 0;
8866 }
8867 _ACEOF
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (ac_try="$ac_link"
8870 case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876 (eval "$ac_link") 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest$ac_exeext && {
8886 test "$cross_compiling" = yes ||
8887 $as_test_x conftest$ac_exeext
8888 }; then
8889
8890 lt_aix_libpath_sed='
8891 /Import File Strings/,/^$/ {
8892 /^0/ {
8893 s/^0 *\(.*\)$/\1/
8894 p
8895 }
8896 }'
8897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8898 # Check for a 64-bit object if we didn't find anything.
8899 if test -z "$aix_libpath"; then
8900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 fi
8902 else
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906
8907 fi
8908
8909 rm -rf conftest.dSYM
8910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8911 conftest$ac_exeext conftest.$ac_ext
8912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8913
8914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8915 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"
8916 else
8917 if test "$host_cpu" = ia64; then
8918 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8919 allow_undefined_flag="-z nodefs"
8920 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"
8921 else
8922 # Determine the default libpath from the value encoded in an
8923 # empty executable.
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h. */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930
8931 int
8932 main ()
8933 {
8934
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (ac_try="$ac_link"
8941 case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944 esac
8945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8946 $as_echo "$ac_try_echo") >&5
8947 (eval "$ac_link") 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } && {
8954 test -z "$ac_c_werror_flag" ||
8955 test ! -s conftest.err
8956 } && test -s conftest$ac_exeext && {
8957 test "$cross_compiling" = yes ||
8958 $as_test_x conftest$ac_exeext
8959 }; then
8960
8961 lt_aix_libpath_sed='
8962 /Import File Strings/,/^$/ {
8963 /^0/ {
8964 s/^0 *\(.*\)$/\1/
8965 p
8966 }
8967 }'
8968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 # Check for a 64-bit object if we didn't find anything.
8970 if test -z "$aix_libpath"; then
8971 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8972 fi
8973 else
8974 $as_echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977
8978 fi
8979
8980 rm -rf conftest.dSYM
8981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8982 conftest$ac_exeext conftest.$ac_ext
8983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8984
8985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986 # Warning - without using the other run time loading flags,
8987 # -berok will link without error, but may produce a broken library.
8988 no_undefined_flag=' ${wl}-bernotok'
8989 allow_undefined_flag=' ${wl}-berok'
8990 # Exported symbols can be pulled into shared objects from archives
8991 whole_archive_flag_spec='$convenience'
8992 archive_cmds_need_lc=yes
8993 # This is similar to how AIX traditionally builds its shared libraries.
8994 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'
8995 fi
8996 fi
8997 ;;
8998
8999 amigaos*)
9000 case $host_cpu in
9001 powerpc)
9002 # see comment about AmigaOS4 .so support
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds=''
9005 ;;
9006 m68k)
9007 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)'
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_minus_L=yes
9010 ;;
9011 esac
9012 ;;
9013
9014 bsdi[45]*)
9015 export_dynamic_flag_spec=-rdynamic
9016 ;;
9017
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # When not using gcc, we currently assume that we are using
9020 # Microsoft Visual C++.
9021 # hardcode_libdir_flag_spec is actually meaningless, as there is
9022 # no search path for DLLs.
9023 hardcode_libdir_flag_spec=' '
9024 allow_undefined_flag=unsupported
9025 # Tell ltmain to make .lib files, not .a files.
9026 libext=lib
9027 # Tell ltmain to make .dll files, not .so files.
9028 shrext_cmds=".dll"
9029 # FIXME: Setting linknames here is a bad hack.
9030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9031 # The linker will automatically build a .lib file if we build a DLL.
9032 old_archive_from_new_cmds='true'
9033 # FIXME: Should let the user specify the lib program.
9034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9035 fix_srcfile_path='`cygpath -w "$srcfile"`'
9036 enable_shared_with_static_runtimes=yes
9037 ;;
9038
9039 darwin* | rhapsody*)
9040
9041
9042 archive_cmds_need_lc=no
9043 hardcode_direct=no
9044 hardcode_automatic=yes
9045 hardcode_shlibpath_var=unsupported
9046 whole_archive_flag_spec=''
9047 link_all_deplibs=yes
9048 allow_undefined_flag="$_lt_dar_allow_undefined"
9049 case $cc_basename in
9050 ifort*) _lt_dar_can_shared=yes ;;
9051 *) _lt_dar_can_shared=$GCC ;;
9052 esac
9053 if test "$_lt_dar_can_shared" = "yes"; then
9054 output_verbose_link_cmd=echo
9055 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9056 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9057 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}"
9058 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}"
9059
9060 else
9061 ld_shlibs=no
9062 fi
9063
9064 ;;
9065
9066 dgux*)
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-L$libdir'
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 freebsd1*)
9073 ld_shlibs=no
9074 ;;
9075
9076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9077 # support. Future versions do this automatically, but an explicit c++rt0.o
9078 # does not break anything, and helps significantly (at the cost of a little
9079 # extra space).
9080 freebsd2.2*)
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9082 hardcode_libdir_flag_spec='-R$libdir'
9083 hardcode_direct=yes
9084 hardcode_shlibpath_var=no
9085 ;;
9086
9087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9088 freebsd2*)
9089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9090 hardcode_direct=yes
9091 hardcode_minus_L=yes
9092 hardcode_shlibpath_var=no
9093 ;;
9094
9095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9096 freebsd* | dragonfly*)
9097 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9099 hardcode_direct=yes
9100 hardcode_shlibpath_var=no
9101 ;;
9102
9103 hpux9*)
9104 if test "$GCC" = yes; then
9105 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'
9106 else
9107 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'
9108 fi
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9111 hardcode_direct=yes
9112
9113 # hardcode_minus_L: Not really in the search PATH,
9114 # but as the default location of the library.
9115 hardcode_minus_L=yes
9116 export_dynamic_flag_spec='${wl}-E'
9117 ;;
9118
9119 hpux10*)
9120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9122 else
9123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9124 fi
9125 if test "$with_gnu_ld" = no; then
9126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127 hardcode_libdir_flag_spec_ld='+b $libdir'
9128 hardcode_libdir_separator=:
9129 hardcode_direct=yes
9130 hardcode_direct_absolute=yes
9131 export_dynamic_flag_spec='${wl}-E'
9132 # hardcode_minus_L: Not really in the search PATH,
9133 # but as the default location of the library.
9134 hardcode_minus_L=yes
9135 fi
9136 ;;
9137
9138 hpux11*)
9139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9140 case $host_cpu in
9141 hppa*64*)
9142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 ;;
9144 ia64*)
9145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9146 ;;
9147 *)
9148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9149 ;;
9150 esac
9151 else
9152 case $host_cpu in
9153 hppa*64*)
9154 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 ;;
9156 ia64*)
9157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9158 ;;
9159 *)
9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161 ;;
9162 esac
9163 fi
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9167
9168 case $host_cpu in
9169 hppa*64*|ia64*)
9170 hardcode_direct=no
9171 hardcode_shlibpath_var=no
9172 ;;
9173 *)
9174 hardcode_direct=yes
9175 hardcode_direct_absolute=yes
9176 export_dynamic_flag_spec='${wl}-E'
9177
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
9180 hardcode_minus_L=yes
9181 ;;
9182 esac
9183 fi
9184 ;;
9185
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
9188 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'
9189 # Try to use the -exported_symbol ld option, if it does not
9190 # work, assume that -exports_file does not work either and
9191 # implicitly export all symbols.
9192 save_LDFLAGS="$LDFLAGS"
9193 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9194 cat >conftest.$ac_ext <<_ACEOF
9195 int foo(void) {}
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9199 case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202 esac
9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204 $as_echo "$ac_try_echo") >&5
9205 (eval "$ac_link") 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && {
9212 test -z "$ac_c_werror_flag" ||
9213 test ! -s conftest.err
9214 } && test -s conftest$ac_exeext && {
9215 test "$cross_compiling" = yes ||
9216 $as_test_x conftest$ac_exeext
9217 }; then
9218 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'
9219
9220 else
9221 $as_echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9223
9224
9225 fi
9226
9227 rm -rf conftest.dSYM
9228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229 conftest$ac_exeext conftest.$ac_ext
9230 LDFLAGS="$save_LDFLAGS"
9231 else
9232 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'
9233 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'
9234 fi
9235 archive_cmds_need_lc='no'
9236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237 hardcode_libdir_separator=:
9238 inherit_rpath=yes
9239 link_all_deplibs=yes
9240 ;;
9241
9242 netbsd*)
9243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9245 else
9246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9247 fi
9248 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_direct=yes
9250 hardcode_shlibpath_var=no
9251 ;;
9252
9253 newsos6)
9254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_direct=yes
9256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257 hardcode_libdir_separator=:
9258 hardcode_shlibpath_var=no
9259 ;;
9260
9261 *nto* | *qnx*)
9262 ;;
9263
9264 openbsd*)
9265 if test -f /usr/libexec/ld.so; then
9266 hardcode_direct=yes
9267 hardcode_shlibpath_var=no
9268 hardcode_direct_absolute=yes
9269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec='${wl}-E'
9274 else
9275 case $host_os in
9276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_libdir_flag_spec='-R$libdir'
9279 ;;
9280 *)
9281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9283 ;;
9284 esac
9285 fi
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290
9291 os2*)
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 hardcode_minus_L=yes
9294 allow_undefined_flag=unsupported
9295 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'
9296 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9297 ;;
9298
9299 osf3*)
9300 if test "$GCC" = yes; then
9301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9302 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'
9303 else
9304 allow_undefined_flag=' -expect_unresolved \*'
9305 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'
9306 fi
9307 archive_cmds_need_lc='no'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator=:
9310 ;;
9311
9312 osf4* | osf5*) # as osf3* with the addition of -msym flag
9313 if test "$GCC" = yes; then
9314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9315 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'
9316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317 else
9318 allow_undefined_flag=' -expect_unresolved \*'
9319 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'
9320 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~
9321 $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'
9322
9323 # Both c and cxx compiler support -rpath directly
9324 hardcode_libdir_flag_spec='-rpath $libdir'
9325 fi
9326 archive_cmds_need_lc='no'
9327 hardcode_libdir_separator=:
9328 ;;
9329
9330 solaris*)
9331 no_undefined_flag=' -z defs'
9332 if test "$GCC" = yes; then
9333 wlarc='${wl}'
9334 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9337 else
9338 case `$CC -V 2>&1` in
9339 *"Compilers 5.0"*)
9340 wlarc=''
9341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9344 ;;
9345 *)
9346 wlarc='${wl}'
9347 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9350 ;;
9351 esac
9352 fi
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_shlibpath_var=no
9355 case $host_os in
9356 solaris2.[0-5] | solaris2.[0-5].*) ;;
9357 *)
9358 # The compiler driver will combine and reorder linker options,
9359 # but understands `-z linker_flag'. GCC discards it without `$wl',
9360 # but is careful enough not to reorder.
9361 # Supported since Solaris 2.6 (maybe 2.5.1?)
9362 if test "$GCC" = yes; then
9363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9364 else
9365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9366 fi
9367 ;;
9368 esac
9369 link_all_deplibs=yes
9370 ;;
9371
9372 sunos4*)
9373 if test "x$host_vendor" = xsequent; then
9374 # Use $CC to link under sequent, because it throws in some extra .o
9375 # files that make .init and .fini sections work.
9376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9377 else
9378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9379 fi
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_direct=yes
9382 hardcode_minus_L=yes
9383 hardcode_shlibpath_var=no
9384 ;;
9385
9386 sysv4)
9387 case $host_vendor in
9388 sni)
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_direct=yes # is this really true???
9391 ;;
9392 siemens)
9393 ## LD is ld it makes a PLAMLIB
9394 ## CC just makes a GrossModule.
9395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9396 reload_cmds='$CC -r -o $output$reload_objs'
9397 hardcode_direct=no
9398 ;;
9399 motorola)
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9402 ;;
9403 esac
9404 runpath_var='LD_RUN_PATH'
9405 hardcode_shlibpath_var=no
9406 ;;
9407
9408 sysv4.3*)
9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var=no
9411 export_dynamic_flag_spec='-Bexport'
9412 ;;
9413
9414 sysv4*MP*)
9415 if test -d /usr/nec; then
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var=no
9418 runpath_var=LD_RUN_PATH
9419 hardcode_runpath_var=yes
9420 ld_shlibs=yes
9421 fi
9422 ;;
9423
9424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9425 no_undefined_flag='${wl}-z,text'
9426 archive_cmds_need_lc=no
9427 hardcode_shlibpath_var=no
9428 runpath_var='LD_RUN_PATH'
9429
9430 if test "$GCC" = yes; then
9431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 else
9434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 fi
9437 ;;
9438
9439 sysv5* | sco3.2v5* | sco5v6*)
9440 # Note: We can NOT use -z defs as we might desire, because we do not
9441 # link with -lc, and that would cause any symbols used from libc to
9442 # always be unresolved, which means just about no library would
9443 # ever link correctly. If we're not using GNU ld we use -z text
9444 # though, which does catch some bad symbols but isn't as heavy-handed
9445 # as -z defs.
9446 no_undefined_flag='${wl}-z,text'
9447 allow_undefined_flag='${wl}-z,nodefs'
9448 archive_cmds_need_lc=no
9449 hardcode_shlibpath_var=no
9450 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9451 hardcode_libdir_separator=':'
9452 link_all_deplibs=yes
9453 export_dynamic_flag_spec='${wl}-Bexport'
9454 runpath_var='LD_RUN_PATH'
9455
9456 if test "$GCC" = yes; then
9457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 else
9460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 fi
9463 ;;
9464
9465 uts4*)
9466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_shlibpath_var=no
9469 ;;
9470
9471 *)
9472 ld_shlibs=no
9473 ;;
9474 esac
9475
9476 if test x$host_vendor = xsni; then
9477 case $host in
9478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9479 export_dynamic_flag_spec='${wl}-Blargedynsym'
9480 ;;
9481 esac
9482 fi
9483 fi
9484
9485 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9486 $as_echo "$ld_shlibs" >&6; }
9487 test "$ld_shlibs" = no && can_build_shared=no
9488
9489 with_gnu_ld=$with_gnu_ld
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505 #
9506 # Do we need to explicitly link libc?
9507 #
9508 case "x$archive_cmds_need_lc" in
9509 x|xyes)
9510 # Assume -lc should be added
9511 archive_cmds_need_lc=yes
9512
9513 if test "$enable_shared" = yes && test "$GCC" = yes; then
9514 case $archive_cmds in
9515 *'~'*)
9516 # FIXME: we may have to deal with multi-command sequences.
9517 ;;
9518 '$CC '*)
9519 # Test whether the compiler implicitly links with -lc since on some
9520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9521 # to ld, don't add -lc before -lgcc.
9522 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9524 $RM conftest*
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } 2>conftest.err; then
9532 soname=conftest
9533 lib=conftest
9534 libobjs=conftest.$ac_objext
9535 deplibs=
9536 wl=$lt_prog_compiler_wl
9537 pic_flag=$lt_prog_compiler_pic
9538 compiler_flags=-v
9539 linker_flags=-v
9540 verstring=
9541 output_objdir=.
9542 libname=conftest
9543 lt_save_allow_undefined_flag=$allow_undefined_flag
9544 allow_undefined_flag=
9545 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9547 ac_status=$?
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }
9550 then
9551 archive_cmds_need_lc=no
9552 else
9553 archive_cmds_need_lc=yes
9554 fi
9555 allow_undefined_flag=$lt_save_allow_undefined_flag
9556 else
9557 cat conftest.err 1>&5
9558 fi
9559 $RM conftest*
9560 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9561 $as_echo "$archive_cmds_need_lc" >&6; }
9562 ;;
9563 esac
9564 fi
9565 ;;
9566 esac
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
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9725 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9726
9727 if test "$GCC" = yes; then
9728 case $host_os in
9729 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9730 *) lt_awk_arg="/^libraries:/" ;;
9731 esac
9732 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9733 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9734 # if the path contains ";" then we assume it to be the separator
9735 # otherwise default to the standard path separator (i.e. ":") - it is
9736 # assumed that no part of a normal pathname contains ";" but that should
9737 # okay in the real world where ";" in dirpaths is itself problematic.
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9739 else
9740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9741 fi
9742 # Ok, now we have the path, separated by spaces, we can step through it
9743 # and add multilib dir if necessary.
9744 lt_tmp_lt_search_path_spec=
9745 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9746 for lt_sys_path in $lt_search_path_spec; do
9747 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9749 else
9750 test -d "$lt_sys_path" && \
9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9752 fi
9753 done
9754 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9755 BEGIN {RS=" "; FS="/|\n";} {
9756 lt_foo="";
9757 lt_count=0;
9758 for (lt_i = NF; lt_i > 0; lt_i--) {
9759 if ($lt_i != "" && $lt_i != ".") {
9760 if ($lt_i == "..") {
9761 lt_count++;
9762 } else {
9763 if (lt_count == 0) {
9764 lt_foo="/" $lt_i lt_foo;
9765 } else {
9766 lt_count--;
9767 }
9768 }
9769 }
9770 }
9771 if (lt_foo != "") { lt_freq[lt_foo]++; }
9772 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9773 }'`
9774 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9775 else
9776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9777 fi
9778 library_names_spec=
9779 libname_spec='lib$name'
9780 soname_spec=
9781 shrext_cmds=".so"
9782 postinstall_cmds=
9783 postuninstall_cmds=
9784 finish_cmds=
9785 finish_eval=
9786 shlibpath_var=
9787 shlibpath_overrides_runpath=unknown
9788 version_type=none
9789 dynamic_linker="$host_os ld.so"
9790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9791 need_lib_prefix=unknown
9792 hardcode_into_libs=no
9793
9794 # when you set need_version to no, make sure it does not cause -set_version
9795 # flags to be left without arguments
9796 need_version=unknown
9797
9798 case $host_os in
9799 aix3*)
9800 version_type=linux
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9802 shlibpath_var=LIBPATH
9803
9804 # AIX 3 has no versioning support, so we append a major version to the name.
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 ;;
9807
9808 aix[4-9]*)
9809 version_type=linux
9810 need_lib_prefix=no
9811 need_version=no
9812 hardcode_into_libs=yes
9813 if test "$host_cpu" = ia64; then
9814 # AIX 5 supports IA64
9815 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 else
9818 # With GCC up to 2.95.x, collect2 would create an import file
9819 # for dependence libraries. The import file would start with
9820 # the line `#! .'. This would cause the generated library to
9821 # depend on `.', always an invalid library. This was fixed in
9822 # development snapshots of GCC prior to 3.0.
9823 case $host_os in
9824 aix4 | aix4.[01] | aix4.[01].*)
9825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9826 echo ' yes '
9827 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9828 :
9829 else
9830 can_build_shared=no
9831 fi
9832 ;;
9833 esac
9834 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9835 # soname into executable. Probably we can add versioning support to
9836 # collect2, so additional links can be useful in future.
9837 if test "$aix_use_runtimelinking" = yes; then
9838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9839 # instead of lib<name>.a to let people know that these are not
9840 # typical AIX shared libraries.
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 else
9843 # We preserve .a as extension for shared libraries through AIX4.2
9844 # and later when we are not doing run time linking.
9845 library_names_spec='${libname}${release}.a $libname.a'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 fi
9848 shlibpath_var=LIBPATH
9849 fi
9850 ;;
9851
9852 amigaos*)
9853 case $host_cpu in
9854 powerpc)
9855 # Since July 2007 AmigaOS4 officially supports .so libraries.
9856 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 ;;
9859 m68k)
9860 library_names_spec='$libname.ixlibrary $libname.a'
9861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9862 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'
9863 ;;
9864 esac
9865 ;;
9866
9867 beos*)
9868 library_names_spec='${libname}${shared_ext}'
9869 dynamic_linker="$host_os ld.so"
9870 shlibpath_var=LIBRARY_PATH
9871 ;;
9872
9873 bsdi[45]*)
9874 version_type=linux
9875 need_version=no
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9882 # the default ld.so.conf also contains /usr/contrib/lib and
9883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9884 # libtool to hard-code these into programs
9885 ;;
9886
9887 cygwin* | mingw* | pw32* | cegcc*)
9888 version_type=windows
9889 shrext_cmds=".dll"
9890 need_version=no
9891 need_lib_prefix=no
9892
9893 case $GCC,$host_os in
9894 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9895 library_names_spec='$libname.dll.a'
9896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9897 postinstall_cmds='base_file=`basename \${file}`~
9898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9899 dldir=$destdir/`dirname \$dlpath`~
9900 test -d \$dldir || mkdir -p \$dldir~
9901 $install_prog $dir/$dlname \$dldir/$dlname~
9902 chmod a+x \$dldir/$dlname~
9903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9905 fi'
9906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9907 dlpath=$dir/\$dldll~
9908 $RM \$dlpath'
9909 shlibpath_overrides_runpath=yes
9910
9911 case $host_os in
9912 cygwin*)
9913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9916 ;;
9917 mingw* | cegcc*)
9918 # MinGW DLLs use traditional 'lib' prefix
9919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9920 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9921 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9922 # It is most probably a Windows format PATH printed by
9923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9924 # path with ; separators, and with drive letters. We can handle the
9925 # drive letters (cygwin fileutils understands them), so leave them,
9926 # especially as we might pass files found there to a mingw objdump,
9927 # which wouldn't understand a cygwinified path. Ahh.
9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9929 else
9930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9931 fi
9932 ;;
9933 pw32*)
9934 # pw32 DLLs use 'pw' prefix rather than 'lib'
9935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9936 ;;
9937 esac
9938 ;;
9939
9940 *)
9941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9942 ;;
9943 esac
9944 dynamic_linker='Win32 ld.exe'
9945 # FIXME: first we should search . and the directory the executable is in
9946 shlibpath_var=PATH
9947 ;;
9948
9949 darwin* | rhapsody*)
9950 dynamic_linker="$host_os dyld"
9951 version_type=darwin
9952 need_lib_prefix=no
9953 need_version=no
9954 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9955 soname_spec='${libname}${release}${major}$shared_ext'
9956 shlibpath_overrides_runpath=yes
9957 shlibpath_var=DYLD_LIBRARY_PATH
9958 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9959
9960 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9962 ;;
9963
9964 dgux*)
9965 version_type=linux
9966 need_lib_prefix=no
9967 need_version=no
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 ;;
9972
9973 freebsd1*)
9974 dynamic_linker=no
9975 ;;
9976
9977 freebsd* | dragonfly*)
9978 # DragonFly does not have aout. When/if they implement a new
9979 # versioning mechanism, adjust this.
9980 if test -x /usr/bin/objformat; then
9981 objformat=`/usr/bin/objformat`
9982 else
9983 case $host_os in
9984 freebsd[123]*) objformat=aout ;;
9985 *) objformat=elf ;;
9986 esac
9987 fi
9988 version_type=freebsd-$objformat
9989 case $version_type in
9990 freebsd-elf*)
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9992 need_version=no
9993 need_lib_prefix=no
9994 ;;
9995 freebsd-*)
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9997 need_version=yes
9998 ;;
9999 esac
10000 shlibpath_var=LD_LIBRARY_PATH
10001 case $host_os in
10002 freebsd2*)
10003 shlibpath_overrides_runpath=yes
10004 ;;
10005 freebsd3.[01]* | freebsdelf3.[01]*)
10006 shlibpath_overrides_runpath=yes
10007 hardcode_into_libs=yes
10008 ;;
10009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10011 shlibpath_overrides_runpath=no
10012 hardcode_into_libs=yes
10013 ;;
10014 *) # from 4.6 on, and DragonFly
10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10017 ;;
10018 esac
10019 ;;
10020
10021 gnu*)
10022 version_type=linux
10023 need_lib_prefix=no
10024 need_version=no
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 hardcode_into_libs=yes
10029 ;;
10030
10031 hpux9* | hpux10* | hpux11*)
10032 # Give a soname corresponding to the major version so that dld.sl refuses to
10033 # link against other versions.
10034 version_type=sunos
10035 need_lib_prefix=no
10036 need_version=no
10037 case $host_cpu in
10038 ia64*)
10039 shrext_cmds='.so'
10040 hardcode_into_libs=yes
10041 dynamic_linker="$host_os dld.so"
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 if test "X$HPUX_IA64_MODE" = X32; then
10047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10048 else
10049 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10050 fi
10051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052 ;;
10053 hppa*64*)
10054 shrext_cmds='.sl'
10055 hardcode_into_libs=yes
10056 dynamic_linker="$host_os dld.sl"
10057 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10063 ;;
10064 *)
10065 shrext_cmds='.sl'
10066 dynamic_linker="$host_os dld.sl"
10067 shlibpath_var=SHLIB_PATH
10068 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 ;;
10072 esac
10073 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10074 postinstall_cmds='chmod 555 $lib'
10075 ;;
10076
10077 interix[3-9]*)
10078 version_type=linux
10079 need_lib_prefix=no
10080 need_version=no
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 shlibpath_overrides_runpath=no
10086 hardcode_into_libs=yes
10087 ;;
10088
10089 irix5* | irix6* | nonstopux*)
10090 case $host_os in
10091 nonstopux*) version_type=nonstopux ;;
10092 *)
10093 if test "$lt_cv_prog_gnu_ld" = yes; then
10094 version_type=linux
10095 else
10096 version_type=irix
10097 fi ;;
10098 esac
10099 need_lib_prefix=no
10100 need_version=no
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10103 case $host_os in
10104 irix5* | nonstopux*)
10105 libsuff= shlibsuff=
10106 ;;
10107 *)
10108 case $LD in # libtool.m4 will add one of these switches to LD
10109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10110 libsuff= shlibsuff= libmagic=32-bit;;
10111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10112 libsuff=32 shlibsuff=N32 libmagic=N32;;
10113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10115 *) libsuff= shlibsuff= libmagic=never-match;;
10116 esac
10117 ;;
10118 esac
10119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10120 shlibpath_overrides_runpath=no
10121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10123 hardcode_into_libs=yes
10124 ;;
10125
10126 # No shared lib support for Linux oldld, aout, or coff.
10127 linux*oldld* | linux*aout* | linux*coff*)
10128 dynamic_linker=no
10129 ;;
10130
10131 # This must be Linux ELF.
10132 linux* | k*bsd*-gnu)
10133 version_type=linux
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 shlibpath_overrides_runpath=no
10141 # Some binutils ld are patched to set DT_RUNPATH
10142 save_LDFLAGS=$LDFLAGS
10143 save_libdir=$libdir
10144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h. */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152
10153 int
10154 main ()
10155 {
10156
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10168 $as_echo "$ac_try_echo") >&5
10169 (eval "$ac_link") 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext && {
10179 test "$cross_compiling" = yes ||
10180 $as_test_x conftest$ac_exeext
10181 }; then
10182 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10183 shlibpath_overrides_runpath=yes
10184 fi
10185
10186 else
10187 $as_echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190
10191 fi
10192
10193 rm -rf conftest.dSYM
10194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195 conftest$ac_exeext conftest.$ac_ext
10196 LDFLAGS=$save_LDFLAGS
10197 libdir=$save_libdir
10198
10199 # This implies no fast_install, which is unacceptable.
10200 # Some rework will be needed to allow for fast_install
10201 # before this can be enabled.
10202 hardcode_into_libs=yes
10203
10204 # Add ABI-specific directories to the system library path.
10205 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10206
10207 # Append ld.so.conf contents to the search path
10208 if test -f /etc/ld.so.conf; then
10209 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' ' '`
10210 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10211 fi
10212
10213 # We used to test for /lib/ld.so.1 and disable shared libraries on
10214 # powerpc, because MkLinux only supported shared libraries with the
10215 # GNU dynamic linker. Since this was broken with cross compilers,
10216 # most powerpc-linux boxes support dynamic linking these days and
10217 # people can always --disable-shared, the test was removed, and we
10218 # assume the GNU/Linux dynamic linker is in use.
10219 dynamic_linker='GNU/Linux ld.so'
10220 ;;
10221
10222 netbsd*)
10223 version_type=sunos
10224 need_lib_prefix=no
10225 need_version=no
10226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10229 dynamic_linker='NetBSD (a.out) ld.so'
10230 else
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 dynamic_linker='NetBSD ld.elf_so'
10234 fi
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 hardcode_into_libs=yes
10238 ;;
10239
10240 newsos6)
10241 version_type=linux
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=yes
10245 ;;
10246
10247 *nto* | *qnx*)
10248 version_type=qnx
10249 need_lib_prefix=no
10250 need_version=no
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10256 dynamic_linker='ldqnx.so'
10257 ;;
10258
10259 openbsd*)
10260 version_type=sunos
10261 sys_lib_dlsearch_path_spec="/usr/lib"
10262 need_lib_prefix=no
10263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10264 case $host_os in
10265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10266 *) need_version=no ;;
10267 esac
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10272 case $host_os in
10273 openbsd2.[89] | openbsd2.[89].*)
10274 shlibpath_overrides_runpath=no
10275 ;;
10276 *)
10277 shlibpath_overrides_runpath=yes
10278 ;;
10279 esac
10280 else
10281 shlibpath_overrides_runpath=yes
10282 fi
10283 ;;
10284
10285 os2*)
10286 libname_spec='$name'
10287 shrext_cmds=".dll"
10288 need_lib_prefix=no
10289 library_names_spec='$libname${shared_ext} $libname.a'
10290 dynamic_linker='OS/2 ld.exe'
10291 shlibpath_var=LIBPATH
10292 ;;
10293
10294 osf3* | osf4* | osf5*)
10295 version_type=osf
10296 need_lib_prefix=no
10297 need_version=no
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10303 ;;
10304
10305 rdos*)
10306 dynamic_linker=no
10307 ;;
10308
10309 solaris*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 hardcode_into_libs=yes
10318 # ldd complains unless libraries are executable
10319 postinstall_cmds='chmod +x $lib'
10320 ;;
10321
10322 sunos4*)
10323 version_type=sunos
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes
10328 if test "$with_gnu_ld" = yes; then
10329 need_lib_prefix=no
10330 fi
10331 need_version=yes
10332 ;;
10333
10334 sysv4 | sysv4.3*)
10335 version_type=linux
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 case $host_vendor in
10340 sni)
10341 shlibpath_overrides_runpath=no
10342 need_lib_prefix=no
10343 runpath_var=LD_RUN_PATH
10344 ;;
10345 siemens)
10346 need_lib_prefix=no
10347 ;;
10348 motorola)
10349 need_lib_prefix=no
10350 need_version=no
10351 shlibpath_overrides_runpath=no
10352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10353 ;;
10354 esac
10355 ;;
10356
10357 sysv4*MP*)
10358 if test -d /usr/nec ;then
10359 version_type=linux
10360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10361 soname_spec='$libname${shared_ext}.$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 fi
10364 ;;
10365
10366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10367 version_type=freebsd-elf
10368 need_lib_prefix=no
10369 need_version=no
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10375 if test "$with_gnu_ld" = yes; then
10376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10377 else
10378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10379 case $host_os in
10380 sco3.2v5*)
10381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10382 ;;
10383 esac
10384 fi
10385 sys_lib_dlsearch_path_spec='/usr/lib'
10386 ;;
10387
10388 tpf*)
10389 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10390 version_type=linux
10391 need_lib_prefix=no
10392 need_version=no
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 ;;
10398
10399 uts4*)
10400 version_type=linux
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 ;;
10405
10406 *)
10407 dynamic_linker=no
10408 ;;
10409 esac
10410 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10411 $as_echo "$dynamic_linker" >&6; }
10412 test "$dynamic_linker" = no && can_build_shared=no
10413
10414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10415 if test "$GCC" = yes; then
10416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10417 fi
10418
10419 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10420 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10421 fi
10422 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10423 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10424 fi
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
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10513 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10514 hardcode_action=
10515 if test -n "$hardcode_libdir_flag_spec" ||
10516 test -n "$runpath_var" ||
10517 test "X$hardcode_automatic" = "Xyes" ; then
10518
10519 # We can hardcode non-existent directories.
10520 if test "$hardcode_direct" != no &&
10521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10522 # have to relink, otherwise we might link with an installed library
10523 # when we should be linking with a yet-to-be-installed one
10524 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10525 test "$hardcode_minus_L" != no; then
10526 # Linking always hardcodes the temporary library directory.
10527 hardcode_action=relink
10528 else
10529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10530 hardcode_action=immediate
10531 fi
10532 else
10533 # We cannot hardcode anything, or else we can only hardcode existing
10534 # directories.
10535 hardcode_action=unsupported
10536 fi
10537 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10538 $as_echo "$hardcode_action" >&6; }
10539
10540 if test "$hardcode_action" = relink ||
10541 test "$inherit_rpath" = yes; then
10542 # Fast installation is not supported
10543 enable_fast_install=no
10544 elif test "$shlibpath_overrides_runpath" = yes ||
10545 test "$enable_shared" = no; then
10546 # Fast installation is not necessary
10547 enable_fast_install=needless
10548 fi
10549
10550
10551
10552
10553
10554
10555 if test "x$enable_dlopen" != xyes; then
10556 enable_dlopen=unknown
10557 enable_dlopen_self=unknown
10558 enable_dlopen_self_static=unknown
10559 else
10560 lt_cv_dlopen=no
10561 lt_cv_dlopen_libs=
10562
10563 case $host_os in
10564 beos*)
10565 lt_cv_dlopen="load_add_on"
10566 lt_cv_dlopen_libs=
10567 lt_cv_dlopen_self=yes
10568 ;;
10569
10570 mingw* | pw32* | cegcc*)
10571 lt_cv_dlopen="LoadLibrary"
10572 lt_cv_dlopen_libs=
10573 ;;
10574
10575 cygwin*)
10576 lt_cv_dlopen="dlopen"
10577 lt_cv_dlopen_libs=
10578 ;;
10579
10580 darwin*)
10581 # if libdl is installed we need to link against it
10582 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10583 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10584 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10585 $as_echo_n "(cached) " >&6
10586 else
10587 ac_check_lib_save_LIBS=$LIBS
10588 LIBS="-ldl $LIBS"
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595
10596 /* Override any GCC internal prototype to avoid an error.
10597 Use char because int might match the return type of a GCC
10598 builtin and then its argument prototype would still apply. */
10599 #ifdef __cplusplus
10600 extern "C"
10601 #endif
10602 char dlopen ();
10603 int
10604 main ()
10605 {
10606 return dlopen ();
10607 ;
10608 return 0;
10609 }
10610 _ACEOF
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (ac_try="$ac_link"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_link") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest$ac_exeext && {
10629 test "$cross_compiling" = yes ||
10630 $as_test_x conftest$ac_exeext
10631 }; then
10632 ac_cv_lib_dl_dlopen=yes
10633 else
10634 $as_echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637 ac_cv_lib_dl_dlopen=no
10638 fi
10639
10640 rm -rf conftest.dSYM
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10643 LIBS=$ac_check_lib_save_LIBS
10644 fi
10645 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10646 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10647 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10649 else
10650
10651 lt_cv_dlopen="dyld"
10652 lt_cv_dlopen_libs=
10653 lt_cv_dlopen_self=yes
10654
10655 fi
10656
10657 ;;
10658
10659 *)
10660 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10661 $as_echo_n "checking for shl_load... " >&6; }
10662 if test "${ac_cv_func_shl_load+set}" = set; then
10663 $as_echo_n "(cached) " >&6
10664 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10673 #define shl_load innocuous_shl_load
10674
10675 /* System header to define __stub macros and hopefully few prototypes,
10676 which can conflict with char shl_load (); below.
10677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678 <limits.h> exists even on freestanding compilers. */
10679
10680 #ifdef __STDC__
10681 # include <limits.h>
10682 #else
10683 # include <assert.h>
10684 #endif
10685
10686 #undef shl_load
10687
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 char shl_load ();
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined __stub_shl_load || defined __stub___shl_load
10699 choke me
10700 #endif
10701
10702 int
10703 main ()
10704 {
10705 return shl_load ();
10706 ;
10707 return 0;
10708 }
10709 _ACEOF
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (ac_try="$ac_link"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717 $as_echo "$ac_try_echo") >&5
10718 (eval "$ac_link") 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext && {
10728 test "$cross_compiling" = yes ||
10729 $as_test_x conftest$ac_exeext
10730 }; then
10731 ac_cv_func_shl_load=yes
10732 else
10733 $as_echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736 ac_cv_func_shl_load=no
10737 fi
10738
10739 rm -rf conftest.dSYM
10740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10741 conftest$ac_exeext conftest.$ac_ext
10742 fi
10743 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10744 $as_echo "$ac_cv_func_shl_load" >&6; }
10745 if test "x$ac_cv_func_shl_load" = x""yes; then
10746 lt_cv_dlopen="shl_load"
10747 else
10748 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10749 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10750 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10751 $as_echo_n "(cached) " >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-ldld $LIBS"
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761
10762 /* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 char shl_load ();
10769 int
10770 main ()
10771 {
10772 return shl_load ();
10773 ;
10774 return 0;
10775 }
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10797 }; then
10798 ac_cv_lib_dld_shl_load=yes
10799 else
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_cv_lib_dld_shl_load=no
10804 fi
10805
10806 rm -rf conftest.dSYM
10807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10810 fi
10811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10812 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10813 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10815 else
10816 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10817 $as_echo_n "checking for dlopen... " >&6; }
10818 if test "${ac_cv_func_dlopen+set}" = set; then
10819 $as_echo_n "(cached) " >&6
10820 else
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10829 #define dlopen innocuous_dlopen
10830
10831 /* System header to define __stub macros and hopefully few prototypes,
10832 which can conflict with char dlopen (); below.
10833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10834 <limits.h> exists even on freestanding compilers. */
10835
10836 #ifdef __STDC__
10837 # include <limits.h>
10838 #else
10839 # include <assert.h>
10840 #endif
10841
10842 #undef dlopen
10843
10844 /* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char dlopen ();
10851 /* The GNU C library defines this for functions which it implements
10852 to always fail with ENOSYS. Some functions are actually named
10853 something starting with __ and the normal name is an alias. */
10854 #if defined __stub_dlopen || defined __stub___dlopen
10855 choke me
10856 #endif
10857
10858 int
10859 main ()
10860 {
10861 return dlopen ();
10862 ;
10863 return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (ac_try="$ac_link"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871 esac
10872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10873 $as_echo "$ac_try_echo") >&5
10874 (eval "$ac_link") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest$ac_exeext && {
10884 test "$cross_compiling" = yes ||
10885 $as_test_x conftest$ac_exeext
10886 }; then
10887 ac_cv_func_dlopen=yes
10888 else
10889 $as_echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 ac_cv_func_dlopen=no
10893 fi
10894
10895 rm -rf conftest.dSYM
10896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10897 conftest$ac_exeext conftest.$ac_ext
10898 fi
10899 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10900 $as_echo "$ac_cv_func_dlopen" >&6; }
10901 if test "x$ac_cv_func_dlopen" = x""yes; then
10902 lt_cv_dlopen="dlopen"
10903 else
10904 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10905 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10907 $as_echo_n "(cached) " >&6
10908 else
10909 ac_check_lib_save_LIBS=$LIBS
10910 LIBS="-ldl $LIBS"
10911 cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h. */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10917
10918 /* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
10921 #ifdef __cplusplus
10922 extern "C"
10923 #endif
10924 char dlopen ();
10925 int
10926 main ()
10927 {
10928 return dlopen ();
10929 ;
10930 return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (ac_try="$ac_link"
10935 case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938 esac
10939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10940 $as_echo "$ac_try_echo") >&5
10941 (eval "$ac_link") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext && {
10951 test "$cross_compiling" = yes ||
10952 $as_test_x conftest$ac_exeext
10953 }; then
10954 ac_cv_lib_dl_dlopen=yes
10955 else
10956 $as_echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_cv_lib_dl_dlopen=no
10960 fi
10961
10962 rm -rf conftest.dSYM
10963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 conftest$ac_exeext conftest.$ac_ext
10965 LIBS=$ac_check_lib_save_LIBS
10966 fi
10967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10969 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10971 else
10972 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10975 $as_echo_n "(cached) " >&6
10976 else
10977 ac_check_lib_save_LIBS=$LIBS
10978 LIBS="-lsvld $LIBS"
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char dlopen ();
10993 int
10994 main ()
10995 {
10996 return dlopen ();
10997 ;
10998 return 0;
10999 }
11000 _ACEOF
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006 esac
11007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11008 $as_echo "$ac_try_echo") >&5
11009 (eval "$ac_link") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest$ac_exeext && {
11019 test "$cross_compiling" = yes ||
11020 $as_test_x conftest$ac_exeext
11021 }; then
11022 ac_cv_lib_svld_dlopen=yes
11023 else
11024 $as_echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11026
11027 ac_cv_lib_svld_dlopen=no
11028 fi
11029
11030 rm -rf conftest.dSYM
11031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11033 LIBS=$ac_check_lib_save_LIBS
11034 fi
11035 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11036 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11037 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11039 else
11040 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11041 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11042 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11043 $as_echo_n "(cached) " >&6
11044 else
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-ldld $LIBS"
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 char dld_link ();
11061 int
11062 main ()
11063 {
11064 return dld_link ();
11065 ;
11066 return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (ac_try="$ac_link"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074 esac
11075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11076 $as_echo "$ac_try_echo") >&5
11077 (eval "$ac_link") 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest$ac_exeext && {
11087 test "$cross_compiling" = yes ||
11088 $as_test_x conftest$ac_exeext
11089 }; then
11090 ac_cv_lib_dld_dld_link=yes
11091 else
11092 $as_echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_cv_lib_dld_dld_link=no
11096 fi
11097
11098 rm -rf conftest.dSYM
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11102 fi
11103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11104 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11105 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11106 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11107 fi
11108
11109
11110 fi
11111
11112
11113 fi
11114
11115
11116 fi
11117
11118
11119 fi
11120
11121
11122 fi
11123
11124 ;;
11125 esac
11126
11127 if test "x$lt_cv_dlopen" != xno; then
11128 enable_dlopen=yes
11129 else
11130 enable_dlopen=no
11131 fi
11132
11133 case $lt_cv_dlopen in
11134 dlopen)
11135 save_CPPFLAGS="$CPPFLAGS"
11136 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11137
11138 save_LDFLAGS="$LDFLAGS"
11139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11140
11141 save_LIBS="$LIBS"
11142 LIBS="$lt_cv_dlopen_libs $LIBS"
11143
11144 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11145 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11146 if test "${lt_cv_dlopen_self+set}" = set; then
11147 $as_echo_n "(cached) " >&6
11148 else
11149 if test "$cross_compiling" = yes; then :
11150 lt_cv_dlopen_self=cross
11151 else
11152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11153 lt_status=$lt_dlunknown
11154 cat > conftest.$ac_ext <<_LT_EOF
11155 #line 11155 "configure"
11156 #include "confdefs.h"
11157
11158 #if HAVE_DLFCN_H
11159 #include <dlfcn.h>
11160 #endif
11161
11162 #include <stdio.h>
11163
11164 #ifdef RTLD_GLOBAL
11165 # define LT_DLGLOBAL RTLD_GLOBAL
11166 #else
11167 # ifdef DL_GLOBAL
11168 # define LT_DLGLOBAL DL_GLOBAL
11169 # else
11170 # define LT_DLGLOBAL 0
11171 # endif
11172 #endif
11173
11174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11175 find out it does not work in some platform. */
11176 #ifndef LT_DLLAZY_OR_NOW
11177 # ifdef RTLD_LAZY
11178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11179 # else
11180 # ifdef DL_LAZY
11181 # define LT_DLLAZY_OR_NOW DL_LAZY
11182 # else
11183 # ifdef RTLD_NOW
11184 # define LT_DLLAZY_OR_NOW RTLD_NOW
11185 # else
11186 # ifdef DL_NOW
11187 # define LT_DLLAZY_OR_NOW DL_NOW
11188 # else
11189 # define LT_DLLAZY_OR_NOW 0
11190 # endif
11191 # endif
11192 # endif
11193 # endif
11194 #endif
11195
11196 void fnord() { int i=42;}
11197 int main ()
11198 {
11199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11200 int status = $lt_dlunknown;
11201
11202 if (self)
11203 {
11204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11206 /* dlclose (self); */
11207 }
11208 else
11209 puts (dlerror ());
11210
11211 return status;
11212 }
11213 _LT_EOF
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>&5
11216 ac_status=$?
11217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11219 (./conftest; exit; ) >&5 2>/dev/null
11220 lt_status=$?
11221 case x$lt_status in
11222 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11223 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11224 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11225 esac
11226 else :
11227 # compilation failed
11228 lt_cv_dlopen_self=no
11229 fi
11230 fi
11231 rm -fr conftest*
11232
11233
11234 fi
11235 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11236 $as_echo "$lt_cv_dlopen_self" >&6; }
11237
11238 if test "x$lt_cv_dlopen_self" = xyes; then
11239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11240 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11241 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11242 if test "${lt_cv_dlopen_self_static+set}" = set; then
11243 $as_echo_n "(cached) " >&6
11244 else
11245 if test "$cross_compiling" = yes; then :
11246 lt_cv_dlopen_self_static=cross
11247 else
11248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11249 lt_status=$lt_dlunknown
11250 cat > conftest.$ac_ext <<_LT_EOF
11251 #line 11251 "configure"
11252 #include "confdefs.h"
11253
11254 #if HAVE_DLFCN_H
11255 #include <dlfcn.h>
11256 #endif
11257
11258 #include <stdio.h>
11259
11260 #ifdef RTLD_GLOBAL
11261 # define LT_DLGLOBAL RTLD_GLOBAL
11262 #else
11263 # ifdef DL_GLOBAL
11264 # define LT_DLGLOBAL DL_GLOBAL
11265 # else
11266 # define LT_DLGLOBAL 0
11267 # endif
11268 #endif
11269
11270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11271 find out it does not work in some platform. */
11272 #ifndef LT_DLLAZY_OR_NOW
11273 # ifdef RTLD_LAZY
11274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11275 # else
11276 # ifdef DL_LAZY
11277 # define LT_DLLAZY_OR_NOW DL_LAZY
11278 # else
11279 # ifdef RTLD_NOW
11280 # define LT_DLLAZY_OR_NOW RTLD_NOW
11281 # else
11282 # ifdef DL_NOW
11283 # define LT_DLLAZY_OR_NOW DL_NOW
11284 # else
11285 # define LT_DLLAZY_OR_NOW 0
11286 # endif
11287 # endif
11288 # endif
11289 # endif
11290 #endif
11291
11292 void fnord() { int i=42;}
11293 int main ()
11294 {
11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11296 int status = $lt_dlunknown;
11297
11298 if (self)
11299 {
11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11302 /* dlclose (self); */
11303 }
11304 else
11305 puts (dlerror ());
11306
11307 return status;
11308 }
11309 _LT_EOF
11310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11311 (eval $ac_link) 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11315 (./conftest; exit; ) >&5 2>/dev/null
11316 lt_status=$?
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11321 esac
11322 else :
11323 # compilation failed
11324 lt_cv_dlopen_self_static=no
11325 fi
11326 fi
11327 rm -fr conftest*
11328
11329
11330 fi
11331 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11332 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11333 fi
11334
11335 CPPFLAGS="$save_CPPFLAGS"
11336 LDFLAGS="$save_LDFLAGS"
11337 LIBS="$save_LIBS"
11338 ;;
11339 esac
11340
11341 case $lt_cv_dlopen_self in
11342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11343 *) enable_dlopen_self=unknown ;;
11344 esac
11345
11346 case $lt_cv_dlopen_self_static in
11347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11348 *) enable_dlopen_self_static=unknown ;;
11349 esac
11350 fi
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368 striplib=
11369 old_striplib=
11370 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11371 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11372 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11373 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11374 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11375 { $as_echo "$as_me:$LINENO: result: yes" >&5
11376 $as_echo "yes" >&6; }
11377 else
11378 # FIXME - insert some real tests, host_os isn't really good enough
11379 case $host_os in
11380 darwin*)
11381 if test -n "$STRIP" ; then
11382 striplib="$STRIP -x"
11383 old_striplib="$STRIP -S"
11384 { $as_echo "$as_me:$LINENO: result: yes" >&5
11385 $as_echo "yes" >&6; }
11386 else
11387 { $as_echo "$as_me:$LINENO: result: no" >&5
11388 $as_echo "no" >&6; }
11389 fi
11390 ;;
11391 *)
11392 { $as_echo "$as_me:$LINENO: result: no" >&5
11393 $as_echo "no" >&6; }
11394 ;;
11395 esac
11396 fi
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409 # Report which library types will actually be built
11410 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11411 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11412 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11413 $as_echo "$can_build_shared" >&6; }
11414
11415 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11416 $as_echo_n "checking whether to build shared libraries... " >&6; }
11417 test "$can_build_shared" = "no" && enable_shared=no
11418
11419 # On AIX, shared libraries and static libraries use the same namespace, and
11420 # are all built from PIC.
11421 case $host_os in
11422 aix3*)
11423 test "$enable_shared" = yes && enable_static=no
11424 if test -n "$RANLIB"; then
11425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11426 postinstall_cmds='$RANLIB $lib'
11427 fi
11428 ;;
11429
11430 aix[4-9]*)
11431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11432 test "$enable_shared" = yes && enable_static=no
11433 fi
11434 ;;
11435 esac
11436 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11437 $as_echo "$enable_shared" >&6; }
11438
11439 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11440 $as_echo_n "checking whether to build static libraries... " >&6; }
11441 # Make sure either enable_shared or enable_static is yes.
11442 test "$enable_shared" = yes || enable_static=yes
11443 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11444 $as_echo "$enable_static" >&6; }
11445
11446
11447
11448
11449 fi
11450 ac_ext=c
11451 ac_cpp='$CPP $CPPFLAGS'
11452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455
11456 CC="$lt_save_CC"
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470 ac_config_commands="$ac_config_commands libtool"
11471
11472
11473
11474
11475 # Only expand once:
11476
11477
11478
11479
11480 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11481 $as_echo_n "checking spl license... " >&6; }
11482 LICENSE=GPL
11483 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11484 $as_echo "$LICENSE" >&6; }
11485 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11486
11487
11488
11489
11490 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11491 $as_echo_n "checking linux distribution... " >&6; }
11492 if test -f /etc/redhat-release ; then
11493 VENDOR=redhat ;
11494 elif test -f /etc/fedora-release ; then
11495 VENDOR=fedora ;
11496 elif test -f /etc/arch-release ; then
11497 VENDOR=arch ;
11498 elif test -f /etc/lsb-release ; then
11499 VENDOR=ubuntu ;
11500 elif test -f /etc/debian_version ; then
11501 VENDOR=debian ;
11502 elif test -f /etc/SuSE-release ; then
11503 VENDOR=sles ;
11504 elif test -f /etc/slackware-version ; then
11505 VENDOR=slackware ;
11506 elif test -f /etc/gentoo-release ; then
11507 VENDOR=gentoo ;
11508 else
11509 VENDOR= ;
11510 fi
11511 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11512 $as_echo "$VENDOR" >&6; }
11513
11514
11515 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11516 $as_echo_n "checking default package type... " >&6; }
11517 case "$VENDOR" in
11518 fedora) DEFAULT_PACKAGE=rpm ;;
11519 redhat) DEFAULT_PACKAGE=rpm ;;
11520 sles) DEFAULT_PACKAGE=rpm ;;
11521 ubuntu) DEFAULT_PACKAGE=deb ;;
11522 debian) DEFAULT_PACKAGE=deb ;;
11523 slackware) DEFAULT_PACKAGE=tgz ;;
11524 arch) DEFAULT_PACKAGE=arch;;
11525 *) DEFAULT_PACKAGE=rpm ;;
11526 esac
11527
11528 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11529 $as_echo "$DEFAULT_PACKAGE" >&6; }
11530
11531
11532
11533 RPM=rpm
11534 RPMBUILD=rpmbuild
11535
11536 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11537 $as_echo_n "checking whether $RPM is available... " >&6; }
11538 if tmp=$($RPM --version 2>/dev/null); then
11539
11540 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11541 HAVE_RPM=yes
11542 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11543 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11544
11545 else
11546
11547 HAVE_RPM=no
11548 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11549 $as_echo "$HAVE_RPM" >&6; }
11550
11551 fi
11552
11553
11554 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11555 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11556 if tmp=$($RPMBUILD --version 2>/dev/null); then
11557
11558 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11559 HAVE_RPMBUILD=yes
11560 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11561 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11562
11563 else
11564
11565 HAVE_RPMBUILD=no
11566 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11567 $as_echo "$HAVE_RPMBUILD" >&6; }
11568
11569 fi
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581 DPKG=dpkg
11582 DPKGBUILD=dpkg-buildpackage
11583
11584 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11585 $as_echo_n "checking whether $DPKG is available... " >&6; }
11586 if tmp=$($DPKG --version 2>/dev/null); then
11587
11588 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11589 HAVE_DPKG=yes
11590 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11591 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11592
11593 else
11594
11595 HAVE_DPKG=no
11596 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11597 $as_echo "$HAVE_DPKG" >&6; }
11598
11599 fi
11600
11601
11602 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11603 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11604 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11605
11606 DPKGBUILD_VERSION=$(echo $tmp | \
11607 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11608 HAVE_DPKGBUILD=yes
11609 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11610 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11611
11612 else
11613
11614 HAVE_DPKGBUILD=no
11615 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11616 $as_echo "$HAVE_DPKGBUILD" >&6; }
11617
11618 fi
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630 ALIEN=alien
11631
11632 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11633 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11634 if tmp=$($ALIEN --version 2>/dev/null); then
11635
11636 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11637 HAVE_ALIEN=yes
11638 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11639 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11640
11641 else
11642
11643 HAVE_ALIEN=no
11644 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11645 $as_echo "$HAVE_ALIEN" >&6; }
11646
11647 fi
11648
11649
11650
11651
11652
11653
11654
11655 if test "$VENDOR" = "arch"; then
11656
11657 PACMAN=pacman
11658 MAKEPKG=makepkg
11659
11660 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11661 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11662 tmp=$($PACMAN --version 2>/dev/null)
11663 if test -n "$tmp"; then
11664
11665 PACMAN_VERSION=$(echo $tmp |
11666 $AWK '/Pacman/ { print $3 }' |
11667 $SED 's/^v//')
11668 HAVE_PACMAN=yes
11669 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11670 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11671
11672 else
11673
11674 HAVE_PACMAN=no
11675 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11676 $as_echo "$HAVE_PACMAN" >&6; }
11677
11678 fi
11679
11680
11681 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11682 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11683 tmp=$($MAKEPKG --version 2>/dev/null)
11684 if test -n "$tmp"; then
11685
11686 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11687 HAVE_MAKEPKG=yes
11688 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11689 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11690
11691 else
11692
11693 HAVE_MAKEPKG=no
11694 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11695 $as_echo "$HAVE_MAKEPKG" >&6; }
11696
11697 fi
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708 fi
11709
11710
11711
11712 SPL_CONFIG=all
11713
11714 # Check whether --with-config was given.
11715 if test "${with_config+set}" = set; then
11716 withval=$with_config; SPL_CONFIG="$withval"
11717 fi
11718
11719
11720 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11721 $as_echo_n "checking spl config... " >&6; }
11722 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11723 $as_echo "$SPL_CONFIG" >&6; };
11724
11725
11726 case "$SPL_CONFIG" in
11727 kernel)
11728
11729
11730 # Check whether --with-linux was given.
11731 if test "${with_linux+set}" = set; then
11732 withval=$with_linux; kernelsrc="$withval"
11733 fi
11734
11735
11736
11737 # Check whether --with-linux-obj was given.
11738 if test "${with_linux_obj+set}" = set; then
11739 withval=$with_linux_obj; kernelbuild="$withval"
11740 fi
11741
11742
11743 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11744 $as_echo_n "checking kernel source directory... " >&6; }
11745 if test -z "$kernelsrc"; then
11746 if test -e "/lib/modules/$(uname -r)/source"; then
11747 headersdir="/lib/modules/$(uname -r)/source"
11748 sourcelink=$(readlink -f "$headersdir")
11749 elif test -e "/lib/modules/$(uname -r)/build"; then
11750 headersdir="/lib/modules/$(uname -r)/build"
11751 sourcelink=$(readlink -f "$headersdir")
11752 else
11753 sourcelink=$(ls -1d /usr/src/kernels/* \
11754 /usr/src/linux-* \
11755 2>/dev/null | grep -v obj | tail -1)
11756 fi
11757
11758 if test -n "$sourcelink" && test -e ${sourcelink}; then
11759 kernelsrc=`readlink -f ${sourcelink}`
11760 else
11761 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11762 $as_echo "Not found" >&6; }
11763 { { $as_echo "$as_me:$LINENO: error:
11764 *** Please make sure the kernel devel package for your distribution
11765 *** is installed then try again. If that fails you can specify the
11766 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11767 $as_echo "$as_me: error:
11768 *** Please make sure the kernel devel package for your distribution
11769 *** is installed then try again. If that fails you can specify the
11770 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11771 { (exit 1); exit 1; }; }
11772 fi
11773 else
11774 if test "$kernelsrc" = "NONE"; then
11775 kernsrcver=NONE
11776 fi
11777 fi
11778
11779 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11780 $as_echo "$kernelsrc" >&6; }
11781 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11782 $as_echo_n "checking kernel build directory... " >&6; }
11783 if test -z "$kernelbuild"; then
11784 if test -e "/lib/modules/$(uname -r)/build"; then
11785 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11786 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11787 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11788 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11789 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11790 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11791 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11792 else
11793 kernelbuild=${kernelsrc}
11794 fi
11795 fi
11796 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11797 $as_echo "$kernelbuild" >&6; }
11798
11799 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11800 $as_echo_n "checking kernel source version... " >&6; }
11801 utsrelease1=$kernelbuild/include/linux/version.h
11802 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11803 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11804 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11805 utsrelease=linux/version.h
11806 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11807 utsrelease=linux/utsrelease.h
11808 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11809 utsrelease=generated/utsrelease.h
11810 fi
11811
11812 if test "$utsrelease"; then
11813 kernsrcver=`(echo "#include <$utsrelease>";
11814 echo "kernsrcver=UTS_RELEASE") |
11815 cpp -I $kernelbuild/include |
11816 grep "^kernsrcver=" | cut -d \" -f 2`
11817
11818 if test -z "$kernsrcver"; then
11819 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11820 $as_echo "Not found" >&6; }
11821 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11822 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11823 { (exit 1); exit 1; }; }
11824 fi
11825 else
11826 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11827 $as_echo "Not found" >&6; }
11828 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11829 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11830 { (exit 1); exit 1; }; }
11831 fi
11832
11833 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11834 $as_echo "$kernsrcver" >&6; }
11835
11836 LINUX=${kernelsrc}
11837 LINUX_OBJ=${kernelbuild}
11838 LINUX_VERSION=${kernsrcver}
11839
11840
11841
11842
11843
11844
11845 modpost=$LINUX/scripts/Makefile.modpost
11846 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11847 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11848 if test -f "$modpost"; then
11849 if grep -q Modules.symvers $modpost; then
11850 LINUX_SYMBOLS=Modules.symvers
11851 else
11852 LINUX_SYMBOLS=Module.symvers
11853 fi
11854
11855 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11856 { { $as_echo "$as_me:$LINENO: error:
11857 *** Please make sure the kernel devel package for your distribution
11858 *** is installed. If your building with a custom kernel make sure the
11859 *** kernel is configured, built, and the '--with-linux=PATH' configure
11860 *** option refers to the location of the kernel source." >&5
11861 $as_echo "$as_me: error:
11862 *** Please make sure the kernel devel package for your distribution
11863 *** is installed. If your building with a custom kernel make sure the
11864 *** kernel is configured, built, and the '--with-linux=PATH' configure
11865 *** option refers to the location of the kernel source." >&2;}
11866 { (exit 1); exit 1; }; }
11867 fi
11868 else
11869 LINUX_SYMBOLS=NONE
11870 fi
11871 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11872 $as_echo "$LINUX_SYMBOLS" >&6; }
11873
11874
11875
11876
11877 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11878 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11879
11880
11881 cat confdefs.h - <<_ACEOF >conftest.c
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887
11888
11889 #include <linux/module.h>
11890
11891 int
11892 main (void)
11893 {
11894
11895 #ifndef CONFIG_PREEMPT
11896 #error CONFIG_PREEMPT not #defined
11897 #endif
11898
11899 ;
11900 return 0;
11901 }
11902
11903 _ACEOF
11904
11905
11906 rm -Rf build && mkdir -p build
11907 echo "obj-m := conftest.o" >build/Makefile
11908 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919
11920 { $as_echo "$as_me:$LINENO: result: yes" >&5
11921 $as_echo "yes" >&6; }
11922 { { $as_echo "$as_me:$LINENO: error:
11923 *** Kernel built with CONFIG_PREEMPT which is not supported.
11924 ** You must rebuild your kernel without this option." >&5
11925 $as_echo "$as_me: error:
11926 *** Kernel built with CONFIG_PREEMPT which is not supported.
11927 ** You must rebuild your kernel without this option." >&2;}
11928 { (exit 1); exit 1; }; }
11929
11930 else
11931 $as_echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 { $as_echo "$as_me:$LINENO: result: no" >&5
11935 $as_echo "no" >&6; }
11936
11937
11938
11939
11940 fi
11941
11942 rm -Rf build
11943
11944
11945
11946
11947
11948 if test "${LINUX_OBJ}" != "${LINUX}"; then
11949 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11950 fi
11951
11952
11953 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11954
11955
11956
11957 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11958 $as_echo_n "checking whether debugging is enabled... " >&6; }
11959 # Check whether --enable-debug was given.
11960 if test "${enable_debug+set}" = set; then
11961 enableval=$enable_debug;
11962 else
11963 enable_debug=no
11964 fi
11965
11966
11967 if test "x$enable_debug" = xyes; then
11968
11969 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11970 DEBUG_CFLAGS="-DDEBUG -Werror"
11971
11972 else
11973
11974 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11975 DEBUG_CFLAGS="-DNDEBUG"
11976
11977 fi
11978
11979
11980
11981 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11982 $as_echo "$enable_debug" >&6; }
11983
11984
11985 # Check whether --enable-debug-log was given.
11986 if test "${enable_debug_log+set}" = set; then
11987 enableval=$enable_debug_log;
11988 else
11989 enable_debug_log=yes
11990 fi
11991
11992
11993 if test "x$enable_debug_log" = xyes; then
11994
11995 cat >>confdefs.h <<\_ACEOF
11996 #define DEBUG_LOG 1
11997 _ACEOF
11998
11999 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
12000 fi
12001
12002
12003 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
12004 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
12005 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
12006 $as_echo "$enable_debug_log" >&6; }
12007
12008
12009 # Check whether --enable-debug-kmem was given.
12010 if test "${enable_debug_kmem+set}" = set; then
12011 enableval=$enable_debug_kmem;
12012 else
12013 enable_debug_kmem=yes
12014 fi
12015
12016
12017 if test "x$enable_debug_kmem" = xyes; then
12018
12019 cat >>confdefs.h <<\_ACEOF
12020 #define DEBUG_KMEM 1
12021 _ACEOF
12022
12023 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
12024 fi
12025
12026
12027 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
12028 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12029 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12030 $as_echo "$enable_debug_kmem" >&6; }
12031
12032
12033 # Check whether --enable-debug-kmem-tracking was given.
12034 if test "${enable_debug_kmem_tracking+set}" = set; then
12035 enableval=$enable_debug_kmem_tracking;
12036 else
12037 enable_debug_kmem_tracking=no
12038 fi
12039
12040
12041 if test "x$enable_debug_kmem_tracking" = xyes; then
12042
12043 cat >>confdefs.h <<\_ACEOF
12044 #define DEBUG_KMEM_TRACKING 1
12045 _ACEOF
12046
12047 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12048 fi
12049
12050
12051 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12052 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12053 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12054 $as_echo "$enable_debug_kmem_tracking" >&6; }
12055
12056
12057 # Check whether --enable-atomic-spinlocks was given.
12058 if test "${enable_atomic_spinlocks+set}" = set; then
12059 enableval=$enable_atomic_spinlocks;
12060 else
12061 enable_atomic_spinlocks=check
12062 fi
12063
12064
12065
12066
12067 cat confdefs.h - <<_ACEOF >conftest.c
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073
12074
12075 #include <asm/atomic.h>
12076
12077 int
12078 main (void)
12079 {
12080
12081 atomic64_t *ptr __attribute__ ((unused));
12082
12083 ;
12084 return 0;
12085 }
12086
12087 _ACEOF
12088
12089
12090 rm -Rf build && mkdir -p build
12091 echo "obj-m := conftest.o" >build/Makefile
12092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103
12104 have_atomic64_t=yes
12105
12106 cat >>confdefs.h <<\_ACEOF
12107 #define HAVE_ATOMIC64_T 1
12108 _ACEOF
12109
12110
12111 else
12112 $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 have_atomic64_t=no
12116
12117
12118
12119 fi
12120
12121 rm -Rf build
12122
12123
12124
12125 if test "x$enable_atomic_spinlocks" = xcheck; then
12126
12127 if test "x$have_atomic64_t" = xyes; then
12128
12129 enable_atomic_spinlocks=no
12130
12131 else
12132
12133 enable_atomic_spinlocks=yes
12134
12135 fi
12136
12137
12138 fi
12139
12140
12141 if test "x$enable_atomic_spinlocks" = xyes; then
12142
12143
12144 cat >>confdefs.h <<\_ACEOF
12145 #define ATOMIC_SPINLOCK 1
12146 _ACEOF
12147
12148
12149 else
12150
12151 if test "x$have_atomic64_t" = xno; then
12152
12153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12155 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12156 See \`config.log' for more details." >&5
12157 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12158 See \`config.log' for more details." >&2;}
12159 { (exit 1); exit 1; }; }; }
12160
12161 fi
12162
12163
12164 fi
12165
12166
12167 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12168 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12169 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12170 $as_echo "$enable_atomic_spinlocks" >&6; }
12171
12172 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12173 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12174 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12175 $as_echo "$have_atomic64_t" >&6; }
12176
12177 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12178 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
12179
12180
12181 cat confdefs.h - <<_ACEOF >conftest.c
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187
12188
12189 #include <asm/atomic.h>
12190 #include <asm/system.h>
12191
12192 int
12193 main (void)
12194 {
12195
12196 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
12197
12198 ;
12199 return 0;
12200 }
12201
12202 _ACEOF
12203
12204
12205 rm -Rf build && mkdir -p build
12206 echo "obj-m := conftest.o" >build/Makefile
12207 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218
12219 { $as_echo "$as_me:$LINENO: result: yes" >&5
12220 $as_echo "yes" >&6; }
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_ATOMIC64_CMPXCHG 1
12224 _ACEOF
12225
12226
12227 else
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 { $as_echo "$as_me:$LINENO: result: no" >&5
12232 $as_echo "no" >&6; }
12233
12234
12235
12236 fi
12237
12238 rm -Rf build
12239
12240
12241
12242 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12243 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
12244
12245
12246 cat confdefs.h - <<_ACEOF >conftest.c
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252
12253
12254 #include <asm/atomic.h>
12255
12256 int
12257 main (void)
12258 {
12259
12260 atomic64_xchg((atomic64_t *)NULL, 0);
12261
12262 ;
12263 return 0;
12264 }
12265
12266 _ACEOF
12267
12268
12269 rm -Rf build && mkdir -p build
12270 echo "obj-m := conftest.o" >build/Makefile
12271 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282
12283 { $as_echo "$as_me:$LINENO: result: yes" >&5
12284 $as_echo "yes" >&6; }
12285
12286 cat >>confdefs.h <<\_ACEOF
12287 #define HAVE_ATOMIC64_XCHG 1
12288 _ACEOF
12289
12290
12291 else
12292 $as_echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 { $as_echo "$as_me:$LINENO: result: no" >&5
12296 $as_echo "no" >&6; }
12297
12298
12299
12300 fi
12301
12302 rm -Rf build
12303
12304
12305
12306 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12307 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
12308
12309
12310 cat confdefs.h - <<_ACEOF >conftest.c
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316
12317
12318 #include <linux/types.h>
12319
12320 int
12321 main (void)
12322 {
12323
12324 uintptr_t *ptr __attribute__ ((unused));
12325
12326 ;
12327 return 0;
12328 }
12329
12330 _ACEOF
12331
12332
12333 rm -Rf build && mkdir -p build
12334 echo "obj-m := conftest.o" >build/Makefile
12335 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346
12347 { $as_echo "$as_me:$LINENO: result: yes" >&5
12348 $as_echo "yes" >&6; }
12349
12350 cat >>confdefs.h <<\_ACEOF
12351 #define HAVE_UINTPTR_T 1
12352 _ACEOF
12353
12354
12355 else
12356 $as_echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 { $as_echo "$as_me:$LINENO: result: no" >&5
12360 $as_echo "no" >&6; }
12361
12362
12363
12364 fi
12365
12366 rm -Rf build
12367
12368
12369
12370 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12371 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12372
12373
12374 cat confdefs.h - <<_ACEOF >conftest.c
12375 /* confdefs.h. */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380
12381
12382 #include <linux/workqueue.h>
12383
12384 int
12385 main (void)
12386 {
12387
12388 struct work_struct work __attribute__ ((unused));
12389 INIT_WORK(&work, NULL, NULL);
12390
12391 ;
12392 return 0;
12393 }
12394
12395 _ACEOF
12396
12397
12398 rm -Rf build && mkdir -p build
12399 echo "obj-m := conftest.o" >build/Makefile
12400 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411
12412 { $as_echo "$as_me:$LINENO: result: yes" >&5
12413 $as_echo "yes" >&6; }
12414
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_3ARGS_INIT_WORK 1
12417 _ACEOF
12418
12419
12420 else
12421 $as_echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 { $as_echo "$as_me:$LINENO: result: no" >&5
12425 $as_echo "no" >&6; }
12426
12427
12428
12429 fi
12430
12431 rm -Rf build
12432
12433
12434
12435 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12436 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12437
12438
12439 cat confdefs.h - <<_ACEOF >conftest.c
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445
12446
12447 #include <linux/sysctl.h>
12448
12449 int
12450 main (void)
12451 {
12452
12453 (void) register_sysctl_table(NULL, 0);
12454
12455 ;
12456 return 0;
12457 }
12458
12459 _ACEOF
12460
12461
12462 rm -Rf build && mkdir -p build
12463 echo "obj-m := conftest.o" >build/Makefile
12464 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475
12476 { $as_echo "$as_me:$LINENO: result: yes" >&5
12477 $as_echo "yes" >&6; }
12478
12479 cat >>confdefs.h <<\_ACEOF
12480 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12481 _ACEOF
12482
12483
12484 else
12485 $as_echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 { $as_echo "$as_me:$LINENO: result: no" >&5
12489 $as_echo "no" >&6; }
12490
12491
12492
12493 fi
12494
12495 rm -Rf build
12496
12497
12498
12499
12500 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12501 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12502
12503
12504 cat confdefs.h - <<_ACEOF >conftest.c
12505 /* confdefs.h. */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510
12511
12512 #include <linux/mm.h>
12513
12514 int
12515 main (void)
12516 {
12517
12518 return set_shrinker(DEFAULT_SEEKS, NULL);
12519
12520 ;
12521 return 0;
12522 }
12523
12524 _ACEOF
12525
12526
12527 rm -Rf build && mkdir -p build
12528 echo "obj-m := conftest.o" >build/Makefile
12529 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540
12541 { $as_echo "$as_me:$LINENO: result: yes" >&5
12542 $as_echo "yes" >&6; }
12543
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_SET_SHRINKER 1
12546 _ACEOF
12547
12548
12549 else
12550 $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 { $as_echo "$as_me:$LINENO: result: no" >&5
12554 $as_echo "no" >&6; }
12555
12556
12557
12558 fi
12559
12560 rm -Rf build
12561
12562
12563
12564 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12565 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12566 tmp_flags="$EXTRA_KCFLAGS"
12567 EXTRA_KCFLAGS="-Werror"
12568
12569
12570 cat confdefs.h - <<_ACEOF >conftest.c
12571 /* confdefs.h. */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576
12577
12578 #include <linux/mm.h>
12579
12580 int shrinker_cb(struct shrinker *, int, unsigned int);
12581
12582 int
12583 main (void)
12584 {
12585
12586 struct shrinker cache_shrinker = {
12587 .shrink = shrinker_cb,
12588 .seeks = DEFAULT_SEEKS,
12589 };
12590 register_shrinker(&cache_shrinker);
12591
12592 ;
12593 return 0;
12594 }
12595
12596 _ACEOF
12597
12598
12599 rm -Rf build && mkdir -p build
12600 echo "obj-m := conftest.o" >build/Makefile
12601 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612
12613 { $as_echo "$as_me:$LINENO: result: yes" >&5
12614 $as_echo "yes" >&6; }
12615
12616 cat >>confdefs.h <<\_ACEOF
12617 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12618 _ACEOF
12619
12620
12621 else
12622 $as_echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 { $as_echo "$as_me:$LINENO: result: no" >&5
12626 $as_echo "no" >&6; }
12627
12628
12629
12630 fi
12631
12632 rm -Rf build
12633
12634
12635 EXTRA_KCFLAGS="$tmp_flags"
12636
12637 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12638 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12639
12640
12641 cat confdefs.h - <<_ACEOF >conftest.c
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647
12648
12649 #include <linux/namei.h>
12650
12651 int
12652 main (void)
12653 {
12654
12655 struct nameidata nd __attribute__ ((unused));
12656
12657 nd.path.mnt = NULL;
12658 nd.path.dentry = NULL;
12659
12660 ;
12661 return 0;
12662 }
12663
12664 _ACEOF
12665
12666
12667 rm -Rf build && mkdir -p build
12668 echo "obj-m := conftest.o" >build/Makefile
12669 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680
12681 { $as_echo "$as_me:$LINENO: result: yes" >&5
12682 $as_echo "yes" >&6; }
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_PATH_IN_NAMEIDATA 1
12686 _ACEOF
12687
12688
12689 else
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 { $as_echo "$as_me:$LINENO: result: no" >&5
12694 $as_echo "no" >&6; }
12695
12696
12697
12698 fi
12699
12700 rm -Rf build
12701
12702
12703
12704
12705 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12706 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12707 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12708 $LINUX_OBJ/Module*.symvers 2>/dev/null
12709 rc=$?
12710 if test $rc -ne 0; then
12711 export=0
12712 for file in kernel/sched.c; do
12713 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12714 "$LINUX_OBJ/$file" 2>/dev/null
12715 rc=$?
12716 if test $rc -eq 0; then
12717 export=1
12718 break;
12719 fi
12720 done
12721 if test $export -eq 0; then
12722 { $as_echo "$as_me:$LINENO: result: no" >&5
12723 $as_echo "no" >&6; }
12724
12725 else
12726 { $as_echo "$as_me:$LINENO: result: yes" >&5
12727 $as_echo "yes" >&6; }
12728
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_TASK_CURR 1
12731 _ACEOF
12732
12733 fi
12734 else
12735 { $as_echo "$as_me:$LINENO: result: yes" >&5
12736 $as_echo "yes" >&6; }
12737
12738 cat >>confdefs.h <<\_ACEOF
12739 #define HAVE_TASK_CURR 1
12740 _ACEOF
12741
12742 fi
12743
12744
12745 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12746 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12747
12748
12749 cat confdefs.h - <<_ACEOF >conftest.c
12750 /* confdefs.h. */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755
12756
12757 #include <linux/sysctl.h>
12758
12759 int
12760 main (void)
12761 {
12762
12763 #ifndef CTL_UNNUMBERED
12764 #error CTL_UNNUMBERED undefined
12765 #endif
12766
12767 ;
12768 return 0;
12769 }
12770
12771 _ACEOF
12772
12773
12774 rm -Rf build && mkdir -p build
12775 echo "obj-m := conftest.o" >build/Makefile
12776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787
12788 { $as_echo "$as_me:$LINENO: result: yes" >&5
12789 $as_echo "yes" >&6; }
12790
12791 cat >>confdefs.h <<\_ACEOF
12792 #define HAVE_CTL_UNNUMBERED 1
12793 _ACEOF
12794
12795
12796 else
12797 $as_echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800 { $as_echo "$as_me:$LINENO: result: no" >&5
12801 $as_echo "no" >&6; }
12802
12803
12804
12805 fi
12806
12807 rm -Rf build
12808
12809
12810
12811
12812 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12813 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12814
12815
12816 cat confdefs.h - <<_ACEOF >conftest.c
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822
12823
12824 #include <linux/sysctl.h>
12825
12826 int
12827 main (void)
12828 {
12829
12830 struct ctl_table ctl __attribute__ ((unused));
12831 ctl.ctl_name = 0;
12832
12833 ;
12834 return 0;
12835 }
12836
12837 _ACEOF
12838
12839
12840 rm -Rf build && mkdir -p build
12841 echo "obj-m := conftest.o" >build/Makefile
12842 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853
12854 { $as_echo "$as_me:$LINENO: result: yes" >&5
12855 $as_echo "yes" >&6; }
12856
12857 cat >>confdefs.h <<\_ACEOF
12858 #define HAVE_CTL_NAME 1
12859 _ACEOF
12860
12861
12862 else
12863 $as_echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 { $as_echo "$as_me:$LINENO: result: no" >&5
12867 $as_echo "no" >&6; }
12868
12869
12870
12871 fi
12872
12873 rm -Rf build
12874
12875
12876
12877 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12878 $as_echo_n "checking whether fls64() is available... " >&6; }
12879
12880
12881 cat confdefs.h - <<_ACEOF >conftest.c
12882 /* confdefs.h. */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887
12888
12889 #include <linux/bitops.h>
12890
12891 int
12892 main (void)
12893 {
12894
12895 return fls64(0);
12896
12897 ;
12898 return 0;
12899 }
12900
12901 _ACEOF
12902
12903
12904 rm -Rf build && mkdir -p build
12905 echo "obj-m := conftest.o" >build/Makefile
12906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917
12918 { $as_echo "$as_me:$LINENO: result: yes" >&5
12919 $as_echo "yes" >&6; }
12920
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_FLS64 1
12923 _ACEOF
12924
12925
12926 else
12927 $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931 $as_echo "no" >&6; }
12932
12933
12934
12935 fi
12936
12937 rm -Rf build
12938
12939
12940
12941
12942 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12943 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12944 grep -q -E '[[:space:]]device_create[[:space:]]' \
12945 $LINUX_OBJ/Module*.symvers 2>/dev/null
12946 rc=$?
12947 if test $rc -ne 0; then
12948 export=0
12949 for file in drivers/base/core.c; do
12950 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12951 "$LINUX_OBJ/$file" 2>/dev/null
12952 rc=$?
12953 if test $rc -eq 0; then
12954 export=1
12955 break;
12956 fi
12957 done
12958 if test $export -eq 0; then
12959 { $as_echo "$as_me:$LINENO: result: no" >&5
12960 $as_echo "no" >&6; }
12961
12962 else
12963 { $as_echo "$as_me:$LINENO: result: yes" >&5
12964 $as_echo "yes" >&6; }
12965
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_DEVICE_CREATE 1
12968 _ACEOF
12969
12970 fi
12971 else
12972 { $as_echo "$as_me:$LINENO: result: yes" >&5
12973 $as_echo "yes" >&6; }
12974
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_DEVICE_CREATE 1
12977 _ACEOF
12978
12979 fi
12980
12981
12982
12983 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12984 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12985 tmp_flags="$EXTRA_KCFLAGS"
12986 EXTRA_KCFLAGS="-Werror"
12987
12988
12989 cat confdefs.h - <<_ACEOF >conftest.c
12990 /* confdefs.h. */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995
12996
12997 #include <linux/device.h>
12998
12999 int
13000 main (void)
13001 {
13002
13003 device_create(NULL, NULL, 0, NULL, "%d", 1);
13004
13005 ;
13006 return 0;
13007 }
13008
13009 _ACEOF
13010
13011
13012 rm -Rf build && mkdir -p build
13013 echo "obj-m := conftest.o" >build/Makefile
13014 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025
13026 { $as_echo "$as_me:$LINENO: result: yes" >&5
13027 $as_echo "yes" >&6; }
13028
13029 cat >>confdefs.h <<\_ACEOF
13030 #define HAVE_5ARGS_DEVICE_CREATE 1
13031 _ACEOF
13032
13033
13034 else
13035 $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039 $as_echo "no" >&6; }
13040
13041
13042
13043 fi
13044
13045 rm -Rf build
13046
13047
13048 EXTRA_KCFLAGS="$tmp_flags"
13049
13050
13051 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13052 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
13053 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13054 $LINUX_OBJ/Module*.symvers 2>/dev/null
13055 rc=$?
13056 if test $rc -ne 0; then
13057 export=0
13058 for file in drivers/base/class.c; do
13059 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13060 "$LINUX_OBJ/$file" 2>/dev/null
13061 rc=$?
13062 if test $rc -eq 0; then
13063 export=1
13064 break;
13065 fi
13066 done
13067 if test $export -eq 0; then
13068 { $as_echo "$as_me:$LINENO: result: no" >&5
13069 $as_echo "no" >&6; }
13070
13071 else
13072 { $as_echo "$as_me:$LINENO: result: yes" >&5
13073 $as_echo "yes" >&6; }
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_CLASS_DEVICE_CREATE 1
13077 _ACEOF
13078
13079 fi
13080 else
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082 $as_echo "yes" >&6; }
13083
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_CLASS_DEVICE_CREATE 1
13086 _ACEOF
13087
13088 fi
13089
13090
13091
13092 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13093 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
13094 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13095 $LINUX_OBJ/Module*.symvers 2>/dev/null
13096 rc=$?
13097 if test $rc -ne 0; then
13098 export=0
13099 for file in kernel/time.c; do
13100 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13101 "$LINUX_OBJ/$file" 2>/dev/null
13102 rc=$?
13103 if test $rc -eq 0; then
13104 export=1
13105 break;
13106 fi
13107 done
13108 if test $export -eq 0; then
13109 { $as_echo "$as_me:$LINENO: result: no" >&5
13110 $as_echo "no" >&6; }
13111
13112 else
13113 { $as_echo "$as_me:$LINENO: result: yes" >&5
13114 $as_echo "yes" >&6; }
13115
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13118 _ACEOF
13119
13120 fi
13121 else
13122 { $as_echo "$as_me:$LINENO: result: yes" >&5
13123 $as_echo "yes" >&6; }
13124
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13127 _ACEOF
13128
13129 fi
13130
13131
13132
13133 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13134 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
13135
13136
13137 cat confdefs.h - <<_ACEOF >conftest.c
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143
13144
13145 #include <linux/time.h>
13146 void set_normalized_timespec(struct timespec *ts,
13147 time_t sec, long nsec) { }
13148
13149 int
13150 main (void)
13151 {
13152
13153 ;
13154 return 0;
13155 }
13156
13157 _ACEOF
13158
13159
13160 rm -Rf build && mkdir -p build
13161 echo "obj-m := conftest.o" >build/Makefile
13162 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173
13174 { $as_echo "$as_me:$LINENO: result: no" >&5
13175 $as_echo "no" >&6; }
13176
13177 else
13178 $as_echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 { $as_echo "$as_me:$LINENO: result: yes" >&5
13182 $as_echo "yes" >&6; }
13183
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13186 _ACEOF
13187
13188
13189
13190
13191 fi
13192
13193 rm -Rf build
13194
13195
13196
13197
13198 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13199 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
13200
13201
13202 cat confdefs.h - <<_ACEOF >conftest.c
13203 /* confdefs.h. */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208
13209
13210 #include <linux/time.h>
13211
13212 int
13213 main (void)
13214 {
13215
13216 struct timespec a = { 0 };
13217 struct timespec b = { 0 };
13218 struct timespec c __attribute__ ((unused));
13219 c = timespec_sub(a, b);
13220
13221 ;
13222 return 0;
13223 }
13224
13225 _ACEOF
13226
13227
13228 rm -Rf build && mkdir -p build
13229 echo "obj-m := conftest.o" >build/Makefile
13230 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13233 ac_status=$?
13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241
13242 { $as_echo "$as_me:$LINENO: result: yes" >&5
13243 $as_echo "yes" >&6; }
13244
13245 cat >>confdefs.h <<\_ACEOF
13246 #define HAVE_TIMESPEC_SUB 1
13247 _ACEOF
13248
13249
13250 else
13251 $as_echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 { $as_echo "$as_me:$LINENO: result: no" >&5
13255 $as_echo "no" >&6; }
13256
13257
13258
13259 fi
13260
13261 rm -Rf build
13262
13263
13264
13265
13266 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13267 $as_echo_n "checking whether init_utsname() is available... " >&6; }
13268
13269
13270 cat confdefs.h - <<_ACEOF >conftest.c
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276
13277
13278 #include <linux/utsname.h>
13279
13280 int
13281 main (void)
13282 {
13283
13284 struct new_utsname *a __attribute__ ((unused));
13285 a = init_utsname();
13286
13287 ;
13288 return 0;
13289 }
13290
13291 _ACEOF
13292
13293
13294 rm -Rf build && mkdir -p build
13295 echo "obj-m := conftest.o" >build/Makefile
13296 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
13300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307
13308 { $as_echo "$as_me:$LINENO: result: yes" >&5
13309 $as_echo "yes" >&6; }
13310
13311 cat >>confdefs.h <<\_ACEOF
13312 #define HAVE_INIT_UTSNAME 1
13313 _ACEOF
13314
13315
13316 else
13317 $as_echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320 { $as_echo "$as_me:$LINENO: result: no" >&5
13321 $as_echo "no" >&6; }
13322
13323
13324
13325 fi
13326
13327 rm -Rf build
13328
13329
13330
13331
13332 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13333 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
13334
13335
13336 cat confdefs.h - <<_ACEOF >conftest.c
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342
13343
13344 #include <linux/fdtable.h>
13345
13346 int
13347 main (void)
13348 {
13349
13350 return 0;
13351
13352 ;
13353 return 0;
13354 }
13355
13356 _ACEOF
13357
13358
13359 rm -Rf build && mkdir -p build
13360 echo "obj-m := conftest.o" >build/Makefile
13361 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372
13373
13374 cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_FDTABLE_HEADER 1
13376 _ACEOF
13377
13378 { $as_echo "$as_me:$LINENO: result: yes" >&5
13379 $as_echo "yes" >&6; }
13380
13381
13382 else
13383 $as_echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386 { $as_echo "$as_me:$LINENO: result: no" >&5
13387 $as_echo "no" >&6; }
13388
13389
13390
13391
13392 fi
13393
13394 rm -Rf build
13395
13396
13397
13398
13399
13400 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13401 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
13402
13403
13404 cat confdefs.h - <<_ACEOF >conftest.c
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410
13411
13412 #include <linux/sched.h>
13413 #include <linux/file.h>
13414 #ifdef HAVE_FDTABLE_HEADER
13415 #include <linux/fdtable.h>
13416 #endif
13417
13418 int
13419 main (void)
13420 {
13421
13422 struct files_struct *files = current->files;
13423 struct fdtable *fdt __attribute__ ((unused));
13424 fdt = files_fdtable(files);
13425
13426 ;
13427 return 0;
13428 }
13429
13430 _ACEOF
13431
13432
13433 rm -Rf build && mkdir -p build
13434 echo "obj-m := conftest.o" >build/Makefile
13435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13443 ac_status=$?
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446
13447 { $as_echo "$as_me:$LINENO: result: yes" >&5
13448 $as_echo "yes" >&6; }
13449
13450 cat >>confdefs.h <<\_ACEOF
13451 #define HAVE_FILES_FDTABLE 1
13452 _ACEOF
13453
13454
13455 else
13456 $as_echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 { $as_echo "$as_me:$LINENO: result: no" >&5
13460 $as_echo "no" >&6; }
13461
13462
13463
13464 fi
13465
13466 rm -Rf build
13467
13468
13469
13470
13471 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13472 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13473
13474
13475 cat confdefs.h - <<_ACEOF >conftest.c
13476 /* confdefs.h. */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13481
13482
13483 #include <linux/uaccess.h>
13484
13485 int
13486 main (void)
13487 {
13488
13489 return 0;
13490
13491 ;
13492 return 0;
13493 }
13494
13495 _ACEOF
13496
13497
13498 rm -Rf build && mkdir -p build
13499 echo "obj-m := conftest.o" >build/Makefile
13500 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511
13512
13513 cat >>confdefs.h <<\_ACEOF
13514 #define HAVE_UACCESS_HEADER 1
13515 _ACEOF
13516
13517 { $as_echo "$as_me:$LINENO: result: yes" >&5
13518 $as_echo "yes" >&6; }
13519
13520
13521 else
13522 $as_echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 { $as_echo "$as_me:$LINENO: result: no" >&5
13526 $as_echo "no" >&6; }
13527
13528
13529
13530
13531 fi
13532
13533 rm -Rf build
13534
13535
13536
13537
13538
13539 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13540 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13541
13542
13543 cat confdefs.h - <<_ACEOF >conftest.c
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549
13550
13551 #include <linux/slab.h>
13552
13553 int
13554 main (void)
13555 {
13556
13557 void *a __attribute__ ((unused));
13558 a = kmalloc_node(1, GFP_KERNEL, 0);
13559
13560 ;
13561 return 0;
13562 }
13563
13564 _ACEOF
13565
13566
13567 rm -Rf build && mkdir -p build
13568 echo "obj-m := conftest.o" >build/Makefile
13569 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580
13581 { $as_echo "$as_me:$LINENO: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583
13584 cat >>confdefs.h <<\_ACEOF
13585 #define HAVE_KMALLOC_NODE 1
13586 _ACEOF
13587
13588
13589 else
13590 $as_echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 { $as_echo "$as_me:$LINENO: result: no" >&5
13594 $as_echo "no" >&6; }
13595
13596
13597
13598 fi
13599
13600 rm -Rf build
13601
13602
13603
13604
13605 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13606 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13607 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13608 $LINUX_OBJ/Module*.symvers 2>/dev/null
13609 rc=$?
13610 if test $rc -ne 0; then
13611 export=0
13612 for file in ; do
13613 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13614 "$LINUX_OBJ/$file" 2>/dev/null
13615 rc=$?
13616 if test $rc -eq 0; then
13617 export=1
13618 break;
13619 fi
13620 done
13621 if test $export -eq 0; then
13622 { $as_echo "$as_me:$LINENO: result: no" >&5
13623 $as_echo "no" >&6; }
13624
13625 else
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_MONOTONIC_CLOCK 1
13631 _ACEOF
13632
13633 fi
13634 else
13635 { $as_echo "$as_me:$LINENO: result: yes" >&5
13636 $as_echo "yes" >&6; }
13637
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_MONOTONIC_CLOCK 1
13640 _ACEOF
13641
13642 fi
13643
13644
13645
13646 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13647 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13648
13649
13650 cat confdefs.h - <<_ACEOF >conftest.c
13651 /* confdefs.h. */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656
13657
13658 #include <linux/fs.h>
13659 #include <linux/mutex.h>
13660
13661 int
13662 main (void)
13663 {
13664
13665 struct inode i;
13666 mutex_init(&i.i_mutex);
13667
13668 ;
13669 return 0;
13670 }
13671
13672 _ACEOF
13673
13674
13675 rm -Rf build && mkdir -p build
13676 echo "obj-m := conftest.o" >build/Makefile
13677 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688
13689 { $as_echo "$as_me:$LINENO: result: yes" >&5
13690 $as_echo "yes" >&6; }
13691
13692 cat >>confdefs.h <<\_ACEOF
13693 #define HAVE_INODE_I_MUTEX 1
13694 _ACEOF
13695
13696
13697 else
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 { $as_echo "$as_me:$LINENO: result: no" >&5
13702 $as_echo "no" >&6; }
13703
13704
13705
13706 fi
13707
13708 rm -Rf build
13709
13710
13711
13712
13713 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13714 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13715
13716
13717 cat confdefs.h - <<_ACEOF >conftest.c
13718 /* confdefs.h. */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723
13724
13725 #include <linux/mutex.h>
13726
13727 int
13728 main (void)
13729 {
13730
13731 struct mutex mtx __attribute__ ((unused));
13732 mtx.owner = NULL;
13733
13734 ;
13735 return 0;
13736 }
13737
13738 _ACEOF
13739
13740
13741 rm -Rf build && mkdir -p build
13742 echo "obj-m := conftest.o" >build/Makefile
13743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754
13755 { $as_echo "$as_me:$LINENO: result: yes" >&5
13756 $as_echo "yes" >&6; }
13757
13758 cat >>confdefs.h <<\_ACEOF
13759 #define HAVE_MUTEX_OWNER 1
13760 _ACEOF
13761
13762
13763 else
13764 $as_echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 { $as_echo "$as_me:$LINENO: result: no" >&5
13768 $as_echo "no" >&6; }
13769
13770
13771
13772 fi
13773
13774 rm -Rf build
13775
13776
13777
13778
13779 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13780 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13781 tmp_flags="$EXTRA_KCFLAGS"
13782 EXTRA_KCFLAGS="-Werror"
13783
13784
13785 cat confdefs.h - <<_ACEOF >conftest.c
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791
13792
13793 #include <linux/mutex.h>
13794
13795 int
13796 main (void)
13797 {
13798
13799 struct mutex mtx __attribute__ ((unused));
13800 mtx.owner = current;
13801
13802 ;
13803 return 0;
13804 }
13805
13806 _ACEOF
13807
13808
13809 rm -Rf build && mkdir -p build
13810 echo "obj-m := conftest.o" >build/Makefile
13811 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822
13823 { $as_echo "$as_me:$LINENO: result: yes" >&5
13824 $as_echo "yes" >&6; }
13825
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13828 _ACEOF
13829
13830
13831 else
13832 $as_echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 { $as_echo "$as_me:$LINENO: result: no" >&5
13836 $as_echo "no" >&6; }
13837
13838
13839
13840 fi
13841
13842 rm -Rf build
13843
13844
13845 EXTRA_KCFLAGS="$tmp_flags"
13846
13847
13848 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13849 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13850
13851
13852 cat confdefs.h - <<_ACEOF >conftest.c
13853 /* confdefs.h. */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858
13859
13860 #include <linux/mutex.h>
13861
13862 int
13863 main (void)
13864 {
13865
13866 struct mutex mutex;
13867 mutex_init(&mutex);
13868 mutex_lock_nested(&mutex, 0);
13869
13870 ;
13871 return 0;
13872 }
13873
13874 _ACEOF
13875
13876
13877 rm -Rf build && mkdir -p build
13878 echo "obj-m := conftest.o" >build/Makefile
13879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890
13891 { $as_echo "$as_me:$LINENO: result: yes" >&5
13892 $as_echo "yes" >&6; }
13893
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_MUTEX_LOCK_NESTED 1
13896 _ACEOF
13897
13898
13899 else
13900 $as_echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 { $as_echo "$as_me:$LINENO: result: no" >&5
13904 $as_echo "no" >&6; }
13905
13906
13907
13908 fi
13909
13910 rm -Rf build
13911
13912
13913
13914
13915 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13916 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13917
13918
13919 cat confdefs.h - <<_ACEOF >conftest.c
13920 /* confdefs.h. */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925
13926
13927 #include <linux/smp.h>
13928
13929 int
13930 main (void)
13931 {
13932
13933 on_each_cpu(NULL, NULL, 0);
13934
13935 ;
13936 return 0;
13937 }
13938
13939 _ACEOF
13940
13941
13942 rm -Rf build && mkdir -p build
13943 echo "obj-m := conftest.o" >build/Makefile
13944 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955
13956 { $as_echo "$as_me:$LINENO: result: yes" >&5
13957 $as_echo "yes" >&6; }
13958
13959 cat >>confdefs.h <<\_ACEOF
13960 #define HAVE_3ARGS_ON_EACH_CPU 1
13961 _ACEOF
13962
13963
13964 else
13965 $as_echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 { $as_echo "$as_me:$LINENO: result: no" >&5
13969 $as_echo "no" >&6; }
13970
13971
13972
13973 fi
13974
13975 rm -Rf build
13976
13977
13978
13979
13980 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13981 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13982 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13983 $LINUX_OBJ/Module*.symvers 2>/dev/null
13984 rc=$?
13985 if test $rc -ne 0; then
13986 export=0
13987 for file in ; do
13988 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13989 "$LINUX_OBJ/$file" 2>/dev/null
13990 rc=$?
13991 if test $rc -eq 0; then
13992 export=1
13993 break;
13994 fi
13995 done
13996 if test $export -eq 0; then
13997 { $as_echo "$as_me:$LINENO: result: no" >&5
13998 $as_echo "no" >&6; }
13999
14000 else
14001 { $as_echo "$as_me:$LINENO: result: yes" >&5
14002 $as_echo "yes" >&6; }
14003
14004 cat >>confdefs.h <<\_ACEOF
14005 #define HAVE_KALLSYMS_LOOKUP_NAME 1
14006 _ACEOF
14007
14008 fi
14009 else
14010 { $as_echo "$as_me:$LINENO: result: yes" >&5
14011 $as_echo "yes" >&6; }
14012
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_KALLSYMS_LOOKUP_NAME 1
14015 _ACEOF
14016
14017 fi
14018
14019
14020
14021 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
14022 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
14023 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
14024 $LINUX_OBJ/Module*.symvers 2>/dev/null
14025 rc=$?
14026 if test $rc -ne 0; then
14027 export=0
14028 for file in ; do
14029 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14030 "$LINUX_OBJ/$file" 2>/dev/null
14031 rc=$?
14032 if test $rc -eq 0; then
14033 export=1
14034 break;
14035 fi
14036 done
14037 if test $export -eq 0; then
14038 { $as_echo "$as_me:$LINENO: result: no" >&5
14039 $as_echo "no" >&6; }
14040
14041 else
14042 { $as_echo "$as_me:$LINENO: result: yes" >&5
14043 $as_echo "yes" >&6; }
14044
14045 cat >>confdefs.h <<\_ACEOF
14046 #define HAVE_GET_VMALLOC_INFO 1
14047 _ACEOF
14048
14049 fi
14050 else
14051 { $as_echo "$as_me:$LINENO: result: yes" >&5
14052 $as_echo "yes" >&6; }
14053
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_GET_VMALLOC_INFO 1
14056 _ACEOF
14057
14058 fi
14059
14060
14061
14062 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14063 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
14064 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14065 rc=$?
14066 if test $rc -eq 0; then
14067 { $as_echo "$as_me:$LINENO: result: yes" >&5
14068 $as_echo "yes" >&6; }
14069
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_PGDAT_HELPERS 1
14072 _ACEOF
14073
14074 else
14075 { $as_echo "$as_me:$LINENO: result: no" >&5
14076 $as_echo "no" >&6; }
14077 fi
14078
14079
14080 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14081 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
14082 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14083 $LINUX_OBJ/Module*.symvers 2>/dev/null
14084 rc=$?
14085 if test $rc -ne 0; then
14086 export=0
14087 for file in ; do
14088 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14089 "$LINUX_OBJ/$file" 2>/dev/null
14090 rc=$?
14091 if test $rc -eq 0; then
14092 export=1
14093 break;
14094 fi
14095 done
14096 if test $export -eq 0; then
14097 { $as_echo "$as_me:$LINENO: result: no" >&5
14098 $as_echo "no" >&6; }
14099
14100 else
14101 { $as_echo "$as_me:$LINENO: result: yes" >&5
14102 $as_echo "yes" >&6; }
14103
14104 cat >>confdefs.h <<\_ACEOF
14105 #define HAVE_FIRST_ONLINE_PGDAT 1
14106 _ACEOF
14107
14108 fi
14109 else
14110 { $as_echo "$as_me:$LINENO: result: yes" >&5
14111 $as_echo "yes" >&6; }
14112
14113 cat >>confdefs.h <<\_ACEOF
14114 #define HAVE_FIRST_ONLINE_PGDAT 1
14115 _ACEOF
14116
14117 fi
14118
14119
14120
14121 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14122 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
14123 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14124 $LINUX_OBJ/Module*.symvers 2>/dev/null
14125 rc=$?
14126 if test $rc -ne 0; then
14127 export=0
14128 for file in ; do
14129 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14130 "$LINUX_OBJ/$file" 2>/dev/null
14131 rc=$?
14132 if test $rc -eq 0; then
14133 export=1
14134 break;
14135 fi
14136 done
14137 if test $export -eq 0; then
14138 { $as_echo "$as_me:$LINENO: result: no" >&5
14139 $as_echo "no" >&6; }
14140
14141 else
14142 { $as_echo "$as_me:$LINENO: result: yes" >&5
14143 $as_echo "yes" >&6; }
14144
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_NEXT_ONLINE_PGDAT 1
14147 _ACEOF
14148
14149 fi
14150 else
14151 { $as_echo "$as_me:$LINENO: result: yes" >&5
14152 $as_echo "yes" >&6; }
14153
14154 cat >>confdefs.h <<\_ACEOF
14155 #define HAVE_NEXT_ONLINE_PGDAT 1
14156 _ACEOF
14157
14158 fi
14159
14160
14161
14162 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14163 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
14164 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14165 $LINUX_OBJ/Module*.symvers 2>/dev/null
14166 rc=$?
14167 if test $rc -ne 0; then
14168 export=0
14169 for file in ; do
14170 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14171 "$LINUX_OBJ/$file" 2>/dev/null
14172 rc=$?
14173 if test $rc -eq 0; then
14174 export=1
14175 break;
14176 fi
14177 done
14178 if test $export -eq 0; then
14179 { $as_echo "$as_me:$LINENO: result: no" >&5
14180 $as_echo "no" >&6; }
14181
14182 else
14183 { $as_echo "$as_me:$LINENO: result: yes" >&5
14184 $as_echo "yes" >&6; }
14185
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_NEXT_ZONE 1
14188 _ACEOF
14189
14190 fi
14191 else
14192 { $as_echo "$as_me:$LINENO: result: yes" >&5
14193 $as_echo "yes" >&6; }
14194
14195 cat >>confdefs.h <<\_ACEOF
14196 #define HAVE_NEXT_ZONE 1
14197 _ACEOF
14198
14199 fi
14200
14201
14202
14203 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14204 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
14205 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14206 $LINUX_OBJ/Module*.symvers 2>/dev/null
14207 rc=$?
14208 if test $rc -ne 0; then
14209 export=0
14210 for file in ; do
14211 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14212 "$LINUX_OBJ/$file" 2>/dev/null
14213 rc=$?
14214 if test $rc -eq 0; then
14215 export=1
14216 break;
14217 fi
14218 done
14219 if test $export -eq 0; then
14220 { $as_echo "$as_me:$LINENO: result: no" >&5
14221 $as_echo "no" >&6; }
14222
14223 else
14224 { $as_echo "$as_me:$LINENO: result: yes" >&5
14225 $as_echo "yes" >&6; }
14226
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_PGDAT_LIST 1
14229 _ACEOF
14230
14231 fi
14232 else
14233 { $as_echo "$as_me:$LINENO: result: yes" >&5
14234 $as_echo "yes" >&6; }
14235
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_PGDAT_LIST 1
14238 _ACEOF
14239
14240 fi
14241
14242
14243
14244 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14245 $as_echo_n "checking whether global_page_state() is available... " >&6; }
14246
14247
14248 cat confdefs.h - <<_ACEOF >conftest.c
14249 /* confdefs.h. */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254
14255
14256 #include <linux/mm.h>
14257
14258 int
14259 main (void)
14260 {
14261
14262 unsigned long state __attribute__ ((unused));
14263 state = global_page_state(0);
14264
14265 ;
14266 return 0;
14267 }
14268
14269 _ACEOF
14270
14271
14272 rm -Rf build && mkdir -p build
14273 echo "obj-m := conftest.o" >build/Makefile
14274 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285
14286 { $as_echo "$as_me:$LINENO: result: yes" >&5
14287 $as_echo "yes" >&6; }
14288
14289 cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_GLOBAL_PAGE_STATE 1
14291 _ACEOF
14292
14293
14294 else
14295 $as_echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 { $as_echo "$as_me:$LINENO: result: no" >&5
14299 $as_echo "no" >&6; }
14300
14301
14302
14303 fi
14304
14305 rm -Rf build
14306
14307
14308
14309
14310 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14311 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
14312
14313
14314 cat confdefs.h - <<_ACEOF >conftest.c
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320
14321
14322 #include <linux/mm.h>
14323
14324 int
14325 main (void)
14326 {
14327
14328 enum zone_stat_item zsi __attribute__ ((unused));
14329 zsi = NR_FREE_PAGES;
14330
14331 ;
14332 return 0;
14333 }
14334
14335 _ACEOF
14336
14337
14338 rm -Rf build && mkdir -p build
14339 echo "obj-m := conftest.o" >build/Makefile
14340 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351
14352 { $as_echo "$as_me:$LINENO: result: yes" >&5
14353 $as_echo "yes" >&6; }
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
14357 _ACEOF
14358
14359
14360 else
14361 $as_echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 { $as_echo "$as_me:$LINENO: result: no" >&5
14365 $as_echo "no" >&6; }
14366
14367
14368
14369 fi
14370
14371 rm -Rf build
14372
14373
14374
14375
14376 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14377 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
14378
14379
14380 cat confdefs.h - <<_ACEOF >conftest.c
14381 /* confdefs.h. */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386
14387
14388 #include <linux/mm.h>
14389
14390 int
14391 main (void)
14392 {
14393
14394 enum zone_stat_item zsi __attribute__ ((unused));
14395 zsi = NR_INACTIVE;
14396
14397 ;
14398 return 0;
14399 }
14400
14401 _ACEOF
14402
14403
14404 rm -Rf build && mkdir -p build
14405 echo "obj-m := conftest.o" >build/Makefile
14406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417
14418 { $as_echo "$as_me:$LINENO: result: yes" >&5
14419 $as_echo "yes" >&6; }
14420
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
14423 _ACEOF
14424
14425
14426 else
14427 $as_echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 { $as_echo "$as_me:$LINENO: result: no" >&5
14431 $as_echo "no" >&6; }
14432
14433
14434
14435 fi
14436
14437 rm -Rf build
14438
14439
14440
14441 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14442 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14443
14444
14445 cat confdefs.h - <<_ACEOF >conftest.c
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451
14452
14453 #include <linux/mm.h>
14454
14455 int
14456 main (void)
14457 {
14458
14459 enum zone_stat_item zsi __attribute__ ((unused));
14460 zsi = NR_INACTIVE_ANON;
14461
14462 ;
14463 return 0;
14464 }
14465
14466 _ACEOF
14467
14468
14469 rm -Rf build && mkdir -p build
14470 echo "obj-m := conftest.o" >build/Makefile
14471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482
14483 { $as_echo "$as_me:$LINENO: result: yes" >&5
14484 $as_echo "yes" >&6; }
14485
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14488 _ACEOF
14489
14490
14491 else
14492 $as_echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495 { $as_echo "$as_me:$LINENO: result: no" >&5
14496 $as_echo "no" >&6; }
14497
14498
14499
14500 fi
14501
14502 rm -Rf build
14503
14504
14505
14506 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14507 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14508
14509
14510 cat confdefs.h - <<_ACEOF >conftest.c
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516
14517
14518 #include <linux/mm.h>
14519
14520 int
14521 main (void)
14522 {
14523
14524 enum zone_stat_item zsi __attribute__ ((unused));
14525 zsi = NR_INACTIVE_FILE;
14526
14527 ;
14528 return 0;
14529 }
14530
14531 _ACEOF
14532
14533
14534 rm -Rf build && mkdir -p build
14535 echo "obj-m := conftest.o" >build/Makefile
14536 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
14545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547
14548 { $as_echo "$as_me:$LINENO: result: yes" >&5
14549 $as_echo "yes" >&6; }
14550
14551 cat >>confdefs.h <<\_ACEOF
14552 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14553 _ACEOF
14554
14555
14556 else
14557 $as_echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 { $as_echo "$as_me:$LINENO: result: no" >&5
14561 $as_echo "no" >&6; }
14562
14563
14564
14565 fi
14566
14567 rm -Rf build
14568
14569
14570
14571
14572 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14573 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14574
14575
14576 cat confdefs.h - <<_ACEOF >conftest.c
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582
14583
14584 #include <linux/mm.h>
14585
14586 int
14587 main (void)
14588 {
14589
14590 enum zone_stat_item zsi __attribute__ ((unused));
14591 zsi = NR_ACTIVE;
14592
14593 ;
14594 return 0;
14595 }
14596
14597 _ACEOF
14598
14599
14600 rm -Rf build && mkdir -p build
14601 echo "obj-m := conftest.o" >build/Makefile
14602 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14613
14614 { $as_echo "$as_me:$LINENO: result: yes" >&5
14615 $as_echo "yes" >&6; }
14616
14617 cat >>confdefs.h <<\_ACEOF
14618 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14619 _ACEOF
14620
14621
14622 else
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 { $as_echo "$as_me:$LINENO: result: no" >&5
14627 $as_echo "no" >&6; }
14628
14629
14630
14631 fi
14632
14633 rm -Rf build
14634
14635
14636
14637 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14638 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14639
14640
14641 cat confdefs.h - <<_ACEOF >conftest.c
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647
14648
14649 #include <linux/mm.h>
14650
14651 int
14652 main (void)
14653 {
14654
14655 enum zone_stat_item zsi __attribute__ ((unused));
14656 zsi = NR_ACTIVE_ANON;
14657
14658 ;
14659 return 0;
14660 }
14661
14662 _ACEOF
14663
14664
14665 rm -Rf build && mkdir -p build
14666 echo "obj-m := conftest.o" >build/Makefile
14667 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678
14679 { $as_echo "$as_me:$LINENO: result: yes" >&5
14680 $as_echo "yes" >&6; }
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14684 _ACEOF
14685
14686
14687 else
14688 $as_echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14690
14691 { $as_echo "$as_me:$LINENO: result: no" >&5
14692 $as_echo "no" >&6; }
14693
14694
14695
14696 fi
14697
14698 rm -Rf build
14699
14700
14701
14702 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14703 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14704
14705
14706 cat confdefs.h - <<_ACEOF >conftest.c
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712
14713
14714 #include <linux/mm.h>
14715
14716 int
14717 main (void)
14718 {
14719
14720 enum zone_stat_item zsi __attribute__ ((unused));
14721 zsi = NR_ACTIVE_FILE;
14722
14723 ;
14724 return 0;
14725 }
14726
14727 _ACEOF
14728
14729
14730 rm -Rf build && mkdir -p build
14731 echo "obj-m := conftest.o" >build/Makefile
14732 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743
14744 { $as_echo "$as_me:$LINENO: result: yes" >&5
14745 $as_echo "yes" >&6; }
14746
14747 cat >>confdefs.h <<\_ACEOF
14748 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14749 _ACEOF
14750
14751
14752 else
14753 $as_echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756 { $as_echo "$as_me:$LINENO: result: no" >&5
14757 $as_echo "no" >&6; }
14758
14759
14760
14761 fi
14762
14763 rm -Rf build
14764
14765
14766
14767
14768 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14769 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14770
14771
14772 cat confdefs.h - <<_ACEOF >conftest.c
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778
14779
14780
14781 int
14782 main (void)
14783 {
14784
14785 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14786 #error "global_page_state needs NR_FREE_PAGES"
14787 #endif
14788
14789 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14790 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14791 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14792 #error "global_page_state needs NR_ACTIVE*"
14793 #endif
14794
14795 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14796 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14797 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14798 #error "global_page_state needs NR_INACTIVE*"
14799 #endif
14800
14801 ;
14802 return 0;
14803 }
14804
14805 _ACEOF
14806
14807
14808 rm -Rf build && mkdir -p build
14809 echo "obj-m := conftest.o" >build/Makefile
14810 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821
14822 { $as_echo "$as_me:$LINENO: result: no" >&5
14823 $as_echo "no" >&6; }
14824
14825 else
14826 $as_echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 { $as_echo "$as_me:$LINENO: result: yes" >&5
14830 $as_echo "yes" >&6; }
14831
14832 cat >>confdefs.h <<\_ACEOF
14833 #define NEED_GET_ZONE_COUNTS 1
14834 _ACEOF
14835
14836
14837 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14838 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14839 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14840 $LINUX_OBJ/Module*.symvers 2>/dev/null
14841 rc=$?
14842 if test $rc -ne 0; then
14843 export=0
14844 for file in ; do
14845 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14846 "$LINUX_OBJ/$file" 2>/dev/null
14847 rc=$?
14848 if test $rc -eq 0; then
14849 export=1
14850 break;
14851 fi
14852 done
14853 if test $export -eq 0; then
14854 { $as_echo "$as_me:$LINENO: result: no" >&5
14855 $as_echo "no" >&6; }
14856
14857 else
14858 { $as_echo "$as_me:$LINENO: result: yes" >&5
14859 $as_echo "yes" >&6; }
14860
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_GET_ZONE_COUNTS 1
14863 _ACEOF
14864
14865 fi
14866 else
14867 { $as_echo "$as_me:$LINENO: result: yes" >&5
14868 $as_echo "yes" >&6; }
14869
14870 cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_GET_ZONE_COUNTS 1
14872 _ACEOF
14873
14874 fi
14875
14876
14877
14878
14879 fi
14880
14881 rm -Rf build
14882
14883
14884
14885
14886 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14887 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14888 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14889 $LINUX_OBJ/Module*.symvers 2>/dev/null
14890 rc=$?
14891 if test $rc -ne 0; then
14892 export=0
14893 for file in ; do
14894 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14895 "$LINUX_OBJ/$file" 2>/dev/null
14896 rc=$?
14897 if test $rc -eq 0; then
14898 export=1
14899 break;
14900 fi
14901 done
14902 if test $export -eq 0; then
14903 { $as_echo "$as_me:$LINENO: result: no" >&5
14904 $as_echo "no" >&6; }
14905
14906 else
14907 { $as_echo "$as_me:$LINENO: result: yes" >&5
14908 $as_echo "yes" >&6; }
14909
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_USER_PATH_DIR 1
14912 _ACEOF
14913
14914 fi
14915 else
14916 { $as_echo "$as_me:$LINENO: result: yes" >&5
14917 $as_echo "yes" >&6; }
14918
14919 cat >>confdefs.h <<\_ACEOF
14920 #define HAVE_USER_PATH_DIR 1
14921 _ACEOF
14922
14923 fi
14924
14925
14926
14927 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14928 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14929 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14930 $LINUX_OBJ/Module*.symvers 2>/dev/null
14931 rc=$?
14932 if test $rc -ne 0; then
14933 export=0
14934 for file in ; do
14935 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14936 "$LINUX_OBJ/$file" 2>/dev/null
14937 rc=$?
14938 if test $rc -eq 0; then
14939 export=1
14940 break;
14941 fi
14942 done
14943 if test $export -eq 0; then
14944 { $as_echo "$as_me:$LINENO: result: no" >&5
14945 $as_echo "no" >&6; }
14946
14947 else
14948 { $as_echo "$as_me:$LINENO: result: yes" >&5
14949 $as_echo "yes" >&6; }
14950
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_SET_FS_PWD 1
14953 _ACEOF
14954
14955 fi
14956 else
14957 { $as_echo "$as_me:$LINENO: result: yes" >&5
14958 $as_echo "yes" >&6; }
14959
14960 cat >>confdefs.h <<\_ACEOF
14961 #define HAVE_SET_FS_PWD 1
14962 _ACEOF
14963
14964 fi
14965
14966
14967 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14968 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14969
14970
14971 cat confdefs.h - <<_ACEOF >conftest.c
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977
14978
14979 #include <linux/sched.h>
14980 #include <linux/fs_struct.h>
14981
14982 int
14983 main (void)
14984 {
14985
14986 set_fs_pwd(NULL, NULL);
14987
14988 ;
14989 return 0;
14990 }
14991
14992 _ACEOF
14993
14994
14995 rm -Rf build && mkdir -p build
14996 echo "obj-m := conftest.o" >build/Makefile
14997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008
15009 { $as_echo "$as_me:$LINENO: result: yes" >&5
15010 $as_echo "yes" >&6; }
15011
15012 cat >>confdefs.h <<\_ACEOF
15013 #define HAVE_2ARGS_SET_FS_PWD 1
15014 _ACEOF
15015
15016
15017 else
15018 $as_echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15020
15021 { $as_echo "$as_me:$LINENO: result: no" >&5
15022 $as_echo "no" >&6; }
15023
15024
15025
15026 fi
15027
15028 rm -Rf build
15029
15030
15031
15032 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15033 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
15034
15035
15036 cat confdefs.h - <<_ACEOF >conftest.c
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042
15043
15044 #include <linux/fs.h>
15045
15046 int
15047 main (void)
15048 {
15049
15050 vfs_unlink(NULL, NULL);
15051
15052 ;
15053 return 0;
15054 }
15055
15056 _ACEOF
15057
15058
15059 rm -Rf build && mkdir -p build
15060 echo "obj-m := conftest.o" >build/Makefile
15061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072
15073 { $as_echo "$as_me:$LINENO: result: yes" >&5
15074 $as_echo "yes" >&6; }
15075
15076 cat >>confdefs.h <<\_ACEOF
15077 #define HAVE_2ARGS_VFS_UNLINK 1
15078 _ACEOF
15079
15080
15081 else
15082 $as_echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15084
15085 { $as_echo "$as_me:$LINENO: result: no" >&5
15086 $as_echo "no" >&6; }
15087
15088
15089
15090 fi
15091
15092 rm -Rf build
15093
15094
15095
15096 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15097 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
15098
15099
15100 cat confdefs.h - <<_ACEOF >conftest.c
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106
15107
15108 #include <linux/fs.h>
15109
15110 int
15111 main (void)
15112 {
15113
15114 vfs_rename(NULL, NULL, NULL, NULL);
15115
15116 ;
15117 return 0;
15118 }
15119
15120 _ACEOF
15121
15122
15123 rm -Rf build && mkdir -p build
15124 echo "obj-m := conftest.o" >build/Makefile
15125 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136
15137 { $as_echo "$as_me:$LINENO: result: yes" >&5
15138 $as_echo "yes" >&6; }
15139
15140 cat >>confdefs.h <<\_ACEOF
15141 #define HAVE_4ARGS_VFS_RENAME 1
15142 _ACEOF
15143
15144
15145 else
15146 $as_echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149 { $as_echo "$as_me:$LINENO: result: no" >&5
15150 $as_echo "no" >&6; }
15151
15152
15153
15154 fi
15155
15156 rm -Rf build
15157
15158
15159
15160
15161 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15162 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15163 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15164 $LINUX_OBJ/Module*.symvers 2>/dev/null
15165 rc=$?
15166 if test $rc -ne 0; then
15167 export=0
15168 for file in fs/sync.c; do
15169 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15170 "$LINUX_OBJ/$file" 2>/dev/null
15171 rc=$?
15172 if test $rc -eq 0; then
15173 export=1
15174 break;
15175 fi
15176 done
15177 if test $export -eq 0; then
15178 { $as_echo "$as_me:$LINENO: result: no" >&5
15179 $as_echo "no" >&6; }
15180
15181 else
15182 { $as_echo "$as_me:$LINENO: result: yes" >&5
15183 $as_echo "yes" >&6; }
15184
15185 cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_VFS_FSYNC 1
15187 _ACEOF
15188
15189 fi
15190 else
15191 { $as_echo "$as_me:$LINENO: result: yes" >&5
15192 $as_echo "yes" >&6; }
15193
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_VFS_FSYNC 1
15196 _ACEOF
15197
15198 fi
15199
15200
15201
15202 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15203 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15204
15205
15206 cat confdefs.h - <<_ACEOF >conftest.c
15207 /* confdefs.h. */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212
15213
15214 #include <linux/fs.h>
15215
15216 int
15217 main (void)
15218 {
15219
15220 vfs_fsync(NULL, 0);
15221
15222 ;
15223 return 0;
15224 }
15225
15226 _ACEOF
15227
15228
15229 rm -Rf build && mkdir -p build
15230 echo "obj-m := conftest.o" >build/Makefile
15231 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242
15243 { $as_echo "$as_me:$LINENO: result: yes" >&5
15244 $as_echo "yes" >&6; }
15245
15246 cat >>confdefs.h <<\_ACEOF
15247 #define HAVE_2ARGS_VFS_FSYNC 1
15248 _ACEOF
15249
15250
15251 else
15252 $as_echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 { $as_echo "$as_me:$LINENO: result: no" >&5
15256 $as_echo "no" >&6; }
15257
15258
15259
15260 fi
15261
15262 rm -Rf build
15263
15264
15265
15266
15267 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15268 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
15269 tmp_flags="$EXTRA_KCFLAGS"
15270 EXTRA_KCFLAGS="-Werror"
15271
15272
15273 cat confdefs.h - <<_ACEOF >conftest.c
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279
15280
15281 #include <linux/sched.h>
15282 #include <linux/fs_struct.h>
15283
15284 int
15285 main (void)
15286 {
15287
15288 struct fs_struct fs;
15289 spin_lock_init(&fs.lock);
15290
15291 ;
15292 return 0;
15293 }
15294
15295 _ACEOF
15296
15297
15298 rm -Rf build && mkdir -p build
15299 echo "obj-m := conftest.o" >build/Makefile
15300 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311
15312 { $as_echo "$as_me:$LINENO: result: yes" >&5
15313 $as_echo "yes" >&6; }
15314
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_FS_STRUCT_SPINLOCK 1
15317 _ACEOF
15318
15319
15320 else
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 { $as_echo "$as_me:$LINENO: result: no" >&5
15325 $as_echo "no" >&6; }
15326
15327
15328
15329 fi
15330
15331 rm -Rf build
15332
15333
15334 EXTRA_KCFLAGS="$tmp_flags"
15335
15336
15337 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15338 $as_echo_n "checking whether struct cred exists... " >&6; }
15339
15340
15341 cat confdefs.h - <<_ACEOF >conftest.c
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347
15348
15349 #include <linux/cred.h>
15350
15351 int
15352 main (void)
15353 {
15354
15355 struct cred *cr __attribute__ ((unused));
15356 cr = NULL;
15357
15358 ;
15359 return 0;
15360 }
15361
15362 _ACEOF
15363
15364
15365 rm -Rf build && mkdir -p build
15366 echo "obj-m := conftest.o" >build/Makefile
15367 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378
15379 { $as_echo "$as_me:$LINENO: result: yes" >&5
15380 $as_echo "yes" >&6; }
15381
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_CRED_STRUCT 1
15384 _ACEOF
15385
15386
15387 else
15388 $as_echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 { $as_echo "$as_me:$LINENO: result: no" >&5
15392 $as_echo "no" >&6; }
15393
15394
15395
15396 fi
15397
15398 rm -Rf build
15399
15400
15401
15402
15403 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15404 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
15405 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15406 $LINUX_OBJ/Module*.symvers 2>/dev/null
15407 rc=$?
15408 if test $rc -ne 0; then
15409 export=0
15410 for file in ; do
15411 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15412 "$LINUX_OBJ/$file" 2>/dev/null
15413 rc=$?
15414 if test $rc -eq 0; then
15415 export=1
15416 break;
15417 fi
15418 done
15419 if test $export -eq 0; then
15420 { $as_echo "$as_me:$LINENO: result: no" >&5
15421 $as_echo "no" >&6; }
15422
15423 else
15424 { $as_echo "$as_me:$LINENO: result: yes" >&5
15425 $as_echo "yes" >&6; }
15426
15427 cat >>confdefs.h <<\_ACEOF
15428 #define HAVE_GROUPS_SEARCH 1
15429 _ACEOF
15430
15431 fi
15432 else
15433 { $as_echo "$as_me:$LINENO: result: yes" >&5
15434 $as_echo "yes" >&6; }
15435
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_GROUPS_SEARCH 1
15438 _ACEOF
15439
15440 fi
15441
15442
15443
15444 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15445 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
15446 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15447 $LINUX_OBJ/Module*.symvers 2>/dev/null
15448 rc=$?
15449 if test $rc -ne 0; then
15450 export=0
15451 for file in ; do
15452 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15453 "$LINUX_OBJ/$file" 2>/dev/null
15454 rc=$?
15455 if test $rc -eq 0; then
15456 export=1
15457 break;
15458 fi
15459 done
15460 if test $export -eq 0; then
15461 { $as_echo "$as_me:$LINENO: result: no" >&5
15462 $as_echo "no" >&6; }
15463
15464 else
15465 { $as_echo "$as_me:$LINENO: result: yes" >&5
15466 $as_echo "yes" >&6; }
15467
15468 cat >>confdefs.h <<\_ACEOF
15469 #define HAVE_PUT_TASK_STRUCT 1
15470 _ACEOF
15471
15472 fi
15473 else
15474 { $as_echo "$as_me:$LINENO: result: yes" >&5
15475 $as_echo "yes" >&6; }
15476
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_PUT_TASK_STRUCT 1
15479 _ACEOF
15480
15481 fi
15482
15483
15484
15485 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15486 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15487
15488
15489 cat confdefs.h - <<_ACEOF >conftest.c
15490 /* confdefs.h. */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495
15496
15497 #include <linux/sysctl.h>
15498
15499 int
15500 main (void)
15501 {
15502
15503 proc_dostring(NULL, 0, NULL, NULL, NULL);
15504
15505 ;
15506 return 0;
15507 }
15508
15509 _ACEOF
15510
15511
15512 rm -Rf build && mkdir -p build
15513 echo "obj-m := conftest.o" >build/Makefile
15514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15522 ac_status=$?
15523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; }; then
15525
15526 { $as_echo "$as_me:$LINENO: result: yes" >&5
15527 $as_echo "yes" >&6; }
15528
15529 cat >>confdefs.h <<\_ACEOF
15530 #define HAVE_5ARGS_PROC_HANDLER 1
15531 _ACEOF
15532
15533
15534 else
15535 $as_echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 { $as_echo "$as_me:$LINENO: result: no" >&5
15539 $as_echo "no" >&6; }
15540
15541
15542
15543 fi
15544
15545 rm -Rf build
15546
15547
15548
15549
15550 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15551 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15552 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15553 $LINUX_OBJ/Module*.symvers 2>/dev/null
15554 rc=$?
15555 if test $rc -ne 0; then
15556 export=0
15557 for file in ; do
15558 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15559 "$LINUX_OBJ/$file" 2>/dev/null
15560 rc=$?
15561 if test $rc -eq 0; then
15562 export=1
15563 break;
15564 fi
15565 done
15566 if test $export -eq 0; then
15567 { $as_echo "$as_me:$LINENO: result: no" >&5
15568 $as_echo "no" >&6; }
15569
15570 else
15571 { $as_echo "$as_me:$LINENO: result: yes" >&5
15572 $as_echo "yes" >&6; }
15573
15574 cat >>confdefs.h <<\_ACEOF
15575 #define HAVE_KVASPRINTF 1
15576 _ACEOF
15577
15578 fi
15579 else
15580 { $as_echo "$as_me:$LINENO: result: yes" >&5
15581 $as_echo "yes" >&6; }
15582
15583 cat >>confdefs.h <<\_ACEOF
15584 #define HAVE_KVASPRINTF 1
15585 _ACEOF
15586
15587 fi
15588
15589
15590
15591 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15592 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15593 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15594 $LINUX_OBJ/Module*.symvers 2>/dev/null
15595 rc=$?
15596 if test $rc -ne 0; then
15597 export=0
15598 for file in lib/rwsem-spinlock.c; do
15599 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15600 "$LINUX_OBJ/$file" 2>/dev/null
15601 rc=$?
15602 if test $rc -eq 0; then
15603 export=1
15604 break;
15605 fi
15606 done
15607 if test $export -eq 0; then
15608 { $as_echo "$as_me:$LINENO: result: no" >&5
15609 $as_echo "no" >&6; }
15610
15611 else
15612 { $as_echo "$as_me:$LINENO: result: yes" >&5
15613 $as_echo "yes" >&6; }
15614
15615 cat >>confdefs.h <<\_ACEOF
15616 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15617 _ACEOF
15618
15619 fi
15620 else
15621 { $as_echo "$as_me:$LINENO: result: yes" >&5
15622 $as_echo "yes" >&6; }
15623
15624 cat >>confdefs.h <<\_ACEOF
15625 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15626 _ACEOF
15627
15628 fi
15629
15630
15631
15632 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15633 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15634 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15635 $LINUX_OBJ/Module*.symvers 2>/dev/null
15636 rc=$?
15637 if test $rc -ne 0; then
15638 export=0
15639 for file in ; do
15640 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15641 "$LINUX_OBJ/$file" 2>/dev/null
15642 rc=$?
15643 if test $rc -eq 0; then
15644 export=1
15645 break;
15646 fi
15647 done
15648 if test $export -eq 0; then
15649 { $as_echo "$as_me:$LINENO: result: no" >&5
15650 $as_echo "no" >&6; }
15651
15652 else
15653 { $as_echo "$as_me:$LINENO: result: yes" >&5
15654 $as_echo "yes" >&6; }
15655
15656 cat >>confdefs.h <<\_ACEOF
15657 #define HAVE_INVALIDATE_INODES 1
15658 _ACEOF
15659
15660 fi
15661 else
15662 { $as_echo "$as_me:$LINENO: result: yes" >&5
15663 $as_echo "yes" >&6; }
15664
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_INVALIDATE_INODES 1
15667 _ACEOF
15668
15669 fi
15670
15671 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
15672 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
15673 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
15674 $LINUX_OBJ/Module*.symvers 2>/dev/null
15675 rc=$?
15676 if test $rc -ne 0; then
15677 export=0
15678 for file in ; do
15679 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
15680 "$LINUX_OBJ/$file" 2>/dev/null
15681 rc=$?
15682 if test $rc -eq 0; then
15683 export=1
15684 break;
15685 fi
15686 done
15687 if test $export -eq 0; then
15688 { $as_echo "$as_me:$LINENO: result: no" >&5
15689 $as_echo "no" >&6; }
15690
15691 else
15692 { $as_echo "$as_me:$LINENO: result: yes" >&5
15693 $as_echo "yes" >&6; }
15694
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_INVALIDATE_INODES_CHECK 1
15697 _ACEOF
15698
15699 fi
15700 else
15701 { $as_echo "$as_me:$LINENO: result: yes" >&5
15702 $as_echo "yes" >&6; }
15703
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_INVALIDATE_INODES_CHECK 1
15706 _ACEOF
15707
15708 fi
15709
15710
15711 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15712 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15713
15714
15715 cat confdefs.h - <<_ACEOF >conftest.c
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721
15722
15723 #include <linux/fs.h>
15724
15725 int
15726 main (void)
15727 {
15728
15729 return __invalidate_device(NULL, 0);
15730
15731 ;
15732 return 0;
15733 }
15734
15735 _ACEOF
15736
15737
15738 rm -Rf build && mkdir -p build
15739 echo "obj-m := conftest.o" >build/Makefile
15740 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751
15752 { $as_echo "$as_me:$LINENO: result: yes" >&5
15753 $as_echo "yes" >&6; }
15754
15755 cat >>confdefs.h <<\_ACEOF
15756 #define HAVE_2ARGS_INVALIDATE_INODES 1
15757 _ACEOF
15758
15759
15760 else
15761 $as_echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 { $as_echo "$as_me:$LINENO: result: no" >&5
15765 $as_echo "no" >&6; }
15766
15767
15768
15769 fi
15770
15771 rm -Rf build
15772
15773
15774
15775
15776 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15777 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15778 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15779 $LINUX_OBJ/Module*.symvers 2>/dev/null
15780 rc=$?
15781 if test $rc -ne 0; then
15782 export=0
15783 for file in fs/dcache.c; do
15784 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15785 "$LINUX_OBJ/$file" 2>/dev/null
15786 rc=$?
15787 if test $rc -eq 0; then
15788 export=1
15789 break;
15790 fi
15791 done
15792 if test $export -eq 0; then
15793 { $as_echo "$as_me:$LINENO: result: no" >&5
15794 $as_echo "no" >&6; }
15795
15796 else
15797 { $as_echo "$as_me:$LINENO: result: yes" >&5
15798 $as_echo "yes" >&6; }
15799
15800 cat >>confdefs.h <<\_ACEOF
15801 #define HAVE_SHRINK_DCACHE_MEMORY 1
15802 _ACEOF
15803
15804 fi
15805 else
15806 { $as_echo "$as_me:$LINENO: result: yes" >&5
15807 $as_echo "yes" >&6; }
15808
15809 cat >>confdefs.h <<\_ACEOF
15810 #define HAVE_SHRINK_DCACHE_MEMORY 1
15811 _ACEOF
15812
15813 fi
15814
15815
15816
15817 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15818 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15819 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15820 $LINUX_OBJ/Module*.symvers 2>/dev/null
15821 rc=$?
15822 if test $rc -ne 0; then
15823 export=0
15824 for file in fs/inode.c; do
15825 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15826 "$LINUX_OBJ/$file" 2>/dev/null
15827 rc=$?
15828 if test $rc -eq 0; then
15829 export=1
15830 break;
15831 fi
15832 done
15833 if test $export -eq 0; then
15834 { $as_echo "$as_me:$LINENO: result: no" >&5
15835 $as_echo "no" >&6; }
15836
15837 else
15838 { $as_echo "$as_me:$LINENO: result: yes" >&5
15839 $as_echo "yes" >&6; }
15840
15841 cat >>confdefs.h <<\_ACEOF
15842 #define HAVE_SHRINK_ICACHE_MEMORY 1
15843 _ACEOF
15844
15845 fi
15846 else
15847 { $as_echo "$as_me:$LINENO: result: yes" >&5
15848 $as_echo "yes" >&6; }
15849
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_SHRINK_ICACHE_MEMORY 1
15852 _ACEOF
15853
15854 fi
15855
15856
15857
15858
15859 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15860 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15861 header=0
15862 for file in include/linux/namei.h; do
15863 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15864 rc=$?
15865 if test $rc -eq 0; then
15866 header=1
15867 break;
15868 fi
15869 done
15870 if test $header -eq 0; then
15871 { $as_echo "$as_me:$LINENO: result: no" >&5
15872 $as_echo "no" >&6; }
15873
15874 else
15875 { $as_echo "$as_me:$LINENO: result: yes" >&5
15876 $as_echo "yes" >&6; }
15877
15878 cat >>confdefs.h <<\_ACEOF
15879 #define HAVE_KERN_PATH_PARENT_HEADER 1
15880 _ACEOF
15881
15882 fi
15883
15884
15885
15886 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15887 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15888 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15889 $LINUX_OBJ/Module*.symvers 2>/dev/null
15890 rc=$?
15891 if test $rc -ne 0; then
15892 export=0
15893 for file in fs/namei.c; do
15894 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15895 "$LINUX_OBJ/$file" 2>/dev/null
15896 rc=$?
15897 if test $rc -eq 0; then
15898 export=1
15899 break;
15900 fi
15901 done
15902 if test $export -eq 0; then
15903 { $as_echo "$as_me:$LINENO: result: no" >&5
15904 $as_echo "no" >&6; }
15905
15906 else
15907 { $as_echo "$as_me:$LINENO: result: yes" >&5
15908 $as_echo "yes" >&6; }
15909
15910 cat >>confdefs.h <<\_ACEOF
15911 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15912 _ACEOF
15913
15914 fi
15915 else
15916 { $as_echo "$as_me:$LINENO: result: yes" >&5
15917 $as_echo "yes" >&6; }
15918
15919 cat >>confdefs.h <<\_ACEOF
15920 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15921 _ACEOF
15922
15923 fi
15924
15925
15926 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15927 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15928
15929
15930 cat confdefs.h - <<_ACEOF >conftest.c
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936
15937
15938 #include <linux/zlib.h>
15939
15940 int
15941 main (void)
15942 {
15943
15944 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15945
15946 ;
15947 return 0;
15948 }
15949
15950 _ACEOF
15951
15952
15953 rm -Rf build && mkdir -p build
15954 echo "obj-m := conftest.o" >build/Makefile
15955 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966
15967 { $as_echo "$as_me:$LINENO: result: yes" >&5
15968 $as_echo "yes" >&6; }
15969
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15972 _ACEOF
15973
15974
15975 else
15976 $as_echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 { $as_echo "$as_me:$LINENO: result: no" >&5
15980 $as_echo "no" >&6; }
15981
15982
15983
15984 fi
15985
15986 rm -Rf build
15987
15988
15989
15990
15991 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15992 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
15993
15994
15995 cat confdefs.h - <<_ACEOF >conftest.c
15996 /* confdefs.h. */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001
16002
16003 #include <linux/mm.h>
16004
16005 int
16006 main (void)
16007 {
16008
16009 struct shrink_control sc __attribute__ ((unused));
16010
16011 sc.nr_to_scan = 0;
16012 sc.gfp_mask = GFP_KERNEL;
16013
16014 ;
16015 return 0;
16016 }
16017
16018 _ACEOF
16019
16020
16021 rm -Rf build && mkdir -p build
16022 echo "obj-m := conftest.o" >build/Makefile
16023 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034
16035 { $as_echo "$as_me:$LINENO: result: yes" >&5
16036 $as_echo "yes" >&6; }
16037
16038 cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_SHRINK_CONTROL_STRUCT 1
16040 _ACEOF
16041
16042
16043 else
16044 $as_echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047 { $as_echo "$as_me:$LINENO: result: no" >&5
16048 $as_echo "no" >&6; }
16049
16050
16051
16052 fi
16053
16054 rm -Rf build
16055
16056
16057
16058
16059 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
16060 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16061 tmp_flags="$EXTRA_KCFLAGS"
16062 EXTRA_KCFLAGS="-Werror"
16063
16064
16065 cat confdefs.h - <<_ACEOF >conftest.c
16066 /* confdefs.h. */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071
16072
16073 #include <linux/rwsem.h>
16074
16075 int
16076 main (void)
16077 {
16078
16079 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16080 raw_spinlock_t dummy_lock __attribute__ ((unused));
16081 dummy_semaphore.wait_lock = dummy_lock;
16082
16083 ;
16084 return 0;
16085 }
16086
16087 _ACEOF
16088
16089
16090 rm -Rf build && mkdir -p build
16091 echo "obj-m := conftest.o" >build/Makefile
16092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103
16104 { $as_echo "$as_me:$LINENO: result: yes" >&5
16105 $as_echo "yes" >&6; }
16106
16107 cat >>confdefs.h <<\_ACEOF
16108 #define RWSEM_SPINLOCK_IS_RAW 1
16109 _ACEOF
16110
16111
16112 else
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 { $as_echo "$as_me:$LINENO: result: no" >&5
16117 $as_echo "no" >&6; }
16118
16119
16120
16121 fi
16122
16123 rm -Rf build
16124
16125
16126 EXTRA_KCFLAGS="$tmp_flags"
16127
16128 ;;
16129 user) ;;
16130 all)
16131
16132
16133 # Check whether --with-linux was given.
16134 if test "${with_linux+set}" = set; then
16135 withval=$with_linux; kernelsrc="$withval"
16136 fi
16137
16138
16139
16140 # Check whether --with-linux-obj was given.
16141 if test "${with_linux_obj+set}" = set; then
16142 withval=$with_linux_obj; kernelbuild="$withval"
16143 fi
16144
16145
16146 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16147 $as_echo_n "checking kernel source directory... " >&6; }
16148 if test -z "$kernelsrc"; then
16149 if test -e "/lib/modules/$(uname -r)/source"; then
16150 headersdir="/lib/modules/$(uname -r)/source"
16151 sourcelink=$(readlink -f "$headersdir")
16152 elif test -e "/lib/modules/$(uname -r)/build"; then
16153 headersdir="/lib/modules/$(uname -r)/build"
16154 sourcelink=$(readlink -f "$headersdir")
16155 else
16156 sourcelink=$(ls -1d /usr/src/kernels/* \
16157 /usr/src/linux-* \
16158 2>/dev/null | grep -v obj | tail -1)
16159 fi
16160
16161 if test -n "$sourcelink" && test -e ${sourcelink}; then
16162 kernelsrc=`readlink -f ${sourcelink}`
16163 else
16164 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16165 $as_echo "Not found" >&6; }
16166 { { $as_echo "$as_me:$LINENO: error:
16167 *** Please make sure the kernel devel package for your distribution
16168 *** is installed then try again. If that fails you can specify the
16169 *** location of the kernel source with the '--with-linux=PATH' option." >&5
16170 $as_echo "$as_me: error:
16171 *** Please make sure the kernel devel package for your distribution
16172 *** is installed then try again. If that fails you can specify the
16173 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16174 { (exit 1); exit 1; }; }
16175 fi
16176 else
16177 if test "$kernelsrc" = "NONE"; then
16178 kernsrcver=NONE
16179 fi
16180 fi
16181
16182 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16183 $as_echo "$kernelsrc" >&6; }
16184 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16185 $as_echo_n "checking kernel build directory... " >&6; }
16186 if test -z "$kernelbuild"; then
16187 if test -e "/lib/modules/$(uname -r)/build"; then
16188 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16189 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16190 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16191 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16192 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16193 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16194 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16195 else
16196 kernelbuild=${kernelsrc}
16197 fi
16198 fi
16199 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16200 $as_echo "$kernelbuild" >&6; }
16201
16202 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16203 $as_echo_n "checking kernel source version... " >&6; }
16204 utsrelease1=$kernelbuild/include/linux/version.h
16205 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16206 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16207 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16208 utsrelease=linux/version.h
16209 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16210 utsrelease=linux/utsrelease.h
16211 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16212 utsrelease=generated/utsrelease.h
16213 fi
16214
16215 if test "$utsrelease"; then
16216 kernsrcver=`(echo "#include <$utsrelease>";
16217 echo "kernsrcver=UTS_RELEASE") |
16218 cpp -I $kernelbuild/include |
16219 grep "^kernsrcver=" | cut -d \" -f 2`
16220
16221 if test -z "$kernsrcver"; then
16222 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16223 $as_echo "Not found" >&6; }
16224 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16225 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16226 { (exit 1); exit 1; }; }
16227 fi
16228 else
16229 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16230 $as_echo "Not found" >&6; }
16231 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16232 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16233 { (exit 1); exit 1; }; }
16234 fi
16235
16236 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16237 $as_echo "$kernsrcver" >&6; }
16238
16239 LINUX=${kernelsrc}
16240 LINUX_OBJ=${kernelbuild}
16241 LINUX_VERSION=${kernsrcver}
16242
16243
16244
16245
16246
16247
16248 modpost=$LINUX/scripts/Makefile.modpost
16249 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16250 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16251 if test -f "$modpost"; then
16252 if grep -q Modules.symvers $modpost; then
16253 LINUX_SYMBOLS=Modules.symvers
16254 else
16255 LINUX_SYMBOLS=Module.symvers
16256 fi
16257
16258 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16259 { { $as_echo "$as_me:$LINENO: error:
16260 *** Please make sure the kernel devel package for your distribution
16261 *** is installed. If your building with a custom kernel make sure the
16262 *** kernel is configured, built, and the '--with-linux=PATH' configure
16263 *** option refers to the location of the kernel source." >&5
16264 $as_echo "$as_me: error:
16265 *** Please make sure the kernel devel package for your distribution
16266 *** is installed. If your building with a custom kernel make sure the
16267 *** kernel is configured, built, and the '--with-linux=PATH' configure
16268 *** option refers to the location of the kernel source." >&2;}
16269 { (exit 1); exit 1; }; }
16270 fi
16271 else
16272 LINUX_SYMBOLS=NONE
16273 fi
16274 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16275 $as_echo "$LINUX_SYMBOLS" >&6; }
16276
16277
16278
16279
16280 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16281 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16282
16283
16284 cat confdefs.h - <<_ACEOF >conftest.c
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290
16291
16292 #include <linux/module.h>
16293
16294 int
16295 main (void)
16296 {
16297
16298 #ifndef CONFIG_PREEMPT
16299 #error CONFIG_PREEMPT not #defined
16300 #endif
16301
16302 ;
16303 return 0;
16304 }
16305
16306 _ACEOF
16307
16308
16309 rm -Rf build && mkdir -p build
16310 echo "obj-m := conftest.o" >build/Makefile
16311 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322
16323 { $as_echo "$as_me:$LINENO: result: yes" >&5
16324 $as_echo "yes" >&6; }
16325 { { $as_echo "$as_me:$LINENO: error:
16326 *** Kernel built with CONFIG_PREEMPT which is not supported.
16327 ** You must rebuild your kernel without this option." >&5
16328 $as_echo "$as_me: error:
16329 *** Kernel built with CONFIG_PREEMPT which is not supported.
16330 ** You must rebuild your kernel without this option." >&2;}
16331 { (exit 1); exit 1; }; }
16332
16333 else
16334 $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 { $as_echo "$as_me:$LINENO: result: no" >&5
16338 $as_echo "no" >&6; }
16339
16340
16341
16342
16343 fi
16344
16345 rm -Rf build
16346
16347
16348
16349
16350
16351 if test "${LINUX_OBJ}" != "${LINUX}"; then
16352 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16353 fi
16354
16355
16356 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16357
16358
16359
16360 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16361 $as_echo_n "checking whether debugging is enabled... " >&6; }
16362 # Check whether --enable-debug was given.
16363 if test "${enable_debug+set}" = set; then
16364 enableval=$enable_debug;
16365 else
16366 enable_debug=no
16367 fi
16368
16369
16370 if test "x$enable_debug" = xyes; then
16371
16372 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16373 DEBUG_CFLAGS="-DDEBUG -Werror"
16374
16375 else
16376
16377 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16378 DEBUG_CFLAGS="-DNDEBUG"
16379
16380 fi
16381
16382
16383
16384 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16385 $as_echo "$enable_debug" >&6; }
16386
16387
16388 # Check whether --enable-debug-log was given.
16389 if test "${enable_debug_log+set}" = set; then
16390 enableval=$enable_debug_log;
16391 else
16392 enable_debug_log=yes
16393 fi
16394
16395
16396 if test "x$enable_debug_log" = xyes; then
16397
16398 cat >>confdefs.h <<\_ACEOF
16399 #define DEBUG_LOG 1
16400 _ACEOF
16401
16402 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
16403 fi
16404
16405
16406 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
16407 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
16408 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
16409 $as_echo "$enable_debug_log" >&6; }
16410
16411
16412 # Check whether --enable-debug-kmem was given.
16413 if test "${enable_debug_kmem+set}" = set; then
16414 enableval=$enable_debug_kmem;
16415 else
16416 enable_debug_kmem=yes
16417 fi
16418
16419
16420 if test "x$enable_debug_kmem" = xyes; then
16421
16422 cat >>confdefs.h <<\_ACEOF
16423 #define DEBUG_KMEM 1
16424 _ACEOF
16425
16426 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16427 fi
16428
16429
16430 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16431 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16432 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16433 $as_echo "$enable_debug_kmem" >&6; }
16434
16435
16436 # Check whether --enable-debug-kmem-tracking was given.
16437 if test "${enable_debug_kmem_tracking+set}" = set; then
16438 enableval=$enable_debug_kmem_tracking;
16439 else
16440 enable_debug_kmem_tracking=no
16441 fi
16442
16443
16444 if test "x$enable_debug_kmem_tracking" = xyes; then
16445
16446 cat >>confdefs.h <<\_ACEOF
16447 #define DEBUG_KMEM_TRACKING 1
16448 _ACEOF
16449
16450 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16451 fi
16452
16453
16454 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16455 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16456 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16457 $as_echo "$enable_debug_kmem_tracking" >&6; }
16458
16459
16460 # Check whether --enable-atomic-spinlocks was given.
16461 if test "${enable_atomic_spinlocks+set}" = set; then
16462 enableval=$enable_atomic_spinlocks;
16463 else
16464 enable_atomic_spinlocks=check
16465 fi
16466
16467
16468
16469
16470 cat confdefs.h - <<_ACEOF >conftest.c
16471 /* confdefs.h. */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476
16477
16478 #include <asm/atomic.h>
16479
16480 int
16481 main (void)
16482 {
16483
16484 atomic64_t *ptr __attribute__ ((unused));
16485
16486 ;
16487 return 0;
16488 }
16489
16490 _ACEOF
16491
16492
16493 rm -Rf build && mkdir -p build
16494 echo "obj-m := conftest.o" >build/Makefile
16495 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506
16507 have_atomic64_t=yes
16508
16509 cat >>confdefs.h <<\_ACEOF
16510 #define HAVE_ATOMIC64_T 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 have_atomic64_t=no
16519
16520
16521
16522 fi
16523
16524 rm -Rf build
16525
16526
16527
16528 if test "x$enable_atomic_spinlocks" = xcheck; then
16529
16530 if test "x$have_atomic64_t" = xyes; then
16531
16532 enable_atomic_spinlocks=no
16533
16534 else
16535
16536 enable_atomic_spinlocks=yes
16537
16538 fi
16539
16540
16541 fi
16542
16543
16544 if test "x$enable_atomic_spinlocks" = xyes; then
16545
16546
16547 cat >>confdefs.h <<\_ACEOF
16548 #define ATOMIC_SPINLOCK 1
16549 _ACEOF
16550
16551
16552 else
16553
16554 if test "x$have_atomic64_t" = xno; then
16555
16556 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16558 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16559 See \`config.log' for more details." >&5
16560 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16561 See \`config.log' for more details." >&2;}
16562 { (exit 1); exit 1; }; }; }
16563
16564 fi
16565
16566
16567 fi
16568
16569
16570 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16571 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16572 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16573 $as_echo "$enable_atomic_spinlocks" >&6; }
16574
16575 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16576 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16577 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16578 $as_echo "$have_atomic64_t" >&6; }
16579
16580 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16581 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
16582
16583
16584 cat confdefs.h - <<_ACEOF >conftest.c
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590
16591
16592 #include <asm/atomic.h>
16593 #include <asm/system.h>
16594
16595 int
16596 main (void)
16597 {
16598
16599 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
16600
16601 ;
16602 return 0;
16603 }
16604
16605 _ACEOF
16606
16607
16608 rm -Rf build && mkdir -p build
16609 echo "obj-m := conftest.o" >build/Makefile
16610 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621
16622 { $as_echo "$as_me:$LINENO: result: yes" >&5
16623 $as_echo "yes" >&6; }
16624
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_ATOMIC64_CMPXCHG 1
16627 _ACEOF
16628
16629
16630 else
16631 $as_echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 { $as_echo "$as_me:$LINENO: result: no" >&5
16635 $as_echo "no" >&6; }
16636
16637
16638
16639 fi
16640
16641 rm -Rf build
16642
16643
16644
16645 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16646 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
16647
16648
16649 cat confdefs.h - <<_ACEOF >conftest.c
16650 /* confdefs.h. */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655
16656
16657 #include <asm/atomic.h>
16658
16659 int
16660 main (void)
16661 {
16662
16663 atomic64_xchg((atomic64_t *)NULL, 0);
16664
16665 ;
16666 return 0;
16667 }
16668
16669 _ACEOF
16670
16671
16672 rm -Rf build && mkdir -p build
16673 echo "obj-m := conftest.o" >build/Makefile
16674 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685
16686 { $as_echo "$as_me:$LINENO: result: yes" >&5
16687 $as_echo "yes" >&6; }
16688
16689 cat >>confdefs.h <<\_ACEOF
16690 #define HAVE_ATOMIC64_XCHG 1
16691 _ACEOF
16692
16693
16694 else
16695 $as_echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698 { $as_echo "$as_me:$LINENO: result: no" >&5
16699 $as_echo "no" >&6; }
16700
16701
16702
16703 fi
16704
16705 rm -Rf build
16706
16707
16708
16709 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16710 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
16711
16712
16713 cat confdefs.h - <<_ACEOF >conftest.c
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719
16720
16721 #include <linux/types.h>
16722
16723 int
16724 main (void)
16725 {
16726
16727 uintptr_t *ptr __attribute__ ((unused));
16728
16729 ;
16730 return 0;
16731 }
16732
16733 _ACEOF
16734
16735
16736 rm -Rf build && mkdir -p build
16737 echo "obj-m := conftest.o" >build/Makefile
16738 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749
16750 { $as_echo "$as_me:$LINENO: result: yes" >&5
16751 $as_echo "yes" >&6; }
16752
16753 cat >>confdefs.h <<\_ACEOF
16754 #define HAVE_UINTPTR_T 1
16755 _ACEOF
16756
16757
16758 else
16759 $as_echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 { $as_echo "$as_me:$LINENO: result: no" >&5
16763 $as_echo "no" >&6; }
16764
16765
16766
16767 fi
16768
16769 rm -Rf build
16770
16771
16772
16773 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16774 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
16775
16776
16777 cat confdefs.h - <<_ACEOF >conftest.c
16778 /* confdefs.h. */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783
16784
16785 #include <linux/workqueue.h>
16786
16787 int
16788 main (void)
16789 {
16790
16791 struct work_struct work __attribute__ ((unused));
16792 INIT_WORK(&work, NULL, NULL);
16793
16794 ;
16795 return 0;
16796 }
16797
16798 _ACEOF
16799
16800
16801 rm -Rf build && mkdir -p build
16802 echo "obj-m := conftest.o" >build/Makefile
16803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816 $as_echo "yes" >&6; }
16817
16818 cat >>confdefs.h <<\_ACEOF
16819 #define HAVE_3ARGS_INIT_WORK 1
16820 _ACEOF
16821
16822
16823 else
16824 $as_echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 { $as_echo "$as_me:$LINENO: result: no" >&5
16828 $as_echo "no" >&6; }
16829
16830
16831
16832 fi
16833
16834 rm -Rf build
16835
16836
16837
16838 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16839 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
16840
16841
16842 cat confdefs.h - <<_ACEOF >conftest.c
16843 /* confdefs.h. */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848
16849
16850 #include <linux/sysctl.h>
16851
16852 int
16853 main (void)
16854 {
16855
16856 (void) register_sysctl_table(NULL, 0);
16857
16858 ;
16859 return 0;
16860 }
16861
16862 _ACEOF
16863
16864
16865 rm -Rf build && mkdir -p build
16866 echo "obj-m := conftest.o" >build/Makefile
16867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878
16879 { $as_echo "$as_me:$LINENO: result: yes" >&5
16880 $as_echo "yes" >&6; }
16881
16882 cat >>confdefs.h <<\_ACEOF
16883 #define HAVE_2ARGS_REGISTER_SYSCTL 1
16884 _ACEOF
16885
16886
16887 else
16888 $as_echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 { $as_echo "$as_me:$LINENO: result: no" >&5
16892 $as_echo "no" >&6; }
16893
16894
16895
16896 fi
16897
16898 rm -Rf build
16899
16900
16901
16902
16903 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16904 $as_echo_n "checking whether set_shrinker() available... " >&6; }
16905
16906
16907 cat confdefs.h - <<_ACEOF >conftest.c
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913
16914
16915 #include <linux/mm.h>
16916
16917 int
16918 main (void)
16919 {
16920
16921 return set_shrinker(DEFAULT_SEEKS, NULL);
16922
16923 ;
16924 return 0;
16925 }
16926
16927 _ACEOF
16928
16929
16930 rm -Rf build && mkdir -p build
16931 echo "obj-m := conftest.o" >build/Makefile
16932 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943
16944 { $as_echo "$as_me:$LINENO: result: yes" >&5
16945 $as_echo "yes" >&6; }
16946
16947 cat >>confdefs.h <<\_ACEOF
16948 #define HAVE_SET_SHRINKER 1
16949 _ACEOF
16950
16951
16952 else
16953 $as_echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16955
16956 { $as_echo "$as_me:$LINENO: result: no" >&5
16957 $as_echo "no" >&6; }
16958
16959
16960
16961 fi
16962
16963 rm -Rf build
16964
16965
16966
16967 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16968 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16969 tmp_flags="$EXTRA_KCFLAGS"
16970 EXTRA_KCFLAGS="-Werror"
16971
16972
16973 cat confdefs.h - <<_ACEOF >conftest.c
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979
16980
16981 #include <linux/mm.h>
16982
16983 int shrinker_cb(struct shrinker *, int, unsigned int);
16984
16985 int
16986 main (void)
16987 {
16988
16989 struct shrinker cache_shrinker = {
16990 .shrink = shrinker_cb,
16991 .seeks = DEFAULT_SEEKS,
16992 };
16993 register_shrinker(&cache_shrinker);
16994
16995 ;
16996 return 0;
16997 }
16998
16999 _ACEOF
17000
17001
17002 rm -Rf build && mkdir -p build
17003 echo "obj-m := conftest.o" >build/Makefile
17004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015
17016 { $as_echo "$as_me:$LINENO: result: yes" >&5
17017 $as_echo "yes" >&6; }
17018
17019 cat >>confdefs.h <<\_ACEOF
17020 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
17021 _ACEOF
17022
17023
17024 else
17025 $as_echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 { $as_echo "$as_me:$LINENO: result: no" >&5
17029 $as_echo "no" >&6; }
17030
17031
17032
17033 fi
17034
17035 rm -Rf build
17036
17037
17038 EXTRA_KCFLAGS="$tmp_flags"
17039
17040 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
17041 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
17042
17043
17044 cat confdefs.h - <<_ACEOF >conftest.c
17045 /* confdefs.h. */
17046 _ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050
17051
17052 #include <linux/namei.h>
17053
17054 int
17055 main (void)
17056 {
17057
17058 struct nameidata nd __attribute__ ((unused));
17059
17060 nd.path.mnt = NULL;
17061 nd.path.dentry = NULL;
17062
17063 ;
17064 return 0;
17065 }
17066
17067 _ACEOF
17068
17069
17070 rm -Rf build && mkdir -p build
17071 echo "obj-m := conftest.o" >build/Makefile
17072 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083
17084 { $as_echo "$as_me:$LINENO: result: yes" >&5
17085 $as_echo "yes" >&6; }
17086
17087 cat >>confdefs.h <<\_ACEOF
17088 #define HAVE_PATH_IN_NAMEIDATA 1
17089 _ACEOF
17090
17091
17092 else
17093 $as_echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17095
17096 { $as_echo "$as_me:$LINENO: result: no" >&5
17097 $as_echo "no" >&6; }
17098
17099
17100
17101 fi
17102
17103 rm -Rf build
17104
17105
17106
17107
17108 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
17109 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
17110 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17111 $LINUX_OBJ/Module*.symvers 2>/dev/null
17112 rc=$?
17113 if test $rc -ne 0; then
17114 export=0
17115 for file in kernel/sched.c; do
17116 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17117 "$LINUX_OBJ/$file" 2>/dev/null
17118 rc=$?
17119 if test $rc -eq 0; then
17120 export=1
17121 break;
17122 fi
17123 done
17124 if test $export -eq 0; then
17125 { $as_echo "$as_me:$LINENO: result: no" >&5
17126 $as_echo "no" >&6; }
17127
17128 else
17129 { $as_echo "$as_me:$LINENO: result: yes" >&5
17130 $as_echo "yes" >&6; }
17131
17132 cat >>confdefs.h <<\_ACEOF
17133 #define HAVE_TASK_CURR 1
17134 _ACEOF
17135
17136 fi
17137 else
17138 { $as_echo "$as_me:$LINENO: result: yes" >&5
17139 $as_echo "yes" >&6; }
17140
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_TASK_CURR 1
17143 _ACEOF
17144
17145 fi
17146
17147
17148 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
17149 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
17150
17151
17152 cat confdefs.h - <<_ACEOF >conftest.c
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158
17159
17160 #include <linux/sysctl.h>
17161
17162 int
17163 main (void)
17164 {
17165
17166 #ifndef CTL_UNNUMBERED
17167 #error CTL_UNNUMBERED undefined
17168 #endif
17169
17170 ;
17171 return 0;
17172 }
17173
17174 _ACEOF
17175
17176
17177 rm -Rf build && mkdir -p build
17178 echo "obj-m := conftest.o" >build/Makefile
17179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190
17191 { $as_echo "$as_me:$LINENO: result: yes" >&5
17192 $as_echo "yes" >&6; }
17193
17194 cat >>confdefs.h <<\_ACEOF
17195 #define HAVE_CTL_UNNUMBERED 1
17196 _ACEOF
17197
17198
17199 else
17200 $as_echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 { $as_echo "$as_me:$LINENO: result: no" >&5
17204 $as_echo "no" >&6; }
17205
17206
17207
17208 fi
17209
17210 rm -Rf build
17211
17212
17213
17214
17215 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17216 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17217
17218
17219 cat confdefs.h - <<_ACEOF >conftest.c
17220 /* confdefs.h. */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h. */
17225
17226
17227 #include <linux/sysctl.h>
17228
17229 int
17230 main (void)
17231 {
17232
17233 struct ctl_table ctl __attribute__ ((unused));
17234 ctl.ctl_name = 0;
17235
17236 ;
17237 return 0;
17238 }
17239
17240 _ACEOF
17241
17242
17243 rm -Rf build && mkdir -p build
17244 echo "obj-m := conftest.o" >build/Makefile
17245 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256
17257 { $as_echo "$as_me:$LINENO: result: yes" >&5
17258 $as_echo "yes" >&6; }
17259
17260 cat >>confdefs.h <<\_ACEOF
17261 #define HAVE_CTL_NAME 1
17262 _ACEOF
17263
17264
17265 else
17266 $as_echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17268
17269 { $as_echo "$as_me:$LINENO: result: no" >&5
17270 $as_echo "no" >&6; }
17271
17272
17273
17274 fi
17275
17276 rm -Rf build
17277
17278
17279
17280 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17281 $as_echo_n "checking whether fls64() is available... " >&6; }
17282
17283
17284 cat confdefs.h - <<_ACEOF >conftest.c
17285 /* confdefs.h. */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290
17291
17292 #include <linux/bitops.h>
17293
17294 int
17295 main (void)
17296 {
17297
17298 return fls64(0);
17299
17300 ;
17301 return 0;
17302 }
17303
17304 _ACEOF
17305
17306
17307 rm -Rf build && mkdir -p build
17308 echo "obj-m := conftest.o" >build/Makefile
17309 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320
17321 { $as_echo "$as_me:$LINENO: result: yes" >&5
17322 $as_echo "yes" >&6; }
17323
17324 cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_FLS64 1
17326 _ACEOF
17327
17328
17329 else
17330 $as_echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 { $as_echo "$as_me:$LINENO: result: no" >&5
17334 $as_echo "no" >&6; }
17335
17336
17337
17338 fi
17339
17340 rm -Rf build
17341
17342
17343
17344
17345 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17346 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
17347 grep -q -E '[[:space:]]device_create[[:space:]]' \
17348 $LINUX_OBJ/Module*.symvers 2>/dev/null
17349 rc=$?
17350 if test $rc -ne 0; then
17351 export=0
17352 for file in drivers/base/core.c; do
17353 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17354 "$LINUX_OBJ/$file" 2>/dev/null
17355 rc=$?
17356 if test $rc -eq 0; then
17357 export=1
17358 break;
17359 fi
17360 done
17361 if test $export -eq 0; then
17362 { $as_echo "$as_me:$LINENO: result: no" >&5
17363 $as_echo "no" >&6; }
17364
17365 else
17366 { $as_echo "$as_me:$LINENO: result: yes" >&5
17367 $as_echo "yes" >&6; }
17368
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE_DEVICE_CREATE 1
17371 _ACEOF
17372
17373 fi
17374 else
17375 { $as_echo "$as_me:$LINENO: result: yes" >&5
17376 $as_echo "yes" >&6; }
17377
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_DEVICE_CREATE 1
17380 _ACEOF
17381
17382 fi
17383
17384
17385
17386 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17387 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
17388 tmp_flags="$EXTRA_KCFLAGS"
17389 EXTRA_KCFLAGS="-Werror"
17390
17391
17392 cat confdefs.h - <<_ACEOF >conftest.c
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398
17399
17400 #include <linux/device.h>
17401
17402 int
17403 main (void)
17404 {
17405
17406 device_create(NULL, NULL, 0, NULL, "%d", 1);
17407
17408 ;
17409 return 0;
17410 }
17411
17412 _ACEOF
17413
17414
17415 rm -Rf build && mkdir -p build
17416 echo "obj-m := conftest.o" >build/Makefile
17417 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428
17429 { $as_echo "$as_me:$LINENO: result: yes" >&5
17430 $as_echo "yes" >&6; }
17431
17432 cat >>confdefs.h <<\_ACEOF
17433 #define HAVE_5ARGS_DEVICE_CREATE 1
17434 _ACEOF
17435
17436
17437 else
17438 $as_echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 { $as_echo "$as_me:$LINENO: result: no" >&5
17442 $as_echo "no" >&6; }
17443
17444
17445
17446 fi
17447
17448 rm -Rf build
17449
17450
17451 EXTRA_KCFLAGS="$tmp_flags"
17452
17453
17454 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17455 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
17456 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17457 $LINUX_OBJ/Module*.symvers 2>/dev/null
17458 rc=$?
17459 if test $rc -ne 0; then
17460 export=0
17461 for file in drivers/base/class.c; do
17462 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17463 "$LINUX_OBJ/$file" 2>/dev/null
17464 rc=$?
17465 if test $rc -eq 0; then
17466 export=1
17467 break;
17468 fi
17469 done
17470 if test $export -eq 0; then
17471 { $as_echo "$as_me:$LINENO: result: no" >&5
17472 $as_echo "no" >&6; }
17473
17474 else
17475 { $as_echo "$as_me:$LINENO: result: yes" >&5
17476 $as_echo "yes" >&6; }
17477
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_CLASS_DEVICE_CREATE 1
17480 _ACEOF
17481
17482 fi
17483 else
17484 { $as_echo "$as_me:$LINENO: result: yes" >&5
17485 $as_echo "yes" >&6; }
17486
17487 cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_CLASS_DEVICE_CREATE 1
17489 _ACEOF
17490
17491 fi
17492
17493
17494
17495 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17496 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
17497 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17498 $LINUX_OBJ/Module*.symvers 2>/dev/null
17499 rc=$?
17500 if test $rc -ne 0; then
17501 export=0
17502 for file in kernel/time.c; do
17503 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17504 "$LINUX_OBJ/$file" 2>/dev/null
17505 rc=$?
17506 if test $rc -eq 0; then
17507 export=1
17508 break;
17509 fi
17510 done
17511 if test $export -eq 0; then
17512 { $as_echo "$as_me:$LINENO: result: no" >&5
17513 $as_echo "no" >&6; }
17514
17515 else
17516 { $as_echo "$as_me:$LINENO: result: yes" >&5
17517 $as_echo "yes" >&6; }
17518
17519 cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17521 _ACEOF
17522
17523 fi
17524 else
17525 { $as_echo "$as_me:$LINENO: result: yes" >&5
17526 $as_echo "yes" >&6; }
17527
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17530 _ACEOF
17531
17532 fi
17533
17534
17535
17536 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17537 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
17538
17539
17540 cat confdefs.h - <<_ACEOF >conftest.c
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546
17547
17548 #include <linux/time.h>
17549 void set_normalized_timespec(struct timespec *ts,
17550 time_t sec, long nsec) { }
17551
17552 int
17553 main (void)
17554 {
17555
17556 ;
17557 return 0;
17558 }
17559
17560 _ACEOF
17561
17562
17563 rm -Rf build && mkdir -p build
17564 echo "obj-m := conftest.o" >build/Makefile
17565 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576
17577 { $as_echo "$as_me:$LINENO: result: no" >&5
17578 $as_echo "no" >&6; }
17579
17580 else
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584 { $as_echo "$as_me:$LINENO: result: yes" >&5
17585 $as_echo "yes" >&6; }
17586
17587 cat >>confdefs.h <<\_ACEOF
17588 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17589 _ACEOF
17590
17591
17592
17593
17594 fi
17595
17596 rm -Rf build
17597
17598
17599
17600
17601 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17602 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
17603
17604
17605 cat confdefs.h - <<_ACEOF >conftest.c
17606 /* confdefs.h. */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17611
17612
17613 #include <linux/time.h>
17614
17615 int
17616 main (void)
17617 {
17618
17619 struct timespec a = { 0 };
17620 struct timespec b = { 0 };
17621 struct timespec c __attribute__ ((unused));
17622 c = timespec_sub(a, b);
17623
17624 ;
17625 return 0;
17626 }
17627
17628 _ACEOF
17629
17630
17631 rm -Rf build && mkdir -p build
17632 echo "obj-m := conftest.o" >build/Makefile
17633 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646 $as_echo "yes" >&6; }
17647
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_TIMESPEC_SUB 1
17650 _ACEOF
17651
17652
17653 else
17654 $as_echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 { $as_echo "$as_me:$LINENO: result: no" >&5
17658 $as_echo "no" >&6; }
17659
17660
17661
17662 fi
17663
17664 rm -Rf build
17665
17666
17667
17668
17669 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17670 $as_echo_n "checking whether init_utsname() is available... " >&6; }
17671
17672
17673 cat confdefs.h - <<_ACEOF >conftest.c
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679
17680
17681 #include <linux/utsname.h>
17682
17683 int
17684 main (void)
17685 {
17686
17687 struct new_utsname *a __attribute__ ((unused));
17688 a = init_utsname();
17689
17690 ;
17691 return 0;
17692 }
17693
17694 _ACEOF
17695
17696
17697 rm -Rf build && mkdir -p build
17698 echo "obj-m := conftest.o" >build/Makefile
17699 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710
17711 { $as_echo "$as_me:$LINENO: result: yes" >&5
17712 $as_echo "yes" >&6; }
17713
17714 cat >>confdefs.h <<\_ACEOF
17715 #define HAVE_INIT_UTSNAME 1
17716 _ACEOF
17717
17718
17719 else
17720 $as_echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 { $as_echo "$as_me:$LINENO: result: no" >&5
17724 $as_echo "no" >&6; }
17725
17726
17727
17728 fi
17729
17730 rm -Rf build
17731
17732
17733
17734
17735 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17736 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
17737
17738
17739 cat confdefs.h - <<_ACEOF >conftest.c
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745
17746
17747 #include <linux/fdtable.h>
17748
17749 int
17750 main (void)
17751 {
17752
17753 return 0;
17754
17755 ;
17756 return 0;
17757 }
17758
17759 _ACEOF
17760
17761
17762 rm -Rf build && mkdir -p build
17763 echo "obj-m := conftest.o" >build/Makefile
17764 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775
17776
17777 cat >>confdefs.h <<\_ACEOF
17778 #define HAVE_FDTABLE_HEADER 1
17779 _ACEOF
17780
17781 { $as_echo "$as_me:$LINENO: result: yes" >&5
17782 $as_echo "yes" >&6; }
17783
17784
17785 else
17786 $as_echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 { $as_echo "$as_me:$LINENO: result: no" >&5
17790 $as_echo "no" >&6; }
17791
17792
17793
17794
17795 fi
17796
17797 rm -Rf build
17798
17799
17800
17801
17802
17803 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17804 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
17805
17806
17807 cat confdefs.h - <<_ACEOF >conftest.c
17808 /* confdefs.h. */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813
17814
17815 #include <linux/sched.h>
17816 #include <linux/file.h>
17817 #ifdef HAVE_FDTABLE_HEADER
17818 #include <linux/fdtable.h>
17819 #endif
17820
17821 int
17822 main (void)
17823 {
17824
17825 struct files_struct *files = current->files;
17826 struct fdtable *fdt __attribute__ ((unused));
17827 fdt = files_fdtable(files);
17828
17829 ;
17830 return 0;
17831 }
17832
17833 _ACEOF
17834
17835
17836 rm -Rf build && mkdir -p build
17837 echo "obj-m := conftest.o" >build/Makefile
17838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849
17850 { $as_echo "$as_me:$LINENO: result: yes" >&5
17851 $as_echo "yes" >&6; }
17852
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_FILES_FDTABLE 1
17855 _ACEOF
17856
17857
17858 else
17859 $as_echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 { $as_echo "$as_me:$LINENO: result: no" >&5
17863 $as_echo "no" >&6; }
17864
17865
17866
17867 fi
17868
17869 rm -Rf build
17870
17871
17872
17873
17874 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17875 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
17876
17877
17878 cat confdefs.h - <<_ACEOF >conftest.c
17879 /* confdefs.h. */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17884
17885
17886 #include <linux/uaccess.h>
17887
17888 int
17889 main (void)
17890 {
17891
17892 return 0;
17893
17894 ;
17895 return 0;
17896 }
17897
17898 _ACEOF
17899
17900
17901 rm -Rf build && mkdir -p build
17902 echo "obj-m := conftest.o" >build/Makefile
17903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914
17915
17916 cat >>confdefs.h <<\_ACEOF
17917 #define HAVE_UACCESS_HEADER 1
17918 _ACEOF
17919
17920 { $as_echo "$as_me:$LINENO: result: yes" >&5
17921 $as_echo "yes" >&6; }
17922
17923
17924 else
17925 $as_echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 { $as_echo "$as_me:$LINENO: result: no" >&5
17929 $as_echo "no" >&6; }
17930
17931
17932
17933
17934 fi
17935
17936 rm -Rf build
17937
17938
17939
17940
17941
17942 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17943 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
17944
17945
17946 cat confdefs.h - <<_ACEOF >conftest.c
17947 /* confdefs.h. */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952
17953
17954 #include <linux/slab.h>
17955
17956 int
17957 main (void)
17958 {
17959
17960 void *a __attribute__ ((unused));
17961 a = kmalloc_node(1, GFP_KERNEL, 0);
17962
17963 ;
17964 return 0;
17965 }
17966
17967 _ACEOF
17968
17969
17970 rm -Rf build && mkdir -p build
17971 echo "obj-m := conftest.o" >build/Makefile
17972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983
17984 { $as_echo "$as_me:$LINENO: result: yes" >&5
17985 $as_echo "yes" >&6; }
17986
17987 cat >>confdefs.h <<\_ACEOF
17988 #define HAVE_KMALLOC_NODE 1
17989 _ACEOF
17990
17991
17992 else
17993 $as_echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 { $as_echo "$as_me:$LINENO: result: no" >&5
17997 $as_echo "no" >&6; }
17998
17999
18000
18001 fi
18002
18003 rm -Rf build
18004
18005
18006
18007
18008 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
18009 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
18010 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
18011 $LINUX_OBJ/Module*.symvers 2>/dev/null
18012 rc=$?
18013 if test $rc -ne 0; then
18014 export=0
18015 for file in ; do
18016 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
18017 "$LINUX_OBJ/$file" 2>/dev/null
18018 rc=$?
18019 if test $rc -eq 0; then
18020 export=1
18021 break;
18022 fi
18023 done
18024 if test $export -eq 0; then
18025 { $as_echo "$as_me:$LINENO: result: no" >&5
18026 $as_echo "no" >&6; }
18027
18028 else
18029 { $as_echo "$as_me:$LINENO: result: yes" >&5
18030 $as_echo "yes" >&6; }
18031
18032 cat >>confdefs.h <<\_ACEOF
18033 #define HAVE_MONOTONIC_CLOCK 1
18034 _ACEOF
18035
18036 fi
18037 else
18038 { $as_echo "$as_me:$LINENO: result: yes" >&5
18039 $as_echo "yes" >&6; }
18040
18041 cat >>confdefs.h <<\_ACEOF
18042 #define HAVE_MONOTONIC_CLOCK 1
18043 _ACEOF
18044
18045 fi
18046
18047
18048
18049 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
18050 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18051
18052
18053 cat confdefs.h - <<_ACEOF >conftest.c
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059
18060
18061 #include <linux/fs.h>
18062 #include <linux/mutex.h>
18063
18064 int
18065 main (void)
18066 {
18067
18068 struct inode i;
18069 mutex_init(&i.i_mutex);
18070
18071 ;
18072 return 0;
18073 }
18074
18075 _ACEOF
18076
18077
18078 rm -Rf build && mkdir -p build
18079 echo "obj-m := conftest.o" >build/Makefile
18080 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
18084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091
18092 { $as_echo "$as_me:$LINENO: result: yes" >&5
18093 $as_echo "yes" >&6; }
18094
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_INODE_I_MUTEX 1
18097 _ACEOF
18098
18099
18100 else
18101 $as_echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18103
18104 { $as_echo "$as_me:$LINENO: result: no" >&5
18105 $as_echo "no" >&6; }
18106
18107
18108
18109 fi
18110
18111 rm -Rf build
18112
18113
18114
18115
18116 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
18117 $as_echo_n "checking whether struct mutex has owner... " >&6; }
18118
18119
18120 cat confdefs.h - <<_ACEOF >conftest.c
18121 /* confdefs.h. */
18122 _ACEOF
18123 cat confdefs.h >>conftest.$ac_ext
18124 cat >>conftest.$ac_ext <<_ACEOF
18125 /* end confdefs.h. */
18126
18127
18128 #include <linux/mutex.h>
18129
18130 int
18131 main (void)
18132 {
18133
18134 struct mutex mtx __attribute__ ((unused));
18135 mtx.owner = NULL;
18136
18137 ;
18138 return 0;
18139 }
18140
18141 _ACEOF
18142
18143
18144 rm -Rf build && mkdir -p build
18145 echo "obj-m := conftest.o" >build/Makefile
18146 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157
18158 { $as_echo "$as_me:$LINENO: result: yes" >&5
18159 $as_echo "yes" >&6; }
18160
18161 cat >>confdefs.h <<\_ACEOF
18162 #define HAVE_MUTEX_OWNER 1
18163 _ACEOF
18164
18165
18166 else
18167 $as_echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 { $as_echo "$as_me:$LINENO: result: no" >&5
18171 $as_echo "no" >&6; }
18172
18173
18174
18175 fi
18176
18177 rm -Rf build
18178
18179
18180
18181
18182 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18183 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18184 tmp_flags="$EXTRA_KCFLAGS"
18185 EXTRA_KCFLAGS="-Werror"
18186
18187
18188 cat confdefs.h - <<_ACEOF >conftest.c
18189 /* confdefs.h. */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194
18195
18196 #include <linux/mutex.h>
18197
18198 int
18199 main (void)
18200 {
18201
18202 struct mutex mtx __attribute__ ((unused));
18203 mtx.owner = current;
18204
18205 ;
18206 return 0;
18207 }
18208
18209 _ACEOF
18210
18211
18212 rm -Rf build && mkdir -p build
18213 echo "obj-m := conftest.o" >build/Makefile
18214 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225
18226 { $as_echo "$as_me:$LINENO: result: yes" >&5
18227 $as_echo "yes" >&6; }
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18231 _ACEOF
18232
18233
18234 else
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 { $as_echo "$as_me:$LINENO: result: no" >&5
18239 $as_echo "no" >&6; }
18240
18241
18242
18243 fi
18244
18245 rm -Rf build
18246
18247
18248 EXTRA_KCFLAGS="$tmp_flags"
18249
18250
18251 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18252 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18253
18254
18255 cat confdefs.h - <<_ACEOF >conftest.c
18256 /* confdefs.h. */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261
18262
18263 #include <linux/mutex.h>
18264
18265 int
18266 main (void)
18267 {
18268
18269 struct mutex mutex;
18270 mutex_init(&mutex);
18271 mutex_lock_nested(&mutex, 0);
18272
18273 ;
18274 return 0;
18275 }
18276
18277 _ACEOF
18278
18279
18280 rm -Rf build && mkdir -p build
18281 echo "obj-m := conftest.o" >build/Makefile
18282 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293
18294 { $as_echo "$as_me:$LINENO: result: yes" >&5
18295 $as_echo "yes" >&6; }
18296
18297 cat >>confdefs.h <<\_ACEOF
18298 #define HAVE_MUTEX_LOCK_NESTED 1
18299 _ACEOF
18300
18301
18302 else
18303 $as_echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 { $as_echo "$as_me:$LINENO: result: no" >&5
18307 $as_echo "no" >&6; }
18308
18309
18310
18311 fi
18312
18313 rm -Rf build
18314
18315
18316
18317
18318 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18319 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
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/smp.h>
18331
18332 int
18333 main (void)
18334 {
18335
18336 on_each_cpu(NULL, NULL, 0);
18337
18338 ;
18339 return 0;
18340 }
18341
18342 _ACEOF
18343
18344
18345 rm -Rf build && mkdir -p build
18346 echo "obj-m := conftest.o" >build/Makefile
18347 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358
18359 { $as_echo "$as_me:$LINENO: result: yes" >&5
18360 $as_echo "yes" >&6; }
18361
18362 cat >>confdefs.h <<\_ACEOF
18363 #define HAVE_3ARGS_ON_EACH_CPU 1
18364 _ACEOF
18365
18366
18367 else
18368 $as_echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 { $as_echo "$as_me:$LINENO: result: no" >&5
18372 $as_echo "no" >&6; }
18373
18374
18375
18376 fi
18377
18378 rm -Rf build
18379
18380
18381
18382
18383 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18384 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18385 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18386 $LINUX_OBJ/Module*.symvers 2>/dev/null
18387 rc=$?
18388 if test $rc -ne 0; then
18389 export=0
18390 for file in ; do
18391 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18392 "$LINUX_OBJ/$file" 2>/dev/null
18393 rc=$?
18394 if test $rc -eq 0; then
18395 export=1
18396 break;
18397 fi
18398 done
18399 if test $export -eq 0; then
18400 { $as_echo "$as_me:$LINENO: result: no" >&5
18401 $as_echo "no" >&6; }
18402
18403 else
18404 { $as_echo "$as_me:$LINENO: result: yes" >&5
18405 $as_echo "yes" >&6; }
18406
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18409 _ACEOF
18410
18411 fi
18412 else
18413 { $as_echo "$as_me:$LINENO: result: yes" >&5
18414 $as_echo "yes" >&6; }
18415
18416 cat >>confdefs.h <<\_ACEOF
18417 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18418 _ACEOF
18419
18420 fi
18421
18422
18423
18424 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18425 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18426 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18427 $LINUX_OBJ/Module*.symvers 2>/dev/null
18428 rc=$?
18429 if test $rc -ne 0; then
18430 export=0
18431 for file in ; do
18432 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18433 "$LINUX_OBJ/$file" 2>/dev/null
18434 rc=$?
18435 if test $rc -eq 0; then
18436 export=1
18437 break;
18438 fi
18439 done
18440 if test $export -eq 0; then
18441 { $as_echo "$as_me:$LINENO: result: no" >&5
18442 $as_echo "no" >&6; }
18443
18444 else
18445 { $as_echo "$as_me:$LINENO: result: yes" >&5
18446 $as_echo "yes" >&6; }
18447
18448 cat >>confdefs.h <<\_ACEOF
18449 #define HAVE_GET_VMALLOC_INFO 1
18450 _ACEOF
18451
18452 fi
18453 else
18454 { $as_echo "$as_me:$LINENO: result: yes" >&5
18455 $as_echo "yes" >&6; }
18456
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_GET_VMALLOC_INFO 1
18459 _ACEOF
18460
18461 fi
18462
18463
18464
18465 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18466 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18467 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18468 rc=$?
18469 if test $rc -eq 0; then
18470 { $as_echo "$as_me:$LINENO: result: yes" >&5
18471 $as_echo "yes" >&6; }
18472
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE_PGDAT_HELPERS 1
18475 _ACEOF
18476
18477 else
18478 { $as_echo "$as_me:$LINENO: result: no" >&5
18479 $as_echo "no" >&6; }
18480 fi
18481
18482
18483 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18484 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18485 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18486 $LINUX_OBJ/Module*.symvers 2>/dev/null
18487 rc=$?
18488 if test $rc -ne 0; then
18489 export=0
18490 for file in ; do
18491 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18492 "$LINUX_OBJ/$file" 2>/dev/null
18493 rc=$?
18494 if test $rc -eq 0; then
18495 export=1
18496 break;
18497 fi
18498 done
18499 if test $export -eq 0; then
18500 { $as_echo "$as_me:$LINENO: result: no" >&5
18501 $as_echo "no" >&6; }
18502
18503 else
18504 { $as_echo "$as_me:$LINENO: result: yes" >&5
18505 $as_echo "yes" >&6; }
18506
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_FIRST_ONLINE_PGDAT 1
18509 _ACEOF
18510
18511 fi
18512 else
18513 { $as_echo "$as_me:$LINENO: result: yes" >&5
18514 $as_echo "yes" >&6; }
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define HAVE_FIRST_ONLINE_PGDAT 1
18518 _ACEOF
18519
18520 fi
18521
18522
18523
18524 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18525 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18526 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18527 $LINUX_OBJ/Module*.symvers 2>/dev/null
18528 rc=$?
18529 if test $rc -ne 0; then
18530 export=0
18531 for file in ; do
18532 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18533 "$LINUX_OBJ/$file" 2>/dev/null
18534 rc=$?
18535 if test $rc -eq 0; then
18536 export=1
18537 break;
18538 fi
18539 done
18540 if test $export -eq 0; then
18541 { $as_echo "$as_me:$LINENO: result: no" >&5
18542 $as_echo "no" >&6; }
18543
18544 else
18545 { $as_echo "$as_me:$LINENO: result: yes" >&5
18546 $as_echo "yes" >&6; }
18547
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_NEXT_ONLINE_PGDAT 1
18550 _ACEOF
18551
18552 fi
18553 else
18554 { $as_echo "$as_me:$LINENO: result: yes" >&5
18555 $as_echo "yes" >&6; }
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_NEXT_ONLINE_PGDAT 1
18559 _ACEOF
18560
18561 fi
18562
18563
18564
18565 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18566 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18567 grep -q -E '[[:space:]]next_zone[[:space:]]' \
18568 $LINUX_OBJ/Module*.symvers 2>/dev/null
18569 rc=$?
18570 if test $rc -ne 0; then
18571 export=0
18572 for file in ; do
18573 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
18574 "$LINUX_OBJ/$file" 2>/dev/null
18575 rc=$?
18576 if test $rc -eq 0; then
18577 export=1
18578 break;
18579 fi
18580 done
18581 if test $export -eq 0; then
18582 { $as_echo "$as_me:$LINENO: result: no" >&5
18583 $as_echo "no" >&6; }
18584
18585 else
18586 { $as_echo "$as_me:$LINENO: result: yes" >&5
18587 $as_echo "yes" >&6; }
18588
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_NEXT_ZONE 1
18591 _ACEOF
18592
18593 fi
18594 else
18595 { $as_echo "$as_me:$LINENO: result: yes" >&5
18596 $as_echo "yes" >&6; }
18597
18598 cat >>confdefs.h <<\_ACEOF
18599 #define HAVE_NEXT_ZONE 1
18600 _ACEOF
18601
18602 fi
18603
18604
18605
18606 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18607 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18608 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
18609 $LINUX_OBJ/Module*.symvers 2>/dev/null
18610 rc=$?
18611 if test $rc -ne 0; then
18612 export=0
18613 for file in ; do
18614 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
18615 "$LINUX_OBJ/$file" 2>/dev/null
18616 rc=$?
18617 if test $rc -eq 0; then
18618 export=1
18619 break;
18620 fi
18621 done
18622 if test $export -eq 0; then
18623 { $as_echo "$as_me:$LINENO: result: no" >&5
18624 $as_echo "no" >&6; }
18625
18626 else
18627 { $as_echo "$as_me:$LINENO: result: yes" >&5
18628 $as_echo "yes" >&6; }
18629
18630 cat >>confdefs.h <<\_ACEOF
18631 #define HAVE_PGDAT_LIST 1
18632 _ACEOF
18633
18634 fi
18635 else
18636 { $as_echo "$as_me:$LINENO: result: yes" >&5
18637 $as_echo "yes" >&6; }
18638
18639 cat >>confdefs.h <<\_ACEOF
18640 #define HAVE_PGDAT_LIST 1
18641 _ACEOF
18642
18643 fi
18644
18645
18646
18647 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18648 $as_echo_n "checking whether global_page_state() is available... " >&6; }
18649
18650
18651 cat confdefs.h - <<_ACEOF >conftest.c
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657
18658
18659 #include <linux/mm.h>
18660
18661 int
18662 main (void)
18663 {
18664
18665 unsigned long state __attribute__ ((unused));
18666 state = global_page_state(0);
18667
18668 ;
18669 return 0;
18670 }
18671
18672 _ACEOF
18673
18674
18675 rm -Rf build && mkdir -p build
18676 echo "obj-m := conftest.o" >build/Makefile
18677 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18685 ac_status=$?
18686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18688
18689 { $as_echo "$as_me:$LINENO: result: yes" >&5
18690 $as_echo "yes" >&6; }
18691
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE_GLOBAL_PAGE_STATE 1
18694 _ACEOF
18695
18696
18697 else
18698 $as_echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 { $as_echo "$as_me:$LINENO: result: no" >&5
18702 $as_echo "no" >&6; }
18703
18704
18705
18706 fi
18707
18708 rm -Rf build
18709
18710
18711
18712
18713 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18714 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
18715
18716
18717 cat confdefs.h - <<_ACEOF >conftest.c
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723
18724
18725 #include <linux/mm.h>
18726
18727 int
18728 main (void)
18729 {
18730
18731 enum zone_stat_item zsi __attribute__ ((unused));
18732 zsi = NR_FREE_PAGES;
18733
18734 ;
18735 return 0;
18736 }
18737
18738 _ACEOF
18739
18740
18741 rm -Rf build && mkdir -p build
18742 echo "obj-m := conftest.o" >build/Makefile
18743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754
18755 { $as_echo "$as_me:$LINENO: result: yes" >&5
18756 $as_echo "yes" >&6; }
18757
18758 cat >>confdefs.h <<\_ACEOF
18759 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
18760 _ACEOF
18761
18762
18763 else
18764 $as_echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767 { $as_echo "$as_me:$LINENO: result: no" >&5
18768 $as_echo "no" >&6; }
18769
18770
18771
18772 fi
18773
18774 rm -Rf build
18775
18776
18777
18778
18779 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18780 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
18781
18782
18783 cat confdefs.h - <<_ACEOF >conftest.c
18784 /* confdefs.h. */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789
18790
18791 #include <linux/mm.h>
18792
18793 int
18794 main (void)
18795 {
18796
18797 enum zone_stat_item zsi __attribute__ ((unused));
18798 zsi = NR_INACTIVE;
18799
18800 ;
18801 return 0;
18802 }
18803
18804 _ACEOF
18805
18806
18807 rm -Rf build && mkdir -p build
18808 echo "obj-m := conftest.o" >build/Makefile
18809 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18817 ac_status=$?
18818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820
18821 { $as_echo "$as_me:$LINENO: result: yes" >&5
18822 $as_echo "yes" >&6; }
18823
18824 cat >>confdefs.h <<\_ACEOF
18825 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
18826 _ACEOF
18827
18828
18829 else
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 { $as_echo "$as_me:$LINENO: result: no" >&5
18834 $as_echo "no" >&6; }
18835
18836
18837
18838 fi
18839
18840 rm -Rf build
18841
18842
18843
18844 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18845 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18846
18847
18848 cat confdefs.h - <<_ACEOF >conftest.c
18849 /* confdefs.h. */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18854
18855
18856 #include <linux/mm.h>
18857
18858 int
18859 main (void)
18860 {
18861
18862 enum zone_stat_item zsi __attribute__ ((unused));
18863 zsi = NR_INACTIVE_ANON;
18864
18865 ;
18866 return 0;
18867 }
18868
18869 _ACEOF
18870
18871
18872 rm -Rf build && mkdir -p build
18873 echo "obj-m := conftest.o" >build/Makefile
18874 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885
18886 { $as_echo "$as_me:$LINENO: result: yes" >&5
18887 $as_echo "yes" >&6; }
18888
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
18891 _ACEOF
18892
18893
18894 else
18895 $as_echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18897
18898 { $as_echo "$as_me:$LINENO: result: no" >&5
18899 $as_echo "no" >&6; }
18900
18901
18902
18903 fi
18904
18905 rm -Rf build
18906
18907
18908
18909 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18910 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18911
18912
18913 cat confdefs.h - <<_ACEOF >conftest.c
18914 /* confdefs.h. */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18919
18920
18921 #include <linux/mm.h>
18922
18923 int
18924 main (void)
18925 {
18926
18927 enum zone_stat_item zsi __attribute__ ((unused));
18928 zsi = NR_INACTIVE_FILE;
18929
18930 ;
18931 return 0;
18932 }
18933
18934 _ACEOF
18935
18936
18937 rm -Rf build && mkdir -p build
18938 echo "obj-m := conftest.o" >build/Makefile
18939 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950
18951 { $as_echo "$as_me:$LINENO: result: yes" >&5
18952 $as_echo "yes" >&6; }
18953
18954 cat >>confdefs.h <<\_ACEOF
18955 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
18956 _ACEOF
18957
18958
18959 else
18960 $as_echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963 { $as_echo "$as_me:$LINENO: result: no" >&5
18964 $as_echo "no" >&6; }
18965
18966
18967
18968 fi
18969
18970 rm -Rf build
18971
18972
18973
18974
18975 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18976 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
18977
18978
18979 cat confdefs.h - <<_ACEOF >conftest.c
18980 /* confdefs.h. */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18985
18986
18987 #include <linux/mm.h>
18988
18989 int
18990 main (void)
18991 {
18992
18993 enum zone_stat_item zsi __attribute__ ((unused));
18994 zsi = NR_ACTIVE;
18995
18996 ;
18997 return 0;
18998 }
18999
19000 _ACEOF
19001
19002
19003 rm -Rf build && mkdir -p build
19004 echo "obj-m := conftest.o" >build/Makefile
19005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016
19017 { $as_echo "$as_me:$LINENO: result: yes" >&5
19018 $as_echo "yes" >&6; }
19019
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
19022 _ACEOF
19023
19024
19025 else
19026 $as_echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19028
19029 { $as_echo "$as_me:$LINENO: result: no" >&5
19030 $as_echo "no" >&6; }
19031
19032
19033
19034 fi
19035
19036 rm -Rf build
19037
19038
19039
19040 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
19041 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
19042
19043
19044 cat confdefs.h - <<_ACEOF >conftest.c
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050
19051
19052 #include <linux/mm.h>
19053
19054 int
19055 main (void)
19056 {
19057
19058 enum zone_stat_item zsi __attribute__ ((unused));
19059 zsi = NR_ACTIVE_ANON;
19060
19061 ;
19062 return 0;
19063 }
19064
19065 _ACEOF
19066
19067
19068 rm -Rf build && mkdir -p build
19069 echo "obj-m := conftest.o" >build/Makefile
19070 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081
19082 { $as_echo "$as_me:$LINENO: result: yes" >&5
19083 $as_echo "yes" >&6; }
19084
19085 cat >>confdefs.h <<\_ACEOF
19086 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
19087 _ACEOF
19088
19089
19090 else
19091 $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 { $as_echo "$as_me:$LINENO: result: no" >&5
19095 $as_echo "no" >&6; }
19096
19097
19098
19099 fi
19100
19101 rm -Rf build
19102
19103
19104
19105 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
19106 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
19107
19108
19109 cat confdefs.h - <<_ACEOF >conftest.c
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115
19116
19117 #include <linux/mm.h>
19118
19119 int
19120 main (void)
19121 {
19122
19123 enum zone_stat_item zsi __attribute__ ((unused));
19124 zsi = NR_ACTIVE_FILE;
19125
19126 ;
19127 return 0;
19128 }
19129
19130 _ACEOF
19131
19132
19133 rm -Rf build && mkdir -p build
19134 echo "obj-m := conftest.o" >build/Makefile
19135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146
19147 { $as_echo "$as_me:$LINENO: result: yes" >&5
19148 $as_echo "yes" >&6; }
19149
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
19152 _ACEOF
19153
19154
19155 else
19156 $as_echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 { $as_echo "$as_me:$LINENO: result: no" >&5
19160 $as_echo "no" >&6; }
19161
19162
19163
19164 fi
19165
19166 rm -Rf build
19167
19168
19169
19170
19171 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19172 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
19173
19174
19175 cat confdefs.h - <<_ACEOF >conftest.c
19176 /* confdefs.h. */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181
19182
19183
19184 int
19185 main (void)
19186 {
19187
19188 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19189 #error "global_page_state needs NR_FREE_PAGES"
19190 #endif
19191
19192 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19193 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19194 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19195 #error "global_page_state needs NR_ACTIVE*"
19196 #endif
19197
19198 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19199 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19200 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19201 #error "global_page_state needs NR_INACTIVE*"
19202 #endif
19203
19204 ;
19205 return 0;
19206 }
19207
19208 _ACEOF
19209
19210
19211 rm -Rf build && mkdir -p build
19212 echo "obj-m := conftest.o" >build/Makefile
19213 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224
19225 { $as_echo "$as_me:$LINENO: result: no" >&5
19226 $as_echo "no" >&6; }
19227
19228 else
19229 $as_echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 { $as_echo "$as_me:$LINENO: result: yes" >&5
19233 $as_echo "yes" >&6; }
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define NEED_GET_ZONE_COUNTS 1
19237 _ACEOF
19238
19239
19240 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19241 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19242 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19243 $LINUX_OBJ/Module*.symvers 2>/dev/null
19244 rc=$?
19245 if test $rc -ne 0; then
19246 export=0
19247 for file in ; do
19248 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19249 "$LINUX_OBJ/$file" 2>/dev/null
19250 rc=$?
19251 if test $rc -eq 0; then
19252 export=1
19253 break;
19254 fi
19255 done
19256 if test $export -eq 0; then
19257 { $as_echo "$as_me:$LINENO: result: no" >&5
19258 $as_echo "no" >&6; }
19259
19260 else
19261 { $as_echo "$as_me:$LINENO: result: yes" >&5
19262 $as_echo "yes" >&6; }
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_GET_ZONE_COUNTS 1
19266 _ACEOF
19267
19268 fi
19269 else
19270 { $as_echo "$as_me:$LINENO: result: yes" >&5
19271 $as_echo "yes" >&6; }
19272
19273 cat >>confdefs.h <<\_ACEOF
19274 #define HAVE_GET_ZONE_COUNTS 1
19275 _ACEOF
19276
19277 fi
19278
19279
19280
19281
19282 fi
19283
19284 rm -Rf build
19285
19286
19287
19288
19289 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19290 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19291 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19292 $LINUX_OBJ/Module*.symvers 2>/dev/null
19293 rc=$?
19294 if test $rc -ne 0; then
19295 export=0
19296 for file in ; do
19297 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19298 "$LINUX_OBJ/$file" 2>/dev/null
19299 rc=$?
19300 if test $rc -eq 0; then
19301 export=1
19302 break;
19303 fi
19304 done
19305 if test $export -eq 0; then
19306 { $as_echo "$as_me:$LINENO: result: no" >&5
19307 $as_echo "no" >&6; }
19308
19309 else
19310 { $as_echo "$as_me:$LINENO: result: yes" >&5
19311 $as_echo "yes" >&6; }
19312
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_USER_PATH_DIR 1
19315 _ACEOF
19316
19317 fi
19318 else
19319 { $as_echo "$as_me:$LINENO: result: yes" >&5
19320 $as_echo "yes" >&6; }
19321
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_USER_PATH_DIR 1
19324 _ACEOF
19325
19326 fi
19327
19328
19329
19330 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19331 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19332 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19333 $LINUX_OBJ/Module*.symvers 2>/dev/null
19334 rc=$?
19335 if test $rc -ne 0; then
19336 export=0
19337 for file in ; do
19338 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19339 "$LINUX_OBJ/$file" 2>/dev/null
19340 rc=$?
19341 if test $rc -eq 0; then
19342 export=1
19343 break;
19344 fi
19345 done
19346 if test $export -eq 0; then
19347 { $as_echo "$as_me:$LINENO: result: no" >&5
19348 $as_echo "no" >&6; }
19349
19350 else
19351 { $as_echo "$as_me:$LINENO: result: yes" >&5
19352 $as_echo "yes" >&6; }
19353
19354 cat >>confdefs.h <<\_ACEOF
19355 #define HAVE_SET_FS_PWD 1
19356 _ACEOF
19357
19358 fi
19359 else
19360 { $as_echo "$as_me:$LINENO: result: yes" >&5
19361 $as_echo "yes" >&6; }
19362
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_SET_FS_PWD 1
19365 _ACEOF
19366
19367 fi
19368
19369
19370 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19371 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
19372
19373
19374 cat confdefs.h - <<_ACEOF >conftest.c
19375 /* confdefs.h. */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380
19381
19382 #include <linux/sched.h>
19383 #include <linux/fs_struct.h>
19384
19385 int
19386 main (void)
19387 {
19388
19389 set_fs_pwd(NULL, NULL);
19390
19391 ;
19392 return 0;
19393 }
19394
19395 _ACEOF
19396
19397
19398 rm -Rf build && mkdir -p build
19399 echo "obj-m := conftest.o" >build/Makefile
19400 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411
19412 { $as_echo "$as_me:$LINENO: result: yes" >&5
19413 $as_echo "yes" >&6; }
19414
19415 cat >>confdefs.h <<\_ACEOF
19416 #define HAVE_2ARGS_SET_FS_PWD 1
19417 _ACEOF
19418
19419
19420 else
19421 $as_echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 { $as_echo "$as_me:$LINENO: result: no" >&5
19425 $as_echo "no" >&6; }
19426
19427
19428
19429 fi
19430
19431 rm -Rf build
19432
19433
19434
19435 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19436 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
19437
19438
19439 cat confdefs.h - <<_ACEOF >conftest.c
19440 /* confdefs.h. */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445
19446
19447 #include <linux/fs.h>
19448
19449 int
19450 main (void)
19451 {
19452
19453 vfs_unlink(NULL, NULL);
19454
19455 ;
19456 return 0;
19457 }
19458
19459 _ACEOF
19460
19461
19462 rm -Rf build && mkdir -p build
19463 echo "obj-m := conftest.o" >build/Makefile
19464 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19475
19476 { $as_echo "$as_me:$LINENO: result: yes" >&5
19477 $as_echo "yes" >&6; }
19478
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_2ARGS_VFS_UNLINK 1
19481 _ACEOF
19482
19483
19484 else
19485 $as_echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488 { $as_echo "$as_me:$LINENO: result: no" >&5
19489 $as_echo "no" >&6; }
19490
19491
19492
19493 fi
19494
19495 rm -Rf build
19496
19497
19498
19499 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19500 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
19501
19502
19503 cat confdefs.h - <<_ACEOF >conftest.c
19504 /* confdefs.h. */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509
19510
19511 #include <linux/fs.h>
19512
19513 int
19514 main (void)
19515 {
19516
19517 vfs_rename(NULL, NULL, NULL, NULL);
19518
19519 ;
19520 return 0;
19521 }
19522
19523 _ACEOF
19524
19525
19526 rm -Rf build && mkdir -p build
19527 echo "obj-m := conftest.o" >build/Makefile
19528 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539
19540 { $as_echo "$as_me:$LINENO: result: yes" >&5
19541 $as_echo "yes" >&6; }
19542
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_4ARGS_VFS_RENAME 1
19545 _ACEOF
19546
19547
19548 else
19549 $as_echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 { $as_echo "$as_me:$LINENO: result: no" >&5
19553 $as_echo "no" >&6; }
19554
19555
19556
19557 fi
19558
19559 rm -Rf build
19560
19561
19562
19563
19564 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19565 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19566 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19567 $LINUX_OBJ/Module*.symvers 2>/dev/null
19568 rc=$?
19569 if test $rc -ne 0; then
19570 export=0
19571 for file in fs/sync.c; do
19572 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19573 "$LINUX_OBJ/$file" 2>/dev/null
19574 rc=$?
19575 if test $rc -eq 0; then
19576 export=1
19577 break;
19578 fi
19579 done
19580 if test $export -eq 0; then
19581 { $as_echo "$as_me:$LINENO: result: no" >&5
19582 $as_echo "no" >&6; }
19583
19584 else
19585 { $as_echo "$as_me:$LINENO: result: yes" >&5
19586 $as_echo "yes" >&6; }
19587
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_VFS_FSYNC 1
19590 _ACEOF
19591
19592 fi
19593 else
19594 { $as_echo "$as_me:$LINENO: result: yes" >&5
19595 $as_echo "yes" >&6; }
19596
19597 cat >>confdefs.h <<\_ACEOF
19598 #define HAVE_VFS_FSYNC 1
19599 _ACEOF
19600
19601 fi
19602
19603
19604
19605 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19606 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19607
19608
19609 cat confdefs.h - <<_ACEOF >conftest.c
19610 /* confdefs.h. */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615
19616
19617 #include <linux/fs.h>
19618
19619 int
19620 main (void)
19621 {
19622
19623 vfs_fsync(NULL, 0);
19624
19625 ;
19626 return 0;
19627 }
19628
19629 _ACEOF
19630
19631
19632 rm -Rf build && mkdir -p build
19633 echo "obj-m := conftest.o" >build/Makefile
19634 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645
19646 { $as_echo "$as_me:$LINENO: result: yes" >&5
19647 $as_echo "yes" >&6; }
19648
19649 cat >>confdefs.h <<\_ACEOF
19650 #define HAVE_2ARGS_VFS_FSYNC 1
19651 _ACEOF
19652
19653
19654 else
19655 $as_echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 { $as_echo "$as_me:$LINENO: result: no" >&5
19659 $as_echo "no" >&6; }
19660
19661
19662
19663 fi
19664
19665 rm -Rf build
19666
19667
19668
19669
19670 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19671 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
19672 tmp_flags="$EXTRA_KCFLAGS"
19673 EXTRA_KCFLAGS="-Werror"
19674
19675
19676 cat confdefs.h - <<_ACEOF >conftest.c
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682
19683
19684 #include <linux/sched.h>
19685 #include <linux/fs_struct.h>
19686
19687 int
19688 main (void)
19689 {
19690
19691 struct fs_struct fs;
19692 spin_lock_init(&fs.lock);
19693
19694 ;
19695 return 0;
19696 }
19697
19698 _ACEOF
19699
19700
19701 rm -Rf build && mkdir -p build
19702 echo "obj-m := conftest.o" >build/Makefile
19703 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714
19715 { $as_echo "$as_me:$LINENO: result: yes" >&5
19716 $as_echo "yes" >&6; }
19717
19718 cat >>confdefs.h <<\_ACEOF
19719 #define HAVE_FS_STRUCT_SPINLOCK 1
19720 _ACEOF
19721
19722
19723 else
19724 $as_echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19726
19727 { $as_echo "$as_me:$LINENO: result: no" >&5
19728 $as_echo "no" >&6; }
19729
19730
19731
19732 fi
19733
19734 rm -Rf build
19735
19736
19737 EXTRA_KCFLAGS="$tmp_flags"
19738
19739
19740 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19741 $as_echo_n "checking whether struct cred exists... " >&6; }
19742
19743
19744 cat confdefs.h - <<_ACEOF >conftest.c
19745 /* confdefs.h. */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750
19751
19752 #include <linux/cred.h>
19753
19754 int
19755 main (void)
19756 {
19757
19758 struct cred *cr __attribute__ ((unused));
19759 cr = NULL;
19760
19761 ;
19762 return 0;
19763 }
19764
19765 _ACEOF
19766
19767
19768 rm -Rf build && mkdir -p build
19769 echo "obj-m := conftest.o" >build/Makefile
19770 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781
19782 { $as_echo "$as_me:$LINENO: result: yes" >&5
19783 $as_echo "yes" >&6; }
19784
19785 cat >>confdefs.h <<\_ACEOF
19786 #define HAVE_CRED_STRUCT 1
19787 _ACEOF
19788
19789
19790 else
19791 $as_echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794 { $as_echo "$as_me:$LINENO: result: no" >&5
19795 $as_echo "no" >&6; }
19796
19797
19798
19799 fi
19800
19801 rm -Rf build
19802
19803
19804
19805
19806 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19807 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19808 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19809 $LINUX_OBJ/Module*.symvers 2>/dev/null
19810 rc=$?
19811 if test $rc -ne 0; then
19812 export=0
19813 for file in ; do
19814 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19815 "$LINUX_OBJ/$file" 2>/dev/null
19816 rc=$?
19817 if test $rc -eq 0; then
19818 export=1
19819 break;
19820 fi
19821 done
19822 if test $export -eq 0; then
19823 { $as_echo "$as_me:$LINENO: result: no" >&5
19824 $as_echo "no" >&6; }
19825
19826 else
19827 { $as_echo "$as_me:$LINENO: result: yes" >&5
19828 $as_echo "yes" >&6; }
19829
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_GROUPS_SEARCH 1
19832 _ACEOF
19833
19834 fi
19835 else
19836 { $as_echo "$as_me:$LINENO: result: yes" >&5
19837 $as_echo "yes" >&6; }
19838
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_GROUPS_SEARCH 1
19841 _ACEOF
19842
19843 fi
19844
19845
19846
19847 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19848 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19849 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19850 $LINUX_OBJ/Module*.symvers 2>/dev/null
19851 rc=$?
19852 if test $rc -ne 0; then
19853 export=0
19854 for file in ; do
19855 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19856 "$LINUX_OBJ/$file" 2>/dev/null
19857 rc=$?
19858 if test $rc -eq 0; then
19859 export=1
19860 break;
19861 fi
19862 done
19863 if test $export -eq 0; then
19864 { $as_echo "$as_me:$LINENO: result: no" >&5
19865 $as_echo "no" >&6; }
19866
19867 else
19868 { $as_echo "$as_me:$LINENO: result: yes" >&5
19869 $as_echo "yes" >&6; }
19870
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_PUT_TASK_STRUCT 1
19873 _ACEOF
19874
19875 fi
19876 else
19877 { $as_echo "$as_me:$LINENO: result: yes" >&5
19878 $as_echo "yes" >&6; }
19879
19880 cat >>confdefs.h <<\_ACEOF
19881 #define HAVE_PUT_TASK_STRUCT 1
19882 _ACEOF
19883
19884 fi
19885
19886
19887
19888 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19889 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
19890
19891
19892 cat confdefs.h - <<_ACEOF >conftest.c
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898
19899
19900 #include <linux/sysctl.h>
19901
19902 int
19903 main (void)
19904 {
19905
19906 proc_dostring(NULL, 0, NULL, NULL, NULL);
19907
19908 ;
19909 return 0;
19910 }
19911
19912 _ACEOF
19913
19914
19915 rm -Rf build && mkdir -p build
19916 echo "obj-m := conftest.o" >build/Makefile
19917 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928
19929 { $as_echo "$as_me:$LINENO: result: yes" >&5
19930 $as_echo "yes" >&6; }
19931
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE_5ARGS_PROC_HANDLER 1
19934 _ACEOF
19935
19936
19937 else
19938 $as_echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 { $as_echo "$as_me:$LINENO: result: no" >&5
19942 $as_echo "no" >&6; }
19943
19944
19945
19946 fi
19947
19948 rm -Rf build
19949
19950
19951
19952
19953 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19954 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19955 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19956 $LINUX_OBJ/Module*.symvers 2>/dev/null
19957 rc=$?
19958 if test $rc -ne 0; then
19959 export=0
19960 for file in ; do
19961 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19962 "$LINUX_OBJ/$file" 2>/dev/null
19963 rc=$?
19964 if test $rc -eq 0; then
19965 export=1
19966 break;
19967 fi
19968 done
19969 if test $export -eq 0; then
19970 { $as_echo "$as_me:$LINENO: result: no" >&5
19971 $as_echo "no" >&6; }
19972
19973 else
19974 { $as_echo "$as_me:$LINENO: result: yes" >&5
19975 $as_echo "yes" >&6; }
19976
19977 cat >>confdefs.h <<\_ACEOF
19978 #define HAVE_KVASPRINTF 1
19979 _ACEOF
19980
19981 fi
19982 else
19983 { $as_echo "$as_me:$LINENO: result: yes" >&5
19984 $as_echo "yes" >&6; }
19985
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_KVASPRINTF 1
19988 _ACEOF
19989
19990 fi
19991
19992
19993
19994 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19995 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19996 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19997 $LINUX_OBJ/Module*.symvers 2>/dev/null
19998 rc=$?
19999 if test $rc -ne 0; then
20000 export=0
20001 for file in lib/rwsem-spinlock.c; do
20002 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
20003 "$LINUX_OBJ/$file" 2>/dev/null
20004 rc=$?
20005 if test $rc -eq 0; then
20006 export=1
20007 break;
20008 fi
20009 done
20010 if test $export -eq 0; then
20011 { $as_echo "$as_me:$LINENO: result: no" >&5
20012 $as_echo "no" >&6; }
20013
20014 else
20015 { $as_echo "$as_me:$LINENO: result: yes" >&5
20016 $as_echo "yes" >&6; }
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20020 _ACEOF
20021
20022 fi
20023 else
20024 { $as_echo "$as_me:$LINENO: result: yes" >&5
20025 $as_echo "yes" >&6; }
20026
20027 cat >>confdefs.h <<\_ACEOF
20028 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20029 _ACEOF
20030
20031 fi
20032
20033
20034
20035 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
20036 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
20037 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
20038 $LINUX_OBJ/Module*.symvers 2>/dev/null
20039 rc=$?
20040 if test $rc -ne 0; then
20041 export=0
20042 for file in ; do
20043 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
20044 "$LINUX_OBJ/$file" 2>/dev/null
20045 rc=$?
20046 if test $rc -eq 0; then
20047 export=1
20048 break;
20049 fi
20050 done
20051 if test $export -eq 0; then
20052 { $as_echo "$as_me:$LINENO: result: no" >&5
20053 $as_echo "no" >&6; }
20054
20055 else
20056 { $as_echo "$as_me:$LINENO: result: yes" >&5
20057 $as_echo "yes" >&6; }
20058
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_INVALIDATE_INODES 1
20061 _ACEOF
20062
20063 fi
20064 else
20065 { $as_echo "$as_me:$LINENO: result: yes" >&5
20066 $as_echo "yes" >&6; }
20067
20068 cat >>confdefs.h <<\_ACEOF
20069 #define HAVE_INVALIDATE_INODES 1
20070 _ACEOF
20071
20072 fi
20073
20074 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
20075 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
20076 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
20077 $LINUX_OBJ/Module*.symvers 2>/dev/null
20078 rc=$?
20079 if test $rc -ne 0; then
20080 export=0
20081 for file in ; do
20082 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
20083 "$LINUX_OBJ/$file" 2>/dev/null
20084 rc=$?
20085 if test $rc -eq 0; then
20086 export=1
20087 break;
20088 fi
20089 done
20090 if test $export -eq 0; then
20091 { $as_echo "$as_me:$LINENO: result: no" >&5
20092 $as_echo "no" >&6; }
20093
20094 else
20095 { $as_echo "$as_me:$LINENO: result: yes" >&5
20096 $as_echo "yes" >&6; }
20097
20098 cat >>confdefs.h <<\_ACEOF
20099 #define HAVE_INVALIDATE_INODES_CHECK 1
20100 _ACEOF
20101
20102 fi
20103 else
20104 { $as_echo "$as_me:$LINENO: result: yes" >&5
20105 $as_echo "yes" >&6; }
20106
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_INVALIDATE_INODES_CHECK 1
20109 _ACEOF
20110
20111 fi
20112
20113
20114 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
20115 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
20116
20117
20118 cat confdefs.h - <<_ACEOF >conftest.c
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124
20125
20126 #include <linux/fs.h>
20127
20128 int
20129 main (void)
20130 {
20131
20132 return __invalidate_device(NULL, 0);
20133
20134 ;
20135 return 0;
20136 }
20137
20138 _ACEOF
20139
20140
20141 rm -Rf build && mkdir -p build
20142 echo "obj-m := conftest.o" >build/Makefile
20143 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154
20155 { $as_echo "$as_me:$LINENO: result: yes" >&5
20156 $as_echo "yes" >&6; }
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_2ARGS_INVALIDATE_INODES 1
20160 _ACEOF
20161
20162
20163 else
20164 $as_echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 { $as_echo "$as_me:$LINENO: result: no" >&5
20168 $as_echo "no" >&6; }
20169
20170
20171
20172 fi
20173
20174 rm -Rf build
20175
20176
20177
20178
20179 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
20180 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
20181 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
20182 $LINUX_OBJ/Module*.symvers 2>/dev/null
20183 rc=$?
20184 if test $rc -ne 0; then
20185 export=0
20186 for file in fs/dcache.c; do
20187 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
20188 "$LINUX_OBJ/$file" 2>/dev/null
20189 rc=$?
20190 if test $rc -eq 0; then
20191 export=1
20192 break;
20193 fi
20194 done
20195 if test $export -eq 0; then
20196 { $as_echo "$as_me:$LINENO: result: no" >&5
20197 $as_echo "no" >&6; }
20198
20199 else
20200 { $as_echo "$as_me:$LINENO: result: yes" >&5
20201 $as_echo "yes" >&6; }
20202
20203 cat >>confdefs.h <<\_ACEOF
20204 #define HAVE_SHRINK_DCACHE_MEMORY 1
20205 _ACEOF
20206
20207 fi
20208 else
20209 { $as_echo "$as_me:$LINENO: result: yes" >&5
20210 $as_echo "yes" >&6; }
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_SHRINK_DCACHE_MEMORY 1
20214 _ACEOF
20215
20216 fi
20217
20218
20219
20220 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20221 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20222 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20223 $LINUX_OBJ/Module*.symvers 2>/dev/null
20224 rc=$?
20225 if test $rc -ne 0; then
20226 export=0
20227 for file in fs/inode.c; do
20228 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20229 "$LINUX_OBJ/$file" 2>/dev/null
20230 rc=$?
20231 if test $rc -eq 0; then
20232 export=1
20233 break;
20234 fi
20235 done
20236 if test $export -eq 0; then
20237 { $as_echo "$as_me:$LINENO: result: no" >&5
20238 $as_echo "no" >&6; }
20239
20240 else
20241 { $as_echo "$as_me:$LINENO: result: yes" >&5
20242 $as_echo "yes" >&6; }
20243
20244 cat >>confdefs.h <<\_ACEOF
20245 #define HAVE_SHRINK_ICACHE_MEMORY 1
20246 _ACEOF
20247
20248 fi
20249 else
20250 { $as_echo "$as_me:$LINENO: result: yes" >&5
20251 $as_echo "yes" >&6; }
20252
20253 cat >>confdefs.h <<\_ACEOF
20254 #define HAVE_SHRINK_ICACHE_MEMORY 1
20255 _ACEOF
20256
20257 fi
20258
20259
20260
20261
20262 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20263 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20264 header=0
20265 for file in include/linux/namei.h; do
20266 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20267 rc=$?
20268 if test $rc -eq 0; then
20269 header=1
20270 break;
20271 fi
20272 done
20273 if test $header -eq 0; then
20274 { $as_echo "$as_me:$LINENO: result: no" >&5
20275 $as_echo "no" >&6; }
20276
20277 else
20278 { $as_echo "$as_me:$LINENO: result: yes" >&5
20279 $as_echo "yes" >&6; }
20280
20281 cat >>confdefs.h <<\_ACEOF
20282 #define HAVE_KERN_PATH_PARENT_HEADER 1
20283 _ACEOF
20284
20285 fi
20286
20287
20288
20289 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20290 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20291 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20292 $LINUX_OBJ/Module*.symvers 2>/dev/null
20293 rc=$?
20294 if test $rc -ne 0; then
20295 export=0
20296 for file in fs/namei.c; do
20297 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20298 "$LINUX_OBJ/$file" 2>/dev/null
20299 rc=$?
20300 if test $rc -eq 0; then
20301 export=1
20302 break;
20303 fi
20304 done
20305 if test $export -eq 0; then
20306 { $as_echo "$as_me:$LINENO: result: no" >&5
20307 $as_echo "no" >&6; }
20308
20309 else
20310 { $as_echo "$as_me:$LINENO: result: yes" >&5
20311 $as_echo "yes" >&6; }
20312
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20315 _ACEOF
20316
20317 fi
20318 else
20319 { $as_echo "$as_me:$LINENO: result: yes" >&5
20320 $as_echo "yes" >&6; }
20321
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20324 _ACEOF
20325
20326 fi
20327
20328
20329 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20330 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20331
20332
20333 cat confdefs.h - <<_ACEOF >conftest.c
20334 /* confdefs.h. */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339
20340
20341 #include <linux/zlib.h>
20342
20343 int
20344 main (void)
20345 {
20346
20347 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20348
20349 ;
20350 return 0;
20351 }
20352
20353 _ACEOF
20354
20355
20356 rm -Rf build && mkdir -p build
20357 echo "obj-m := conftest.o" >build/Makefile
20358 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369
20370 { $as_echo "$as_me:$LINENO: result: yes" >&5
20371 $as_echo "yes" >&6; }
20372
20373 cat >>confdefs.h <<\_ACEOF
20374 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20375 _ACEOF
20376
20377
20378 else
20379 $as_echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 { $as_echo "$as_me:$LINENO: result: no" >&5
20383 $as_echo "no" >&6; }
20384
20385
20386
20387 fi
20388
20389 rm -Rf build
20390
20391
20392
20393
20394 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20395 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
20396
20397
20398 cat confdefs.h - <<_ACEOF >conftest.c
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404
20405
20406 #include <linux/mm.h>
20407
20408 int
20409 main (void)
20410 {
20411
20412 struct shrink_control sc __attribute__ ((unused));
20413
20414 sc.nr_to_scan = 0;
20415 sc.gfp_mask = GFP_KERNEL;
20416
20417 ;
20418 return 0;
20419 }
20420
20421 _ACEOF
20422
20423
20424 rm -Rf build && mkdir -p build
20425 echo "obj-m := conftest.o" >build/Makefile
20426 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437
20438 { $as_echo "$as_me:$LINENO: result: yes" >&5
20439 $as_echo "yes" >&6; }
20440
20441 cat >>confdefs.h <<\_ACEOF
20442 #define HAVE_SHRINK_CONTROL_STRUCT 1
20443 _ACEOF
20444
20445
20446 else
20447 $as_echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 { $as_echo "$as_me:$LINENO: result: no" >&5
20451 $as_echo "no" >&6; }
20452
20453
20454
20455 fi
20456
20457 rm -Rf build
20458
20459
20460
20461
20462 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
20463 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
20464 tmp_flags="$EXTRA_KCFLAGS"
20465 EXTRA_KCFLAGS="-Werror"
20466
20467
20468 cat confdefs.h - <<_ACEOF >conftest.c
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474
20475
20476 #include <linux/rwsem.h>
20477
20478 int
20479 main (void)
20480 {
20481
20482 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
20483 raw_spinlock_t dummy_lock __attribute__ ((unused));
20484 dummy_semaphore.wait_lock = dummy_lock;
20485
20486 ;
20487 return 0;
20488 }
20489
20490 _ACEOF
20491
20492
20493 rm -Rf build && mkdir -p build
20494 echo "obj-m := conftest.o" >build/Makefile
20495 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506
20507 { $as_echo "$as_me:$LINENO: result: yes" >&5
20508 $as_echo "yes" >&6; }
20509
20510 cat >>confdefs.h <<\_ACEOF
20511 #define RWSEM_SPINLOCK_IS_RAW 1
20512 _ACEOF
20513
20514
20515 else
20516 $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 { $as_echo "$as_me:$LINENO: result: no" >&5
20520 $as_echo "no" >&6; }
20521
20522
20523
20524 fi
20525
20526 rm -Rf build
20527
20528
20529 EXTRA_KCFLAGS="$tmp_flags"
20530
20531
20532 ;;
20533 srpm) ;;
20534 *)
20535 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20536 $as_echo "Error!" >&6; }
20537 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20538 user kernel|user|all|srpm" >&5
20539 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20540 user kernel|user|all|srpm" >&2;}
20541 { (exit 1); exit 1; }; } ;;
20542 esac
20543
20544 if test "$SPL_CONFIG" = user ||
20545 test "$SPL_CONFIG" = all; then
20546 CONFIG_USER_TRUE=
20547 CONFIG_USER_FALSE='#'
20548 else
20549 CONFIG_USER_TRUE='#'
20550 CONFIG_USER_FALSE=
20551 fi
20552
20553 if test "$SPL_CONFIG" = kernel ||
20554 test "$SPL_CONFIG" = all; then
20555 CONFIG_KERNEL_TRUE=
20556 CONFIG_KERNEL_FALSE='#'
20557 else
20558 CONFIG_KERNEL_TRUE='#'
20559 CONFIG_KERNEL_FALSE=
20560 fi
20561
20562
20563
20564 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec PKGBUILD-spl PKGBUILD-spl-modules"
20565
20566
20567 cat >confcache <<\_ACEOF
20568 # This file is a shell script that caches the results of configure
20569 # tests run on this system so they can be shared between configure
20570 # scripts and configure runs, see configure's option --config-cache.
20571 # It is not useful on other systems. If it contains results you don't
20572 # want to keep, you may remove or edit it.
20573 #
20574 # config.status only pays attention to the cache file if you give it
20575 # the --recheck option to rerun configure.
20576 #
20577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20579 # following values.
20580
20581 _ACEOF
20582
20583 # The following way of writing the cache mishandles newlines in values,
20584 # but we know of no workaround that is simple, portable, and efficient.
20585 # So, we kill variables containing newlines.
20586 # Ultrix sh set writes to stderr and can't be redirected directly,
20587 # and sets the high bit in the cache file unless we assign to the vars.
20588 (
20589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20590 eval ac_val=\$$ac_var
20591 case $ac_val in #(
20592 *${as_nl}*)
20593 case $ac_var in #(
20594 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20596 esac
20597 case $ac_var in #(
20598 _ | IFS | as_nl) ;; #(
20599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20600 *) $as_unset $ac_var ;;
20601 esac ;;
20602 esac
20603 done
20604
20605 (set) 2>&1 |
20606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20607 *${as_nl}ac_space=\ *)
20608 # `set' does not quote correctly, so add quotes (double-quote
20609 # substitution turns \\\\ into \\, and sed turns \\ into \).
20610 sed -n \
20611 "s/'/'\\\\''/g;
20612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20613 ;; #(
20614 *)
20615 # `set' quotes correctly as required by POSIX, so do not add quotes.
20616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20617 ;;
20618 esac |
20619 sort
20620 ) |
20621 sed '
20622 /^ac_cv_env_/b end
20623 t clear
20624 :clear
20625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20626 t end
20627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20628 :end' >>confcache
20629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20630 if test -w "$cache_file"; then
20631 test "x$cache_file" != "x/dev/null" &&
20632 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20633 $as_echo "$as_me: updating cache $cache_file" >&6;}
20634 cat confcache >$cache_file
20635 else
20636 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20637 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20638 fi
20639 fi
20640 rm -f confcache
20641
20642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20643 # Let make expand exec_prefix.
20644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20645
20646 DEFS=-DHAVE_CONFIG_H
20647
20648 ac_libobjs=
20649 ac_ltlibobjs=
20650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20651 # 1. Remove the extension, and $U if already installed.
20652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20655 # will be set to the directory where LIBOBJS objects are built.
20656 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20657 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20658 done
20659 LIBOBJS=$ac_libobjs
20660
20661 LTLIBOBJS=$ac_ltlibobjs
20662
20663
20664 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20665 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20666 Usually this means the macro was only invoked conditionally." >&5
20667 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20668 Usually this means the macro was only invoked conditionally." >&2;}
20669 { (exit 1); exit 1; }; }
20670 fi
20671 if test -n "$EXEEXT"; then
20672 am__EXEEXT_TRUE=
20673 am__EXEEXT_FALSE='#'
20674 else
20675 am__EXEEXT_TRUE='#'
20676 am__EXEEXT_FALSE=
20677 fi
20678
20679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20680 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20681 Usually this means the macro was only invoked conditionally." >&5
20682 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20683 Usually this means the macro was only invoked conditionally." >&2;}
20684 { (exit 1); exit 1; }; }
20685 fi
20686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20687 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20688 Usually this means the macro was only invoked conditionally." >&5
20689 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20690 Usually this means the macro was only invoked conditionally." >&2;}
20691 { (exit 1); exit 1; }; }
20692 fi
20693 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20694 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20695 Usually this means the macro was only invoked conditionally." >&5
20696 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20697 Usually this means the macro was only invoked conditionally." >&2;}
20698 { (exit 1); exit 1; }; }
20699 fi
20700 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20701 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20702 Usually this means the macro was only invoked conditionally." >&5
20703 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20704 Usually this means the macro was only invoked conditionally." >&2;}
20705 { (exit 1); exit 1; }; }
20706 fi
20707
20708 : ${CONFIG_STATUS=./config.status}
20709 ac_write_fail=0
20710 ac_clean_files_save=$ac_clean_files
20711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20715 #! $SHELL
20716 # Generated by $as_me.
20717 # Run this file to recreate the current configuration.
20718 # Compiler output produced by configure, useful for debugging
20719 # configure, is in config.log if it exists.
20720
20721 debug=false
20722 ac_cs_recheck=false
20723 ac_cs_silent=false
20724 SHELL=\${CONFIG_SHELL-$SHELL}
20725 _ACEOF
20726
20727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20728 ## --------------------- ##
20729 ## M4sh Initialization. ##
20730 ## --------------------- ##
20731
20732 # Be more Bourne compatible
20733 DUALCASE=1; export DUALCASE # for MKS sh
20734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20735 emulate sh
20736 NULLCMD=:
20737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20738 # is contrary to our usage. Disable this feature.
20739 alias -g '${1+"$@"}'='"$@"'
20740 setopt NO_GLOB_SUBST
20741 else
20742 case `(set -o) 2>/dev/null` in
20743 *posix*) set -o posix ;;
20744 esac
20745
20746 fi
20747
20748
20749
20750
20751 # PATH needs CR
20752 # Avoid depending upon Character Ranges.
20753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20756 as_cr_digits='0123456789'
20757 as_cr_alnum=$as_cr_Letters$as_cr_digits
20758
20759 as_nl='
20760 '
20761 export as_nl
20762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20767 as_echo='printf %s\n'
20768 as_echo_n='printf %s'
20769 else
20770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20772 as_echo_n='/usr/ucb/echo -n'
20773 else
20774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20775 as_echo_n_body='eval
20776 arg=$1;
20777 case $arg in
20778 *"$as_nl"*)
20779 expr "X$arg" : "X\\(.*\\)$as_nl";
20780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20781 esac;
20782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20783 '
20784 export as_echo_n_body
20785 as_echo_n='sh -c $as_echo_n_body as_echo'
20786 fi
20787 export as_echo_body
20788 as_echo='sh -c $as_echo_body as_echo'
20789 fi
20790
20791 # The user is always right.
20792 if test "${PATH_SEPARATOR+set}" != set; then
20793 PATH_SEPARATOR=:
20794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20796 PATH_SEPARATOR=';'
20797 }
20798 fi
20799
20800 # Support unset when possible.
20801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20802 as_unset=unset
20803 else
20804 as_unset=false
20805 fi
20806
20807
20808 # IFS
20809 # We need space, tab and new line, in precisely that order. Quoting is
20810 # there to prevent editors from complaining about space-tab.
20811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20812 # splitting by setting IFS to empty value.)
20813 IFS=" "" $as_nl"
20814
20815 # Find who we are. Look in the path if we contain no directory separator.
20816 case $0 in
20817 *[\\/]* ) as_myself=$0 ;;
20818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20819 for as_dir in $PATH
20820 do
20821 IFS=$as_save_IFS
20822 test -z "$as_dir" && as_dir=.
20823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20824 done
20825 IFS=$as_save_IFS
20826
20827 ;;
20828 esac
20829 # We did not find ourselves, most probably we were run as `sh COMMAND'
20830 # in which case we are not to be found in the path.
20831 if test "x$as_myself" = x; then
20832 as_myself=$0
20833 fi
20834 if test ! -f "$as_myself"; then
20835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20836 { (exit 1); exit 1; }
20837 fi
20838
20839 # Work around bugs in pre-3.0 UWIN ksh.
20840 for as_var in ENV MAIL MAILPATH
20841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20842 done
20843 PS1='$ '
20844 PS2='> '
20845 PS4='+ '
20846
20847 # NLS nuisances.
20848 LC_ALL=C
20849 export LC_ALL
20850 LANGUAGE=C
20851 export LANGUAGE
20852
20853 # Required to use basename.
20854 if expr a : '\(a\)' >/dev/null 2>&1 &&
20855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20856 as_expr=expr
20857 else
20858 as_expr=false
20859 fi
20860
20861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20862 as_basename=basename
20863 else
20864 as_basename=false
20865 fi
20866
20867
20868 # Name of the executable.
20869 as_me=`$as_basename -- "$0" ||
20870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20871 X"$0" : 'X\(//\)$' \| \
20872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20873 $as_echo X/"$0" |
20874 sed '/^.*\/\([^/][^/]*\)\/*$/{
20875 s//\1/
20876 q
20877 }
20878 /^X\/\(\/\/\)$/{
20879 s//\1/
20880 q
20881 }
20882 /^X\/\(\/\).*/{
20883 s//\1/
20884 q
20885 }
20886 s/.*/./; q'`
20887
20888 # CDPATH.
20889 $as_unset CDPATH
20890
20891
20892
20893 as_lineno_1=$LINENO
20894 as_lineno_2=$LINENO
20895 test "x$as_lineno_1" != "x$as_lineno_2" &&
20896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20897
20898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20899 # uniformly replaced by the line number. The first 'sed' inserts a
20900 # line-number line after each line using $LINENO; the second 'sed'
20901 # does the real work. The second script uses 'N' to pair each
20902 # line-number line with the line containing $LINENO, and appends
20903 # trailing '-' during substitution so that $LINENO is not a special
20904 # case at line end.
20905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20906 # scripts with optimization help from Paolo Bonzini. Blame Lee
20907 # E. McMahon (1931-1989) for sed's syntax. :-)
20908 sed -n '
20909 p
20910 /[$]LINENO/=
20911 ' <$as_myself |
20912 sed '
20913 s/[$]LINENO.*/&-/
20914 t lineno
20915 b
20916 :lineno
20917 N
20918 :loop
20919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20920 t loop
20921 s/-\n.*//
20922 ' >$as_me.lineno &&
20923 chmod +x "$as_me.lineno" ||
20924 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20925 { (exit 1); exit 1; }; }
20926
20927 # Don't try to exec as it changes $[0], causing all sort of problems
20928 # (the dirname of $[0] is not the place where we might find the
20929 # original and so on. Autoconf is especially sensitive to this).
20930 . "./$as_me.lineno"
20931 # Exit status is that of the last command.
20932 exit
20933 }
20934
20935
20936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20937 as_dirname=dirname
20938 else
20939 as_dirname=false
20940 fi
20941
20942 ECHO_C= ECHO_N= ECHO_T=
20943 case `echo -n x` in
20944 -n*)
20945 case `echo 'x\c'` in
20946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20947 *) ECHO_C='\c';;
20948 esac;;
20949 *)
20950 ECHO_N='-n';;
20951 esac
20952 if expr a : '\(a\)' >/dev/null 2>&1 &&
20953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20954 as_expr=expr
20955 else
20956 as_expr=false
20957 fi
20958
20959 rm -f conf$$ conf$$.exe conf$$.file
20960 if test -d conf$$.dir; then
20961 rm -f conf$$.dir/conf$$.file
20962 else
20963 rm -f conf$$.dir
20964 mkdir conf$$.dir 2>/dev/null
20965 fi
20966 if (echo >conf$$.file) 2>/dev/null; then
20967 if ln -s conf$$.file conf$$ 2>/dev/null; then
20968 as_ln_s='ln -s'
20969 # ... but there are two gotchas:
20970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20972 # In both cases, we have to default to `cp -p'.
20973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20974 as_ln_s='cp -p'
20975 elif ln conf$$.file conf$$ 2>/dev/null; then
20976 as_ln_s=ln
20977 else
20978 as_ln_s='cp -p'
20979 fi
20980 else
20981 as_ln_s='cp -p'
20982 fi
20983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20984 rmdir conf$$.dir 2>/dev/null
20985
20986 if mkdir -p . 2>/dev/null; then
20987 as_mkdir_p=:
20988 else
20989 test -d ./-p && rmdir ./-p
20990 as_mkdir_p=false
20991 fi
20992
20993 if test -x / >/dev/null 2>&1; then
20994 as_test_x='test -x'
20995 else
20996 if ls -dL / >/dev/null 2>&1; then
20997 as_ls_L_option=L
20998 else
20999 as_ls_L_option=
21000 fi
21001 as_test_x='
21002 eval sh -c '\''
21003 if test -d "$1"; then
21004 test -d "$1/.";
21005 else
21006 case $1 in
21007 -*)set "./$1";;
21008 esac;
21009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21010 ???[sx]*):;;*)false;;esac;fi
21011 '\'' sh
21012 '
21013 fi
21014 as_executable_p=$as_test_x
21015
21016 # Sed expression to map a string onto a valid CPP name.
21017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21018
21019 # Sed expression to map a string onto a valid variable name.
21020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21021
21022
21023 exec 6>&1
21024
21025 # Save the log message, to keep $[0] and so on meaningful, and to
21026 # report actual input values of CONFIG_FILES etc. instead of their
21027 # values after options handling.
21028 ac_log="
21029 This file was extended by $as_me, which was
21030 generated by GNU Autoconf 2.63. Invocation command line was
21031
21032 CONFIG_FILES = $CONFIG_FILES
21033 CONFIG_HEADERS = $CONFIG_HEADERS
21034 CONFIG_LINKS = $CONFIG_LINKS
21035 CONFIG_COMMANDS = $CONFIG_COMMANDS
21036 $ $0 $@
21037
21038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21039 "
21040
21041 _ACEOF
21042
21043 case $ac_config_files in *"
21044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21045 esac
21046
21047 case $ac_config_headers in *"
21048 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21049 esac
21050
21051
21052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21053 # Files that config.status was made for.
21054 config_files="$ac_config_files"
21055 config_headers="$ac_config_headers"
21056 config_commands="$ac_config_commands"
21057
21058 _ACEOF
21059
21060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21061 ac_cs_usage="\
21062 \`$as_me' instantiates files from templates according to the
21063 current configuration.
21064
21065 Usage: $0 [OPTION]... [FILE]...
21066
21067 -h, --help print this help, then exit
21068 -V, --version print version number and configuration settings, then exit
21069 -q, --quiet, --silent
21070 do not print progress messages
21071 -d, --debug don't remove temporary files
21072 --recheck update $as_me by reconfiguring in the same conditions
21073 --file=FILE[:TEMPLATE]
21074 instantiate the configuration file FILE
21075 --header=FILE[:TEMPLATE]
21076 instantiate the configuration header FILE
21077
21078 Configuration files:
21079 $config_files
21080
21081 Configuration headers:
21082 $config_headers
21083
21084 Configuration commands:
21085 $config_commands
21086
21087 Report bugs to <bug-autoconf@gnu.org>."
21088
21089 _ACEOF
21090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21091 ac_cs_version="\\
21092 config.status
21093 configured by $0, generated by GNU Autoconf 2.63,
21094 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21095
21096 Copyright (C) 2008 Free Software Foundation, Inc.
21097 This config.status script is free software; the Free Software Foundation
21098 gives unlimited permission to copy, distribute and modify it."
21099
21100 ac_pwd='$ac_pwd'
21101 srcdir='$srcdir'
21102 INSTALL='$INSTALL'
21103 MKDIR_P='$MKDIR_P'
21104 AWK='$AWK'
21105 test -n "\$AWK" || AWK=awk
21106 _ACEOF
21107
21108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21109 # The default lists apply if the user does not specify any file.
21110 ac_need_defaults=:
21111 while test $# != 0
21112 do
21113 case $1 in
21114 --*=*)
21115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21117 ac_shift=:
21118 ;;
21119 *)
21120 ac_option=$1
21121 ac_optarg=$2
21122 ac_shift=shift
21123 ;;
21124 esac
21125
21126 case $ac_option in
21127 # Handling of the options.
21128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21129 ac_cs_recheck=: ;;
21130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21131 $as_echo "$ac_cs_version"; exit ;;
21132 --debug | --debu | --deb | --de | --d | -d )
21133 debug=: ;;
21134 --file | --fil | --fi | --f )
21135 $ac_shift
21136 case $ac_optarg in
21137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21138 esac
21139 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21140 ac_need_defaults=false;;
21141 --header | --heade | --head | --hea )
21142 $ac_shift
21143 case $ac_optarg in
21144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21145 esac
21146 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21147 ac_need_defaults=false;;
21148 --he | --h)
21149 # Conflict between --help and --header
21150 { $as_echo "$as_me: error: ambiguous option: $1
21151 Try \`$0 --help' for more information." >&2
21152 { (exit 1); exit 1; }; };;
21153 --help | --hel | -h )
21154 $as_echo "$ac_cs_usage"; exit ;;
21155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21157 ac_cs_silent=: ;;
21158
21159 # This is an error.
21160 -*) { $as_echo "$as_me: error: unrecognized option: $1
21161 Try \`$0 --help' for more information." >&2
21162 { (exit 1); exit 1; }; } ;;
21163
21164 *) ac_config_targets="$ac_config_targets $1"
21165 ac_need_defaults=false ;;
21166
21167 esac
21168 shift
21169 done
21170
21171 ac_configure_extra_args=
21172
21173 if $ac_cs_silent; then
21174 exec 6>/dev/null
21175 ac_configure_extra_args="$ac_configure_extra_args --silent"
21176 fi
21177
21178 _ACEOF
21179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21180 if \$ac_cs_recheck; then
21181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21182 shift
21183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21184 CONFIG_SHELL='$SHELL'
21185 export CONFIG_SHELL
21186 exec "\$@"
21187 fi
21188
21189 _ACEOF
21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21191 exec 5>>config.log
21192 {
21193 echo
21194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21195 ## Running $as_me. ##
21196 _ASBOX
21197 $as_echo "$ac_log"
21198 } >&5
21199
21200 _ACEOF
21201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21202 #
21203 # INIT-COMMANDS
21204 #
21205 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21206
21207
21208 # The HP-UX ksh and POSIX shell print the target directory to stdout
21209 # if CDPATH is set.
21210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21211
21212 sed_quote_subst='$sed_quote_subst'
21213 double_quote_subst='$double_quote_subst'
21214 delay_variable_subst='$delay_variable_subst'
21215 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21216 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21217 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21218 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21219 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21220 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21221 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21222 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21223 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21224 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21225 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21226 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21227 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21228 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21229 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21230 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21231 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21232 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21233 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21234 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21235 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21236 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21237 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21238 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21239 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21240 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21241 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21242 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21243 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21244 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21245 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21246 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21247 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21248 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21249 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21250 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21251 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21252 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21253 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21254 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21255 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21256 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21257 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21258 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21259 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"`'
21260 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"`'
21261 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21262 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21263 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21264 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21265 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21266 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21267 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21268 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21269 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21270 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21271 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21272 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21273 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21274 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21275 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21276 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21277 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21278 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21279 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21280 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21281 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21282 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21283 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21284 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21285 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21286 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21287 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21288 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21289 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21290 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21291 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21292 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21293 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21294 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21295 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21296 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21297 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21298 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21299 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21300 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21301 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21302 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21303 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21304 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21305 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21306 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21307 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21308 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21309 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21310 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21311 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21312 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21313 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21314 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21315 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21316 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21317 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21318 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21319 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21320 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21321 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21322 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21323 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21324 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21325 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21326 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21327 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21328 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21329 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21330 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21331 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21332 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21333
21334 LTCC='$LTCC'
21335 LTCFLAGS='$LTCFLAGS'
21336 compiler='$compiler_DEFAULT'
21337
21338 # Quote evaled strings.
21339 for var in SED \
21340 GREP \
21341 EGREP \
21342 FGREP \
21343 LD \
21344 NM \
21345 LN_S \
21346 lt_SP2NL \
21347 lt_NL2SP \
21348 reload_flag \
21349 OBJDUMP \
21350 deplibs_check_method \
21351 file_magic_cmd \
21352 AR \
21353 AR_FLAGS \
21354 STRIP \
21355 RANLIB \
21356 CC \
21357 CFLAGS \
21358 compiler \
21359 lt_cv_sys_global_symbol_pipe \
21360 lt_cv_sys_global_symbol_to_cdecl \
21361 lt_cv_sys_global_symbol_to_c_name_address \
21362 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21363 SHELL \
21364 ECHO \
21365 lt_prog_compiler_no_builtin_flag \
21366 lt_prog_compiler_wl \
21367 lt_prog_compiler_pic \
21368 lt_prog_compiler_static \
21369 lt_cv_prog_compiler_c_o \
21370 need_locks \
21371 DSYMUTIL \
21372 NMEDIT \
21373 LIPO \
21374 OTOOL \
21375 OTOOL64 \
21376 shrext_cmds \
21377 export_dynamic_flag_spec \
21378 whole_archive_flag_spec \
21379 compiler_needs_object \
21380 with_gnu_ld \
21381 allow_undefined_flag \
21382 no_undefined_flag \
21383 hardcode_libdir_flag_spec \
21384 hardcode_libdir_flag_spec_ld \
21385 hardcode_libdir_separator \
21386 fix_srcfile_path \
21387 exclude_expsyms \
21388 include_expsyms \
21389 file_list_spec \
21390 variables_saved_for_relink \
21391 libname_spec \
21392 library_names_spec \
21393 soname_spec \
21394 finish_eval \
21395 old_striplib \
21396 striplib; do
21397 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21398 *[\\\\\\\`\\"\\\$]*)
21399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21400 ;;
21401 *)
21402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21403 ;;
21404 esac
21405 done
21406
21407 # Double-quote double-evaled strings.
21408 for var in reload_cmds \
21409 old_postinstall_cmds \
21410 old_postuninstall_cmds \
21411 old_archive_cmds \
21412 extract_expsyms_cmds \
21413 old_archive_from_new_cmds \
21414 old_archive_from_expsyms_cmds \
21415 archive_cmds \
21416 archive_expsym_cmds \
21417 module_cmds \
21418 module_expsym_cmds \
21419 export_symbols_cmds \
21420 prelink_cmds \
21421 postinstall_cmds \
21422 postuninstall_cmds \
21423 finish_cmds \
21424 sys_lib_search_path_spec \
21425 sys_lib_dlsearch_path_spec; do
21426 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21427 *[\\\\\\\`\\"\\\$]*)
21428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21429 ;;
21430 *)
21431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21432 ;;
21433 esac
21434 done
21435
21436 # Fix-up fallback echo if it was mangled by the above quoting rules.
21437 case \$lt_ECHO in
21438 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21439 ;;
21440 esac
21441
21442 ac_aux_dir='$ac_aux_dir'
21443 xsi_shell='$xsi_shell'
21444 lt_shell_append='$lt_shell_append'
21445
21446 # See if we are running on zsh, and set the options which allow our
21447 # commands through without removal of \ escapes INIT.
21448 if test -n "\${ZSH_VERSION+set}" ; then
21449 setopt NO_GLOB_SUBST
21450 fi
21451
21452
21453 PACKAGE='$PACKAGE'
21454 VERSION='$VERSION'
21455 TIMESTAMP='$TIMESTAMP'
21456 RM='$RM'
21457 ofile='$ofile'
21458
21459
21460
21461
21462 _ACEOF
21463
21464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21465
21466 # Handling of arguments.
21467 for ac_config_target in $ac_config_targets
21468 do
21469 case $ac_config_target in
21470 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21471 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21472 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21474 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21475 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21476 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21477 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21478 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21479 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21480 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21481 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21482 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
21483 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21484 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
21485
21486 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21487 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21488 { (exit 1); exit 1; }; };;
21489 esac
21490 done
21491
21492
21493 # If the user did not use the arguments to specify the items to instantiate,
21494 # then the envvar interface is used. Set only those that are not.
21495 # We use the long form for the default assignment because of an extremely
21496 # bizarre bug on SunOS 4.1.3.
21497 if $ac_need_defaults; then
21498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21501 fi
21502
21503 # Have a temporary directory for convenience. Make it in the build tree
21504 # simply because there is no reason against having it here, and in addition,
21505 # creating and moving files from /tmp can sometimes cause problems.
21506 # Hook for its removal unless debugging.
21507 # Note that there is a small window in which the directory will not be cleaned:
21508 # after its creation but before its name has been assigned to `$tmp'.
21509 $debug ||
21510 {
21511 tmp=
21512 trap 'exit_status=$?
21513 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21514 ' 0
21515 trap '{ (exit 1); exit 1; }' 1 2 13 15
21516 }
21517 # Create a (secure) tmp directory for tmp files.
21518
21519 {
21520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21521 test -n "$tmp" && test -d "$tmp"
21522 } ||
21523 {
21524 tmp=./conf$$-$RANDOM
21525 (umask 077 && mkdir "$tmp")
21526 } ||
21527 {
21528 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21529 { (exit 1); exit 1; }
21530 }
21531
21532 # Set up the scripts for CONFIG_FILES section.
21533 # No need to generate them if there are no CONFIG_FILES.
21534 # This happens for instance with `./config.status config.h'.
21535 if test -n "$CONFIG_FILES"; then
21536
21537
21538 ac_cr=' '
21539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21541 ac_cs_awk_cr='\\r'
21542 else
21543 ac_cs_awk_cr=$ac_cr
21544 fi
21545
21546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21547 _ACEOF
21548
21549
21550 {
21551 echo "cat >conf$$subs.awk <<_ACEOF" &&
21552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21553 echo "_ACEOF"
21554 } >conf$$subs.sh ||
21555 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21556 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21557 { (exit 1); exit 1; }; }
21558 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21559 ac_delim='%!_!# '
21560 for ac_last_try in false false false false false :; do
21561 . ./conf$$subs.sh ||
21562 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21563 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21564 { (exit 1); exit 1; }; }
21565
21566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21567 if test $ac_delim_n = $ac_delim_num; then
21568 break
21569 elif $ac_last_try; then
21570 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21571 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21572 { (exit 1); exit 1; }; }
21573 else
21574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21575 fi
21576 done
21577 rm -f conf$$subs.sh
21578
21579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21580 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21581 _ACEOF
21582 sed -n '
21583 h
21584 s/^/S["/; s/!.*/"]=/
21585 p
21586 g
21587 s/^[^!]*!//
21588 :repl
21589 t repl
21590 s/'"$ac_delim"'$//
21591 t delim
21592 :nl
21593 h
21594 s/\(.\{148\}\).*/\1/
21595 t more1
21596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21597 p
21598 n
21599 b repl
21600 :more1
21601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21602 p
21603 g
21604 s/.\{148\}//
21605 t nl
21606 :delim
21607 h
21608 s/\(.\{148\}\).*/\1/
21609 t more2
21610 s/["\\]/\\&/g; s/^/"/; s/$/"/
21611 p
21612 b
21613 :more2
21614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21615 p
21616 g
21617 s/.\{148\}//
21618 t delim
21619 ' <conf$$subs.awk | sed '
21620 /^[^""]/{
21621 N
21622 s/\n//
21623 }
21624 ' >>$CONFIG_STATUS || ac_write_fail=1
21625 rm -f conf$$subs.awk
21626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21627 _ACAWK
21628 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21629 for (key in S) S_is_set[key] = 1
21630 FS = "\a"
21631
21632 }
21633 {
21634 line = $ 0
21635 nfields = split(line, field, "@")
21636 substed = 0
21637 len = length(field[1])
21638 for (i = 2; i < nfields; i++) {
21639 key = field[i]
21640 keylen = length(key)
21641 if (S_is_set[key]) {
21642 value = S[key]
21643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21644 len += length(value) + length(field[++i])
21645 substed = 1
21646 } else
21647 len += 1 + keylen
21648 }
21649
21650 print line
21651 }
21652
21653 _ACAWK
21654 _ACEOF
21655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21656 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21657 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21658 else
21659 cat
21660 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21661 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21662 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21663 { (exit 1); exit 1; }; }
21664 _ACEOF
21665
21666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21668 # trailing colons and then remove the whole line if VPATH becomes empty
21669 # (actually we leave an empty line to preserve line numbers).
21670 if test "x$srcdir" = x.; then
21671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21672 s/:*\$(srcdir):*/:/
21673 s/:*\${srcdir}:*/:/
21674 s/:*@srcdir@:*/:/
21675 s/^\([^=]*=[ ]*\):*/\1/
21676 s/:*$//
21677 s/^[^=]*=[ ]*$//
21678 }'
21679 fi
21680
21681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21682 fi # test -n "$CONFIG_FILES"
21683
21684 # Set up the scripts for CONFIG_HEADERS section.
21685 # No need to generate them if there are no CONFIG_HEADERS.
21686 # This happens for instance with `./config.status Makefile'.
21687 if test -n "$CONFIG_HEADERS"; then
21688 cat >"$tmp/defines.awk" <<\_ACAWK ||
21689 BEGIN {
21690 _ACEOF
21691
21692 # Transform confdefs.h into an awk script `defines.awk', embedded as
21693 # here-document in config.status, that substitutes the proper values into
21694 # config.h.in to produce config.h.
21695
21696 # Create a delimiter string that does not exist in confdefs.h, to ease
21697 # handling of long lines.
21698 ac_delim='%!_!# '
21699 for ac_last_try in false false :; do
21700 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21701 if test -z "$ac_t"; then
21702 break
21703 elif $ac_last_try; then
21704 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21705 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21706 { (exit 1); exit 1; }; }
21707 else
21708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21709 fi
21710 done
21711
21712 # For the awk script, D is an array of macro values keyed by name,
21713 # likewise P contains macro parameters if any. Preserve backslash
21714 # newline sequences.
21715
21716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21717 sed -n '
21718 s/.\{148\}/&'"$ac_delim"'/g
21719 t rset
21720 :rset
21721 s/^[ ]*#[ ]*define[ ][ ]*/ /
21722 t def
21723 d
21724 :def
21725 s/\\$//
21726 t bsnl
21727 s/["\\]/\\&/g
21728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21729 D["\1"]=" \3"/p
21730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21731 d
21732 :bsnl
21733 s/["\\]/\\&/g
21734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21735 D["\1"]=" \3\\\\\\n"\\/p
21736 t cont
21737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21738 t cont
21739 d
21740 :cont
21741 n
21742 s/.\{148\}/&'"$ac_delim"'/g
21743 t clear
21744 :clear
21745 s/\\$//
21746 t bsnlc
21747 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21748 d
21749 :bsnlc
21750 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21751 b cont
21752 ' <confdefs.h | sed '
21753 s/'"$ac_delim"'/"\\\
21754 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21755
21756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21757 for (key in D) D_is_set[key] = 1
21758 FS = "\a"
21759 }
21760 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21761 line = \$ 0
21762 split(line, arg, " ")
21763 if (arg[1] == "#") {
21764 defundef = arg[2]
21765 mac1 = arg[3]
21766 } else {
21767 defundef = substr(arg[1], 2)
21768 mac1 = arg[2]
21769 }
21770 split(mac1, mac2, "(") #)
21771 macro = mac2[1]
21772 prefix = substr(line, 1, index(line, defundef) - 1)
21773 if (D_is_set[macro]) {
21774 # Preserve the white space surrounding the "#".
21775 print prefix "define", macro P[macro] D[macro]
21776 next
21777 } else {
21778 # Replace #undef with comments. This is necessary, for example,
21779 # in the case of _POSIX_SOURCE, which is predefined and required
21780 # on some systems where configure will not decide to define it.
21781 if (defundef == "undef") {
21782 print "/*", prefix defundef, macro, "*/"
21783 next
21784 }
21785 }
21786 }
21787 { print }
21788 _ACAWK
21789 _ACEOF
21790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21791 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21792 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21793 { (exit 1); exit 1; }; }
21794 fi # test -n "$CONFIG_HEADERS"
21795
21796
21797 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21798 shift
21799 for ac_tag
21800 do
21801 case $ac_tag in
21802 :[FHLC]) ac_mode=$ac_tag; continue;;
21803 esac
21804 case $ac_mode$ac_tag in
21805 :[FHL]*:*);;
21806 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21807 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21808 { (exit 1); exit 1; }; };;
21809 :[FH]-) ac_tag=-:-;;
21810 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21811 esac
21812 ac_save_IFS=$IFS
21813 IFS=:
21814 set x $ac_tag
21815 IFS=$ac_save_IFS
21816 shift
21817 ac_file=$1
21818 shift
21819
21820 case $ac_mode in
21821 :L) ac_source=$1;;
21822 :[FH])
21823 ac_file_inputs=
21824 for ac_f
21825 do
21826 case $ac_f in
21827 -) ac_f="$tmp/stdin";;
21828 *) # Look for the file first in the build tree, then in the source tree
21829 # (if the path is not absolute). The absolute path cannot be DOS-style,
21830 # because $ac_f cannot contain `:'.
21831 test -f "$ac_f" ||
21832 case $ac_f in
21833 [\\/$]*) false;;
21834 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21835 esac ||
21836 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21837 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21838 { (exit 1); exit 1; }; };;
21839 esac
21840 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21841 ac_file_inputs="$ac_file_inputs '$ac_f'"
21842 done
21843
21844 # Let's still pretend it is `configure' which instantiates (i.e., don't
21845 # use $as_me), people would be surprised to read:
21846 # /* config.h. Generated by config.status. */
21847 configure_input='Generated from '`
21848 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21849 `' by configure.'
21850 if test x"$ac_file" != x-; then
21851 configure_input="$ac_file. $configure_input"
21852 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21853 $as_echo "$as_me: creating $ac_file" >&6;}
21854 fi
21855 # Neutralize special characters interpreted by sed in replacement strings.
21856 case $configure_input in #(
21857 *\&* | *\|* | *\\* )
21858 ac_sed_conf_input=`$as_echo "$configure_input" |
21859 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21860 *) ac_sed_conf_input=$configure_input;;
21861 esac
21862
21863 case $ac_tag in
21864 *:-:* | *:-) cat >"$tmp/stdin" \
21865 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21866 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21867 { (exit 1); exit 1; }; } ;;
21868 esac
21869 ;;
21870 esac
21871
21872 ac_dir=`$as_dirname -- "$ac_file" ||
21873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874 X"$ac_file" : 'X\(//\)[^/]' \| \
21875 X"$ac_file" : 'X\(//\)$' \| \
21876 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21877 $as_echo X"$ac_file" |
21878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21879 s//\1/
21880 q
21881 }
21882 /^X\(\/\/\)[^/].*/{
21883 s//\1/
21884 q
21885 }
21886 /^X\(\/\/\)$/{
21887 s//\1/
21888 q
21889 }
21890 /^X\(\/\).*/{
21891 s//\1/
21892 q
21893 }
21894 s/.*/./; q'`
21895 { as_dir="$ac_dir"
21896 case $as_dir in #(
21897 -*) as_dir=./$as_dir;;
21898 esac
21899 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21900 as_dirs=
21901 while :; do
21902 case $as_dir in #(
21903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21904 *) as_qdir=$as_dir;;
21905 esac
21906 as_dirs="'$as_qdir' $as_dirs"
21907 as_dir=`$as_dirname -- "$as_dir" ||
21908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21909 X"$as_dir" : 'X\(//\)[^/]' \| \
21910 X"$as_dir" : 'X\(//\)$' \| \
21911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21912 $as_echo X"$as_dir" |
21913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21914 s//\1/
21915 q
21916 }
21917 /^X\(\/\/\)[^/].*/{
21918 s//\1/
21919 q
21920 }
21921 /^X\(\/\/\)$/{
21922 s//\1/
21923 q
21924 }
21925 /^X\(\/\).*/{
21926 s//\1/
21927 q
21928 }
21929 s/.*/./; q'`
21930 test -d "$as_dir" && break
21931 done
21932 test -z "$as_dirs" || eval "mkdir $as_dirs"
21933 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21934 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21935 { (exit 1); exit 1; }; }; }
21936 ac_builddir=.
21937
21938 case "$ac_dir" in
21939 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21940 *)
21941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21942 # A ".." for each directory in $ac_dir_suffix.
21943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21944 case $ac_top_builddir_sub in
21945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21947 esac ;;
21948 esac
21949 ac_abs_top_builddir=$ac_pwd
21950 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21951 # for backward compatibility:
21952 ac_top_builddir=$ac_top_build_prefix
21953
21954 case $srcdir in
21955 .) # We are building in place.
21956 ac_srcdir=.
21957 ac_top_srcdir=$ac_top_builddir_sub
21958 ac_abs_top_srcdir=$ac_pwd ;;
21959 [\\/]* | ?:[\\/]* ) # Absolute name.
21960 ac_srcdir=$srcdir$ac_dir_suffix;
21961 ac_top_srcdir=$srcdir
21962 ac_abs_top_srcdir=$srcdir ;;
21963 *) # Relative name.
21964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21965 ac_top_srcdir=$ac_top_build_prefix$srcdir
21966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21967 esac
21968 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21969
21970
21971 case $ac_mode in
21972 :F)
21973 #
21974 # CONFIG_FILE
21975 #
21976
21977 case $INSTALL in
21978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21979 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21980 esac
21981 ac_MKDIR_P=$MKDIR_P
21982 case $MKDIR_P in
21983 [\\/$]* | ?:[\\/]* ) ;;
21984 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21985 esac
21986 _ACEOF
21987
21988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21989 # If the template does not know about datarootdir, expand it.
21990 # FIXME: This hack should be removed a few years after 2.60.
21991 ac_datarootdir_hack=; ac_datarootdir_seen=
21992
21993 ac_sed_dataroot='
21994 /datarootdir/ {
21995 p
21996 q
21997 }
21998 /@datadir@/p
21999 /@docdir@/p
22000 /@infodir@/p
22001 /@localedir@/p
22002 /@mandir@/p
22003 '
22004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22005 *datarootdir*) ac_datarootdir_seen=yes;;
22006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22007 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22008 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22009 _ACEOF
22010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22011 ac_datarootdir_hack='
22012 s&@datadir@&$datadir&g
22013 s&@docdir@&$docdir&g
22014 s&@infodir@&$infodir&g
22015 s&@localedir@&$localedir&g
22016 s&@mandir@&$mandir&g
22017 s&\\\${datarootdir}&$datarootdir&g' ;;
22018 esac
22019 _ACEOF
22020
22021 # Neutralize VPATH when `$srcdir' = `.'.
22022 # Shell code in configure.ac might set extrasub.
22023 # FIXME: do we really want to maintain this feature?
22024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22025 ac_sed_extra="$ac_vpsub
22026 $extrasub
22027 _ACEOF
22028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22029 :t
22030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22031 s|@configure_input@|$ac_sed_conf_input|;t t
22032 s&@top_builddir@&$ac_top_builddir_sub&;t t
22033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22034 s&@srcdir@&$ac_srcdir&;t t
22035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22036 s&@top_srcdir@&$ac_top_srcdir&;t t
22037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22038 s&@builddir@&$ac_builddir&;t t
22039 s&@abs_builddir@&$ac_abs_builddir&;t t
22040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22041 s&@INSTALL@&$ac_INSTALL&;t t
22042 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22043 $ac_datarootdir_hack
22044 "
22045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22046 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22047 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22048 { (exit 1); exit 1; }; }
22049
22050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22051 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22053 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22054 which seems to be undefined. Please make sure it is defined." >&5
22055 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22056 which seems to be undefined. Please make sure it is defined." >&2;}
22057
22058 rm -f "$tmp/stdin"
22059 case $ac_file in
22060 -) cat "$tmp/out" && rm -f "$tmp/out";;
22061 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22062 esac \
22063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22064 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22065 { (exit 1); exit 1; }; }
22066 ;;
22067 :H)
22068 #
22069 # CONFIG_HEADER
22070 #
22071 if test x"$ac_file" != x-; then
22072 {
22073 $as_echo "/* $configure_input */" \
22074 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22075 } >"$tmp/config.h" \
22076 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22077 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22078 { (exit 1); exit 1; }; }
22079 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22080 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22081 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22082 else
22083 rm -f "$ac_file"
22084 mv "$tmp/config.h" "$ac_file" \
22085 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22086 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22087 { (exit 1); exit 1; }; }
22088 fi
22089 else
22090 $as_echo "/* $configure_input */" \
22091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22092 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22093 $as_echo "$as_me: error: could not create -" >&2;}
22094 { (exit 1); exit 1; }; }
22095 fi
22096 # Compute "$ac_file"'s index in $config_headers.
22097 _am_arg="$ac_file"
22098 _am_stamp_count=1
22099 for _am_header in $config_headers :; do
22100 case $_am_header in
22101 $_am_arg | $_am_arg:* )
22102 break ;;
22103 * )
22104 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22105 esac
22106 done
22107 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22108 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22109 X"$_am_arg" : 'X\(//\)[^/]' \| \
22110 X"$_am_arg" : 'X\(//\)$' \| \
22111 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22112 $as_echo X"$_am_arg" |
22113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22114 s//\1/
22115 q
22116 }
22117 /^X\(\/\/\)[^/].*/{
22118 s//\1/
22119 q
22120 }
22121 /^X\(\/\/\)$/{
22122 s//\1/
22123 q
22124 }
22125 /^X\(\/\).*/{
22126 s//\1/
22127 q
22128 }
22129 s/.*/./; q'`/stamp-h$_am_stamp_count
22130 ;;
22131
22132 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22133 $as_echo "$as_me: executing $ac_file commands" >&6;}
22134 ;;
22135 esac
22136
22137
22138 case $ac_file$ac_mode in
22139 "spl_config.h":H)
22140 (mv spl_config.h spl_config.h.tmp &&
22141 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
22142 rm spl_config.h.tmp) || exit 1 ;;
22143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22144 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22145 # are listed without --file. Let's play safe and only enable the eval
22146 # if we detect the quoting.
22147 case $CONFIG_FILES in
22148 *\'*) eval set x "$CONFIG_FILES" ;;
22149 *) set x $CONFIG_FILES ;;
22150 esac
22151 shift
22152 for mf
22153 do
22154 # Strip MF so we end up with the name of the file.
22155 mf=`echo "$mf" | sed -e 's/:.*$//'`
22156 # Check whether this is an Automake generated Makefile or not.
22157 # We used to match only the files named `Makefile.in', but
22158 # some people rename them; so instead we look at the file content.
22159 # Grep'ing the first line is not enough: some people post-process
22160 # each Makefile.in and add a new line on top of each file to say so.
22161 # Grep'ing the whole file is not good either: AIX grep has a line
22162 # limit of 2048, but all sed's we know have understand at least 4000.
22163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22164 dirpart=`$as_dirname -- "$mf" ||
22165 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22166 X"$mf" : 'X\(//\)[^/]' \| \
22167 X"$mf" : 'X\(//\)$' \| \
22168 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22169 $as_echo X"$mf" |
22170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22171 s//\1/
22172 q
22173 }
22174 /^X\(\/\/\)[^/].*/{
22175 s//\1/
22176 q
22177 }
22178 /^X\(\/\/\)$/{
22179 s//\1/
22180 q
22181 }
22182 /^X\(\/\).*/{
22183 s//\1/
22184 q
22185 }
22186 s/.*/./; q'`
22187 else
22188 continue
22189 fi
22190 # Extract the definition of DEPDIR, am__include, and am__quote
22191 # from the Makefile without running `make'.
22192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22193 test -z "$DEPDIR" && continue
22194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22195 test -z "am__include" && continue
22196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22197 # When using ansi2knr, U may be empty or an underscore; expand it
22198 U=`sed -n 's/^U = //p' < "$mf"`
22199 # Find all dependency output files, they are included files with
22200 # $(DEPDIR) in their names. We invoke sed twice because it is the
22201 # simplest approach to changing $(DEPDIR) to its actual value in the
22202 # expansion.
22203 for file in `sed -n "
22204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22206 # Make sure the directory exists.
22207 test -f "$dirpart/$file" && continue
22208 fdir=`$as_dirname -- "$file" ||
22209 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22210 X"$file" : 'X\(//\)[^/]' \| \
22211 X"$file" : 'X\(//\)$' \| \
22212 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22213 $as_echo X"$file" |
22214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22215 s//\1/
22216 q
22217 }
22218 /^X\(\/\/\)[^/].*/{
22219 s//\1/
22220 q
22221 }
22222 /^X\(\/\/\)$/{
22223 s//\1/
22224 q
22225 }
22226 /^X\(\/\).*/{
22227 s//\1/
22228 q
22229 }
22230 s/.*/./; q'`
22231 { as_dir=$dirpart/$fdir
22232 case $as_dir in #(
22233 -*) as_dir=./$as_dir;;
22234 esac
22235 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22236 as_dirs=
22237 while :; do
22238 case $as_dir in #(
22239 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22240 *) as_qdir=$as_dir;;
22241 esac
22242 as_dirs="'$as_qdir' $as_dirs"
22243 as_dir=`$as_dirname -- "$as_dir" ||
22244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22245 X"$as_dir" : 'X\(//\)[^/]' \| \
22246 X"$as_dir" : 'X\(//\)$' \| \
22247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22248 $as_echo X"$as_dir" |
22249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22250 s//\1/
22251 q
22252 }
22253 /^X\(\/\/\)[^/].*/{
22254 s//\1/
22255 q
22256 }
22257 /^X\(\/\/\)$/{
22258 s//\1/
22259 q
22260 }
22261 /^X\(\/\).*/{
22262 s//\1/
22263 q
22264 }
22265 s/.*/./; q'`
22266 test -d "$as_dir" && break
22267 done
22268 test -z "$as_dirs" || eval "mkdir $as_dirs"
22269 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22270 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22271 { (exit 1); exit 1; }; }; }
22272 # echo "creating $dirpart/$file"
22273 echo '# dummy' > "$dirpart/$file"
22274 done
22275 done
22276 }
22277 ;;
22278 "libtool":C)
22279
22280 # See if we are running on zsh, and set the options which allow our
22281 # commands through without removal of \ escapes.
22282 if test -n "${ZSH_VERSION+set}" ; then
22283 setopt NO_GLOB_SUBST
22284 fi
22285
22286 cfgfile="${ofile}T"
22287 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22288 $RM "$cfgfile"
22289
22290 cat <<_LT_EOF >> "$cfgfile"
22291 #! $SHELL
22292
22293 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22294 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22296 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22297 #
22298 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22299 # 2006, 2007, 2008 Free Software Foundation, Inc.
22300 # Written by Gordon Matzigkeit, 1996
22301 #
22302 # This file is part of GNU Libtool.
22303 #
22304 # GNU Libtool is free software; you can redistribute it and/or
22305 # modify it under the terms of the GNU General Public License as
22306 # published by the Free Software Foundation; either version 2 of
22307 # the License, or (at your option) any later version.
22308 #
22309 # As a special exception to the GNU General Public License,
22310 # if you distribute this file as part of a program or library that
22311 # is built using GNU Libtool, you may include this file under the
22312 # same distribution terms that you use for the rest of that program.
22313 #
22314 # GNU Libtool is distributed in the hope that it will be useful,
22315 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22317 # GNU General Public License for more details.
22318 #
22319 # You should have received a copy of the GNU General Public License
22320 # along with GNU Libtool; see the file COPYING. If not, a copy
22321 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22322 # obtained by writing to the Free Software Foundation, Inc.,
22323 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22324
22325
22326 # The names of the tagged configurations supported by this script.
22327 available_tags=""
22328
22329 # ### BEGIN LIBTOOL CONFIG
22330
22331 # Which release of libtool.m4 was used?
22332 macro_version=$macro_version
22333 macro_revision=$macro_revision
22334
22335 # Whether or not to build shared libraries.
22336 build_libtool_libs=$enable_shared
22337
22338 # Whether or not to build static libraries.
22339 build_old_libs=$enable_static
22340
22341 # What type of objects to build.
22342 pic_mode=$pic_mode
22343
22344 # Whether or not to optimize for fast installation.
22345 fast_install=$enable_fast_install
22346
22347 # The host system.
22348 host_alias=$host_alias
22349 host=$host
22350 host_os=$host_os
22351
22352 # The build system.
22353 build_alias=$build_alias
22354 build=$build
22355 build_os=$build_os
22356
22357 # A sed program that does not truncate output.
22358 SED=$lt_SED
22359
22360 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22361 Xsed="\$SED -e 1s/^X//"
22362
22363 # A grep program that handles long lines.
22364 GREP=$lt_GREP
22365
22366 # An ERE matcher.
22367 EGREP=$lt_EGREP
22368
22369 # A literal string matcher.
22370 FGREP=$lt_FGREP
22371
22372 # A BSD- or MS-compatible name lister.
22373 NM=$lt_NM
22374
22375 # Whether we need soft or hard links.
22376 LN_S=$lt_LN_S
22377
22378 # What is the maximum length of a command?
22379 max_cmd_len=$max_cmd_len
22380
22381 # Object file suffix (normally "o").
22382 objext=$ac_objext
22383
22384 # Executable file suffix (normally "").
22385 exeext=$exeext
22386
22387 # whether the shell understands "unset".
22388 lt_unset=$lt_unset
22389
22390 # turn spaces into newlines.
22391 SP2NL=$lt_lt_SP2NL
22392
22393 # turn newlines into spaces.
22394 NL2SP=$lt_lt_NL2SP
22395
22396 # How to create reloadable object files.
22397 reload_flag=$lt_reload_flag
22398 reload_cmds=$lt_reload_cmds
22399
22400 # An object symbol dumper.
22401 OBJDUMP=$lt_OBJDUMP
22402
22403 # Method to check whether dependent libraries are shared objects.
22404 deplibs_check_method=$lt_deplibs_check_method
22405
22406 # Command to use when deplibs_check_method == "file_magic".
22407 file_magic_cmd=$lt_file_magic_cmd
22408
22409 # The archiver.
22410 AR=$lt_AR
22411 AR_FLAGS=$lt_AR_FLAGS
22412
22413 # A symbol stripping program.
22414 STRIP=$lt_STRIP
22415
22416 # Commands used to install an old-style archive.
22417 RANLIB=$lt_RANLIB
22418 old_postinstall_cmds=$lt_old_postinstall_cmds
22419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22420
22421 # A C compiler.
22422 LTCC=$lt_CC
22423
22424 # LTCC compiler flags.
22425 LTCFLAGS=$lt_CFLAGS
22426
22427 # Take the output of nm and produce a listing of raw symbols and C names.
22428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22429
22430 # Transform the output of nm in a proper C declaration.
22431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22432
22433 # Transform the output of nm in a C name address pair.
22434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22435
22436 # Transform the output of nm in a C name address pair when lib prefix is needed.
22437 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22438
22439 # The name of the directory that contains temporary libtool files.
22440 objdir=$objdir
22441
22442 # Shell to use when invoking shell scripts.
22443 SHELL=$lt_SHELL
22444
22445 # An echo program that does not interpret backslashes.
22446 ECHO=$lt_ECHO
22447
22448 # Used to examine libraries when file_magic_cmd begins with "file".
22449 MAGIC_CMD=$MAGIC_CMD
22450
22451 # Must we lock files when doing compilation?
22452 need_locks=$lt_need_locks
22453
22454 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22455 DSYMUTIL=$lt_DSYMUTIL
22456
22457 # Tool to change global to local symbols on Mac OS X.
22458 NMEDIT=$lt_NMEDIT
22459
22460 # Tool to manipulate fat objects and archives on Mac OS X.
22461 LIPO=$lt_LIPO
22462
22463 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22464 OTOOL=$lt_OTOOL
22465
22466 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22467 OTOOL64=$lt_OTOOL64
22468
22469 # Old archive suffix (normally "a").
22470 libext=$libext
22471
22472 # Shared library suffix (normally ".so").
22473 shrext_cmds=$lt_shrext_cmds
22474
22475 # The commands to extract the exported symbol list from a shared archive.
22476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22477
22478 # Variables whose values should be saved in libtool wrapper scripts and
22479 # restored at link time.
22480 variables_saved_for_relink=$lt_variables_saved_for_relink
22481
22482 # Do we need the "lib" prefix for modules?
22483 need_lib_prefix=$need_lib_prefix
22484
22485 # Do we need a version for libraries?
22486 need_version=$need_version
22487
22488 # Library versioning type.
22489 version_type=$version_type
22490
22491 # Shared library runtime path variable.
22492 runpath_var=$runpath_var
22493
22494 # Shared library path variable.
22495 shlibpath_var=$shlibpath_var
22496
22497 # Is shlibpath searched before the hard-coded library search path?
22498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22499
22500 # Format of library name prefix.
22501 libname_spec=$lt_libname_spec
22502
22503 # List of archive names. First name is the real one, the rest are links.
22504 # The last name is the one that the linker finds with -lNAME
22505 library_names_spec=$lt_library_names_spec
22506
22507 # The coded name of the library, if different from the real name.
22508 soname_spec=$lt_soname_spec
22509
22510 # Command to use after installation of a shared archive.
22511 postinstall_cmds=$lt_postinstall_cmds
22512
22513 # Command to use after uninstallation of a shared archive.
22514 postuninstall_cmds=$lt_postuninstall_cmds
22515
22516 # Commands used to finish a libtool library installation in a directory.
22517 finish_cmds=$lt_finish_cmds
22518
22519 # As "finish_cmds", except a single script fragment to be evaled but
22520 # not shown.
22521 finish_eval=$lt_finish_eval
22522
22523 # Whether we should hardcode library paths into libraries.
22524 hardcode_into_libs=$hardcode_into_libs
22525
22526 # Compile-time system search path for libraries.
22527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22528
22529 # Run-time system search path for libraries.
22530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22531
22532 # Whether dlopen is supported.
22533 dlopen_support=$enable_dlopen
22534
22535 # Whether dlopen of programs is supported.
22536 dlopen_self=$enable_dlopen_self
22537
22538 # Whether dlopen of statically linked programs is supported.
22539 dlopen_self_static=$enable_dlopen_self_static
22540
22541 # Commands to strip libraries.
22542 old_striplib=$lt_old_striplib
22543 striplib=$lt_striplib
22544
22545
22546 # The linker used to build libraries.
22547 LD=$lt_LD
22548
22549 # Commands used to build an old-style archive.
22550 old_archive_cmds=$lt_old_archive_cmds
22551
22552 # A language specific compiler.
22553 CC=$lt_compiler
22554
22555 # Is the compiler the GNU compiler?
22556 with_gcc=$GCC
22557
22558 # Compiler flag to turn off builtin functions.
22559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22560
22561 # How to pass a linker flag through the compiler.
22562 wl=$lt_lt_prog_compiler_wl
22563
22564 # Additional compiler flags for building library objects.
22565 pic_flag=$lt_lt_prog_compiler_pic
22566
22567 # Compiler flag to prevent dynamic linking.
22568 link_static_flag=$lt_lt_prog_compiler_static
22569
22570 # Does compiler simultaneously support -c and -o options?
22571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22572
22573 # Whether or not to add -lc for building shared libraries.
22574 build_libtool_need_lc=$archive_cmds_need_lc
22575
22576 # Whether or not to disallow shared libs when runtime libs are static.
22577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22578
22579 # Compiler flag to allow reflexive dlopens.
22580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22581
22582 # Compiler flag to generate shared objects directly from archives.
22583 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22584
22585 # Whether the compiler copes with passing no objects directly.
22586 compiler_needs_object=$lt_compiler_needs_object
22587
22588 # Create an old-style archive from a shared archive.
22589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22590
22591 # Create a temporary old-style archive to link instead of a shared archive.
22592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22593
22594 # Commands used to build a shared archive.
22595 archive_cmds=$lt_archive_cmds
22596 archive_expsym_cmds=$lt_archive_expsym_cmds
22597
22598 # Commands used to build a loadable module if different from building
22599 # a shared archive.
22600 module_cmds=$lt_module_cmds
22601 module_expsym_cmds=$lt_module_expsym_cmds
22602
22603 # Whether we are building with GNU ld or not.
22604 with_gnu_ld=$lt_with_gnu_ld
22605
22606 # Flag that allows shared libraries with undefined symbols to be built.
22607 allow_undefined_flag=$lt_allow_undefined_flag
22608
22609 # Flag that enforces no undefined symbols.
22610 no_undefined_flag=$lt_no_undefined_flag
22611
22612 # Flag to hardcode \$libdir into a binary during linking.
22613 # This must work even if \$libdir does not exist
22614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22615
22616 # If ld is used when linking, flag to hardcode \$libdir into a binary
22617 # during linking. This must work even if \$libdir does not exist.
22618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22619
22620 # Whether we need a single "-rpath" flag with a separated argument.
22621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22622
22623 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22624 # DIR into the resulting binary.
22625 hardcode_direct=$hardcode_direct
22626
22627 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22628 # DIR into the resulting binary and the resulting library dependency is
22629 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22630 # library is relocated.
22631 hardcode_direct_absolute=$hardcode_direct_absolute
22632
22633 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22634 # into the resulting binary.
22635 hardcode_minus_L=$hardcode_minus_L
22636
22637 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22638 # into the resulting binary.
22639 hardcode_shlibpath_var=$hardcode_shlibpath_var
22640
22641 # Set to "yes" if building a shared library automatically hardcodes DIR
22642 # into the library and all subsequent libraries and executables linked
22643 # against it.
22644 hardcode_automatic=$hardcode_automatic
22645
22646 # Set to yes if linker adds runtime paths of dependent libraries
22647 # to runtime path list.
22648 inherit_rpath=$inherit_rpath
22649
22650 # Whether libtool must link a program against all its dependency libraries.
22651 link_all_deplibs=$link_all_deplibs
22652
22653 # Fix the shell variable \$srcfile for the compiler.
22654 fix_srcfile_path=$lt_fix_srcfile_path
22655
22656 # Set to "yes" if exported symbols are required.
22657 always_export_symbols=$always_export_symbols
22658
22659 # The commands to list exported symbols.
22660 export_symbols_cmds=$lt_export_symbols_cmds
22661
22662 # Symbols that should not be listed in the preloaded symbols.
22663 exclude_expsyms=$lt_exclude_expsyms
22664
22665 # Symbols that must always be exported.
22666 include_expsyms=$lt_include_expsyms
22667
22668 # Commands necessary for linking programs (against libraries) with templates.
22669 prelink_cmds=$lt_prelink_cmds
22670
22671 # Specify filename containing input files.
22672 file_list_spec=$lt_file_list_spec
22673
22674 # How to hardcode a shared library path into an executable.
22675 hardcode_action=$hardcode_action
22676
22677 # ### END LIBTOOL CONFIG
22678
22679 _LT_EOF
22680
22681 case $host_os in
22682 aix3*)
22683 cat <<\_LT_EOF >> "$cfgfile"
22684 # AIX sometimes has problems with the GCC collect2 program. For some
22685 # reason, if we set the COLLECT_NAMES environment variable, the problems
22686 # vanish in a puff of smoke.
22687 if test "X${COLLECT_NAMES+set}" != Xset; then
22688 COLLECT_NAMES=
22689 export COLLECT_NAMES
22690 fi
22691 _LT_EOF
22692 ;;
22693 esac
22694
22695
22696 ltmain="$ac_aux_dir/ltmain.sh"
22697
22698
22699 # We use sed instead of cat because bash on DJGPP gets confused if
22700 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22701 # text mode, it properly converts lines to CR/LF. This bash problem
22702 # is reportedly fixed, but why not run on old versions too?
22703 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22704 || (rm -f "$cfgfile"; exit 1)
22705
22706 case $xsi_shell in
22707 yes)
22708 cat << \_LT_EOF >> "$cfgfile"
22709
22710 # func_dirname file append nondir_replacement
22711 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22712 # otherwise set result to NONDIR_REPLACEMENT.
22713 func_dirname ()
22714 {
22715 case ${1} in
22716 */*) func_dirname_result="${1%/*}${2}" ;;
22717 * ) func_dirname_result="${3}" ;;
22718 esac
22719 }
22720
22721 # func_basename file
22722 func_basename ()
22723 {
22724 func_basename_result="${1##*/}"
22725 }
22726
22727 # func_dirname_and_basename file append nondir_replacement
22728 # perform func_basename and func_dirname in a single function
22729 # call:
22730 # dirname: Compute the dirname of FILE. If nonempty,
22731 # add APPEND to the result, otherwise set result
22732 # to NONDIR_REPLACEMENT.
22733 # value returned in "$func_dirname_result"
22734 # basename: Compute filename of FILE.
22735 # value retuned in "$func_basename_result"
22736 # Implementation must be kept synchronized with func_dirname
22737 # and func_basename. For efficiency, we do not delegate to
22738 # those functions but instead duplicate the functionality here.
22739 func_dirname_and_basename ()
22740 {
22741 case ${1} in
22742 */*) func_dirname_result="${1%/*}${2}" ;;
22743 * ) func_dirname_result="${3}" ;;
22744 esac
22745 func_basename_result="${1##*/}"
22746 }
22747
22748 # func_stripname prefix suffix name
22749 # strip PREFIX and SUFFIX off of NAME.
22750 # PREFIX and SUFFIX must not contain globbing or regex special
22751 # characters, hashes, percent signs, but SUFFIX may contain a leading
22752 # dot (in which case that matches only a dot).
22753 func_stripname ()
22754 {
22755 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22756 # positional parameters, so assign one to ordinary parameter first.
22757 func_stripname_result=${3}
22758 func_stripname_result=${func_stripname_result#"${1}"}
22759 func_stripname_result=${func_stripname_result%"${2}"}
22760 }
22761
22762 # func_opt_split
22763 func_opt_split ()
22764 {
22765 func_opt_split_opt=${1%%=*}
22766 func_opt_split_arg=${1#*=}
22767 }
22768
22769 # func_lo2o object
22770 func_lo2o ()
22771 {
22772 case ${1} in
22773 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22774 *) func_lo2o_result=${1} ;;
22775 esac
22776 }
22777
22778 # func_xform libobj-or-source
22779 func_xform ()
22780 {
22781 func_xform_result=${1%.*}.lo
22782 }
22783
22784 # func_arith arithmetic-term...
22785 func_arith ()
22786 {
22787 func_arith_result=$(( $* ))
22788 }
22789
22790 # func_len string
22791 # STRING may not start with a hyphen.
22792 func_len ()
22793 {
22794 func_len_result=${#1}
22795 }
22796
22797 _LT_EOF
22798 ;;
22799 *) # Bourne compatible functions.
22800 cat << \_LT_EOF >> "$cfgfile"
22801
22802 # func_dirname file append nondir_replacement
22803 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22804 # otherwise set result to NONDIR_REPLACEMENT.
22805 func_dirname ()
22806 {
22807 # Extract subdirectory from the argument.
22808 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22809 if test "X$func_dirname_result" = "X${1}"; then
22810 func_dirname_result="${3}"
22811 else
22812 func_dirname_result="$func_dirname_result${2}"
22813 fi
22814 }
22815
22816 # func_basename file
22817 func_basename ()
22818 {
22819 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22820 }
22821
22822
22823 # func_stripname prefix suffix name
22824 # strip PREFIX and SUFFIX off of NAME.
22825 # PREFIX and SUFFIX must not contain globbing or regex special
22826 # characters, hashes, percent signs, but SUFFIX may contain a leading
22827 # dot (in which case that matches only a dot).
22828 # func_strip_suffix prefix name
22829 func_stripname ()
22830 {
22831 case ${2} in
22832 .*) func_stripname_result=`$ECHO "X${3}" \
22833 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22834 *) func_stripname_result=`$ECHO "X${3}" \
22835 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22836 esac
22837 }
22838
22839 # sed scripts:
22840 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22841 my_sed_long_arg='1s/^-[^=]*=//'
22842
22843 # func_opt_split
22844 func_opt_split ()
22845 {
22846 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22847 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22848 }
22849
22850 # func_lo2o object
22851 func_lo2o ()
22852 {
22853 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22854 }
22855
22856 # func_xform libobj-or-source
22857 func_xform ()
22858 {
22859 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22860 }
22861
22862 # func_arith arithmetic-term...
22863 func_arith ()
22864 {
22865 func_arith_result=`expr "$@"`
22866 }
22867
22868 # func_len string
22869 # STRING may not start with a hyphen.
22870 func_len ()
22871 {
22872 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22873 }
22874
22875 _LT_EOF
22876 esac
22877
22878 case $lt_shell_append in
22879 yes)
22880 cat << \_LT_EOF >> "$cfgfile"
22881
22882 # func_append var value
22883 # Append VALUE to the end of shell variable VAR.
22884 func_append ()
22885 {
22886 eval "$1+=\$2"
22887 }
22888 _LT_EOF
22889 ;;
22890 *)
22891 cat << \_LT_EOF >> "$cfgfile"
22892
22893 # func_append var value
22894 # Append VALUE to the end of shell variable VAR.
22895 func_append ()
22896 {
22897 eval "$1=\$$1\$2"
22898 }
22899
22900 _LT_EOF
22901 ;;
22902 esac
22903
22904
22905 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22906 || (rm -f "$cfgfile"; exit 1)
22907
22908 mv -f "$cfgfile" "$ofile" ||
22909 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22910 chmod +x "$ofile"
22911
22912 ;;
22913
22914 esac
22915 done # for ac_tag
22916
22917
22918 { (exit 0); exit 0; }
22919 _ACEOF
22920 chmod +x $CONFIG_STATUS
22921 ac_clean_files=$ac_clean_files_save
22922
22923 test $ac_write_fail = 0 ||
22924 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22925 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22926 { (exit 1); exit 1; }; }
22927
22928
22929 # configure is writing to config.log, and then calls config.status.
22930 # config.status does its own redirection, appending to config.log.
22931 # Unfortunately, on DOS this fails, as config.log is still kept open
22932 # by configure, so config.status won't be able to write to it; its
22933 # output is simply discarded. So we exec the FD to /dev/null,
22934 # effectively closing config.log, so it can be properly (re)opened and
22935 # appended to by config.status. When coming back to configure, we
22936 # need to make the FD available again.
22937 if test "$no_create" != yes; then
22938 ac_cs_success=:
22939 ac_config_status_args=
22940 test "$silent" = yes &&
22941 ac_config_status_args="$ac_config_status_args --quiet"
22942 exec 5>/dev/null
22943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22944 exec 5>>config.log
22945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22946 # would make configure fail if this is the last instruction.
22947 $ac_cs_success || { (exit 1); exit 1; }
22948 fi
22949 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22950 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22951 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22952 fi
22953