]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Linux-2.6.33 compat, .ctl_name removed from struct ctl_table
[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 KERNELCPPFLAGS
795 KERNELMAKE_PARAMS
796 LINUX_SYMBOLS
797 LINUX_VERSION
798 LINUX_OBJ
799 LINUX
800 SPL_CONFIG
801 LICENSE
802 CPP
803 OTOOL64
804 OTOOL
805 LIPO
806 NMEDIT
807 DSYMUTIL
808 lt_ECHO
809 RANLIB
810 AR
811 OBJDUMP
812 LN_S
813 NM
814 ac_ct_DUMPBIN
815 DUMPBIN
816 LD
817 FGREP
818 EGREP
819 GREP
820 SED
821 LIBTOOL
822 am__fastdepCC_FALSE
823 am__fastdepCC_TRUE
824 CCDEPMODE
825 AMDEPBACKSLASH
826 AMDEP_FALSE
827 AMDEP_TRUE
828 am__quote
829 am__include
830 DEPDIR
831 OBJEXT
832 EXEEXT
833 ac_ct_CC
834 CPPFLAGS
835 LDFLAGS
836 CFLAGS
837 CC
838 am__untar
839 am__tar
840 AMTAR
841 am__leading_dot
842 SET_MAKE
843 AWK
844 mkdir_p
845 MKDIR_P
846 INSTALL_STRIP_PROGRAM
847 STRIP
848 install_sh
849 MAKEINFO
850 AUTOHEADER
851 AUTOMAKE
852 AUTOCONF
853 ACLOCAL
854 VERSION
855 PACKAGE
856 CYGPATH_W
857 am__isrc
858 INSTALL_DATA
859 INSTALL_SCRIPT
860 INSTALL_PROGRAM
861 AM_BACKSLASH
862 AM_DEFAULT_VERBOSITY
863 MAINT
864 MAINTAINER_MODE_FALSE
865 MAINTAINER_MODE_TRUE
866 target_os
867 target_vendor
868 target_cpu
869 target
870 host_os
871 host_vendor
872 host_cpu
873 host
874 build_os
875 build_vendor
876 build_cpu
877 build
878 SPL_META_LT_AGE
879 SPL_META_LT_REVISION
880 SPL_META_LT_CURRENT
881 SPL_META_AUTHOR
882 SPL_META_DATA
883 SPL_META_ALIAS
884 SPL_META_RELEASE
885 SPL_META_VERSION
886 SPL_META_NAME
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_BUGREPORT
918 PACKAGE_STRING
919 PACKAGE_VERSION
920 PACKAGE_TARNAME
921 PACKAGE_NAME
922 PATH_SEPARATOR
923 SHELL'
924 ac_subst_files=''
925 ac_user_opts='
926 enable_option_checking
927 enable_maintainer_mode
928 enable_silent_rules
929 enable_dependency_tracking
930 enable_shared
931 enable_static
932 with_pic
933 enable_fast_install
934 with_gnu_ld
935 enable_libtool_lock
936 with_config
937 with_linux
938 with_linux_obj
939 enable_debug
940 enable_debug_kmem
941 enable_debug_kmem_tracking
942 enable_atomic_spinlocks
943 '
944 ac_precious_vars='build_alias
945 host_alias
946 target_alias
947 CC
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
952 CPP'
953
954
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
976
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1002
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1006 do
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1010 ac_prev=
1011 continue
1012 fi
1013
1014 case $ac_option in
1015 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 *) ac_optarg=yes ;;
1017 esac
1018
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1020
1021 case $ac_dashdash$ac_option in
1022 --)
1023 ac_dashdash=yes ;;
1024
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 ac_prev=bindir ;;
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1029
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1034
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1041
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1044
1045 -datadir | --datadir | --datadi | --datad)
1046 ac_prev=datadir ;;
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1049
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1056
1057 -disable-* | --disable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067 "enable_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1083
1084 -enable-* | --enable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1100
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1109
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1113
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1120
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1125
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1131
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1138
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1143
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1148
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1155
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1160
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1167
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1172
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1176
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1180
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1184
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1193
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1198
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1205
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1212
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1229
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1234
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1239
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=\$ac_optarg ;;
1305
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1311 { (exit 1); exit 1; }; }
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=no ;;
1322
1323 --x)
1324 # Obsolete; use --with-x.
1325 with_x=yes ;;
1326
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1333
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1340
1341 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1342 Try \`$0 --help' for more information." >&2
1343 { (exit 1); exit 1; }; }
1344 ;;
1345
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1350 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1351 { (exit 1); exit 1; }; }
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1354
1355 *)
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1361 ;;
1362
1363 esac
1364 done
1365
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1369 { (exit 1); exit 1; }; }
1370 fi
1371
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1376 { (exit 1); exit 1; }; } ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 esac
1379 fi
1380
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1386 do
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1389 case $ac_val in
1390 */ )
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1393 esac
1394 # Be sure to have absolute directory names.
1395 case $ac_val in
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 esac
1399 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1400 { (exit 1); exit 1; }; }
1401 done
1402
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1406 build=$build_alias
1407 host=$host_alias
1408 target=$target_alias
1409
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1415 If a cross compiler is detected then cross compile mode will be used." >&2
1416 elif test "x$build_alias" != "x$host_alias"; then
1417 cross_compiling=yes
1418 fi
1419 fi
1420
1421 ac_tool_prefix=
1422 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423
1424 test "$silent" = yes && exec 6>/dev/null
1425
1426
1427 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1428 ac_ls_di=`ls -di .` &&
1429 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1430 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1431 { (exit 1); exit 1; }; }
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1434 { (exit 1); exit 1; }; }
1435
1436
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\/\)[^/].*/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\/\)$/{
1456 s//\1/
1457 q
1458 }
1459 /^X\(\/\).*/{
1460 s//\1/
1461 q
1462 }
1463 s/.*/./; q'`
1464 srcdir=$ac_confdir
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 srcdir=..
1467 fi
1468 else
1469 ac_srcdir_defaulted=no
1470 fi
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1474 { (exit 1); exit 1; }; }
1475 fi
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1479 { (exit 1); exit 1; }; }
1480 pwd)`
1481 # When building in place, set srcdir=.
1482 if test "$ac_abs_confdir" = "$ac_pwd"; then
1483 srcdir=.
1484 fi
1485 # Remove unnecessary trailing slashes from srcdir.
1486 # Double slashes in file names in object file debugging info
1487 # mess up M-x gdb in Emacs.
1488 case $srcdir in
1489 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1490 esac
1491 for ac_var in $ac_precious_vars; do
1492 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_env_${ac_var}_value=\$${ac_var}
1494 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1495 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1496 done
1497
1498 #
1499 # Report the --help message.
1500 #
1501 if test "$ac_init_help" = "long"; then
1502 # Omit some internal or obsolete options to make the list less imposing.
1503 # This message is too long to be a string in the A/UX 3.1 sh.
1504 cat <<_ACEOF
1505 \`configure' configures this package to adapt to many kinds of systems.
1506
1507 Usage: $0 [OPTION]... [VAR=VALUE]...
1508
1509 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1510 VAR=VALUE. See below for descriptions of some of the useful variables.
1511
1512 Defaults for the options are specified in brackets.
1513
1514 Configuration:
1515 -h, --help display this help and exit
1516 --help=short display options specific to this package
1517 --help=recursive display the short help of all the included packages
1518 -V, --version display version information and exit
1519 -q, --quiet, --silent do not print \`checking...' messages
1520 --cache-file=FILE cache test results in FILE [disabled]
1521 -C, --config-cache alias for \`--cache-file=config.cache'
1522 -n, --no-create do not create output files
1523 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524
1525 Installation directories:
1526 --prefix=PREFIX install architecture-independent files in PREFIX
1527 [$ac_default_prefix]
1528 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1529 [PREFIX]
1530
1531 By default, \`make install' will install all the files in
1532 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1533 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1534 for instance \`--prefix=\$HOME'.
1535
1536 For better control, use the options below.
1537
1538 Fine tuning of the installation directories:
1539 --bindir=DIR user executables [EPREFIX/bin]
1540 --sbindir=DIR system admin executables [EPREFIX/sbin]
1541 --libexecdir=DIR program executables [EPREFIX/libexec]
1542 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1543 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1544 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1545 --libdir=DIR object code libraries [EPREFIX/lib]
1546 --includedir=DIR C header files [PREFIX/include]
1547 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1548 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1549 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1550 --infodir=DIR info documentation [DATAROOTDIR/info]
1551 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1552 --mandir=DIR man documentation [DATAROOTDIR/man]
1553 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1554 --htmldir=DIR html documentation [DOCDIR]
1555 --dvidir=DIR dvi documentation [DOCDIR]
1556 --pdfdir=DIR pdf documentation [DOCDIR]
1557 --psdir=DIR ps documentation [DOCDIR]
1558 _ACEOF
1559
1560 cat <<\_ACEOF
1561
1562 Program names:
1563 --program-prefix=PREFIX prepend PREFIX to installed program names
1564 --program-suffix=SUFFIX append SUFFIX to installed program names
1565 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1566
1567 System types:
1568 --build=BUILD configure for building on BUILD [guessed]
1569 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1570 --target=TARGET configure for building compilers for TARGET [HOST]
1571 _ACEOF
1572 fi
1573
1574 if test -n "$ac_init_help"; then
1575
1576 cat <<\_ACEOF
1577
1578 Optional Features:
1579 --disable-option-checking ignore unrecognized --enable/--with options
1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1582 --enable-maintainer-mode enable make rules and dependencies not useful
1583 (and sometimes confusing) to the casual installer
1584 --enable-silent-rules less verbose build output (undo: `make V=1')
1585 --disable-silent-rules verbose build output (undo: `make V=0')
1586 --disable-dependency-tracking speeds up one-time build
1587 --enable-dependency-tracking do not reject slow dependency extractors
1588 --enable-shared[=PKGS] build shared libraries [default=yes]
1589 --enable-static[=PKGS] build static libraries [default=yes]
1590 --enable-fast-install[=PKGS]
1591 optimize for fast installation [default=yes]
1592 --disable-libtool-lock avoid locking (might break parallel builds)
1593 --enable-debug Enable generic debug support [default=no]
1594 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1595 --enable-debug-kmem-tracking
1596 Enable detailed kmem tracking [default=no]
1597 --enable-atomic-spinlocks
1598 Atomic types use spinlocks [default=check]
1599
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic try to use only PIC/non-PIC objects [default=use
1604 both]
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1607 --with-linux=PATH Path to kernel source
1608 --with-linux-obj=PATH Path to kernel build objects
1609
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 CPP C preprocessor
1619
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 _ACEOF
1624 ac_status=$?
1625 fi
1626
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
1633 ac_builddir=.
1634
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *)
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1650
1651 case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1680 fi
1681
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684 cat <<\_ACEOF
1685 configure
1686 generated by GNU Autoconf 2.63
1687
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693 exit
1694 fi
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1698
1699 It was created by $as_me, which was
1700 generated by GNU Autoconf 2.63. Invocation command line was
1701
1702 $ $0 $@
1703
1704 _ACEOF
1705 exec 5>>config.log
1706 {
1707 cat <<_ASUNAME
1708 ## --------- ##
1709 ## Platform. ##
1710 ## --------- ##
1711
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1720
1721 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1725 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1728
1729 _ASUNAME
1730
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 $as_echo "PATH: $as_dir"
1737 done
1738 IFS=$as_save_IFS
1739
1740 } >&5
1741
1742 cat >&5 <<_ACEOF
1743
1744
1745 ## ----------- ##
1746 ## Core tests. ##
1747 ## ----------- ##
1748
1749 _ACEOF
1750
1751
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1757 ac_configure_args=
1758 ac_configure_args0=
1759 ac_configure_args1=
1760 ac_must_keep_next=false
1761 for ac_pass in 1 2
1762 do
1763 for ac_arg
1764 do
1765 case $ac_arg in
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1769 continue ;;
1770 *\'*)
1771 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 esac
1773 case $ac_pass in
1774 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775 2)
1776 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1779 else
1780 case $ac_arg in
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 esac
1788 ;;
1789 -* ) ac_must_keep_next=true ;;
1790 esac
1791 fi
1792 ac_configure_args="$ac_configure_args '$ac_arg'"
1793 ;;
1794 esac
1795 done
1796 done
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1807 {
1808 echo
1809
1810 cat <<\_ASBOX
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1814 _ASBOX
1815 echo
1816 # The following way of writing the cache mishandles newlines in values,
1817 (
1818 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819 eval ac_val=\$$ac_var
1820 case $ac_val in #(
1821 *${as_nl}*)
1822 case $ac_var in #(
1823 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1825 esac
1826 case $ac_var in #(
1827 _ | IFS | as_nl) ;; #(
1828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
1833 (set) 2>&1 |
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1836 sed -n \
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
1840 *)
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842 ;;
1843 esac |
1844 sort
1845 )
1846 echo
1847
1848 cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1855 do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 $as_echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1863
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880 fi
1881
1882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888 echo
1889 cat confdefs.h
1890 echo
1891 fi
1892 test "$ac_signal" != 0 &&
1893 $as_echo "$as_me: caught signal $ac_signal"
1894 $as_echo "$as_me: exit $exit_status"
1895 } >&5
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 exit $exit_status
1899 ' 0
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1904
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1907
1908 # Predefined preprocessor variables.
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1933
1934
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer an explicitly selected file to automatically selected ones.
1937 ac_site_file1=NONE
1938 ac_site_file2=NONE
1939 if test -n "$CONFIG_SITE"; then
1940 ac_site_file1=$CONFIG_SITE
1941 elif test "x$prefix" != xNONE; then
1942 ac_site_file1=$prefix/share/config.site
1943 ac_site_file2=$prefix/etc/config.site
1944 else
1945 ac_site_file1=$ac_default_prefix/share/config.site
1946 ac_site_file2=$ac_default_prefix/etc/config.site
1947 fi
1948 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1949 do
1950 test "x$ac_site_file" = xNONE && continue
1951 if test -r "$ac_site_file"; then
1952 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1954 sed 's/^/| /' "$ac_site_file" >&5
1955 . "$ac_site_file"
1956 fi
1957 done
1958
1959 if test -r "$cache_file"; then
1960 # Some versions of bash will fail to source /dev/null (special
1961 # files actually), so we avoid doing that.
1962 if test -f "$cache_file"; then
1963 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964 $as_echo "$as_me: loading cache $cache_file" >&6;}
1965 case $cache_file in
1966 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1967 *) . "./$cache_file";;
1968 esac
1969 fi
1970 else
1971 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972 $as_echo "$as_me: creating cache $cache_file" >&6;}
1973 >$cache_file
1974 fi
1975
1976 # Check that the precious variables saved in the cache have kept the same
1977 # value.
1978 ac_cache_corrupted=false
1979 for ac_var in $ac_precious_vars; do
1980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981 eval ac_new_set=\$ac_env_${ac_var}_set
1982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983 eval ac_new_val=\$ac_env_${ac_var}_value
1984 case $ac_old_set,$ac_new_set in
1985 set,)
1986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1989 ,set)
1990 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992 ac_cache_corrupted=: ;;
1993 ,);;
1994 *)
1995 if test "x$ac_old_val" != "x$ac_new_val"; then
1996 # differences in whitespace do not lead to failure.
1997 ac_old_val_w=`echo x $ac_old_val`
1998 ac_new_val_w=`echo x $ac_new_val`
1999 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2001 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2002 ac_cache_corrupted=:
2003 else
2004 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2005 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2006 eval $ac_var=\$ac_old_val
2007 fi
2008 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2009 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2010 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2011 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2012 fi;;
2013 esac
2014 # Pass precious variables to config.status.
2015 if test "$ac_new_set" = set; then
2016 case $ac_new_val in
2017 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 *) ac_arg=$ac_var=$ac_new_val ;;
2019 esac
2020 case " $ac_configure_args " in
2021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023 esac
2024 fi
2025 done
2026 if $ac_cache_corrupted; then
2027 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2029 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033 { (exit 1); exit 1; }; }
2034 fi
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064
2065
2066 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2067 $as_echo_n "checking metadata... " >&6; }
2068
2069 META="$srcdir/META"
2070 _spl_ac_meta_got_file=no
2071 if test -f "$META"; then
2072 _spl_ac_meta_got_file=yes
2073
2074 SPL_META_NAME=`perl -n\
2075 -e "BEGIN { \\$key=shift @ARGV; }"\
2076 -e "next unless s/^\s*\\$key[:=]//i;"\
2077 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2078 -e "s/^\s+//;"\
2079 -e "s/\s+$//;"\
2080 -e "s/^(['\"])(.*)\1/\\$2/;"\
2081 -e "\\$val=\\$_;"\
2082 -e "END { print \\$val if defined \\$val; }"\
2083 '(?:NAME|PROJECT|PACKAGE)' $META`;
2084 if test -n "$SPL_META_NAME"; then
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define SPL_META_NAME "$SPL_META_NAME"
2088 _ACEOF
2089
2090
2091 fi
2092
2093 SPL_META_VERSION=`perl -n\
2094 -e "BEGIN { \\$key=shift @ARGV; }"\
2095 -e "next unless s/^\s*\\$key[:=]//i;"\
2096 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2097 -e "s/^\s+//;"\
2098 -e "s/\s+$//;"\
2099 -e "s/^(['\"])(.*)\1/\\$2/;"\
2100 -e "\\$val=\\$_;"\
2101 -e "END { print \\$val if defined \\$val; }"\
2102 'VERSION' $META`;
2103 if test -n "$SPL_META_VERSION"; then
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define SPL_META_VERSION "$SPL_META_VERSION"
2107 _ACEOF
2108
2109
2110 fi
2111
2112 SPL_META_RELEASE=`perl -n\
2113 -e "BEGIN { \\$key=shift @ARGV; }"\
2114 -e "next unless s/^\s*\\$key[:=]//i;"\
2115 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2116 -e "s/^\s+//;"\
2117 -e "s/\s+$//;"\
2118 -e "s/^(['\"])(.*)\1/\\$2/;"\
2119 -e "\\$val=\\$_;"\
2120 -e "END { print \\$val if defined \\$val; }"\
2121 'RELEASE' $META`;
2122 if test -n "$SPL_META_RELEASE"; then
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2126 _ACEOF
2127
2128
2129 fi
2130
2131 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2132 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2133 test -n "$SPL_META_RELEASE" &&
2134 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2138 _ACEOF
2139
2140
2141 fi
2142
2143 SPL_META_DATA=`perl -n\
2144 -e "BEGIN { \\$key=shift @ARGV; }"\
2145 -e "next unless s/^\s*\\$key[:=]//i;"\
2146 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2147 -e "s/^\s+//;"\
2148 -e "s/\s+$//;"\
2149 -e "s/^(['\"])(.*)\1/\\$2/;"\
2150 -e "\\$val=\\$_;"\
2151 -e "END { print \\$val if defined \\$val; }"\
2152 'DATE' $META`;
2153 if test -n "$SPL_META_DATA"; then
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define SPL_META_DATA "$SPL_META_DATA"
2157 _ACEOF
2158
2159
2160 fi
2161
2162 SPL_META_AUTHOR=`perl -n\
2163 -e "BEGIN { \\$key=shift @ARGV; }"\
2164 -e "next unless s/^\s*\\$key[:=]//i;"\
2165 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2166 -e "s/^\s+//;"\
2167 -e "s/\s+$//;"\
2168 -e "s/^(['\"])(.*)\1/\\$2/;"\
2169 -e "\\$val=\\$_;"\
2170 -e "END { print \\$val if defined \\$val; }"\
2171 'AUTHOR' $META`;
2172 if test -n "$SPL_META_AUTHOR"; then
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2176 _ACEOF
2177
2178
2179 fi
2180
2181
2182 SPL_META_LT_CURRENT=`perl -n\
2183 -e "BEGIN { \\$key=shift @ARGV; }"\
2184 -e "next unless s/^\s*\\$key[:=]//i;"\
2185 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2186 -e "s/^\s+//;"\
2187 -e "s/\s+$//;"\
2188 -e "s/^(['\"])(.*)\1/\\$2/;"\
2189 -e "\\$val=\\$_;"\
2190 -e "END { print \\$val if defined \\$val; }"\
2191 'LT_CURRENT' $META`;
2192 SPL_META_LT_REVISION=`perl -n\
2193 -e "BEGIN { \\$key=shift @ARGV; }"\
2194 -e "next unless s/^\s*\\$key[:=]//i;"\
2195 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2196 -e "s/^\s+//;"\
2197 -e "s/\s+$//;"\
2198 -e "s/^(['\"])(.*)\1/\\$2/;"\
2199 -e "\\$val=\\$_;"\
2200 -e "END { print \\$val if defined \\$val; }"\
2201 'LT_REVISION' $META`;
2202 SPL_META_LT_AGE=`perl -n\
2203 -e "BEGIN { \\$key=shift @ARGV; }"\
2204 -e "next unless s/^\s*\\$key[:=]//i;"\
2205 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2206 -e "s/^\s+//;"\
2207 -e "s/\s+$//;"\
2208 -e "s/^(['\"])(.*)\1/\\$2/;"\
2209 -e "\\$val=\\$_;"\
2210 -e "END { print \\$val if defined \\$val; }"\
2211 'LT_AGE' $META`;
2212 if test -n "$SPL_META_LT_CURRENT" \
2213 -o -n "$SPL_META_LT_REVISION" \
2214 -o -n "$SPL_META_LT_AGE"; then
2215 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2216 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2217 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2221 _ACEOF
2222
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2226 _ACEOF
2227
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2231 _ACEOF
2232
2233
2234
2235
2236 fi
2237 fi
2238
2239 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2240 $as_echo "$_spl_ac_meta_got_file" >&6; }
2241
2242
2243 ac_aux_dir=
2244 for ac_dir in config "$srcdir"/config; do
2245 if test -f "$ac_dir/install-sh"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/install-sh -c"
2248 break
2249 elif test -f "$ac_dir/install.sh"; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/install.sh -c"
2252 break
2253 elif test -f "$ac_dir/shtool"; then
2254 ac_aux_dir=$ac_dir
2255 ac_install_sh="$ac_aux_dir/shtool install -c"
2256 break
2257 fi
2258 done
2259 if test -z "$ac_aux_dir"; then
2260 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2261 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264
2265 # These three variables are undocumented and unsupported,
2266 # and are intended to be withdrawn in a future Autoconf release.
2267 # They can cause serious problems if a builder's source tree is in a directory
2268 # whose full name contains unusual characters.
2269 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2270 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2271 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2272
2273
2274 # Make sure we can run config.sub.
2275 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2276 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2277 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2278 { (exit 1); exit 1; }; }
2279
2280 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2281 $as_echo_n "checking build system type... " >&6; }
2282 if test "${ac_cv_build+set}" = set; then
2283 $as_echo_n "(cached) " >&6
2284 else
2285 ac_build_alias=$build_alias
2286 test "x$ac_build_alias" = x &&
2287 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2288 test "x$ac_build_alias" = x &&
2289 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2290 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2291 { (exit 1); exit 1; }; }
2292 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2293 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2294 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2295 { (exit 1); exit 1; }; }
2296
2297 fi
2298 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2299 $as_echo "$ac_cv_build" >&6; }
2300 case $ac_cv_build in
2301 *-*-*) ;;
2302 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2303 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2304 { (exit 1); exit 1; }; };;
2305 esac
2306 build=$ac_cv_build
2307 ac_save_IFS=$IFS; IFS='-'
2308 set x $ac_cv_build
2309 shift
2310 build_cpu=$1
2311 build_vendor=$2
2312 shift; shift
2313 # Remember, the first character of IFS is used to create $*,
2314 # except with old shells:
2315 build_os=$*
2316 IFS=$ac_save_IFS
2317 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2318
2319
2320 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2321 $as_echo_n "checking host system type... " >&6; }
2322 if test "${ac_cv_host+set}" = set; then
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test "x$host_alias" = x; then
2326 ac_cv_host=$ac_cv_build
2327 else
2328 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2329 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2330 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2331 { (exit 1); exit 1; }; }
2332 fi
2333
2334 fi
2335 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2336 $as_echo "$ac_cv_host" >&6; }
2337 case $ac_cv_host in
2338 *-*-*) ;;
2339 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2340 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2341 { (exit 1); exit 1; }; };;
2342 esac
2343 host=$ac_cv_host
2344 ac_save_IFS=$IFS; IFS='-'
2345 set x $ac_cv_host
2346 shift
2347 host_cpu=$1
2348 host_vendor=$2
2349 shift; shift
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2352 host_os=$*
2353 IFS=$ac_save_IFS
2354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2355
2356
2357 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2358 $as_echo_n "checking target system type... " >&6; }
2359 if test "${ac_cv_target+set}" = set; then
2360 $as_echo_n "(cached) " >&6
2361 else
2362 if test "x$target_alias" = x; then
2363 ac_cv_target=$ac_cv_host
2364 else
2365 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2366 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2367 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2368 { (exit 1); exit 1; }; }
2369 fi
2370
2371 fi
2372 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2373 $as_echo "$ac_cv_target" >&6; }
2374 case $ac_cv_target in
2375 *-*-*) ;;
2376 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2377 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2378 { (exit 1); exit 1; }; };;
2379 esac
2380 target=$ac_cv_target
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_target
2383 shift
2384 target_cpu=$1
2385 target_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 target_os=$*
2390 IFS=$ac_save_IFS
2391 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2392
2393
2394 # The aliases save the names the user supplied, while $host etc.
2395 # will get canonicalized.
2396 test -n "$target_alias" &&
2397 test "$program_prefix$program_suffix$program_transform_name" = \
2398 NONENONEs,x,x, &&
2399 program_prefix=${target_alias}-
2400
2401 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2402 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2403 # Check whether --enable-maintainer-mode was given.
2404 if test "${enable_maintainer_mode+set}" = set; then
2405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2406 else
2407 USE_MAINTAINER_MODE=no
2408 fi
2409
2410 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2411 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2412 if test $USE_MAINTAINER_MODE = yes; then
2413 MAINTAINER_MODE_TRUE=
2414 MAINTAINER_MODE_FALSE='#'
2415 else
2416 MAINTAINER_MODE_TRUE='#'
2417 MAINTAINER_MODE_FALSE=
2418 fi
2419
2420 MAINT=$MAINTAINER_MODE_TRUE
2421
2422
2423 # Check whether --enable-silent-rules was given.
2424 if test "${enable_silent_rules+set}" = set; then
2425 enableval=$enable_silent_rules;
2426 fi
2427
2428 case $enable_silent_rules in
2429 yes) AM_DEFAULT_VERBOSITY=0;;
2430 no) AM_DEFAULT_VERBOSITY=1;;
2431 *) AM_DEFAULT_VERBOSITY=1;;
2432 esac
2433 AM_BACKSLASH='\'
2434
2435 am__api_version='1.11'
2436
2437 # Find a good install program. We prefer a C program (faster),
2438 # so one script is as good as another. But avoid the broken or
2439 # incompatible versions:
2440 # SysV /etc/install, /usr/sbin/install
2441 # SunOS /usr/etc/install
2442 # IRIX /sbin/install
2443 # AIX /bin/install
2444 # AmigaOS /C/install, which installs bootblocks on floppy discs
2445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2448 # OS/2's system install, which has a completely different semantic
2449 # ./install, which can be erroneously created by make from ./install.sh.
2450 # Reject install programs that cannot install multiple files.
2451 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2452 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2453 if test -z "$INSTALL"; then
2454 if test "${ac_cv_path_install+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 # Account for people who put trailing slashes in PATH elements.
2463 case $as_dir/ in
2464 ./ | .// | /cC/* | \
2465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2466 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2467 /usr/ucb/* ) ;;
2468 *)
2469 # OSF1 and SCO ODT 3.0 have their own names for install.
2470 # Don't use installbsd from OSF since it installs stuff as root
2471 # by default.
2472 for ac_prog in ginstall scoinst install; do
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2475 if test $ac_prog = install &&
2476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # AIX install. It has an incompatible calling convention.
2478 :
2479 elif test $ac_prog = install &&
2480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # program-specific install script used by HP pwplus--don't use.
2482 :
2483 else
2484 rm -rf conftest.one conftest.two conftest.dir
2485 echo one > conftest.one
2486 echo two > conftest.two
2487 mkdir conftest.dir
2488 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2489 test -s conftest.one && test -s conftest.two &&
2490 test -s conftest.dir/conftest.one &&
2491 test -s conftest.dir/conftest.two
2492 then
2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 break 3
2495 fi
2496 fi
2497 fi
2498 done
2499 done
2500 ;;
2501 esac
2502
2503 done
2504 IFS=$as_save_IFS
2505
2506 rm -rf conftest.one conftest.two conftest.dir
2507
2508 fi
2509 if test "${ac_cv_path_install+set}" = set; then
2510 INSTALL=$ac_cv_path_install
2511 else
2512 # As a last resort, use the slow shell script. Don't cache a
2513 # value for INSTALL within a source directory, because that will
2514 # break other packages using the cache if that directory is
2515 # removed, or if the value is a relative name.
2516 INSTALL=$ac_install_sh
2517 fi
2518 fi
2519 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2520 $as_echo "$INSTALL" >&6; }
2521
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523 # It thinks the first close brace ends the variable substitution.
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2527
2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529
2530 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2531 $as_echo_n "checking whether build environment is sane... " >&6; }
2532 # Just in case
2533 sleep 1
2534 echo timestamp > conftest.file
2535 # Reject unsafe characters in $srcdir or the absolute working directory
2536 # name. Accept space and tab only in the latter.
2537 am_lf='
2538 '
2539 case `pwd` in
2540 *[\\\"\#\$\&\'\`$am_lf]*)
2541 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2542 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2543 { (exit 1); exit 1; }; };;
2544 esac
2545 case $srcdir in
2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2547 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2548 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2549 { (exit 1); exit 1; }; };;
2550 esac
2551
2552 # Do `set' in a subshell so we don't clobber the current shell's
2553 # arguments. Must try -L first in case configure is actually a
2554 # symlink; some systems play weird games with the mod time of symlinks
2555 # (eg FreeBSD returns the mod time of the symlink's containing
2556 # directory).
2557 if (
2558 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2559 if test "$*" = "X"; then
2560 # -L didn't work.
2561 set X `ls -t "$srcdir/configure" conftest.file`
2562 fi
2563 rm -f conftest.file
2564 if test "$*" != "X $srcdir/configure conftest.file" \
2565 && test "$*" != "X conftest.file $srcdir/configure"; then
2566
2567 # If neither matched, then we have a broken ls. This can happen
2568 # if, for instance, CONFIG_SHELL is bash and it inherits a
2569 # broken ls alias from the environment. This has actually
2570 # happened. Such a system could not be considered "sane".
2571 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2572 alias in your environment" >&5
2573 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2574 alias in your environment" >&2;}
2575 { (exit 1); exit 1; }; }
2576 fi
2577
2578 test "$2" = conftest.file
2579 )
2580 then
2581 # Ok.
2582 :
2583 else
2584 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2585 Check your system clock" >&5
2586 $as_echo "$as_me: error: newly created file is older than distributed files!
2587 Check your system clock" >&2;}
2588 { (exit 1); exit 1; }; }
2589 fi
2590 { $as_echo "$as_me:$LINENO: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 test "$program_prefix" != NONE &&
2593 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2594 # Use a double $ so make ignores it.
2595 test "$program_suffix" != NONE &&
2596 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2597 # Double any \ or $.
2598 # By default was `s,x,x', remove it if useless.
2599 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2600 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2601
2602 # expand $ac_aux_dir to an absolute path
2603 am_aux_dir=`cd $ac_aux_dir && pwd`
2604
2605 if test x"${MISSING+set}" != xset; then
2606 case $am_aux_dir in
2607 *\ * | *\ *)
2608 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2609 *)
2610 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2611 esac
2612 fi
2613 # Use eval to expand $SHELL
2614 if eval "$MISSING --run true"; then
2615 am_missing_run="$MISSING --run "
2616 else
2617 am_missing_run=
2618 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2619 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2620 fi
2621
2622 if test x"${install_sh}" != xset; then
2623 case $am_aux_dir in
2624 *\ * | *\ *)
2625 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2626 *)
2627 install_sh="\${SHELL} $am_aux_dir/install-sh"
2628 esac
2629 fi
2630
2631 # Installed binaries are usually stripped using `strip' when the user
2632 # run `make install-strip'. However `strip' might not be the right
2633 # tool to use in cross-compilation environments, therefore Automake
2634 # will honor the `STRIP' environment variable to overrule this program.
2635 if test "$cross_compiling" != no; then
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}strip; ac_word=$2
2639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_STRIP+set}" = set; then
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$STRIP"; then
2645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 STRIP=$ac_cv_prog_STRIP
2665 if test -n "$STRIP"; then
2666 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2667 $as_echo "$STRIP" >&6; }
2668 else
2669 { $as_echo "$as_me:$LINENO: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673
2674 fi
2675 if test -z "$ac_cv_prog_STRIP"; then
2676 ac_ct_STRIP=$STRIP
2677 # Extract the first word of "strip", so it can be a program name with args.
2678 set dummy strip; ac_word=$2
2679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$ac_ct_STRIP"; then
2685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_ac_ct_STRIP="strip"
2695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2705 if test -n "$ac_ct_STRIP"; then
2706 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2707 $as_echo "$ac_ct_STRIP" >&6; }
2708 else
2709 { $as_echo "$as_me:$LINENO: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713 if test "x$ac_ct_STRIP" = x; then
2714 STRIP=":"
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722 STRIP=$ac_ct_STRIP
2723 fi
2724 else
2725 STRIP="$ac_cv_prog_STRIP"
2726 fi
2727
2728 fi
2729 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2730
2731 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2732 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2733 if test -z "$MKDIR_P"; then
2734 if test "${ac_cv_path_mkdir+set}" = set; then
2735 $as_echo_n "(cached) " >&6
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_prog in mkdir gmkdir; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2745 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2746 'mkdir (GNU coreutils) '* | \
2747 'mkdir (coreutils) '* | \
2748 'mkdir (fileutils) '4.1*)
2749 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2750 break 3;;
2751 esac
2752 done
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758
2759 if test "${ac_cv_path_mkdir+set}" = set; then
2760 MKDIR_P="$ac_cv_path_mkdir -p"
2761 else
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for MKDIR_P within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 test -d ./--version && rmdir ./--version
2767 MKDIR_P="$ac_install_sh -d"
2768 fi
2769 fi
2770 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2771 $as_echo "$MKDIR_P" >&6; }
2772
2773 mkdir_p="$MKDIR_P"
2774 case $mkdir_p in
2775 [\\/$]* | ?:[\\/]*) ;;
2776 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2777 esac
2778
2779 for ac_prog in gawk mawk nawk awk
2780 do
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_AWK+set}" = set; then
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$AWK"; then
2789 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_AWK="$ac_prog"
2799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 AWK=$ac_cv_prog_AWK
2809 if test -n "$AWK"; then
2810 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2811 $as_echo "$AWK" >&6; }
2812 else
2813 { $as_echo "$as_me:$LINENO: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 test -n "$AWK" && break
2819 done
2820
2821 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2822 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2823 set x ${MAKE-make}
2824 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2825 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2826 $as_echo_n "(cached) " >&6
2827 else
2828 cat >conftest.make <<\_ACEOF
2829 SHELL = /bin/sh
2830 all:
2831 @echo '@@@%%%=$(MAKE)=@@@%%%'
2832 _ACEOF
2833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2834 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2835 *@@@%%%=?*=@@@%%%*)
2836 eval ac_cv_prog_make_${ac_make}_set=yes;;
2837 *)
2838 eval ac_cv_prog_make_${ac_make}_set=no;;
2839 esac
2840 rm -f conftest.make
2841 fi
2842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2843 { $as_echo "$as_me:$LINENO: result: yes" >&5
2844 $as_echo "yes" >&6; }
2845 SET_MAKE=
2846 else
2847 { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2849 SET_MAKE="MAKE=${MAKE-make}"
2850 fi
2851
2852 rm -rf .tst 2>/dev/null
2853 mkdir .tst 2>/dev/null
2854 if test -d .tst; then
2855 am__leading_dot=.
2856 else
2857 am__leading_dot=_
2858 fi
2859 rmdir .tst 2>/dev/null
2860
2861 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2862 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2863 # is not polluted with repeated "-I."
2864 am__isrc=' -I$(srcdir)'
2865 # test to see if srcdir already configured
2866 if test -f $srcdir/config.status; then
2867 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2868 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2869 { (exit 1); exit 1; }; }
2870 fi
2871 fi
2872
2873 # test whether we have cygpath
2874 if test -z "$CYGPATH_W"; then
2875 if (cygpath --version) >/dev/null 2>/dev/null; then
2876 CYGPATH_W='cygpath -w'
2877 else
2878 CYGPATH_W=echo
2879 fi
2880 fi
2881
2882
2883 # Define the identity of the package.
2884 PACKAGE=$SPL_META_NAME
2885 VERSION=$SPL_META_VERSION
2886
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE "$PACKAGE"
2890 _ACEOF
2891
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define VERSION "$VERSION"
2895 _ACEOF
2896
2897 # Some tools Automake needs.
2898
2899 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2900
2901
2902 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2903
2904
2905 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2906
2907
2908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2909
2910
2911 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2912
2913 # We need awk for the "check" target. The system "awk" is bad on
2914 # some platforms.
2915 # Always define AMTAR for backward compatibility.
2916
2917 AMTAR=${AMTAR-"${am_missing_run}tar"}
2918
2919 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2920
2921
2922
2923
2924
2925 ac_config_headers="$ac_config_headers spl_config.h"
2926
2927
2928 # Find a good install program. We prefer a C program (faster),
2929 # so one script is as good as another. But avoid the broken or
2930 # incompatible versions:
2931 # SysV /etc/install, /usr/sbin/install
2932 # SunOS /usr/etc/install
2933 # IRIX /sbin/install
2934 # AIX /bin/install
2935 # AmigaOS /C/install, which installs bootblocks on floppy discs
2936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2939 # OS/2's system install, which has a completely different semantic
2940 # ./install, which can be erroneously created by make from ./install.sh.
2941 # Reject install programs that cannot install multiple files.
2942 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2944 if test -z "$INSTALL"; then
2945 if test "${ac_cv_path_install+set}" = set; then
2946 $as_echo_n "(cached) " >&6
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 # Account for people who put trailing slashes in PATH elements.
2954 case $as_dir/ in
2955 ./ | .// | /cC/* | \
2956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2958 /usr/ucb/* ) ;;
2959 *)
2960 # OSF1 and SCO ODT 3.0 have their own names for install.
2961 # Don't use installbsd from OSF since it installs stuff as root
2962 # by default.
2963 for ac_prog in ginstall scoinst install; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2966 if test $ac_prog = install &&
2967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # AIX install. It has an incompatible calling convention.
2969 :
2970 elif test $ac_prog = install &&
2971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # program-specific install script used by HP pwplus--don't use.
2973 :
2974 else
2975 rm -rf conftest.one conftest.two conftest.dir
2976 echo one > conftest.one
2977 echo two > conftest.two
2978 mkdir conftest.dir
2979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2980 test -s conftest.one && test -s conftest.two &&
2981 test -s conftest.dir/conftest.one &&
2982 test -s conftest.dir/conftest.two
2983 then
2984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2985 break 3
2986 fi
2987 fi
2988 fi
2989 done
2990 done
2991 ;;
2992 esac
2993
2994 done
2995 IFS=$as_save_IFS
2996
2997 rm -rf conftest.one conftest.two conftest.dir
2998
2999 fi
3000 if test "${ac_cv_path_install+set}" = set; then
3001 INSTALL=$ac_cv_path_install
3002 else
3003 # As a last resort, use the slow shell script. Don't cache a
3004 # value for INSTALL within a source directory, because that will
3005 # break other packages using the cache if that directory is
3006 # removed, or if the value is a relative name.
3007 INSTALL=$ac_install_sh
3008 fi
3009 fi
3010 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3011 $as_echo "$INSTALL" >&6; }
3012
3013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3014 # It thinks the first close brace ends the variable substitution.
3015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3016
3017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3018
3019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3020
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:$LINENO: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 fi
3065 if test -z "$ac_cv_prog_CC"; then
3066 ac_ct_CC=$CC
3067 # Extract the first word of "gcc", so it can be a program name with args.
3068 set dummy gcc; ac_word=$2
3069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_CC="gcc"
3085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095 if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3097 $as_echo "$ac_ct_CC" >&6; }
3098 else
3099 { $as_echo "$as_me:$LINENO: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103 if test "x$ac_ct_CC" = x; then
3104 CC=""
3105 else
3106 case $cross_compiling:$ac_tool_warned in
3107 yes:)
3108 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3111 esac
3112 CC=$ac_ct_CC
3113 fi
3114 else
3115 CC="$ac_cv_prog_CC"
3116 fi
3117
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}cc; ac_word=$2
3122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if test "${ac_cv_prog_CC+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_CC="${ac_tool_prefix}cc"
3138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 fi
3158 fi
3159 if test -z "$CC"; then
3160 # Extract the first word of "cc", so it can be a program name with args.
3161 set dummy cc; ac_word=$2
3162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_CC+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 ac_prog_rejected=no
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179 ac_prog_rejected=yes
3180 continue
3181 fi
3182 ac_cv_prog_CC="cc"
3183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186 done
3187 done
3188 IFS=$as_save_IFS
3189
3190 if test $ac_prog_rejected = yes; then
3191 # We found a bogon in the path, so make sure we never use it.
3192 set dummy $ac_cv_prog_CC
3193 shift
3194 if test $# != 0; then
3195 # We chose a different compiler from the bogus one.
3196 # However, it has the same basename, so the bogon will be chosen
3197 # first if we set CC to just the basename; use the full file name.
3198 shift
3199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3200 fi
3201 fi
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214 fi
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in cl.exe
3218 do
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251 { $as_echo "$as_me:$LINENO: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256 test -n "$CC" && break
3257 done
3258 fi
3259 if test -z "$CC"; then
3260 ac_ct_CC=$CC
3261 for ac_prog in cl.exe
3262 do
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_CC="$ac_prog"
3281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3294 else
3295 { $as_echo "$as_me:$LINENO: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 test -n "$ac_ct_CC" && break
3301 done
3302
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3311 esac
3312 CC=$ac_ct_CC
3313 fi
3314 fi
3315
3316 fi
3317
3318
3319 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3322 See \`config.log' for more details." >&5
3323 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3324 See \`config.log' for more details." >&2;}
3325 { (exit 1); exit 1; }; }; }
3326
3327 # Provide some information about the compiler.
3328 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3329 set X $ac_compile
3330 ac_compiler=$2
3331 { (ac_try="$ac_compiler --version >&5"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337 $as_echo "$ac_try_echo") >&5
3338 (eval "$ac_compiler --version >&5") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }
3342 { (ac_try="$ac_compiler -v >&5"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3348 $as_echo "$ac_try_echo") >&5
3349 (eval "$ac_compiler -v >&5") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }
3353 { (ac_try="$ac_compiler -V >&5"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3359 $as_echo "$ac_try_echo") >&5
3360 (eval "$ac_compiler -V >&5") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }
3364
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371
3372 int
3373 main ()
3374 {
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 ac_clean_files_save=$ac_clean_files
3381 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3382 # Try to create an executable without -o first, disregard a.out.
3383 # It will help us diagnose broken compilers, and finding out an intuition
3384 # of exeext.
3385 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3386 $as_echo_n "checking for C compiler default output file name... " >&6; }
3387 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3388
3389 # The possible output files:
3390 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3391
3392 ac_rmfiles=
3393 for ac_file in $ac_files
3394 do
3395 case $ac_file in
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3398 esac
3399 done
3400 rm -f $ac_rmfiles
3401
3402 if { (ac_try="$ac_link_default"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_link_default") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; then
3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3414 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3415 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3416 # so that the user can short-circuit this test for compilers unknown to
3417 # Autoconf.
3418 for ac_file in $ac_files ''
3419 do
3420 test -f "$ac_file" || continue
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3423 ;;
3424 [ab].out )
3425 # We found the default executable, but exeext='' is most
3426 # certainly right.
3427 break;;
3428 *.* )
3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3430 then :; else
3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 fi
3433 # We set ac_cv_exeext here because the later test for it is not
3434 # safe: cross compilers may not add the suffix if given an `-o'
3435 # argument, so we may need to know it at that point already.
3436 # Even if this section looks crufty: it has the advantage of
3437 # actually working.
3438 break;;
3439 * )
3440 break;;
3441 esac
3442 done
3443 test "$ac_cv_exeext" = no && ac_cv_exeext=
3444
3445 else
3446 ac_file=''
3447 fi
3448
3449 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3450 $as_echo "$ac_file" >&6; }
3451 if test -z "$ac_file"; then
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3458 See \`config.log' for more details." >&5
3459 $as_echo "$as_me: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&2;}
3461 { (exit 77); exit 77; }; }; }
3462 fi
3463
3464 ac_exeext=$ac_cv_exeext
3465
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3469 $as_echo_n "checking whether the C compiler works... " >&6; }
3470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3471 # If not cross compiling, check that we can run a simple program.
3472 if test "$cross_compiling" != yes; then
3473 if { ac_try='./$ac_file'
3474 { (case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3479 $as_echo "$ac_try_echo") >&5
3480 (eval "$ac_try") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 cross_compiling=no
3485 else
3486 if test "$cross_compiling" = maybe; then
3487 cross_compiling=yes
3488 else
3489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details." >&5
3494 $as_echo "$as_me: error: cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }; }
3498 fi
3499 fi
3500 fi
3501 { $as_echo "$as_me:$LINENO: result: yes" >&5
3502 $as_echo "yes" >&6; }
3503
3504 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3505 ac_clean_files=$ac_clean_files_save
3506 # Check that the compiler produces executables we can run. If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3511 $as_echo "$cross_compiling" >&6; }
3512
3513 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { (ac_try="$ac_link"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_link") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; then
3526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe'), while it won't with
3529 # `rm'.
3530 for ac_file in conftest.exe conftest conftest.*; do
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 break;;
3536 * ) break;;
3537 esac
3538 done
3539 else
3540 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&5
3544 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3545 See \`config.log' for more details." >&2;}
3546 { (exit 1); exit 1; }; }; }
3547 fi
3548
3549 rm -f conftest$ac_cv_exeext
3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3551 $as_echo "$ac_cv_exeext" >&6; }
3552
3553 rm -f conftest.$ac_ext
3554 EXEEXT=$ac_cv_exeext
3555 ac_exeext=$EXEEXT
3556 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3557 $as_echo_n "checking for suffix of object files... " >&6; }
3558 if test "${ac_cv_objext+set}" = set; then
3559 $as_echo_n "(cached) " >&6
3560 else
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.o conftest.obj
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_compile") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; then
3588 for ac_file in conftest.o conftest.obj conftest.*; do
3589 test -f "$ac_file" || continue;
3590 case $ac_file in
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3593 break;;
3594 esac
3595 done
3596 else
3597 $as_echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3603 See \`config.log' for more details." >&5
3604 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }; }
3607 fi
3608
3609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3610 fi
3611 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3612 $as_echo "$ac_cv_objext" >&6; }
3613 OBJEXT=$ac_cv_objext
3614 ac_objext=$OBJEXT
3615 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3616 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3618 $as_echo_n "(cached) " >&6
3619 else
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626
3627 int
3628 main ()
3629 {
3630 #ifndef __GNUC__
3631 choke me
3632 #endif
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 ac_compiler_gnu=yes
3657 else
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ac_compiler_gnu=no
3662 fi
3663
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3666
3667 fi
3668 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3669 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3670 if test $ac_compiler_gnu = yes; then
3671 GCC=yes
3672 else
3673 GCC=
3674 fi
3675 ac_test_CFLAGS=${CFLAGS+set}
3676 ac_save_CFLAGS=$CFLAGS
3677 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3678 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3679 if test "${ac_cv_prog_cc_g+set}" = set; then
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_save_c_werror_flag=$ac_c_werror_flag
3683 ac_c_werror_flag=yes
3684 ac_cv_prog_cc_g=no
3685 CFLAGS="-g"
3686 cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h. */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then
3719 ac_cv_prog_cc_g=yes
3720 else
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 CFLAGS=""
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3747 $as_echo "$ac_try_echo") >&5
3748 (eval "$ac_compile") 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest.$ac_objext; then
3758 :
3759 else
3760 $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 ac_c_werror_flag=$ac_save_c_werror_flag
3764 CFLAGS="-g"
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771
3772 int
3773 main ()
3774 {
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 rm -f conftest.$ac_objext
3781 if { (ac_try="$ac_compile"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.$ac_objext; then
3798 ac_cv_prog_cc_g=yes
3799 else
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803
3804 fi
3805
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 fi
3808
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3814 fi
3815 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3816 $as_echo "$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818 CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820 if test "$GCC" = yes; then
3821 CFLAGS="-g -O2"
3822 else
3823 CFLAGS="-g"
3824 fi
3825 else
3826 if test "$GCC" = yes; then
3827 CFLAGS="-O2"
3828 else
3829 CFLAGS=
3830 fi
3831 fi
3832 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3834 if test "${ac_cv_prog_cc_c89+set}" = set; then
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_cv_prog_cc_c89=no
3838 ac_save_CC=$CC
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #include <stdarg.h>
3846 #include <stdio.h>
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3853 char **p;
3854 int i;
3855 {
3856 return p[i];
3857 }
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3859 {
3860 char *s;
3861 va_list v;
3862 va_start (v,p);
3863 s = g (p, va_arg (v,int));
3864 va_end (v);
3865 return s;
3866 }
3867
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3869 function prototypes and stuff, but not '\xHH' hex character constants.
3870 These don't provoke an error unfortunately, instead are silently treated
3871 as 'x'. The following induces an error, until -std is added to get
3872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3873 array size at least. It's necessary to write '\x00'==0 to get something
3874 that's true only with -std. */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3876
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878 inside strings and character constants. */
3879 #define FOO(x) 'x'
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3881
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 int argc;
3887 char **argv;
3888 int
3889 main ()
3890 {
3891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3898 do
3899 CC="$ac_save_CC $ac_arg"
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_compile") 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } && {
3915 test -z "$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 } && test -s conftest.$ac_objext; then
3918 ac_cv_prog_cc_c89=$ac_arg
3919 else
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923
3924 fi
3925
3926 rm -f core conftest.err conftest.$ac_objext
3927 test "x$ac_cv_prog_cc_c89" != "xno" && break
3928 done
3929 rm -f conftest.$ac_ext
3930 CC=$ac_save_CC
3931
3932 fi
3933 # AC_CACHE_VAL
3934 case "x$ac_cv_prog_cc_c89" in
3935 x)
3936 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3937 $as_echo "none needed" >&6; } ;;
3938 xno)
3939 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3940 $as_echo "unsupported" >&6; } ;;
3941 *)
3942 CC="$CC $ac_cv_prog_cc_c89"
3943 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3944 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945 esac
3946
3947
3948 ac_ext=c
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953 DEPDIR="${am__leading_dot}deps"
3954
3955 ac_config_commands="$ac_config_commands depfiles"
3956
3957
3958 am_make=${MAKE-make}
3959 cat > confinc << 'END'
3960 am__doit:
3961 @echo this is the am__doit target
3962 .PHONY: am__doit
3963 END
3964 # If we don't find an include directive, just comment out the code.
3965 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3966 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3967 am__include="#"
3968 am__quote=
3969 _am_result=none
3970 # First try GNU make style include.
3971 echo "include confinc" > confmf
3972 # Ignore all kinds of additional output from `make'.
3973 case `$am_make -s -f confmf 2> /dev/null` in #(
3974 *the\ am__doit\ target*)
3975 am__include=include
3976 am__quote=
3977 _am_result=GNU
3978 ;;
3979 esac
3980 # Now try BSD make style include.
3981 if test "$am__include" = "#"; then
3982 echo '.include "confinc"' > confmf
3983 case `$am_make -s -f confmf 2> /dev/null` in #(
3984 *the\ am__doit\ target*)
3985 am__include=.include
3986 am__quote="\""
3987 _am_result=BSD
3988 ;;
3989 esac
3990 fi
3991
3992
3993 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3994 $as_echo "$_am_result" >&6; }
3995 rm -f confinc confmf
3996
3997 # Check whether --enable-dependency-tracking was given.
3998 if test "${enable_dependency_tracking+set}" = set; then
3999 enableval=$enable_dependency_tracking;
4000 fi
4001
4002 if test "x$enable_dependency_tracking" != xno; then
4003 am_depcomp="$ac_aux_dir/depcomp"
4004 AMDEPBACKSLASH='\'
4005 fi
4006 if test "x$enable_dependency_tracking" != xno; then
4007 AMDEP_TRUE=
4008 AMDEP_FALSE='#'
4009 else
4010 AMDEP_TRUE='#'
4011 AMDEP_FALSE=
4012 fi
4013
4014
4015
4016 depcc="$CC" am_compiler_list=
4017
4018 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4019 $as_echo_n "checking dependency style of $depcc... " >&6; }
4020 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024 # We make a subdir and do the tests there. Otherwise we can end up
4025 # making bogus files that we don't know about and never remove. For
4026 # instance it was reported that on HP-UX the gcc test will end up
4027 # making a dummy file named `D' -- because `-MD' means `put the output
4028 # in D'.
4029 mkdir conftest.dir
4030 # Copy depcomp to subdir because otherwise we won't find it if we're
4031 # using a relative directory.
4032 cp "$am_depcomp" conftest.dir
4033 cd conftest.dir
4034 # We will build objects and dependencies in a subdirectory because
4035 # it helps to detect inapplicable dependency modes. For instance
4036 # both Tru64's cc and ICC support -MD to output dependencies as a
4037 # side effect of compilation, but ICC will put the dependencies in
4038 # the current directory while Tru64 will put them in the object
4039 # directory.
4040 mkdir sub
4041
4042 am_cv_CC_dependencies_compiler_type=none
4043 if test "$am_compiler_list" = ""; then
4044 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4045 fi
4046 am__universal=false
4047 case " $depcc " in #(
4048 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4049 esac
4050
4051 for depmode in $am_compiler_list; do
4052 # Setup a source with many dependencies, because some compilers
4053 # like to wrap large dependency lists on column 80 (with \), and
4054 # we should not choose a depcomp mode which is confused by this.
4055 #
4056 # We need to recreate these files for each test, as the compiler may
4057 # overwrite some of them when testing with obscure command lines.
4058 # This happens at least with the AIX C compiler.
4059 : > sub/conftest.c
4060 for i in 1 2 3 4 5 6; do
4061 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4062 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4063 # Solaris 8's {/usr,}/bin/sh.
4064 touch sub/conftst$i.h
4065 done
4066 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4067
4068 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4069 # mode. It turns out that the SunPro C++ compiler does not properly
4070 # handle `-M -o', and we need to detect this. Also, some Intel
4071 # versions had trouble with output in subdirs
4072 am__obj=sub/conftest.${OBJEXT-o}
4073 am__minus_obj="-o $am__obj"
4074 case $depmode in
4075 gcc)
4076 # This depmode causes a compiler race in universal mode.
4077 test "$am__universal" = false || continue
4078 ;;
4079 nosideeffect)
4080 # after this tag, mechanisms are not by side-effect, so they'll
4081 # only be used when explicitly requested
4082 if test "x$enable_dependency_tracking" = xyes; then
4083 continue
4084 else
4085 break
4086 fi
4087 ;;
4088 msvisualcpp | msvcmsys)
4089 # This compiler won't grok `-c -o', but also, the minuso test has
4090 # not run yet. These depmodes are late enough in the game, and
4091 # so weak that their functioning should not be impacted.
4092 am__obj=conftest.${OBJEXT-o}
4093 am__minus_obj=
4094 ;;
4095 none) break ;;
4096 esac
4097 if depmode=$depmode \
4098 source=sub/conftest.c object=$am__obj \
4099 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4100 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4101 >/dev/null 2>conftest.err &&
4102 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4103 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4104 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4105 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4106 # icc doesn't choke on unknown options, it will just issue warnings
4107 # or remarks (even with -Werror). So we grep stderr for any message
4108 # that says an option was ignored or not supported.
4109 # When given -MP, icc 7.0 and 7.1 complain thusly:
4110 # icc: Command line warning: ignoring option '-M'; no argument required
4111 # The diagnosis changed in icc 8.0:
4112 # icc: Command line remark: option '-MP' not supported
4113 if (grep 'ignoring option' conftest.err ||
4114 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4115 am_cv_CC_dependencies_compiler_type=$depmode
4116 break
4117 fi
4118 fi
4119 done
4120
4121 cd ..
4122 rm -rf conftest.dir
4123 else
4124 am_cv_CC_dependencies_compiler_type=none
4125 fi
4126
4127 fi
4128 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4129 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4130 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4131
4132 if
4133 test "x$enable_dependency_tracking" != xno \
4134 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4135 am__fastdepCC_TRUE=
4136 am__fastdepCC_FALSE='#'
4137 else
4138 am__fastdepCC_TRUE='#'
4139 am__fastdepCC_FALSE=
4140 fi
4141
4142
4143 case `pwd` in
4144 *\ * | *\ *)
4145 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4146 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4147 esac
4148
4149
4150
4151 macro_version='2.2.6'
4152 macro_revision='1.3012'
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166 ltmain="$ac_aux_dir/ltmain.sh"
4167
4168 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4169 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4170 if test "${ac_cv_path_SED+set}" = set; then
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4174 for ac_i in 1 2 3 4 5 6 7; do
4175 ac_script="$ac_script$as_nl$ac_script"
4176 done
4177 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4178 $as_unset ac_script || ac_script=
4179 if test -z "$SED"; then
4180 ac_path_SED_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in sed gsed; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4191 # Check for GNU ac_path_SED and select it if it is found.
4192 # Check for GNU $ac_path_SED
4193 case `"$ac_path_SED" --version 2>&1` in
4194 *GNU*)
4195 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4196 *)
4197 ac_count=0
4198 $as_echo_n 0123456789 >"conftest.in"
4199 while :
4200 do
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 $as_echo '' >> "conftest.nl"
4205 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 ac_count=`expr $ac_count + 1`
4208 if test $ac_count -gt ${ac_path_SED_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_SED="$ac_path_SED"
4211 ac_path_SED_max=$ac_count
4212 fi
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4215 done
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 esac
4218
4219 $ac_path_SED_found && break 3
4220 done
4221 done
4222 done
4223 IFS=$as_save_IFS
4224 if test -z "$ac_cv_path_SED"; then
4225 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4226 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4227 { (exit 1); exit 1; }; }
4228 fi
4229 else
4230 ac_cv_path_SED=$SED
4231 fi
4232
4233 fi
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4235 $as_echo "$ac_cv_path_SED" >&6; }
4236 SED="$ac_cv_path_SED"
4237 rm -f conftest.sed
4238
4239 test -z "$SED" && SED=sed
4240 Xsed="$SED -e 1s/^X//"
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4254 if test "${ac_cv_path_GREP+set}" = set; then
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -z "$GREP"; then
4258 ac_path_GREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262 do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in grep ggrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4268 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4269 # Check for GNU ac_path_GREP and select it if it is found.
4270 # Check for GNU $ac_path_GREP
4271 case `"$ac_path_GREP" --version 2>&1` in
4272 *GNU*)
4273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4274 *)
4275 ac_count=0
4276 $as_echo_n 0123456789 >"conftest.in"
4277 while :
4278 do
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 $as_echo 'GREP' >> "conftest.nl"
4283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 ac_count=`expr $ac_count + 1`
4286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_GREP="$ac_path_GREP"
4289 ac_path_GREP_max=$ac_count
4290 fi
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4293 done
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 esac
4296
4297 $ac_path_GREP_found && break 3
4298 done
4299 done
4300 done
4301 IFS=$as_save_IFS
4302 if test -z "$ac_cv_path_GREP"; then
4303 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4304 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4305 { (exit 1); exit 1; }; }
4306 fi
4307 else
4308 ac_cv_path_GREP=$GREP
4309 fi
4310
4311 fi
4312 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4313 $as_echo "$ac_cv_path_GREP" >&6; }
4314 GREP="$ac_cv_path_GREP"
4315
4316
4317 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4318 $as_echo_n "checking for egrep... " >&6; }
4319 if test "${ac_cv_path_EGREP+set}" = set; then
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4323 then ac_cv_path_EGREP="$GREP -E"
4324 else
4325 if test -z "$EGREP"; then
4326 ac_path_EGREP_found=false
4327 # Loop through the user's path and test for each of PROGNAME-LIST
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_prog in egrep; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4336 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4337 # Check for GNU ac_path_EGREP and select it if it is found.
4338 # Check for GNU $ac_path_EGREP
4339 case `"$ac_path_EGREP" --version 2>&1` in
4340 *GNU*)
4341 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4342 *)
4343 ac_count=0
4344 $as_echo_n 0123456789 >"conftest.in"
4345 while :
4346 do
4347 cat "conftest.in" "conftest.in" >"conftest.tmp"
4348 mv "conftest.tmp" "conftest.in"
4349 cp "conftest.in" "conftest.nl"
4350 $as_echo 'EGREP' >> "conftest.nl"
4351 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353 ac_count=`expr $ac_count + 1`
4354 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4355 # Best one so far, save it but keep looking for a better one
4356 ac_cv_path_EGREP="$ac_path_EGREP"
4357 ac_path_EGREP_max=$ac_count
4358 fi
4359 # 10*(2^10) chars as input seems more than enough
4360 test $ac_count -gt 10 && break
4361 done
4362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 esac
4364
4365 $ac_path_EGREP_found && break 3
4366 done
4367 done
4368 done
4369 IFS=$as_save_IFS
4370 if test -z "$ac_cv_path_EGREP"; then
4371 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4372 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4373 { (exit 1); exit 1; }; }
4374 fi
4375 else
4376 ac_cv_path_EGREP=$EGREP
4377 fi
4378
4379 fi
4380 fi
4381 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4382 $as_echo "$ac_cv_path_EGREP" >&6; }
4383 EGREP="$ac_cv_path_EGREP"
4384
4385
4386 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4387 $as_echo_n "checking for fgrep... " >&6; }
4388 if test "${ac_cv_path_FGREP+set}" = set; then
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4392 then ac_cv_path_FGREP="$GREP -F"
4393 else
4394 if test -z "$FGREP"; then
4395 ac_path_FGREP_found=false
4396 # Loop through the user's path and test for each of PROGNAME-LIST
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_prog in fgrep; do
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4405 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4406 # Check for GNU ac_path_FGREP and select it if it is found.
4407 # Check for GNU $ac_path_FGREP
4408 case `"$ac_path_FGREP" --version 2>&1` in
4409 *GNU*)
4410 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4411 *)
4412 ac_count=0
4413 $as_echo_n 0123456789 >"conftest.in"
4414 while :
4415 do
4416 cat "conftest.in" "conftest.in" >"conftest.tmp"
4417 mv "conftest.tmp" "conftest.in"
4418 cp "conftest.in" "conftest.nl"
4419 $as_echo 'FGREP' >> "conftest.nl"
4420 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422 ac_count=`expr $ac_count + 1`
4423 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4424 # Best one so far, save it but keep looking for a better one
4425 ac_cv_path_FGREP="$ac_path_FGREP"
4426 ac_path_FGREP_max=$ac_count
4427 fi
4428 # 10*(2^10) chars as input seems more than enough
4429 test $ac_count -gt 10 && break
4430 done
4431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 esac
4433
4434 $ac_path_FGREP_found && break 3
4435 done
4436 done
4437 done
4438 IFS=$as_save_IFS
4439 if test -z "$ac_cv_path_FGREP"; then
4440 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4441 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4442 { (exit 1); exit 1; }; }
4443 fi
4444 else
4445 ac_cv_path_FGREP=$FGREP
4446 fi
4447
4448 fi
4449 fi
4450 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4451 $as_echo "$ac_cv_path_FGREP" >&6; }
4452 FGREP="$ac_cv_path_FGREP"
4453
4454
4455 test -z "$GREP" && GREP=grep
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 # Check whether --with-gnu-ld was given.
4476 if test "${with_gnu_ld+set}" = set; then
4477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4478 else
4479 with_gnu_ld=no
4480 fi
4481
4482 ac_prog=ld
4483 if test "$GCC" = yes; then
4484 # Check if gcc -print-prog-name=ld gives a path.
4485 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4486 $as_echo_n "checking for ld used by $CC... " >&6; }
4487 case $host in
4488 *-*-mingw*)
4489 # gcc leaves a trailing carriage return which upsets mingw
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4491 *)
4492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4493 esac
4494 case $ac_prog in
4495 # Accept absolute paths.
4496 [\\/]* | ?:[\\/]*)
4497 re_direlt='/[^/][^/]*/\.\./'
4498 # Canonicalize the pathname of ld
4499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4502 done
4503 test -z "$LD" && LD="$ac_prog"
4504 ;;
4505 "")
4506 # If it fails, then pretend we aren't using GCC.
4507 ac_prog=ld
4508 ;;
4509 *)
4510 # If it is relative, then search for the first ld in PATH.
4511 with_gnu_ld=unknown
4512 ;;
4513 esac
4514 elif test "$with_gnu_ld" = yes; then
4515 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4516 $as_echo_n "checking for GNU ld... " >&6; }
4517 else
4518 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4519 $as_echo_n "checking for non-GNU ld... " >&6; }
4520 fi
4521 if test "${lt_cv_path_LD+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -z "$LD"; then
4525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4526 for ac_dir in $PATH; do
4527 IFS="$lt_save_ifs"
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530 lt_cv_path_LD="$ac_dir/$ac_prog"
4531 # Check to see if the program is GNU ld. I'd rather use --version,
4532 # but apparently some variants of GNU ld only accept -v.
4533 # Break only if it was the GNU/non-GNU ld that we prefer.
4534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535 *GNU* | *'with BFD'*)
4536 test "$with_gnu_ld" != no && break
4537 ;;
4538 *)
4539 test "$with_gnu_ld" != yes && break
4540 ;;
4541 esac
4542 fi
4543 done
4544 IFS="$lt_save_ifs"
4545 else
4546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4547 fi
4548 fi
4549
4550 LD="$lt_cv_path_LD"
4551 if test -n "$LD"; then
4552 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4553 $as_echo "$LD" >&6; }
4554 else
4555 { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4559 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4560 { (exit 1); exit 1; }; }
4561 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4562 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4563 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4565 else
4566 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4567 case `$LD -v 2>&1 </dev/null` in
4568 *GNU* | *'with BFD'*)
4569 lt_cv_prog_gnu_ld=yes
4570 ;;
4571 *)
4572 lt_cv_prog_gnu_ld=no
4573 ;;
4574 esac
4575 fi
4576 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4577 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4578 with_gnu_ld=$lt_cv_prog_gnu_ld
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4589 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4590 if test "${lt_cv_path_NM+set}" = set; then
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -n "$NM"; then
4594 # Let the user override the test.
4595 lt_cv_path_NM="$NM"
4596 else
4597 lt_nm_to_check="${ac_tool_prefix}nm"
4598 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4599 lt_nm_to_check="$lt_nm_to_check nm"
4600 fi
4601 for lt_tmp_nm in $lt_nm_to_check; do
4602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4604 IFS="$lt_save_ifs"
4605 test -z "$ac_dir" && ac_dir=.
4606 tmp_nm="$ac_dir/$lt_tmp_nm"
4607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4608 # Check to see if the nm accepts a BSD-compat flag.
4609 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4610 # nm: unknown option "B" ignored
4611 # Tru64's nm complains that /dev/null is an invalid object file
4612 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4613 */dev/null* | *'Invalid file or object type'*)
4614 lt_cv_path_NM="$tmp_nm -B"
4615 break
4616 ;;
4617 *)
4618 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4619 */dev/null*)
4620 lt_cv_path_NM="$tmp_nm -p"
4621 break
4622 ;;
4623 *)
4624 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4625 continue # so that we can try to find one that supports BSD flags
4626 ;;
4627 esac
4628 ;;
4629 esac
4630 fi
4631 done
4632 IFS="$lt_save_ifs"
4633 done
4634 : ${lt_cv_path_NM=no}
4635 fi
4636 fi
4637 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4638 $as_echo "$lt_cv_path_NM" >&6; }
4639 if test "$lt_cv_path_NM" != "no"; then
4640 NM="$lt_cv_path_NM"
4641 else
4642 # Didn't find any BSD compatible name lister, look for dumpbin.
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4645 do
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$DUMPBIN"; then
4654 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 DUMPBIN=$ac_cv_prog_DUMPBIN
4674 if test -n "$DUMPBIN"; then
4675 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4676 $as_echo "$DUMPBIN" >&6; }
4677 else
4678 { $as_echo "$as_me:$LINENO: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682
4683 test -n "$DUMPBIN" && break
4684 done
4685 fi
4686 if test -z "$DUMPBIN"; then
4687 ac_ct_DUMPBIN=$DUMPBIN
4688 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4689 do
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$ac_ct_DUMPBIN"; then
4698 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4718 if test -n "$ac_ct_DUMPBIN"; then
4719 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4720 $as_echo "$ac_ct_DUMPBIN" >&6; }
4721 else
4722 { $as_echo "$as_me:$LINENO: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726
4727 test -n "$ac_ct_DUMPBIN" && break
4728 done
4729
4730 if test "x$ac_ct_DUMPBIN" = x; then
4731 DUMPBIN=":"
4732 else
4733 case $cross_compiling:$ac_tool_warned in
4734 yes:)
4735 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737 ac_tool_warned=yes ;;
4738 esac
4739 DUMPBIN=$ac_ct_DUMPBIN
4740 fi
4741 fi
4742
4743
4744 if test "$DUMPBIN" != ":"; then
4745 NM="$DUMPBIN"
4746 fi
4747 fi
4748 test -z "$NM" && NM=nm
4749
4750
4751
4752
4753
4754
4755 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4756 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4757 if test "${lt_cv_nm_interface+set}" = set; then
4758 $as_echo_n "(cached) " >&6
4759 else
4760 lt_cv_nm_interface="BSD nm"
4761 echo "int some_variable = 0;" > conftest.$ac_ext
4762 (eval echo "\"\$as_me:4762: $ac_compile\"" >&5)
4763 (eval "$ac_compile" 2>conftest.err)
4764 cat conftest.err >&5
4765 (eval echo "\"\$as_me:4765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4767 cat conftest.err >&5
4768 (eval echo "\"\$as_me:4768: output\"" >&5)
4769 cat conftest.out >&5
4770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4771 lt_cv_nm_interface="MS dumpbin"
4772 fi
4773 rm -f conftest*
4774 fi
4775 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4776 $as_echo "$lt_cv_nm_interface" >&6; }
4777
4778 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4779 $as_echo_n "checking whether ln -s works... " >&6; }
4780 LN_S=$as_ln_s
4781 if test "$LN_S" = "ln -s"; then
4782 { $as_echo "$as_me:$LINENO: result: yes" >&5
4783 $as_echo "yes" >&6; }
4784 else
4785 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4786 $as_echo "no, using $LN_S" >&6; }
4787 fi
4788
4789 # find the maximum length of command line arguments
4790 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4791 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4792 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4793 $as_echo_n "(cached) " >&6
4794 else
4795 i=0
4796 teststring="ABCD"
4797
4798 case $build_os in
4799 msdosdjgpp*)
4800 # On DJGPP, this test can blow up pretty badly due to problems in libc
4801 # (any single argument exceeding 2000 bytes causes a buffer overrun
4802 # during glob expansion). Even if it were fixed, the result of this
4803 # check would be larger than it should be.
4804 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4805 ;;
4806
4807 gnu*)
4808 # Under GNU Hurd, this test is not required because there is
4809 # no limit to the length of command line arguments.
4810 # Libtool will interpret -1 as no limit whatsoever
4811 lt_cv_sys_max_cmd_len=-1;
4812 ;;
4813
4814 cygwin* | mingw* | cegcc*)
4815 # On Win9x/ME, this test blows up -- it succeeds, but takes
4816 # about 5 minutes as the teststring grows exponentially.
4817 # Worse, since 9x/ME are not pre-emptively multitasking,
4818 # you end up with a "frozen" computer, even though with patience
4819 # the test eventually succeeds (with a max line length of 256k).
4820 # Instead, let's just punt: use the minimum linelength reported by
4821 # all of the supported platforms: 8192 (on NT/2K/XP).
4822 lt_cv_sys_max_cmd_len=8192;
4823 ;;
4824
4825 amigaos*)
4826 # On AmigaOS with pdksh, this test takes hours, literally.
4827 # So we just punt and use a minimum line length of 8192.
4828 lt_cv_sys_max_cmd_len=8192;
4829 ;;
4830
4831 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4832 # This has been around since 386BSD, at least. Likely further.
4833 if test -x /sbin/sysctl; then
4834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4835 elif test -x /usr/sbin/sysctl; then
4836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4837 else
4838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4839 fi
4840 # And add a safety zone
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4843 ;;
4844
4845 interix*)
4846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4847 lt_cv_sys_max_cmd_len=196608
4848 ;;
4849
4850 osf*)
4851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4853 # nice to cause kernel panics so lets avoid the loop below.
4854 # First set a reasonable default.
4855 lt_cv_sys_max_cmd_len=16384
4856 #
4857 if test -x /sbin/sysconfig; then
4858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4860 esac
4861 fi
4862 ;;
4863 sco3.2v5*)
4864 lt_cv_sys_max_cmd_len=102400
4865 ;;
4866 sysv5* | sco5v6* | sysv4.2uw2*)
4867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4868 if test -n "$kargmax"; then
4869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4870 else
4871 lt_cv_sys_max_cmd_len=32768
4872 fi
4873 ;;
4874 *)
4875 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4876 if test -n "$lt_cv_sys_max_cmd_len"; then
4877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4879 else
4880 # Make teststring a little bigger before we do anything with it.
4881 # a 1K string should be a reasonable start.
4882 for i in 1 2 3 4 5 6 7 8 ; do
4883 teststring=$teststring$teststring
4884 done
4885 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4886 # If test is not a shell built-in, we'll probably end up computing a
4887 # maximum length that is only half of the actual maximum length, but
4888 # we can't tell.
4889 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4890 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4891 test $i != 17 # 1/2 MB should be enough
4892 do
4893 i=`expr $i + 1`
4894 teststring=$teststring$teststring
4895 done
4896 # Only check the string length outside the loop.
4897 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4898 teststring=
4899 # Add a significant safety factor because C++ compilers can tack on
4900 # massive amounts of additional arguments before passing them to the
4901 # linker. It appears as though 1/2 is a usable value.
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4903 fi
4904 ;;
4905 esac
4906
4907 fi
4908
4909 if test -n $lt_cv_sys_max_cmd_len ; then
4910 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4911 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4912 else
4913 { $as_echo "$as_me:$LINENO: result: none" >&5
4914 $as_echo "none" >&6; }
4915 fi
4916 max_cmd_len=$lt_cv_sys_max_cmd_len
4917
4918
4919
4920
4921
4922
4923 : ${CP="cp -f"}
4924 : ${MV="mv -f"}
4925 : ${RM="rm -f"}
4926
4927 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4928 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4929 # Try some XSI features
4930 xsi_shell=no
4931 ( _lt_dummy="a/b/c"
4932 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4933 = c,a/b,, \
4934 && eval 'test $(( 1 + 1 )) -eq 2 \
4935 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4936 && xsi_shell=yes
4937 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4938 $as_echo "$xsi_shell" >&6; }
4939
4940
4941 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4942 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4943 lt_shell_append=no
4944 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4945 >/dev/null 2>&1 \
4946 && lt_shell_append=yes
4947 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4948 $as_echo "$lt_shell_append" >&6; }
4949
4950
4951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4952 lt_unset=unset
4953 else
4954 lt_unset=false
4955 fi
4956
4957
4958
4959
4960
4961 # test EBCDIC or ASCII
4962 case `echo X|tr X '\101'` in
4963 A) # ASCII based system
4964 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4965 lt_SP2NL='tr \040 \012'
4966 lt_NL2SP='tr \015\012 \040\040'
4967 ;;
4968 *) # EBCDIC based system
4969 lt_SP2NL='tr \100 \n'
4970 lt_NL2SP='tr \r\n \100\100'
4971 ;;
4972 esac
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4983 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4984 if test "${lt_cv_ld_reload_flag+set}" = set; then
4985 $as_echo_n "(cached) " >&6
4986 else
4987 lt_cv_ld_reload_flag='-r'
4988 fi
4989 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4990 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4991 reload_flag=$lt_cv_ld_reload_flag
4992 case $reload_flag in
4993 "" | " "*) ;;
4994 *) reload_flag=" $reload_flag" ;;
4995 esac
4996 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4997 case $host_os in
4998 darwin*)
4999 if test "$GCC" = yes; then
5000 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5001 else
5002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5003 fi
5004 ;;
5005 esac
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 if test -n "$ac_tool_prefix"; then
5016 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5017 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$OBJDUMP"; then
5024 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 OBJDUMP=$ac_cv_prog_OBJDUMP
5044 if test -n "$OBJDUMP"; then
5045 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5046 $as_echo "$OBJDUMP" >&6; }
5047 else
5048 { $as_echo "$as_me:$LINENO: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051
5052
5053 fi
5054 if test -z "$ac_cv_prog_OBJDUMP"; then
5055 ac_ct_OBJDUMP=$OBJDUMP
5056 # Extract the first word of "objdump", so it can be a program name with args.
5057 set dummy objdump; ac_word=$2
5058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$ac_ct_OBJDUMP"; then
5064 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077 done
5078 done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5084 if test -n "$ac_ct_OBJDUMP"; then
5085 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5086 $as_echo "$ac_ct_OBJDUMP" >&6; }
5087 else
5088 { $as_echo "$as_me:$LINENO: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091
5092 if test "x$ac_ct_OBJDUMP" = x; then
5093 OBJDUMP="false"
5094 else
5095 case $cross_compiling:$ac_tool_warned in
5096 yes:)
5097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101 OBJDUMP=$ac_ct_OBJDUMP
5102 fi
5103 else
5104 OBJDUMP="$ac_cv_prog_OBJDUMP"
5105 fi
5106
5107 test -z "$OBJDUMP" && OBJDUMP=objdump
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5118 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5119 if test "${lt_cv_deplibs_check_method+set}" = set; then
5120 $as_echo_n "(cached) " >&6
5121 else
5122 lt_cv_file_magic_cmd='$MAGIC_CMD'
5123 lt_cv_file_magic_test_file=
5124 lt_cv_deplibs_check_method='unknown'
5125 # Need to set the preceding variable on all platforms that support
5126 # interlibrary dependencies.
5127 # 'none' -- dependencies not supported.
5128 # `unknown' -- same as none, but documents that we really don't know.
5129 # 'pass_all' -- all dependencies passed with no checks.
5130 # 'test_compile' -- check by making test program.
5131 # 'file_magic [[regex]]' -- check by looking for files in library path
5132 # which responds to the $file_magic_cmd with a given extended regex.
5133 # If you have `file' or equivalent on your system and you're not sure
5134 # whether `pass_all' will *always* work, you probably want this one.
5135
5136 case $host_os in
5137 aix[4-9]*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140
5141 beos*)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144
5145 bsdi[45]*)
5146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5147 lt_cv_file_magic_cmd='/usr/bin/file -L'
5148 lt_cv_file_magic_test_file=/shlib/libc.so
5149 ;;
5150
5151 cygwin*)
5152 # func_win32_libid is a shell function defined in ltmain.sh
5153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5154 lt_cv_file_magic_cmd='func_win32_libid'
5155 ;;
5156
5157 mingw* | pw32*)
5158 # Base MSYS/MinGW do not provide the 'file' command needed by
5159 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5160 # unless we find 'file', for example because we are cross-compiling.
5161 if ( file / ) >/dev/null 2>&1; then
5162 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5163 lt_cv_file_magic_cmd='func_win32_libid'
5164 else
5165 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5166 lt_cv_file_magic_cmd='$OBJDUMP -f'
5167 fi
5168 ;;
5169
5170 cegcc)
5171 # use the weaker test based on 'objdump'. See mingw*.
5172 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5173 lt_cv_file_magic_cmd='$OBJDUMP -f'
5174 ;;
5175
5176 darwin* | rhapsody*)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179
5180 freebsd* | dragonfly*)
5181 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5182 case $host_cpu in
5183 i*86 )
5184 # Not sure whether the presence of OpenBSD here was a mistake.
5185 # Let's accept both of them until this is cleared up.
5186 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5189 ;;
5190 esac
5191 else
5192 lt_cv_deplibs_check_method=pass_all
5193 fi
5194 ;;
5195
5196 gnu*)
5197 lt_cv_deplibs_check_method=pass_all
5198 ;;
5199
5200 hpux10.20* | hpux11*)
5201 lt_cv_file_magic_cmd=/usr/bin/file
5202 case $host_cpu in
5203 ia64*)
5204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5205 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5206 ;;
5207 hppa*64*)
5208 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]'
5209 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5210 ;;
5211 *)
5212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5213 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5214 ;;
5215 esac
5216 ;;
5217
5218 interix[3-9]*)
5219 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5221 ;;
5222
5223 irix5* | irix6* | nonstopux*)
5224 case $LD in
5225 *-32|*"-32 ") libmagic=32-bit;;
5226 *-n32|*"-n32 ") libmagic=N32;;
5227 *-64|*"-64 ") libmagic=64-bit;;
5228 *) libmagic=never-match;;
5229 esac
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 # This must be Linux ELF.
5234 linux* | k*bsd*-gnu)
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237
5238 netbsd*)
5239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5241 else
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5243 fi
5244 ;;
5245
5246 newos6*)
5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5248 lt_cv_file_magic_cmd=/usr/bin/file
5249 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5250 ;;
5251
5252 *nto* | *qnx*)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255
5256 openbsd*)
5257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5259 else
5260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5261 fi
5262 ;;
5263
5264 osf3* | osf4* | osf5*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267
5268 rdos*)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5271
5272 solaris*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 sysv4 | sysv4.3*)
5281 case $host_vendor in
5282 motorola)
5283 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]'
5284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5285 ;;
5286 ncr)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289 sequent)
5290 lt_cv_file_magic_cmd='/bin/file'
5291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5292 ;;
5293 sni)
5294 lt_cv_file_magic_cmd='/bin/file'
5295 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5296 lt_cv_file_magic_test_file=/lib/libc.so
5297 ;;
5298 siemens)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301 pc)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304 esac
5305 ;;
5306
5307 tpf*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310 esac
5311
5312 fi
5313 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5314 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5315 file_magic_cmd=$lt_cv_file_magic_cmd
5316 deplibs_check_method=$lt_cv_deplibs_check_method
5317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5332 set dummy ${ac_tool_prefix}ar; ac_word=$2
5333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_AR+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$AR"; then
5339 ac_cv_prog_AR="$AR" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_AR="${ac_tool_prefix}ar"
5349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352 done
5353 done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 AR=$ac_cv_prog_AR
5359 if test -n "$AR"; then
5360 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5361 $as_echo "$AR" >&6; }
5362 else
5363 { $as_echo "$as_me:$LINENO: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 fi
5369 if test -z "$ac_cv_prog_AR"; then
5370 ac_ct_AR=$AR
5371 # Extract the first word of "ar", so it can be a program name with args.
5372 set dummy ar; ac_word=$2
5373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$ac_ct_AR"; then
5379 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_ac_ct_AR="ar"
5389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392 done
5393 done
5394 IFS=$as_save_IFS
5395
5396 fi
5397 fi
5398 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5399 if test -n "$ac_ct_AR"; then
5400 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5401 $as_echo "$ac_ct_AR" >&6; }
5402 else
5403 { $as_echo "$as_me:$LINENO: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406
5407 if test "x$ac_ct_AR" = x; then
5408 AR="false"
5409 else
5410 case $cross_compiling:$ac_tool_warned in
5411 yes:)
5412 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414 ac_tool_warned=yes ;;
5415 esac
5416 AR=$ac_ct_AR
5417 fi
5418 else
5419 AR="$ac_cv_prog_AR"
5420 fi
5421
5422 test -z "$AR" && AR=ar
5423 test -z "$AR_FLAGS" && AR_FLAGS=cru
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}strip; ac_word=$2
5438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if test "${ac_cv_prog_STRIP+set}" = set; then
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$STRIP"; then
5444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 STRIP=$ac_cv_prog_STRIP
5464 if test -n "$STRIP"; then
5465 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5466 $as_echo "$STRIP" >&6; }
5467 else
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472
5473 fi
5474 if test -z "$ac_cv_prog_STRIP"; then
5475 ac_ct_STRIP=$STRIP
5476 # Extract the first word of "strip", so it can be a program name with args.
5477 set dummy strip; ac_word=$2
5478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$ac_ct_STRIP"; then
5484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_ac_ct_STRIP="strip"
5494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497 done
5498 done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5504 if test -n "$ac_ct_STRIP"; then
5505 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5506 $as_echo "$ac_ct_STRIP" >&6; }
5507 else
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512 if test "x$ac_ct_STRIP" = x; then
5513 STRIP=":"
5514 else
5515 case $cross_compiling:$ac_tool_warned in
5516 yes:)
5517 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5520 esac
5521 STRIP=$ac_ct_STRIP
5522 fi
5523 else
5524 STRIP="$ac_cv_prog_STRIP"
5525 fi
5526
5527 test -z "$STRIP" && STRIP=:
5528
5529
5530
5531
5532
5533
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_prog_RANLIB+set}" = set; then
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$RANLIB"; then
5543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 RANLIB=$ac_cv_prog_RANLIB
5563 if test -n "$RANLIB"; then
5564 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5565 $as_echo "$RANLIB" >&6; }
5566 else
5567 { $as_echo "$as_me:$LINENO: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571
5572 fi
5573 if test -z "$ac_cv_prog_RANLIB"; then
5574 ac_ct_RANLIB=$RANLIB
5575 # Extract the first word of "ranlib", so it can be a program name with args.
5576 set dummy ranlib; ac_word=$2
5577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$ac_ct_RANLIB"; then
5583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_ac_ct_RANLIB="ranlib"
5593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5603 if test -n "$ac_ct_RANLIB"; then
5604 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5605 $as_echo "$ac_ct_RANLIB" >&6; }
5606 else
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611 if test "x$ac_ct_RANLIB" = x; then
5612 RANLIB=":"
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615 yes:)
5616 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5619 esac
5620 RANLIB=$ac_ct_RANLIB
5621 fi
5622 else
5623 RANLIB="$ac_cv_prog_RANLIB"
5624 fi
5625
5626 test -z "$RANLIB" && RANLIB=:
5627
5628
5629
5630
5631
5632
5633 # Determine commands to create old-style static archives.
5634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5635 old_postinstall_cmds='chmod 644 $oldlib'
5636 old_postuninstall_cmds=
5637
5638 if test -n "$RANLIB"; then
5639 case $host_os in
5640 openbsd*)
5641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5642 ;;
5643 *)
5644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5645 ;;
5646 esac
5647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5648 fi
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 # If no C compiler was specified, use CC.
5684 LTCC=${LTCC-"$CC"}
5685
5686 # If no C compiler flags were specified, use CFLAGS.
5687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5688
5689 # Allow CC to be a program name with arguments.
5690 compiler=$CC
5691
5692
5693 # Check for command to grab the raw symbol name followed by C symbol from nm.
5694 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5695 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5696 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5698 else
5699
5700 # These are sane defaults that work on at least a few old systems.
5701 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5702
5703 # Character class describing NM global symbol codes.
5704 symcode='[BCDEGRST]'
5705
5706 # Regexp to match symbols that can be accessed directly from C.
5707 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5708
5709 # Define system-specific variables.
5710 case $host_os in
5711 aix*)
5712 symcode='[BCDT]'
5713 ;;
5714 cygwin* | mingw* | pw32* | cegcc*)
5715 symcode='[ABCDGISTW]'
5716 ;;
5717 hpux*)
5718 if test "$host_cpu" = ia64; then
5719 symcode='[ABCDEGRST]'
5720 fi
5721 ;;
5722 irix* | nonstopux*)
5723 symcode='[BCDEGRST]'
5724 ;;
5725 osf*)
5726 symcode='[BCDEGQRST]'
5727 ;;
5728 solaris*)
5729 symcode='[BDRT]'
5730 ;;
5731 sco3.2v5*)
5732 symcode='[DT]'
5733 ;;
5734 sysv4.2uw2*)
5735 symcode='[DT]'
5736 ;;
5737 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5738 symcode='[ABDT]'
5739 ;;
5740 sysv4)
5741 symcode='[DFNSTU]'
5742 ;;
5743 esac
5744
5745 # If we're using GNU nm, then use its standard symbol codes.
5746 case `$NM -V 2>&1` in
5747 *GNU* | *'with BFD'*)
5748 symcode='[ABCDGIRSTW]' ;;
5749 esac
5750
5751 # Transform an extracted symbol line into a proper C declaration.
5752 # Some systems (esp. on ia64) link data and code symbols differently,
5753 # so use this general approach.
5754 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5755
5756 # Transform an extracted symbol line into symbol name and symbol address
5757 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5758 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'"
5759
5760 # Handle CRLF in mingw tool chain
5761 opt_cr=
5762 case $build_os in
5763 mingw*)
5764 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5765 ;;
5766 esac
5767
5768 # Try without a prefix underscore, then with it.
5769 for ac_symprfx in "" "_"; do
5770
5771 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5772 symxfrm="\\1 $ac_symprfx\\2 \\2"
5773
5774 # Write the raw and C identifiers.
5775 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5776 # Fake it for dumpbin and say T for any non-static function
5777 # and D for any global variable.
5778 # Also find C++ and __fastcall symbols from MSVC++,
5779 # which start with @ or ?.
5780 lt_cv_sys_global_symbol_pipe="$AWK '"\
5781 " {last_section=section; section=\$ 3};"\
5782 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5783 " \$ 0!~/External *\|/{next};"\
5784 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5785 " {if(hide[section]) next};"\
5786 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5787 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5788 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5789 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5790 " ' prfx=^$ac_symprfx"
5791 else
5792 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5793 fi
5794
5795 # Check to see that the pipe works correctly.
5796 pipe_works=no
5797
5798 rm -f conftest*
5799 cat > conftest.$ac_ext <<_LT_EOF
5800 #ifdef __cplusplus
5801 extern "C" {
5802 #endif
5803 char nm_test_var;
5804 void nm_test_func(void);
5805 void nm_test_func(void){}
5806 #ifdef __cplusplus
5807 }
5808 #endif
5809 int main(){nm_test_var='a';nm_test_func();return(0);}
5810 _LT_EOF
5811
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5814 ac_status=$?
5815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; then
5817 # Now try to grab the symbols.
5818 nlist=conftest.nm
5819 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5820 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5821 ac_status=$?
5822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && test -s "$nlist"; then
5824 # Try sorting and uniquifying the output.
5825 if sort "$nlist" | uniq > "$nlist"T; then
5826 mv -f "$nlist"T "$nlist"
5827 else
5828 rm -f "$nlist"T
5829 fi
5830
5831 # Make sure that we snagged all the symbols we need.
5832 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5833 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5834 cat <<_LT_EOF > conftest.$ac_ext
5835 #ifdef __cplusplus
5836 extern "C" {
5837 #endif
5838
5839 _LT_EOF
5840 # Now generate the symbol file.
5841 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5842
5843 cat <<_LT_EOF >> conftest.$ac_ext
5844
5845 /* The mapping between symbol names and symbols. */
5846 const struct {
5847 const char *name;
5848 void *address;
5849 }
5850 lt__PROGRAM__LTX_preloaded_symbols[] =
5851 {
5852 { "@PROGRAM@", (void *) 0 },
5853 _LT_EOF
5854 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5855 cat <<\_LT_EOF >> conftest.$ac_ext
5856 {0, (void *) 0}
5857 };
5858
5859 /* This works around a problem in FreeBSD linker */
5860 #ifdef FREEBSD_WORKAROUND
5861 static const void *lt_preloaded_setup() {
5862 return lt__PROGRAM__LTX_preloaded_symbols;
5863 }
5864 #endif
5865
5866 #ifdef __cplusplus
5867 }
5868 #endif
5869 _LT_EOF
5870 # Now try linking the two files.
5871 mv conftest.$ac_objext conftstm.$ac_objext
5872 lt_save_LIBS="$LIBS"
5873 lt_save_CFLAGS="$CFLAGS"
5874 LIBS="conftstm.$ac_objext"
5875 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>&5
5878 ac_status=$?
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5881 pipe_works=yes
5882 fi
5883 LIBS="$lt_save_LIBS"
5884 CFLAGS="$lt_save_CFLAGS"
5885 else
5886 echo "cannot find nm_test_func in $nlist" >&5
5887 fi
5888 else
5889 echo "cannot find nm_test_var in $nlist" >&5
5890 fi
5891 else
5892 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5893 fi
5894 else
5895 echo "$progname: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 fi
5898 rm -rf conftest* conftst*
5899
5900 # Do not use the global_symbol_pipe unless it works.
5901 if test "$pipe_works" = yes; then
5902 break
5903 else
5904 lt_cv_sys_global_symbol_pipe=
5905 fi
5906 done
5907
5908 fi
5909
5910 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5911 lt_cv_sys_global_symbol_to_cdecl=
5912 fi
5913 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5914 { $as_echo "$as_me:$LINENO: result: failed" >&5
5915 $as_echo "failed" >&6; }
5916 else
5917 { $as_echo "$as_me:$LINENO: result: ok" >&5
5918 $as_echo "ok" >&6; }
5919 fi
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 # Check whether --enable-libtool-lock was given.
5944 if test "${enable_libtool_lock+set}" = set; then
5945 enableval=$enable_libtool_lock;
5946 fi
5947
5948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5949
5950 # Some flags need to be propagated to the compiler or linker for good
5951 # libtool support.
5952 case $host in
5953 ia64-*-hpux*)
5954 # Find out which ABI we are using.
5955 echo 'int i;' > conftest.$ac_ext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5957 (eval $ac_compile) 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; then
5961 case `/usr/bin/file conftest.$ac_objext` in
5962 *ELF-32*)
5963 HPUX_IA64_MODE="32"
5964 ;;
5965 *ELF-64*)
5966 HPUX_IA64_MODE="64"
5967 ;;
5968 esac
5969 fi
5970 rm -rf conftest*
5971 ;;
5972 *-*-irix6*)
5973 # Find out which ABI we are using.
5974 echo '#line 5974 "configure"' > conftest.$ac_ext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5977 ac_status=$?
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; then
5980 if test "$lt_cv_prog_gnu_ld" = yes; then
5981 case `/usr/bin/file conftest.$ac_objext` in
5982 *32-bit*)
5983 LD="${LD-ld} -melf32bsmip"
5984 ;;
5985 *N32*)
5986 LD="${LD-ld} -melf32bmipn32"
5987 ;;
5988 *64-bit*)
5989 LD="${LD-ld} -melf64bmip"
5990 ;;
5991 esac
5992 else
5993 case `/usr/bin/file conftest.$ac_objext` in
5994 *32-bit*)
5995 LD="${LD-ld} -32"
5996 ;;
5997 *N32*)
5998 LD="${LD-ld} -n32"
5999 ;;
6000 *64-bit*)
6001 LD="${LD-ld} -64"
6002 ;;
6003 esac
6004 fi
6005 fi
6006 rm -rf conftest*
6007 ;;
6008
6009 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6010 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6011 # Find out which ABI we are using.
6012 echo 'int i;' > conftest.$ac_ext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; then
6018 case `/usr/bin/file conftest.o` in
6019 *32-bit*)
6020 case $host in
6021 x86_64-*kfreebsd*-gnu)
6022 LD="${LD-ld} -m elf_i386_fbsd"
6023 ;;
6024 x86_64-*linux*)
6025 LD="${LD-ld} -m elf_i386"
6026 ;;
6027 ppc64-*linux*|powerpc64-*linux*)
6028 LD="${LD-ld} -m elf32ppclinux"
6029 ;;
6030 s390x-*linux*)
6031 LD="${LD-ld} -m elf_s390"
6032 ;;
6033 sparc64-*linux*)
6034 LD="${LD-ld} -m elf32_sparc"
6035 ;;
6036 esac
6037 ;;
6038 *64-bit*)
6039 case $host in
6040 x86_64-*kfreebsd*-gnu)
6041 LD="${LD-ld} -m elf_x86_64_fbsd"
6042 ;;
6043 x86_64-*linux*)
6044 LD="${LD-ld} -m elf_x86_64"
6045 ;;
6046 ppc*-*linux*|powerpc*-*linux*)
6047 LD="${LD-ld} -m elf64ppc"
6048 ;;
6049 s390*-*linux*|s390*-*tpf*)
6050 LD="${LD-ld} -m elf64_s390"
6051 ;;
6052 sparc*-*linux*)
6053 LD="${LD-ld} -m elf64_sparc"
6054 ;;
6055 esac
6056 ;;
6057 esac
6058 fi
6059 rm -rf conftest*
6060 ;;
6061
6062 *-*-sco3.2v5*)
6063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6064 SAVE_CFLAGS="$CFLAGS"
6065 CFLAGS="$CFLAGS -belf"
6066 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6067 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6068 if test "${lt_cv_cc_needs_belf+set}" = set; then
6069 $as_echo_n "(cached) " >&6
6070 else
6071 ac_ext=c
6072 ac_cpp='$CPP $CPPFLAGS'
6073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083
6084 int
6085 main ()
6086 {
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (ac_try="$ac_link"
6094 case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6099 $as_echo "$ac_try_echo") >&5
6100 (eval "$ac_link") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest$ac_exeext && {
6110 test "$cross_compiling" = yes ||
6111 $as_test_x conftest$ac_exeext
6112 }; then
6113 lt_cv_cc_needs_belf=yes
6114 else
6115 $as_echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118 lt_cv_cc_needs_belf=no
6119 fi
6120
6121 rm -rf conftest.dSYM
6122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6123 conftest$ac_exeext conftest.$ac_ext
6124 ac_ext=c
6125 ac_cpp='$CPP $CPPFLAGS'
6126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129
6130 fi
6131 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6132 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6133 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6134 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6135 CFLAGS="$SAVE_CFLAGS"
6136 fi
6137 ;;
6138 sparc*-*solaris*)
6139 # Find out which ABI we are using.
6140 echo 'int i;' > conftest.$ac_ext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>&5
6143 ac_status=$?
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; then
6146 case `/usr/bin/file conftest.o` in
6147 *64-bit*)
6148 case $lt_cv_prog_gnu_ld in
6149 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6150 *)
6151 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6152 LD="${LD-ld} -64"
6153 fi
6154 ;;
6155 esac
6156 ;;
6157 esac
6158 fi
6159 rm -rf conftest*
6160 ;;
6161 esac
6162
6163 need_locks="$enable_libtool_lock"
6164
6165
6166 case $host_os in
6167 rhapsody* | darwin*)
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -n "$DSYMUTIL"; then
6177 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6197 if test -n "$DSYMUTIL"; then
6198 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6199 $as_echo "$DSYMUTIL" >&6; }
6200 else
6201 { $as_echo "$as_me:$LINENO: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205
6206 fi
6207 if test -z "$ac_cv_prog_DSYMUTIL"; then
6208 ac_ct_DSYMUTIL=$DSYMUTIL
6209 # Extract the first word of "dsymutil", so it can be a program name with args.
6210 set dummy dsymutil; ac_word=$2
6211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$ac_ct_DSYMUTIL"; then
6217 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6237 if test -n "$ac_ct_DSYMUTIL"; then
6238 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6239 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6240 else
6241 { $as_echo "$as_me:$LINENO: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245 if test "x$ac_ct_DSYMUTIL" = x; then
6246 DSYMUTIL=":"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6253 esac
6254 DSYMUTIL=$ac_ct_DSYMUTIL
6255 fi
6256 else
6257 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6258 fi
6259
6260 if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6266 $as_echo_n "(cached) " >&6
6267 else
6268 if test -n "$NMEDIT"; then
6269 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282 done
6283 done
6284 IFS=$as_save_IFS
6285
6286 fi
6287 fi
6288 NMEDIT=$ac_cv_prog_NMEDIT
6289 if test -n "$NMEDIT"; then
6290 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6291 $as_echo "$NMEDIT" >&6; }
6292 else
6293 { $as_echo "$as_me:$LINENO: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297
6298 fi
6299 if test -z "$ac_cv_prog_NMEDIT"; then
6300 ac_ct_NMEDIT=$NMEDIT
6301 # Extract the first word of "nmedit", so it can be a program name with args.
6302 set dummy nmedit; ac_word=$2
6303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -n "$ac_ct_NMEDIT"; then
6309 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6329 if test -n "$ac_ct_NMEDIT"; then
6330 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6331 $as_echo "$ac_ct_NMEDIT" >&6; }
6332 else
6333 { $as_echo "$as_me:$LINENO: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337 if test "x$ac_ct_NMEDIT" = x; then
6338 NMEDIT=":"
6339 else
6340 case $cross_compiling:$ac_tool_warned in
6341 yes:)
6342 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned=yes ;;
6345 esac
6346 NMEDIT=$ac_ct_NMEDIT
6347 fi
6348 else
6349 NMEDIT="$ac_cv_prog_NMEDIT"
6350 fi
6351
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_LIPO+set}" = set; then
6358 $as_echo_n "(cached) " >&6
6359 else
6360 if test -n "$LIPO"; then
6361 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 LIPO=$ac_cv_prog_LIPO
6381 if test -n "$LIPO"; then
6382 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6383 $as_echo "$LIPO" >&6; }
6384 else
6385 { $as_echo "$as_me:$LINENO: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390 fi
6391 if test -z "$ac_cv_prog_LIPO"; then
6392 ac_ct_LIPO=$LIPO
6393 # Extract the first word of "lipo", so it can be a program name with args.
6394 set dummy lipo; ac_word=$2
6395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$ac_ct_LIPO"; then
6401 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_LIPO="lipo"
6411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6421 if test -n "$ac_ct_LIPO"; then
6422 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6423 $as_echo "$ac_ct_LIPO" >&6; }
6424 else
6425 { $as_echo "$as_me:$LINENO: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429 if test "x$ac_ct_LIPO" = x; then
6430 LIPO=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438 LIPO=$ac_ct_LIPO
6439 fi
6440 else
6441 LIPO="$ac_cv_prog_LIPO"
6442 fi
6443
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}otool; ac_word=$2
6447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_OTOOL+set}" = set; then
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$OTOOL"; then
6453 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 OTOOL=$ac_cv_prog_OTOOL
6473 if test -n "$OTOOL"; then
6474 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6475 $as_echo "$OTOOL" >&6; }
6476 else
6477 { $as_echo "$as_me:$LINENO: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_OTOOL"; then
6484 ac_ct_OTOOL=$OTOOL
6485 # Extract the first word of "otool", so it can be a program name with args.
6486 set dummy otool; ac_word=$2
6487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$ac_ct_OTOOL"; then
6493 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_OTOOL="otool"
6503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6513 if test -n "$ac_ct_OTOOL"; then
6514 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6515 $as_echo "$ac_ct_OTOOL" >&6; }
6516 else
6517 { $as_echo "$as_me:$LINENO: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521 if test "x$ac_ct_OTOOL" = x; then
6522 OTOOL=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 OTOOL=$ac_ct_OTOOL
6531 fi
6532 else
6533 OTOOL="$ac_cv_prog_OTOOL"
6534 fi
6535
6536 if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$OTOOL64"; then
6545 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562 fi
6563 fi
6564 OTOOL64=$ac_cv_prog_OTOOL64
6565 if test -n "$OTOOL64"; then
6566 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6567 $as_echo "$OTOOL64" >&6; }
6568 else
6569 { $as_echo "$as_me:$LINENO: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573
6574 fi
6575 if test -z "$ac_cv_prog_OTOOL64"; then
6576 ac_ct_OTOOL64=$OTOOL64
6577 # Extract the first word of "otool64", so it can be a program name with args.
6578 set dummy otool64; ac_word=$2
6579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6582 $as_echo_n "(cached) " >&6
6583 else
6584 if test -n "$ac_ct_OTOOL64"; then
6585 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_OTOOL64="otool64"
6595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6605 if test -n "$ac_ct_OTOOL64"; then
6606 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6607 $as_echo "$ac_ct_OTOOL64" >&6; }
6608 else
6609 { $as_echo "$as_me:$LINENO: result: no" >&5
6610 $as_echo "no" >&6; }
6611 fi
6612
6613 if test "x$ac_ct_OTOOL64" = x; then
6614 OTOOL64=":"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622 OTOOL64=$ac_ct_OTOOL64
6623 fi
6624 else
6625 OTOOL64="$ac_cv_prog_OTOOL64"
6626 fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6655 $as_echo_n "checking for -single_module linker flag... " >&6; }
6656 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6657 $as_echo_n "(cached) " >&6
6658 else
6659 lt_cv_apple_cc_single_mod=no
6660 if test -z "${LT_MULTI_MODULE}"; then
6661 # By default we will add the -single_module flag. You can override
6662 # by either setting the environment variable LT_MULTI_MODULE
6663 # non-empty at configure time, or by adding -multi_module to the
6664 # link flags.
6665 rm -rf libconftest.dylib*
6666 echo "int foo(void){return 1;}" > conftest.c
6667 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6668 -dynamiclib -Wl,-single_module conftest.c" >&5
6669 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6670 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6671 _lt_result=$?
6672 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6673 lt_cv_apple_cc_single_mod=yes
6674 else
6675 cat conftest.err >&5
6676 fi
6677 rm -rf libconftest.dylib*
6678 rm -f conftest.*
6679 fi
6680 fi
6681 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6682 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6683 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6684 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6685 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6687 else
6688 lt_cv_ld_exported_symbols_list=no
6689 save_LDFLAGS=$LDFLAGS
6690 echo "_main" > conftest.sym
6691 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698
6699 int
6700 main ()
6701 {
6702
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_link") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest$ac_exeext && {
6725 test "$cross_compiling" = yes ||
6726 $as_test_x conftest$ac_exeext
6727 }; then
6728 lt_cv_ld_exported_symbols_list=yes
6729 else
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 lt_cv_ld_exported_symbols_list=no
6734 fi
6735
6736 rm -rf conftest.dSYM
6737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738 conftest$ac_exeext conftest.$ac_ext
6739 LDFLAGS="$save_LDFLAGS"
6740
6741 fi
6742 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6743 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6744 case $host_os in
6745 rhapsody* | darwin1.[012])
6746 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6747 darwin1.*)
6748 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6749 darwin*) # darwin 5.x on
6750 # if running on 10.5 or later, the deployment target defaults
6751 # to the OS version, if on x86, and 10.4, the deployment
6752 # target defaults to 10.4. Don't you love it?
6753 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6754 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6755 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6756 10.[012]*)
6757 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6758 10.*)
6759 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6760 esac
6761 ;;
6762 esac
6763 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6764 _lt_dar_single_mod='$single_module'
6765 fi
6766 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6767 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6768 else
6769 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6770 fi
6771 if test "$DSYMUTIL" != ":"; then
6772 _lt_dsymutil='~$DSYMUTIL $lib || :'
6773 else
6774 _lt_dsymutil=
6775 fi
6776 ;;
6777 esac
6778
6779 ac_ext=c
6780 ac_cpp='$CPP $CPPFLAGS'
6781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6785 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6786 # On Suns, sometimes $CPP names a directory.
6787 if test -n "$CPP" && test -d "$CPP"; then
6788 CPP=
6789 fi
6790 if test -z "$CPP"; then
6791 if test "${ac_cv_prog_CPP+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6793 else
6794 # Double quotes because CPP needs to be expanded
6795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6796 do
6797 ac_preproc_ok=false
6798 for ac_c_preproc_warn_flag in '' yes
6799 do
6800 # Use a header file that comes with gcc, so configuring glibc
6801 # with a fresh cross-compiler works.
6802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6803 # <limits.h> exists even on freestanding compilers.
6804 # On the NeXT, cc -E runs the code through the compiler's parser,
6805 # not just through cpp. "Syntax error" is here to catch this case.
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #ifdef __STDC__
6813 # include <limits.h>
6814 #else
6815 # include <assert.h>
6816 #endif
6817 Syntax error
6818 _ACEOF
6819 if { (ac_try="$ac_cpp conftest.$ac_ext"
6820 case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823 esac
6824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6825 $as_echo "$ac_try_echo") >&5
6826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null && {
6833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6834 test ! -s conftest.err
6835 }; then
6836 :
6837 else
6838 $as_echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 # Broken: fails on valid input.
6842 continue
6843 fi
6844
6845 rm -f conftest.err conftest.$ac_ext
6846
6847 # OK, works on sane cases. Now check whether nonexistent headers
6848 # can be detected and how.
6849 cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h. */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 #include <ac_nonexistent.h>
6856 _ACEOF
6857 if { (ac_try="$ac_cpp conftest.$ac_ext"
6858 case "(($ac_try" in
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6861 esac
6862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6863 $as_echo "$ac_try_echo") >&5
6864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6865 ac_status=$?
6866 grep -v '^ *+' conftest.er1 >conftest.err
6867 rm -f conftest.er1
6868 cat conftest.err >&5
6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } >/dev/null && {
6871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6872 test ! -s conftest.err
6873 }; then
6874 # Broken: success on invalid input.
6875 continue
6876 else
6877 $as_echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 # Passes both tests.
6881 ac_preproc_ok=:
6882 break
6883 fi
6884
6885 rm -f conftest.err conftest.$ac_ext
6886
6887 done
6888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6889 rm -f conftest.err conftest.$ac_ext
6890 if $ac_preproc_ok; then
6891 break
6892 fi
6893
6894 done
6895 ac_cv_prog_CPP=$CPP
6896
6897 fi
6898 CPP=$ac_cv_prog_CPP
6899 else
6900 ac_cv_prog_CPP=$CPP
6901 fi
6902 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6903 $as_echo "$CPP" >&6; }
6904 ac_preproc_ok=false
6905 for ac_c_preproc_warn_flag in '' yes
6906 do
6907 # Use a header file that comes with gcc, so configuring glibc
6908 # with a fresh cross-compiler works.
6909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910 # <limits.h> exists even on freestanding compilers.
6911 # On the NeXT, cc -E runs the code through the compiler's parser,
6912 # not just through cpp. "Syntax error" is here to catch this case.
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #ifdef __STDC__
6920 # include <limits.h>
6921 #else
6922 # include <assert.h>
6923 #endif
6924 Syntax error
6925 _ACEOF
6926 if { (ac_try="$ac_cpp conftest.$ac_ext"
6927 case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930 esac
6931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6932 $as_echo "$ac_try_echo") >&5
6933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } >/dev/null && {
6940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6942 }; then
6943 :
6944 else
6945 $as_echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6947
6948 # Broken: fails on valid input.
6949 continue
6950 fi
6951
6952 rm -f conftest.err conftest.$ac_ext
6953
6954 # OK, works on sane cases. Now check whether nonexistent headers
6955 # can be detected and how.
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <ac_nonexistent.h>
6963 _ACEOF
6964 if { (ac_try="$ac_cpp conftest.$ac_ext"
6965 case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968 esac
6969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970 $as_echo "$ac_try_echo") >&5
6971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } >/dev/null && {
6978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 }; then
6981 # Broken: success on invalid input.
6982 continue
6983 else
6984 $as_echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987 # Passes both tests.
6988 ac_preproc_ok=:
6989 break
6990 fi
6991
6992 rm -f conftest.err conftest.$ac_ext
6993
6994 done
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
6998 :
6999 else
7000 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7002 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7003 See \`config.log' for more details." >&5
7004 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7005 See \`config.log' for more details." >&2;}
7006 { (exit 1); exit 1; }; }; }
7007 fi
7008
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014
7015
7016 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7017 $as_echo_n "checking for ANSI C header files... " >&6; }
7018 if test "${ac_cv_header_stdc+set}" = set; then
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <stdlib.h>
7028 #include <stdarg.h>
7029 #include <string.h>
7030 #include <float.h>
7031
7032 int
7033 main ()
7034 {
7035
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_header_stdc=yes
7059 else
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 ac_cv_header_stdc=no
7064 fi
7065
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067
7068 if test $ac_cv_header_stdc = yes; then
7069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #include <string.h>
7077
7078 _ACEOF
7079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080 $EGREP "memchr" >/dev/null 2>&1; then
7081 :
7082 else
7083 ac_cv_header_stdc=no
7084 fi
7085 rm -f conftest*
7086
7087 fi
7088
7089 if test $ac_cv_header_stdc = yes; then
7090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <stdlib.h>
7098
7099 _ACEOF
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 $EGREP "free" >/dev/null 2>&1; then
7102 :
7103 else
7104 ac_cv_header_stdc=no
7105 fi
7106 rm -f conftest*
7107
7108 fi
7109
7110 if test $ac_cv_header_stdc = yes; then
7111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112 if test "$cross_compiling" = yes; then
7113 :
7114 else
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 #include <ctype.h>
7122 #include <stdlib.h>
7123 #if ((' ' & 0x0FF) == 0x020)
7124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7126 #else
7127 # define ISLOWER(c) \
7128 (('a' <= (c) && (c) <= 'i') \
7129 || ('j' <= (c) && (c) <= 'r') \
7130 || ('s' <= (c) && (c) <= 'z'))
7131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7132 #endif
7133
7134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7135 int
7136 main ()
7137 {
7138 int i;
7139 for (i = 0; i < 256; i++)
7140 if (XOR (islower (i), ISLOWER (i))
7141 || toupper (i) != TOUPPER (i))
7142 return 2;
7143 return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest$ac_exeext
7147 if { (ac_try="$ac_link"
7148 case "(($ac_try" in
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7151 esac
7152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7153 $as_echo "$ac_try_echo") >&5
7154 (eval "$ac_link") 2>&5
7155 ac_status=$?
7156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7158 { (case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161 esac
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_try") 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 :
7169 else
7170 $as_echo "$as_me: program exited with status $ac_status" >&5
7171 $as_echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7173
7174 ( exit $ac_status )
7175 ac_cv_header_stdc=no
7176 fi
7177 rm -rf conftest.dSYM
7178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7179 fi
7180
7181
7182 fi
7183 fi
7184 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7185 $as_echo "$ac_cv_header_stdc" >&6; }
7186 if test $ac_cv_header_stdc = yes; then
7187
7188 cat >>confdefs.h <<\_ACEOF
7189 #define STDC_HEADERS 1
7190 _ACEOF
7191
7192 fi
7193
7194 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7205 inttypes.h stdint.h unistd.h
7206 do
7207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7209 $as_echo_n "checking for $ac_header... " >&6; }
7210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7211 $as_echo_n "(cached) " >&6
7212 else
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 $ac_includes_default
7220
7221 #include <$ac_header>
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7230 $as_echo "$ac_try_echo") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 eval "$as_ac_Header=yes"
7242 else
7243 $as_echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246 eval "$as_ac_Header=no"
7247 fi
7248
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 ac_res=`eval 'as_val=${'$as_ac_Header'}
7252 $as_echo "$as_val"'`
7253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7254 $as_echo "$ac_res" >&6; }
7255 as_val=`eval 'as_val=${'$as_ac_Header'}
7256 $as_echo "$as_val"'`
7257 if test "x$as_val" = x""yes; then
7258 cat >>confdefs.h <<_ACEOF
7259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7260 _ACEOF
7261
7262 fi
7263
7264 done
7265
7266
7267
7268 for ac_header in dlfcn.h
7269 do
7270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 $as_echo_n "checking for $ac_header... " >&6; }
7273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7274 $as_echo_n "(cached) " >&6
7275 else
7276 cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h. */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 $ac_includes_default
7283
7284 #include <$ac_header>
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (ac_try="$ac_compile"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 eval "$as_ac_Header=yes"
7305 else
7306 $as_echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 eval "$as_ac_Header=no"
7310 fi
7311
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 fi
7314 ac_res=`eval 'as_val=${'$as_ac_Header'}
7315 $as_echo "$as_val"'`
7316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7317 $as_echo "$ac_res" >&6; }
7318 as_val=`eval 'as_val=${'$as_ac_Header'}
7319 $as_echo "$as_val"'`
7320 if test "x$as_val" = x""yes; then
7321 cat >>confdefs.h <<_ACEOF
7322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7323 _ACEOF
7324
7325 fi
7326
7327 done
7328
7329
7330
7331 # Set options
7332
7333
7334
7335 enable_dlopen=no
7336
7337
7338 enable_win32_dll=no
7339
7340
7341 # Check whether --enable-shared was given.
7342 if test "${enable_shared+set}" = set; then
7343 enableval=$enable_shared; p=${PACKAGE-default}
7344 case $enableval in
7345 yes) enable_shared=yes ;;
7346 no) enable_shared=no ;;
7347 *)
7348 enable_shared=no
7349 # Look at the argument we got. We use all the common list separators.
7350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7351 for pkg in $enableval; do
7352 IFS="$lt_save_ifs"
7353 if test "X$pkg" = "X$p"; then
7354 enable_shared=yes
7355 fi
7356 done
7357 IFS="$lt_save_ifs"
7358 ;;
7359 esac
7360 else
7361 enable_shared=yes
7362 fi
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 # Check whether --enable-static was given.
7373 if test "${enable_static+set}" = set; then
7374 enableval=$enable_static; p=${PACKAGE-default}
7375 case $enableval in
7376 yes) enable_static=yes ;;
7377 no) enable_static=no ;;
7378 *)
7379 enable_static=no
7380 # Look at the argument we got. We use all the common list separators.
7381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7382 for pkg in $enableval; do
7383 IFS="$lt_save_ifs"
7384 if test "X$pkg" = "X$p"; then
7385 enable_static=yes
7386 fi
7387 done
7388 IFS="$lt_save_ifs"
7389 ;;
7390 esac
7391 else
7392 enable_static=yes
7393 fi
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 # Check whether --with-pic was given.
7405 if test "${with_pic+set}" = set; then
7406 withval=$with_pic; pic_mode="$withval"
7407 else
7408 pic_mode=default
7409 fi
7410
7411
7412 test -z "$pic_mode" && pic_mode=default
7413
7414
7415
7416
7417
7418
7419
7420 # Check whether --enable-fast-install was given.
7421 if test "${enable_fast_install+set}" = set; then
7422 enableval=$enable_fast_install; p=${PACKAGE-default}
7423 case $enableval in
7424 yes) enable_fast_install=yes ;;
7425 no) enable_fast_install=no ;;
7426 *)
7427 enable_fast_install=no
7428 # Look at the argument we got. We use all the common list separators.
7429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7430 for pkg in $enableval; do
7431 IFS="$lt_save_ifs"
7432 if test "X$pkg" = "X$p"; then
7433 enable_fast_install=yes
7434 fi
7435 done
7436 IFS="$lt_save_ifs"
7437 ;;
7438 esac
7439 else
7440 enable_fast_install=yes
7441 fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453 # This can be used to rebuild libtool when needed
7454 LIBTOOL_DEPS="$ltmain"
7455
7456 # Always use our own libtool.
7457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483 test -z "$LN_S" && LN_S="ln -s"
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 if test -n "${ZSH_VERSION+set}" ; then
7499 setopt NO_GLOB_SUBST
7500 fi
7501
7502 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7503 $as_echo_n "checking for objdir... " >&6; }
7504 if test "${lt_cv_objdir+set}" = set; then
7505 $as_echo_n "(cached) " >&6
7506 else
7507 rm -f .libs 2>/dev/null
7508 mkdir .libs 2>/dev/null
7509 if test -d .libs; then
7510 lt_cv_objdir=.libs
7511 else
7512 # MS-DOS does not allow filenames that begin with a dot.
7513 lt_cv_objdir=_libs
7514 fi
7515 rmdir .libs 2>/dev/null
7516 fi
7517 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7518 $as_echo "$lt_cv_objdir" >&6; }
7519 objdir=$lt_cv_objdir
7520
7521
7522
7523
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define LT_OBJDIR "$lt_cv_objdir/"
7527 _ACEOF
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 case $host_os in
7546 aix3*)
7547 # AIX sometimes has problems with the GCC collect2 program. For some
7548 # reason, if we set the COLLECT_NAMES environment variable, the problems
7549 # vanish in a puff of smoke.
7550 if test "X${COLLECT_NAMES+set}" != Xset; then
7551 COLLECT_NAMES=
7552 export COLLECT_NAMES
7553 fi
7554 ;;
7555 esac
7556
7557 # Sed substitution that helps us do robust quoting. It backslashifies
7558 # metacharacters that are still active within double-quoted strings.
7559 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7560
7561 # Same as above, but do not quote variable references.
7562 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7563
7564 # Sed substitution to delay expansion of an escaped shell variable in a
7565 # double_quote_subst'ed string.
7566 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7567
7568 # Sed substitution to delay expansion of an escaped single quote.
7569 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7570
7571 # Sed substitution to avoid accidental globbing in evaled expressions
7572 no_glob_subst='s/\*/\\\*/g'
7573
7574 # Global variables:
7575 ofile=libtool
7576 can_build_shared=yes
7577
7578 # All known linkers require a `.a' archive for static linking (except MSVC,
7579 # which needs '.lib').
7580 libext=a
7581
7582 with_gnu_ld="$lt_cv_prog_gnu_ld"
7583
7584 old_CC="$CC"
7585 old_CFLAGS="$CFLAGS"
7586
7587 # Set sane defaults for various variables
7588 test -z "$CC" && CC=cc
7589 test -z "$LTCC" && LTCC=$CC
7590 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7591 test -z "$LD" && LD=ld
7592 test -z "$ac_objext" && ac_objext=o
7593
7594 for cc_temp in $compiler""; do
7595 case $cc_temp in
7596 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7597 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7598 \-*) ;;
7599 *) break;;
7600 esac
7601 done
7602 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7603
7604
7605 # Only perform the check for file, if the check method requires it
7606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7607 case $deplibs_check_method in
7608 file_magic*)
7609 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7610 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7611 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7612 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7614 else
7615 case $MAGIC_CMD in
7616 [\\/*] | ?:[\\/]*)
7617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7618 ;;
7619 *)
7620 lt_save_MAGIC_CMD="$MAGIC_CMD"
7621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7622 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7623 for ac_dir in $ac_dummy; do
7624 IFS="$lt_save_ifs"
7625 test -z "$ac_dir" && ac_dir=.
7626 if test -f $ac_dir/${ac_tool_prefix}file; then
7627 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7628 if test -n "$file_magic_test_file"; then
7629 case $deplibs_check_method in
7630 "file_magic "*)
7631 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7634 $EGREP "$file_magic_regex" > /dev/null; then
7635 :
7636 else
7637 cat <<_LT_EOF 1>&2
7638
7639 *** Warning: the command libtool uses to detect shared libraries,
7640 *** $file_magic_cmd, produces output that libtool cannot recognize.
7641 *** The result is that libtool may fail to recognize shared libraries
7642 *** as such. This will affect the creation of libtool libraries that
7643 *** depend on shared libraries, but programs linked with such libtool
7644 *** libraries will work regardless of this problem. Nevertheless, you
7645 *** may want to report the problem to your system manager and/or to
7646 *** bug-libtool@gnu.org
7647
7648 _LT_EOF
7649 fi ;;
7650 esac
7651 fi
7652 break
7653 fi
7654 done
7655 IFS="$lt_save_ifs"
7656 MAGIC_CMD="$lt_save_MAGIC_CMD"
7657 ;;
7658 esac
7659 fi
7660
7661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7662 if test -n "$MAGIC_CMD"; then
7663 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7664 $as_echo "$MAGIC_CMD" >&6; }
7665 else
7666 { $as_echo "$as_me:$LINENO: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671
7672
7673
7674 if test -z "$lt_cv_path_MAGIC_CMD"; then
7675 if test -n "$ac_tool_prefix"; then
7676 { $as_echo "$as_me:$LINENO: checking for file" >&5
7677 $as_echo_n "checking for file... " >&6; }
7678 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7680 else
7681 case $MAGIC_CMD in
7682 [\\/*] | ?:[\\/]*)
7683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7684 ;;
7685 *)
7686 lt_save_MAGIC_CMD="$MAGIC_CMD"
7687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7689 for ac_dir in $ac_dummy; do
7690 IFS="$lt_save_ifs"
7691 test -z "$ac_dir" && ac_dir=.
7692 if test -f $ac_dir/file; then
7693 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7694 if test -n "$file_magic_test_file"; then
7695 case $deplibs_check_method in
7696 "file_magic "*)
7697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7700 $EGREP "$file_magic_regex" > /dev/null; then
7701 :
7702 else
7703 cat <<_LT_EOF 1>&2
7704
7705 *** Warning: the command libtool uses to detect shared libraries,
7706 *** $file_magic_cmd, produces output that libtool cannot recognize.
7707 *** The result is that libtool may fail to recognize shared libraries
7708 *** as such. This will affect the creation of libtool libraries that
7709 *** depend on shared libraries, but programs linked with such libtool
7710 *** libraries will work regardless of this problem. Nevertheless, you
7711 *** may want to report the problem to your system manager and/or to
7712 *** bug-libtool@gnu.org
7713
7714 _LT_EOF
7715 fi ;;
7716 esac
7717 fi
7718 break
7719 fi
7720 done
7721 IFS="$lt_save_ifs"
7722 MAGIC_CMD="$lt_save_MAGIC_CMD"
7723 ;;
7724 esac
7725 fi
7726
7727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7728 if test -n "$MAGIC_CMD"; then
7729 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7730 $as_echo "$MAGIC_CMD" >&6; }
7731 else
7732 { $as_echo "$as_me:$LINENO: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736
7737 else
7738 MAGIC_CMD=:
7739 fi
7740 fi
7741
7742 fi
7743 ;;
7744 esac
7745
7746 # Use C for the default configuration in the libtool script
7747
7748 lt_save_CC="$CC"
7749 ac_ext=c
7750 ac_cpp='$CPP $CPPFLAGS'
7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754
7755
7756 # Source file extension for C test sources.
7757 ac_ext=c
7758
7759 # Object file extension for compiled C test sources.
7760 objext=o
7761 objext=$objext
7762
7763 # Code to be used in simple compile tests
7764 lt_simple_compile_test_code="int some_variable = 0;"
7765
7766 # Code to be used in simple link tests
7767 lt_simple_link_test_code='int main(){return(0);}'
7768
7769
7770
7771
7772
7773
7774
7775 # If no C compiler was specified, use CC.
7776 LTCC=${LTCC-"$CC"}
7777
7778 # If no C compiler flags were specified, use CFLAGS.
7779 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7780
7781 # Allow CC to be a program name with arguments.
7782 compiler=$CC
7783
7784 # Save the default compiler, since it gets overwritten when the other
7785 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7786 compiler_DEFAULT=$CC
7787
7788 # save warnings/boilerplate of simple test code
7789 ac_outfile=conftest.$ac_objext
7790 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7792 _lt_compiler_boilerplate=`cat conftest.err`
7793 $RM conftest*
7794
7795 ac_outfile=conftest.$ac_objext
7796 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7798 _lt_linker_boilerplate=`cat conftest.err`
7799 $RM -r conftest*
7800
7801
7802 if test -n "$compiler"; then
7803
7804 lt_prog_compiler_no_builtin_flag=
7805
7806 if test "$GCC" = yes; then
7807 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7808
7809 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7810 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7811 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7812 $as_echo_n "(cached) " >&6
7813 else
7814 lt_cv_prog_compiler_rtti_exceptions=no
7815 ac_outfile=conftest.$ac_objext
7816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7817 lt_compiler_flag="-fno-rtti -fno-exceptions"
7818 # Insert the option either (1) after the last *FLAGS variable, or
7819 # (2) before a word containing "conftest.", or (3) at the end.
7820 # Note that $ac_compile itself does not contain backslashes and begins
7821 # with a dollar sign (not a hyphen), so the echo should work correctly.
7822 # The option is referenced via a variable to avoid confusing sed.
7823 lt_compile=`echo "$ac_compile" | $SED \
7824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7826 -e 's:$: $lt_compiler_flag:'`
7827 (eval echo "\"\$as_me:7827: $lt_compile\"" >&5)
7828 (eval "$lt_compile" 2>conftest.err)
7829 ac_status=$?
7830 cat conftest.err >&5
7831 echo "$as_me:7831: \$? = $ac_status" >&5
7832 if (exit $ac_status) && test -s "$ac_outfile"; then
7833 # The compiler can only warn and ignore the option if not recognized
7834 # So say no if there are warnings other than the usual output.
7835 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7838 lt_cv_prog_compiler_rtti_exceptions=yes
7839 fi
7840 fi
7841 $RM conftest*
7842
7843 fi
7844 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7845 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7846
7847 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7848 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7849 else
7850 :
7851 fi
7852
7853 fi
7854
7855
7856
7857
7858
7859
7860 lt_prog_compiler_wl=
7861 lt_prog_compiler_pic=
7862 lt_prog_compiler_static=
7863
7864 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7865 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7866
7867 if test "$GCC" = yes; then
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_static='-static'
7870
7871 case $host_os in
7872 aix*)
7873 # All AIX code is PIC.
7874 if test "$host_cpu" = ia64; then
7875 # AIX 5 now supports IA64 processor
7876 lt_prog_compiler_static='-Bstatic'
7877 fi
7878 ;;
7879
7880 amigaos*)
7881 case $host_cpu in
7882 powerpc)
7883 # see comment about AmigaOS4 .so support
7884 lt_prog_compiler_pic='-fPIC'
7885 ;;
7886 m68k)
7887 # FIXME: we need at least 68020 code to build shared libraries, but
7888 # adding the `-m68020' flag to GCC prevents building anything better,
7889 # like `-m68040'.
7890 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7891 ;;
7892 esac
7893 ;;
7894
7895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7896 # PIC is the default for these OSes.
7897 ;;
7898
7899 mingw* | cygwin* | pw32* | os2* | cegcc*)
7900 # This hack is so that the source file can tell whether it is being
7901 # built for inclusion in a dll (and should export symbols for example).
7902 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7903 # (--disable-auto-import) libraries
7904 lt_prog_compiler_pic='-DDLL_EXPORT'
7905 ;;
7906
7907 darwin* | rhapsody*)
7908 # PIC is the default on this platform
7909 # Common symbols not allowed in MH_DYLIB files
7910 lt_prog_compiler_pic='-fno-common'
7911 ;;
7912
7913 hpux*)
7914 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7915 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7916 # sets the default TLS model and affects inlining.
7917 case $host_cpu in
7918 hppa*64*)
7919 # +Z the default
7920 ;;
7921 *)
7922 lt_prog_compiler_pic='-fPIC'
7923 ;;
7924 esac
7925 ;;
7926
7927 interix[3-9]*)
7928 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7929 # Instead, we relocate shared libraries at runtime.
7930 ;;
7931
7932 msdosdjgpp*)
7933 # Just because we use GCC doesn't mean we suddenly get shared libraries
7934 # on systems that don't support them.
7935 lt_prog_compiler_can_build_shared=no
7936 enable_shared=no
7937 ;;
7938
7939 *nto* | *qnx*)
7940 # QNX uses GNU C++, but need to define -shared option too, otherwise
7941 # it will coredump.
7942 lt_prog_compiler_pic='-fPIC -shared'
7943 ;;
7944
7945 sysv4*MP*)
7946 if test -d /usr/nec; then
7947 lt_prog_compiler_pic=-Kconform_pic
7948 fi
7949 ;;
7950
7951 *)
7952 lt_prog_compiler_pic='-fPIC'
7953 ;;
7954 esac
7955 else
7956 # PORTME Check for flag to pass linker flags through the system compiler.
7957 case $host_os in
7958 aix*)
7959 lt_prog_compiler_wl='-Wl,'
7960 if test "$host_cpu" = ia64; then
7961 # AIX 5 now supports IA64 processor
7962 lt_prog_compiler_static='-Bstatic'
7963 else
7964 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7965 fi
7966 ;;
7967
7968 mingw* | cygwin* | pw32* | os2* | cegcc*)
7969 # This hack is so that the source file can tell whether it is being
7970 # built for inclusion in a dll (and should export symbols for example).
7971 lt_prog_compiler_pic='-DDLL_EXPORT'
7972 ;;
7973
7974 hpux9* | hpux10* | hpux11*)
7975 lt_prog_compiler_wl='-Wl,'
7976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7977 # not for PA HP-UX.
7978 case $host_cpu in
7979 hppa*64*|ia64*)
7980 # +Z the default
7981 ;;
7982 *)
7983 lt_prog_compiler_pic='+Z'
7984 ;;
7985 esac
7986 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7987 lt_prog_compiler_static='${wl}-a ${wl}archive'
7988 ;;
7989
7990 irix5* | irix6* | nonstopux*)
7991 lt_prog_compiler_wl='-Wl,'
7992 # PIC (with -KPIC) is the default.
7993 lt_prog_compiler_static='-non_shared'
7994 ;;
7995
7996 linux* | k*bsd*-gnu)
7997 case $cc_basename in
7998 # old Intel for x86_64 which still supported -KPIC.
7999 ecc*)
8000 lt_prog_compiler_wl='-Wl,'
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-static'
8003 ;;
8004 # icc used to be incompatible with GCC.
8005 # ICC 10 doesn't accept -KPIC any more.
8006 icc* | ifort*)
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_pic='-fPIC'
8009 lt_prog_compiler_static='-static'
8010 ;;
8011 # Lahey Fortran 8.1.
8012 lf95*)
8013 lt_prog_compiler_wl='-Wl,'
8014 lt_prog_compiler_pic='--shared'
8015 lt_prog_compiler_static='--static'
8016 ;;
8017 pgcc* | pgf77* | pgf90* | pgf95*)
8018 # Portland Group compilers (*not* the Pentium gcc compiler,
8019 # which looks to be a dead project)
8020 lt_prog_compiler_wl='-Wl,'
8021 lt_prog_compiler_pic='-fpic'
8022 lt_prog_compiler_static='-Bstatic'
8023 ;;
8024 ccc*)
8025 lt_prog_compiler_wl='-Wl,'
8026 # All Alpha code is PIC.
8027 lt_prog_compiler_static='-non_shared'
8028 ;;
8029 xl*)
8030 # IBM XL C 8.0/Fortran 10.1 on PPC
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-qpic'
8033 lt_prog_compiler_static='-qstaticlink'
8034 ;;
8035 *)
8036 case `$CC -V 2>&1 | sed 5q` in
8037 *Sun\ C*)
8038 # Sun C 5.9
8039 lt_prog_compiler_pic='-KPIC'
8040 lt_prog_compiler_static='-Bstatic'
8041 lt_prog_compiler_wl='-Wl,'
8042 ;;
8043 *Sun\ F*)
8044 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8045 lt_prog_compiler_pic='-KPIC'
8046 lt_prog_compiler_static='-Bstatic'
8047 lt_prog_compiler_wl=''
8048 ;;
8049 esac
8050 ;;
8051 esac
8052 ;;
8053
8054 newsos6)
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 ;;
8058
8059 *nto* | *qnx*)
8060 # QNX uses GNU C++, but need to define -shared option too, otherwise
8061 # it will coredump.
8062 lt_prog_compiler_pic='-fPIC -shared'
8063 ;;
8064
8065 osf3* | osf4* | osf5*)
8066 lt_prog_compiler_wl='-Wl,'
8067 # All OSF/1 code is PIC.
8068 lt_prog_compiler_static='-non_shared'
8069 ;;
8070
8071 rdos*)
8072 lt_prog_compiler_static='-non_shared'
8073 ;;
8074
8075 solaris*)
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 case $cc_basename in
8079 f77* | f90* | f95*)
8080 lt_prog_compiler_wl='-Qoption ld ';;
8081 *)
8082 lt_prog_compiler_wl='-Wl,';;
8083 esac
8084 ;;
8085
8086 sunos4*)
8087 lt_prog_compiler_wl='-Qoption ld '
8088 lt_prog_compiler_pic='-PIC'
8089 lt_prog_compiler_static='-Bstatic'
8090 ;;
8091
8092 sysv4 | sysv4.2uw2* | sysv4.3*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
8096 ;;
8097
8098 sysv4*MP*)
8099 if test -d /usr/nec ;then
8100 lt_prog_compiler_pic='-Kconform_pic'
8101 lt_prog_compiler_static='-Bstatic'
8102 fi
8103 ;;
8104
8105 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 ;;
8110
8111 unicos*)
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_can_build_shared=no
8114 ;;
8115
8116 uts4*)
8117 lt_prog_compiler_pic='-pic'
8118 lt_prog_compiler_static='-Bstatic'
8119 ;;
8120
8121 *)
8122 lt_prog_compiler_can_build_shared=no
8123 ;;
8124 esac
8125 fi
8126
8127 case $host_os in
8128 # For platforms which do not support PIC, -DPIC is meaningless:
8129 *djgpp*)
8130 lt_prog_compiler_pic=
8131 ;;
8132 *)
8133 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8134 ;;
8135 esac
8136 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8137 $as_echo "$lt_prog_compiler_pic" >&6; }
8138
8139
8140
8141
8142
8143
8144 #
8145 # Check to make sure the PIC flag actually works.
8146 #
8147 if test -n "$lt_prog_compiler_pic"; then
8148 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8149 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8150 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8151 $as_echo_n "(cached) " >&6
8152 else
8153 lt_cv_prog_compiler_pic_works=no
8154 ac_outfile=conftest.$ac_objext
8155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8156 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8157 # Insert the option either (1) after the last *FLAGS variable, or
8158 # (2) before a word containing "conftest.", or (3) at the end.
8159 # Note that $ac_compile itself does not contain backslashes and begins
8160 # with a dollar sign (not a hyphen), so the echo should work correctly.
8161 # The option is referenced via a variable to avoid confusing sed.
8162 lt_compile=`echo "$ac_compile" | $SED \
8163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8165 -e 's:$: $lt_compiler_flag:'`
8166 (eval echo "\"\$as_me:8166: $lt_compile\"" >&5)
8167 (eval "$lt_compile" 2>conftest.err)
8168 ac_status=$?
8169 cat conftest.err >&5
8170 echo "$as_me:8170: \$? = $ac_status" >&5
8171 if (exit $ac_status) && test -s "$ac_outfile"; then
8172 # The compiler can only warn and ignore the option if not recognized
8173 # So say no if there are warnings other than the usual output.
8174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8176 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8177 lt_cv_prog_compiler_pic_works=yes
8178 fi
8179 fi
8180 $RM conftest*
8181
8182 fi
8183 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8184 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8185
8186 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8187 case $lt_prog_compiler_pic in
8188 "" | " "*) ;;
8189 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8190 esac
8191 else
8192 lt_prog_compiler_pic=
8193 lt_prog_compiler_can_build_shared=no
8194 fi
8195
8196 fi
8197
8198
8199
8200
8201
8202
8203 #
8204 # Check to make sure the static flag actually works.
8205 #
8206 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8207 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8208 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8209 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8210 $as_echo_n "(cached) " >&6
8211 else
8212 lt_cv_prog_compiler_static_works=no
8213 save_LDFLAGS="$LDFLAGS"
8214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8217 # The linker can only warn and ignore the option if not recognized
8218 # So say no if there are warnings
8219 if test -s conftest.err; then
8220 # Append any errors to the config.log.
8221 cat conftest.err 1>&5
8222 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8224 if diff conftest.exp conftest.er2 >/dev/null; then
8225 lt_cv_prog_compiler_static_works=yes
8226 fi
8227 else
8228 lt_cv_prog_compiler_static_works=yes
8229 fi
8230 fi
8231 $RM -r conftest*
8232 LDFLAGS="$save_LDFLAGS"
8233
8234 fi
8235 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8236 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8237
8238 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8239 :
8240 else
8241 lt_prog_compiler_static=
8242 fi
8243
8244
8245
8246
8247
8248
8249
8250 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8252 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8253 $as_echo_n "(cached) " >&6
8254 else
8255 lt_cv_prog_compiler_c_o=no
8256 $RM -r conftest 2>/dev/null
8257 mkdir conftest
8258 cd conftest
8259 mkdir out
8260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8261
8262 lt_compiler_flag="-o out/conftest2.$ac_objext"
8263 # Insert the option either (1) after the last *FLAGS variable, or
8264 # (2) before a word containing "conftest.", or (3) at the end.
8265 # Note that $ac_compile itself does not contain backslashes and begins
8266 # with a dollar sign (not a hyphen), so the echo should work correctly.
8267 lt_compile=`echo "$ac_compile" | $SED \
8268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270 -e 's:$: $lt_compiler_flag:'`
8271 (eval echo "\"\$as_me:8271: $lt_compile\"" >&5)
8272 (eval "$lt_compile" 2>out/conftest.err)
8273 ac_status=$?
8274 cat out/conftest.err >&5
8275 echo "$as_me:8275: \$? = $ac_status" >&5
8276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8277 then
8278 # The compiler can only warn and ignore the option if not recognized
8279 # So say no if there are warnings
8280 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8283 lt_cv_prog_compiler_c_o=yes
8284 fi
8285 fi
8286 chmod u+w . 2>&5
8287 $RM conftest*
8288 # SGI C++ compiler will create directory out/ii_files/ for
8289 # template instantiation
8290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8291 $RM out/* && rmdir out
8292 cd ..
8293 $RM -r conftest
8294 $RM conftest*
8295
8296 fi
8297 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8299
8300
8301
8302
8303
8304
8305 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8307 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8309 else
8310 lt_cv_prog_compiler_c_o=no
8311 $RM -r conftest 2>/dev/null
8312 mkdir conftest
8313 cd conftest
8314 mkdir out
8315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8316
8317 lt_compiler_flag="-o out/conftest2.$ac_objext"
8318 # Insert the option either (1) after the last *FLAGS variable, or
8319 # (2) before a word containing "conftest.", or (3) at the end.
8320 # Note that $ac_compile itself does not contain backslashes and begins
8321 # with a dollar sign (not a hyphen), so the echo should work correctly.
8322 lt_compile=`echo "$ac_compile" | $SED \
8323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325 -e 's:$: $lt_compiler_flag:'`
8326 (eval echo "\"\$as_me:8326: $lt_compile\"" >&5)
8327 (eval "$lt_compile" 2>out/conftest.err)
8328 ac_status=$?
8329 cat out/conftest.err >&5
8330 echo "$as_me:8330: \$? = $ac_status" >&5
8331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8332 then
8333 # The compiler can only warn and ignore the option if not recognized
8334 # So say no if there are warnings
8335 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8338 lt_cv_prog_compiler_c_o=yes
8339 fi
8340 fi
8341 chmod u+w . 2>&5
8342 $RM conftest*
8343 # SGI C++ compiler will create directory out/ii_files/ for
8344 # template instantiation
8345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8346 $RM out/* && rmdir out
8347 cd ..
8348 $RM -r conftest
8349 $RM conftest*
8350
8351 fi
8352 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8353 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8354
8355
8356
8357
8358 hard_links="nottested"
8359 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8360 # do not overwrite the value of need_locks provided by the user
8361 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8362 $as_echo_n "checking if we can lock with hard links... " >&6; }
8363 hard_links=yes
8364 $RM conftest*
8365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8366 touch conftest.a
8367 ln conftest.a conftest.b 2>&5 || hard_links=no
8368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8369 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8370 $as_echo "$hard_links" >&6; }
8371 if test "$hard_links" = no; then
8372 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8374 need_locks=warn
8375 fi
8376 else
8377 need_locks=no
8378 fi
8379
8380
8381
8382
8383
8384
8385 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8387
8388 runpath_var=
8389 allow_undefined_flag=
8390 always_export_symbols=no
8391 archive_cmds=
8392 archive_expsym_cmds=
8393 compiler_needs_object=no
8394 enable_shared_with_static_runtimes=no
8395 export_dynamic_flag_spec=
8396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8397 hardcode_automatic=no
8398 hardcode_direct=no
8399 hardcode_direct_absolute=no
8400 hardcode_libdir_flag_spec=
8401 hardcode_libdir_flag_spec_ld=
8402 hardcode_libdir_separator=
8403 hardcode_minus_L=no
8404 hardcode_shlibpath_var=unsupported
8405 inherit_rpath=no
8406 link_all_deplibs=unknown
8407 module_cmds=
8408 module_expsym_cmds=
8409 old_archive_from_new_cmds=
8410 old_archive_from_expsyms_cmds=
8411 thread_safe_flag_spec=
8412 whole_archive_flag_spec=
8413 # include_expsyms should be a list of space-separated symbols to be *always*
8414 # included in the symbol list
8415 include_expsyms=
8416 # exclude_expsyms can be an extended regexp of symbols to exclude
8417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8419 # as well as any symbol that contains `d'.
8420 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8422 # platforms (ab)use it in PIC code, but their linkers get confused if
8423 # the symbol is explicitly referenced. Since portable code cannot
8424 # rely on this symbol name, it's probably fine to never include it in
8425 # preloaded symbol tables.
8426 # Exclude shared library initialization/finalization symbols.
8427 extract_expsyms_cmds=
8428
8429 case $host_os in
8430 cygwin* | mingw* | pw32* | cegcc*)
8431 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8432 # When not using gcc, we currently assume that we are using
8433 # Microsoft Visual C++.
8434 if test "$GCC" != yes; then
8435 with_gnu_ld=no
8436 fi
8437 ;;
8438 interix*)
8439 # we just hope/assume this is gcc and not c89 (= MSVC++)
8440 with_gnu_ld=yes
8441 ;;
8442 openbsd*)
8443 with_gnu_ld=no
8444 ;;
8445 esac
8446
8447 ld_shlibs=yes
8448 if test "$with_gnu_ld" = yes; then
8449 # If archive_cmds runs LD, not CC, wlarc should be empty
8450 wlarc='${wl}'
8451
8452 # Set some defaults for GNU ld with shared library support. These
8453 # are reset later if shared libraries are not supported. Putting them
8454 # here allows them to be overridden if necessary.
8455 runpath_var=LD_RUN_PATH
8456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8457 export_dynamic_flag_spec='${wl}--export-dynamic'
8458 # ancient GNU ld didn't support --whole-archive et. al.
8459 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8460 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8461 else
8462 whole_archive_flag_spec=
8463 fi
8464 supports_anon_versioning=no
8465 case `$LD -v 2>&1` in
8466 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8469 *\ 2.11.*) ;; # other 2.11 versions
8470 *) supports_anon_versioning=yes ;;
8471 esac
8472
8473 # See if GNU ld supports shared libraries.
8474 case $host_os in
8475 aix[3-9]*)
8476 # On AIX/PPC, the GNU linker is very broken
8477 if test "$host_cpu" != ia64; then
8478 ld_shlibs=no
8479 cat <<_LT_EOF 1>&2
8480
8481 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8482 *** to be unable to reliably create shared libraries on AIX.
8483 *** Therefore, libtool is disabling shared libraries support. If you
8484 *** really care for shared libraries, you may want to modify your PATH
8485 *** so that a non-GNU linker is found, and then restart.
8486
8487 _LT_EOF
8488 fi
8489 ;;
8490
8491 amigaos*)
8492 case $host_cpu in
8493 powerpc)
8494 # see comment about AmigaOS4 .so support
8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496 archive_expsym_cmds=''
8497 ;;
8498 m68k)
8499 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)'
8500 hardcode_libdir_flag_spec='-L$libdir'
8501 hardcode_minus_L=yes
8502 ;;
8503 esac
8504 ;;
8505
8506 beos*)
8507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8508 allow_undefined_flag=unsupported
8509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8510 # support --undefined. This deserves some investigation. FIXME
8511 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8512 else
8513 ld_shlibs=no
8514 fi
8515 ;;
8516
8517 cygwin* | mingw* | pw32* | cegcc*)
8518 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8519 # as there is no search path for DLLs.
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 allow_undefined_flag=unsupported
8522 always_export_symbols=no
8523 enable_shared_with_static_runtimes=yes
8524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8525
8526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8528 # If the export-symbols file already is a .def file (1st line
8529 # is EXPORTS), use it as is; otherwise, prepend...
8530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8531 cp $export_symbols $output_objdir/$soname.def;
8532 else
8533 echo EXPORTS > $output_objdir/$soname.def;
8534 cat $export_symbols >> $output_objdir/$soname.def;
8535 fi~
8536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8537 else
8538 ld_shlibs=no
8539 fi
8540 ;;
8541
8542 interix[3-9]*)
8543 hardcode_direct=no
8544 hardcode_shlibpath_var=no
8545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8546 export_dynamic_flag_spec='${wl}-E'
8547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8548 # Instead, shared libraries are loaded at an image base (0x10000000 by
8549 # default) and relocated if they conflict, which is a slow very memory
8550 # consuming and fragmenting process. To avoid this, we pick a random,
8551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8552 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8554 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'
8555 ;;
8556
8557 gnu* | linux* | tpf* | k*bsd*-gnu)
8558 tmp_diet=no
8559 if test "$host_os" = linux-dietlibc; then
8560 case $cc_basename in
8561 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8562 esac
8563 fi
8564 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8565 && test "$tmp_diet" = no
8566 then
8567 tmp_addflag=
8568 tmp_sharedflag='-shared'
8569 case $cc_basename,$host_cpu in
8570 pgcc*) # Portland Group C compiler
8571 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'
8572 tmp_addflag=' $pic_flag'
8573 ;;
8574 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8575 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'
8576 tmp_addflag=' $pic_flag -Mnomain' ;;
8577 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8578 tmp_addflag=' -i_dynamic' ;;
8579 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8580 tmp_addflag=' -i_dynamic -nofor_main' ;;
8581 ifc* | ifort*) # Intel Fortran compiler
8582 tmp_addflag=' -nofor_main' ;;
8583 lf95*) # Lahey Fortran 8.1
8584 whole_archive_flag_spec=
8585 tmp_sharedflag='--shared' ;;
8586 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8587 tmp_sharedflag='-qmkshrobj'
8588 tmp_addflag= ;;
8589 esac
8590 case `$CC -V 2>&1 | sed 5q` in
8591 *Sun\ C*) # Sun C 5.9
8592 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'
8593 compiler_needs_object=yes
8594 tmp_sharedflag='-G' ;;
8595 *Sun\ F*) # Sun Fortran 8.3
8596 tmp_sharedflag='-G' ;;
8597 esac
8598 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599
8600 if test "x$supports_anon_versioning" = xyes; then
8601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603 echo "local: *; };" >> $output_objdir/$libname.ver~
8604 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8605 fi
8606
8607 case $cc_basename in
8608 xlf*)
8609 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8610 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8611 hardcode_libdir_flag_spec=
8612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8613 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8614 if test "x$supports_anon_versioning" = xyes; then
8615 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8617 echo "local: *; };" >> $output_objdir/$libname.ver~
8618 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8619 fi
8620 ;;
8621 esac
8622 else
8623 ld_shlibs=no
8624 fi
8625 ;;
8626
8627 netbsd*)
8628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8630 wlarc=
8631 else
8632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8634 fi
8635 ;;
8636
8637 solaris*)
8638 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8639 ld_shlibs=no
8640 cat <<_LT_EOF 1>&2
8641
8642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8643 *** create shared libraries on Solaris systems. Therefore, libtool
8644 *** is disabling shared libraries support. We urge you to upgrade GNU
8645 *** binutils to release 2.9.1 or newer. Another option is to modify
8646 *** your PATH or compiler configuration so that the native linker is
8647 *** used, and then restart.
8648
8649 _LT_EOF
8650 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653 else
8654 ld_shlibs=no
8655 fi
8656 ;;
8657
8658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8659 case `$LD -v 2>&1` in
8660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8661 ld_shlibs=no
8662 cat <<_LT_EOF 1>&2
8663
8664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8665 *** reliably create shared libraries on SCO systems. Therefore, libtool
8666 *** is disabling shared libraries support. We urge you to upgrade GNU
8667 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8668 *** your PATH or compiler configuration so that the native linker is
8669 *** used, and then restart.
8670
8671 _LT_EOF
8672 ;;
8673 *)
8674 # For security reasons, it is highly recommended that you always
8675 # use absolute paths for naming shared libraries, and exclude the
8676 # DT_RUNPATH tag from executables and libraries. But doing so
8677 # requires that you compile everything twice, which is a pain.
8678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682 else
8683 ld_shlibs=no
8684 fi
8685 ;;
8686 esac
8687 ;;
8688
8689 sunos4*)
8690 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8691 wlarc=
8692 hardcode_direct=yes
8693 hardcode_shlibpath_var=no
8694 ;;
8695
8696 *)
8697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704 esac
8705
8706 if test "$ld_shlibs" = no; then
8707 runpath_var=
8708 hardcode_libdir_flag_spec=
8709 export_dynamic_flag_spec=
8710 whole_archive_flag_spec=
8711 fi
8712 else
8713 # PORTME fill in a description of your system's linker (not GNU ld)
8714 case $host_os in
8715 aix3*)
8716 allow_undefined_flag=unsupported
8717 always_export_symbols=yes
8718 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'
8719 # Note: this linker hardcodes the directories in LIBPATH if there
8720 # are no directories specified by -L.
8721 hardcode_minus_L=yes
8722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8723 # Neither direct hardcoding nor static linking is supported with a
8724 # broken collect2.
8725 hardcode_direct=unsupported
8726 fi
8727 ;;
8728
8729 aix[4-9]*)
8730 if test "$host_cpu" = ia64; then
8731 # On IA64, the linker does run time linking by default, so we don't
8732 # have to do anything special.
8733 aix_use_runtimelinking=no
8734 exp_sym_flag='-Bexport'
8735 no_entry_flag=""
8736 else
8737 # If we're using GNU nm, then we don't want the "-C" option.
8738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8739 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8740 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'
8741 else
8742 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'
8743 fi
8744 aix_use_runtimelinking=no
8745
8746 # Test if we are trying to use run time linking or normal
8747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8748 # need to do runtime linking.
8749 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8750 for ld_flag in $LDFLAGS; do
8751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8752 aix_use_runtimelinking=yes
8753 break
8754 fi
8755 done
8756 ;;
8757 esac
8758
8759 exp_sym_flag='-bexport'
8760 no_entry_flag='-bnoentry'
8761 fi
8762
8763 # When large executables or shared objects are built, AIX ld can
8764 # have problems creating the table of contents. If linking a library
8765 # or program results in "error TOC overflow" add -mminimal-toc to
8766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8768
8769 archive_cmds=''
8770 hardcode_direct=yes
8771 hardcode_direct_absolute=yes
8772 hardcode_libdir_separator=':'
8773 link_all_deplibs=yes
8774 file_list_spec='${wl}-f,'
8775
8776 if test "$GCC" = yes; then
8777 case $host_os in aix4.[012]|aix4.[012].*)
8778 # We only want to do this on AIX 4.2 and lower, the check
8779 # below for broken collect2 doesn't work under 4.3+
8780 collect2name=`${CC} -print-prog-name=collect2`
8781 if test -f "$collect2name" &&
8782 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8783 then
8784 # We have reworked collect2
8785 :
8786 else
8787 # We have old collect2
8788 hardcode_direct=unsupported
8789 # It fails to find uninstalled libraries when the uninstalled
8790 # path is not listed in the libpath. Setting hardcode_minus_L
8791 # to unsupported forces relinking
8792 hardcode_minus_L=yes
8793 hardcode_libdir_flag_spec='-L$libdir'
8794 hardcode_libdir_separator=
8795 fi
8796 ;;
8797 esac
8798 shared_flag='-shared'
8799 if test "$aix_use_runtimelinking" = yes; then
8800 shared_flag="$shared_flag "'${wl}-G'
8801 fi
8802 else
8803 # not using gcc
8804 if test "$host_cpu" = ia64; then
8805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8806 # chokes on -Wl,-G. The following line is correct:
8807 shared_flag='-G'
8808 else
8809 if test "$aix_use_runtimelinking" = yes; then
8810 shared_flag='${wl}-G'
8811 else
8812 shared_flag='${wl}-bM:SRE'
8813 fi
8814 fi
8815 fi
8816
8817 export_dynamic_flag_spec='${wl}-bexpall'
8818 # It seems that -bexpall does not export symbols beginning with
8819 # underscore (_), so it is better to generate a list of symbols to export.
8820 always_export_symbols=yes
8821 if test "$aix_use_runtimelinking" = yes; then
8822 # Warning - without using the other runtime loading flags (-brtl),
8823 # -berok will link without error, but may produce a broken library.
8824 allow_undefined_flag='-berok'
8825 # Determine the default libpath from the value encoded in an
8826 # empty executable.
8827 cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h. */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833
8834 int
8835 main ()
8836 {
8837
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850 (eval "$ac_link") 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest$ac_exeext && {
8860 test "$cross_compiling" = yes ||
8861 $as_test_x conftest$ac_exeext
8862 }; then
8863
8864 lt_aix_libpath_sed='
8865 /Import File Strings/,/^$/ {
8866 /^0/ {
8867 s/^0 *\(.*\)$/\1/
8868 p
8869 }
8870 }'
8871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8872 # Check for a 64-bit object if we didn't find anything.
8873 if test -z "$aix_libpath"; then
8874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8875 fi
8876 else
8877 $as_echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8879
8880
8881 fi
8882
8883 rm -rf conftest.dSYM
8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8885 conftest$ac_exeext conftest.$ac_ext
8886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8887
8888 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8889 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"
8890 else
8891 if test "$host_cpu" = ia64; then
8892 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8893 allow_undefined_flag="-z nodefs"
8894 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"
8895 else
8896 # Determine the default libpath from the value encoded in an
8897 # empty executable.
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904
8905 int
8906 main ()
8907 {
8908
8909 ;
8910 return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8915 case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918 esac
8919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8920 $as_echo "$ac_try_echo") >&5
8921 (eval "$ac_link") 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } && {
8928 test -z "$ac_c_werror_flag" ||
8929 test ! -s conftest.err
8930 } && test -s conftest$ac_exeext && {
8931 test "$cross_compiling" = yes ||
8932 $as_test_x conftest$ac_exeext
8933 }; then
8934
8935 lt_aix_libpath_sed='
8936 /Import File Strings/,/^$/ {
8937 /^0/ {
8938 s/^0 *\(.*\)$/\1/
8939 p
8940 }
8941 }'
8942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8943 # Check for a 64-bit object if we didn't find anything.
8944 if test -z "$aix_libpath"; then
8945 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8946 fi
8947 else
8948 $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951
8952 fi
8953
8954 rm -rf conftest.dSYM
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956 conftest$ac_exeext conftest.$ac_ext
8957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8958
8959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8960 # Warning - without using the other run time loading flags,
8961 # -berok will link without error, but may produce a broken library.
8962 no_undefined_flag=' ${wl}-bernotok'
8963 allow_undefined_flag=' ${wl}-berok'
8964 # Exported symbols can be pulled into shared objects from archives
8965 whole_archive_flag_spec='$convenience'
8966 archive_cmds_need_lc=yes
8967 # This is similar to how AIX traditionally builds its shared libraries.
8968 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'
8969 fi
8970 fi
8971 ;;
8972
8973 amigaos*)
8974 case $host_cpu in
8975 powerpc)
8976 # see comment about AmigaOS4 .so support
8977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 archive_expsym_cmds=''
8979 ;;
8980 m68k)
8981 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)'
8982 hardcode_libdir_flag_spec='-L$libdir'
8983 hardcode_minus_L=yes
8984 ;;
8985 esac
8986 ;;
8987
8988 bsdi[45]*)
8989 export_dynamic_flag_spec=-rdynamic
8990 ;;
8991
8992 cygwin* | mingw* | pw32* | cegcc*)
8993 # When not using gcc, we currently assume that we are using
8994 # Microsoft Visual C++.
8995 # hardcode_libdir_flag_spec is actually meaningless, as there is
8996 # no search path for DLLs.
8997 hardcode_libdir_flag_spec=' '
8998 allow_undefined_flag=unsupported
8999 # Tell ltmain to make .lib files, not .a files.
9000 libext=lib
9001 # Tell ltmain to make .dll files, not .so files.
9002 shrext_cmds=".dll"
9003 # FIXME: Setting linknames here is a bad hack.
9004 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9005 # The linker will automatically build a .lib file if we build a DLL.
9006 old_archive_from_new_cmds='true'
9007 # FIXME: Should let the user specify the lib program.
9008 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9009 fix_srcfile_path='`cygpath -w "$srcfile"`'
9010 enable_shared_with_static_runtimes=yes
9011 ;;
9012
9013 darwin* | rhapsody*)
9014
9015
9016 archive_cmds_need_lc=no
9017 hardcode_direct=no
9018 hardcode_automatic=yes
9019 hardcode_shlibpath_var=unsupported
9020 whole_archive_flag_spec=''
9021 link_all_deplibs=yes
9022 allow_undefined_flag="$_lt_dar_allow_undefined"
9023 case $cc_basename in
9024 ifort*) _lt_dar_can_shared=yes ;;
9025 *) _lt_dar_can_shared=$GCC ;;
9026 esac
9027 if test "$_lt_dar_can_shared" = "yes"; then
9028 output_verbose_link_cmd=echo
9029 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9030 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9031 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}"
9032 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}"
9033
9034 else
9035 ld_shlibs=no
9036 fi
9037
9038 ;;
9039
9040 dgux*)
9041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_shlibpath_var=no
9044 ;;
9045
9046 freebsd1*)
9047 ld_shlibs=no
9048 ;;
9049
9050 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9051 # support. Future versions do this automatically, but an explicit c++rt0.o
9052 # does not break anything, and helps significantly (at the cost of a little
9053 # extra space).
9054 freebsd2.2*)
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9056 hardcode_libdir_flag_spec='-R$libdir'
9057 hardcode_direct=yes
9058 hardcode_shlibpath_var=no
9059 ;;
9060
9061 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9062 freebsd2*)
9063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9064 hardcode_direct=yes
9065 hardcode_minus_L=yes
9066 hardcode_shlibpath_var=no
9067 ;;
9068
9069 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9070 freebsd* | dragonfly*)
9071 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9072 hardcode_libdir_flag_spec='-R$libdir'
9073 hardcode_direct=yes
9074 hardcode_shlibpath_var=no
9075 ;;
9076
9077 hpux9*)
9078 if test "$GCC" = yes; then
9079 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'
9080 else
9081 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'
9082 fi
9083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9084 hardcode_libdir_separator=:
9085 hardcode_direct=yes
9086
9087 # hardcode_minus_L: Not really in the search PATH,
9088 # but as the default location of the library.
9089 hardcode_minus_L=yes
9090 export_dynamic_flag_spec='${wl}-E'
9091 ;;
9092
9093 hpux10*)
9094 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9095 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9096 else
9097 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9098 fi
9099 if test "$with_gnu_ld" = no; then
9100 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9101 hardcode_libdir_flag_spec_ld='+b $libdir'
9102 hardcode_libdir_separator=:
9103 hardcode_direct=yes
9104 hardcode_direct_absolute=yes
9105 export_dynamic_flag_spec='${wl}-E'
9106 # hardcode_minus_L: Not really in the search PATH,
9107 # but as the default location of the library.
9108 hardcode_minus_L=yes
9109 fi
9110 ;;
9111
9112 hpux11*)
9113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9114 case $host_cpu in
9115 hppa*64*)
9116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 ;;
9118 ia64*)
9119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9120 ;;
9121 *)
9122 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9123 ;;
9124 esac
9125 else
9126 case $host_cpu in
9127 hppa*64*)
9128 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 ;;
9130 ia64*)
9131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9132 ;;
9133 *)
9134 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9135 ;;
9136 esac
9137 fi
9138 if test "$with_gnu_ld" = no; then
9139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140 hardcode_libdir_separator=:
9141
9142 case $host_cpu in
9143 hppa*64*|ia64*)
9144 hardcode_direct=no
9145 hardcode_shlibpath_var=no
9146 ;;
9147 *)
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 export_dynamic_flag_spec='${wl}-E'
9151
9152 # hardcode_minus_L: Not really in the search PATH,
9153 # but as the default location of the library.
9154 hardcode_minus_L=yes
9155 ;;
9156 esac
9157 fi
9158 ;;
9159
9160 irix5* | irix6* | nonstopux*)
9161 if test "$GCC" = yes; then
9162 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'
9163 # Try to use the -exported_symbol ld option, if it does not
9164 # work, assume that -exports_file does not work either and
9165 # implicitly export all symbols.
9166 save_LDFLAGS="$LDFLAGS"
9167 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9168 cat >conftest.$ac_ext <<_ACEOF
9169 int foo(void) {}
9170 _ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9173 case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9178 $as_echo "$ac_try_echo") >&5
9179 (eval "$ac_link") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest$ac_exeext && {
9189 test "$cross_compiling" = yes ||
9190 $as_test_x conftest$ac_exeext
9191 }; then
9192 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'
9193
9194 else
9195 $as_echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198
9199 fi
9200
9201 rm -rf conftest.dSYM
9202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9203 conftest$ac_exeext conftest.$ac_ext
9204 LDFLAGS="$save_LDFLAGS"
9205 else
9206 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'
9207 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'
9208 fi
9209 archive_cmds_need_lc='no'
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9212 inherit_rpath=yes
9213 link_all_deplibs=yes
9214 ;;
9215
9216 netbsd*)
9217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9219 else
9220 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9221 fi
9222 hardcode_libdir_flag_spec='-R$libdir'
9223 hardcode_direct=yes
9224 hardcode_shlibpath_var=no
9225 ;;
9226
9227 newsos6)
9228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_direct=yes
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 hardcode_shlibpath_var=no
9233 ;;
9234
9235 *nto* | *qnx*)
9236 ;;
9237
9238 openbsd*)
9239 if test -f /usr/libexec/ld.so; then
9240 hardcode_direct=yes
9241 hardcode_shlibpath_var=no
9242 hardcode_direct_absolute=yes
9243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9245 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247 export_dynamic_flag_spec='${wl}-E'
9248 else
9249 case $host_os in
9250 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_libdir_flag_spec='-R$libdir'
9253 ;;
9254 *)
9255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257 ;;
9258 esac
9259 fi
9260 else
9261 ld_shlibs=no
9262 fi
9263 ;;
9264
9265 os2*)
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_minus_L=yes
9268 allow_undefined_flag=unsupported
9269 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'
9270 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9271 ;;
9272
9273 osf3*)
9274 if test "$GCC" = yes; then
9275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276 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'
9277 else
9278 allow_undefined_flag=' -expect_unresolved \*'
9279 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'
9280 fi
9281 archive_cmds_need_lc='no'
9282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283 hardcode_libdir_separator=:
9284 ;;
9285
9286 osf4* | osf5*) # as osf3* with the addition of -msym flag
9287 if test "$GCC" = yes; then
9288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289 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'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 else
9292 allow_undefined_flag=' -expect_unresolved \*'
9293 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'
9294 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~
9295 $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'
9296
9297 # Both c and cxx compiler support -rpath directly
9298 hardcode_libdir_flag_spec='-rpath $libdir'
9299 fi
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_separator=:
9302 ;;
9303
9304 solaris*)
9305 no_undefined_flag=' -z defs'
9306 if test "$GCC" = yes; then
9307 wlarc='${wl}'
9308 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9311 else
9312 case `$CC -V 2>&1` in
9313 *"Compilers 5.0"*)
9314 wlarc=''
9315 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9318 ;;
9319 *)
9320 wlarc='${wl}'
9321 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9324 ;;
9325 esac
9326 fi
9327 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_shlibpath_var=no
9329 case $host_os in
9330 solaris2.[0-5] | solaris2.[0-5].*) ;;
9331 *)
9332 # The compiler driver will combine and reorder linker options,
9333 # but understands `-z linker_flag'. GCC discards it without `$wl',
9334 # but is careful enough not to reorder.
9335 # Supported since Solaris 2.6 (maybe 2.5.1?)
9336 if test "$GCC" = yes; then
9337 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9338 else
9339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9340 fi
9341 ;;
9342 esac
9343 link_all_deplibs=yes
9344 ;;
9345
9346 sunos4*)
9347 if test "x$host_vendor" = xsequent; then
9348 # Use $CC to link under sequent, because it throws in some extra .o
9349 # files that make .init and .fini sections work.
9350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9351 else
9352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9353 fi
9354 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_direct=yes
9356 hardcode_minus_L=yes
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 sysv4)
9361 case $host_vendor in
9362 sni)
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes # is this really true???
9365 ;;
9366 siemens)
9367 ## LD is ld it makes a PLAMLIB
9368 ## CC just makes a GrossModule.
9369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9370 reload_cmds='$CC -r -o $output$reload_objs'
9371 hardcode_direct=no
9372 ;;
9373 motorola)
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9376 ;;
9377 esac
9378 runpath_var='LD_RUN_PATH'
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 sysv4.3*)
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_shlibpath_var=no
9385 export_dynamic_flag_spec='-Bexport'
9386 ;;
9387
9388 sysv4*MP*)
9389 if test -d /usr/nec; then
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_shlibpath_var=no
9392 runpath_var=LD_RUN_PATH
9393 hardcode_runpath_var=yes
9394 ld_shlibs=yes
9395 fi
9396 ;;
9397
9398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9399 no_undefined_flag='${wl}-z,text'
9400 archive_cmds_need_lc=no
9401 hardcode_shlibpath_var=no
9402 runpath_var='LD_RUN_PATH'
9403
9404 if test "$GCC" = yes; then
9405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 else
9408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 fi
9411 ;;
9412
9413 sysv5* | sco3.2v5* | sco5v6*)
9414 # Note: We can NOT use -z defs as we might desire, because we do not
9415 # link with -lc, and that would cause any symbols used from libc to
9416 # always be unresolved, which means just about no library would
9417 # ever link correctly. If we're not using GNU ld we use -z text
9418 # though, which does catch some bad symbols but isn't as heavy-handed
9419 # as -z defs.
9420 no_undefined_flag='${wl}-z,text'
9421 allow_undefined_flag='${wl}-z,nodefs'
9422 archive_cmds_need_lc=no
9423 hardcode_shlibpath_var=no
9424 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9425 hardcode_libdir_separator=':'
9426 link_all_deplibs=yes
9427 export_dynamic_flag_spec='${wl}-Bexport'
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 uts4*)
9440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_shlibpath_var=no
9443 ;;
9444
9445 *)
9446 ld_shlibs=no
9447 ;;
9448 esac
9449
9450 if test x$host_vendor = xsni; then
9451 case $host in
9452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9453 export_dynamic_flag_spec='${wl}-Blargedynsym'
9454 ;;
9455 esac
9456 fi
9457 fi
9458
9459 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9460 $as_echo "$ld_shlibs" >&6; }
9461 test "$ld_shlibs" = no && can_build_shared=no
9462
9463 with_gnu_ld=$with_gnu_ld
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479 #
9480 # Do we need to explicitly link libc?
9481 #
9482 case "x$archive_cmds_need_lc" in
9483 x|xyes)
9484 # Assume -lc should be added
9485 archive_cmds_need_lc=yes
9486
9487 if test "$enable_shared" = yes && test "$GCC" = yes; then
9488 case $archive_cmds in
9489 *'~'*)
9490 # FIXME: we may have to deal with multi-command sequences.
9491 ;;
9492 '$CC '*)
9493 # Test whether the compiler implicitly links with -lc since on some
9494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9495 # to ld, don't add -lc before -lgcc.
9496 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9498 $RM conftest*
9499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9500
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9503 ac_status=$?
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } 2>conftest.err; then
9506 soname=conftest
9507 lib=conftest
9508 libobjs=conftest.$ac_objext
9509 deplibs=
9510 wl=$lt_prog_compiler_wl
9511 pic_flag=$lt_prog_compiler_pic
9512 compiler_flags=-v
9513 linker_flags=-v
9514 verstring=
9515 output_objdir=.
9516 libname=conftest
9517 lt_save_allow_undefined_flag=$allow_undefined_flag
9518 allow_undefined_flag=
9519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9520 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9521 ac_status=$?
9522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }
9524 then
9525 archive_cmds_need_lc=no
9526 else
9527 archive_cmds_need_lc=yes
9528 fi
9529 allow_undefined_flag=$lt_save_allow_undefined_flag
9530 else
9531 cat conftest.err 1>&5
9532 fi
9533 $RM conftest*
9534 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9535 $as_echo "$archive_cmds_need_lc" >&6; }
9536 ;;
9537 esac
9538 fi
9539 ;;
9540 esac
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9700
9701 if test "$GCC" = yes; then
9702 case $host_os in
9703 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9704 *) lt_awk_arg="/^libraries:/" ;;
9705 esac
9706 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9707 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9708 # if the path contains ";" then we assume it to be the separator
9709 # otherwise default to the standard path separator (i.e. ":") - it is
9710 # assumed that no part of a normal pathname contains ";" but that should
9711 # okay in the real world where ";" in dirpaths is itself problematic.
9712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9713 else
9714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9715 fi
9716 # Ok, now we have the path, separated by spaces, we can step through it
9717 # and add multilib dir if necessary.
9718 lt_tmp_lt_search_path_spec=
9719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9720 for lt_sys_path in $lt_search_path_spec; do
9721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9723 else
9724 test -d "$lt_sys_path" && \
9725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9726 fi
9727 done
9728 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9729 BEGIN {RS=" "; FS="/|\n";} {
9730 lt_foo="";
9731 lt_count=0;
9732 for (lt_i = NF; lt_i > 0; lt_i--) {
9733 if ($lt_i != "" && $lt_i != ".") {
9734 if ($lt_i == "..") {
9735 lt_count++;
9736 } else {
9737 if (lt_count == 0) {
9738 lt_foo="/" $lt_i lt_foo;
9739 } else {
9740 lt_count--;
9741 }
9742 }
9743 }
9744 }
9745 if (lt_foo != "") { lt_freq[lt_foo]++; }
9746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9747 }'`
9748 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9749 else
9750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9751 fi
9752 library_names_spec=
9753 libname_spec='lib$name'
9754 soname_spec=
9755 shrext_cmds=".so"
9756 postinstall_cmds=
9757 postuninstall_cmds=
9758 finish_cmds=
9759 finish_eval=
9760 shlibpath_var=
9761 shlibpath_overrides_runpath=unknown
9762 version_type=none
9763 dynamic_linker="$host_os ld.so"
9764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9765 need_lib_prefix=unknown
9766 hardcode_into_libs=no
9767
9768 # when you set need_version to no, make sure it does not cause -set_version
9769 # flags to be left without arguments
9770 need_version=unknown
9771
9772 case $host_os in
9773 aix3*)
9774 version_type=linux
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9776 shlibpath_var=LIBPATH
9777
9778 # AIX 3 has no versioning support, so we append a major version to the name.
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 ;;
9781
9782 aix[4-9]*)
9783 version_type=linux
9784 need_lib_prefix=no
9785 need_version=no
9786 hardcode_into_libs=yes
9787 if test "$host_cpu" = ia64; then
9788 # AIX 5 supports IA64
9789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 else
9792 # With GCC up to 2.95.x, collect2 would create an import file
9793 # for dependence libraries. The import file would start with
9794 # the line `#! .'. This would cause the generated library to
9795 # depend on `.', always an invalid library. This was fixed in
9796 # development snapshots of GCC prior to 3.0.
9797 case $host_os in
9798 aix4 | aix4.[01] | aix4.[01].*)
9799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9800 echo ' yes '
9801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9802 :
9803 else
9804 can_build_shared=no
9805 fi
9806 ;;
9807 esac
9808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9809 # soname into executable. Probably we can add versioning support to
9810 # collect2, so additional links can be useful in future.
9811 if test "$aix_use_runtimelinking" = yes; then
9812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9813 # instead of lib<name>.a to let people know that these are not
9814 # typical AIX shared libraries.
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9816 else
9817 # We preserve .a as extension for shared libraries through AIX4.2
9818 # and later when we are not doing run time linking.
9819 library_names_spec='${libname}${release}.a $libname.a'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 fi
9822 shlibpath_var=LIBPATH
9823 fi
9824 ;;
9825
9826 amigaos*)
9827 case $host_cpu in
9828 powerpc)
9829 # Since July 2007 AmigaOS4 officially supports .so libraries.
9830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 ;;
9833 m68k)
9834 library_names_spec='$libname.ixlibrary $libname.a'
9835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9836 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'
9837 ;;
9838 esac
9839 ;;
9840
9841 beos*)
9842 library_names_spec='${libname}${shared_ext}'
9843 dynamic_linker="$host_os ld.so"
9844 shlibpath_var=LIBRARY_PATH
9845 ;;
9846
9847 bsdi[45]*)
9848 version_type=linux
9849 need_version=no
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9856 # the default ld.so.conf also contains /usr/contrib/lib and
9857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9858 # libtool to hard-code these into programs
9859 ;;
9860
9861 cygwin* | mingw* | pw32* | cegcc*)
9862 version_type=windows
9863 shrext_cmds=".dll"
9864 need_version=no
9865 need_lib_prefix=no
9866
9867 case $GCC,$host_os in
9868 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9869 library_names_spec='$libname.dll.a'
9870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9871 postinstall_cmds='base_file=`basename \${file}`~
9872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9873 dldir=$destdir/`dirname \$dlpath`~
9874 test -d \$dldir || mkdir -p \$dldir~
9875 $install_prog $dir/$dlname \$dldir/$dlname~
9876 chmod a+x \$dldir/$dlname~
9877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9879 fi'
9880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9881 dlpath=$dir/\$dldll~
9882 $RM \$dlpath'
9883 shlibpath_overrides_runpath=yes
9884
9885 case $host_os in
9886 cygwin*)
9887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9890 ;;
9891 mingw* | cegcc*)
9892 # MinGW DLLs use traditional 'lib' prefix
9893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9894 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9895 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9896 # It is most probably a Windows format PATH printed by
9897 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9898 # path with ; separators, and with drive letters. We can handle the
9899 # drive letters (cygwin fileutils understands them), so leave them,
9900 # especially as we might pass files found there to a mingw objdump,
9901 # which wouldn't understand a cygwinified path. Ahh.
9902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9903 else
9904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9905 fi
9906 ;;
9907 pw32*)
9908 # pw32 DLLs use 'pw' prefix rather than 'lib'
9909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9910 ;;
9911 esac
9912 ;;
9913
9914 *)
9915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9916 ;;
9917 esac
9918 dynamic_linker='Win32 ld.exe'
9919 # FIXME: first we should search . and the directory the executable is in
9920 shlibpath_var=PATH
9921 ;;
9922
9923 darwin* | rhapsody*)
9924 dynamic_linker="$host_os dyld"
9925 version_type=darwin
9926 need_lib_prefix=no
9927 need_version=no
9928 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9929 soname_spec='${libname}${release}${major}$shared_ext'
9930 shlibpath_overrides_runpath=yes
9931 shlibpath_var=DYLD_LIBRARY_PATH
9932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9933
9934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9936 ;;
9937
9938 dgux*)
9939 version_type=linux
9940 need_lib_prefix=no
9941 need_version=no
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 ;;
9946
9947 freebsd1*)
9948 dynamic_linker=no
9949 ;;
9950
9951 freebsd* | dragonfly*)
9952 # DragonFly does not have aout. When/if they implement a new
9953 # versioning mechanism, adjust this.
9954 if test -x /usr/bin/objformat; then
9955 objformat=`/usr/bin/objformat`
9956 else
9957 case $host_os in
9958 freebsd[123]*) objformat=aout ;;
9959 *) objformat=elf ;;
9960 esac
9961 fi
9962 version_type=freebsd-$objformat
9963 case $version_type in
9964 freebsd-elf*)
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9966 need_version=no
9967 need_lib_prefix=no
9968 ;;
9969 freebsd-*)
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9971 need_version=yes
9972 ;;
9973 esac
9974 shlibpath_var=LD_LIBRARY_PATH
9975 case $host_os in
9976 freebsd2*)
9977 shlibpath_overrides_runpath=yes
9978 ;;
9979 freebsd3.[01]* | freebsdelf3.[01]*)
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9982 ;;
9983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9987 ;;
9988 *) # from 4.6 on, and DragonFly
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9991 ;;
9992 esac
9993 ;;
9994
9995 gnu*)
9996 version_type=linux
9997 need_lib_prefix=no
9998 need_version=no
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 hardcode_into_libs=yes
10003 ;;
10004
10005 hpux9* | hpux10* | hpux11*)
10006 # Give a soname corresponding to the major version so that dld.sl refuses to
10007 # link against other versions.
10008 version_type=sunos
10009 need_lib_prefix=no
10010 need_version=no
10011 case $host_cpu in
10012 ia64*)
10013 shrext_cmds='.so'
10014 hardcode_into_libs=yes
10015 dynamic_linker="$host_os dld.so"
10016 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 if test "X$HPUX_IA64_MODE" = X32; then
10021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10022 else
10023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10024 fi
10025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10026 ;;
10027 hppa*64*)
10028 shrext_cmds='.sl'
10029 hardcode_into_libs=yes
10030 dynamic_linker="$host_os dld.sl"
10031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10037 ;;
10038 *)
10039 shrext_cmds='.sl'
10040 dynamic_linker="$host_os dld.sl"
10041 shlibpath_var=SHLIB_PATH
10042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 ;;
10046 esac
10047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10048 postinstall_cmds='chmod 555 $lib'
10049 ;;
10050
10051 interix[3-9]*)
10052 version_type=linux
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10061 ;;
10062
10063 irix5* | irix6* | nonstopux*)
10064 case $host_os in
10065 nonstopux*) version_type=nonstopux ;;
10066 *)
10067 if test "$lt_cv_prog_gnu_ld" = yes; then
10068 version_type=linux
10069 else
10070 version_type=irix
10071 fi ;;
10072 esac
10073 need_lib_prefix=no
10074 need_version=no
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10077 case $host_os in
10078 irix5* | nonstopux*)
10079 libsuff= shlibsuff=
10080 ;;
10081 *)
10082 case $LD in # libtool.m4 will add one of these switches to LD
10083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10084 libsuff= shlibsuff= libmagic=32-bit;;
10085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10086 libsuff=32 shlibsuff=N32 libmagic=N32;;
10087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10089 *) libsuff= shlibsuff= libmagic=never-match;;
10090 esac
10091 ;;
10092 esac
10093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10094 shlibpath_overrides_runpath=no
10095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10097 hardcode_into_libs=yes
10098 ;;
10099
10100 # No shared lib support for Linux oldld, aout, or coff.
10101 linux*oldld* | linux*aout* | linux*coff*)
10102 dynamic_linker=no
10103 ;;
10104
10105 # This must be Linux ELF.
10106 linux* | k*bsd*-gnu)
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=no
10115 # Some binutils ld are patched to set DT_RUNPATH
10116 save_LDFLAGS=$LDFLAGS
10117 save_libdir=$libdir
10118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126
10127 int
10128 main ()
10129 {
10130
10131 ;
10132 return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_link") 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest$ac_exeext && {
10153 test "$cross_compiling" = yes ||
10154 $as_test_x conftest$ac_exeext
10155 }; then
10156 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10157 shlibpath_overrides_runpath=yes
10158 fi
10159
10160 else
10161 $as_echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164
10165 fi
10166
10167 rm -rf conftest.dSYM
10168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LDFLAGS=$save_LDFLAGS
10171 libdir=$save_libdir
10172
10173 # This implies no fast_install, which is unacceptable.
10174 # Some rework will be needed to allow for fast_install
10175 # before this can be enabled.
10176 hardcode_into_libs=yes
10177
10178 # Add ABI-specific directories to the system library path.
10179 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10180
10181 # Append ld.so.conf contents to the search path
10182 if test -f /etc/ld.so.conf; then
10183 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' ' '`
10184 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10185 fi
10186
10187 # We used to test for /lib/ld.so.1 and disable shared libraries on
10188 # powerpc, because MkLinux only supported shared libraries with the
10189 # GNU dynamic linker. Since this was broken with cross compilers,
10190 # most powerpc-linux boxes support dynamic linking these days and
10191 # people can always --disable-shared, the test was removed, and we
10192 # assume the GNU/Linux dynamic linker is in use.
10193 dynamic_linker='GNU/Linux ld.so'
10194 ;;
10195
10196 netbsd*)
10197 version_type=sunos
10198 need_lib_prefix=no
10199 need_version=no
10200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10203 dynamic_linker='NetBSD (a.out) ld.so'
10204 else
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 dynamic_linker='NetBSD ld.elf_so'
10208 fi
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 hardcode_into_libs=yes
10212 ;;
10213
10214 newsos6)
10215 version_type=linux
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=yes
10219 ;;
10220
10221 *nto* | *qnx*)
10222 version_type=qnx
10223 need_lib_prefix=no
10224 need_version=no
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=no
10229 hardcode_into_libs=yes
10230 dynamic_linker='ldqnx.so'
10231 ;;
10232
10233 openbsd*)
10234 version_type=sunos
10235 sys_lib_dlsearch_path_spec="/usr/lib"
10236 need_lib_prefix=no
10237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10238 case $host_os in
10239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10240 *) need_version=no ;;
10241 esac
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10246 case $host_os in
10247 openbsd2.[89] | openbsd2.[89].*)
10248 shlibpath_overrides_runpath=no
10249 ;;
10250 *)
10251 shlibpath_overrides_runpath=yes
10252 ;;
10253 esac
10254 else
10255 shlibpath_overrides_runpath=yes
10256 fi
10257 ;;
10258
10259 os2*)
10260 libname_spec='$name'
10261 shrext_cmds=".dll"
10262 need_lib_prefix=no
10263 library_names_spec='$libname${shared_ext} $libname.a'
10264 dynamic_linker='OS/2 ld.exe'
10265 shlibpath_var=LIBPATH
10266 ;;
10267
10268 osf3* | osf4* | osf5*)
10269 version_type=osf
10270 need_lib_prefix=no
10271 need_version=no
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10277 ;;
10278
10279 rdos*)
10280 dynamic_linker=no
10281 ;;
10282
10283 solaris*)
10284 version_type=linux
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 # ldd complains unless libraries are executable
10293 postinstall_cmds='chmod +x $lib'
10294 ;;
10295
10296 sunos4*)
10297 version_type=sunos
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 if test "$with_gnu_ld" = yes; then
10303 need_lib_prefix=no
10304 fi
10305 need_version=yes
10306 ;;
10307
10308 sysv4 | sysv4.3*)
10309 version_type=linux
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 case $host_vendor in
10314 sni)
10315 shlibpath_overrides_runpath=no
10316 need_lib_prefix=no
10317 runpath_var=LD_RUN_PATH
10318 ;;
10319 siemens)
10320 need_lib_prefix=no
10321 ;;
10322 motorola)
10323 need_lib_prefix=no
10324 need_version=no
10325 shlibpath_overrides_runpath=no
10326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10327 ;;
10328 esac
10329 ;;
10330
10331 sysv4*MP*)
10332 if test -d /usr/nec ;then
10333 version_type=linux
10334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10335 soname_spec='$libname${shared_ext}.$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 fi
10338 ;;
10339
10340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10341 version_type=freebsd-elf
10342 need_lib_prefix=no
10343 need_version=no
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=yes
10348 hardcode_into_libs=yes
10349 if test "$with_gnu_ld" = yes; then
10350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10351 else
10352 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10353 case $host_os in
10354 sco3.2v5*)
10355 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10356 ;;
10357 esac
10358 fi
10359 sys_lib_dlsearch_path_spec='/usr/lib'
10360 ;;
10361
10362 tpf*)
10363 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=no
10370 hardcode_into_libs=yes
10371 ;;
10372
10373 uts4*)
10374 version_type=linux
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 ;;
10379
10380 *)
10381 dynamic_linker=no
10382 ;;
10383 esac
10384 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10385 $as_echo "$dynamic_linker" >&6; }
10386 test "$dynamic_linker" = no && can_build_shared=no
10387
10388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10389 if test "$GCC" = yes; then
10390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10391 fi
10392
10393 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10394 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10395 fi
10396 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10397 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10398 fi
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10487 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10488 hardcode_action=
10489 if test -n "$hardcode_libdir_flag_spec" ||
10490 test -n "$runpath_var" ||
10491 test "X$hardcode_automatic" = "Xyes" ; then
10492
10493 # We can hardcode non-existent directories.
10494 if test "$hardcode_direct" != no &&
10495 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10496 # have to relink, otherwise we might link with an installed library
10497 # when we should be linking with a yet-to-be-installed one
10498 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10499 test "$hardcode_minus_L" != no; then
10500 # Linking always hardcodes the temporary library directory.
10501 hardcode_action=relink
10502 else
10503 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10504 hardcode_action=immediate
10505 fi
10506 else
10507 # We cannot hardcode anything, or else we can only hardcode existing
10508 # directories.
10509 hardcode_action=unsupported
10510 fi
10511 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10512 $as_echo "$hardcode_action" >&6; }
10513
10514 if test "$hardcode_action" = relink ||
10515 test "$inherit_rpath" = yes; then
10516 # Fast installation is not supported
10517 enable_fast_install=no
10518 elif test "$shlibpath_overrides_runpath" = yes ||
10519 test "$enable_shared" = no; then
10520 # Fast installation is not necessary
10521 enable_fast_install=needless
10522 fi
10523
10524
10525
10526
10527
10528
10529 if test "x$enable_dlopen" != xyes; then
10530 enable_dlopen=unknown
10531 enable_dlopen_self=unknown
10532 enable_dlopen_self_static=unknown
10533 else
10534 lt_cv_dlopen=no
10535 lt_cv_dlopen_libs=
10536
10537 case $host_os in
10538 beos*)
10539 lt_cv_dlopen="load_add_on"
10540 lt_cv_dlopen_libs=
10541 lt_cv_dlopen_self=yes
10542 ;;
10543
10544 mingw* | pw32* | cegcc*)
10545 lt_cv_dlopen="LoadLibrary"
10546 lt_cv_dlopen_libs=
10547 ;;
10548
10549 cygwin*)
10550 lt_cv_dlopen="dlopen"
10551 lt_cv_dlopen_libs=
10552 ;;
10553
10554 darwin*)
10555 # if libdl is installed we need to link against it
10556 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10559 $as_echo_n "(cached) " >&6
10560 else
10561 ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-ldl $LIBS"
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569
10570 /* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
10573 #ifdef __cplusplus
10574 extern "C"
10575 #endif
10576 char dlopen ();
10577 int
10578 main ()
10579 {
10580 return dlopen ();
10581 ;
10582 return 0;
10583 }
10584 _ACEOF
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (ac_try="$ac_link"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590 esac
10591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10592 $as_echo "$ac_try_echo") >&5
10593 (eval "$ac_link") 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } && {
10600 test -z "$ac_c_werror_flag" ||
10601 test ! -s conftest.err
10602 } && test -s conftest$ac_exeext && {
10603 test "$cross_compiling" = yes ||
10604 $as_test_x conftest$ac_exeext
10605 }; then
10606 ac_cv_lib_dl_dlopen=yes
10607 else
10608 $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 ac_cv_lib_dl_dlopen=no
10612 fi
10613
10614 rm -rf conftest.dSYM
10615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10618 fi
10619 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10621 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10623 else
10624
10625 lt_cv_dlopen="dyld"
10626 lt_cv_dlopen_libs=
10627 lt_cv_dlopen_self=yes
10628
10629 fi
10630
10631 ;;
10632
10633 *)
10634 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10635 $as_echo_n "checking for shl_load... " >&6; }
10636 if test "${ac_cv_func_shl_load+set}" = set; then
10637 $as_echo_n "(cached) " >&6
10638 else
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10647 #define shl_load innocuous_shl_load
10648
10649 /* System header to define __stub macros and hopefully few prototypes,
10650 which can conflict with char shl_load (); below.
10651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10652 <limits.h> exists even on freestanding compilers. */
10653
10654 #ifdef __STDC__
10655 # include <limits.h>
10656 #else
10657 # include <assert.h>
10658 #endif
10659
10660 #undef shl_load
10661
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char shl_load ();
10669 /* The GNU C library defines this for functions which it implements
10670 to always fail with ENOSYS. Some functions are actually named
10671 something starting with __ and the normal name is an alias. */
10672 #if defined __stub_shl_load || defined __stub___shl_load
10673 choke me
10674 #endif
10675
10676 int
10677 main ()
10678 {
10679 return shl_load ();
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (ac_try="$ac_link"
10686 case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689 esac
10690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10691 $as_echo "$ac_try_echo") >&5
10692 (eval "$ac_link") 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest$ac_exeext && {
10702 test "$cross_compiling" = yes ||
10703 $as_test_x conftest$ac_exeext
10704 }; then
10705 ac_cv_func_shl_load=yes
10706 else
10707 $as_echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710 ac_cv_func_shl_load=no
10711 fi
10712
10713 rm -rf conftest.dSYM
10714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715 conftest$ac_exeext conftest.$ac_ext
10716 fi
10717 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10718 $as_echo "$ac_cv_func_shl_load" >&6; }
10719 if test "x$ac_cv_func_shl_load" = x""yes; then
10720 lt_cv_dlopen="shl_load"
10721 else
10722 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10723 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10725 $as_echo_n "(cached) " >&6
10726 else
10727 ac_check_lib_save_LIBS=$LIBS
10728 LIBS="-ldld $LIBS"
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char shl_load ();
10743 int
10744 main ()
10745 {
10746 return shl_load ();
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (ac_try="$ac_link"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756 esac
10757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10758 $as_echo "$ac_try_echo") >&5
10759 (eval "$ac_link") 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest$ac_exeext && {
10769 test "$cross_compiling" = yes ||
10770 $as_test_x conftest$ac_exeext
10771 }; then
10772 ac_cv_lib_dld_shl_load=yes
10773 else
10774 $as_echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 ac_cv_lib_dld_shl_load=no
10778 fi
10779
10780 rm -rf conftest.dSYM
10781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10784 fi
10785 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10786 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10787 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10788 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10789 else
10790 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10791 $as_echo_n "checking for dlopen... " >&6; }
10792 if test "${ac_cv_func_dlopen+set}" = set; then
10793 $as_echo_n "(cached) " >&6
10794 else
10795 cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h. */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10803 #define dlopen innocuous_dlopen
10804
10805 /* System header to define __stub macros and hopefully few prototypes,
10806 which can conflict with char dlopen (); below.
10807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10808 <limits.h> exists even on freestanding compilers. */
10809
10810 #ifdef __STDC__
10811 # include <limits.h>
10812 #else
10813 # include <assert.h>
10814 #endif
10815
10816 #undef dlopen
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char dlopen ();
10825 /* The GNU C library defines this for functions which it implements
10826 to always fail with ENOSYS. Some functions are actually named
10827 something starting with __ and the normal name is an alias. */
10828 #if defined __stub_dlopen || defined __stub___dlopen
10829 choke me
10830 #endif
10831
10832 int
10833 main ()
10834 {
10835 return dlopen ();
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847 $as_echo "$ac_try_echo") >&5
10848 (eval "$ac_link") 2>conftest.er1
10849 ac_status=$?
10850 grep -v '^ *+' conftest.er1 >conftest.err
10851 rm -f conftest.er1
10852 cat conftest.err >&5
10853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } && {
10855 test -z "$ac_c_werror_flag" ||
10856 test ! -s conftest.err
10857 } && test -s conftest$ac_exeext && {
10858 test "$cross_compiling" = yes ||
10859 $as_test_x conftest$ac_exeext
10860 }; then
10861 ac_cv_func_dlopen=yes
10862 else
10863 $as_echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 ac_cv_func_dlopen=no
10867 fi
10868
10869 rm -rf conftest.dSYM
10870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10871 conftest$ac_exeext conftest.$ac_ext
10872 fi
10873 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10874 $as_echo "$ac_cv_func_dlopen" >&6; }
10875 if test "x$ac_cv_func_dlopen" = x""yes; then
10876 lt_cv_dlopen="dlopen"
10877 else
10878 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10881 $as_echo_n "(cached) " >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-ldl $LIBS"
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891
10892 /* Override any GCC internal prototype to avoid an error.
10893 Use char because int might match the return type of a GCC
10894 builtin and then its argument prototype would still apply. */
10895 #ifdef __cplusplus
10896 extern "C"
10897 #endif
10898 char dlopen ();
10899 int
10900 main ()
10901 {
10902 return dlopen ();
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10914 $as_echo "$ac_try_echo") >&5
10915 (eval "$ac_link") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && {
10922 test -z "$ac_c_werror_flag" ||
10923 test ! -s conftest.err
10924 } && test -s conftest$ac_exeext && {
10925 test "$cross_compiling" = yes ||
10926 $as_test_x conftest$ac_exeext
10927 }; then
10928 ac_cv_lib_dl_dlopen=yes
10929 else
10930 $as_echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10932
10933 ac_cv_lib_dl_dlopen=no
10934 fi
10935
10936 rm -rf conftest.dSYM
10937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10940 fi
10941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10943 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10945 else
10946 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10948 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10949 $as_echo_n "(cached) " >&6
10950 else
10951 ac_check_lib_save_LIBS=$LIBS
10952 LIBS="-lsvld $LIBS"
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char dlopen ();
10967 int
10968 main ()
10969 {
10970 return dlopen ();
10971 ;
10972 return 0;
10973 }
10974 _ACEOF
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (ac_try="$ac_link"
10977 case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980 esac
10981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10982 $as_echo "$ac_try_echo") >&5
10983 (eval "$ac_link") 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && {
10990 test -z "$ac_c_werror_flag" ||
10991 test ! -s conftest.err
10992 } && test -s conftest$ac_exeext && {
10993 test "$cross_compiling" = yes ||
10994 $as_test_x conftest$ac_exeext
10995 }; then
10996 ac_cv_lib_svld_dlopen=yes
10997 else
10998 $as_echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_cv_lib_svld_dlopen=no
11002 fi
11003
11004 rm -rf conftest.dSYM
11005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11008 fi
11009 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11010 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11011 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11013 else
11014 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11015 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11017 $as_echo_n "(cached) " >&6
11018 else
11019 ac_check_lib_save_LIBS=$LIBS
11020 LIBS="-ldld $LIBS"
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dld_link ();
11035 int
11036 main ()
11037 {
11038 return dld_link ();
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (ac_try="$ac_link"
11045 case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11050 $as_echo "$ac_try_echo") >&5
11051 (eval "$ac_link") 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest$ac_exeext && {
11061 test "$cross_compiling" = yes ||
11062 $as_test_x conftest$ac_exeext
11063 }; then
11064 ac_cv_lib_dld_dld_link=yes
11065 else
11066 $as_echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069 ac_cv_lib_dld_dld_link=no
11070 fi
11071
11072 rm -rf conftest.dSYM
11073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11074 conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_lib_save_LIBS
11076 fi
11077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11078 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11079 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11080 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11081 fi
11082
11083
11084 fi
11085
11086
11087 fi
11088
11089
11090 fi
11091
11092
11093 fi
11094
11095
11096 fi
11097
11098 ;;
11099 esac
11100
11101 if test "x$lt_cv_dlopen" != xno; then
11102 enable_dlopen=yes
11103 else
11104 enable_dlopen=no
11105 fi
11106
11107 case $lt_cv_dlopen in
11108 dlopen)
11109 save_CPPFLAGS="$CPPFLAGS"
11110 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11111
11112 save_LDFLAGS="$LDFLAGS"
11113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11114
11115 save_LIBS="$LIBS"
11116 LIBS="$lt_cv_dlopen_libs $LIBS"
11117
11118 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11119 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11120 if test "${lt_cv_dlopen_self+set}" = set; then
11121 $as_echo_n "(cached) " >&6
11122 else
11123 if test "$cross_compiling" = yes; then :
11124 lt_cv_dlopen_self=cross
11125 else
11126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127 lt_status=$lt_dlunknown
11128 cat > conftest.$ac_ext <<_LT_EOF
11129 #line 11129 "configure"
11130 #include "confdefs.h"
11131
11132 #if HAVE_DLFCN_H
11133 #include <dlfcn.h>
11134 #endif
11135
11136 #include <stdio.h>
11137
11138 #ifdef RTLD_GLOBAL
11139 # define LT_DLGLOBAL RTLD_GLOBAL
11140 #else
11141 # ifdef DL_GLOBAL
11142 # define LT_DLGLOBAL DL_GLOBAL
11143 # else
11144 # define LT_DLGLOBAL 0
11145 # endif
11146 #endif
11147
11148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149 find out it does not work in some platform. */
11150 #ifndef LT_DLLAZY_OR_NOW
11151 # ifdef RTLD_LAZY
11152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11153 # else
11154 # ifdef DL_LAZY
11155 # define LT_DLLAZY_OR_NOW DL_LAZY
11156 # else
11157 # ifdef RTLD_NOW
11158 # define LT_DLLAZY_OR_NOW RTLD_NOW
11159 # else
11160 # ifdef DL_NOW
11161 # define LT_DLLAZY_OR_NOW DL_NOW
11162 # else
11163 # define LT_DLLAZY_OR_NOW 0
11164 # endif
11165 # endif
11166 # endif
11167 # endif
11168 #endif
11169
11170 void fnord() { int i=42;}
11171 int main ()
11172 {
11173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11174 int status = $lt_dlunknown;
11175
11176 if (self)
11177 {
11178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180 /* dlclose (self); */
11181 }
11182 else
11183 puts (dlerror ());
11184
11185 return status;
11186 }
11187 _LT_EOF
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>&5
11190 ac_status=$?
11191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11193 (./conftest; exit; ) >&5 2>/dev/null
11194 lt_status=$?
11195 case x$lt_status in
11196 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11197 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11198 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11199 esac
11200 else :
11201 # compilation failed
11202 lt_cv_dlopen_self=no
11203 fi
11204 fi
11205 rm -fr conftest*
11206
11207
11208 fi
11209 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11210 $as_echo "$lt_cv_dlopen_self" >&6; }
11211
11212 if test "x$lt_cv_dlopen_self" = xyes; then
11213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11214 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11215 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11216 if test "${lt_cv_dlopen_self_static+set}" = set; then
11217 $as_echo_n "(cached) " >&6
11218 else
11219 if test "$cross_compiling" = yes; then :
11220 lt_cv_dlopen_self_static=cross
11221 else
11222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11223 lt_status=$lt_dlunknown
11224 cat > conftest.$ac_ext <<_LT_EOF
11225 #line 11225 "configure"
11226 #include "confdefs.h"
11227
11228 #if HAVE_DLFCN_H
11229 #include <dlfcn.h>
11230 #endif
11231
11232 #include <stdio.h>
11233
11234 #ifdef RTLD_GLOBAL
11235 # define LT_DLGLOBAL RTLD_GLOBAL
11236 #else
11237 # ifdef DL_GLOBAL
11238 # define LT_DLGLOBAL DL_GLOBAL
11239 # else
11240 # define LT_DLGLOBAL 0
11241 # endif
11242 #endif
11243
11244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11245 find out it does not work in some platform. */
11246 #ifndef LT_DLLAZY_OR_NOW
11247 # ifdef RTLD_LAZY
11248 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11249 # else
11250 # ifdef DL_LAZY
11251 # define LT_DLLAZY_OR_NOW DL_LAZY
11252 # else
11253 # ifdef RTLD_NOW
11254 # define LT_DLLAZY_OR_NOW RTLD_NOW
11255 # else
11256 # ifdef DL_NOW
11257 # define LT_DLLAZY_OR_NOW DL_NOW
11258 # else
11259 # define LT_DLLAZY_OR_NOW 0
11260 # endif
11261 # endif
11262 # endif
11263 # endif
11264 #endif
11265
11266 void fnord() { int i=42;}
11267 int main ()
11268 {
11269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11270 int status = $lt_dlunknown;
11271
11272 if (self)
11273 {
11274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11276 /* dlclose (self); */
11277 }
11278 else
11279 puts (dlerror ());
11280
11281 return status;
11282 }
11283 _LT_EOF
11284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11285 (eval $ac_link) 2>&5
11286 ac_status=$?
11287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11289 (./conftest; exit; ) >&5 2>/dev/null
11290 lt_status=$?
11291 case x$lt_status in
11292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11295 esac
11296 else :
11297 # compilation failed
11298 lt_cv_dlopen_self_static=no
11299 fi
11300 fi
11301 rm -fr conftest*
11302
11303
11304 fi
11305 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11306 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11307 fi
11308
11309 CPPFLAGS="$save_CPPFLAGS"
11310 LDFLAGS="$save_LDFLAGS"
11311 LIBS="$save_LIBS"
11312 ;;
11313 esac
11314
11315 case $lt_cv_dlopen_self in
11316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11317 *) enable_dlopen_self=unknown ;;
11318 esac
11319
11320 case $lt_cv_dlopen_self_static in
11321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11322 *) enable_dlopen_self_static=unknown ;;
11323 esac
11324 fi
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342 striplib=
11343 old_striplib=
11344 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11345 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11346 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11348 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11349 { $as_echo "$as_me:$LINENO: result: yes" >&5
11350 $as_echo "yes" >&6; }
11351 else
11352 # FIXME - insert some real tests, host_os isn't really good enough
11353 case $host_os in
11354 darwin*)
11355 if test -n "$STRIP" ; then
11356 striplib="$STRIP -x"
11357 old_striplib="$STRIP -S"
11358 { $as_echo "$as_me:$LINENO: result: yes" >&5
11359 $as_echo "yes" >&6; }
11360 else
11361 { $as_echo "$as_me:$LINENO: result: no" >&5
11362 $as_echo "no" >&6; }
11363 fi
11364 ;;
11365 *)
11366 { $as_echo "$as_me:$LINENO: result: no" >&5
11367 $as_echo "no" >&6; }
11368 ;;
11369 esac
11370 fi
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 # Report which library types will actually be built
11384 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11385 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11386 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11387 $as_echo "$can_build_shared" >&6; }
11388
11389 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11390 $as_echo_n "checking whether to build shared libraries... " >&6; }
11391 test "$can_build_shared" = "no" && enable_shared=no
11392
11393 # On AIX, shared libraries and static libraries use the same namespace, and
11394 # are all built from PIC.
11395 case $host_os in
11396 aix3*)
11397 test "$enable_shared" = yes && enable_static=no
11398 if test -n "$RANLIB"; then
11399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11400 postinstall_cmds='$RANLIB $lib'
11401 fi
11402 ;;
11403
11404 aix[4-9]*)
11405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11406 test "$enable_shared" = yes && enable_static=no
11407 fi
11408 ;;
11409 esac
11410 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11411 $as_echo "$enable_shared" >&6; }
11412
11413 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11414 $as_echo_n "checking whether to build static libraries... " >&6; }
11415 # Make sure either enable_shared or enable_static is yes.
11416 test "$enable_shared" = yes || enable_static=yes
11417 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11418 $as_echo "$enable_static" >&6; }
11419
11420
11421
11422
11423 fi
11424 ac_ext=c
11425 ac_cpp='$CPP $CPPFLAGS'
11426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11429
11430 CC="$lt_save_CC"
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444 ac_config_commands="$ac_config_commands libtool"
11445
11446
11447
11448
11449 # Only expand once:
11450
11451
11452
11453
11454 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11455 $as_echo_n "checking spl license... " >&6; }
11456 LICENSE=GPL
11457 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11458 $as_echo "$LICENSE" >&6; }
11459 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11460
11461
11462
11463 SPL_CONFIG=all
11464
11465 # Check whether --with-config was given.
11466 if test "${with_config+set}" = set; then
11467 withval=$with_config; SPL_CONFIG="$withval"
11468 fi
11469
11470
11471 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11472 $as_echo_n "checking spl config... " >&6; }
11473 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11474 $as_echo "$SPL_CONFIG" >&6; };
11475
11476
11477 case "$SPL_CONFIG" in
11478 kernel)
11479
11480
11481 # Check whether --with-linux was given.
11482 if test "${with_linux+set}" = set; then
11483 withval=$with_linux; kernelsrc="$withval"
11484 fi
11485
11486
11487
11488 # Check whether --with-linux-obj was given.
11489 if test "${with_linux_obj+set}" = set; then
11490 withval=$with_linux_obj; kernelbuild="$withval"
11491 fi
11492
11493
11494 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11495 $as_echo_n "checking kernel source directory... " >&6; }
11496 if test -z "$kernelsrc"; then
11497 headersdir="/lib/modules/$(uname -r)/build"
11498 if test -e "$headersdir"; then
11499 sourcelink=$(readlink -f "$headersdir")
11500 else
11501 sourcelink=$(ls -1d /usr/src/kernels/* \
11502 /usr/src/linux-* \
11503 2>/dev/null | grep -v obj | tail -1)
11504 fi
11505
11506 if test -e ${sourcelink}; then
11507 kernelsrc=`readlink -f ${sourcelink}`
11508 else
11509 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11510 $as_echo "Not found" >&6; }
11511 { { $as_echo "$as_me:$LINENO: error:
11512 *** Please specify the location of the kernel source
11513 *** with the '--with-linux=PATH' option" >&5
11514 $as_echo "$as_me: error:
11515 *** Please specify the location of the kernel source
11516 *** with the '--with-linux=PATH' option" >&2;}
11517 { (exit 1); exit 1; }; }
11518 fi
11519 else
11520 if test "$kernelsrc" = "NONE"; then
11521 kernsrcver=NONE
11522 fi
11523 fi
11524
11525 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11526 $as_echo "$kernelsrc" >&6; }
11527 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11528 $as_echo_n "checking kernel build directory... " >&6; }
11529 if test -z "$kernelbuild"; then
11530 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
11531 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
11532 elif test -d ${kernelsrc}-obj/`arch`/default; then
11533 kernelbuild=${kernelsrc}-obj/`arch`/default
11534 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
11535 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
11536 else
11537 kernelbuild=${kernelsrc}
11538 fi
11539 fi
11540 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11541 $as_echo "$kernelbuild" >&6; }
11542
11543 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11544 $as_echo_n "checking kernel source version... " >&6; }
11545 utsrelease1=$kernelbuild/include/linux/version.h
11546 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11547 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11548 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11549 utsrelease=linux/version.h
11550 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11551 utsrelease=linux/utsrelease.h
11552 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11553 utsrelease=generated/utsrelease.h
11554 fi
11555
11556 if test "$utsrelease"; then
11557 kernsrcver=`(echo "#include <$utsrelease>";
11558 echo "kernsrcver=UTS_RELEASE") |
11559 cpp -I $kernelbuild/include |
11560 grep "^kernsrcver=" | cut -d \" -f 2`
11561
11562 if test -z "$kernsrcver"; then
11563 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11564 $as_echo "Not found" >&6; }
11565 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11566 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11567 { (exit 1); exit 1; }; }
11568 fi
11569 else
11570 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11571 $as_echo "Not found" >&6; }
11572 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11573 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11574 { (exit 1); exit 1; }; }
11575 fi
11576
11577 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11578 $as_echo "$kernsrcver" >&6; }
11579
11580 LINUX=${kernelsrc}
11581 LINUX_OBJ=${kernelbuild}
11582 LINUX_VERSION=${kernsrcver}
11583
11584
11585
11586
11587
11588
11589 modpost=$LINUX/scripts/Makefile.modpost
11590 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11591 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11592 if test -f "$modpost"; then
11593 if grep -q Modules.symvers $modpost; then
11594 LINUX_SYMBOLS=Modules.symvers
11595 else
11596 LINUX_SYMBOLS=Module.symvers
11597 fi
11598 else
11599 LINUX_SYMBOLS=NONE
11600 fi
11601 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11602 $as_echo "$LINUX_SYMBOLS" >&6; }
11603
11604
11605
11606
11607 abs_srcdir=`readlink -f ${srcdir}`
11608 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
11609 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
11610 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
11611
11612 if test "${LINUX_OBJ}" != "${LINUX}"; then
11613 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11614 fi
11615
11616
11617
11618
11619
11620 # Check whether --enable-debug was given.
11621 if test "${enable_debug+set}" = set; then
11622 enableval=$enable_debug;
11623 else
11624 enable_debug=no
11625 fi
11626
11627
11628 if test "x$enable_debug" = xyes; then
11629 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
11630 else
11631 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11632 fi
11633
11634
11635 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11636 $as_echo_n "checking whether debugging is enabled... " >&6; }
11637 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11638 $as_echo "$enable_debug" >&6; }
11639
11640
11641 # Check whether --enable-debug-kmem was given.
11642 if test "${enable_debug_kmem+set}" = set; then
11643 enableval=$enable_debug_kmem;
11644 else
11645 enable_debug_kmem=yes
11646 fi
11647
11648
11649 if test "x$enable_debug_kmem" = xyes; then
11650
11651 cat >>confdefs.h <<\_ACEOF
11652 #define DEBUG_KMEM 1
11653 _ACEOF
11654
11655 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11656 fi
11657
11658
11659 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11660 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11661 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11662 $as_echo "$enable_debug_kmem" >&6; }
11663
11664
11665 # Check whether --enable-debug-kmem-tracking was given.
11666 if test "${enable_debug_kmem_tracking+set}" = set; then
11667 enableval=$enable_debug_kmem_tracking;
11668 else
11669 enable_debug_kmem_tracking=no
11670 fi
11671
11672
11673 if test "x$enable_debug_kmem_tracking" = xyes; then
11674
11675 cat >>confdefs.h <<\_ACEOF
11676 #define DEBUG_KMEM_TRACKING 1
11677 _ACEOF
11678
11679 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11680 fi
11681
11682
11683 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11684 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11685 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11686 $as_echo "$enable_debug_kmem_tracking" >&6; }
11687
11688
11689 # Check whether --enable-atomic-spinlocks was given.
11690 if test "${enable_atomic_spinlocks+set}" = set; then
11691 enableval=$enable_atomic_spinlocks;
11692 else
11693 enable_atomic_spinlocks=check
11694 fi
11695
11696
11697
11698
11699 cat >conftest.c <<_ACEOF
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705
11706
11707 #include <asm/atomic.h>
11708
11709 int
11710 main (void)
11711 {
11712
11713 atomic64_t *ptr;
11714
11715 ;
11716 return 0;
11717 }
11718
11719 _ACEOF
11720
11721
11722 rm -Rf build && mkdir -p build
11723 echo "obj-m := conftest.o" >build/Makefile
11724 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735
11736 have_atomic64_t=yes
11737
11738 cat >>confdefs.h <<\_ACEOF
11739 #define HAVE_ATOMIC64_T 1
11740 _ACEOF
11741
11742
11743 else
11744 $as_echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 have_atomic64_t=no
11748
11749
11750
11751 fi
11752
11753 rm -Rf build
11754
11755
11756
11757 if test "x$enable_atomic_spinlocks" = xcheck; then
11758
11759 if test "x$have_atomic64_t" = xyes; then
11760
11761 enable_atomic_spinlocks=no
11762
11763 else
11764
11765 enable_atomic_spinlocks=yes
11766
11767 fi
11768
11769
11770 fi
11771
11772
11773 if test "x$enable_atomic_spinlocks" = xyes; then
11774
11775
11776 cat >>confdefs.h <<\_ACEOF
11777 #define ATOMIC_SPINLOCK 1
11778 _ACEOF
11779
11780
11781 else
11782
11783 if test "x$have_atomic64_t" = xno; then
11784
11785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11787 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11788 See \`config.log' for more details." >&5
11789 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11790 See \`config.log' for more details." >&2;}
11791 { (exit 1); exit 1; }; }; }
11792
11793 fi
11794
11795
11796 fi
11797
11798
11799 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
11800 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11801 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
11802 $as_echo "$enable_atomic_spinlocks" >&6; }
11803
11804 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
11805 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11806 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
11807 $as_echo "$have_atomic64_t" >&6; }
11808
11809 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
11810 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
11811
11812
11813 cat >conftest.c <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819
11820
11821 #include <asm/atomic.h>
11822
11823 int
11824 main (void)
11825 {
11826
11827 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
11828
11829 ;
11830 return 0;
11831 }
11832
11833 _ACEOF
11834
11835
11836 rm -Rf build && mkdir -p build
11837 echo "obj-m := conftest.o" >build/Makefile
11838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849
11850 { $as_echo "$as_me:$LINENO: result: yes" >&5
11851 $as_echo "yes" >&6; }
11852
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_ATOMIC64_CMPXCHG 1
11855 _ACEOF
11856
11857
11858 else
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862 { $as_echo "$as_me:$LINENO: result: no" >&5
11863 $as_echo "no" >&6; }
11864
11865
11866
11867 fi
11868
11869 rm -Rf build
11870
11871
11872
11873 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
11874 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
11875
11876
11877 cat >conftest.c <<_ACEOF
11878 /* confdefs.h. */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883
11884
11885 #include <asm/atomic.h>
11886
11887 int
11888 main (void)
11889 {
11890
11891 atomic64_xchg((atomic64_t *)NULL, 0);
11892
11893 ;
11894 return 0;
11895 }
11896
11897 _ACEOF
11898
11899
11900 rm -Rf build && mkdir -p build
11901 echo "obj-m := conftest.o" >build/Makefile
11902 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913
11914 { $as_echo "$as_me:$LINENO: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916
11917 cat >>confdefs.h <<\_ACEOF
11918 #define HAVE_ATOMIC64_XCHG 1
11919 _ACEOF
11920
11921
11922 else
11923 $as_echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 { $as_echo "$as_me:$LINENO: result: no" >&5
11927 $as_echo "no" >&6; }
11928
11929
11930
11931 fi
11932
11933 rm -Rf build
11934
11935
11936
11937 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
11938 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
11939
11940
11941 cat >conftest.c <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947
11948
11949 #include <linux/types.h>
11950
11951 int
11952 main (void)
11953 {
11954
11955 uintptr_t *ptr;
11956
11957 ;
11958 return 0;
11959 }
11960
11961 _ACEOF
11962
11963
11964 rm -Rf build && mkdir -p build
11965 echo "obj-m := conftest.o" >build/Makefile
11966 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977
11978 { $as_echo "$as_me:$LINENO: result: yes" >&5
11979 $as_echo "yes" >&6; }
11980
11981 cat >>confdefs.h <<\_ACEOF
11982 #define HAVE_UINTPTR_T 1
11983 _ACEOF
11984
11985
11986 else
11987 $as_echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 { $as_echo "$as_me:$LINENO: result: no" >&5
11991 $as_echo "no" >&6; }
11992
11993
11994
11995 fi
11996
11997 rm -Rf build
11998
11999
12000
12001 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12002 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12003
12004
12005 cat >conftest.c <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011
12012
12013 #include <linux/workqueue.h>
12014
12015 int
12016 main (void)
12017 {
12018
12019 struct work_struct work;
12020 INIT_WORK(&work, NULL, NULL);
12021
12022 ;
12023 return 0;
12024 }
12025
12026 _ACEOF
12027
12028
12029 rm -Rf build && mkdir -p build
12030 echo "obj-m := conftest.o" >build/Makefile
12031 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042
12043 { $as_echo "$as_me:$LINENO: result: yes" >&5
12044 $as_echo "yes" >&6; }
12045
12046 cat >>confdefs.h <<\_ACEOF
12047 #define HAVE_3ARGS_INIT_WORK 1
12048 _ACEOF
12049
12050
12051 else
12052 $as_echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 { $as_echo "$as_me:$LINENO: result: no" >&5
12056 $as_echo "no" >&6; }
12057
12058
12059
12060 fi
12061
12062 rm -Rf build
12063
12064
12065
12066 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12067 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12068
12069
12070 cat >conftest.c <<_ACEOF
12071 /* confdefs.h. */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076
12077
12078 #include <linux/sysctl.h>
12079
12080 int
12081 main (void)
12082 {
12083
12084 return register_sysctl_table(NULL,0);
12085
12086 ;
12087 return 0;
12088 }
12089
12090 _ACEOF
12091
12092
12093 rm -Rf build && mkdir -p build
12094 echo "obj-m := conftest.o" >build/Makefile
12095 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12098 ac_status=$?
12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106
12107 { $as_echo "$as_me:$LINENO: result: yes" >&5
12108 $as_echo "yes" >&6; }
12109
12110 cat >>confdefs.h <<\_ACEOF
12111 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12112 _ACEOF
12113
12114
12115 else
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 { $as_echo "$as_me:$LINENO: result: no" >&5
12120 $as_echo "no" >&6; }
12121
12122
12123
12124 fi
12125
12126 rm -Rf build
12127
12128
12129
12130
12131 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12132 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12133
12134
12135 cat >conftest.c <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141
12142
12143 #include <linux/mm.h>
12144
12145 int
12146 main (void)
12147 {
12148
12149 return set_shrinker(DEFAULT_SEEKS, NULL);
12150
12151 ;
12152 return 0;
12153 }
12154
12155 _ACEOF
12156
12157
12158 rm -Rf build && mkdir -p build
12159 echo "obj-m := conftest.o" >build/Makefile
12160 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171
12172 { $as_echo "$as_me:$LINENO: result: yes" >&5
12173 $as_echo "yes" >&6; }
12174
12175 cat >>confdefs.h <<\_ACEOF
12176 #define HAVE_SET_SHRINKER 1
12177 _ACEOF
12178
12179
12180 else
12181 $as_echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 { $as_echo "$as_me:$LINENO: result: no" >&5
12185 $as_echo "no" >&6; }
12186
12187
12188
12189 fi
12190
12191 rm -Rf build
12192
12193
12194
12195 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12196 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12197
12198
12199 cat >conftest.c <<_ACEOF
12200 /* confdefs.h. */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205
12206
12207 #include <linux/namei.h>
12208
12209 int
12210 main (void)
12211 {
12212
12213 struct nameidata nd;
12214
12215 nd.path.mnt = NULL;
12216 nd.path.dentry = NULL;
12217
12218 ;
12219 return 0;
12220 }
12221
12222 _ACEOF
12223
12224
12225 rm -Rf build && mkdir -p build
12226 echo "obj-m := conftest.o" >build/Makefile
12227 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238
12239 { $as_echo "$as_me:$LINENO: result: yes" >&5
12240 $as_echo "yes" >&6; }
12241
12242 cat >>confdefs.h <<\_ACEOF
12243 #define HAVE_PATH_IN_NAMEIDATA 1
12244 _ACEOF
12245
12246
12247 else
12248 $as_echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 { $as_echo "$as_me:$LINENO: result: no" >&5
12252 $as_echo "no" >&6; }
12253
12254
12255
12256 fi
12257
12258 rm -Rf build
12259
12260
12261
12262
12263 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12264 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12265 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12266 $LINUX_OBJ/Module*.symvers 2>/dev/null
12267 rc=$?
12268 if test $rc -ne 0; then
12269 export=0
12270 for file in kernel/sched.c; do
12271 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12272 "$LINUX_OBJ/$file" 2>/dev/null
12273 rc=$?
12274 if test $rc -eq 0; then
12275 export=1
12276 break;
12277 fi
12278 done
12279 if test $export -eq 0; then
12280 { $as_echo "$as_me:$LINENO: result: no" >&5
12281 $as_echo "no" >&6; }
12282
12283 else
12284 { $as_echo "$as_me:$LINENO: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286
12287 cat >>confdefs.h <<\_ACEOF
12288 #define HAVE_TASK_CURR 1
12289 _ACEOF
12290
12291 fi
12292 else
12293 { $as_echo "$as_me:$LINENO: result: yes" >&5
12294 $as_echo "yes" >&6; }
12295
12296 cat >>confdefs.h <<\_ACEOF
12297 #define HAVE_TASK_CURR 1
12298 _ACEOF
12299
12300 fi
12301
12302
12303 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12304 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12305
12306
12307 cat >conftest.c <<_ACEOF
12308 /* confdefs.h. */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313
12314
12315 #include <linux/sysctl.h>
12316
12317 int
12318 main (void)
12319 {
12320
12321 #ifndef CTL_UNNUMBERED
12322 #error CTL_UNNUMBERED undefined
12323 #endif
12324
12325 ;
12326 return 0;
12327 }
12328
12329 _ACEOF
12330
12331
12332 rm -Rf build && mkdir -p build
12333 echo "obj-m := conftest.o" >build/Makefile
12334 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345
12346 { $as_echo "$as_me:$LINENO: result: yes" >&5
12347 $as_echo "yes" >&6; }
12348
12349 cat >>confdefs.h <<\_ACEOF
12350 #define HAVE_CTL_UNNUMBERED 1
12351 _ACEOF
12352
12353
12354 else
12355 $as_echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 { $as_echo "$as_me:$LINENO: result: no" >&5
12359 $as_echo "no" >&6; }
12360
12361
12362
12363 fi
12364
12365 rm -Rf build
12366
12367
12368
12369
12370 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12371 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12372
12373
12374 cat >conftest.c <<_ACEOF
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/sysctl.h>
12383
12384 int
12385 main (void)
12386 {
12387
12388 struct ctl_table ctl;
12389 ctl.ctl_name = 0;
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_CTL_NAME 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 fls64() is available" >&5
12436 $as_echo_n "checking whether fls64() is available... " >&6; }
12437
12438
12439 cat >conftest.c <<_ACEOF
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/bitops.h>
12448
12449 int
12450 main (void)
12451 {
12452
12453 return fls64(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_FLS64 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 symbol device_create is exported" >&5
12501 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12502 grep -q -E '[[:space:]]device_create[[:space:]]' \
12503 $LINUX_OBJ/Module*.symvers 2>/dev/null
12504 rc=$?
12505 if test $rc -ne 0; then
12506 export=0
12507 for file in drivers/base/core.c; do
12508 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12509 "$LINUX_OBJ/$file" 2>/dev/null
12510 rc=$?
12511 if test $rc -eq 0; then
12512 export=1
12513 break;
12514 fi
12515 done
12516 if test $export -eq 0; then
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12519
12520 else
12521 { $as_echo "$as_me:$LINENO: result: yes" >&5
12522 $as_echo "yes" >&6; }
12523
12524 cat >>confdefs.h <<\_ACEOF
12525 #define HAVE_DEVICE_CREATE 1
12526 _ACEOF
12527
12528 fi
12529 else
12530 { $as_echo "$as_me:$LINENO: result: yes" >&5
12531 $as_echo "yes" >&6; }
12532
12533 cat >>confdefs.h <<\_ACEOF
12534 #define HAVE_DEVICE_CREATE 1
12535 _ACEOF
12536
12537 fi
12538
12539
12540
12541 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12542 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12543 tmp_flags="$EXTRA_KCFLAGS"
12544 EXTRA_KCFLAGS="-Werror"
12545
12546
12547 cat >conftest.c <<_ACEOF
12548 /* confdefs.h. */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553
12554
12555 #include <linux/device.h>
12556
12557 int
12558 main (void)
12559 {
12560
12561 device_create(NULL, NULL, 0, NULL, "%d", 1);
12562
12563 ;
12564 return 0;
12565 }
12566
12567 _ACEOF
12568
12569
12570 rm -Rf build && mkdir -p build
12571 echo "obj-m := conftest.o" >build/Makefile
12572 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583
12584 { $as_echo "$as_me:$LINENO: result: yes" >&5
12585 $as_echo "yes" >&6; }
12586
12587 cat >>confdefs.h <<\_ACEOF
12588 #define HAVE_5ARGS_DEVICE_CREATE 1
12589 _ACEOF
12590
12591
12592 else
12593 $as_echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 { $as_echo "$as_me:$LINENO: result: no" >&5
12597 $as_echo "no" >&6; }
12598
12599
12600
12601 fi
12602
12603 rm -Rf build
12604
12605
12606 EXTRA_KCFLAGS="$tmp_flags"
12607
12608
12609 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
12610 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
12611 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12612 $LINUX_OBJ/Module*.symvers 2>/dev/null
12613 rc=$?
12614 if test $rc -ne 0; then
12615 export=0
12616 for file in drivers/base/class.c; do
12617 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12618 "$LINUX_OBJ/$file" 2>/dev/null
12619 rc=$?
12620 if test $rc -eq 0; then
12621 export=1
12622 break;
12623 fi
12624 done
12625 if test $export -eq 0; then
12626 { $as_echo "$as_me:$LINENO: result: no" >&5
12627 $as_echo "no" >&6; }
12628
12629 else
12630 { $as_echo "$as_me:$LINENO: result: yes" >&5
12631 $as_echo "yes" >&6; }
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_CLASS_DEVICE_CREATE 1
12635 _ACEOF
12636
12637 fi
12638 else
12639 { $as_echo "$as_me:$LINENO: result: yes" >&5
12640 $as_echo "yes" >&6; }
12641
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_CLASS_DEVICE_CREATE 1
12644 _ACEOF
12645
12646 fi
12647
12648
12649
12650 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
12651 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
12652 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12653 $LINUX_OBJ/Module*.symvers 2>/dev/null
12654 rc=$?
12655 if test $rc -ne 0; then
12656 export=0
12657 for file in kernel/time.c; do
12658 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12659 "$LINUX_OBJ/$file" 2>/dev/null
12660 rc=$?
12661 if test $rc -eq 0; then
12662 export=1
12663 break;
12664 fi
12665 done
12666 if test $export -eq 0; then
12667 { $as_echo "$as_me:$LINENO: result: no" >&5
12668 $as_echo "no" >&6; }
12669
12670 else
12671 { $as_echo "$as_me:$LINENO: result: yes" >&5
12672 $as_echo "yes" >&6; }
12673
12674 cat >>confdefs.h <<\_ACEOF
12675 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12676 _ACEOF
12677
12678 fi
12679 else
12680 { $as_echo "$as_me:$LINENO: result: yes" >&5
12681 $as_echo "yes" >&6; }
12682
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12685 _ACEOF
12686
12687 fi
12688
12689
12690
12691 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
12692 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
12693
12694
12695 cat >conftest.c <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701
12702
12703 #include <linux/time.h>
12704 void set_normalized_timespec(struct timespec *ts,
12705 time_t sec, long nsec) { }
12706
12707 int
12708 main (void)
12709 {
12710
12711 ;
12712 return 0;
12713 }
12714
12715 _ACEOF
12716
12717
12718 rm -Rf build && mkdir -p build
12719 echo "obj-m := conftest.o" >build/Makefile
12720 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731
12732 { $as_echo "$as_me:$LINENO: result: no" >&5
12733 $as_echo "no" >&6; }
12734
12735 else
12736 $as_echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 { $as_echo "$as_me:$LINENO: result: yes" >&5
12740 $as_echo "yes" >&6; }
12741
12742 cat >>confdefs.h <<\_ACEOF
12743 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
12744 _ACEOF
12745
12746
12747
12748
12749 fi
12750
12751 rm -Rf build
12752
12753
12754
12755
12756 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
12757 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
12758
12759
12760 cat >conftest.c <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766
12767
12768 #include <linux/time.h>
12769
12770 int
12771 main (void)
12772 {
12773
12774 struct timespec a, b, c = { 0 };
12775 c = timespec_sub(a, b);
12776
12777 ;
12778 return 0;
12779 }
12780
12781 _ACEOF
12782
12783
12784 rm -Rf build && mkdir -p build
12785 echo "obj-m := conftest.o" >build/Makefile
12786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797
12798 { $as_echo "$as_me:$LINENO: result: yes" >&5
12799 $as_echo "yes" >&6; }
12800
12801 cat >>confdefs.h <<\_ACEOF
12802 #define HAVE_TIMESPEC_SUB 1
12803 _ACEOF
12804
12805
12806 else
12807 $as_echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810 { $as_echo "$as_me:$LINENO: result: no" >&5
12811 $as_echo "no" >&6; }
12812
12813
12814
12815 fi
12816
12817 rm -Rf build
12818
12819
12820
12821
12822 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
12823 $as_echo_n "checking whether init_utsname() is available... " >&6; }
12824
12825
12826 cat >conftest.c <<_ACEOF
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832
12833
12834 #include <linux/utsname.h>
12835
12836 int
12837 main (void)
12838 {
12839
12840 struct new_utsname *a = init_utsname();
12841
12842 ;
12843 return 0;
12844 }
12845
12846 _ACEOF
12847
12848
12849 rm -Rf build && mkdir -p build
12850 echo "obj-m := conftest.o" >build/Makefile
12851 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862
12863 { $as_echo "$as_me:$LINENO: result: yes" >&5
12864 $as_echo "yes" >&6; }
12865
12866 cat >>confdefs.h <<\_ACEOF
12867 #define HAVE_INIT_UTSNAME 1
12868 _ACEOF
12869
12870
12871 else
12872 $as_echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 { $as_echo "$as_me:$LINENO: result: no" >&5
12876 $as_echo "no" >&6; }
12877
12878
12879
12880 fi
12881
12882 rm -Rf build
12883
12884
12885
12886
12887 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
12888 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
12889
12890
12891 cat >conftest.c <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897
12898
12899 #include <linux/fdtable.h>
12900
12901 int
12902 main (void)
12903 {
12904
12905 return 0;
12906
12907 ;
12908 return 0;
12909 }
12910
12911 _ACEOF
12912
12913
12914 rm -Rf build && mkdir -p build
12915 echo "obj-m := conftest.o" >build/Makefile
12916 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927
12928
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_FDTABLE_HEADER 1
12931 _ACEOF
12932
12933 { $as_echo "$as_me:$LINENO: result: yes" >&5
12934 $as_echo "yes" >&6; }
12935
12936
12937 else
12938 $as_echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 { $as_echo "$as_me:$LINENO: result: no" >&5
12942 $as_echo "no" >&6; }
12943
12944
12945
12946
12947 fi
12948
12949 rm -Rf build
12950
12951
12952
12953
12954
12955 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
12956 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
12957
12958
12959 cat >conftest.c <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965
12966
12967 #include <linux/sched.h>
12968 #include <linux/file.h>
12969 #ifdef HAVE_FDTABLE_HEADER
12970 #include <linux/fdtable.h>
12971 #endif
12972
12973 int
12974 main (void)
12975 {
12976
12977 struct files_struct *files = current->files;
12978 struct fdtable *fdt = files_fdtable(files);
12979
12980 ;
12981 return 0;
12982 }
12983
12984 _ACEOF
12985
12986
12987 rm -Rf build && mkdir -p build
12988 echo "obj-m := conftest.o" >build/Makefile
12989 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000
13001 { $as_echo "$as_me:$LINENO: result: yes" >&5
13002 $as_echo "yes" >&6; }
13003
13004 cat >>confdefs.h <<\_ACEOF
13005 #define HAVE_FILES_FDTABLE 1
13006 _ACEOF
13007
13008
13009 else
13010 $as_echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13012
13013 { $as_echo "$as_me:$LINENO: result: no" >&5
13014 $as_echo "no" >&6; }
13015
13016
13017
13018 fi
13019
13020 rm -Rf build
13021
13022
13023
13024
13025 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13026 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13027
13028
13029 cat >conftest.c <<_ACEOF
13030 /* confdefs.h. */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13035
13036
13037 #include <linux/uaccess.h>
13038
13039 int
13040 main (void)
13041 {
13042
13043 return 0;
13044
13045 ;
13046 return 0;
13047 }
13048
13049 _ACEOF
13050
13051
13052 rm -Rf build && mkdir -p build
13053 echo "obj-m := conftest.o" >build/Makefile
13054 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065
13066
13067 cat >>confdefs.h <<\_ACEOF
13068 #define HAVE_UACCESS_HEADER 1
13069 _ACEOF
13070
13071 { $as_echo "$as_me:$LINENO: result: yes" >&5
13072 $as_echo "yes" >&6; }
13073
13074
13075 else
13076 $as_echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 { $as_echo "$as_me:$LINENO: result: no" >&5
13080 $as_echo "no" >&6; }
13081
13082
13083
13084
13085 fi
13086
13087 rm -Rf build
13088
13089
13090
13091
13092
13093 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13094 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13095
13096
13097 cat >conftest.c <<_ACEOF
13098 /* confdefs.h. */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103
13104
13105 #include <linux/slab.h>
13106
13107 int
13108 main (void)
13109 {
13110
13111 void *a = kmalloc_node(1, GFP_KERNEL, 0);
13112
13113 ;
13114 return 0;
13115 }
13116
13117 _ACEOF
13118
13119
13120 rm -Rf build && mkdir -p build
13121 echo "obj-m := conftest.o" >build/Makefile
13122 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133
13134 { $as_echo "$as_me:$LINENO: result: yes" >&5
13135 $as_echo "yes" >&6; }
13136
13137 cat >>confdefs.h <<\_ACEOF
13138 #define HAVE_KMALLOC_NODE 1
13139 _ACEOF
13140
13141
13142 else
13143 $as_echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 { $as_echo "$as_me:$LINENO: result: no" >&5
13147 $as_echo "no" >&6; }
13148
13149
13150
13151 fi
13152
13153 rm -Rf build
13154
13155
13156
13157
13158 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13159 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13160 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13161 $LINUX_OBJ/Module*.symvers 2>/dev/null
13162 rc=$?
13163 if test $rc -ne 0; then
13164 export=0
13165 for file in ; do
13166 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13167 "$LINUX_OBJ/$file" 2>/dev/null
13168 rc=$?
13169 if test $rc -eq 0; then
13170 export=1
13171 break;
13172 fi
13173 done
13174 if test $export -eq 0; then
13175 { $as_echo "$as_me:$LINENO: result: no" >&5
13176 $as_echo "no" >&6; }
13177
13178 else
13179 { $as_echo "$as_me:$LINENO: result: yes" >&5
13180 $as_echo "yes" >&6; }
13181
13182 cat >>confdefs.h <<\_ACEOF
13183 #define HAVE_MONOTONIC_CLOCK 1
13184 _ACEOF
13185
13186 fi
13187 else
13188 { $as_echo "$as_me:$LINENO: result: yes" >&5
13189 $as_echo "yes" >&6; }
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_MONOTONIC_CLOCK 1
13193 _ACEOF
13194
13195 fi
13196
13197
13198
13199 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13200 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13201
13202
13203 cat >conftest.c <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209
13210
13211 #include <linux/fs.h>
13212 #include <linux/mutex.h>
13213
13214 int
13215 main (void)
13216 {
13217
13218 struct inode i;
13219 mutex_init(&i.i_mutex);
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_INODE_I_MUTEX 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 struct mutex has owner" >&5
13267 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13268
13269
13270 cat >conftest.c <<_ACEOF
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/mutex.h>
13279
13280 int
13281 main (void)
13282 {
13283
13284 struct mutex mtx;
13285 mtx.owner = NULL;
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_MUTEX_OWNER 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 mutex_lock_nested() is available" >&5
13333 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13334
13335
13336 cat >conftest.c <<_ACEOF
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/mutex.h>
13345
13346 int
13347 main (void)
13348 {
13349
13350 struct mutex mutex;
13351 mutex_init(&mutex);
13352 mutex_lock_nested(&mutex, 0);
13353
13354 ;
13355 return 0;
13356 }
13357
13358 _ACEOF
13359
13360
13361 rm -Rf build && mkdir -p build
13362 echo "obj-m := conftest.o" >build/Makefile
13363 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374
13375 { $as_echo "$as_me:$LINENO: result: yes" >&5
13376 $as_echo "yes" >&6; }
13377
13378 cat >>confdefs.h <<\_ACEOF
13379 #define HAVE_MUTEX_LOCK_NESTED 1
13380 _ACEOF
13381
13382
13383 else
13384 $as_echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 { $as_echo "$as_me:$LINENO: result: no" >&5
13388 $as_echo "no" >&6; }
13389
13390
13391
13392 fi
13393
13394 rm -Rf build
13395
13396
13397
13398
13399 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
13400 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
13401 grep -q -E '[[:space:]]div64_64[[:space:]]' \
13402 $LINUX_OBJ/Module*.symvers 2>/dev/null
13403 rc=$?
13404 if test $rc -ne 0; then
13405 export=0
13406 for file in ; do
13407 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
13408 "$LINUX_OBJ/$file" 2>/dev/null
13409 rc=$?
13410 if test $rc -eq 0; then
13411 export=1
13412 break;
13413 fi
13414 done
13415 if test $export -eq 0; then
13416 { $as_echo "$as_me:$LINENO: result: no" >&5
13417 $as_echo "no" >&6; }
13418
13419 else
13420 { $as_echo "$as_me:$LINENO: result: yes" >&5
13421 $as_echo "yes" >&6; }
13422
13423 cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_DIV64_64 1
13425 _ACEOF
13426
13427 fi
13428 else
13429 { $as_echo "$as_me:$LINENO: result: yes" >&5
13430 $as_echo "yes" >&6; }
13431
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_DIV64_64 1
13434 _ACEOF
13435
13436 fi
13437
13438
13439
13440 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
13441 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
13442 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
13443 $LINUX_OBJ/Module*.symvers 2>/dev/null
13444 rc=$?
13445 if test $rc -ne 0; then
13446 export=0
13447 for file in ; do
13448 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
13449 "$LINUX_OBJ/$file" 2>/dev/null
13450 rc=$?
13451 if test $rc -eq 0; then
13452 export=1
13453 break;
13454 fi
13455 done
13456 if test $export -eq 0; then
13457 { $as_echo "$as_me:$LINENO: result: no" >&5
13458 $as_echo "no" >&6; }
13459
13460 else
13461 { $as_echo "$as_me:$LINENO: result: yes" >&5
13462 $as_echo "yes" >&6; }
13463
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_DIV64_U64 1
13466 _ACEOF
13467
13468 fi
13469 else
13470 { $as_echo "$as_me:$LINENO: result: yes" >&5
13471 $as_echo "yes" >&6; }
13472
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_DIV64_U64 1
13475 _ACEOF
13476
13477 fi
13478
13479
13480
13481 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13482 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13483
13484
13485 cat >conftest.c <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491
13492
13493 #include <linux/smp.h>
13494
13495 int
13496 main (void)
13497 {
13498
13499 on_each_cpu(NULL, NULL, 0);
13500
13501 ;
13502 return 0;
13503 }
13504
13505 _ACEOF
13506
13507
13508 rm -Rf build && mkdir -p build
13509 echo "obj-m := conftest.o" >build/Makefile
13510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521
13522 { $as_echo "$as_me:$LINENO: result: yes" >&5
13523 $as_echo "yes" >&6; }
13524
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_3ARGS_ON_EACH_CPU 1
13527 _ACEOF
13528
13529
13530 else
13531 $as_echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 { $as_echo "$as_me:$LINENO: result: no" >&5
13535 $as_echo "no" >&6; }
13536
13537
13538
13539 fi
13540
13541 rm -Rf build
13542
13543
13544
13545
13546 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13547 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13548 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13549 $LINUX_OBJ/Module*.symvers 2>/dev/null
13550 rc=$?
13551 if test $rc -ne 0; then
13552 export=0
13553 for file in ; do
13554 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13555 "$LINUX_OBJ/$file" 2>/dev/null
13556 rc=$?
13557 if test $rc -eq 0; then
13558 export=1
13559 break;
13560 fi
13561 done
13562 if test $export -eq 0; then
13563 { $as_echo "$as_me:$LINENO: result: no" >&5
13564 $as_echo "no" >&6; }
13565
13566 else
13567 { $as_echo "$as_me:$LINENO: result: yes" >&5
13568 $as_echo "yes" >&6; }
13569
13570 cat >>confdefs.h <<\_ACEOF
13571 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13572 _ACEOF
13573
13574 fi
13575 else
13576 { $as_echo "$as_me:$LINENO: result: yes" >&5
13577 $as_echo "yes" >&6; }
13578
13579 cat >>confdefs.h <<\_ACEOF
13580 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13581 _ACEOF
13582
13583 fi
13584
13585
13586
13587 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13588 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13589 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13590 $LINUX_OBJ/Module*.symvers 2>/dev/null
13591 rc=$?
13592 if test $rc -ne 0; then
13593 export=0
13594 for file in ; do
13595 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13596 "$LINUX_OBJ/$file" 2>/dev/null
13597 rc=$?
13598 if test $rc -eq 0; then
13599 export=1
13600 break;
13601 fi
13602 done
13603 if test $export -eq 0; then
13604 { $as_echo "$as_me:$LINENO: result: no" >&5
13605 $as_echo "no" >&6; }
13606
13607 else
13608 { $as_echo "$as_me:$LINENO: result: yes" >&5
13609 $as_echo "yes" >&6; }
13610
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HAVE_GET_VMALLOC_INFO 1
13613 _ACEOF
13614
13615 fi
13616 else
13617 { $as_echo "$as_me:$LINENO: result: yes" >&5
13618 $as_echo "yes" >&6; }
13619
13620 cat >>confdefs.h <<\_ACEOF
13621 #define HAVE_GET_VMALLOC_INFO 1
13622 _ACEOF
13623
13624 fi
13625
13626
13627
13628 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
13629 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
13630 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13631 rc=$?
13632 if test $rc -eq 0; then
13633 { $as_echo "$as_me:$LINENO: result: yes" >&5
13634 $as_echo "yes" >&6; }
13635
13636 cat >>confdefs.h <<\_ACEOF
13637 #define HAVE_PGDAT_HELPERS 1
13638 _ACEOF
13639
13640 else
13641 { $as_echo "$as_me:$LINENO: result: no" >&5
13642 $as_echo "no" >&6; }
13643 fi
13644
13645
13646 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
13647 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
13648 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13649 $LINUX_OBJ/Module*.symvers 2>/dev/null
13650 rc=$?
13651 if test $rc -ne 0; then
13652 export=0
13653 for file in ; do
13654 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13655 "$LINUX_OBJ/$file" 2>/dev/null
13656 rc=$?
13657 if test $rc -eq 0; then
13658 export=1
13659 break;
13660 fi
13661 done
13662 if test $export -eq 0; then
13663 { $as_echo "$as_me:$LINENO: result: no" >&5
13664 $as_echo "no" >&6; }
13665
13666 else
13667 { $as_echo "$as_me:$LINENO: result: yes" >&5
13668 $as_echo "yes" >&6; }
13669
13670 cat >>confdefs.h <<\_ACEOF
13671 #define HAVE_FIRST_ONLINE_PGDAT 1
13672 _ACEOF
13673
13674 fi
13675 else
13676 { $as_echo "$as_me:$LINENO: result: yes" >&5
13677 $as_echo "yes" >&6; }
13678
13679 cat >>confdefs.h <<\_ACEOF
13680 #define HAVE_FIRST_ONLINE_PGDAT 1
13681 _ACEOF
13682
13683 fi
13684
13685
13686
13687 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
13688 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
13689 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13690 $LINUX_OBJ/Module*.symvers 2>/dev/null
13691 rc=$?
13692 if test $rc -ne 0; then
13693 export=0
13694 for file in ; do
13695 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13696 "$LINUX_OBJ/$file" 2>/dev/null
13697 rc=$?
13698 if test $rc -eq 0; then
13699 export=1
13700 break;
13701 fi
13702 done
13703 if test $export -eq 0; then
13704 { $as_echo "$as_me:$LINENO: result: no" >&5
13705 $as_echo "no" >&6; }
13706
13707 else
13708 { $as_echo "$as_me:$LINENO: result: yes" >&5
13709 $as_echo "yes" >&6; }
13710
13711 cat >>confdefs.h <<\_ACEOF
13712 #define HAVE_NEXT_ONLINE_PGDAT 1
13713 _ACEOF
13714
13715 fi
13716 else
13717 { $as_echo "$as_me:$LINENO: result: yes" >&5
13718 $as_echo "yes" >&6; }
13719
13720 cat >>confdefs.h <<\_ACEOF
13721 #define HAVE_NEXT_ONLINE_PGDAT 1
13722 _ACEOF
13723
13724 fi
13725
13726
13727
13728 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
13729 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
13730 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13731 $LINUX_OBJ/Module*.symvers 2>/dev/null
13732 rc=$?
13733 if test $rc -ne 0; then
13734 export=0
13735 for file in ; do
13736 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13737 "$LINUX_OBJ/$file" 2>/dev/null
13738 rc=$?
13739 if test $rc -eq 0; then
13740 export=1
13741 break;
13742 fi
13743 done
13744 if test $export -eq 0; then
13745 { $as_echo "$as_me:$LINENO: result: no" >&5
13746 $as_echo "no" >&6; }
13747
13748 else
13749 { $as_echo "$as_me:$LINENO: result: yes" >&5
13750 $as_echo "yes" >&6; }
13751
13752 cat >>confdefs.h <<\_ACEOF
13753 #define HAVE_NEXT_ZONE 1
13754 _ACEOF
13755
13756 fi
13757 else
13758 { $as_echo "$as_me:$LINENO: result: yes" >&5
13759 $as_echo "yes" >&6; }
13760
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_NEXT_ZONE 1
13763 _ACEOF
13764
13765 fi
13766
13767
13768
13769 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
13770 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
13771 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13772 $LINUX_OBJ/Module*.symvers 2>/dev/null
13773 rc=$?
13774 if test $rc -ne 0; then
13775 export=0
13776 for file in ; do
13777 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13778 "$LINUX_OBJ/$file" 2>/dev/null
13779 rc=$?
13780 if test $rc -eq 0; then
13781 export=1
13782 break;
13783 fi
13784 done
13785 if test $export -eq 0; then
13786 { $as_echo "$as_me:$LINENO: result: no" >&5
13787 $as_echo "no" >&6; }
13788
13789 else
13790 { $as_echo "$as_me:$LINENO: result: yes" >&5
13791 $as_echo "yes" >&6; }
13792
13793 cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_PGDAT_LIST 1
13795 _ACEOF
13796
13797 fi
13798 else
13799 { $as_echo "$as_me:$LINENO: result: yes" >&5
13800 $as_echo "yes" >&6; }
13801
13802 cat >>confdefs.h <<\_ACEOF
13803 #define HAVE_PGDAT_LIST 1
13804 _ACEOF
13805
13806 fi
13807
13808
13809
13810 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
13811 $as_echo_n "checking whether global_page_state() is available... " >&6; }
13812
13813
13814 cat >conftest.c <<_ACEOF
13815 /* confdefs.h. */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820
13821
13822 #include <linux/mm.h>
13823
13824 int
13825 main (void)
13826 {
13827
13828 unsigned long state;
13829 state = global_page_state(0);
13830
13831 ;
13832 return 0;
13833 }
13834
13835 _ACEOF
13836
13837
13838 rm -Rf build && mkdir -p build
13839 echo "obj-m := conftest.o" >build/Makefile
13840 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851
13852 { $as_echo "$as_me:$LINENO: result: yes" >&5
13853 $as_echo "yes" >&6; }
13854
13855 cat >>confdefs.h <<\_ACEOF
13856 #define HAVE_GLOBAL_PAGE_STATE 1
13857 _ACEOF
13858
13859
13860 else
13861 $as_echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13863
13864 { $as_echo "$as_me:$LINENO: result: no" >&5
13865 $as_echo "no" >&6; }
13866
13867
13868
13869 fi
13870
13871 rm -Rf build
13872
13873
13874
13875
13876 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
13877 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
13878
13879
13880 cat >conftest.c <<_ACEOF
13881 /* confdefs.h. */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886
13887
13888 #include <linux/mm.h>
13889
13890 int
13891 main (void)
13892 {
13893
13894 enum zone_stat_item zsi;
13895 zsi = NR_FREE_PAGES;
13896
13897 ;
13898 return 0;
13899 }
13900
13901 _ACEOF
13902
13903
13904 rm -Rf build && mkdir -p build
13905 echo "obj-m := conftest.o" >build/Makefile
13906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917
13918 { $as_echo "$as_me:$LINENO: result: yes" >&5
13919 $as_echo "yes" >&6; }
13920
13921 cat >>confdefs.h <<\_ACEOF
13922 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
13923 _ACEOF
13924
13925
13926 else
13927 $as_echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13929
13930 { $as_echo "$as_me:$LINENO: result: no" >&5
13931 $as_echo "no" >&6; }
13932
13933
13934
13935 fi
13936
13937 rm -Rf build
13938
13939
13940
13941
13942 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
13943 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
13944
13945
13946 cat >conftest.c <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952
13953
13954 #include <linux/mm.h>
13955
13956 int
13957 main (void)
13958 {
13959
13960 enum zone_stat_item zsi;
13961 zsi = NR_INACTIVE;
13962
13963 ;
13964 return 0;
13965 }
13966
13967 _ACEOF
13968
13969
13970 rm -Rf build && mkdir -p build
13971 echo "obj-m := conftest.o" >build/Makefile
13972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983
13984 { $as_echo "$as_me:$LINENO: result: yes" >&5
13985 $as_echo "yes" >&6; }
13986
13987 cat >>confdefs.h <<\_ACEOF
13988 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
13989 _ACEOF
13990
13991
13992 else
13993 $as_echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 { $as_echo "$as_me:$LINENO: result: no" >&5
13997 $as_echo "no" >&6; }
13998
13999
14000
14001 fi
14002
14003 rm -Rf build
14004
14005
14006
14007 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14008 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14009
14010
14011 cat >conftest.c <<_ACEOF
14012 /* confdefs.h. */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017
14018
14019 #include <linux/mm.h>
14020
14021 int
14022 main (void)
14023 {
14024
14025 enum zone_stat_item zsi;
14026 zsi = NR_INACTIVE_ANON;
14027
14028 ;
14029 return 0;
14030 }
14031
14032 _ACEOF
14033
14034
14035 rm -Rf build && mkdir -p build
14036 echo "obj-m := conftest.o" >build/Makefile
14037 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14045 ac_status=$?
14046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048
14049 { $as_echo "$as_me:$LINENO: result: yes" >&5
14050 $as_echo "yes" >&6; }
14051
14052 cat >>confdefs.h <<\_ACEOF
14053 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14054 _ACEOF
14055
14056
14057 else
14058 $as_echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 { $as_echo "$as_me:$LINENO: result: no" >&5
14062 $as_echo "no" >&6; }
14063
14064
14065
14066 fi
14067
14068 rm -Rf build
14069
14070
14071
14072 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14073 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14074
14075
14076 cat >conftest.c <<_ACEOF
14077 /* confdefs.h. */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082
14083
14084 #include <linux/mm.h>
14085
14086 int
14087 main (void)
14088 {
14089
14090 enum zone_stat_item zsi;
14091 zsi = NR_INACTIVE_FILE;
14092
14093 ;
14094 return 0;
14095 }
14096
14097 _ACEOF
14098
14099
14100 rm -Rf build && mkdir -p build
14101 echo "obj-m := conftest.o" >build/Makefile
14102 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113
14114 { $as_echo "$as_me:$LINENO: result: yes" >&5
14115 $as_echo "yes" >&6; }
14116
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14119 _ACEOF
14120
14121
14122 else
14123 $as_echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126 { $as_echo "$as_me:$LINENO: result: no" >&5
14127 $as_echo "no" >&6; }
14128
14129
14130
14131 fi
14132
14133 rm -Rf build
14134
14135
14136
14137
14138 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14139 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14140
14141
14142 cat >conftest.c <<_ACEOF
14143 /* confdefs.h. */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148
14149
14150 #include <linux/mm.h>
14151
14152 int
14153 main (void)
14154 {
14155
14156 enum zone_stat_item zsi;
14157 zsi = NR_ACTIVE;
14158
14159 ;
14160 return 0;
14161 }
14162
14163 _ACEOF
14164
14165
14166 rm -Rf build && mkdir -p build
14167 echo "obj-m := conftest.o" >build/Makefile
14168 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179
14180 { $as_echo "$as_me:$LINENO: result: yes" >&5
14181 $as_echo "yes" >&6; }
14182
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14185 _ACEOF
14186
14187
14188 else
14189 $as_echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 { $as_echo "$as_me:$LINENO: result: no" >&5
14193 $as_echo "no" >&6; }
14194
14195
14196
14197 fi
14198
14199 rm -Rf build
14200
14201
14202
14203 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14204 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14205
14206
14207 cat >conftest.c <<_ACEOF
14208 /* confdefs.h. */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14213
14214
14215 #include <linux/mm.h>
14216
14217 int
14218 main (void)
14219 {
14220
14221 enum zone_stat_item zsi;
14222 zsi = NR_ACTIVE_ANON;
14223
14224 ;
14225 return 0;
14226 }
14227
14228 _ACEOF
14229
14230
14231 rm -Rf build && mkdir -p build
14232 echo "obj-m := conftest.o" >build/Makefile
14233 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14236 ac_status=$?
14237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244
14245 { $as_echo "$as_me:$LINENO: result: yes" >&5
14246 $as_echo "yes" >&6; }
14247
14248 cat >>confdefs.h <<\_ACEOF
14249 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14250 _ACEOF
14251
14252
14253 else
14254 $as_echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257 { $as_echo "$as_me:$LINENO: result: no" >&5
14258 $as_echo "no" >&6; }
14259
14260
14261
14262 fi
14263
14264 rm -Rf build
14265
14266
14267
14268 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14269 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14270
14271
14272 cat >conftest.c <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278
14279
14280 #include <linux/mm.h>
14281
14282 int
14283 main (void)
14284 {
14285
14286 enum zone_stat_item zsi;
14287 zsi = NR_ACTIVE_FILE;
14288
14289 ;
14290 return 0;
14291 }
14292
14293 _ACEOF
14294
14295
14296 rm -Rf build && mkdir -p build
14297 echo "obj-m := conftest.o" >build/Makefile
14298 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309
14310 { $as_echo "$as_me:$LINENO: result: yes" >&5
14311 $as_echo "yes" >&6; }
14312
14313 cat >>confdefs.h <<\_ACEOF
14314 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14315 _ACEOF
14316
14317
14318 else
14319 $as_echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 { $as_echo "$as_me:$LINENO: result: no" >&5
14323 $as_echo "no" >&6; }
14324
14325
14326
14327 fi
14328
14329 rm -Rf build
14330
14331
14332
14333
14334 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14335 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14336
14337
14338 cat >conftest.c <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344
14345
14346
14347 int
14348 main (void)
14349 {
14350
14351 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14352 #error "global_page_state needs NR_FREE_PAGES"
14353 #endif
14354
14355 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14356 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14357 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14358 #error "global_page_state needs NR_ACTIVE*"
14359 #endif
14360
14361 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14362 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14363 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14364 #error "global_page_state needs NR_INACTIVE*"
14365 #endif
14366
14367 ;
14368 return 0;
14369 }
14370
14371 _ACEOF
14372
14373
14374 rm -Rf build && mkdir -p build
14375 echo "obj-m := conftest.o" >build/Makefile
14376 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387
14388 { $as_echo "$as_me:$LINENO: result: no" >&5
14389 $as_echo "no" >&6; }
14390
14391 else
14392 $as_echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 { $as_echo "$as_me:$LINENO: result: yes" >&5
14396 $as_echo "yes" >&6; }
14397
14398 cat >>confdefs.h <<\_ACEOF
14399 #define NEED_GET_ZONE_COUNTS 1
14400 _ACEOF
14401
14402
14403 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14404 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14405 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14406 $LINUX_OBJ/Module*.symvers 2>/dev/null
14407 rc=$?
14408 if test $rc -ne 0; then
14409 export=0
14410 for file in ; do
14411 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14412 "$LINUX_OBJ/$file" 2>/dev/null
14413 rc=$?
14414 if test $rc -eq 0; then
14415 export=1
14416 break;
14417 fi
14418 done
14419 if test $export -eq 0; then
14420 { $as_echo "$as_me:$LINENO: result: no" >&5
14421 $as_echo "no" >&6; }
14422
14423 else
14424 { $as_echo "$as_me:$LINENO: result: yes" >&5
14425 $as_echo "yes" >&6; }
14426
14427 cat >>confdefs.h <<\_ACEOF
14428 #define HAVE_GET_ZONE_COUNTS 1
14429 _ACEOF
14430
14431 fi
14432 else
14433 { $as_echo "$as_me:$LINENO: result: yes" >&5
14434 $as_echo "yes" >&6; }
14435
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_GET_ZONE_COUNTS 1
14438 _ACEOF
14439
14440 fi
14441
14442
14443
14444
14445 fi
14446
14447 rm -Rf build
14448
14449
14450
14451
14452 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14453 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14454 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14455 $LINUX_OBJ/Module*.symvers 2>/dev/null
14456 rc=$?
14457 if test $rc -ne 0; then
14458 export=0
14459 for file in ; do
14460 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14461 "$LINUX_OBJ/$file" 2>/dev/null
14462 rc=$?
14463 if test $rc -eq 0; then
14464 export=1
14465 break;
14466 fi
14467 done
14468 if test $export -eq 0; then
14469 { $as_echo "$as_me:$LINENO: result: no" >&5
14470 $as_echo "no" >&6; }
14471
14472 else
14473 { $as_echo "$as_me:$LINENO: result: yes" >&5
14474 $as_echo "yes" >&6; }
14475
14476 cat >>confdefs.h <<\_ACEOF
14477 #define HAVE_SET_FS_PWD 1
14478 _ACEOF
14479
14480 fi
14481 else
14482 { $as_echo "$as_me:$LINENO: result: yes" >&5
14483 $as_echo "yes" >&6; }
14484
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_SET_FS_PWD 1
14487 _ACEOF
14488
14489 fi
14490
14491
14492 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14493 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14494
14495
14496 cat >conftest.c <<_ACEOF
14497 /* confdefs.h. */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502
14503
14504 #include <linux/sched.h>
14505 #include <linux/fs_struct.h>
14506
14507 int
14508 main (void)
14509 {
14510
14511 set_fs_pwd(NULL, NULL);
14512
14513 ;
14514 return 0;
14515 }
14516
14517 _ACEOF
14518
14519
14520 rm -Rf build && mkdir -p build
14521 echo "obj-m := conftest.o" >build/Makefile
14522 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533
14534 { $as_echo "$as_me:$LINENO: result: yes" >&5
14535 $as_echo "yes" >&6; }
14536
14537 cat >>confdefs.h <<\_ACEOF
14538 #define HAVE_2ARGS_SET_FS_PWD 1
14539 _ACEOF
14540
14541
14542 else
14543 $as_echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 { $as_echo "$as_me:$LINENO: result: no" >&5
14547 $as_echo "no" >&6; }
14548
14549
14550
14551 fi
14552
14553 rm -Rf build
14554
14555
14556
14557 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
14558 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
14559
14560
14561 cat >conftest.c <<_ACEOF
14562 /* confdefs.h. */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567
14568
14569 #include <linux/fs.h>
14570
14571 int
14572 main (void)
14573 {
14574
14575 vfs_unlink(NULL, NULL);
14576
14577 ;
14578 return 0;
14579 }
14580
14581 _ACEOF
14582
14583
14584 rm -Rf build && mkdir -p build
14585 echo "obj-m := conftest.o" >build/Makefile
14586 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597
14598 { $as_echo "$as_me:$LINENO: result: yes" >&5
14599 $as_echo "yes" >&6; }
14600
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_2ARGS_VFS_UNLINK 1
14603 _ACEOF
14604
14605
14606 else
14607 $as_echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 { $as_echo "$as_me:$LINENO: result: no" >&5
14611 $as_echo "no" >&6; }
14612
14613
14614
14615 fi
14616
14617 rm -Rf build
14618
14619
14620
14621 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
14622 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
14623
14624
14625 cat >conftest.c <<_ACEOF
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631
14632
14633 #include <linux/fs.h>
14634
14635 int
14636 main (void)
14637 {
14638
14639 vfs_rename(NULL, NULL, NULL, NULL);
14640
14641 ;
14642 return 0;
14643 }
14644
14645 _ACEOF
14646
14647
14648 rm -Rf build && mkdir -p build
14649 echo "obj-m := conftest.o" >build/Makefile
14650 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661
14662 { $as_echo "$as_me:$LINENO: result: yes" >&5
14663 $as_echo "yes" >&6; }
14664
14665 cat >>confdefs.h <<\_ACEOF
14666 #define HAVE_4ARGS_VFS_RENAME 1
14667 _ACEOF
14668
14669
14670 else
14671 $as_echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 { $as_echo "$as_me:$LINENO: result: no" >&5
14675 $as_echo "no" >&6; }
14676
14677
14678
14679 fi
14680
14681 rm -Rf build
14682
14683
14684
14685
14686 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
14687 $as_echo_n "checking whether struct cred exists... " >&6; }
14688
14689
14690 cat >conftest.c <<_ACEOF
14691 /* confdefs.h. */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696
14697
14698 #include <linux/cred.h>
14699
14700 int
14701 main (void)
14702 {
14703
14704 struct cred *cr;
14705 cr = NULL;
14706
14707 ;
14708 return 0;
14709 }
14710
14711 _ACEOF
14712
14713
14714 rm -Rf build && mkdir -p build
14715 echo "obj-m := conftest.o" >build/Makefile
14716 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727
14728 { $as_echo "$as_me:$LINENO: result: yes" >&5
14729 $as_echo "yes" >&6; }
14730
14731 cat >>confdefs.h <<\_ACEOF
14732 #define HAVE_CRED_STRUCT 1
14733 _ACEOF
14734
14735
14736 else
14737 $as_echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740 { $as_echo "$as_me:$LINENO: result: no" >&5
14741 $as_echo "no" >&6; }
14742
14743
14744
14745 fi
14746
14747 rm -Rf build
14748
14749
14750
14751
14752 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
14753 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
14754 grep -q -E '[[:space:]]groups_search[[:space:]]' \
14755 $LINUX_OBJ/Module*.symvers 2>/dev/null
14756 rc=$?
14757 if test $rc -ne 0; then
14758 export=0
14759 for file in ; do
14760 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
14761 "$LINUX_OBJ/$file" 2>/dev/null
14762 rc=$?
14763 if test $rc -eq 0; then
14764 export=1
14765 break;
14766 fi
14767 done
14768 if test $export -eq 0; then
14769 { $as_echo "$as_me:$LINENO: result: no" >&5
14770 $as_echo "no" >&6; }
14771
14772 else
14773 { $as_echo "$as_me:$LINENO: result: yes" >&5
14774 $as_echo "yes" >&6; }
14775
14776 cat >>confdefs.h <<\_ACEOF
14777 #define HAVE_GROUPS_SEARCH 1
14778 _ACEOF
14779
14780 fi
14781 else
14782 { $as_echo "$as_me:$LINENO: result: yes" >&5
14783 $as_echo "yes" >&6; }
14784
14785 cat >>confdefs.h <<\_ACEOF
14786 #define HAVE_GROUPS_SEARCH 1
14787 _ACEOF
14788
14789 fi
14790
14791
14792
14793 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
14794 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
14795 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
14796 $LINUX_OBJ/Module*.symvers 2>/dev/null
14797 rc=$?
14798 if test $rc -ne 0; then
14799 export=0
14800 for file in ; do
14801 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
14802 "$LINUX_OBJ/$file" 2>/dev/null
14803 rc=$?
14804 if test $rc -eq 0; then
14805 export=1
14806 break;
14807 fi
14808 done
14809 if test $export -eq 0; then
14810 { $as_echo "$as_me:$LINENO: result: no" >&5
14811 $as_echo "no" >&6; }
14812
14813 else
14814 { $as_echo "$as_me:$LINENO: result: yes" >&5
14815 $as_echo "yes" >&6; }
14816
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_PUT_TASK_STRUCT 1
14819 _ACEOF
14820
14821 fi
14822 else
14823 { $as_echo "$as_me:$LINENO: result: yes" >&5
14824 $as_echo "yes" >&6; }
14825
14826 cat >>confdefs.h <<\_ACEOF
14827 #define HAVE_PUT_TASK_STRUCT 1
14828 _ACEOF
14829
14830 fi
14831
14832
14833
14834 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
14835 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
14836
14837
14838 cat >conftest.c <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844
14845
14846 #include <linux/sysctl.h>
14847
14848 int
14849 main (void)
14850 {
14851
14852 proc_dostring(NULL, 0, NULL, NULL, NULL);
14853
14854 ;
14855 return 0;
14856 }
14857
14858 _ACEOF
14859
14860
14861 rm -Rf build && mkdir -p build
14862 echo "obj-m := conftest.o" >build/Makefile
14863 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874
14875 { $as_echo "$as_me:$LINENO: result: yes" >&5
14876 $as_echo "yes" >&6; }
14877
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_5ARGS_PROC_HANDLER 1
14880 _ACEOF
14881
14882
14883 else
14884 $as_echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887 { $as_echo "$as_me:$LINENO: result: no" >&5
14888 $as_echo "no" >&6; }
14889
14890
14891
14892 fi
14893
14894 rm -Rf build
14895
14896
14897
14898
14899 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
14900 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
14901 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
14902 $LINUX_OBJ/Module*.symvers 2>/dev/null
14903 rc=$?
14904 if test $rc -ne 0; then
14905 export=0
14906 for file in ; do
14907 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
14908 "$LINUX_OBJ/$file" 2>/dev/null
14909 rc=$?
14910 if test $rc -eq 0; then
14911 export=1
14912 break;
14913 fi
14914 done
14915 if test $export -eq 0; then
14916 { $as_echo "$as_me:$LINENO: result: no" >&5
14917 $as_echo "no" >&6; }
14918
14919 else
14920 { $as_echo "$as_me:$LINENO: result: yes" >&5
14921 $as_echo "yes" >&6; }
14922
14923 cat >>confdefs.h <<\_ACEOF
14924 #define HAVE_KVASPRINTF 1
14925 _ACEOF
14926
14927 fi
14928 else
14929 { $as_echo "$as_me:$LINENO: result: yes" >&5
14930 $as_echo "yes" >&6; }
14931
14932 cat >>confdefs.h <<\_ACEOF
14933 #define HAVE_KVASPRINTF 1
14934 _ACEOF
14935
14936 fi
14937
14938
14939 ;;
14940 user) ;;
14941 all)
14942
14943
14944 # Check whether --with-linux was given.
14945 if test "${with_linux+set}" = set; then
14946 withval=$with_linux; kernelsrc="$withval"
14947 fi
14948
14949
14950
14951 # Check whether --with-linux-obj was given.
14952 if test "${with_linux_obj+set}" = set; then
14953 withval=$with_linux_obj; kernelbuild="$withval"
14954 fi
14955
14956
14957 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
14958 $as_echo_n "checking kernel source directory... " >&6; }
14959 if test -z "$kernelsrc"; then
14960 headersdir="/lib/modules/$(uname -r)/build"
14961 if test -e "$headersdir"; then
14962 sourcelink=$(readlink -f "$headersdir")
14963 else
14964 sourcelink=$(ls -1d /usr/src/kernels/* \
14965 /usr/src/linux-* \
14966 2>/dev/null | grep -v obj | tail -1)
14967 fi
14968
14969 if test -e ${sourcelink}; then
14970 kernelsrc=`readlink -f ${sourcelink}`
14971 else
14972 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14973 $as_echo "Not found" >&6; }
14974 { { $as_echo "$as_me:$LINENO: error:
14975 *** Please specify the location of the kernel source
14976 *** with the '--with-linux=PATH' option" >&5
14977 $as_echo "$as_me: error:
14978 *** Please specify the location of the kernel source
14979 *** with the '--with-linux=PATH' option" >&2;}
14980 { (exit 1); exit 1; }; }
14981 fi
14982 else
14983 if test "$kernelsrc" = "NONE"; then
14984 kernsrcver=NONE
14985 fi
14986 fi
14987
14988 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
14989 $as_echo "$kernelsrc" >&6; }
14990 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
14991 $as_echo_n "checking kernel build directory... " >&6; }
14992 if test -z "$kernelbuild"; then
14993 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
14994 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
14995 elif test -d ${kernelsrc}-obj/`arch`/default; then
14996 kernelbuild=${kernelsrc}-obj/`arch`/default
14997 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
14998 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
14999 else
15000 kernelbuild=${kernelsrc}
15001 fi
15002 fi
15003 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15004 $as_echo "$kernelbuild" >&6; }
15005
15006 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15007 $as_echo_n "checking kernel source version... " >&6; }
15008 utsrelease1=$kernelbuild/include/linux/version.h
15009 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15010 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15011 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15012 utsrelease=linux/version.h
15013 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15014 utsrelease=linux/utsrelease.h
15015 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15016 utsrelease=generated/utsrelease.h
15017 fi
15018
15019 if test "$utsrelease"; then
15020 kernsrcver=`(echo "#include <$utsrelease>";
15021 echo "kernsrcver=UTS_RELEASE") |
15022 cpp -I $kernelbuild/include |
15023 grep "^kernsrcver=" | cut -d \" -f 2`
15024
15025 if test -z "$kernsrcver"; then
15026 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15027 $as_echo "Not found" >&6; }
15028 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15029 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15030 { (exit 1); exit 1; }; }
15031 fi
15032 else
15033 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15034 $as_echo "Not found" >&6; }
15035 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15036 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15037 { (exit 1); exit 1; }; }
15038 fi
15039
15040 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15041 $as_echo "$kernsrcver" >&6; }
15042
15043 LINUX=${kernelsrc}
15044 LINUX_OBJ=${kernelbuild}
15045 LINUX_VERSION=${kernsrcver}
15046
15047
15048
15049
15050
15051
15052 modpost=$LINUX/scripts/Makefile.modpost
15053 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15054 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15055 if test -f "$modpost"; then
15056 if grep -q Modules.symvers $modpost; then
15057 LINUX_SYMBOLS=Modules.symvers
15058 else
15059 LINUX_SYMBOLS=Module.symvers
15060 fi
15061 else
15062 LINUX_SYMBOLS=NONE
15063 fi
15064 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15065 $as_echo "$LINUX_SYMBOLS" >&6; }
15066
15067
15068
15069
15070 abs_srcdir=`readlink -f ${srcdir}`
15071 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
15072 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
15073 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
15074
15075 if test "${LINUX_OBJ}" != "${LINUX}"; then
15076 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15077 fi
15078
15079
15080
15081
15082
15083 # Check whether --enable-debug was given.
15084 if test "${enable_debug+set}" = set; then
15085 enableval=$enable_debug;
15086 else
15087 enable_debug=no
15088 fi
15089
15090
15091 if test "x$enable_debug" = xyes; then
15092 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
15093 else
15094 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15095 fi
15096
15097
15098 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15099 $as_echo_n "checking whether debugging is enabled... " >&6; }
15100 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15101 $as_echo "$enable_debug" >&6; }
15102
15103
15104 # Check whether --enable-debug-kmem was given.
15105 if test "${enable_debug_kmem+set}" = set; then
15106 enableval=$enable_debug_kmem;
15107 else
15108 enable_debug_kmem=yes
15109 fi
15110
15111
15112 if test "x$enable_debug_kmem" = xyes; then
15113
15114 cat >>confdefs.h <<\_ACEOF
15115 #define DEBUG_KMEM 1
15116 _ACEOF
15117
15118 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15119 fi
15120
15121
15122 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15123 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15124 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15125 $as_echo "$enable_debug_kmem" >&6; }
15126
15127
15128 # Check whether --enable-debug-kmem-tracking was given.
15129 if test "${enable_debug_kmem_tracking+set}" = set; then
15130 enableval=$enable_debug_kmem_tracking;
15131 else
15132 enable_debug_kmem_tracking=no
15133 fi
15134
15135
15136 if test "x$enable_debug_kmem_tracking" = xyes; then
15137
15138 cat >>confdefs.h <<\_ACEOF
15139 #define DEBUG_KMEM_TRACKING 1
15140 _ACEOF
15141
15142 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15143 fi
15144
15145
15146 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15147 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15148 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15149 $as_echo "$enable_debug_kmem_tracking" >&6; }
15150
15151
15152 # Check whether --enable-atomic-spinlocks was given.
15153 if test "${enable_atomic_spinlocks+set}" = set; then
15154 enableval=$enable_atomic_spinlocks;
15155 else
15156 enable_atomic_spinlocks=check
15157 fi
15158
15159
15160
15161
15162 cat >conftest.c <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168
15169
15170 #include <asm/atomic.h>
15171
15172 int
15173 main (void)
15174 {
15175
15176 atomic64_t *ptr;
15177
15178 ;
15179 return 0;
15180 }
15181
15182 _ACEOF
15183
15184
15185 rm -Rf build && mkdir -p build
15186 echo "obj-m := conftest.o" >build/Makefile
15187 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198
15199 have_atomic64_t=yes
15200
15201 cat >>confdefs.h <<\_ACEOF
15202 #define HAVE_ATOMIC64_T 1
15203 _ACEOF
15204
15205
15206 else
15207 $as_echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210 have_atomic64_t=no
15211
15212
15213
15214 fi
15215
15216 rm -Rf build
15217
15218
15219
15220 if test "x$enable_atomic_spinlocks" = xcheck; then
15221
15222 if test "x$have_atomic64_t" = xyes; then
15223
15224 enable_atomic_spinlocks=no
15225
15226 else
15227
15228 enable_atomic_spinlocks=yes
15229
15230 fi
15231
15232
15233 fi
15234
15235
15236 if test "x$enable_atomic_spinlocks" = xyes; then
15237
15238
15239 cat >>confdefs.h <<\_ACEOF
15240 #define ATOMIC_SPINLOCK 1
15241 _ACEOF
15242
15243
15244 else
15245
15246 if test "x$have_atomic64_t" = xno; then
15247
15248 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15250 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15251 See \`config.log' for more details." >&5
15252 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15253 See \`config.log' for more details." >&2;}
15254 { (exit 1); exit 1; }; }; }
15255
15256 fi
15257
15258
15259 fi
15260
15261
15262 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15263 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15264 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15265 $as_echo "$enable_atomic_spinlocks" >&6; }
15266
15267 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15268 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15269 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15270 $as_echo "$have_atomic64_t" >&6; }
15271
15272 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
15273 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
15274
15275
15276 cat >conftest.c <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282
15283
15284 #include <asm/atomic.h>
15285
15286 int
15287 main (void)
15288 {
15289
15290 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
15291
15292 ;
15293 return 0;
15294 }
15295
15296 _ACEOF
15297
15298
15299 rm -Rf build && mkdir -p build
15300 echo "obj-m := conftest.o" >build/Makefile
15301 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312
15313 { $as_echo "$as_me:$LINENO: result: yes" >&5
15314 $as_echo "yes" >&6; }
15315
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_ATOMIC64_CMPXCHG 1
15318 _ACEOF
15319
15320
15321 else
15322 $as_echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325 { $as_echo "$as_me:$LINENO: result: no" >&5
15326 $as_echo "no" >&6; }
15327
15328
15329
15330 fi
15331
15332 rm -Rf build
15333
15334
15335
15336 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
15337 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
15338
15339
15340 cat >conftest.c <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346
15347
15348 #include <asm/atomic.h>
15349
15350 int
15351 main (void)
15352 {
15353
15354 atomic64_xchg((atomic64_t *)NULL, 0);
15355
15356 ;
15357 return 0;
15358 }
15359
15360 _ACEOF
15361
15362
15363 rm -Rf build && mkdir -p build
15364 echo "obj-m := conftest.o" >build/Makefile
15365 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376
15377 { $as_echo "$as_me:$LINENO: result: yes" >&5
15378 $as_echo "yes" >&6; }
15379
15380 cat >>confdefs.h <<\_ACEOF
15381 #define HAVE_ATOMIC64_XCHG 1
15382 _ACEOF
15383
15384
15385 else
15386 $as_echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 { $as_echo "$as_me:$LINENO: result: no" >&5
15390 $as_echo "no" >&6; }
15391
15392
15393
15394 fi
15395
15396 rm -Rf build
15397
15398
15399
15400 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
15401 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
15402
15403
15404 cat >conftest.c <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410
15411
15412 #include <linux/types.h>
15413
15414 int
15415 main (void)
15416 {
15417
15418 uintptr_t *ptr;
15419
15420 ;
15421 return 0;
15422 }
15423
15424 _ACEOF
15425
15426
15427 rm -Rf build && mkdir -p build
15428 echo "obj-m := conftest.o" >build/Makefile
15429 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440
15441 { $as_echo "$as_me:$LINENO: result: yes" >&5
15442 $as_echo "yes" >&6; }
15443
15444 cat >>confdefs.h <<\_ACEOF
15445 #define HAVE_UINTPTR_T 1
15446 _ACEOF
15447
15448
15449 else
15450 $as_echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 { $as_echo "$as_me:$LINENO: result: no" >&5
15454 $as_echo "no" >&6; }
15455
15456
15457
15458 fi
15459
15460 rm -Rf build
15461
15462
15463
15464 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
15465 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
15466
15467
15468 cat >conftest.c <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474
15475
15476 #include <linux/workqueue.h>
15477
15478 int
15479 main (void)
15480 {
15481
15482 struct work_struct work;
15483 INIT_WORK(&work, NULL, NULL);
15484
15485 ;
15486 return 0;
15487 }
15488
15489 _ACEOF
15490
15491
15492 rm -Rf build && mkdir -p build
15493 echo "obj-m := conftest.o" >build/Makefile
15494 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505
15506 { $as_echo "$as_me:$LINENO: result: yes" >&5
15507 $as_echo "yes" >&6; }
15508
15509 cat >>confdefs.h <<\_ACEOF
15510 #define HAVE_3ARGS_INIT_WORK 1
15511 _ACEOF
15512
15513
15514 else
15515 $as_echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 { $as_echo "$as_me:$LINENO: result: no" >&5
15519 $as_echo "no" >&6; }
15520
15521
15522
15523 fi
15524
15525 rm -Rf build
15526
15527
15528
15529 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
15530 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
15531
15532
15533 cat >conftest.c <<_ACEOF
15534 /* confdefs.h. */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539
15540
15541 #include <linux/sysctl.h>
15542
15543 int
15544 main (void)
15545 {
15546
15547 return register_sysctl_table(NULL,0);
15548
15549 ;
15550 return 0;
15551 }
15552
15553 _ACEOF
15554
15555
15556 rm -Rf build && mkdir -p build
15557 echo "obj-m := conftest.o" >build/Makefile
15558 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }; then
15569
15570 { $as_echo "$as_me:$LINENO: result: yes" >&5
15571 $as_echo "yes" >&6; }
15572
15573 cat >>confdefs.h <<\_ACEOF
15574 #define HAVE_2ARGS_REGISTER_SYSCTL 1
15575 _ACEOF
15576
15577
15578 else
15579 $as_echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 { $as_echo "$as_me:$LINENO: result: no" >&5
15583 $as_echo "no" >&6; }
15584
15585
15586
15587 fi
15588
15589 rm -Rf build
15590
15591
15592
15593
15594 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
15595 $as_echo_n "checking whether set_shrinker() available... " >&6; }
15596
15597
15598 cat >conftest.c <<_ACEOF
15599 /* confdefs.h. */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604
15605
15606 #include <linux/mm.h>
15607
15608 int
15609 main (void)
15610 {
15611
15612 return set_shrinker(DEFAULT_SEEKS, NULL);
15613
15614 ;
15615 return 0;
15616 }
15617
15618 _ACEOF
15619
15620
15621 rm -Rf build && mkdir -p build
15622 echo "obj-m := conftest.o" >build/Makefile
15623 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634
15635 { $as_echo "$as_me:$LINENO: result: yes" >&5
15636 $as_echo "yes" >&6; }
15637
15638 cat >>confdefs.h <<\_ACEOF
15639 #define HAVE_SET_SHRINKER 1
15640 _ACEOF
15641
15642
15643 else
15644 $as_echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647 { $as_echo "$as_me:$LINENO: result: no" >&5
15648 $as_echo "no" >&6; }
15649
15650
15651
15652 fi
15653
15654 rm -Rf build
15655
15656
15657
15658 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
15659 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
15660
15661
15662 cat >conftest.c <<_ACEOF
15663 /* confdefs.h. */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668
15669
15670 #include <linux/namei.h>
15671
15672 int
15673 main (void)
15674 {
15675
15676 struct nameidata nd;
15677
15678 nd.path.mnt = NULL;
15679 nd.path.dentry = NULL;
15680
15681 ;
15682 return 0;
15683 }
15684
15685 _ACEOF
15686
15687
15688 rm -Rf build && mkdir -p build
15689 echo "obj-m := conftest.o" >build/Makefile
15690 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701
15702 { $as_echo "$as_me:$LINENO: result: yes" >&5
15703 $as_echo "yes" >&6; }
15704
15705 cat >>confdefs.h <<\_ACEOF
15706 #define HAVE_PATH_IN_NAMEIDATA 1
15707 _ACEOF
15708
15709
15710 else
15711 $as_echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 { $as_echo "$as_me:$LINENO: result: no" >&5
15715 $as_echo "no" >&6; }
15716
15717
15718
15719 fi
15720
15721 rm -Rf build
15722
15723
15724
15725
15726 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
15727 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
15728 grep -q -E '[[:space:]]task_curr[[:space:]]' \
15729 $LINUX_OBJ/Module*.symvers 2>/dev/null
15730 rc=$?
15731 if test $rc -ne 0; then
15732 export=0
15733 for file in kernel/sched.c; do
15734 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
15735 "$LINUX_OBJ/$file" 2>/dev/null
15736 rc=$?
15737 if test $rc -eq 0; then
15738 export=1
15739 break;
15740 fi
15741 done
15742 if test $export -eq 0; then
15743 { $as_echo "$as_me:$LINENO: result: no" >&5
15744 $as_echo "no" >&6; }
15745
15746 else
15747 { $as_echo "$as_me:$LINENO: result: yes" >&5
15748 $as_echo "yes" >&6; }
15749
15750 cat >>confdefs.h <<\_ACEOF
15751 #define HAVE_TASK_CURR 1
15752 _ACEOF
15753
15754 fi
15755 else
15756 { $as_echo "$as_me:$LINENO: result: yes" >&5
15757 $as_echo "yes" >&6; }
15758
15759 cat >>confdefs.h <<\_ACEOF
15760 #define HAVE_TASK_CURR 1
15761 _ACEOF
15762
15763 fi
15764
15765
15766 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
15767 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
15768
15769
15770 cat >conftest.c <<_ACEOF
15771 /* confdefs.h. */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15776
15777
15778 #include <linux/sysctl.h>
15779
15780 int
15781 main (void)
15782 {
15783
15784 #ifndef CTL_UNNUMBERED
15785 #error CTL_UNNUMBERED undefined
15786 #endif
15787
15788 ;
15789 return 0;
15790 }
15791
15792 _ACEOF
15793
15794
15795 rm -Rf build && mkdir -p build
15796 echo "obj-m := conftest.o" >build/Makefile
15797 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808
15809 { $as_echo "$as_me:$LINENO: result: yes" >&5
15810 $as_echo "yes" >&6; }
15811
15812 cat >>confdefs.h <<\_ACEOF
15813 #define HAVE_CTL_UNNUMBERED 1
15814 _ACEOF
15815
15816
15817 else
15818 $as_echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 { $as_echo "$as_me:$LINENO: result: no" >&5
15822 $as_echo "no" >&6; }
15823
15824
15825
15826 fi
15827
15828 rm -Rf build
15829
15830
15831
15832
15833 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
15834 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15835
15836
15837 cat >conftest.c <<_ACEOF
15838 /* confdefs.h. */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843
15844
15845 #include <linux/sysctl.h>
15846
15847 int
15848 main (void)
15849 {
15850
15851 struct ctl_table ctl;
15852 ctl.ctl_name = 0;
15853
15854 ;
15855 return 0;
15856 }
15857
15858 _ACEOF
15859
15860
15861 rm -Rf build && mkdir -p build
15862 echo "obj-m := conftest.o" >build/Makefile
15863 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874
15875 { $as_echo "$as_me:$LINENO: result: yes" >&5
15876 $as_echo "yes" >&6; }
15877
15878 cat >>confdefs.h <<\_ACEOF
15879 #define HAVE_CTL_NAME 1
15880 _ACEOF
15881
15882
15883 else
15884 $as_echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15886
15887 { $as_echo "$as_me:$LINENO: result: no" >&5
15888 $as_echo "no" >&6; }
15889
15890
15891
15892 fi
15893
15894 rm -Rf build
15895
15896
15897
15898 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
15899 $as_echo_n "checking whether fls64() is available... " >&6; }
15900
15901
15902 cat >conftest.c <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908
15909
15910 #include <linux/bitops.h>
15911
15912 int
15913 main (void)
15914 {
15915
15916 return fls64(0);
15917
15918 ;
15919 return 0;
15920 }
15921
15922 _ACEOF
15923
15924
15925 rm -Rf build && mkdir -p build
15926 echo "obj-m := conftest.o" >build/Makefile
15927 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938
15939 { $as_echo "$as_me:$LINENO: result: yes" >&5
15940 $as_echo "yes" >&6; }
15941
15942 cat >>confdefs.h <<\_ACEOF
15943 #define HAVE_FLS64 1
15944 _ACEOF
15945
15946
15947 else
15948 $as_echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 { $as_echo "$as_me:$LINENO: result: no" >&5
15952 $as_echo "no" >&6; }
15953
15954
15955
15956 fi
15957
15958 rm -Rf build
15959
15960
15961
15962
15963 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
15964 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
15965 grep -q -E '[[:space:]]device_create[[:space:]]' \
15966 $LINUX_OBJ/Module*.symvers 2>/dev/null
15967 rc=$?
15968 if test $rc -ne 0; then
15969 export=0
15970 for file in drivers/base/core.c; do
15971 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
15972 "$LINUX_OBJ/$file" 2>/dev/null
15973 rc=$?
15974 if test $rc -eq 0; then
15975 export=1
15976 break;
15977 fi
15978 done
15979 if test $export -eq 0; then
15980 { $as_echo "$as_me:$LINENO: result: no" >&5
15981 $as_echo "no" >&6; }
15982
15983 else
15984 { $as_echo "$as_me:$LINENO: result: yes" >&5
15985 $as_echo "yes" >&6; }
15986
15987 cat >>confdefs.h <<\_ACEOF
15988 #define HAVE_DEVICE_CREATE 1
15989 _ACEOF
15990
15991 fi
15992 else
15993 { $as_echo "$as_me:$LINENO: result: yes" >&5
15994 $as_echo "yes" >&6; }
15995
15996 cat >>confdefs.h <<\_ACEOF
15997 #define HAVE_DEVICE_CREATE 1
15998 _ACEOF
15999
16000 fi
16001
16002
16003
16004 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
16005 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
16006 tmp_flags="$EXTRA_KCFLAGS"
16007 EXTRA_KCFLAGS="-Werror"
16008
16009
16010 cat >conftest.c <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016
16017
16018 #include <linux/device.h>
16019
16020 int
16021 main (void)
16022 {
16023
16024 device_create(NULL, NULL, 0, NULL, "%d", 1);
16025
16026 ;
16027 return 0;
16028 }
16029
16030 _ACEOF
16031
16032
16033 rm -Rf build && mkdir -p build
16034 echo "obj-m := conftest.o" >build/Makefile
16035 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046
16047 { $as_echo "$as_me:$LINENO: result: yes" >&5
16048 $as_echo "yes" >&6; }
16049
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_5ARGS_DEVICE_CREATE 1
16052 _ACEOF
16053
16054
16055 else
16056 $as_echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16058
16059 { $as_echo "$as_me:$LINENO: result: no" >&5
16060 $as_echo "no" >&6; }
16061
16062
16063
16064 fi
16065
16066 rm -Rf build
16067
16068
16069 EXTRA_KCFLAGS="$tmp_flags"
16070
16071
16072 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
16073 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
16074 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
16075 $LINUX_OBJ/Module*.symvers 2>/dev/null
16076 rc=$?
16077 if test $rc -ne 0; then
16078 export=0
16079 for file in drivers/base/class.c; do
16080 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
16081 "$LINUX_OBJ/$file" 2>/dev/null
16082 rc=$?
16083 if test $rc -eq 0; then
16084 export=1
16085 break;
16086 fi
16087 done
16088 if test $export -eq 0; then
16089 { $as_echo "$as_me:$LINENO: result: no" >&5
16090 $as_echo "no" >&6; }
16091
16092 else
16093 { $as_echo "$as_me:$LINENO: result: yes" >&5
16094 $as_echo "yes" >&6; }
16095
16096 cat >>confdefs.h <<\_ACEOF
16097 #define HAVE_CLASS_DEVICE_CREATE 1
16098 _ACEOF
16099
16100 fi
16101 else
16102 { $as_echo "$as_me:$LINENO: result: yes" >&5
16103 $as_echo "yes" >&6; }
16104
16105 cat >>confdefs.h <<\_ACEOF
16106 #define HAVE_CLASS_DEVICE_CREATE 1
16107 _ACEOF
16108
16109 fi
16110
16111
16112
16113 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
16114 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
16115 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
16116 $LINUX_OBJ/Module*.symvers 2>/dev/null
16117 rc=$?
16118 if test $rc -ne 0; then
16119 export=0
16120 for file in kernel/time.c; do
16121 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
16122 "$LINUX_OBJ/$file" 2>/dev/null
16123 rc=$?
16124 if test $rc -eq 0; then
16125 export=1
16126 break;
16127 fi
16128 done
16129 if test $export -eq 0; then
16130 { $as_echo "$as_me:$LINENO: result: no" >&5
16131 $as_echo "no" >&6; }
16132
16133 else
16134 { $as_echo "$as_me:$LINENO: result: yes" >&5
16135 $as_echo "yes" >&6; }
16136
16137 cat >>confdefs.h <<\_ACEOF
16138 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16139 _ACEOF
16140
16141 fi
16142 else
16143 { $as_echo "$as_me:$LINENO: result: yes" >&5
16144 $as_echo "yes" >&6; }
16145
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16148 _ACEOF
16149
16150 fi
16151
16152
16153
16154 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
16155 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
16156
16157
16158 cat >conftest.c <<_ACEOF
16159 /* confdefs.h. */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164
16165
16166 #include <linux/time.h>
16167 void set_normalized_timespec(struct timespec *ts,
16168 time_t sec, long nsec) { }
16169
16170 int
16171 main (void)
16172 {
16173
16174 ;
16175 return 0;
16176 }
16177
16178 _ACEOF
16179
16180
16181 rm -Rf build && mkdir -p build
16182 echo "obj-m := conftest.o" >build/Makefile
16183 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194
16195 { $as_echo "$as_me:$LINENO: result: no" >&5
16196 $as_echo "no" >&6; }
16197
16198 else
16199 $as_echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16201
16202 { $as_echo "$as_me:$LINENO: result: yes" >&5
16203 $as_echo "yes" >&6; }
16204
16205 cat >>confdefs.h <<\_ACEOF
16206 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
16207 _ACEOF
16208
16209
16210
16211
16212 fi
16213
16214 rm -Rf build
16215
16216
16217
16218
16219 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
16220 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
16221
16222
16223 cat >conftest.c <<_ACEOF
16224 /* confdefs.h. */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229
16230
16231 #include <linux/time.h>
16232
16233 int
16234 main (void)
16235 {
16236
16237 struct timespec a, b, c = { 0 };
16238 c = timespec_sub(a, b);
16239
16240 ;
16241 return 0;
16242 }
16243
16244 _ACEOF
16245
16246
16247 rm -Rf build && mkdir -p build
16248 echo "obj-m := conftest.o" >build/Makefile
16249 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260
16261 { $as_echo "$as_me:$LINENO: result: yes" >&5
16262 $as_echo "yes" >&6; }
16263
16264 cat >>confdefs.h <<\_ACEOF
16265 #define HAVE_TIMESPEC_SUB 1
16266 _ACEOF
16267
16268
16269 else
16270 $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273 { $as_echo "$as_me:$LINENO: result: no" >&5
16274 $as_echo "no" >&6; }
16275
16276
16277
16278 fi
16279
16280 rm -Rf build
16281
16282
16283
16284
16285 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
16286 $as_echo_n "checking whether init_utsname() is available... " >&6; }
16287
16288
16289 cat >conftest.c <<_ACEOF
16290 /* confdefs.h. */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295
16296
16297 #include <linux/utsname.h>
16298
16299 int
16300 main (void)
16301 {
16302
16303 struct new_utsname *a = init_utsname();
16304
16305 ;
16306 return 0;
16307 }
16308
16309 _ACEOF
16310
16311
16312 rm -Rf build && mkdir -p build
16313 echo "obj-m := conftest.o" >build/Makefile
16314 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16322 ac_status=$?
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325
16326 { $as_echo "$as_me:$LINENO: result: yes" >&5
16327 $as_echo "yes" >&6; }
16328
16329 cat >>confdefs.h <<\_ACEOF
16330 #define HAVE_INIT_UTSNAME 1
16331 _ACEOF
16332
16333
16334 else
16335 $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338 { $as_echo "$as_me:$LINENO: result: no" >&5
16339 $as_echo "no" >&6; }
16340
16341
16342
16343 fi
16344
16345 rm -Rf build
16346
16347
16348
16349
16350 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
16351 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
16352
16353
16354 cat >conftest.c <<_ACEOF
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360
16361
16362 #include <linux/fdtable.h>
16363
16364 int
16365 main (void)
16366 {
16367
16368 return 0;
16369
16370 ;
16371 return 0;
16372 }
16373
16374 _ACEOF
16375
16376
16377 rm -Rf build && mkdir -p build
16378 echo "obj-m := conftest.o" >build/Makefile
16379 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390
16391
16392 cat >>confdefs.h <<\_ACEOF
16393 #define HAVE_FDTABLE_HEADER 1
16394 _ACEOF
16395
16396 { $as_echo "$as_me:$LINENO: result: yes" >&5
16397 $as_echo "yes" >&6; }
16398
16399
16400 else
16401 $as_echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404 { $as_echo "$as_me:$LINENO: result: no" >&5
16405 $as_echo "no" >&6; }
16406
16407
16408
16409
16410 fi
16411
16412 rm -Rf build
16413
16414
16415
16416
16417
16418 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
16419 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
16420
16421
16422 cat >conftest.c <<_ACEOF
16423 /* confdefs.h. */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428
16429
16430 #include <linux/sched.h>
16431 #include <linux/file.h>
16432 #ifdef HAVE_FDTABLE_HEADER
16433 #include <linux/fdtable.h>
16434 #endif
16435
16436 int
16437 main (void)
16438 {
16439
16440 struct files_struct *files = current->files;
16441 struct fdtable *fdt = files_fdtable(files);
16442
16443 ;
16444 return 0;
16445 }
16446
16447 _ACEOF
16448
16449
16450 rm -Rf build && mkdir -p build
16451 echo "obj-m := conftest.o" >build/Makefile
16452 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463
16464 { $as_echo "$as_me:$LINENO: result: yes" >&5
16465 $as_echo "yes" >&6; }
16466
16467 cat >>confdefs.h <<\_ACEOF
16468 #define HAVE_FILES_FDTABLE 1
16469 _ACEOF
16470
16471
16472 else
16473 $as_echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 { $as_echo "$as_me:$LINENO: result: no" >&5
16477 $as_echo "no" >&6; }
16478
16479
16480
16481 fi
16482
16483 rm -Rf build
16484
16485
16486
16487
16488 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
16489 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
16490
16491
16492 cat >conftest.c <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498
16499
16500 #include <linux/uaccess.h>
16501
16502 int
16503 main (void)
16504 {
16505
16506 return 0;
16507
16508 ;
16509 return 0;
16510 }
16511
16512 _ACEOF
16513
16514
16515 rm -Rf build && mkdir -p build
16516 echo "obj-m := conftest.o" >build/Makefile
16517 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528
16529
16530 cat >>confdefs.h <<\_ACEOF
16531 #define HAVE_UACCESS_HEADER 1
16532 _ACEOF
16533
16534 { $as_echo "$as_me:$LINENO: result: yes" >&5
16535 $as_echo "yes" >&6; }
16536
16537
16538 else
16539 $as_echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542 { $as_echo "$as_me:$LINENO: result: no" >&5
16543 $as_echo "no" >&6; }
16544
16545
16546
16547
16548 fi
16549
16550 rm -Rf build
16551
16552
16553
16554
16555
16556 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
16557 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
16558
16559
16560 cat >conftest.c <<_ACEOF
16561 /* confdefs.h. */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566
16567
16568 #include <linux/slab.h>
16569
16570 int
16571 main (void)
16572 {
16573
16574 void *a = kmalloc_node(1, GFP_KERNEL, 0);
16575
16576 ;
16577 return 0;
16578 }
16579
16580 _ACEOF
16581
16582
16583 rm -Rf build && mkdir -p build
16584 echo "obj-m := conftest.o" >build/Makefile
16585 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
16594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }; then
16596
16597 { $as_echo "$as_me:$LINENO: result: yes" >&5
16598 $as_echo "yes" >&6; }
16599
16600 cat >>confdefs.h <<\_ACEOF
16601 #define HAVE_KMALLOC_NODE 1
16602 _ACEOF
16603
16604
16605 else
16606 $as_echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 { $as_echo "$as_me:$LINENO: result: no" >&5
16610 $as_echo "no" >&6; }
16611
16612
16613
16614 fi
16615
16616 rm -Rf build
16617
16618
16619
16620
16621 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
16622 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
16623 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
16624 $LINUX_OBJ/Module*.symvers 2>/dev/null
16625 rc=$?
16626 if test $rc -ne 0; then
16627 export=0
16628 for file in ; do
16629 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
16630 "$LINUX_OBJ/$file" 2>/dev/null
16631 rc=$?
16632 if test $rc -eq 0; then
16633 export=1
16634 break;
16635 fi
16636 done
16637 if test $export -eq 0; then
16638 { $as_echo "$as_me:$LINENO: result: no" >&5
16639 $as_echo "no" >&6; }
16640
16641 else
16642 { $as_echo "$as_me:$LINENO: result: yes" >&5
16643 $as_echo "yes" >&6; }
16644
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_MONOTONIC_CLOCK 1
16647 _ACEOF
16648
16649 fi
16650 else
16651 { $as_echo "$as_me:$LINENO: result: yes" >&5
16652 $as_echo "yes" >&6; }
16653
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_MONOTONIC_CLOCK 1
16656 _ACEOF
16657
16658 fi
16659
16660
16661
16662 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
16663 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
16664
16665
16666 cat >conftest.c <<_ACEOF
16667 /* confdefs.h. */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672
16673
16674 #include <linux/fs.h>
16675 #include <linux/mutex.h>
16676
16677 int
16678 main (void)
16679 {
16680
16681 struct inode i;
16682 mutex_init(&i.i_mutex);
16683
16684 ;
16685 return 0;
16686 }
16687
16688 _ACEOF
16689
16690
16691 rm -Rf build && mkdir -p build
16692 echo "obj-m := conftest.o" >build/Makefile
16693 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704
16705 { $as_echo "$as_me:$LINENO: result: yes" >&5
16706 $as_echo "yes" >&6; }
16707
16708 cat >>confdefs.h <<\_ACEOF
16709 #define HAVE_INODE_I_MUTEX 1
16710 _ACEOF
16711
16712
16713 else
16714 $as_echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717 { $as_echo "$as_me:$LINENO: result: no" >&5
16718 $as_echo "no" >&6; }
16719
16720
16721
16722 fi
16723
16724 rm -Rf build
16725
16726
16727
16728
16729 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
16730 $as_echo_n "checking whether struct mutex has owner... " >&6; }
16731
16732
16733 cat >conftest.c <<_ACEOF
16734 /* confdefs.h. */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739
16740
16741 #include <linux/mutex.h>
16742
16743 int
16744 main (void)
16745 {
16746
16747 struct mutex mtx;
16748 mtx.owner = NULL;
16749
16750 ;
16751 return 0;
16752 }
16753
16754 _ACEOF
16755
16756
16757 rm -Rf build && mkdir -p build
16758 echo "obj-m := conftest.o" >build/Makefile
16759 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770
16771 { $as_echo "$as_me:$LINENO: result: yes" >&5
16772 $as_echo "yes" >&6; }
16773
16774 cat >>confdefs.h <<\_ACEOF
16775 #define HAVE_MUTEX_OWNER 1
16776 _ACEOF
16777
16778
16779 else
16780 $as_echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783 { $as_echo "$as_me:$LINENO: result: no" >&5
16784 $as_echo "no" >&6; }
16785
16786
16787
16788 fi
16789
16790 rm -Rf build
16791
16792
16793
16794
16795 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
16796 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
16797
16798
16799 cat >conftest.c <<_ACEOF
16800 /* confdefs.h. */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805
16806
16807 #include <linux/mutex.h>
16808
16809 int
16810 main (void)
16811 {
16812
16813 struct mutex mutex;
16814 mutex_init(&mutex);
16815 mutex_lock_nested(&mutex, 0);
16816
16817 ;
16818 return 0;
16819 }
16820
16821 _ACEOF
16822
16823
16824 rm -Rf build && mkdir -p build
16825 echo "obj-m := conftest.o" >build/Makefile
16826 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837
16838 { $as_echo "$as_me:$LINENO: result: yes" >&5
16839 $as_echo "yes" >&6; }
16840
16841 cat >>confdefs.h <<\_ACEOF
16842 #define HAVE_MUTEX_LOCK_NESTED 1
16843 _ACEOF
16844
16845
16846 else
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 { $as_echo "$as_me:$LINENO: result: no" >&5
16851 $as_echo "no" >&6; }
16852
16853
16854
16855 fi
16856
16857 rm -Rf build
16858
16859
16860
16861
16862 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
16863 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
16864 grep -q -E '[[:space:]]div64_64[[:space:]]' \
16865 $LINUX_OBJ/Module*.symvers 2>/dev/null
16866 rc=$?
16867 if test $rc -ne 0; then
16868 export=0
16869 for file in ; do
16870 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
16871 "$LINUX_OBJ/$file" 2>/dev/null
16872 rc=$?
16873 if test $rc -eq 0; then
16874 export=1
16875 break;
16876 fi
16877 done
16878 if test $export -eq 0; then
16879 { $as_echo "$as_me:$LINENO: result: no" >&5
16880 $as_echo "no" >&6; }
16881
16882 else
16883 { $as_echo "$as_me:$LINENO: result: yes" >&5
16884 $as_echo "yes" >&6; }
16885
16886 cat >>confdefs.h <<\_ACEOF
16887 #define HAVE_DIV64_64 1
16888 _ACEOF
16889
16890 fi
16891 else
16892 { $as_echo "$as_me:$LINENO: result: yes" >&5
16893 $as_echo "yes" >&6; }
16894
16895 cat >>confdefs.h <<\_ACEOF
16896 #define HAVE_DIV64_64 1
16897 _ACEOF
16898
16899 fi
16900
16901
16902
16903 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
16904 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
16905 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
16906 $LINUX_OBJ/Module*.symvers 2>/dev/null
16907 rc=$?
16908 if test $rc -ne 0; then
16909 export=0
16910 for file in ; do
16911 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
16912 "$LINUX_OBJ/$file" 2>/dev/null
16913 rc=$?
16914 if test $rc -eq 0; then
16915 export=1
16916 break;
16917 fi
16918 done
16919 if test $export -eq 0; then
16920 { $as_echo "$as_me:$LINENO: result: no" >&5
16921 $as_echo "no" >&6; }
16922
16923 else
16924 { $as_echo "$as_me:$LINENO: result: yes" >&5
16925 $as_echo "yes" >&6; }
16926
16927 cat >>confdefs.h <<\_ACEOF
16928 #define HAVE_DIV64_U64 1
16929 _ACEOF
16930
16931 fi
16932 else
16933 { $as_echo "$as_me:$LINENO: result: yes" >&5
16934 $as_echo "yes" >&6; }
16935
16936 cat >>confdefs.h <<\_ACEOF
16937 #define HAVE_DIV64_U64 1
16938 _ACEOF
16939
16940 fi
16941
16942
16943
16944 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
16945 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
16946
16947
16948 cat >conftest.c <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954
16955
16956 #include <linux/smp.h>
16957
16958 int
16959 main (void)
16960 {
16961
16962 on_each_cpu(NULL, NULL, 0);
16963
16964 ;
16965 return 0;
16966 }
16967
16968 _ACEOF
16969
16970
16971 rm -Rf build && mkdir -p build
16972 echo "obj-m := conftest.o" >build/Makefile
16973 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984
16985 { $as_echo "$as_me:$LINENO: result: yes" >&5
16986 $as_echo "yes" >&6; }
16987
16988 cat >>confdefs.h <<\_ACEOF
16989 #define HAVE_3ARGS_ON_EACH_CPU 1
16990 _ACEOF
16991
16992
16993 else
16994 $as_echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16996
16997 { $as_echo "$as_me:$LINENO: result: no" >&5
16998 $as_echo "no" >&6; }
16999
17000
17001
17002 fi
17003
17004 rm -Rf build
17005
17006
17007
17008
17009 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
17010 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
17011 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
17012 $LINUX_OBJ/Module*.symvers 2>/dev/null
17013 rc=$?
17014 if test $rc -ne 0; then
17015 export=0
17016 for file in ; do
17017 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
17018 "$LINUX_OBJ/$file" 2>/dev/null
17019 rc=$?
17020 if test $rc -eq 0; then
17021 export=1
17022 break;
17023 fi
17024 done
17025 if test $export -eq 0; then
17026 { $as_echo "$as_me:$LINENO: result: no" >&5
17027 $as_echo "no" >&6; }
17028
17029 else
17030 { $as_echo "$as_me:$LINENO: result: yes" >&5
17031 $as_echo "yes" >&6; }
17032
17033 cat >>confdefs.h <<\_ACEOF
17034 #define HAVE_KALLSYMS_LOOKUP_NAME 1
17035 _ACEOF
17036
17037 fi
17038 else
17039 { $as_echo "$as_me:$LINENO: result: yes" >&5
17040 $as_echo "yes" >&6; }
17041
17042 cat >>confdefs.h <<\_ACEOF
17043 #define HAVE_KALLSYMS_LOOKUP_NAME 1
17044 _ACEOF
17045
17046 fi
17047
17048
17049
17050 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
17051 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
17052 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
17053 $LINUX_OBJ/Module*.symvers 2>/dev/null
17054 rc=$?
17055 if test $rc -ne 0; then
17056 export=0
17057 for file in ; do
17058 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
17059 "$LINUX_OBJ/$file" 2>/dev/null
17060 rc=$?
17061 if test $rc -eq 0; then
17062 export=1
17063 break;
17064 fi
17065 done
17066 if test $export -eq 0; then
17067 { $as_echo "$as_me:$LINENO: result: no" >&5
17068 $as_echo "no" >&6; }
17069
17070 else
17071 { $as_echo "$as_me:$LINENO: result: yes" >&5
17072 $as_echo "yes" >&6; }
17073
17074 cat >>confdefs.h <<\_ACEOF
17075 #define HAVE_GET_VMALLOC_INFO 1
17076 _ACEOF
17077
17078 fi
17079 else
17080 { $as_echo "$as_me:$LINENO: result: yes" >&5
17081 $as_echo "yes" >&6; }
17082
17083 cat >>confdefs.h <<\_ACEOF
17084 #define HAVE_GET_VMALLOC_INFO 1
17085 _ACEOF
17086
17087 fi
17088
17089
17090
17091 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
17092 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
17093 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
17094 rc=$?
17095 if test $rc -eq 0; then
17096 { $as_echo "$as_me:$LINENO: result: yes" >&5
17097 $as_echo "yes" >&6; }
17098
17099 cat >>confdefs.h <<\_ACEOF
17100 #define HAVE_PGDAT_HELPERS 1
17101 _ACEOF
17102
17103 else
17104 { $as_echo "$as_me:$LINENO: result: no" >&5
17105 $as_echo "no" >&6; }
17106 fi
17107
17108
17109 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
17110 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
17111 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
17112 $LINUX_OBJ/Module*.symvers 2>/dev/null
17113 rc=$?
17114 if test $rc -ne 0; then
17115 export=0
17116 for file in ; do
17117 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
17118 "$LINUX_OBJ/$file" 2>/dev/null
17119 rc=$?
17120 if test $rc -eq 0; then
17121 export=1
17122 break;
17123 fi
17124 done
17125 if test $export -eq 0; then
17126 { $as_echo "$as_me:$LINENO: result: no" >&5
17127 $as_echo "no" >&6; }
17128
17129 else
17130 { $as_echo "$as_me:$LINENO: result: yes" >&5
17131 $as_echo "yes" >&6; }
17132
17133 cat >>confdefs.h <<\_ACEOF
17134 #define HAVE_FIRST_ONLINE_PGDAT 1
17135 _ACEOF
17136
17137 fi
17138 else
17139 { $as_echo "$as_me:$LINENO: result: yes" >&5
17140 $as_echo "yes" >&6; }
17141
17142 cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_FIRST_ONLINE_PGDAT 1
17144 _ACEOF
17145
17146 fi
17147
17148
17149
17150 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
17151 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
17152 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
17153 $LINUX_OBJ/Module*.symvers 2>/dev/null
17154 rc=$?
17155 if test $rc -ne 0; then
17156 export=0
17157 for file in ; do
17158 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
17159 "$LINUX_OBJ/$file" 2>/dev/null
17160 rc=$?
17161 if test $rc -eq 0; then
17162 export=1
17163 break;
17164 fi
17165 done
17166 if test $export -eq 0; then
17167 { $as_echo "$as_me:$LINENO: result: no" >&5
17168 $as_echo "no" >&6; }
17169
17170 else
17171 { $as_echo "$as_me:$LINENO: result: yes" >&5
17172 $as_echo "yes" >&6; }
17173
17174 cat >>confdefs.h <<\_ACEOF
17175 #define HAVE_NEXT_ONLINE_PGDAT 1
17176 _ACEOF
17177
17178 fi
17179 else
17180 { $as_echo "$as_me:$LINENO: result: yes" >&5
17181 $as_echo "yes" >&6; }
17182
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_NEXT_ONLINE_PGDAT 1
17185 _ACEOF
17186
17187 fi
17188
17189
17190
17191 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
17192 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
17193 grep -q -E '[[:space:]]next_zone[[:space:]]' \
17194 $LINUX_OBJ/Module*.symvers 2>/dev/null
17195 rc=$?
17196 if test $rc -ne 0; then
17197 export=0
17198 for file in ; do
17199 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
17200 "$LINUX_OBJ/$file" 2>/dev/null
17201 rc=$?
17202 if test $rc -eq 0; then
17203 export=1
17204 break;
17205 fi
17206 done
17207 if test $export -eq 0; then
17208 { $as_echo "$as_me:$LINENO: result: no" >&5
17209 $as_echo "no" >&6; }
17210
17211 else
17212 { $as_echo "$as_me:$LINENO: result: yes" >&5
17213 $as_echo "yes" >&6; }
17214
17215 cat >>confdefs.h <<\_ACEOF
17216 #define HAVE_NEXT_ZONE 1
17217 _ACEOF
17218
17219 fi
17220 else
17221 { $as_echo "$as_me:$LINENO: result: yes" >&5
17222 $as_echo "yes" >&6; }
17223
17224 cat >>confdefs.h <<\_ACEOF
17225 #define HAVE_NEXT_ZONE 1
17226 _ACEOF
17227
17228 fi
17229
17230
17231
17232 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
17233 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
17234 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
17235 $LINUX_OBJ/Module*.symvers 2>/dev/null
17236 rc=$?
17237 if test $rc -ne 0; then
17238 export=0
17239 for file in ; do
17240 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
17241 "$LINUX_OBJ/$file" 2>/dev/null
17242 rc=$?
17243 if test $rc -eq 0; then
17244 export=1
17245 break;
17246 fi
17247 done
17248 if test $export -eq 0; then
17249 { $as_echo "$as_me:$LINENO: result: no" >&5
17250 $as_echo "no" >&6; }
17251
17252 else
17253 { $as_echo "$as_me:$LINENO: result: yes" >&5
17254 $as_echo "yes" >&6; }
17255
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_PGDAT_LIST 1
17258 _ACEOF
17259
17260 fi
17261 else
17262 { $as_echo "$as_me:$LINENO: result: yes" >&5
17263 $as_echo "yes" >&6; }
17264
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_PGDAT_LIST 1
17267 _ACEOF
17268
17269 fi
17270
17271
17272
17273 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
17274 $as_echo_n "checking whether global_page_state() is available... " >&6; }
17275
17276
17277 cat >conftest.c <<_ACEOF
17278 /* confdefs.h. */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283
17284
17285 #include <linux/mm.h>
17286
17287 int
17288 main (void)
17289 {
17290
17291 unsigned long state;
17292 state = global_page_state(0);
17293
17294 ;
17295 return 0;
17296 }
17297
17298 _ACEOF
17299
17300
17301 rm -Rf build && mkdir -p build
17302 echo "obj-m := conftest.o" >build/Makefile
17303 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314
17315 { $as_echo "$as_me:$LINENO: result: yes" >&5
17316 $as_echo "yes" >&6; }
17317
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_GLOBAL_PAGE_STATE 1
17320 _ACEOF
17321
17322
17323 else
17324 $as_echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327 { $as_echo "$as_me:$LINENO: result: no" >&5
17328 $as_echo "no" >&6; }
17329
17330
17331
17332 fi
17333
17334 rm -Rf build
17335
17336
17337
17338
17339 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
17340 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
17341
17342
17343 cat >conftest.c <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349
17350
17351 #include <linux/mm.h>
17352
17353 int
17354 main (void)
17355 {
17356
17357 enum zone_stat_item zsi;
17358 zsi = NR_FREE_PAGES;
17359
17360 ;
17361 return 0;
17362 }
17363
17364 _ACEOF
17365
17366
17367 rm -Rf build && mkdir -p build
17368 echo "obj-m := conftest.o" >build/Makefile
17369 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380
17381 { $as_echo "$as_me:$LINENO: result: yes" >&5
17382 $as_echo "yes" >&6; }
17383
17384 cat >>confdefs.h <<\_ACEOF
17385 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
17386 _ACEOF
17387
17388
17389 else
17390 $as_echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 { $as_echo "$as_me:$LINENO: result: no" >&5
17394 $as_echo "no" >&6; }
17395
17396
17397
17398 fi
17399
17400 rm -Rf build
17401
17402
17403
17404
17405 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
17406 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
17407
17408
17409 cat >conftest.c <<_ACEOF
17410 /* confdefs.h. */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415
17416
17417 #include <linux/mm.h>
17418
17419 int
17420 main (void)
17421 {
17422
17423 enum zone_stat_item zsi;
17424 zsi = NR_INACTIVE;
17425
17426 ;
17427 return 0;
17428 }
17429
17430 _ACEOF
17431
17432
17433 rm -Rf build && mkdir -p build
17434 echo "obj-m := conftest.o" >build/Makefile
17435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446
17447 { $as_echo "$as_me:$LINENO: result: yes" >&5
17448 $as_echo "yes" >&6; }
17449
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
17452 _ACEOF
17453
17454
17455 else
17456 $as_echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 { $as_echo "$as_me:$LINENO: result: no" >&5
17460 $as_echo "no" >&6; }
17461
17462
17463
17464 fi
17465
17466 rm -Rf build
17467
17468
17469
17470 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
17471 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
17472
17473
17474 cat >conftest.c <<_ACEOF
17475 /* confdefs.h. */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480
17481
17482 #include <linux/mm.h>
17483
17484 int
17485 main (void)
17486 {
17487
17488 enum zone_stat_item zsi;
17489 zsi = NR_INACTIVE_ANON;
17490
17491 ;
17492 return 0;
17493 }
17494
17495 _ACEOF
17496
17497
17498 rm -Rf build && mkdir -p build
17499 echo "obj-m := conftest.o" >build/Makefile
17500 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511
17512 { $as_echo "$as_me:$LINENO: result: yes" >&5
17513 $as_echo "yes" >&6; }
17514
17515 cat >>confdefs.h <<\_ACEOF
17516 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
17517 _ACEOF
17518
17519
17520 else
17521 $as_echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 { $as_echo "$as_me:$LINENO: result: no" >&5
17525 $as_echo "no" >&6; }
17526
17527
17528
17529 fi
17530
17531 rm -Rf build
17532
17533
17534
17535 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
17536 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
17537
17538
17539 cat >conftest.c <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545
17546
17547 #include <linux/mm.h>
17548
17549 int
17550 main (void)
17551 {
17552
17553 enum zone_stat_item zsi;
17554 zsi = NR_INACTIVE_FILE;
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: yes" >&5
17578 $as_echo "yes" >&6; }
17579
17580 cat >>confdefs.h <<\_ACEOF
17581 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
17582 _ACEOF
17583
17584
17585 else
17586 $as_echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17588
17589 { $as_echo "$as_me:$LINENO: result: no" >&5
17590 $as_echo "no" >&6; }
17591
17592
17593
17594 fi
17595
17596 rm -Rf build
17597
17598
17599
17600
17601 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
17602 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
17603
17604
17605 cat >conftest.c <<_ACEOF
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/mm.h>
17614
17615 int
17616 main (void)
17617 {
17618
17619 enum zone_stat_item zsi;
17620 zsi = NR_ACTIVE;
17621
17622 ;
17623 return 0;
17624 }
17625
17626 _ACEOF
17627
17628
17629 rm -Rf build && mkdir -p build
17630 echo "obj-m := conftest.o" >build/Makefile
17631 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17642
17643 { $as_echo "$as_me:$LINENO: result: yes" >&5
17644 $as_echo "yes" >&6; }
17645
17646 cat >>confdefs.h <<\_ACEOF
17647 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
17648 _ACEOF
17649
17650
17651 else
17652 $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655 { $as_echo "$as_me:$LINENO: result: no" >&5
17656 $as_echo "no" >&6; }
17657
17658
17659
17660 fi
17661
17662 rm -Rf build
17663
17664
17665
17666 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
17667 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
17668
17669
17670 cat >conftest.c <<_ACEOF
17671 /* confdefs.h. */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676
17677
17678 #include <linux/mm.h>
17679
17680 int
17681 main (void)
17682 {
17683
17684 enum zone_stat_item zsi;
17685 zsi = NR_ACTIVE_ANON;
17686
17687 ;
17688 return 0;
17689 }
17690
17691 _ACEOF
17692
17693
17694 rm -Rf build && mkdir -p build
17695 echo "obj-m := conftest.o" >build/Makefile
17696 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707
17708 { $as_echo "$as_me:$LINENO: result: yes" >&5
17709 $as_echo "yes" >&6; }
17710
17711 cat >>confdefs.h <<\_ACEOF
17712 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
17713 _ACEOF
17714
17715
17716 else
17717 $as_echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17719
17720 { $as_echo "$as_me:$LINENO: result: no" >&5
17721 $as_echo "no" >&6; }
17722
17723
17724
17725 fi
17726
17727 rm -Rf build
17728
17729
17730
17731 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
17732 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
17733
17734
17735 cat >conftest.c <<_ACEOF
17736 /* confdefs.h. */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h. */
17741
17742
17743 #include <linux/mm.h>
17744
17745 int
17746 main (void)
17747 {
17748
17749 enum zone_stat_item zsi;
17750 zsi = NR_ACTIVE_FILE;
17751
17752 ;
17753 return 0;
17754 }
17755
17756 _ACEOF
17757
17758
17759 rm -Rf build && mkdir -p build
17760 echo "obj-m := conftest.o" >build/Makefile
17761 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772
17773 { $as_echo "$as_me:$LINENO: result: yes" >&5
17774 $as_echo "yes" >&6; }
17775
17776 cat >>confdefs.h <<\_ACEOF
17777 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
17778 _ACEOF
17779
17780
17781 else
17782 $as_echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 { $as_echo "$as_me:$LINENO: result: no" >&5
17786 $as_echo "no" >&6; }
17787
17788
17789
17790 fi
17791
17792 rm -Rf build
17793
17794
17795
17796
17797 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
17798 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
17799
17800
17801 cat >conftest.c <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807
17808
17809
17810 int
17811 main (void)
17812 {
17813
17814 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
17815 #error "global_page_state needs NR_FREE_PAGES"
17816 #endif
17817
17818 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
17819 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
17820 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
17821 #error "global_page_state needs NR_ACTIVE*"
17822 #endif
17823
17824 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
17825 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
17826 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
17827 #error "global_page_state needs NR_INACTIVE*"
17828 #endif
17829
17830 ;
17831 return 0;
17832 }
17833
17834 _ACEOF
17835
17836
17837 rm -Rf build && mkdir -p build
17838 echo "obj-m := conftest.o" >build/Makefile
17839 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850
17851 { $as_echo "$as_me:$LINENO: result: no" >&5
17852 $as_echo "no" >&6; }
17853
17854 else
17855 $as_echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 { $as_echo "$as_me:$LINENO: result: yes" >&5
17859 $as_echo "yes" >&6; }
17860
17861 cat >>confdefs.h <<\_ACEOF
17862 #define NEED_GET_ZONE_COUNTS 1
17863 _ACEOF
17864
17865
17866 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
17867 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
17868 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
17869 $LINUX_OBJ/Module*.symvers 2>/dev/null
17870 rc=$?
17871 if test $rc -ne 0; then
17872 export=0
17873 for file in ; do
17874 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
17875 "$LINUX_OBJ/$file" 2>/dev/null
17876 rc=$?
17877 if test $rc -eq 0; then
17878 export=1
17879 break;
17880 fi
17881 done
17882 if test $export -eq 0; then
17883 { $as_echo "$as_me:$LINENO: result: no" >&5
17884 $as_echo "no" >&6; }
17885
17886 else
17887 { $as_echo "$as_me:$LINENO: result: yes" >&5
17888 $as_echo "yes" >&6; }
17889
17890 cat >>confdefs.h <<\_ACEOF
17891 #define HAVE_GET_ZONE_COUNTS 1
17892 _ACEOF
17893
17894 fi
17895 else
17896 { $as_echo "$as_me:$LINENO: result: yes" >&5
17897 $as_echo "yes" >&6; }
17898
17899 cat >>confdefs.h <<\_ACEOF
17900 #define HAVE_GET_ZONE_COUNTS 1
17901 _ACEOF
17902
17903 fi
17904
17905
17906
17907
17908 fi
17909
17910 rm -Rf build
17911
17912
17913
17914
17915 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
17916 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
17917 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
17918 $LINUX_OBJ/Module*.symvers 2>/dev/null
17919 rc=$?
17920 if test $rc -ne 0; then
17921 export=0
17922 for file in ; do
17923 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
17924 "$LINUX_OBJ/$file" 2>/dev/null
17925 rc=$?
17926 if test $rc -eq 0; then
17927 export=1
17928 break;
17929 fi
17930 done
17931 if test $export -eq 0; then
17932 { $as_echo "$as_me:$LINENO: result: no" >&5
17933 $as_echo "no" >&6; }
17934
17935 else
17936 { $as_echo "$as_me:$LINENO: result: yes" >&5
17937 $as_echo "yes" >&6; }
17938
17939 cat >>confdefs.h <<\_ACEOF
17940 #define HAVE_SET_FS_PWD 1
17941 _ACEOF
17942
17943 fi
17944 else
17945 { $as_echo "$as_me:$LINENO: result: yes" >&5
17946 $as_echo "yes" >&6; }
17947
17948 cat >>confdefs.h <<\_ACEOF
17949 #define HAVE_SET_FS_PWD 1
17950 _ACEOF
17951
17952 fi
17953
17954
17955 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
17956 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
17957
17958
17959 cat >conftest.c <<_ACEOF
17960 /* confdefs.h. */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965
17966
17967 #include <linux/sched.h>
17968 #include <linux/fs_struct.h>
17969
17970 int
17971 main (void)
17972 {
17973
17974 set_fs_pwd(NULL, NULL);
17975
17976 ;
17977 return 0;
17978 }
17979
17980 _ACEOF
17981
17982
17983 rm -Rf build && mkdir -p build
17984 echo "obj-m := conftest.o" >build/Makefile
17985 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996
17997 { $as_echo "$as_me:$LINENO: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999
18000 cat >>confdefs.h <<\_ACEOF
18001 #define HAVE_2ARGS_SET_FS_PWD 1
18002 _ACEOF
18003
18004
18005 else
18006 $as_echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 { $as_echo "$as_me:$LINENO: result: no" >&5
18010 $as_echo "no" >&6; }
18011
18012
18013
18014 fi
18015
18016 rm -Rf build
18017
18018
18019
18020 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
18021 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
18022
18023
18024 cat >conftest.c <<_ACEOF
18025 /* confdefs.h. */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030
18031
18032 #include <linux/fs.h>
18033
18034 int
18035 main (void)
18036 {
18037
18038 vfs_unlink(NULL, NULL);
18039
18040 ;
18041 return 0;
18042 }
18043
18044 _ACEOF
18045
18046
18047 rm -Rf build && mkdir -p build
18048 echo "obj-m := conftest.o" >build/Makefile
18049 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060
18061 { $as_echo "$as_me:$LINENO: result: yes" >&5
18062 $as_echo "yes" >&6; }
18063
18064 cat >>confdefs.h <<\_ACEOF
18065 #define HAVE_2ARGS_VFS_UNLINK 1
18066 _ACEOF
18067
18068
18069 else
18070 $as_echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18072
18073 { $as_echo "$as_me:$LINENO: result: no" >&5
18074 $as_echo "no" >&6; }
18075
18076
18077
18078 fi
18079
18080 rm -Rf build
18081
18082
18083
18084 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
18085 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
18086
18087
18088 cat >conftest.c <<_ACEOF
18089 /* confdefs.h. */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094
18095
18096 #include <linux/fs.h>
18097
18098 int
18099 main (void)
18100 {
18101
18102 vfs_rename(NULL, NULL, NULL, NULL);
18103
18104 ;
18105 return 0;
18106 }
18107
18108 _ACEOF
18109
18110
18111 rm -Rf build && mkdir -p build
18112 echo "obj-m := conftest.o" >build/Makefile
18113 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124
18125 { $as_echo "$as_me:$LINENO: result: yes" >&5
18126 $as_echo "yes" >&6; }
18127
18128 cat >>confdefs.h <<\_ACEOF
18129 #define HAVE_4ARGS_VFS_RENAME 1
18130 _ACEOF
18131
18132
18133 else
18134 $as_echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137 { $as_echo "$as_me:$LINENO: result: no" >&5
18138 $as_echo "no" >&6; }
18139
18140
18141
18142 fi
18143
18144 rm -Rf build
18145
18146
18147
18148
18149 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
18150 $as_echo_n "checking whether struct cred exists... " >&6; }
18151
18152
18153 cat >conftest.c <<_ACEOF
18154 /* confdefs.h. */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159
18160
18161 #include <linux/cred.h>
18162
18163 int
18164 main (void)
18165 {
18166
18167 struct cred *cr;
18168 cr = NULL;
18169
18170 ;
18171 return 0;
18172 }
18173
18174 _ACEOF
18175
18176
18177 rm -Rf build && mkdir -p build
18178 echo "obj-m := conftest.o" >build/Makefile
18179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190
18191 { $as_echo "$as_me:$LINENO: result: yes" >&5
18192 $as_echo "yes" >&6; }
18193
18194 cat >>confdefs.h <<\_ACEOF
18195 #define HAVE_CRED_STRUCT 1
18196 _ACEOF
18197
18198
18199 else
18200 $as_echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203 { $as_echo "$as_me:$LINENO: result: no" >&5
18204 $as_echo "no" >&6; }
18205
18206
18207
18208 fi
18209
18210 rm -Rf build
18211
18212
18213
18214
18215 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
18216 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
18217 grep -q -E '[[:space:]]groups_search[[:space:]]' \
18218 $LINUX_OBJ/Module*.symvers 2>/dev/null
18219 rc=$?
18220 if test $rc -ne 0; then
18221 export=0
18222 for file in ; do
18223 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
18224 "$LINUX_OBJ/$file" 2>/dev/null
18225 rc=$?
18226 if test $rc -eq 0; then
18227 export=1
18228 break;
18229 fi
18230 done
18231 if test $export -eq 0; then
18232 { $as_echo "$as_me:$LINENO: result: no" >&5
18233 $as_echo "no" >&6; }
18234
18235 else
18236 { $as_echo "$as_me:$LINENO: result: yes" >&5
18237 $as_echo "yes" >&6; }
18238
18239 cat >>confdefs.h <<\_ACEOF
18240 #define HAVE_GROUPS_SEARCH 1
18241 _ACEOF
18242
18243 fi
18244 else
18245 { $as_echo "$as_me:$LINENO: result: yes" >&5
18246 $as_echo "yes" >&6; }
18247
18248 cat >>confdefs.h <<\_ACEOF
18249 #define HAVE_GROUPS_SEARCH 1
18250 _ACEOF
18251
18252 fi
18253
18254
18255
18256 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
18257 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
18258 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
18259 $LINUX_OBJ/Module*.symvers 2>/dev/null
18260 rc=$?
18261 if test $rc -ne 0; then
18262 export=0
18263 for file in ; do
18264 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
18265 "$LINUX_OBJ/$file" 2>/dev/null
18266 rc=$?
18267 if test $rc -eq 0; then
18268 export=1
18269 break;
18270 fi
18271 done
18272 if test $export -eq 0; then
18273 { $as_echo "$as_me:$LINENO: result: no" >&5
18274 $as_echo "no" >&6; }
18275
18276 else
18277 { $as_echo "$as_me:$LINENO: result: yes" >&5
18278 $as_echo "yes" >&6; }
18279
18280 cat >>confdefs.h <<\_ACEOF
18281 #define HAVE_PUT_TASK_STRUCT 1
18282 _ACEOF
18283
18284 fi
18285 else
18286 { $as_echo "$as_me:$LINENO: result: yes" >&5
18287 $as_echo "yes" >&6; }
18288
18289 cat >>confdefs.h <<\_ACEOF
18290 #define HAVE_PUT_TASK_STRUCT 1
18291 _ACEOF
18292
18293 fi
18294
18295
18296
18297 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
18298 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
18299
18300
18301 cat >conftest.c <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307
18308
18309 #include <linux/sysctl.h>
18310
18311 int
18312 main (void)
18313 {
18314
18315 proc_dostring(NULL, 0, NULL, NULL, NULL);
18316
18317 ;
18318 return 0;
18319 }
18320
18321 _ACEOF
18322
18323
18324 rm -Rf build && mkdir -p build
18325 echo "obj-m := conftest.o" >build/Makefile
18326 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; }; then
18337
18338 { $as_echo "$as_me:$LINENO: result: yes" >&5
18339 $as_echo "yes" >&6; }
18340
18341 cat >>confdefs.h <<\_ACEOF
18342 #define HAVE_5ARGS_PROC_HANDLER 1
18343 _ACEOF
18344
18345
18346 else
18347 $as_echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 { $as_echo "$as_me:$LINENO: result: no" >&5
18351 $as_echo "no" >&6; }
18352
18353
18354
18355 fi
18356
18357 rm -Rf build
18358
18359
18360
18361
18362 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
18363 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
18364 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
18365 $LINUX_OBJ/Module*.symvers 2>/dev/null
18366 rc=$?
18367 if test $rc -ne 0; then
18368 export=0
18369 for file in ; do
18370 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
18371 "$LINUX_OBJ/$file" 2>/dev/null
18372 rc=$?
18373 if test $rc -eq 0; then
18374 export=1
18375 break;
18376 fi
18377 done
18378 if test $export -eq 0; then
18379 { $as_echo "$as_me:$LINENO: result: no" >&5
18380 $as_echo "no" >&6; }
18381
18382 else
18383 { $as_echo "$as_me:$LINENO: result: yes" >&5
18384 $as_echo "yes" >&6; }
18385
18386 cat >>confdefs.h <<\_ACEOF
18387 #define HAVE_KVASPRINTF 1
18388 _ACEOF
18389
18390 fi
18391 else
18392 { $as_echo "$as_me:$LINENO: result: yes" >&5
18393 $as_echo "yes" >&6; }
18394
18395 cat >>confdefs.h <<\_ACEOF
18396 #define HAVE_KVASPRINTF 1
18397 _ACEOF
18398
18399 fi
18400
18401
18402
18403 ;;
18404 srpm) ;;
18405 *)
18406 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18407 $as_echo "Error!" >&6; }
18408 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18409 user kernel|user|all|srpm" >&5
18410 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18411 user kernel|user|all|srpm" >&2;}
18412 { (exit 1); exit 1; }; } ;;
18413 esac
18414
18415 if test "$SPL_CONFIG" = user ||
18416 test "$SPL_CONFIG" = all; then
18417 CONFIG_USER_TRUE=
18418 CONFIG_USER_FALSE='#'
18419 else
18420 CONFIG_USER_TRUE='#'
18421 CONFIG_USER_FALSE=
18422 fi
18423
18424 if test "$SPL_CONFIG" = kernel ||
18425 test "$SPL_CONFIG" = all; then
18426 CONFIG_KERNEL_TRUE=
18427 CONFIG_KERNEL_FALSE='#'
18428 else
18429 CONFIG_KERNEL_TRUE='#'
18430 CONFIG_KERNEL_FALSE=
18431 fi
18432
18433
18434
18435 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"
18436
18437
18438 cat >confcache <<\_ACEOF
18439 # This file is a shell script that caches the results of configure
18440 # tests run on this system so they can be shared between configure
18441 # scripts and configure runs, see configure's option --config-cache.
18442 # It is not useful on other systems. If it contains results you don't
18443 # want to keep, you may remove or edit it.
18444 #
18445 # config.status only pays attention to the cache file if you give it
18446 # the --recheck option to rerun configure.
18447 #
18448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18450 # following values.
18451
18452 _ACEOF
18453
18454 # The following way of writing the cache mishandles newlines in values,
18455 # but we know of no workaround that is simple, portable, and efficient.
18456 # So, we kill variables containing newlines.
18457 # Ultrix sh set writes to stderr and can't be redirected directly,
18458 # and sets the high bit in the cache file unless we assign to the vars.
18459 (
18460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18461 eval ac_val=\$$ac_var
18462 case $ac_val in #(
18463 *${as_nl}*)
18464 case $ac_var in #(
18465 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18467 esac
18468 case $ac_var in #(
18469 _ | IFS | as_nl) ;; #(
18470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18471 *) $as_unset $ac_var ;;
18472 esac ;;
18473 esac
18474 done
18475
18476 (set) 2>&1 |
18477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18478 *${as_nl}ac_space=\ *)
18479 # `set' does not quote correctly, so add quotes (double-quote
18480 # substitution turns \\\\ into \\, and sed turns \\ into \).
18481 sed -n \
18482 "s/'/'\\\\''/g;
18483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18484 ;; #(
18485 *)
18486 # `set' quotes correctly as required by POSIX, so do not add quotes.
18487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18488 ;;
18489 esac |
18490 sort
18491 ) |
18492 sed '
18493 /^ac_cv_env_/b end
18494 t clear
18495 :clear
18496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18497 t end
18498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18499 :end' >>confcache
18500 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18501 if test -w "$cache_file"; then
18502 test "x$cache_file" != "x/dev/null" &&
18503 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18504 $as_echo "$as_me: updating cache $cache_file" >&6;}
18505 cat confcache >$cache_file
18506 else
18507 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18508 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18509 fi
18510 fi
18511 rm -f confcache
18512
18513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18514 # Let make expand exec_prefix.
18515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18516
18517 DEFS=-DHAVE_CONFIG_H
18518
18519 ac_libobjs=
18520 ac_ltlibobjs=
18521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18522 # 1. Remove the extension, and $U if already installed.
18523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18526 # will be set to the directory where LIBOBJS objects are built.
18527 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18528 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18529 done
18530 LIBOBJS=$ac_libobjs
18531
18532 LTLIBOBJS=$ac_ltlibobjs
18533
18534
18535 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18536 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18537 Usually this means the macro was only invoked conditionally." >&5
18538 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18539 Usually this means the macro was only invoked conditionally." >&2;}
18540 { (exit 1); exit 1; }; }
18541 fi
18542 if test -n "$EXEEXT"; then
18543 am__EXEEXT_TRUE=
18544 am__EXEEXT_FALSE='#'
18545 else
18546 am__EXEEXT_TRUE='#'
18547 am__EXEEXT_FALSE=
18548 fi
18549
18550 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18551 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18552 Usually this means the macro was only invoked conditionally." >&5
18553 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18554 Usually this means the macro was only invoked conditionally." >&2;}
18555 { (exit 1); exit 1; }; }
18556 fi
18557 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18558 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18559 Usually this means the macro was only invoked conditionally." >&5
18560 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18561 Usually this means the macro was only invoked conditionally." >&2;}
18562 { (exit 1); exit 1; }; }
18563 fi
18564 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18565 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18566 Usually this means the macro was only invoked conditionally." >&5
18567 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18568 Usually this means the macro was only invoked conditionally." >&2;}
18569 { (exit 1); exit 1; }; }
18570 fi
18571 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18572 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18573 Usually this means the macro was only invoked conditionally." >&5
18574 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18575 Usually this means the macro was only invoked conditionally." >&2;}
18576 { (exit 1); exit 1; }; }
18577 fi
18578
18579 : ${CONFIG_STATUS=./config.status}
18580 ac_write_fail=0
18581 ac_clean_files_save=$ac_clean_files
18582 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18583 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18584 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18585 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18586 #! $SHELL
18587 # Generated by $as_me.
18588 # Run this file to recreate the current configuration.
18589 # Compiler output produced by configure, useful for debugging
18590 # configure, is in config.log if it exists.
18591
18592 debug=false
18593 ac_cs_recheck=false
18594 ac_cs_silent=false
18595 SHELL=\${CONFIG_SHELL-$SHELL}
18596 _ACEOF
18597
18598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18599 ## --------------------- ##
18600 ## M4sh Initialization. ##
18601 ## --------------------- ##
18602
18603 # Be more Bourne compatible
18604 DUALCASE=1; export DUALCASE # for MKS sh
18605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18606 emulate sh
18607 NULLCMD=:
18608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18609 # is contrary to our usage. Disable this feature.
18610 alias -g '${1+"$@"}'='"$@"'
18611 setopt NO_GLOB_SUBST
18612 else
18613 case `(set -o) 2>/dev/null` in
18614 *posix*) set -o posix ;;
18615 esac
18616
18617 fi
18618
18619
18620
18621
18622 # PATH needs CR
18623 # Avoid depending upon Character Ranges.
18624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18627 as_cr_digits='0123456789'
18628 as_cr_alnum=$as_cr_Letters$as_cr_digits
18629
18630 as_nl='
18631 '
18632 export as_nl
18633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18637 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18638 as_echo='printf %s\n'
18639 as_echo_n='printf %s'
18640 else
18641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18643 as_echo_n='/usr/ucb/echo -n'
18644 else
18645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18646 as_echo_n_body='eval
18647 arg=$1;
18648 case $arg in
18649 *"$as_nl"*)
18650 expr "X$arg" : "X\\(.*\\)$as_nl";
18651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18652 esac;
18653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18654 '
18655 export as_echo_n_body
18656 as_echo_n='sh -c $as_echo_n_body as_echo'
18657 fi
18658 export as_echo_body
18659 as_echo='sh -c $as_echo_body as_echo'
18660 fi
18661
18662 # The user is always right.
18663 if test "${PATH_SEPARATOR+set}" != set; then
18664 PATH_SEPARATOR=:
18665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18667 PATH_SEPARATOR=';'
18668 }
18669 fi
18670
18671 # Support unset when possible.
18672 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18673 as_unset=unset
18674 else
18675 as_unset=false
18676 fi
18677
18678
18679 # IFS
18680 # We need space, tab and new line, in precisely that order. Quoting is
18681 # there to prevent editors from complaining about space-tab.
18682 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18683 # splitting by setting IFS to empty value.)
18684 IFS=" "" $as_nl"
18685
18686 # Find who we are. Look in the path if we contain no directory separator.
18687 case $0 in
18688 *[\\/]* ) as_myself=$0 ;;
18689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18690 for as_dir in $PATH
18691 do
18692 IFS=$as_save_IFS
18693 test -z "$as_dir" && as_dir=.
18694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18695 done
18696 IFS=$as_save_IFS
18697
18698 ;;
18699 esac
18700 # We did not find ourselves, most probably we were run as `sh COMMAND'
18701 # in which case we are not to be found in the path.
18702 if test "x$as_myself" = x; then
18703 as_myself=$0
18704 fi
18705 if test ! -f "$as_myself"; then
18706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18707 { (exit 1); exit 1; }
18708 fi
18709
18710 # Work around bugs in pre-3.0 UWIN ksh.
18711 for as_var in ENV MAIL MAILPATH
18712 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18713 done
18714 PS1='$ '
18715 PS2='> '
18716 PS4='+ '
18717
18718 # NLS nuisances.
18719 LC_ALL=C
18720 export LC_ALL
18721 LANGUAGE=C
18722 export LANGUAGE
18723
18724 # Required to use basename.
18725 if expr a : '\(a\)' >/dev/null 2>&1 &&
18726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18727 as_expr=expr
18728 else
18729 as_expr=false
18730 fi
18731
18732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18733 as_basename=basename
18734 else
18735 as_basename=false
18736 fi
18737
18738
18739 # Name of the executable.
18740 as_me=`$as_basename -- "$0" ||
18741 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18742 X"$0" : 'X\(//\)$' \| \
18743 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18744 $as_echo X/"$0" |
18745 sed '/^.*\/\([^/][^/]*\)\/*$/{
18746 s//\1/
18747 q
18748 }
18749 /^X\/\(\/\/\)$/{
18750 s//\1/
18751 q
18752 }
18753 /^X\/\(\/\).*/{
18754 s//\1/
18755 q
18756 }
18757 s/.*/./; q'`
18758
18759 # CDPATH.
18760 $as_unset CDPATH
18761
18762
18763
18764 as_lineno_1=$LINENO
18765 as_lineno_2=$LINENO
18766 test "x$as_lineno_1" != "x$as_lineno_2" &&
18767 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18768
18769 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18770 # uniformly replaced by the line number. The first 'sed' inserts a
18771 # line-number line after each line using $LINENO; the second 'sed'
18772 # does the real work. The second script uses 'N' to pair each
18773 # line-number line with the line containing $LINENO, and appends
18774 # trailing '-' during substitution so that $LINENO is not a special
18775 # case at line end.
18776 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18777 # scripts with optimization help from Paolo Bonzini. Blame Lee
18778 # E. McMahon (1931-1989) for sed's syntax. :-)
18779 sed -n '
18780 p
18781 /[$]LINENO/=
18782 ' <$as_myself |
18783 sed '
18784 s/[$]LINENO.*/&-/
18785 t lineno
18786 b
18787 :lineno
18788 N
18789 :loop
18790 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18791 t loop
18792 s/-\n.*//
18793 ' >$as_me.lineno &&
18794 chmod +x "$as_me.lineno" ||
18795 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18796 { (exit 1); exit 1; }; }
18797
18798 # Don't try to exec as it changes $[0], causing all sort of problems
18799 # (the dirname of $[0] is not the place where we might find the
18800 # original and so on. Autoconf is especially sensitive to this).
18801 . "./$as_me.lineno"
18802 # Exit status is that of the last command.
18803 exit
18804 }
18805
18806
18807 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18808 as_dirname=dirname
18809 else
18810 as_dirname=false
18811 fi
18812
18813 ECHO_C= ECHO_N= ECHO_T=
18814 case `echo -n x` in
18815 -n*)
18816 case `echo 'x\c'` in
18817 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18818 *) ECHO_C='\c';;
18819 esac;;
18820 *)
18821 ECHO_N='-n';;
18822 esac
18823 if expr a : '\(a\)' >/dev/null 2>&1 &&
18824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18825 as_expr=expr
18826 else
18827 as_expr=false
18828 fi
18829
18830 rm -f conf$$ conf$$.exe conf$$.file
18831 if test -d conf$$.dir; then
18832 rm -f conf$$.dir/conf$$.file
18833 else
18834 rm -f conf$$.dir
18835 mkdir conf$$.dir 2>/dev/null
18836 fi
18837 if (echo >conf$$.file) 2>/dev/null; then
18838 if ln -s conf$$.file conf$$ 2>/dev/null; then
18839 as_ln_s='ln -s'
18840 # ... but there are two gotchas:
18841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18843 # In both cases, we have to default to `cp -p'.
18844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18845 as_ln_s='cp -p'
18846 elif ln conf$$.file conf$$ 2>/dev/null; then
18847 as_ln_s=ln
18848 else
18849 as_ln_s='cp -p'
18850 fi
18851 else
18852 as_ln_s='cp -p'
18853 fi
18854 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18855 rmdir conf$$.dir 2>/dev/null
18856
18857 if mkdir -p . 2>/dev/null; then
18858 as_mkdir_p=:
18859 else
18860 test -d ./-p && rmdir ./-p
18861 as_mkdir_p=false
18862 fi
18863
18864 if test -x / >/dev/null 2>&1; then
18865 as_test_x='test -x'
18866 else
18867 if ls -dL / >/dev/null 2>&1; then
18868 as_ls_L_option=L
18869 else
18870 as_ls_L_option=
18871 fi
18872 as_test_x='
18873 eval sh -c '\''
18874 if test -d "$1"; then
18875 test -d "$1/.";
18876 else
18877 case $1 in
18878 -*)set "./$1";;
18879 esac;
18880 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18881 ???[sx]*):;;*)false;;esac;fi
18882 '\'' sh
18883 '
18884 fi
18885 as_executable_p=$as_test_x
18886
18887 # Sed expression to map a string onto a valid CPP name.
18888 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18889
18890 # Sed expression to map a string onto a valid variable name.
18891 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18892
18893
18894 exec 6>&1
18895
18896 # Save the log message, to keep $[0] and so on meaningful, and to
18897 # report actual input values of CONFIG_FILES etc. instead of their
18898 # values after options handling.
18899 ac_log="
18900 This file was extended by $as_me, which was
18901 generated by GNU Autoconf 2.63. Invocation command line was
18902
18903 CONFIG_FILES = $CONFIG_FILES
18904 CONFIG_HEADERS = $CONFIG_HEADERS
18905 CONFIG_LINKS = $CONFIG_LINKS
18906 CONFIG_COMMANDS = $CONFIG_COMMANDS
18907 $ $0 $@
18908
18909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18910 "
18911
18912 _ACEOF
18913
18914 case $ac_config_files in *"
18915 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18916 esac
18917
18918 case $ac_config_headers in *"
18919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18920 esac
18921
18922
18923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18924 # Files that config.status was made for.
18925 config_files="$ac_config_files"
18926 config_headers="$ac_config_headers"
18927 config_commands="$ac_config_commands"
18928
18929 _ACEOF
18930
18931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18932 ac_cs_usage="\
18933 \`$as_me' instantiates files from templates according to the
18934 current configuration.
18935
18936 Usage: $0 [OPTION]... [FILE]...
18937
18938 -h, --help print this help, then exit
18939 -V, --version print version number and configuration settings, then exit
18940 -q, --quiet, --silent
18941 do not print progress messages
18942 -d, --debug don't remove temporary files
18943 --recheck update $as_me by reconfiguring in the same conditions
18944 --file=FILE[:TEMPLATE]
18945 instantiate the configuration file FILE
18946 --header=FILE[:TEMPLATE]
18947 instantiate the configuration header FILE
18948
18949 Configuration files:
18950 $config_files
18951
18952 Configuration headers:
18953 $config_headers
18954
18955 Configuration commands:
18956 $config_commands
18957
18958 Report bugs to <bug-autoconf@gnu.org>."
18959
18960 _ACEOF
18961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18962 ac_cs_version="\\
18963 config.status
18964 configured by $0, generated by GNU Autoconf 2.63,
18965 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18966
18967 Copyright (C) 2008 Free Software Foundation, Inc.
18968 This config.status script is free software; the Free Software Foundation
18969 gives unlimited permission to copy, distribute and modify it."
18970
18971 ac_pwd='$ac_pwd'
18972 srcdir='$srcdir'
18973 INSTALL='$INSTALL'
18974 MKDIR_P='$MKDIR_P'
18975 AWK='$AWK'
18976 test -n "\$AWK" || AWK=awk
18977 _ACEOF
18978
18979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18980 # The default lists apply if the user does not specify any file.
18981 ac_need_defaults=:
18982 while test $# != 0
18983 do
18984 case $1 in
18985 --*=*)
18986 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18987 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18988 ac_shift=:
18989 ;;
18990 *)
18991 ac_option=$1
18992 ac_optarg=$2
18993 ac_shift=shift
18994 ;;
18995 esac
18996
18997 case $ac_option in
18998 # Handling of the options.
18999 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19000 ac_cs_recheck=: ;;
19001 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19002 $as_echo "$ac_cs_version"; exit ;;
19003 --debug | --debu | --deb | --de | --d | -d )
19004 debug=: ;;
19005 --file | --fil | --fi | --f )
19006 $ac_shift
19007 case $ac_optarg in
19008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19009 esac
19010 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19011 ac_need_defaults=false;;
19012 --header | --heade | --head | --hea )
19013 $ac_shift
19014 case $ac_optarg in
19015 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19016 esac
19017 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19018 ac_need_defaults=false;;
19019 --he | --h)
19020 # Conflict between --help and --header
19021 { $as_echo "$as_me: error: ambiguous option: $1
19022 Try \`$0 --help' for more information." >&2
19023 { (exit 1); exit 1; }; };;
19024 --help | --hel | -h )
19025 $as_echo "$ac_cs_usage"; exit ;;
19026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19028 ac_cs_silent=: ;;
19029
19030 # This is an error.
19031 -*) { $as_echo "$as_me: error: unrecognized option: $1
19032 Try \`$0 --help' for more information." >&2
19033 { (exit 1); exit 1; }; } ;;
19034
19035 *) ac_config_targets="$ac_config_targets $1"
19036 ac_need_defaults=false ;;
19037
19038 esac
19039 shift
19040 done
19041
19042 ac_configure_extra_args=
19043
19044 if $ac_cs_silent; then
19045 exec 6>/dev/null
19046 ac_configure_extra_args="$ac_configure_extra_args --silent"
19047 fi
19048
19049 _ACEOF
19050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19051 if \$ac_cs_recheck; then
19052 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19053 shift
19054 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19055 CONFIG_SHELL='$SHELL'
19056 export CONFIG_SHELL
19057 exec "\$@"
19058 fi
19059
19060 _ACEOF
19061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19062 exec 5>>config.log
19063 {
19064 echo
19065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19066 ## Running $as_me. ##
19067 _ASBOX
19068 $as_echo "$ac_log"
19069 } >&5
19070
19071 _ACEOF
19072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19073 #
19074 # INIT-COMMANDS
19075 #
19076 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19077
19078
19079 # The HP-UX ksh and POSIX shell print the target directory to stdout
19080 # if CDPATH is set.
19081 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19082
19083 sed_quote_subst='$sed_quote_subst'
19084 double_quote_subst='$double_quote_subst'
19085 delay_variable_subst='$delay_variable_subst'
19086 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19087 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19088 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19089 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19090 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19091 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19092 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19093 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19094 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19095 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19096 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19097 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19098 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19099 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19100 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19101 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19102 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19103 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19104 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19105 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19106 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19107 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19108 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19109 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19110 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19111 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19112 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19113 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19114 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19115 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19116 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19117 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19118 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19119 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19120 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19121 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19122 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19123 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19124 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19125 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19126 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19127 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19128 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19129 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19130 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"`'
19131 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"`'
19132 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19133 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19134 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19135 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19136 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19137 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19138 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19139 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19140 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19141 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19142 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19143 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19144 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19145 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19146 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19147 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19148 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19149 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19150 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19151 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19152 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19153 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19154 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19155 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19156 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19157 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19158 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19159 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19160 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19161 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19162 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19163 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19164 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19165 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19166 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19167 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19168 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19169 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19170 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19171 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19172 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19173 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19174 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19175 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19176 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19177 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19178 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19179 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19180 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19181 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19182 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19183 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19184 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19185 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19186 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19187 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19188 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19189 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19190 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19191 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19192 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19193 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19194 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19195 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19196 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19197 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19198 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19199 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19200 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19201 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19202 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19203 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19204
19205 LTCC='$LTCC'
19206 LTCFLAGS='$LTCFLAGS'
19207 compiler='$compiler_DEFAULT'
19208
19209 # Quote evaled strings.
19210 for var in SED \
19211 GREP \
19212 EGREP \
19213 FGREP \
19214 LD \
19215 NM \
19216 LN_S \
19217 lt_SP2NL \
19218 lt_NL2SP \
19219 reload_flag \
19220 OBJDUMP \
19221 deplibs_check_method \
19222 file_magic_cmd \
19223 AR \
19224 AR_FLAGS \
19225 STRIP \
19226 RANLIB \
19227 CC \
19228 CFLAGS \
19229 compiler \
19230 lt_cv_sys_global_symbol_pipe \
19231 lt_cv_sys_global_symbol_to_cdecl \
19232 lt_cv_sys_global_symbol_to_c_name_address \
19233 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19234 SHELL \
19235 ECHO \
19236 lt_prog_compiler_no_builtin_flag \
19237 lt_prog_compiler_wl \
19238 lt_prog_compiler_pic \
19239 lt_prog_compiler_static \
19240 lt_cv_prog_compiler_c_o \
19241 need_locks \
19242 DSYMUTIL \
19243 NMEDIT \
19244 LIPO \
19245 OTOOL \
19246 OTOOL64 \
19247 shrext_cmds \
19248 export_dynamic_flag_spec \
19249 whole_archive_flag_spec \
19250 compiler_needs_object \
19251 with_gnu_ld \
19252 allow_undefined_flag \
19253 no_undefined_flag \
19254 hardcode_libdir_flag_spec \
19255 hardcode_libdir_flag_spec_ld \
19256 hardcode_libdir_separator \
19257 fix_srcfile_path \
19258 exclude_expsyms \
19259 include_expsyms \
19260 file_list_spec \
19261 variables_saved_for_relink \
19262 libname_spec \
19263 library_names_spec \
19264 soname_spec \
19265 finish_eval \
19266 old_striplib \
19267 striplib; do
19268 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19269 *[\\\\\\\`\\"\\\$]*)
19270 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19271 ;;
19272 *)
19273 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19274 ;;
19275 esac
19276 done
19277
19278 # Double-quote double-evaled strings.
19279 for var in reload_cmds \
19280 old_postinstall_cmds \
19281 old_postuninstall_cmds \
19282 old_archive_cmds \
19283 extract_expsyms_cmds \
19284 old_archive_from_new_cmds \
19285 old_archive_from_expsyms_cmds \
19286 archive_cmds \
19287 archive_expsym_cmds \
19288 module_cmds \
19289 module_expsym_cmds \
19290 export_symbols_cmds \
19291 prelink_cmds \
19292 postinstall_cmds \
19293 postuninstall_cmds \
19294 finish_cmds \
19295 sys_lib_search_path_spec \
19296 sys_lib_dlsearch_path_spec; do
19297 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19298 *[\\\\\\\`\\"\\\$]*)
19299 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19300 ;;
19301 *)
19302 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19303 ;;
19304 esac
19305 done
19306
19307 # Fix-up fallback echo if it was mangled by the above quoting rules.
19308 case \$lt_ECHO in
19309 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19310 ;;
19311 esac
19312
19313 ac_aux_dir='$ac_aux_dir'
19314 xsi_shell='$xsi_shell'
19315 lt_shell_append='$lt_shell_append'
19316
19317 # See if we are running on zsh, and set the options which allow our
19318 # commands through without removal of \ escapes INIT.
19319 if test -n "\${ZSH_VERSION+set}" ; then
19320 setopt NO_GLOB_SUBST
19321 fi
19322
19323
19324 PACKAGE='$PACKAGE'
19325 VERSION='$VERSION'
19326 TIMESTAMP='$TIMESTAMP'
19327 RM='$RM'
19328 ofile='$ofile'
19329
19330
19331
19332
19333 _ACEOF
19334
19335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19336
19337 # Handling of arguments.
19338 for ac_config_target in $ac_config_targets
19339 do
19340 case $ac_config_target in
19341 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19342 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19343 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19344 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19345 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19346 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19347 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19348 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19349 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19350 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19351 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19352 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
19353 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
19354
19355 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19356 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19357 { (exit 1); exit 1; }; };;
19358 esac
19359 done
19360
19361
19362 # If the user did not use the arguments to specify the items to instantiate,
19363 # then the envvar interface is used. Set only those that are not.
19364 # We use the long form for the default assignment because of an extremely
19365 # bizarre bug on SunOS 4.1.3.
19366 if $ac_need_defaults; then
19367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19370 fi
19371
19372 # Have a temporary directory for convenience. Make it in the build tree
19373 # simply because there is no reason against having it here, and in addition,
19374 # creating and moving files from /tmp can sometimes cause problems.
19375 # Hook for its removal unless debugging.
19376 # Note that there is a small window in which the directory will not be cleaned:
19377 # after its creation but before its name has been assigned to `$tmp'.
19378 $debug ||
19379 {
19380 tmp=
19381 trap 'exit_status=$?
19382 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19383 ' 0
19384 trap '{ (exit 1); exit 1; }' 1 2 13 15
19385 }
19386 # Create a (secure) tmp directory for tmp files.
19387
19388 {
19389 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19390 test -n "$tmp" && test -d "$tmp"
19391 } ||
19392 {
19393 tmp=./conf$$-$RANDOM
19394 (umask 077 && mkdir "$tmp")
19395 } ||
19396 {
19397 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19398 { (exit 1); exit 1; }
19399 }
19400
19401 # Set up the scripts for CONFIG_FILES section.
19402 # No need to generate them if there are no CONFIG_FILES.
19403 # This happens for instance with `./config.status config.h'.
19404 if test -n "$CONFIG_FILES"; then
19405
19406
19407 ac_cr=' '
19408 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19409 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19410 ac_cs_awk_cr='\\r'
19411 else
19412 ac_cs_awk_cr=$ac_cr
19413 fi
19414
19415 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19416 _ACEOF
19417
19418
19419 {
19420 echo "cat >conf$$subs.awk <<_ACEOF" &&
19421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19422 echo "_ACEOF"
19423 } >conf$$subs.sh ||
19424 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19425 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19426 { (exit 1); exit 1; }; }
19427 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19428 ac_delim='%!_!# '
19429 for ac_last_try in false false false false false :; do
19430 . ./conf$$subs.sh ||
19431 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19432 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19433 { (exit 1); exit 1; }; }
19434
19435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19436 if test $ac_delim_n = $ac_delim_num; then
19437 break
19438 elif $ac_last_try; then
19439 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19440 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19441 { (exit 1); exit 1; }; }
19442 else
19443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19444 fi
19445 done
19446 rm -f conf$$subs.sh
19447
19448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19449 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19450 _ACEOF
19451 sed -n '
19452 h
19453 s/^/S["/; s/!.*/"]=/
19454 p
19455 g
19456 s/^[^!]*!//
19457 :repl
19458 t repl
19459 s/'"$ac_delim"'$//
19460 t delim
19461 :nl
19462 h
19463 s/\(.\{148\}\).*/\1/
19464 t more1
19465 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19466 p
19467 n
19468 b repl
19469 :more1
19470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19471 p
19472 g
19473 s/.\{148\}//
19474 t nl
19475 :delim
19476 h
19477 s/\(.\{148\}\).*/\1/
19478 t more2
19479 s/["\\]/\\&/g; s/^/"/; s/$/"/
19480 p
19481 b
19482 :more2
19483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19484 p
19485 g
19486 s/.\{148\}//
19487 t delim
19488 ' <conf$$subs.awk | sed '
19489 /^[^""]/{
19490 N
19491 s/\n//
19492 }
19493 ' >>$CONFIG_STATUS || ac_write_fail=1
19494 rm -f conf$$subs.awk
19495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496 _ACAWK
19497 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19498 for (key in S) S_is_set[key] = 1
19499 FS = "\a"
19500
19501 }
19502 {
19503 line = $ 0
19504 nfields = split(line, field, "@")
19505 substed = 0
19506 len = length(field[1])
19507 for (i = 2; i < nfields; i++) {
19508 key = field[i]
19509 keylen = length(key)
19510 if (S_is_set[key]) {
19511 value = S[key]
19512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19513 len += length(value) + length(field[++i])
19514 substed = 1
19515 } else
19516 len += 1 + keylen
19517 }
19518
19519 print line
19520 }
19521
19522 _ACAWK
19523 _ACEOF
19524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19525 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19526 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19527 else
19528 cat
19529 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19530 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19531 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19532 { (exit 1); exit 1; }; }
19533 _ACEOF
19534
19535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19537 # trailing colons and then remove the whole line if VPATH becomes empty
19538 # (actually we leave an empty line to preserve line numbers).
19539 if test "x$srcdir" = x.; then
19540 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19541 s/:*\$(srcdir):*/:/
19542 s/:*\${srcdir}:*/:/
19543 s/:*@srcdir@:*/:/
19544 s/^\([^=]*=[ ]*\):*/\1/
19545 s/:*$//
19546 s/^[^=]*=[ ]*$//
19547 }'
19548 fi
19549
19550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19551 fi # test -n "$CONFIG_FILES"
19552
19553 # Set up the scripts for CONFIG_HEADERS section.
19554 # No need to generate them if there are no CONFIG_HEADERS.
19555 # This happens for instance with `./config.status Makefile'.
19556 if test -n "$CONFIG_HEADERS"; then
19557 cat >"$tmp/defines.awk" <<\_ACAWK ||
19558 BEGIN {
19559 _ACEOF
19560
19561 # Transform confdefs.h into an awk script `defines.awk', embedded as
19562 # here-document in config.status, that substitutes the proper values into
19563 # config.h.in to produce config.h.
19564
19565 # Create a delimiter string that does not exist in confdefs.h, to ease
19566 # handling of long lines.
19567 ac_delim='%!_!# '
19568 for ac_last_try in false false :; do
19569 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19570 if test -z "$ac_t"; then
19571 break
19572 elif $ac_last_try; then
19573 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19574 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19575 { (exit 1); exit 1; }; }
19576 else
19577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19578 fi
19579 done
19580
19581 # For the awk script, D is an array of macro values keyed by name,
19582 # likewise P contains macro parameters if any. Preserve backslash
19583 # newline sequences.
19584
19585 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19586 sed -n '
19587 s/.\{148\}/&'"$ac_delim"'/g
19588 t rset
19589 :rset
19590 s/^[ ]*#[ ]*define[ ][ ]*/ /
19591 t def
19592 d
19593 :def
19594 s/\\$//
19595 t bsnl
19596 s/["\\]/\\&/g
19597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19598 D["\1"]=" \3"/p
19599 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19600 d
19601 :bsnl
19602 s/["\\]/\\&/g
19603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19604 D["\1"]=" \3\\\\\\n"\\/p
19605 t cont
19606 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19607 t cont
19608 d
19609 :cont
19610 n
19611 s/.\{148\}/&'"$ac_delim"'/g
19612 t clear
19613 :clear
19614 s/\\$//
19615 t bsnlc
19616 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19617 d
19618 :bsnlc
19619 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19620 b cont
19621 ' <confdefs.h | sed '
19622 s/'"$ac_delim"'/"\\\
19623 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19624
19625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19626 for (key in D) D_is_set[key] = 1
19627 FS = "\a"
19628 }
19629 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19630 line = \$ 0
19631 split(line, arg, " ")
19632 if (arg[1] == "#") {
19633 defundef = arg[2]
19634 mac1 = arg[3]
19635 } else {
19636 defundef = substr(arg[1], 2)
19637 mac1 = arg[2]
19638 }
19639 split(mac1, mac2, "(") #)
19640 macro = mac2[1]
19641 prefix = substr(line, 1, index(line, defundef) - 1)
19642 if (D_is_set[macro]) {
19643 # Preserve the white space surrounding the "#".
19644 print prefix "define", macro P[macro] D[macro]
19645 next
19646 } else {
19647 # Replace #undef with comments. This is necessary, for example,
19648 # in the case of _POSIX_SOURCE, which is predefined and required
19649 # on some systems where configure will not decide to define it.
19650 if (defundef == "undef") {
19651 print "/*", prefix defundef, macro, "*/"
19652 next
19653 }
19654 }
19655 }
19656 { print }
19657 _ACAWK
19658 _ACEOF
19659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19660 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19661 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19662 { (exit 1); exit 1; }; }
19663 fi # test -n "$CONFIG_HEADERS"
19664
19665
19666 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19667 shift
19668 for ac_tag
19669 do
19670 case $ac_tag in
19671 :[FHLC]) ac_mode=$ac_tag; continue;;
19672 esac
19673 case $ac_mode$ac_tag in
19674 :[FHL]*:*);;
19675 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19676 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19677 { (exit 1); exit 1; }; };;
19678 :[FH]-) ac_tag=-:-;;
19679 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19680 esac
19681 ac_save_IFS=$IFS
19682 IFS=:
19683 set x $ac_tag
19684 IFS=$ac_save_IFS
19685 shift
19686 ac_file=$1
19687 shift
19688
19689 case $ac_mode in
19690 :L) ac_source=$1;;
19691 :[FH])
19692 ac_file_inputs=
19693 for ac_f
19694 do
19695 case $ac_f in
19696 -) ac_f="$tmp/stdin";;
19697 *) # Look for the file first in the build tree, then in the source tree
19698 # (if the path is not absolute). The absolute path cannot be DOS-style,
19699 # because $ac_f cannot contain `:'.
19700 test -f "$ac_f" ||
19701 case $ac_f in
19702 [\\/$]*) false;;
19703 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19704 esac ||
19705 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19706 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19707 { (exit 1); exit 1; }; };;
19708 esac
19709 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19710 ac_file_inputs="$ac_file_inputs '$ac_f'"
19711 done
19712
19713 # Let's still pretend it is `configure' which instantiates (i.e., don't
19714 # use $as_me), people would be surprised to read:
19715 # /* config.h. Generated by config.status. */
19716 configure_input='Generated from '`
19717 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19718 `' by configure.'
19719 if test x"$ac_file" != x-; then
19720 configure_input="$ac_file. $configure_input"
19721 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19722 $as_echo "$as_me: creating $ac_file" >&6;}
19723 fi
19724 # Neutralize special characters interpreted by sed in replacement strings.
19725 case $configure_input in #(
19726 *\&* | *\|* | *\\* )
19727 ac_sed_conf_input=`$as_echo "$configure_input" |
19728 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19729 *) ac_sed_conf_input=$configure_input;;
19730 esac
19731
19732 case $ac_tag in
19733 *:-:* | *:-) cat >"$tmp/stdin" \
19734 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19735 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19736 { (exit 1); exit 1; }; } ;;
19737 esac
19738 ;;
19739 esac
19740
19741 ac_dir=`$as_dirname -- "$ac_file" ||
19742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19743 X"$ac_file" : 'X\(//\)[^/]' \| \
19744 X"$ac_file" : 'X\(//\)$' \| \
19745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19746 $as_echo X"$ac_file" |
19747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19748 s//\1/
19749 q
19750 }
19751 /^X\(\/\/\)[^/].*/{
19752 s//\1/
19753 q
19754 }
19755 /^X\(\/\/\)$/{
19756 s//\1/
19757 q
19758 }
19759 /^X\(\/\).*/{
19760 s//\1/
19761 q
19762 }
19763 s/.*/./; q'`
19764 { as_dir="$ac_dir"
19765 case $as_dir in #(
19766 -*) as_dir=./$as_dir;;
19767 esac
19768 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19769 as_dirs=
19770 while :; do
19771 case $as_dir in #(
19772 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19773 *) as_qdir=$as_dir;;
19774 esac
19775 as_dirs="'$as_qdir' $as_dirs"
19776 as_dir=`$as_dirname -- "$as_dir" ||
19777 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19778 X"$as_dir" : 'X\(//\)[^/]' \| \
19779 X"$as_dir" : 'X\(//\)$' \| \
19780 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19781 $as_echo X"$as_dir" |
19782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19783 s//\1/
19784 q
19785 }
19786 /^X\(\/\/\)[^/].*/{
19787 s//\1/
19788 q
19789 }
19790 /^X\(\/\/\)$/{
19791 s//\1/
19792 q
19793 }
19794 /^X\(\/\).*/{
19795 s//\1/
19796 q
19797 }
19798 s/.*/./; q'`
19799 test -d "$as_dir" && break
19800 done
19801 test -z "$as_dirs" || eval "mkdir $as_dirs"
19802 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19803 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19804 { (exit 1); exit 1; }; }; }
19805 ac_builddir=.
19806
19807 case "$ac_dir" in
19808 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19809 *)
19810 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19811 # A ".." for each directory in $ac_dir_suffix.
19812 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19813 case $ac_top_builddir_sub in
19814 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19815 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19816 esac ;;
19817 esac
19818 ac_abs_top_builddir=$ac_pwd
19819 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19820 # for backward compatibility:
19821 ac_top_builddir=$ac_top_build_prefix
19822
19823 case $srcdir in
19824 .) # We are building in place.
19825 ac_srcdir=.
19826 ac_top_srcdir=$ac_top_builddir_sub
19827 ac_abs_top_srcdir=$ac_pwd ;;
19828 [\\/]* | ?:[\\/]* ) # Absolute name.
19829 ac_srcdir=$srcdir$ac_dir_suffix;
19830 ac_top_srcdir=$srcdir
19831 ac_abs_top_srcdir=$srcdir ;;
19832 *) # Relative name.
19833 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19834 ac_top_srcdir=$ac_top_build_prefix$srcdir
19835 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19836 esac
19837 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19838
19839
19840 case $ac_mode in
19841 :F)
19842 #
19843 # CONFIG_FILE
19844 #
19845
19846 case $INSTALL in
19847 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19848 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19849 esac
19850 ac_MKDIR_P=$MKDIR_P
19851 case $MKDIR_P in
19852 [\\/$]* | ?:[\\/]* ) ;;
19853 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19854 esac
19855 _ACEOF
19856
19857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19858 # If the template does not know about datarootdir, expand it.
19859 # FIXME: This hack should be removed a few years after 2.60.
19860 ac_datarootdir_hack=; ac_datarootdir_seen=
19861
19862 ac_sed_dataroot='
19863 /datarootdir/ {
19864 p
19865 q
19866 }
19867 /@datadir@/p
19868 /@docdir@/p
19869 /@infodir@/p
19870 /@localedir@/p
19871 /@mandir@/p
19872 '
19873 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19874 *datarootdir*) ac_datarootdir_seen=yes;;
19875 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19876 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19877 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19878 _ACEOF
19879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19880 ac_datarootdir_hack='
19881 s&@datadir@&$datadir&g
19882 s&@docdir@&$docdir&g
19883 s&@infodir@&$infodir&g
19884 s&@localedir@&$localedir&g
19885 s&@mandir@&$mandir&g
19886 s&\\\${datarootdir}&$datarootdir&g' ;;
19887 esac
19888 _ACEOF
19889
19890 # Neutralize VPATH when `$srcdir' = `.'.
19891 # Shell code in configure.ac might set extrasub.
19892 # FIXME: do we really want to maintain this feature?
19893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19894 ac_sed_extra="$ac_vpsub
19895 $extrasub
19896 _ACEOF
19897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19898 :t
19899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19900 s|@configure_input@|$ac_sed_conf_input|;t t
19901 s&@top_builddir@&$ac_top_builddir_sub&;t t
19902 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19903 s&@srcdir@&$ac_srcdir&;t t
19904 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19905 s&@top_srcdir@&$ac_top_srcdir&;t t
19906 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19907 s&@builddir@&$ac_builddir&;t t
19908 s&@abs_builddir@&$ac_abs_builddir&;t t
19909 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19910 s&@INSTALL@&$ac_INSTALL&;t t
19911 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19912 $ac_datarootdir_hack
19913 "
19914 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19915 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19916 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19917 { (exit 1); exit 1; }; }
19918
19919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19922 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19923 which seems to be undefined. Please make sure it is defined." >&5
19924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19925 which seems to be undefined. Please make sure it is defined." >&2;}
19926
19927 rm -f "$tmp/stdin"
19928 case $ac_file in
19929 -) cat "$tmp/out" && rm -f "$tmp/out";;
19930 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19931 esac \
19932 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19934 { (exit 1); exit 1; }; }
19935 ;;
19936 :H)
19937 #
19938 # CONFIG_HEADER
19939 #
19940 if test x"$ac_file" != x-; then
19941 {
19942 $as_echo "/* $configure_input */" \
19943 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19944 } >"$tmp/config.h" \
19945 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19947 { (exit 1); exit 1; }; }
19948 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19949 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19951 else
19952 rm -f "$ac_file"
19953 mv "$tmp/config.h" "$ac_file" \
19954 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19955 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19956 { (exit 1); exit 1; }; }
19957 fi
19958 else
19959 $as_echo "/* $configure_input */" \
19960 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19961 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19962 $as_echo "$as_me: error: could not create -" >&2;}
19963 { (exit 1); exit 1; }; }
19964 fi
19965 # Compute "$ac_file"'s index in $config_headers.
19966 _am_arg="$ac_file"
19967 _am_stamp_count=1
19968 for _am_header in $config_headers :; do
19969 case $_am_header in
19970 $_am_arg | $_am_arg:* )
19971 break ;;
19972 * )
19973 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19974 esac
19975 done
19976 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19977 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19978 X"$_am_arg" : 'X\(//\)[^/]' \| \
19979 X"$_am_arg" : 'X\(//\)$' \| \
19980 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19981 $as_echo X"$_am_arg" |
19982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19983 s//\1/
19984 q
19985 }
19986 /^X\(\/\/\)[^/].*/{
19987 s//\1/
19988 q
19989 }
19990 /^X\(\/\/\)$/{
19991 s//\1/
19992 q
19993 }
19994 /^X\(\/\).*/{
19995 s//\1/
19996 q
19997 }
19998 s/.*/./; q'`/stamp-h$_am_stamp_count
19999 ;;
20000
20001 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20002 $as_echo "$as_me: executing $ac_file commands" >&6;}
20003 ;;
20004 esac
20005
20006
20007 case $ac_file$ac_mode in
20008 "spl_config.h":H)
20009 (mv spl_config.h spl_config.h.tmp &&
20010 awk -f config/config.awk spl_config.h.tmp >spl_config.h &&
20011 rm spl_config.h.tmp) || exit 1 ;;
20012 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20013 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20014 # are listed without --file. Let's play safe and only enable the eval
20015 # if we detect the quoting.
20016 case $CONFIG_FILES in
20017 *\'*) eval set x "$CONFIG_FILES" ;;
20018 *) set x $CONFIG_FILES ;;
20019 esac
20020 shift
20021 for mf
20022 do
20023 # Strip MF so we end up with the name of the file.
20024 mf=`echo "$mf" | sed -e 's/:.*$//'`
20025 # Check whether this is an Automake generated Makefile or not.
20026 # We used to match only the files named `Makefile.in', but
20027 # some people rename them; so instead we look at the file content.
20028 # Grep'ing the first line is not enough: some people post-process
20029 # each Makefile.in and add a new line on top of each file to say so.
20030 # Grep'ing the whole file is not good either: AIX grep has a line
20031 # limit of 2048, but all sed's we know have understand at least 4000.
20032 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20033 dirpart=`$as_dirname -- "$mf" ||
20034 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20035 X"$mf" : 'X\(//\)[^/]' \| \
20036 X"$mf" : 'X\(//\)$' \| \
20037 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20038 $as_echo X"$mf" |
20039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20040 s//\1/
20041 q
20042 }
20043 /^X\(\/\/\)[^/].*/{
20044 s//\1/
20045 q
20046 }
20047 /^X\(\/\/\)$/{
20048 s//\1/
20049 q
20050 }
20051 /^X\(\/\).*/{
20052 s//\1/
20053 q
20054 }
20055 s/.*/./; q'`
20056 else
20057 continue
20058 fi
20059 # Extract the definition of DEPDIR, am__include, and am__quote
20060 # from the Makefile without running `make'.
20061 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20062 test -z "$DEPDIR" && continue
20063 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20064 test -z "am__include" && continue
20065 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20066 # When using ansi2knr, U may be empty or an underscore; expand it
20067 U=`sed -n 's/^U = //p' < "$mf"`
20068 # Find all dependency output files, they are included files with
20069 # $(DEPDIR) in their names. We invoke sed twice because it is the
20070 # simplest approach to changing $(DEPDIR) to its actual value in the
20071 # expansion.
20072 for file in `sed -n "
20073 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20074 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20075 # Make sure the directory exists.
20076 test -f "$dirpart/$file" && continue
20077 fdir=`$as_dirname -- "$file" ||
20078 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20079 X"$file" : 'X\(//\)[^/]' \| \
20080 X"$file" : 'X\(//\)$' \| \
20081 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20082 $as_echo X"$file" |
20083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20084 s//\1/
20085 q
20086 }
20087 /^X\(\/\/\)[^/].*/{
20088 s//\1/
20089 q
20090 }
20091 /^X\(\/\/\)$/{
20092 s//\1/
20093 q
20094 }
20095 /^X\(\/\).*/{
20096 s//\1/
20097 q
20098 }
20099 s/.*/./; q'`
20100 { as_dir=$dirpart/$fdir
20101 case $as_dir in #(
20102 -*) as_dir=./$as_dir;;
20103 esac
20104 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20105 as_dirs=
20106 while :; do
20107 case $as_dir in #(
20108 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20109 *) as_qdir=$as_dir;;
20110 esac
20111 as_dirs="'$as_qdir' $as_dirs"
20112 as_dir=`$as_dirname -- "$as_dir" ||
20113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20114 X"$as_dir" : 'X\(//\)[^/]' \| \
20115 X"$as_dir" : 'X\(//\)$' \| \
20116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20117 $as_echo X"$as_dir" |
20118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20119 s//\1/
20120 q
20121 }
20122 /^X\(\/\/\)[^/].*/{
20123 s//\1/
20124 q
20125 }
20126 /^X\(\/\/\)$/{
20127 s//\1/
20128 q
20129 }
20130 /^X\(\/\).*/{
20131 s//\1/
20132 q
20133 }
20134 s/.*/./; q'`
20135 test -d "$as_dir" && break
20136 done
20137 test -z "$as_dirs" || eval "mkdir $as_dirs"
20138 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20139 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20140 { (exit 1); exit 1; }; }; }
20141 # echo "creating $dirpart/$file"
20142 echo '# dummy' > "$dirpart/$file"
20143 done
20144 done
20145 }
20146 ;;
20147 "libtool":C)
20148
20149 # See if we are running on zsh, and set the options which allow our
20150 # commands through without removal of \ escapes.
20151 if test -n "${ZSH_VERSION+set}" ; then
20152 setopt NO_GLOB_SUBST
20153 fi
20154
20155 cfgfile="${ofile}T"
20156 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20157 $RM "$cfgfile"
20158
20159 cat <<_LT_EOF >> "$cfgfile"
20160 #! $SHELL
20161
20162 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20163 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20164 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20165 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20166 #
20167 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20168 # 2006, 2007, 2008 Free Software Foundation, Inc.
20169 # Written by Gordon Matzigkeit, 1996
20170 #
20171 # This file is part of GNU Libtool.
20172 #
20173 # GNU Libtool is free software; you can redistribute it and/or
20174 # modify it under the terms of the GNU General Public License as
20175 # published by the Free Software Foundation; either version 2 of
20176 # the License, or (at your option) any later version.
20177 #
20178 # As a special exception to the GNU General Public License,
20179 # if you distribute this file as part of a program or library that
20180 # is built using GNU Libtool, you may include this file under the
20181 # same distribution terms that you use for the rest of that program.
20182 #
20183 # GNU Libtool is distributed in the hope that it will be useful,
20184 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20185 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20186 # GNU General Public License for more details.
20187 #
20188 # You should have received a copy of the GNU General Public License
20189 # along with GNU Libtool; see the file COPYING. If not, a copy
20190 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20191 # obtained by writing to the Free Software Foundation, Inc.,
20192 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20193
20194
20195 # The names of the tagged configurations supported by this script.
20196 available_tags=""
20197
20198 # ### BEGIN LIBTOOL CONFIG
20199
20200 # Which release of libtool.m4 was used?
20201 macro_version=$macro_version
20202 macro_revision=$macro_revision
20203
20204 # Whether or not to build shared libraries.
20205 build_libtool_libs=$enable_shared
20206
20207 # Whether or not to build static libraries.
20208 build_old_libs=$enable_static
20209
20210 # What type of objects to build.
20211 pic_mode=$pic_mode
20212
20213 # Whether or not to optimize for fast installation.
20214 fast_install=$enable_fast_install
20215
20216 # The host system.
20217 host_alias=$host_alias
20218 host=$host
20219 host_os=$host_os
20220
20221 # The build system.
20222 build_alias=$build_alias
20223 build=$build
20224 build_os=$build_os
20225
20226 # A sed program that does not truncate output.
20227 SED=$lt_SED
20228
20229 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20230 Xsed="\$SED -e 1s/^X//"
20231
20232 # A grep program that handles long lines.
20233 GREP=$lt_GREP
20234
20235 # An ERE matcher.
20236 EGREP=$lt_EGREP
20237
20238 # A literal string matcher.
20239 FGREP=$lt_FGREP
20240
20241 # A BSD- or MS-compatible name lister.
20242 NM=$lt_NM
20243
20244 # Whether we need soft or hard links.
20245 LN_S=$lt_LN_S
20246
20247 # What is the maximum length of a command?
20248 max_cmd_len=$max_cmd_len
20249
20250 # Object file suffix (normally "o").
20251 objext=$ac_objext
20252
20253 # Executable file suffix (normally "").
20254 exeext=$exeext
20255
20256 # whether the shell understands "unset".
20257 lt_unset=$lt_unset
20258
20259 # turn spaces into newlines.
20260 SP2NL=$lt_lt_SP2NL
20261
20262 # turn newlines into spaces.
20263 NL2SP=$lt_lt_NL2SP
20264
20265 # How to create reloadable object files.
20266 reload_flag=$lt_reload_flag
20267 reload_cmds=$lt_reload_cmds
20268
20269 # An object symbol dumper.
20270 OBJDUMP=$lt_OBJDUMP
20271
20272 # Method to check whether dependent libraries are shared objects.
20273 deplibs_check_method=$lt_deplibs_check_method
20274
20275 # Command to use when deplibs_check_method == "file_magic".
20276 file_magic_cmd=$lt_file_magic_cmd
20277
20278 # The archiver.
20279 AR=$lt_AR
20280 AR_FLAGS=$lt_AR_FLAGS
20281
20282 # A symbol stripping program.
20283 STRIP=$lt_STRIP
20284
20285 # Commands used to install an old-style archive.
20286 RANLIB=$lt_RANLIB
20287 old_postinstall_cmds=$lt_old_postinstall_cmds
20288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20289
20290 # A C compiler.
20291 LTCC=$lt_CC
20292
20293 # LTCC compiler flags.
20294 LTCFLAGS=$lt_CFLAGS
20295
20296 # Take the output of nm and produce a listing of raw symbols and C names.
20297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20298
20299 # Transform the output of nm in a proper C declaration.
20300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20301
20302 # Transform the output of nm in a C name address pair.
20303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20304
20305 # Transform the output of nm in a C name address pair when lib prefix is needed.
20306 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20307
20308 # The name of the directory that contains temporary libtool files.
20309 objdir=$objdir
20310
20311 # Shell to use when invoking shell scripts.
20312 SHELL=$lt_SHELL
20313
20314 # An echo program that does not interpret backslashes.
20315 ECHO=$lt_ECHO
20316
20317 # Used to examine libraries when file_magic_cmd begins with "file".
20318 MAGIC_CMD=$MAGIC_CMD
20319
20320 # Must we lock files when doing compilation?
20321 need_locks=$lt_need_locks
20322
20323 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20324 DSYMUTIL=$lt_DSYMUTIL
20325
20326 # Tool to change global to local symbols on Mac OS X.
20327 NMEDIT=$lt_NMEDIT
20328
20329 # Tool to manipulate fat objects and archives on Mac OS X.
20330 LIPO=$lt_LIPO
20331
20332 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20333 OTOOL=$lt_OTOOL
20334
20335 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20336 OTOOL64=$lt_OTOOL64
20337
20338 # Old archive suffix (normally "a").
20339 libext=$libext
20340
20341 # Shared library suffix (normally ".so").
20342 shrext_cmds=$lt_shrext_cmds
20343
20344 # The commands to extract the exported symbol list from a shared archive.
20345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20346
20347 # Variables whose values should be saved in libtool wrapper scripts and
20348 # restored at link time.
20349 variables_saved_for_relink=$lt_variables_saved_for_relink
20350
20351 # Do we need the "lib" prefix for modules?
20352 need_lib_prefix=$need_lib_prefix
20353
20354 # Do we need a version for libraries?
20355 need_version=$need_version
20356
20357 # Library versioning type.
20358 version_type=$version_type
20359
20360 # Shared library runtime path variable.
20361 runpath_var=$runpath_var
20362
20363 # Shared library path variable.
20364 shlibpath_var=$shlibpath_var
20365
20366 # Is shlibpath searched before the hard-coded library search path?
20367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20368
20369 # Format of library name prefix.
20370 libname_spec=$lt_libname_spec
20371
20372 # List of archive names. First name is the real one, the rest are links.
20373 # The last name is the one that the linker finds with -lNAME
20374 library_names_spec=$lt_library_names_spec
20375
20376 # The coded name of the library, if different from the real name.
20377 soname_spec=$lt_soname_spec
20378
20379 # Command to use after installation of a shared archive.
20380 postinstall_cmds=$lt_postinstall_cmds
20381
20382 # Command to use after uninstallation of a shared archive.
20383 postuninstall_cmds=$lt_postuninstall_cmds
20384
20385 # Commands used to finish a libtool library installation in a directory.
20386 finish_cmds=$lt_finish_cmds
20387
20388 # As "finish_cmds", except a single script fragment to be evaled but
20389 # not shown.
20390 finish_eval=$lt_finish_eval
20391
20392 # Whether we should hardcode library paths into libraries.
20393 hardcode_into_libs=$hardcode_into_libs
20394
20395 # Compile-time system search path for libraries.
20396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20397
20398 # Run-time system search path for libraries.
20399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20400
20401 # Whether dlopen is supported.
20402 dlopen_support=$enable_dlopen
20403
20404 # Whether dlopen of programs is supported.
20405 dlopen_self=$enable_dlopen_self
20406
20407 # Whether dlopen of statically linked programs is supported.
20408 dlopen_self_static=$enable_dlopen_self_static
20409
20410 # Commands to strip libraries.
20411 old_striplib=$lt_old_striplib
20412 striplib=$lt_striplib
20413
20414
20415 # The linker used to build libraries.
20416 LD=$lt_LD
20417
20418 # Commands used to build an old-style archive.
20419 old_archive_cmds=$lt_old_archive_cmds
20420
20421 # A language specific compiler.
20422 CC=$lt_compiler
20423
20424 # Is the compiler the GNU compiler?
20425 with_gcc=$GCC
20426
20427 # Compiler flag to turn off builtin functions.
20428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20429
20430 # How to pass a linker flag through the compiler.
20431 wl=$lt_lt_prog_compiler_wl
20432
20433 # Additional compiler flags for building library objects.
20434 pic_flag=$lt_lt_prog_compiler_pic
20435
20436 # Compiler flag to prevent dynamic linking.
20437 link_static_flag=$lt_lt_prog_compiler_static
20438
20439 # Does compiler simultaneously support -c and -o options?
20440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20441
20442 # Whether or not to add -lc for building shared libraries.
20443 build_libtool_need_lc=$archive_cmds_need_lc
20444
20445 # Whether or not to disallow shared libs when runtime libs are static.
20446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20447
20448 # Compiler flag to allow reflexive dlopens.
20449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20450
20451 # Compiler flag to generate shared objects directly from archives.
20452 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20453
20454 # Whether the compiler copes with passing no objects directly.
20455 compiler_needs_object=$lt_compiler_needs_object
20456
20457 # Create an old-style archive from a shared archive.
20458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20459
20460 # Create a temporary old-style archive to link instead of a shared archive.
20461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20462
20463 # Commands used to build a shared archive.
20464 archive_cmds=$lt_archive_cmds
20465 archive_expsym_cmds=$lt_archive_expsym_cmds
20466
20467 # Commands used to build a loadable module if different from building
20468 # a shared archive.
20469 module_cmds=$lt_module_cmds
20470 module_expsym_cmds=$lt_module_expsym_cmds
20471
20472 # Whether we are building with GNU ld or not.
20473 with_gnu_ld=$lt_with_gnu_ld
20474
20475 # Flag that allows shared libraries with undefined symbols to be built.
20476 allow_undefined_flag=$lt_allow_undefined_flag
20477
20478 # Flag that enforces no undefined symbols.
20479 no_undefined_flag=$lt_no_undefined_flag
20480
20481 # Flag to hardcode \$libdir into a binary during linking.
20482 # This must work even if \$libdir does not exist
20483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20484
20485 # If ld is used when linking, flag to hardcode \$libdir into a binary
20486 # during linking. This must work even if \$libdir does not exist.
20487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20488
20489 # Whether we need a single "-rpath" flag with a separated argument.
20490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20491
20492 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20493 # DIR into the resulting binary.
20494 hardcode_direct=$hardcode_direct
20495
20496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20497 # DIR into the resulting binary and the resulting library dependency is
20498 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20499 # library is relocated.
20500 hardcode_direct_absolute=$hardcode_direct_absolute
20501
20502 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20503 # into the resulting binary.
20504 hardcode_minus_L=$hardcode_minus_L
20505
20506 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20507 # into the resulting binary.
20508 hardcode_shlibpath_var=$hardcode_shlibpath_var
20509
20510 # Set to "yes" if building a shared library automatically hardcodes DIR
20511 # into the library and all subsequent libraries and executables linked
20512 # against it.
20513 hardcode_automatic=$hardcode_automatic
20514
20515 # Set to yes if linker adds runtime paths of dependent libraries
20516 # to runtime path list.
20517 inherit_rpath=$inherit_rpath
20518
20519 # Whether libtool must link a program against all its dependency libraries.
20520 link_all_deplibs=$link_all_deplibs
20521
20522 # Fix the shell variable \$srcfile for the compiler.
20523 fix_srcfile_path=$lt_fix_srcfile_path
20524
20525 # Set to "yes" if exported symbols are required.
20526 always_export_symbols=$always_export_symbols
20527
20528 # The commands to list exported symbols.
20529 export_symbols_cmds=$lt_export_symbols_cmds
20530
20531 # Symbols that should not be listed in the preloaded symbols.
20532 exclude_expsyms=$lt_exclude_expsyms
20533
20534 # Symbols that must always be exported.
20535 include_expsyms=$lt_include_expsyms
20536
20537 # Commands necessary for linking programs (against libraries) with templates.
20538 prelink_cmds=$lt_prelink_cmds
20539
20540 # Specify filename containing input files.
20541 file_list_spec=$lt_file_list_spec
20542
20543 # How to hardcode a shared library path into an executable.
20544 hardcode_action=$hardcode_action
20545
20546 # ### END LIBTOOL CONFIG
20547
20548 _LT_EOF
20549
20550 case $host_os in
20551 aix3*)
20552 cat <<\_LT_EOF >> "$cfgfile"
20553 # AIX sometimes has problems with the GCC collect2 program. For some
20554 # reason, if we set the COLLECT_NAMES environment variable, the problems
20555 # vanish in a puff of smoke.
20556 if test "X${COLLECT_NAMES+set}" != Xset; then
20557 COLLECT_NAMES=
20558 export COLLECT_NAMES
20559 fi
20560 _LT_EOF
20561 ;;
20562 esac
20563
20564
20565 ltmain="$ac_aux_dir/ltmain.sh"
20566
20567
20568 # We use sed instead of cat because bash on DJGPP gets confused if
20569 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20570 # text mode, it properly converts lines to CR/LF. This bash problem
20571 # is reportedly fixed, but why not run on old versions too?
20572 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20573 || (rm -f "$cfgfile"; exit 1)
20574
20575 case $xsi_shell in
20576 yes)
20577 cat << \_LT_EOF >> "$cfgfile"
20578
20579 # func_dirname file append nondir_replacement
20580 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20581 # otherwise set result to NONDIR_REPLACEMENT.
20582 func_dirname ()
20583 {
20584 case ${1} in
20585 */*) func_dirname_result="${1%/*}${2}" ;;
20586 * ) func_dirname_result="${3}" ;;
20587 esac
20588 }
20589
20590 # func_basename file
20591 func_basename ()
20592 {
20593 func_basename_result="${1##*/}"
20594 }
20595
20596 # func_dirname_and_basename file append nondir_replacement
20597 # perform func_basename and func_dirname in a single function
20598 # call:
20599 # dirname: Compute the dirname of FILE. If nonempty,
20600 # add APPEND to the result, otherwise set result
20601 # to NONDIR_REPLACEMENT.
20602 # value returned in "$func_dirname_result"
20603 # basename: Compute filename of FILE.
20604 # value retuned in "$func_basename_result"
20605 # Implementation must be kept synchronized with func_dirname
20606 # and func_basename. For efficiency, we do not delegate to
20607 # those functions but instead duplicate the functionality here.
20608 func_dirname_and_basename ()
20609 {
20610 case ${1} in
20611 */*) func_dirname_result="${1%/*}${2}" ;;
20612 * ) func_dirname_result="${3}" ;;
20613 esac
20614 func_basename_result="${1##*/}"
20615 }
20616
20617 # func_stripname prefix suffix name
20618 # strip PREFIX and SUFFIX off of NAME.
20619 # PREFIX and SUFFIX must not contain globbing or regex special
20620 # characters, hashes, percent signs, but SUFFIX may contain a leading
20621 # dot (in which case that matches only a dot).
20622 func_stripname ()
20623 {
20624 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20625 # positional parameters, so assign one to ordinary parameter first.
20626 func_stripname_result=${3}
20627 func_stripname_result=${func_stripname_result#"${1}"}
20628 func_stripname_result=${func_stripname_result%"${2}"}
20629 }
20630
20631 # func_opt_split
20632 func_opt_split ()
20633 {
20634 func_opt_split_opt=${1%%=*}
20635 func_opt_split_arg=${1#*=}
20636 }
20637
20638 # func_lo2o object
20639 func_lo2o ()
20640 {
20641 case ${1} in
20642 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20643 *) func_lo2o_result=${1} ;;
20644 esac
20645 }
20646
20647 # func_xform libobj-or-source
20648 func_xform ()
20649 {
20650 func_xform_result=${1%.*}.lo
20651 }
20652
20653 # func_arith arithmetic-term...
20654 func_arith ()
20655 {
20656 func_arith_result=$(( $* ))
20657 }
20658
20659 # func_len string
20660 # STRING may not start with a hyphen.
20661 func_len ()
20662 {
20663 func_len_result=${#1}
20664 }
20665
20666 _LT_EOF
20667 ;;
20668 *) # Bourne compatible functions.
20669 cat << \_LT_EOF >> "$cfgfile"
20670
20671 # func_dirname file append nondir_replacement
20672 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20673 # otherwise set result to NONDIR_REPLACEMENT.
20674 func_dirname ()
20675 {
20676 # Extract subdirectory from the argument.
20677 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20678 if test "X$func_dirname_result" = "X${1}"; then
20679 func_dirname_result="${3}"
20680 else
20681 func_dirname_result="$func_dirname_result${2}"
20682 fi
20683 }
20684
20685 # func_basename file
20686 func_basename ()
20687 {
20688 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20689 }
20690
20691
20692 # func_stripname prefix suffix name
20693 # strip PREFIX and SUFFIX off of NAME.
20694 # PREFIX and SUFFIX must not contain globbing or regex special
20695 # characters, hashes, percent signs, but SUFFIX may contain a leading
20696 # dot (in which case that matches only a dot).
20697 # func_strip_suffix prefix name
20698 func_stripname ()
20699 {
20700 case ${2} in
20701 .*) func_stripname_result=`$ECHO "X${3}" \
20702 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20703 *) func_stripname_result=`$ECHO "X${3}" \
20704 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20705 esac
20706 }
20707
20708 # sed scripts:
20709 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20710 my_sed_long_arg='1s/^-[^=]*=//'
20711
20712 # func_opt_split
20713 func_opt_split ()
20714 {
20715 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20716 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20717 }
20718
20719 # func_lo2o object
20720 func_lo2o ()
20721 {
20722 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20723 }
20724
20725 # func_xform libobj-or-source
20726 func_xform ()
20727 {
20728 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20729 }
20730
20731 # func_arith arithmetic-term...
20732 func_arith ()
20733 {
20734 func_arith_result=`expr "$@"`
20735 }
20736
20737 # func_len string
20738 # STRING may not start with a hyphen.
20739 func_len ()
20740 {
20741 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20742 }
20743
20744 _LT_EOF
20745 esac
20746
20747 case $lt_shell_append in
20748 yes)
20749 cat << \_LT_EOF >> "$cfgfile"
20750
20751 # func_append var value
20752 # Append VALUE to the end of shell variable VAR.
20753 func_append ()
20754 {
20755 eval "$1+=\$2"
20756 }
20757 _LT_EOF
20758 ;;
20759 *)
20760 cat << \_LT_EOF >> "$cfgfile"
20761
20762 # func_append var value
20763 # Append VALUE to the end of shell variable VAR.
20764 func_append ()
20765 {
20766 eval "$1=\$$1\$2"
20767 }
20768
20769 _LT_EOF
20770 ;;
20771 esac
20772
20773
20774 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20775 || (rm -f "$cfgfile"; exit 1)
20776
20777 mv -f "$cfgfile" "$ofile" ||
20778 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20779 chmod +x "$ofile"
20780
20781 ;;
20782
20783 esac
20784 done # for ac_tag
20785
20786
20787 { (exit 0); exit 0; }
20788 _ACEOF
20789 chmod +x $CONFIG_STATUS
20790 ac_clean_files=$ac_clean_files_save
20791
20792 test $ac_write_fail = 0 ||
20793 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20794 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20795 { (exit 1); exit 1; }; }
20796
20797
20798 # configure is writing to config.log, and then calls config.status.
20799 # config.status does its own redirection, appending to config.log.
20800 # Unfortunately, on DOS this fails, as config.log is still kept open
20801 # by configure, so config.status won't be able to write to it; its
20802 # output is simply discarded. So we exec the FD to /dev/null,
20803 # effectively closing config.log, so it can be properly (re)opened and
20804 # appended to by config.status. When coming back to configure, we
20805 # need to make the FD available again.
20806 if test "$no_create" != yes; then
20807 ac_cs_success=:
20808 ac_config_status_args=
20809 test "$silent" = yes &&
20810 ac_config_status_args="$ac_config_status_args --quiet"
20811 exec 5>/dev/null
20812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20813 exec 5>>config.log
20814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20815 # would make configure fail if this is the last instruction.
20816 $ac_cs_success || { (exit 1); exit 1; }
20817 fi
20818 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20819 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20820 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20821 fi
20822