]> git.proxmox.com Git - mirror_zfs.git/blob - configure
Add support for 'make -s' silent builds
[mirror_zfs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 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 if test -r $kernelbuild/include/linux/version.h &&
11546 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
11547
11548 kernsrcver=`(echo "#include <linux/version.h>";
11549 echo "kernsrcver=UTS_RELEASE") |
11550 cpp -I $kernelbuild/include |
11551 grep "^kernsrcver=" | cut -d \" -f 2`
11552
11553 elif test -r $kernelbuild/include/linux/utsrelease.h &&
11554 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
11555
11556 kernsrcver=`(echo "#include <linux/utsrelease.h>";
11557 echo "kernsrcver=UTS_RELEASE") |
11558 cpp -I $kernelbuild/include |
11559 grep "^kernsrcver=" | cut -d \" -f 2`
11560 fi
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:
11566 *** Cannot determine the version of the linux kernel source.
11567 *** Please prepare the kernel before running this script" >&5
11568 $as_echo "$as_me: error:
11569 *** Cannot determine the version of the linux kernel source.
11570 *** Please prepare the kernel before running this script" >&2;}
11571 { (exit 1); exit 1; }; }
11572 fi
11573
11574 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11575 $as_echo "$kernsrcver" >&6; }
11576
11577 LINUX=${kernelsrc}
11578 LINUX_OBJ=${kernelbuild}
11579 LINUX_VERSION=${kernsrcver}
11580
11581
11582
11583
11584
11585
11586 modpost=$LINUX/scripts/Makefile.modpost
11587 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11588 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11589 if test -f "$modpost"; then
11590 if grep -q Modules.symvers $modpost; then
11591 LINUX_SYMBOLS=Modules.symvers
11592 else
11593 LINUX_SYMBOLS=Module.symvers
11594 fi
11595 else
11596 LINUX_SYMBOLS=NONE
11597 fi
11598 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11599 $as_echo "$LINUX_SYMBOLS" >&6; }
11600
11601
11602
11603
11604 abs_srcdir=`readlink -f ${srcdir}`
11605 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
11606 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
11607 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
11608
11609 if test "${LINUX_OBJ}" != "${LINUX}"; then
11610 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11611 fi
11612
11613
11614
11615
11616
11617 # Check whether --enable-debug was given.
11618 if test "${enable_debug+set}" = set; then
11619 enableval=$enable_debug;
11620 else
11621 enable_debug=no
11622 fi
11623
11624
11625 if test "x$enable_debug" = xyes; then
11626 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
11627 else
11628 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11629 fi
11630
11631
11632 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11633 $as_echo_n "checking whether debugging is enabled... " >&6; }
11634 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11635 $as_echo "$enable_debug" >&6; }
11636
11637
11638 # Check whether --enable-debug-kmem was given.
11639 if test "${enable_debug_kmem+set}" = set; then
11640 enableval=$enable_debug_kmem;
11641 else
11642 enable_debug_kmem=yes
11643 fi
11644
11645
11646 if test "x$enable_debug_kmem" = xyes; then
11647
11648 cat >>confdefs.h <<\_ACEOF
11649 #define DEBUG_KMEM 1
11650 _ACEOF
11651
11652 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11653 fi
11654
11655
11656 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11657 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11658 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11659 $as_echo "$enable_debug_kmem" >&6; }
11660
11661
11662 # Check whether --enable-debug-kmem-tracking was given.
11663 if test "${enable_debug_kmem_tracking+set}" = set; then
11664 enableval=$enable_debug_kmem_tracking;
11665 else
11666 enable_debug_kmem_tracking=no
11667 fi
11668
11669
11670 if test "x$enable_debug_kmem_tracking" = xyes; then
11671
11672 cat >>confdefs.h <<\_ACEOF
11673 #define DEBUG_KMEM_TRACKING 1
11674 _ACEOF
11675
11676 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11677 fi
11678
11679
11680 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11681 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11682 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11683 $as_echo "$enable_debug_kmem_tracking" >&6; }
11684
11685
11686 # Check whether --enable-atomic-spinlocks was given.
11687 if test "${enable_atomic_spinlocks+set}" = set; then
11688 enableval=$enable_atomic_spinlocks;
11689 else
11690 enable_atomic_spinlocks=check
11691 fi
11692
11693
11694
11695
11696 cat >conftest.c <<_ACEOF
11697 /* confdefs.h. */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702
11703
11704 #include <asm/atomic.h>
11705
11706 int
11707 main (void)
11708 {
11709
11710 atomic64_t *ptr;
11711
11712 ;
11713 return 0;
11714 }
11715
11716 _ACEOF
11717
11718
11719 rm -Rf build && mkdir -p build
11720 echo "obj-m := conftest.o" >build/Makefile
11721 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732
11733 have_atomic64_t=yes
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_ATOMIC64_T 1
11737 _ACEOF
11738
11739
11740 else
11741 $as_echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744 have_atomic64_t=no
11745
11746
11747
11748 fi
11749
11750 rm -Rf build
11751
11752
11753
11754 if test "x$enable_atomic_spinlocks" = xcheck; then
11755
11756 if test "x$have_atomic64_t" = xyes; then
11757
11758 enable_atomic_spinlocks=no
11759
11760 else
11761
11762 enable_atomic_spinlocks=yes
11763
11764 fi
11765
11766
11767 fi
11768
11769
11770 if test "x$enable_atomic_spinlocks" = xyes; then
11771
11772
11773 cat >>confdefs.h <<\_ACEOF
11774 #define ATOMIC_SPINLOCK 1
11775 _ACEOF
11776
11777
11778 else
11779
11780 if test "x$have_atomic64_t" = xno; then
11781
11782 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11784 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11785 See \`config.log' for more details." >&5
11786 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11787 See \`config.log' for more details." >&2;}
11788 { (exit 1); exit 1; }; }; }
11789
11790 fi
11791
11792
11793 fi
11794
11795
11796 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
11797 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11798 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
11799 $as_echo "$enable_atomic_spinlocks" >&6; }
11800
11801 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
11802 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11803 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
11804 $as_echo "$have_atomic64_t" >&6; }
11805
11806 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
11807 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
11808
11809
11810 cat >conftest.c <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816
11817
11818 #include <asm/atomic.h>
11819
11820 int
11821 main (void)
11822 {
11823
11824 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
11825
11826 ;
11827 return 0;
11828 }
11829
11830 _ACEOF
11831
11832
11833 rm -Rf build && mkdir -p build
11834 echo "obj-m := conftest.o" >build/Makefile
11835 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846
11847 { $as_echo "$as_me:$LINENO: result: yes" >&5
11848 $as_echo "yes" >&6; }
11849
11850 cat >>confdefs.h <<\_ACEOF
11851 #define HAVE_ATOMIC64_CMPXCHG 1
11852 _ACEOF
11853
11854
11855 else
11856 $as_echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 { $as_echo "$as_me:$LINENO: result: no" >&5
11860 $as_echo "no" >&6; }
11861
11862
11863
11864 fi
11865
11866 rm -Rf build
11867
11868
11869
11870 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
11871 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
11872
11873
11874 cat >conftest.c <<_ACEOF
11875 /* confdefs.h. */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880
11881
11882 #include <asm/atomic.h>
11883
11884 int
11885 main (void)
11886 {
11887
11888 atomic64_xchg((atomic64_t *)NULL, 0);
11889
11890 ;
11891 return 0;
11892 }
11893
11894 _ACEOF
11895
11896
11897 rm -Rf build && mkdir -p build
11898 echo "obj-m := conftest.o" >build/Makefile
11899 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910
11911 { $as_echo "$as_me:$LINENO: result: yes" >&5
11912 $as_echo "yes" >&6; }
11913
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_ATOMIC64_XCHG 1
11916 _ACEOF
11917
11918
11919 else
11920 $as_echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 { $as_echo "$as_me:$LINENO: result: no" >&5
11924 $as_echo "no" >&6; }
11925
11926
11927
11928 fi
11929
11930 rm -Rf build
11931
11932
11933
11934 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
11935 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
11936
11937
11938 cat >conftest.c <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944
11945
11946 #include <linux/types.h>
11947
11948 int
11949 main (void)
11950 {
11951
11952 uintptr_t *ptr;
11953
11954 ;
11955 return 0;
11956 }
11957
11958 _ACEOF
11959
11960
11961 rm -Rf build && mkdir -p build
11962 echo "obj-m := conftest.o" >build/Makefile
11963 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974
11975 { $as_echo "$as_me:$LINENO: result: yes" >&5
11976 $as_echo "yes" >&6; }
11977
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_UINTPTR_T 1
11980 _ACEOF
11981
11982
11983 else
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 { $as_echo "$as_me:$LINENO: result: no" >&5
11988 $as_echo "no" >&6; }
11989
11990
11991
11992 fi
11993
11994 rm -Rf build
11995
11996
11997
11998 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
11999 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12000
12001
12002 cat >conftest.c <<_ACEOF
12003 /* confdefs.h. */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008
12009
12010 #include <linux/workqueue.h>
12011
12012 int
12013 main (void)
12014 {
12015
12016 struct work_struct work;
12017 INIT_WORK(&work, NULL, NULL);
12018
12019 ;
12020 return 0;
12021 }
12022
12023 _ACEOF
12024
12025
12026 rm -Rf build && mkdir -p build
12027 echo "obj-m := conftest.o" >build/Makefile
12028 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039
12040 { $as_echo "$as_me:$LINENO: result: yes" >&5
12041 $as_echo "yes" >&6; }
12042
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_3ARGS_INIT_WORK 1
12045 _ACEOF
12046
12047
12048 else
12049 $as_echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 { $as_echo "$as_me:$LINENO: result: no" >&5
12053 $as_echo "no" >&6; }
12054
12055
12056
12057 fi
12058
12059 rm -Rf build
12060
12061
12062
12063 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12064 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12065
12066
12067 cat >conftest.c <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073
12074
12075 #include <linux/sysctl.h>
12076
12077 int
12078 main (void)
12079 {
12080
12081 return register_sysctl_table(NULL,0);
12082
12083 ;
12084 return 0;
12085 }
12086
12087 _ACEOF
12088
12089
12090 rm -Rf build && mkdir -p build
12091 echo "obj-m := conftest.o" >build/Makefile
12092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103
12104 { $as_echo "$as_me:$LINENO: result: yes" >&5
12105 $as_echo "yes" >&6; }
12106
12107 cat >>confdefs.h <<\_ACEOF
12108 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12109 _ACEOF
12110
12111
12112 else
12113 $as_echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116 { $as_echo "$as_me:$LINENO: result: no" >&5
12117 $as_echo "no" >&6; }
12118
12119
12120
12121 fi
12122
12123 rm -Rf build
12124
12125
12126
12127
12128 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12129 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12130
12131
12132 cat >conftest.c <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138
12139
12140 #include <linux/mm.h>
12141
12142 int
12143 main (void)
12144 {
12145
12146 return set_shrinker(DEFAULT_SEEKS, NULL);
12147
12148 ;
12149 return 0;
12150 }
12151
12152 _ACEOF
12153
12154
12155 rm -Rf build && mkdir -p build
12156 echo "obj-m := conftest.o" >build/Makefile
12157 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168
12169 { $as_echo "$as_me:$LINENO: result: yes" >&5
12170 $as_echo "yes" >&6; }
12171
12172 cat >>confdefs.h <<\_ACEOF
12173 #define HAVE_SET_SHRINKER 1
12174 _ACEOF
12175
12176
12177 else
12178 $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181 { $as_echo "$as_me:$LINENO: result: no" >&5
12182 $as_echo "no" >&6; }
12183
12184
12185
12186 fi
12187
12188 rm -Rf build
12189
12190
12191
12192 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12193 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12194
12195
12196 cat >conftest.c <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202
12203
12204 #include <linux/namei.h>
12205
12206 int
12207 main (void)
12208 {
12209
12210 struct nameidata nd;
12211
12212 nd.path.mnt = NULL;
12213 nd.path.dentry = NULL;
12214
12215 ;
12216 return 0;
12217 }
12218
12219 _ACEOF
12220
12221
12222 rm -Rf build && mkdir -p build
12223 echo "obj-m := conftest.o" >build/Makefile
12224 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235
12236 { $as_echo "$as_me:$LINENO: result: yes" >&5
12237 $as_echo "yes" >&6; }
12238
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_PATH_IN_NAMEIDATA 1
12241 _ACEOF
12242
12243
12244 else
12245 $as_echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248 { $as_echo "$as_me:$LINENO: result: no" >&5
12249 $as_echo "no" >&6; }
12250
12251
12252
12253 fi
12254
12255 rm -Rf build
12256
12257
12258
12259
12260 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12261 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12262 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12263 $LINUX_OBJ/Module*.symvers 2>/dev/null
12264 rc=$?
12265 if test $rc -ne 0; then
12266 export=0
12267 for file in kernel/sched.c; do
12268 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12269 "$LINUX_OBJ/$file" 2>/dev/null
12270 rc=$?
12271 if test $rc -eq 0; then
12272 export=1
12273 break;
12274 fi
12275 done
12276 if test $export -eq 0; then
12277 { $as_echo "$as_me:$LINENO: result: no" >&5
12278 $as_echo "no" >&6; }
12279
12280 else
12281 { $as_echo "$as_me:$LINENO: result: yes" >&5
12282 $as_echo "yes" >&6; }
12283
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_TASK_CURR 1
12286 _ACEOF
12287
12288 fi
12289 else
12290 { $as_echo "$as_me:$LINENO: result: yes" >&5
12291 $as_echo "yes" >&6; }
12292
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_TASK_CURR 1
12295 _ACEOF
12296
12297 fi
12298
12299
12300 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12301 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12302
12303
12304 cat >conftest.c <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310
12311
12312 #include <linux/sysctl.h>
12313
12314 int
12315 main (void)
12316 {
12317
12318 #ifndef CTL_UNNUMBERED
12319 #error CTL_UNNUMBERED undefined
12320 #endif
12321
12322 ;
12323 return 0;
12324 }
12325
12326 _ACEOF
12327
12328
12329 rm -Rf build && mkdir -p build
12330 echo "obj-m := conftest.o" >build/Makefile
12331 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342
12343 { $as_echo "$as_me:$LINENO: result: yes" >&5
12344 $as_echo "yes" >&6; }
12345
12346 cat >>confdefs.h <<\_ACEOF
12347 #define HAVE_CTL_UNNUMBERED 1
12348 _ACEOF
12349
12350
12351 else
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 { $as_echo "$as_me:$LINENO: result: no" >&5
12356 $as_echo "no" >&6; }
12357
12358
12359
12360 fi
12361
12362 rm -Rf build
12363
12364
12365
12366 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12367 $as_echo_n "checking whether fls64() is available... " >&6; }
12368
12369
12370 cat >conftest.c <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376
12377
12378 #include <linux/bitops.h>
12379
12380 int
12381 main (void)
12382 {
12383
12384 return fls64(0);
12385
12386 ;
12387 return 0;
12388 }
12389
12390 _ACEOF
12391
12392
12393 rm -Rf build && mkdir -p build
12394 echo "obj-m := conftest.o" >build/Makefile
12395 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
12406
12407 { $as_echo "$as_me:$LINENO: result: yes" >&5
12408 $as_echo "yes" >&6; }
12409
12410 cat >>confdefs.h <<\_ACEOF
12411 #define HAVE_FLS64 1
12412 _ACEOF
12413
12414
12415 else
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 { $as_echo "$as_me:$LINENO: result: no" >&5
12420 $as_echo "no" >&6; }
12421
12422
12423
12424 fi
12425
12426 rm -Rf build
12427
12428
12429
12430
12431 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12432 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12433 grep -q -E '[[:space:]]device_create[[:space:]]' \
12434 $LINUX_OBJ/Module*.symvers 2>/dev/null
12435 rc=$?
12436 if test $rc -ne 0; then
12437 export=0
12438 for file in drivers/base/core.c; do
12439 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12440 "$LINUX_OBJ/$file" 2>/dev/null
12441 rc=$?
12442 if test $rc -eq 0; then
12443 export=1
12444 break;
12445 fi
12446 done
12447 if test $export -eq 0; then
12448 { $as_echo "$as_me:$LINENO: result: no" >&5
12449 $as_echo "no" >&6; }
12450
12451 else
12452 { $as_echo "$as_me:$LINENO: result: yes" >&5
12453 $as_echo "yes" >&6; }
12454
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_DEVICE_CREATE 1
12457 _ACEOF
12458
12459 fi
12460 else
12461 { $as_echo "$as_me:$LINENO: result: yes" >&5
12462 $as_echo "yes" >&6; }
12463
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_DEVICE_CREATE 1
12466 _ACEOF
12467
12468 fi
12469
12470
12471
12472 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12473 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12474 tmp_flags="$EXTRA_KCFLAGS"
12475 EXTRA_KCFLAGS="-Werror"
12476
12477
12478 cat >conftest.c <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484
12485
12486 #include <linux/device.h>
12487
12488 int
12489 main (void)
12490 {
12491
12492 device_create(NULL, NULL, 0, NULL, "%d", 1);
12493
12494 ;
12495 return 0;
12496 }
12497
12498 _ACEOF
12499
12500
12501 rm -Rf build && mkdir -p build
12502 echo "obj-m := conftest.o" >build/Makefile
12503 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514
12515 { $as_echo "$as_me:$LINENO: result: yes" >&5
12516 $as_echo "yes" >&6; }
12517
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_5ARGS_DEVICE_CREATE 1
12520 _ACEOF
12521
12522
12523 else
12524 $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 { $as_echo "$as_me:$LINENO: result: no" >&5
12528 $as_echo "no" >&6; }
12529
12530
12531
12532 fi
12533
12534 rm -Rf build
12535
12536
12537 EXTRA_KCFLAGS="$tmp_flags"
12538
12539
12540 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
12541 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
12542 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12543 $LINUX_OBJ/Module*.symvers 2>/dev/null
12544 rc=$?
12545 if test $rc -ne 0; then
12546 export=0
12547 for file in drivers/base/class.c; do
12548 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12549 "$LINUX_OBJ/$file" 2>/dev/null
12550 rc=$?
12551 if test $rc -eq 0; then
12552 export=1
12553 break;
12554 fi
12555 done
12556 if test $export -eq 0; then
12557 { $as_echo "$as_me:$LINENO: result: no" >&5
12558 $as_echo "no" >&6; }
12559
12560 else
12561 { $as_echo "$as_me:$LINENO: result: yes" >&5
12562 $as_echo "yes" >&6; }
12563
12564 cat >>confdefs.h <<\_ACEOF
12565 #define HAVE_CLASS_DEVICE_CREATE 1
12566 _ACEOF
12567
12568 fi
12569 else
12570 { $as_echo "$as_me:$LINENO: result: yes" >&5
12571 $as_echo "yes" >&6; }
12572
12573 cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_CLASS_DEVICE_CREATE 1
12575 _ACEOF
12576
12577 fi
12578
12579
12580
12581 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
12582 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
12583 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12584 $LINUX_OBJ/Module*.symvers 2>/dev/null
12585 rc=$?
12586 if test $rc -ne 0; then
12587 export=0
12588 for file in kernel/time.c; do
12589 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12590 "$LINUX_OBJ/$file" 2>/dev/null
12591 rc=$?
12592 if test $rc -eq 0; then
12593 export=1
12594 break;
12595 fi
12596 done
12597 if test $export -eq 0; then
12598 { $as_echo "$as_me:$LINENO: result: no" >&5
12599 $as_echo "no" >&6; }
12600
12601 else
12602 { $as_echo "$as_me:$LINENO: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12607 _ACEOF
12608
12609 fi
12610 else
12611 { $as_echo "$as_me:$LINENO: result: yes" >&5
12612 $as_echo "yes" >&6; }
12613
12614 cat >>confdefs.h <<\_ACEOF
12615 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12616 _ACEOF
12617
12618 fi
12619
12620
12621
12622 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
12623 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
12624
12625
12626 cat >conftest.c <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632
12633
12634 #include <linux/time.h>
12635 void set_normalized_timespec(struct timespec *ts,
12636 time_t sec, long nsec) { }
12637
12638 int
12639 main (void)
12640 {
12641
12642 ;
12643 return 0;
12644 }
12645
12646 _ACEOF
12647
12648
12649 rm -Rf build && mkdir -p build
12650 echo "obj-m := conftest.o" >build/Makefile
12651 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662
12663 { $as_echo "$as_me:$LINENO: result: no" >&5
12664 $as_echo "no" >&6; }
12665
12666 else
12667 $as_echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 { $as_echo "$as_me:$LINENO: result: yes" >&5
12671 $as_echo "yes" >&6; }
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
12675 _ACEOF
12676
12677
12678
12679
12680 fi
12681
12682 rm -Rf build
12683
12684
12685
12686
12687 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
12688 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
12689
12690
12691 cat >conftest.c <<_ACEOF
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697
12698
12699 #include <linux/time.h>
12700
12701 int
12702 main (void)
12703 {
12704
12705 struct timespec a, b, c = { 0 };
12706 c = timespec_sub(a, b);
12707
12708 ;
12709 return 0;
12710 }
12711
12712 _ACEOF
12713
12714
12715 rm -Rf build && mkdir -p build
12716 echo "obj-m := conftest.o" >build/Makefile
12717 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728
12729 { $as_echo "$as_me:$LINENO: result: yes" >&5
12730 $as_echo "yes" >&6; }
12731
12732 cat >>confdefs.h <<\_ACEOF
12733 #define HAVE_TIMESPEC_SUB 1
12734 _ACEOF
12735
12736
12737 else
12738 $as_echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741 { $as_echo "$as_me:$LINENO: result: no" >&5
12742 $as_echo "no" >&6; }
12743
12744
12745
12746 fi
12747
12748 rm -Rf build
12749
12750
12751
12752
12753 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
12754 $as_echo_n "checking whether init_utsname() is available... " >&6; }
12755
12756
12757 cat >conftest.c <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763
12764
12765 #include <linux/utsname.h>
12766
12767 int
12768 main (void)
12769 {
12770
12771 struct new_utsname *a = init_utsname();
12772
12773 ;
12774 return 0;
12775 }
12776
12777 _ACEOF
12778
12779
12780 rm -Rf build && mkdir -p build
12781 echo "obj-m := conftest.o" >build/Makefile
12782 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793
12794 { $as_echo "$as_me:$LINENO: result: yes" >&5
12795 $as_echo "yes" >&6; }
12796
12797 cat >>confdefs.h <<\_ACEOF
12798 #define HAVE_INIT_UTSNAME 1
12799 _ACEOF
12800
12801
12802 else
12803 $as_echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 { $as_echo "$as_me:$LINENO: result: no" >&5
12807 $as_echo "no" >&6; }
12808
12809
12810
12811 fi
12812
12813 rm -Rf build
12814
12815
12816
12817
12818 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
12819 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
12820
12821
12822 cat >conftest.c <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828
12829
12830 #include <linux/fdtable.h>
12831
12832 int
12833 main (void)
12834 {
12835
12836 return 0;
12837
12838 ;
12839 return 0;
12840 }
12841
12842 _ACEOF
12843
12844
12845 rm -Rf build && mkdir -p build
12846 echo "obj-m := conftest.o" >build/Makefile
12847 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858
12859
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_FDTABLE_HEADER 1
12862 _ACEOF
12863
12864 { $as_echo "$as_me:$LINENO: result: yes" >&5
12865 $as_echo "yes" >&6; }
12866
12867
12868 else
12869 $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872 { $as_echo "$as_me:$LINENO: result: no" >&5
12873 $as_echo "no" >&6; }
12874
12875
12876
12877
12878 fi
12879
12880 rm -Rf build
12881
12882
12883
12884
12885
12886 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
12887 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
12888
12889
12890 cat >conftest.c <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896
12897
12898 #include <linux/sched.h>
12899 #include <linux/file.h>
12900 #ifdef HAVE_FDTABLE_HEADER
12901 #include <linux/fdtable.h>
12902 #endif
12903
12904 int
12905 main (void)
12906 {
12907
12908 struct files_struct *files = current->files;
12909 struct fdtable *fdt = files_fdtable(files);
12910
12911 ;
12912 return 0;
12913 }
12914
12915 _ACEOF
12916
12917
12918 rm -Rf build && mkdir -p build
12919 echo "obj-m := conftest.o" >build/Makefile
12920 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931
12932 { $as_echo "$as_me:$LINENO: result: yes" >&5
12933 $as_echo "yes" >&6; }
12934
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_FILES_FDTABLE 1
12937 _ACEOF
12938
12939
12940 else
12941 $as_echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 { $as_echo "$as_me:$LINENO: result: no" >&5
12945 $as_echo "no" >&6; }
12946
12947
12948
12949 fi
12950
12951 rm -Rf build
12952
12953
12954
12955
12956 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
12957 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
12958
12959
12960 cat >conftest.c <<_ACEOF
12961 /* confdefs.h. */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12966
12967
12968 #include <linux/uaccess.h>
12969
12970 int
12971 main (void)
12972 {
12973
12974 return 0;
12975
12976 ;
12977 return 0;
12978 }
12979
12980 _ACEOF
12981
12982
12983 rm -Rf build && mkdir -p build
12984 echo "obj-m := conftest.o" >build/Makefile
12985 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996
12997
12998 cat >>confdefs.h <<\_ACEOF
12999 #define HAVE_UACCESS_HEADER 1
13000 _ACEOF
13001
13002 { $as_echo "$as_me:$LINENO: result: yes" >&5
13003 $as_echo "yes" >&6; }
13004
13005
13006 else
13007 $as_echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13009
13010 { $as_echo "$as_me:$LINENO: result: no" >&5
13011 $as_echo "no" >&6; }
13012
13013
13014
13015
13016 fi
13017
13018 rm -Rf build
13019
13020
13021
13022
13023
13024 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13025 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13026
13027
13028 cat >conftest.c <<_ACEOF
13029 /* confdefs.h. */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034
13035
13036 #include <linux/slab.h>
13037
13038 int
13039 main (void)
13040 {
13041
13042 void *a = kmalloc_node(1, GFP_KERNEL, 0);
13043
13044 ;
13045 return 0;
13046 }
13047
13048 _ACEOF
13049
13050
13051 rm -Rf build && mkdir -p build
13052 echo "obj-m := conftest.o" >build/Makefile
13053 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064
13065 { $as_echo "$as_me:$LINENO: result: yes" >&5
13066 $as_echo "yes" >&6; }
13067
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_KMALLOC_NODE 1
13070 _ACEOF
13071
13072
13073 else
13074 $as_echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 { $as_echo "$as_me:$LINENO: result: no" >&5
13078 $as_echo "no" >&6; }
13079
13080
13081
13082 fi
13083
13084 rm -Rf build
13085
13086
13087
13088
13089 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13090 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13091 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13092 $LINUX_OBJ/Module*.symvers 2>/dev/null
13093 rc=$?
13094 if test $rc -ne 0; then
13095 export=0
13096 for file in ; do
13097 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13098 "$LINUX_OBJ/$file" 2>/dev/null
13099 rc=$?
13100 if test $rc -eq 0; then
13101 export=1
13102 break;
13103 fi
13104 done
13105 if test $export -eq 0; then
13106 { $as_echo "$as_me:$LINENO: result: no" >&5
13107 $as_echo "no" >&6; }
13108
13109 else
13110 { $as_echo "$as_me:$LINENO: result: yes" >&5
13111 $as_echo "yes" >&6; }
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_MONOTONIC_CLOCK 1
13115 _ACEOF
13116
13117 fi
13118 else
13119 { $as_echo "$as_me:$LINENO: result: yes" >&5
13120 $as_echo "yes" >&6; }
13121
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_MONOTONIC_CLOCK 1
13124 _ACEOF
13125
13126 fi
13127
13128
13129
13130 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13131 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13132
13133
13134 cat >conftest.c <<_ACEOF
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140
13141
13142 #include <linux/fs.h>
13143 #include <linux/mutex.h>
13144
13145 int
13146 main (void)
13147 {
13148
13149 struct inode i;
13150 mutex_init(&i.i_mutex);
13151
13152 ;
13153 return 0;
13154 }
13155
13156 _ACEOF
13157
13158
13159 rm -Rf build && mkdir -p build
13160 echo "obj-m := conftest.o" >build/Makefile
13161 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172
13173 { $as_echo "$as_me:$LINENO: result: yes" >&5
13174 $as_echo "yes" >&6; }
13175
13176 cat >>confdefs.h <<\_ACEOF
13177 #define HAVE_INODE_I_MUTEX 1
13178 _ACEOF
13179
13180
13181 else
13182 $as_echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 { $as_echo "$as_me:$LINENO: result: no" >&5
13186 $as_echo "no" >&6; }
13187
13188
13189
13190 fi
13191
13192 rm -Rf build
13193
13194
13195
13196
13197 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13198 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13199
13200
13201 cat >conftest.c <<_ACEOF
13202 /* confdefs.h. */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207
13208
13209 #include <linux/mutex.h>
13210
13211 int
13212 main (void)
13213 {
13214
13215 struct mutex mtx;
13216 mtx.owner = NULL;
13217
13218 ;
13219 return 0;
13220 }
13221
13222 _ACEOF
13223
13224
13225 rm -Rf build && mkdir -p build
13226 echo "obj-m := conftest.o" >build/Makefile
13227 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238
13239 { $as_echo "$as_me:$LINENO: result: yes" >&5
13240 $as_echo "yes" >&6; }
13241
13242 cat >>confdefs.h <<\_ACEOF
13243 #define HAVE_MUTEX_OWNER 1
13244 _ACEOF
13245
13246
13247 else
13248 $as_echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13250
13251 { $as_echo "$as_me:$LINENO: result: no" >&5
13252 $as_echo "no" >&6; }
13253
13254
13255
13256 fi
13257
13258 rm -Rf build
13259
13260
13261
13262
13263 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13264 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13265
13266
13267 cat >conftest.c <<_ACEOF
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273
13274
13275 #include <linux/mutex.h>
13276
13277 int
13278 main (void)
13279 {
13280
13281 struct mutex mutex;
13282 mutex_init(&mutex);
13283 mutex_lock_nested(&mutex, 0);
13284
13285 ;
13286 return 0;
13287 }
13288
13289 _ACEOF
13290
13291
13292 rm -Rf build && mkdir -p build
13293 echo "obj-m := conftest.o" >build/Makefile
13294 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305
13306 { $as_echo "$as_me:$LINENO: result: yes" >&5
13307 $as_echo "yes" >&6; }
13308
13309 cat >>confdefs.h <<\_ACEOF
13310 #define HAVE_MUTEX_LOCK_NESTED 1
13311 _ACEOF
13312
13313
13314 else
13315 $as_echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318 { $as_echo "$as_me:$LINENO: result: no" >&5
13319 $as_echo "no" >&6; }
13320
13321
13322
13323 fi
13324
13325 rm -Rf build
13326
13327
13328
13329
13330 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
13331 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
13332 grep -q -E '[[:space:]]div64_64[[:space:]]' \
13333 $LINUX_OBJ/Module*.symvers 2>/dev/null
13334 rc=$?
13335 if test $rc -ne 0; then
13336 export=0
13337 for file in ; do
13338 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
13339 "$LINUX_OBJ/$file" 2>/dev/null
13340 rc=$?
13341 if test $rc -eq 0; then
13342 export=1
13343 break;
13344 fi
13345 done
13346 if test $export -eq 0; then
13347 { $as_echo "$as_me:$LINENO: result: no" >&5
13348 $as_echo "no" >&6; }
13349
13350 else
13351 { $as_echo "$as_me:$LINENO: result: yes" >&5
13352 $as_echo "yes" >&6; }
13353
13354 cat >>confdefs.h <<\_ACEOF
13355 #define HAVE_DIV64_64 1
13356 _ACEOF
13357
13358 fi
13359 else
13360 { $as_echo "$as_me:$LINENO: result: yes" >&5
13361 $as_echo "yes" >&6; }
13362
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_DIV64_64 1
13365 _ACEOF
13366
13367 fi
13368
13369
13370
13371 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
13372 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
13373 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
13374 $LINUX_OBJ/Module*.symvers 2>/dev/null
13375 rc=$?
13376 if test $rc -ne 0; then
13377 export=0
13378 for file in ; do
13379 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
13380 "$LINUX_OBJ/$file" 2>/dev/null
13381 rc=$?
13382 if test $rc -eq 0; then
13383 export=1
13384 break;
13385 fi
13386 done
13387 if test $export -eq 0; then
13388 { $as_echo "$as_me:$LINENO: result: no" >&5
13389 $as_echo "no" >&6; }
13390
13391 else
13392 { $as_echo "$as_me:$LINENO: result: yes" >&5
13393 $as_echo "yes" >&6; }
13394
13395 cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_DIV64_U64 1
13397 _ACEOF
13398
13399 fi
13400 else
13401 { $as_echo "$as_me:$LINENO: result: yes" >&5
13402 $as_echo "yes" >&6; }
13403
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_DIV64_U64 1
13406 _ACEOF
13407
13408 fi
13409
13410
13411
13412 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13413 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13414
13415
13416 cat >conftest.c <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422
13423
13424 #include <linux/smp.h>
13425
13426 int
13427 main (void)
13428 {
13429
13430 on_each_cpu(NULL, NULL, 0);
13431
13432 ;
13433 return 0;
13434 }
13435
13436 _ACEOF
13437
13438
13439 rm -Rf build && mkdir -p build
13440 echo "obj-m := conftest.o" >build/Makefile
13441 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452
13453 { $as_echo "$as_me:$LINENO: result: yes" >&5
13454 $as_echo "yes" >&6; }
13455
13456 cat >>confdefs.h <<\_ACEOF
13457 #define HAVE_3ARGS_ON_EACH_CPU 1
13458 _ACEOF
13459
13460
13461 else
13462 $as_echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 { $as_echo "$as_me:$LINENO: result: no" >&5
13466 $as_echo "no" >&6; }
13467
13468
13469
13470 fi
13471
13472 rm -Rf build
13473
13474
13475
13476
13477 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13478 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13479 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13480 $LINUX_OBJ/Module*.symvers 2>/dev/null
13481 rc=$?
13482 if test $rc -ne 0; then
13483 export=0
13484 for file in ; do
13485 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13486 "$LINUX_OBJ/$file" 2>/dev/null
13487 rc=$?
13488 if test $rc -eq 0; then
13489 export=1
13490 break;
13491 fi
13492 done
13493 if test $export -eq 0; then
13494 { $as_echo "$as_me:$LINENO: result: no" >&5
13495 $as_echo "no" >&6; }
13496
13497 else
13498 { $as_echo "$as_me:$LINENO: result: yes" >&5
13499 $as_echo "yes" >&6; }
13500
13501 cat >>confdefs.h <<\_ACEOF
13502 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13503 _ACEOF
13504
13505 fi
13506 else
13507 { $as_echo "$as_me:$LINENO: result: yes" >&5
13508 $as_echo "yes" >&6; }
13509
13510 cat >>confdefs.h <<\_ACEOF
13511 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13512 _ACEOF
13513
13514 fi
13515
13516
13517
13518 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13519 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13520 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13521 $LINUX_OBJ/Module*.symvers 2>/dev/null
13522 rc=$?
13523 if test $rc -ne 0; then
13524 export=0
13525 for file in ; do
13526 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13527 "$LINUX_OBJ/$file" 2>/dev/null
13528 rc=$?
13529 if test $rc -eq 0; then
13530 export=1
13531 break;
13532 fi
13533 done
13534 if test $export -eq 0; then
13535 { $as_echo "$as_me:$LINENO: result: no" >&5
13536 $as_echo "no" >&6; }
13537
13538 else
13539 { $as_echo "$as_me:$LINENO: result: yes" >&5
13540 $as_echo "yes" >&6; }
13541
13542 cat >>confdefs.h <<\_ACEOF
13543 #define HAVE_GET_VMALLOC_INFO 1
13544 _ACEOF
13545
13546 fi
13547 else
13548 { $as_echo "$as_me:$LINENO: result: yes" >&5
13549 $as_echo "yes" >&6; }
13550
13551 cat >>confdefs.h <<\_ACEOF
13552 #define HAVE_GET_VMALLOC_INFO 1
13553 _ACEOF
13554
13555 fi
13556
13557
13558
13559 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
13560 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
13561 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13562 rc=$?
13563 if test $rc -eq 0; then
13564 { $as_echo "$as_me:$LINENO: result: yes" >&5
13565 $as_echo "yes" >&6; }
13566
13567 cat >>confdefs.h <<\_ACEOF
13568 #define HAVE_PGDAT_HELPERS 1
13569 _ACEOF
13570
13571 else
13572 { $as_echo "$as_me:$LINENO: result: no" >&5
13573 $as_echo "no" >&6; }
13574 fi
13575
13576
13577 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
13578 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
13579 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13580 $LINUX_OBJ/Module*.symvers 2>/dev/null
13581 rc=$?
13582 if test $rc -ne 0; then
13583 export=0
13584 for file in ; do
13585 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13586 "$LINUX_OBJ/$file" 2>/dev/null
13587 rc=$?
13588 if test $rc -eq 0; then
13589 export=1
13590 break;
13591 fi
13592 done
13593 if test $export -eq 0; then
13594 { $as_echo "$as_me:$LINENO: result: no" >&5
13595 $as_echo "no" >&6; }
13596
13597 else
13598 { $as_echo "$as_me:$LINENO: result: yes" >&5
13599 $as_echo "yes" >&6; }
13600
13601 cat >>confdefs.h <<\_ACEOF
13602 #define HAVE_FIRST_ONLINE_PGDAT 1
13603 _ACEOF
13604
13605 fi
13606 else
13607 { $as_echo "$as_me:$LINENO: result: yes" >&5
13608 $as_echo "yes" >&6; }
13609
13610 cat >>confdefs.h <<\_ACEOF
13611 #define HAVE_FIRST_ONLINE_PGDAT 1
13612 _ACEOF
13613
13614 fi
13615
13616
13617
13618 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
13619 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
13620 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13621 $LINUX_OBJ/Module*.symvers 2>/dev/null
13622 rc=$?
13623 if test $rc -ne 0; then
13624 export=0
13625 for file in ; do
13626 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13627 "$LINUX_OBJ/$file" 2>/dev/null
13628 rc=$?
13629 if test $rc -eq 0; then
13630 export=1
13631 break;
13632 fi
13633 done
13634 if test $export -eq 0; then
13635 { $as_echo "$as_me:$LINENO: result: no" >&5
13636 $as_echo "no" >&6; }
13637
13638 else
13639 { $as_echo "$as_me:$LINENO: result: yes" >&5
13640 $as_echo "yes" >&6; }
13641
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_NEXT_ONLINE_PGDAT 1
13644 _ACEOF
13645
13646 fi
13647 else
13648 { $as_echo "$as_me:$LINENO: result: yes" >&5
13649 $as_echo "yes" >&6; }
13650
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_NEXT_ONLINE_PGDAT 1
13653 _ACEOF
13654
13655 fi
13656
13657
13658
13659 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
13660 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
13661 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13662 $LINUX_OBJ/Module*.symvers 2>/dev/null
13663 rc=$?
13664 if test $rc -ne 0; then
13665 export=0
13666 for file in ; do
13667 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13668 "$LINUX_OBJ/$file" 2>/dev/null
13669 rc=$?
13670 if test $rc -eq 0; then
13671 export=1
13672 break;
13673 fi
13674 done
13675 if test $export -eq 0; then
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13678
13679 else
13680 { $as_echo "$as_me:$LINENO: result: yes" >&5
13681 $as_echo "yes" >&6; }
13682
13683 cat >>confdefs.h <<\_ACEOF
13684 #define HAVE_NEXT_ZONE 1
13685 _ACEOF
13686
13687 fi
13688 else
13689 { $as_echo "$as_me:$LINENO: result: yes" >&5
13690 $as_echo "yes" >&6; }
13691
13692 cat >>confdefs.h <<\_ACEOF
13693 #define HAVE_NEXT_ZONE 1
13694 _ACEOF
13695
13696 fi
13697
13698
13699
13700 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
13701 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
13702 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13703 $LINUX_OBJ/Module*.symvers 2>/dev/null
13704 rc=$?
13705 if test $rc -ne 0; then
13706 export=0
13707 for file in ; do
13708 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13709 "$LINUX_OBJ/$file" 2>/dev/null
13710 rc=$?
13711 if test $rc -eq 0; then
13712 export=1
13713 break;
13714 fi
13715 done
13716 if test $export -eq 0; then
13717 { $as_echo "$as_me:$LINENO: result: no" >&5
13718 $as_echo "no" >&6; }
13719
13720 else
13721 { $as_echo "$as_me:$LINENO: result: yes" >&5
13722 $as_echo "yes" >&6; }
13723
13724 cat >>confdefs.h <<\_ACEOF
13725 #define HAVE_PGDAT_LIST 1
13726 _ACEOF
13727
13728 fi
13729 else
13730 { $as_echo "$as_me:$LINENO: result: yes" >&5
13731 $as_echo "yes" >&6; }
13732
13733 cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_PGDAT_LIST 1
13735 _ACEOF
13736
13737 fi
13738
13739
13740
13741 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
13742 $as_echo_n "checking whether global_page_state() is available... " >&6; }
13743
13744
13745 cat >conftest.c <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751
13752
13753 #include <linux/mm.h>
13754
13755 int
13756 main (void)
13757 {
13758
13759 unsigned long state;
13760 state = global_page_state(0);
13761
13762 ;
13763 return 0;
13764 }
13765
13766 _ACEOF
13767
13768
13769 rm -Rf build && mkdir -p build
13770 echo "obj-m := conftest.o" >build/Makefile
13771 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782
13783 { $as_echo "$as_me:$LINENO: result: yes" >&5
13784 $as_echo "yes" >&6; }
13785
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_GLOBAL_PAGE_STATE 1
13788 _ACEOF
13789
13790
13791 else
13792 $as_echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 { $as_echo "$as_me:$LINENO: result: no" >&5
13796 $as_echo "no" >&6; }
13797
13798
13799
13800 fi
13801
13802 rm -Rf build
13803
13804
13805
13806
13807 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
13808 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
13809
13810
13811 cat >conftest.c <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817
13818
13819 #include <linux/mm.h>
13820
13821 int
13822 main (void)
13823 {
13824
13825 enum zone_stat_item zsi;
13826 zsi = NR_FREE_PAGES;
13827
13828 ;
13829 return 0;
13830 }
13831
13832 _ACEOF
13833
13834
13835 rm -Rf build && mkdir -p build
13836 echo "obj-m := conftest.o" >build/Makefile
13837 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848
13849 { $as_echo "$as_me:$LINENO: result: yes" >&5
13850 $as_echo "yes" >&6; }
13851
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
13854 _ACEOF
13855
13856
13857 else
13858 $as_echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 { $as_echo "$as_me:$LINENO: result: no" >&5
13862 $as_echo "no" >&6; }
13863
13864
13865
13866 fi
13867
13868 rm -Rf build
13869
13870
13871
13872
13873 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
13874 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
13875
13876
13877 cat >conftest.c <<_ACEOF
13878 /* confdefs.h. */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883
13884
13885 #include <linux/mm.h>
13886
13887 int
13888 main (void)
13889 {
13890
13891 enum zone_stat_item zsi;
13892 zsi = NR_INACTIVE;
13893
13894 ;
13895 return 0;
13896 }
13897
13898 _ACEOF
13899
13900
13901 rm -Rf build && mkdir -p build
13902 echo "obj-m := conftest.o" >build/Makefile
13903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914
13915 { $as_echo "$as_me:$LINENO: result: yes" >&5
13916 $as_echo "yes" >&6; }
13917
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
13920 _ACEOF
13921
13922
13923 else
13924 $as_echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 { $as_echo "$as_me:$LINENO: result: no" >&5
13928 $as_echo "no" >&6; }
13929
13930
13931
13932 fi
13933
13934 rm -Rf build
13935
13936
13937
13938 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
13939 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
13940
13941
13942 cat >conftest.c <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948
13949
13950 #include <linux/mm.h>
13951
13952 int
13953 main (void)
13954 {
13955
13956 enum zone_stat_item zsi;
13957 zsi = NR_INACTIVE_ANON;
13958
13959 ;
13960 return 0;
13961 }
13962
13963 _ACEOF
13964
13965
13966 rm -Rf build && mkdir -p build
13967 echo "obj-m := conftest.o" >build/Makefile
13968 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979
13980 { $as_echo "$as_me:$LINENO: result: yes" >&5
13981 $as_echo "yes" >&6; }
13982
13983 cat >>confdefs.h <<\_ACEOF
13984 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
13985 _ACEOF
13986
13987
13988 else
13989 $as_echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 { $as_echo "$as_me:$LINENO: result: no" >&5
13993 $as_echo "no" >&6; }
13994
13995
13996
13997 fi
13998
13999 rm -Rf build
14000
14001
14002
14003 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14004 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14005
14006
14007 cat >conftest.c <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013
14014
14015 #include <linux/mm.h>
14016
14017 int
14018 main (void)
14019 {
14020
14021 enum zone_stat_item zsi;
14022 zsi = NR_INACTIVE_FILE;
14023
14024 ;
14025 return 0;
14026 }
14027
14028 _ACEOF
14029
14030
14031 rm -Rf build && mkdir -p build
14032 echo "obj-m := conftest.o" >build/Makefile
14033 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044
14045 { $as_echo "$as_me:$LINENO: result: yes" >&5
14046 $as_echo "yes" >&6; }
14047
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14050 _ACEOF
14051
14052
14053 else
14054 $as_echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 { $as_echo "$as_me:$LINENO: result: no" >&5
14058 $as_echo "no" >&6; }
14059
14060
14061
14062 fi
14063
14064 rm -Rf build
14065
14066
14067
14068
14069 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14070 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14071
14072
14073 cat >conftest.c <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079
14080
14081 #include <linux/mm.h>
14082
14083 int
14084 main (void)
14085 {
14086
14087 enum zone_stat_item zsi;
14088 zsi = NR_ACTIVE;
14089
14090 ;
14091 return 0;
14092 }
14093
14094 _ACEOF
14095
14096
14097 rm -Rf build && mkdir -p build
14098 echo "obj-m := conftest.o" >build/Makefile
14099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110
14111 { $as_echo "$as_me:$LINENO: result: yes" >&5
14112 $as_echo "yes" >&6; }
14113
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14116 _ACEOF
14117
14118
14119 else
14120 $as_echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123 { $as_echo "$as_me:$LINENO: result: no" >&5
14124 $as_echo "no" >&6; }
14125
14126
14127
14128 fi
14129
14130 rm -Rf build
14131
14132
14133
14134 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14135 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14136
14137
14138 cat >conftest.c <<_ACEOF
14139 /* confdefs.h. */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144
14145
14146 #include <linux/mm.h>
14147
14148 int
14149 main (void)
14150 {
14151
14152 enum zone_stat_item zsi;
14153 zsi = NR_ACTIVE_ANON;
14154
14155 ;
14156 return 0;
14157 }
14158
14159 _ACEOF
14160
14161
14162 rm -Rf build && mkdir -p build
14163 echo "obj-m := conftest.o" >build/Makefile
14164 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175
14176 { $as_echo "$as_me:$LINENO: result: yes" >&5
14177 $as_echo "yes" >&6; }
14178
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14181 _ACEOF
14182
14183
14184 else
14185 $as_echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 { $as_echo "$as_me:$LINENO: result: no" >&5
14189 $as_echo "no" >&6; }
14190
14191
14192
14193 fi
14194
14195 rm -Rf build
14196
14197
14198
14199 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14200 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14201
14202
14203 cat >conftest.c <<_ACEOF
14204 /* confdefs.h. */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209
14210
14211 #include <linux/mm.h>
14212
14213 int
14214 main (void)
14215 {
14216
14217 enum zone_stat_item zsi;
14218 zsi = NR_ACTIVE_FILE;
14219
14220 ;
14221 return 0;
14222 }
14223
14224 _ACEOF
14225
14226
14227 rm -Rf build && mkdir -p build
14228 echo "obj-m := conftest.o" >build/Makefile
14229 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240
14241 { $as_echo "$as_me:$LINENO: result: yes" >&5
14242 $as_echo "yes" >&6; }
14243
14244 cat >>confdefs.h <<\_ACEOF
14245 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14246 _ACEOF
14247
14248
14249 else
14250 $as_echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14252
14253 { $as_echo "$as_me:$LINENO: result: no" >&5
14254 $as_echo "no" >&6; }
14255
14256
14257
14258 fi
14259
14260 rm -Rf build
14261
14262
14263
14264
14265 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14266 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14267
14268
14269 cat >conftest.c <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275
14276
14277
14278 int
14279 main (void)
14280 {
14281
14282 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14283 #error "global_page_state needs NR_FREE_PAGES"
14284 #endif
14285
14286 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14287 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14288 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14289 #error "global_page_state needs NR_ACTIVE*"
14290 #endif
14291
14292 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14293 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14294 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14295 #error "global_page_state needs NR_INACTIVE*"
14296 #endif
14297
14298 ;
14299 return 0;
14300 }
14301
14302 _ACEOF
14303
14304
14305 rm -Rf build && mkdir -p build
14306 echo "obj-m := conftest.o" >build/Makefile
14307 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318
14319 { $as_echo "$as_me:$LINENO: result: no" >&5
14320 $as_echo "no" >&6; }
14321
14322 else
14323 $as_echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 { $as_echo "$as_me:$LINENO: result: yes" >&5
14327 $as_echo "yes" >&6; }
14328
14329 cat >>confdefs.h <<\_ACEOF
14330 #define NEED_GET_ZONE_COUNTS 1
14331 _ACEOF
14332
14333
14334 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14335 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14336 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14337 $LINUX_OBJ/Module*.symvers 2>/dev/null
14338 rc=$?
14339 if test $rc -ne 0; then
14340 export=0
14341 for file in ; do
14342 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14343 "$LINUX_OBJ/$file" 2>/dev/null
14344 rc=$?
14345 if test $rc -eq 0; then
14346 export=1
14347 break;
14348 fi
14349 done
14350 if test $export -eq 0; then
14351 { $as_echo "$as_me:$LINENO: result: no" >&5
14352 $as_echo "no" >&6; }
14353
14354 else
14355 { $as_echo "$as_me:$LINENO: result: yes" >&5
14356 $as_echo "yes" >&6; }
14357
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_GET_ZONE_COUNTS 1
14360 _ACEOF
14361
14362 fi
14363 else
14364 { $as_echo "$as_me:$LINENO: result: yes" >&5
14365 $as_echo "yes" >&6; }
14366
14367 cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_GET_ZONE_COUNTS 1
14369 _ACEOF
14370
14371 fi
14372
14373
14374
14375
14376 fi
14377
14378 rm -Rf build
14379
14380
14381
14382
14383 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14384 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14385 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14386 $LINUX_OBJ/Module*.symvers 2>/dev/null
14387 rc=$?
14388 if test $rc -ne 0; then
14389 export=0
14390 for file in ; do
14391 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14392 "$LINUX_OBJ/$file" 2>/dev/null
14393 rc=$?
14394 if test $rc -eq 0; then
14395 export=1
14396 break;
14397 fi
14398 done
14399 if test $export -eq 0; then
14400 { $as_echo "$as_me:$LINENO: result: no" >&5
14401 $as_echo "no" >&6; }
14402
14403 else
14404 { $as_echo "$as_me:$LINENO: result: yes" >&5
14405 $as_echo "yes" >&6; }
14406
14407 cat >>confdefs.h <<\_ACEOF
14408 #define HAVE_SET_FS_PWD 1
14409 _ACEOF
14410
14411 fi
14412 else
14413 { $as_echo "$as_me:$LINENO: result: yes" >&5
14414 $as_echo "yes" >&6; }
14415
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_SET_FS_PWD 1
14418 _ACEOF
14419
14420 fi
14421
14422
14423 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14424 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14425
14426
14427 cat >conftest.c <<_ACEOF
14428 /* confdefs.h. */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433
14434
14435 #include <linux/sched.h>
14436 #include <linux/fs_struct.h>
14437
14438 int
14439 main (void)
14440 {
14441
14442 set_fs_pwd(NULL, NULL);
14443
14444 ;
14445 return 0;
14446 }
14447
14448 _ACEOF
14449
14450
14451 rm -Rf build && mkdir -p build
14452 echo "obj-m := conftest.o" >build/Makefile
14453 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464
14465 { $as_echo "$as_me:$LINENO: result: yes" >&5
14466 $as_echo "yes" >&6; }
14467
14468 cat >>confdefs.h <<\_ACEOF
14469 #define HAVE_2ARGS_SET_FS_PWD 1
14470 _ACEOF
14471
14472
14473 else
14474 $as_echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 { $as_echo "$as_me:$LINENO: result: no" >&5
14478 $as_echo "no" >&6; }
14479
14480
14481
14482 fi
14483
14484 rm -Rf build
14485
14486
14487
14488 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
14489 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
14490
14491
14492 cat >conftest.c <<_ACEOF
14493 /* confdefs.h. */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498
14499
14500 #include <linux/fs.h>
14501
14502 int
14503 main (void)
14504 {
14505
14506 vfs_unlink(NULL, NULL);
14507
14508 ;
14509 return 0;
14510 }
14511
14512 _ACEOF
14513
14514
14515 rm -Rf build && mkdir -p build
14516 echo "obj-m := conftest.o" >build/Makefile
14517 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14528
14529 { $as_echo "$as_me:$LINENO: result: yes" >&5
14530 $as_echo "yes" >&6; }
14531
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_2ARGS_VFS_UNLINK 1
14534 _ACEOF
14535
14536
14537 else
14538 $as_echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14540
14541 { $as_echo "$as_me:$LINENO: result: no" >&5
14542 $as_echo "no" >&6; }
14543
14544
14545
14546 fi
14547
14548 rm -Rf build
14549
14550
14551
14552 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
14553 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
14554
14555
14556 cat >conftest.c <<_ACEOF
14557 /* confdefs.h. */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562
14563
14564 #include <linux/fs.h>
14565
14566 int
14567 main (void)
14568 {
14569
14570 vfs_rename(NULL, NULL, NULL, NULL);
14571
14572 ;
14573 return 0;
14574 }
14575
14576 _ACEOF
14577
14578
14579 rm -Rf build && mkdir -p build
14580 echo "obj-m := conftest.o" >build/Makefile
14581 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14592
14593 { $as_echo "$as_me:$LINENO: result: yes" >&5
14594 $as_echo "yes" >&6; }
14595
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_4ARGS_VFS_RENAME 1
14598 _ACEOF
14599
14600
14601 else
14602 $as_echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 { $as_echo "$as_me:$LINENO: result: no" >&5
14606 $as_echo "no" >&6; }
14607
14608
14609
14610 fi
14611
14612 rm -Rf build
14613
14614
14615
14616
14617 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
14618 $as_echo_n "checking whether struct cred exists... " >&6; }
14619
14620
14621 cat >conftest.c <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627
14628
14629 #include <linux/cred.h>
14630
14631 int
14632 main (void)
14633 {
14634
14635 struct cred *cr;
14636 cr = NULL;
14637
14638 ;
14639 return 0;
14640 }
14641
14642 _ACEOF
14643
14644
14645 rm -Rf build && mkdir -p build
14646 echo "obj-m := conftest.o" >build/Makefile
14647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658
14659 { $as_echo "$as_me:$LINENO: result: yes" >&5
14660 $as_echo "yes" >&6; }
14661
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_CRED_STRUCT 1
14664 _ACEOF
14665
14666
14667 else
14668 $as_echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 { $as_echo "$as_me:$LINENO: result: no" >&5
14672 $as_echo "no" >&6; }
14673
14674
14675
14676 fi
14677
14678 rm -Rf build
14679
14680
14681
14682
14683 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
14684 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
14685 grep -q -E '[[:space:]]groups_search[[:space:]]' \
14686 $LINUX_OBJ/Module*.symvers 2>/dev/null
14687 rc=$?
14688 if test $rc -ne 0; then
14689 export=0
14690 for file in ; do
14691 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
14692 "$LINUX_OBJ/$file" 2>/dev/null
14693 rc=$?
14694 if test $rc -eq 0; then
14695 export=1
14696 break;
14697 fi
14698 done
14699 if test $export -eq 0; then
14700 { $as_echo "$as_me:$LINENO: result: no" >&5
14701 $as_echo "no" >&6; }
14702
14703 else
14704 { $as_echo "$as_me:$LINENO: result: yes" >&5
14705 $as_echo "yes" >&6; }
14706
14707 cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_GROUPS_SEARCH 1
14709 _ACEOF
14710
14711 fi
14712 else
14713 { $as_echo "$as_me:$LINENO: result: yes" >&5
14714 $as_echo "yes" >&6; }
14715
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_GROUPS_SEARCH 1
14718 _ACEOF
14719
14720 fi
14721
14722
14723
14724 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
14725 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
14726 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
14727 $LINUX_OBJ/Module*.symvers 2>/dev/null
14728 rc=$?
14729 if test $rc -ne 0; then
14730 export=0
14731 for file in ; do
14732 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
14733 "$LINUX_OBJ/$file" 2>/dev/null
14734 rc=$?
14735 if test $rc -eq 0; then
14736 export=1
14737 break;
14738 fi
14739 done
14740 if test $export -eq 0; then
14741 { $as_echo "$as_me:$LINENO: result: no" >&5
14742 $as_echo "no" >&6; }
14743
14744 else
14745 { $as_echo "$as_me:$LINENO: result: yes" >&5
14746 $as_echo "yes" >&6; }
14747
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_PUT_TASK_STRUCT 1
14750 _ACEOF
14751
14752 fi
14753 else
14754 { $as_echo "$as_me:$LINENO: result: yes" >&5
14755 $as_echo "yes" >&6; }
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_PUT_TASK_STRUCT 1
14759 _ACEOF
14760
14761 fi
14762
14763
14764
14765 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
14766 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
14767
14768
14769 cat >conftest.c <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775
14776
14777 #include <linux/sysctl.h>
14778
14779 int
14780 main (void)
14781 {
14782
14783 proc_dostring(NULL, 0, NULL, NULL, NULL);
14784
14785 ;
14786 return 0;
14787 }
14788
14789 _ACEOF
14790
14791
14792 rm -Rf build && mkdir -p build
14793 echo "obj-m := conftest.o" >build/Makefile
14794 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805
14806 { $as_echo "$as_me:$LINENO: result: yes" >&5
14807 $as_echo "yes" >&6; }
14808
14809 cat >>confdefs.h <<\_ACEOF
14810 #define HAVE_5ARGS_PROC_HANDLER 1
14811 _ACEOF
14812
14813
14814 else
14815 $as_echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 { $as_echo "$as_me:$LINENO: result: no" >&5
14819 $as_echo "no" >&6; }
14820
14821
14822
14823 fi
14824
14825 rm -Rf build
14826
14827
14828
14829 ;;
14830 user) ;;
14831 all)
14832
14833
14834 # Check whether --with-linux was given.
14835 if test "${with_linux+set}" = set; then
14836 withval=$with_linux; kernelsrc="$withval"
14837 fi
14838
14839
14840
14841 # Check whether --with-linux-obj was given.
14842 if test "${with_linux_obj+set}" = set; then
14843 withval=$with_linux_obj; kernelbuild="$withval"
14844 fi
14845
14846
14847 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
14848 $as_echo_n "checking kernel source directory... " >&6; }
14849 if test -z "$kernelsrc"; then
14850 headersdir="/lib/modules/$(uname -r)/build"
14851 if test -e "$headersdir"; then
14852 sourcelink=$(readlink -f "$headersdir")
14853 else
14854 sourcelink=$(ls -1d /usr/src/kernels/* \
14855 /usr/src/linux-* \
14856 2>/dev/null | grep -v obj | tail -1)
14857 fi
14858
14859 if test -e ${sourcelink}; then
14860 kernelsrc=`readlink -f ${sourcelink}`
14861 else
14862 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14863 $as_echo "Not found" >&6; }
14864 { { $as_echo "$as_me:$LINENO: error:
14865 *** Please specify the location of the kernel source
14866 *** with the '--with-linux=PATH' option" >&5
14867 $as_echo "$as_me: error:
14868 *** Please specify the location of the kernel source
14869 *** with the '--with-linux=PATH' option" >&2;}
14870 { (exit 1); exit 1; }; }
14871 fi
14872 else
14873 if test "$kernelsrc" = "NONE"; then
14874 kernsrcver=NONE
14875 fi
14876 fi
14877
14878 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
14879 $as_echo "$kernelsrc" >&6; }
14880 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
14881 $as_echo_n "checking kernel build directory... " >&6; }
14882 if test -z "$kernelbuild"; then
14883 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
14884 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
14885 elif test -d ${kernelsrc}-obj/`arch`/default; then
14886 kernelbuild=${kernelsrc}-obj/`arch`/default
14887 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
14888 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
14889 else
14890 kernelbuild=${kernelsrc}
14891 fi
14892 fi
14893 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
14894 $as_echo "$kernelbuild" >&6; }
14895
14896 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
14897 $as_echo_n "checking kernel source version... " >&6; }
14898 if test -r $kernelbuild/include/linux/version.h &&
14899 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
14900
14901 kernsrcver=`(echo "#include <linux/version.h>";
14902 echo "kernsrcver=UTS_RELEASE") |
14903 cpp -I $kernelbuild/include |
14904 grep "^kernsrcver=" | cut -d \" -f 2`
14905
14906 elif test -r $kernelbuild/include/linux/utsrelease.h &&
14907 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
14908
14909 kernsrcver=`(echo "#include <linux/utsrelease.h>";
14910 echo "kernsrcver=UTS_RELEASE") |
14911 cpp -I $kernelbuild/include |
14912 grep "^kernsrcver=" | cut -d \" -f 2`
14913 fi
14914
14915 if test -z "$kernsrcver"; then
14916 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14917 $as_echo "Not found" >&6; }
14918 { { $as_echo "$as_me:$LINENO: error:
14919 *** Cannot determine the version of the linux kernel source.
14920 *** Please prepare the kernel before running this script" >&5
14921 $as_echo "$as_me: error:
14922 *** Cannot determine the version of the linux kernel source.
14923 *** Please prepare the kernel before running this script" >&2;}
14924 { (exit 1); exit 1; }; }
14925 fi
14926
14927 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
14928 $as_echo "$kernsrcver" >&6; }
14929
14930 LINUX=${kernelsrc}
14931 LINUX_OBJ=${kernelbuild}
14932 LINUX_VERSION=${kernsrcver}
14933
14934
14935
14936
14937
14938
14939 modpost=$LINUX/scripts/Makefile.modpost
14940 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
14941 $as_echo_n "checking kernel file name for module symbols... " >&6; }
14942 if test -f "$modpost"; then
14943 if grep -q Modules.symvers $modpost; then
14944 LINUX_SYMBOLS=Modules.symvers
14945 else
14946 LINUX_SYMBOLS=Module.symvers
14947 fi
14948 else
14949 LINUX_SYMBOLS=NONE
14950 fi
14951 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14952 $as_echo "$LINUX_SYMBOLS" >&6; }
14953
14954
14955
14956
14957 abs_srcdir=`readlink -f ${srcdir}`
14958 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
14959 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
14960 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
14961
14962 if test "${LINUX_OBJ}" != "${LINUX}"; then
14963 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14964 fi
14965
14966
14967
14968
14969
14970 # Check whether --enable-debug was given.
14971 if test "${enable_debug+set}" = set; then
14972 enableval=$enable_debug;
14973 else
14974 enable_debug=no
14975 fi
14976
14977
14978 if test "x$enable_debug" = xyes; then
14979 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
14980 else
14981 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
14982 fi
14983
14984
14985 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
14986 $as_echo_n "checking whether debugging is enabled... " >&6; }
14987 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
14988 $as_echo "$enable_debug" >&6; }
14989
14990
14991 # Check whether --enable-debug-kmem was given.
14992 if test "${enable_debug_kmem+set}" = set; then
14993 enableval=$enable_debug_kmem;
14994 else
14995 enable_debug_kmem=yes
14996 fi
14997
14998
14999 if test "x$enable_debug_kmem" = xyes; then
15000
15001 cat >>confdefs.h <<\_ACEOF
15002 #define DEBUG_KMEM 1
15003 _ACEOF
15004
15005 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15006 fi
15007
15008
15009 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15010 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15011 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15012 $as_echo "$enable_debug_kmem" >&6; }
15013
15014
15015 # Check whether --enable-debug-kmem-tracking was given.
15016 if test "${enable_debug_kmem_tracking+set}" = set; then
15017 enableval=$enable_debug_kmem_tracking;
15018 else
15019 enable_debug_kmem_tracking=no
15020 fi
15021
15022
15023 if test "x$enable_debug_kmem_tracking" = xyes; then
15024
15025 cat >>confdefs.h <<\_ACEOF
15026 #define DEBUG_KMEM_TRACKING 1
15027 _ACEOF
15028
15029 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15030 fi
15031
15032
15033 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15034 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15035 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15036 $as_echo "$enable_debug_kmem_tracking" >&6; }
15037
15038
15039 # Check whether --enable-atomic-spinlocks was given.
15040 if test "${enable_atomic_spinlocks+set}" = set; then
15041 enableval=$enable_atomic_spinlocks;
15042 else
15043 enable_atomic_spinlocks=check
15044 fi
15045
15046
15047
15048
15049 cat >conftest.c <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055
15056
15057 #include <asm/atomic.h>
15058
15059 int
15060 main (void)
15061 {
15062
15063 atomic64_t *ptr;
15064
15065 ;
15066 return 0;
15067 }
15068
15069 _ACEOF
15070
15071
15072 rm -Rf build && mkdir -p build
15073 echo "obj-m := conftest.o" >build/Makefile
15074 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085
15086 have_atomic64_t=yes
15087
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_ATOMIC64_T 1
15090 _ACEOF
15091
15092
15093 else
15094 $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097 have_atomic64_t=no
15098
15099
15100
15101 fi
15102
15103 rm -Rf build
15104
15105
15106
15107 if test "x$enable_atomic_spinlocks" = xcheck; then
15108
15109 if test "x$have_atomic64_t" = xyes; then
15110
15111 enable_atomic_spinlocks=no
15112
15113 else
15114
15115 enable_atomic_spinlocks=yes
15116
15117 fi
15118
15119
15120 fi
15121
15122
15123 if test "x$enable_atomic_spinlocks" = xyes; then
15124
15125
15126 cat >>confdefs.h <<\_ACEOF
15127 #define ATOMIC_SPINLOCK 1
15128 _ACEOF
15129
15130
15131 else
15132
15133 if test "x$have_atomic64_t" = xno; then
15134
15135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15137 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15138 See \`config.log' for more details." >&5
15139 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15140 See \`config.log' for more details." >&2;}
15141 { (exit 1); exit 1; }; }; }
15142
15143 fi
15144
15145
15146 fi
15147
15148
15149 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15150 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15151 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15152 $as_echo "$enable_atomic_spinlocks" >&6; }
15153
15154 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15155 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15156 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15157 $as_echo "$have_atomic64_t" >&6; }
15158
15159 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
15160 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
15161
15162
15163 cat >conftest.c <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169
15170
15171 #include <asm/atomic.h>
15172
15173 int
15174 main (void)
15175 {
15176
15177 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
15178
15179 ;
15180 return 0;
15181 }
15182
15183 _ACEOF
15184
15185
15186 rm -Rf build && mkdir -p build
15187 echo "obj-m := conftest.o" >build/Makefile
15188 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190 (eval $ac_try) 2>&5
15191 ac_status=$?
15192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199
15200 { $as_echo "$as_me:$LINENO: result: yes" >&5
15201 $as_echo "yes" >&6; }
15202
15203 cat >>confdefs.h <<\_ACEOF
15204 #define HAVE_ATOMIC64_CMPXCHG 1
15205 _ACEOF
15206
15207
15208 else
15209 $as_echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212 { $as_echo "$as_me:$LINENO: result: no" >&5
15213 $as_echo "no" >&6; }
15214
15215
15216
15217 fi
15218
15219 rm -Rf build
15220
15221
15222
15223 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
15224 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
15225
15226
15227 cat >conftest.c <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233
15234
15235 #include <asm/atomic.h>
15236
15237 int
15238 main (void)
15239 {
15240
15241 atomic64_xchg((atomic64_t *)NULL, 0);
15242
15243 ;
15244 return 0;
15245 }
15246
15247 _ACEOF
15248
15249
15250 rm -Rf build && mkdir -p build
15251 echo "obj-m := conftest.o" >build/Makefile
15252 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263
15264 { $as_echo "$as_me:$LINENO: result: yes" >&5
15265 $as_echo "yes" >&6; }
15266
15267 cat >>confdefs.h <<\_ACEOF
15268 #define HAVE_ATOMIC64_XCHG 1
15269 _ACEOF
15270
15271
15272 else
15273 $as_echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 { $as_echo "$as_me:$LINENO: result: no" >&5
15277 $as_echo "no" >&6; }
15278
15279
15280
15281 fi
15282
15283 rm -Rf build
15284
15285
15286
15287 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
15288 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
15289
15290
15291 cat >conftest.c <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297
15298
15299 #include <linux/types.h>
15300
15301 int
15302 main (void)
15303 {
15304
15305 uintptr_t *ptr;
15306
15307 ;
15308 return 0;
15309 }
15310
15311 _ACEOF
15312
15313
15314 rm -Rf build && mkdir -p build
15315 echo "obj-m := conftest.o" >build/Makefile
15316 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327
15328 { $as_echo "$as_me:$LINENO: result: yes" >&5
15329 $as_echo "yes" >&6; }
15330
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_UINTPTR_T 1
15333 _ACEOF
15334
15335
15336 else
15337 $as_echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340 { $as_echo "$as_me:$LINENO: result: no" >&5
15341 $as_echo "no" >&6; }
15342
15343
15344
15345 fi
15346
15347 rm -Rf build
15348
15349
15350
15351 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
15352 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
15353
15354
15355 cat >conftest.c <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361
15362
15363 #include <linux/workqueue.h>
15364
15365 int
15366 main (void)
15367 {
15368
15369 struct work_struct work;
15370 INIT_WORK(&work, NULL, NULL);
15371
15372 ;
15373 return 0;
15374 }
15375
15376 _ACEOF
15377
15378
15379 rm -Rf build && mkdir -p build
15380 echo "obj-m := conftest.o" >build/Makefile
15381 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392
15393 { $as_echo "$as_me:$LINENO: result: yes" >&5
15394 $as_echo "yes" >&6; }
15395
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HAVE_3ARGS_INIT_WORK 1
15398 _ACEOF
15399
15400
15401 else
15402 $as_echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15404
15405 { $as_echo "$as_me:$LINENO: result: no" >&5
15406 $as_echo "no" >&6; }
15407
15408
15409
15410 fi
15411
15412 rm -Rf build
15413
15414
15415
15416 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
15417 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
15418
15419
15420 cat >conftest.c <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426
15427
15428 #include <linux/sysctl.h>
15429
15430 int
15431 main (void)
15432 {
15433
15434 return register_sysctl_table(NULL,0);
15435
15436 ;
15437 return 0;
15438 }
15439
15440 _ACEOF
15441
15442
15443 rm -Rf build && mkdir -p build
15444 echo "obj-m := conftest.o" >build/Makefile
15445 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456
15457 { $as_echo "$as_me:$LINENO: result: yes" >&5
15458 $as_echo "yes" >&6; }
15459
15460 cat >>confdefs.h <<\_ACEOF
15461 #define HAVE_2ARGS_REGISTER_SYSCTL 1
15462 _ACEOF
15463
15464
15465 else
15466 $as_echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15468
15469 { $as_echo "$as_me:$LINENO: result: no" >&5
15470 $as_echo "no" >&6; }
15471
15472
15473
15474 fi
15475
15476 rm -Rf build
15477
15478
15479
15480
15481 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
15482 $as_echo_n "checking whether set_shrinker() available... " >&6; }
15483
15484
15485 cat >conftest.c <<_ACEOF
15486 /* confdefs.h. */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491
15492
15493 #include <linux/mm.h>
15494
15495 int
15496 main (void)
15497 {
15498
15499 return set_shrinker(DEFAULT_SEEKS, NULL);
15500
15501 ;
15502 return 0;
15503 }
15504
15505 _ACEOF
15506
15507
15508 rm -Rf build && mkdir -p build
15509 echo "obj-m := conftest.o" >build/Makefile
15510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521
15522 { $as_echo "$as_me:$LINENO: result: yes" >&5
15523 $as_echo "yes" >&6; }
15524
15525 cat >>confdefs.h <<\_ACEOF
15526 #define HAVE_SET_SHRINKER 1
15527 _ACEOF
15528
15529
15530 else
15531 $as_echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 { $as_echo "$as_me:$LINENO: result: no" >&5
15535 $as_echo "no" >&6; }
15536
15537
15538
15539 fi
15540
15541 rm -Rf build
15542
15543
15544
15545 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
15546 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
15547
15548
15549 cat >conftest.c <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555
15556
15557 #include <linux/namei.h>
15558
15559 int
15560 main (void)
15561 {
15562
15563 struct nameidata nd;
15564
15565 nd.path.mnt = NULL;
15566 nd.path.dentry = NULL;
15567
15568 ;
15569 return 0;
15570 }
15571
15572 _ACEOF
15573
15574
15575 rm -Rf build && mkdir -p build
15576 echo "obj-m := conftest.o" >build/Makefile
15577 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588
15589 { $as_echo "$as_me:$LINENO: result: yes" >&5
15590 $as_echo "yes" >&6; }
15591
15592 cat >>confdefs.h <<\_ACEOF
15593 #define HAVE_PATH_IN_NAMEIDATA 1
15594 _ACEOF
15595
15596
15597 else
15598 $as_echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 { $as_echo "$as_me:$LINENO: result: no" >&5
15602 $as_echo "no" >&6; }
15603
15604
15605
15606 fi
15607
15608 rm -Rf build
15609
15610
15611
15612
15613 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
15614 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
15615 grep -q -E '[[:space:]]task_curr[[:space:]]' \
15616 $LINUX_OBJ/Module*.symvers 2>/dev/null
15617 rc=$?
15618 if test $rc -ne 0; then
15619 export=0
15620 for file in kernel/sched.c; do
15621 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
15622 "$LINUX_OBJ/$file" 2>/dev/null
15623 rc=$?
15624 if test $rc -eq 0; then
15625 export=1
15626 break;
15627 fi
15628 done
15629 if test $export -eq 0; then
15630 { $as_echo "$as_me:$LINENO: result: no" >&5
15631 $as_echo "no" >&6; }
15632
15633 else
15634 { $as_echo "$as_me:$LINENO: result: yes" >&5
15635 $as_echo "yes" >&6; }
15636
15637 cat >>confdefs.h <<\_ACEOF
15638 #define HAVE_TASK_CURR 1
15639 _ACEOF
15640
15641 fi
15642 else
15643 { $as_echo "$as_me:$LINENO: result: yes" >&5
15644 $as_echo "yes" >&6; }
15645
15646 cat >>confdefs.h <<\_ACEOF
15647 #define HAVE_TASK_CURR 1
15648 _ACEOF
15649
15650 fi
15651
15652
15653 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
15654 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
15655
15656
15657 cat >conftest.c <<_ACEOF
15658 /* confdefs.h. */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663
15664
15665 #include <linux/sysctl.h>
15666
15667 int
15668 main (void)
15669 {
15670
15671 #ifndef CTL_UNNUMBERED
15672 #error CTL_UNNUMBERED undefined
15673 #endif
15674
15675 ;
15676 return 0;
15677 }
15678
15679 _ACEOF
15680
15681
15682 rm -Rf build && mkdir -p build
15683 echo "obj-m := conftest.o" >build/Makefile
15684 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695
15696 { $as_echo "$as_me:$LINENO: result: yes" >&5
15697 $as_echo "yes" >&6; }
15698
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_CTL_UNNUMBERED 1
15701 _ACEOF
15702
15703
15704 else
15705 $as_echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 { $as_echo "$as_me:$LINENO: result: no" >&5
15709 $as_echo "no" >&6; }
15710
15711
15712
15713 fi
15714
15715 rm -Rf build
15716
15717
15718
15719 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
15720 $as_echo_n "checking whether fls64() is available... " >&6; }
15721
15722
15723 cat >conftest.c <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729
15730
15731 #include <linux/bitops.h>
15732
15733 int
15734 main (void)
15735 {
15736
15737 return fls64(0);
15738
15739 ;
15740 return 0;
15741 }
15742
15743 _ACEOF
15744
15745
15746 rm -Rf build && mkdir -p build
15747 echo "obj-m := conftest.o" >build/Makefile
15748 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15756 ac_status=$?
15757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759
15760 { $as_echo "$as_me:$LINENO: result: yes" >&5
15761 $as_echo "yes" >&6; }
15762
15763 cat >>confdefs.h <<\_ACEOF
15764 #define HAVE_FLS64 1
15765 _ACEOF
15766
15767
15768 else
15769 $as_echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772 { $as_echo "$as_me:$LINENO: result: no" >&5
15773 $as_echo "no" >&6; }
15774
15775
15776
15777 fi
15778
15779 rm -Rf build
15780
15781
15782
15783
15784 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
15785 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
15786 grep -q -E '[[:space:]]device_create[[:space:]]' \
15787 $LINUX_OBJ/Module*.symvers 2>/dev/null
15788 rc=$?
15789 if test $rc -ne 0; then
15790 export=0
15791 for file in drivers/base/core.c; do
15792 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
15793 "$LINUX_OBJ/$file" 2>/dev/null
15794 rc=$?
15795 if test $rc -eq 0; then
15796 export=1
15797 break;
15798 fi
15799 done
15800 if test $export -eq 0; then
15801 { $as_echo "$as_me:$LINENO: result: no" >&5
15802 $as_echo "no" >&6; }
15803
15804 else
15805 { $as_echo "$as_me:$LINENO: result: yes" >&5
15806 $as_echo "yes" >&6; }
15807
15808 cat >>confdefs.h <<\_ACEOF
15809 #define HAVE_DEVICE_CREATE 1
15810 _ACEOF
15811
15812 fi
15813 else
15814 { $as_echo "$as_me:$LINENO: result: yes" >&5
15815 $as_echo "yes" >&6; }
15816
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_DEVICE_CREATE 1
15819 _ACEOF
15820
15821 fi
15822
15823
15824
15825 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
15826 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
15827 tmp_flags="$EXTRA_KCFLAGS"
15828 EXTRA_KCFLAGS="-Werror"
15829
15830
15831 cat >conftest.c <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837
15838
15839 #include <linux/device.h>
15840
15841 int
15842 main (void)
15843 {
15844
15845 device_create(NULL, NULL, 0, NULL, "%d", 1);
15846
15847 ;
15848 return 0;
15849 }
15850
15851 _ACEOF
15852
15853
15854 rm -Rf build && mkdir -p build
15855 echo "obj-m := conftest.o" >build/Makefile
15856 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867
15868 { $as_echo "$as_me:$LINENO: result: yes" >&5
15869 $as_echo "yes" >&6; }
15870
15871 cat >>confdefs.h <<\_ACEOF
15872 #define HAVE_5ARGS_DEVICE_CREATE 1
15873 _ACEOF
15874
15875
15876 else
15877 $as_echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880 { $as_echo "$as_me:$LINENO: result: no" >&5
15881 $as_echo "no" >&6; }
15882
15883
15884
15885 fi
15886
15887 rm -Rf build
15888
15889
15890 EXTRA_KCFLAGS="$tmp_flags"
15891
15892
15893 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
15894 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
15895 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
15896 $LINUX_OBJ/Module*.symvers 2>/dev/null
15897 rc=$?
15898 if test $rc -ne 0; then
15899 export=0
15900 for file in drivers/base/class.c; do
15901 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
15902 "$LINUX_OBJ/$file" 2>/dev/null
15903 rc=$?
15904 if test $rc -eq 0; then
15905 export=1
15906 break;
15907 fi
15908 done
15909 if test $export -eq 0; then
15910 { $as_echo "$as_me:$LINENO: result: no" >&5
15911 $as_echo "no" >&6; }
15912
15913 else
15914 { $as_echo "$as_me:$LINENO: result: yes" >&5
15915 $as_echo "yes" >&6; }
15916
15917 cat >>confdefs.h <<\_ACEOF
15918 #define HAVE_CLASS_DEVICE_CREATE 1
15919 _ACEOF
15920
15921 fi
15922 else
15923 { $as_echo "$as_me:$LINENO: result: yes" >&5
15924 $as_echo "yes" >&6; }
15925
15926 cat >>confdefs.h <<\_ACEOF
15927 #define HAVE_CLASS_DEVICE_CREATE 1
15928 _ACEOF
15929
15930 fi
15931
15932
15933
15934 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
15935 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
15936 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
15937 $LINUX_OBJ/Module*.symvers 2>/dev/null
15938 rc=$?
15939 if test $rc -ne 0; then
15940 export=0
15941 for file in kernel/time.c; do
15942 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
15943 "$LINUX_OBJ/$file" 2>/dev/null
15944 rc=$?
15945 if test $rc -eq 0; then
15946 export=1
15947 break;
15948 fi
15949 done
15950 if test $export -eq 0; then
15951 { $as_echo "$as_me:$LINENO: result: no" >&5
15952 $as_echo "no" >&6; }
15953
15954 else
15955 { $as_echo "$as_me:$LINENO: result: yes" >&5
15956 $as_echo "yes" >&6; }
15957
15958 cat >>confdefs.h <<\_ACEOF
15959 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
15960 _ACEOF
15961
15962 fi
15963 else
15964 { $as_echo "$as_me:$LINENO: result: yes" >&5
15965 $as_echo "yes" >&6; }
15966
15967 cat >>confdefs.h <<\_ACEOF
15968 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
15969 _ACEOF
15970
15971 fi
15972
15973
15974
15975 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
15976 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
15977
15978
15979 cat >conftest.c <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985
15986
15987 #include <linux/time.h>
15988 void set_normalized_timespec(struct timespec *ts,
15989 time_t sec, long nsec) { }
15990
15991 int
15992 main (void)
15993 {
15994
15995 ;
15996 return 0;
15997 }
15998
15999 _ACEOF
16000
16001
16002 rm -Rf build && mkdir -p build
16003 echo "obj-m := conftest.o" >build/Makefile
16004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015
16016 { $as_echo "$as_me:$LINENO: result: no" >&5
16017 $as_echo "no" >&6; }
16018
16019 else
16020 $as_echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 { $as_echo "$as_me:$LINENO: result: yes" >&5
16024 $as_echo "yes" >&6; }
16025
16026 cat >>confdefs.h <<\_ACEOF
16027 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
16028 _ACEOF
16029
16030
16031
16032
16033 fi
16034
16035 rm -Rf build
16036
16037
16038
16039
16040 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
16041 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
16042
16043
16044 cat >conftest.c <<_ACEOF
16045 /* confdefs.h. */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050
16051
16052 #include <linux/time.h>
16053
16054 int
16055 main (void)
16056 {
16057
16058 struct timespec a, b, c = { 0 };
16059 c = timespec_sub(a, b);
16060
16061 ;
16062 return 0;
16063 }
16064
16065 _ACEOF
16066
16067
16068 rm -Rf build && mkdir -p build
16069 echo "obj-m := conftest.o" >build/Makefile
16070 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16081
16082 { $as_echo "$as_me:$LINENO: result: yes" >&5
16083 $as_echo "yes" >&6; }
16084
16085 cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_TIMESPEC_SUB 1
16087 _ACEOF
16088
16089
16090 else
16091 $as_echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094 { $as_echo "$as_me:$LINENO: result: no" >&5
16095 $as_echo "no" >&6; }
16096
16097
16098
16099 fi
16100
16101 rm -Rf build
16102
16103
16104
16105
16106 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
16107 $as_echo_n "checking whether init_utsname() is available... " >&6; }
16108
16109
16110 cat >conftest.c <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116
16117
16118 #include <linux/utsname.h>
16119
16120 int
16121 main (void)
16122 {
16123
16124 struct new_utsname *a = init_utsname();
16125
16126 ;
16127 return 0;
16128 }
16129
16130 _ACEOF
16131
16132
16133 rm -Rf build && mkdir -p build
16134 echo "obj-m := conftest.o" >build/Makefile
16135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146
16147 { $as_echo "$as_me:$LINENO: result: yes" >&5
16148 $as_echo "yes" >&6; }
16149
16150 cat >>confdefs.h <<\_ACEOF
16151 #define HAVE_INIT_UTSNAME 1
16152 _ACEOF
16153
16154
16155 else
16156 $as_echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 { $as_echo "$as_me:$LINENO: result: no" >&5
16160 $as_echo "no" >&6; }
16161
16162
16163
16164 fi
16165
16166 rm -Rf build
16167
16168
16169
16170
16171 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
16172 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
16173
16174
16175 cat >conftest.c <<_ACEOF
16176 /* confdefs.h. */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181
16182
16183 #include <linux/fdtable.h>
16184
16185 int
16186 main (void)
16187 {
16188
16189 return 0;
16190
16191 ;
16192 return 0;
16193 }
16194
16195 _ACEOF
16196
16197
16198 rm -Rf build && mkdir -p build
16199 echo "obj-m := conftest.o" >build/Makefile
16200 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211
16212
16213 cat >>confdefs.h <<\_ACEOF
16214 #define HAVE_FDTABLE_HEADER 1
16215 _ACEOF
16216
16217 { $as_echo "$as_me:$LINENO: result: yes" >&5
16218 $as_echo "yes" >&6; }
16219
16220
16221 else
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 { $as_echo "$as_me:$LINENO: result: no" >&5
16226 $as_echo "no" >&6; }
16227
16228
16229
16230
16231 fi
16232
16233 rm -Rf build
16234
16235
16236
16237
16238
16239 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
16240 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
16241
16242
16243 cat >conftest.c <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249
16250
16251 #include <linux/sched.h>
16252 #include <linux/file.h>
16253 #ifdef HAVE_FDTABLE_HEADER
16254 #include <linux/fdtable.h>
16255 #endif
16256
16257 int
16258 main (void)
16259 {
16260
16261 struct files_struct *files = current->files;
16262 struct fdtable *fdt = files_fdtable(files);
16263
16264 ;
16265 return 0;
16266 }
16267
16268 _ACEOF
16269
16270
16271 rm -Rf build && mkdir -p build
16272 echo "obj-m := conftest.o" >build/Makefile
16273 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284
16285 { $as_echo "$as_me:$LINENO: result: yes" >&5
16286 $as_echo "yes" >&6; }
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_FILES_FDTABLE 1
16290 _ACEOF
16291
16292
16293 else
16294 $as_echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297 { $as_echo "$as_me:$LINENO: result: no" >&5
16298 $as_echo "no" >&6; }
16299
16300
16301
16302 fi
16303
16304 rm -Rf build
16305
16306
16307
16308
16309 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
16310 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
16311
16312
16313 cat >conftest.c <<_ACEOF
16314 /* confdefs.h. */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319
16320
16321 #include <linux/uaccess.h>
16322
16323 int
16324 main (void)
16325 {
16326
16327 return 0;
16328
16329 ;
16330 return 0;
16331 }
16332
16333 _ACEOF
16334
16335
16336 rm -Rf build && mkdir -p build
16337 echo "obj-m := conftest.o" >build/Makefile
16338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_UACCESS_HEADER 1
16353 _ACEOF
16354
16355 { $as_echo "$as_me:$LINENO: result: yes" >&5
16356 $as_echo "yes" >&6; }
16357
16358
16359 else
16360 $as_echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 { $as_echo "$as_me:$LINENO: result: no" >&5
16364 $as_echo "no" >&6; }
16365
16366
16367
16368
16369 fi
16370
16371 rm -Rf build
16372
16373
16374
16375
16376
16377 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
16378 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
16379
16380
16381 cat >conftest.c <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387
16388
16389 #include <linux/slab.h>
16390
16391 int
16392 main (void)
16393 {
16394
16395 void *a = kmalloc_node(1, GFP_KERNEL, 0);
16396
16397 ;
16398 return 0;
16399 }
16400
16401 _ACEOF
16402
16403
16404 rm -Rf build && mkdir -p build
16405 echo "obj-m := conftest.o" >build/Makefile
16406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417
16418 { $as_echo "$as_me:$LINENO: result: yes" >&5
16419 $as_echo "yes" >&6; }
16420
16421 cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_KMALLOC_NODE 1
16423 _ACEOF
16424
16425
16426 else
16427 $as_echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 { $as_echo "$as_me:$LINENO: result: no" >&5
16431 $as_echo "no" >&6; }
16432
16433
16434
16435 fi
16436
16437 rm -Rf build
16438
16439
16440
16441
16442 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
16443 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
16444 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
16445 $LINUX_OBJ/Module*.symvers 2>/dev/null
16446 rc=$?
16447 if test $rc -ne 0; then
16448 export=0
16449 for file in ; do
16450 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
16451 "$LINUX_OBJ/$file" 2>/dev/null
16452 rc=$?
16453 if test $rc -eq 0; then
16454 export=1
16455 break;
16456 fi
16457 done
16458 if test $export -eq 0; then
16459 { $as_echo "$as_me:$LINENO: result: no" >&5
16460 $as_echo "no" >&6; }
16461
16462 else
16463 { $as_echo "$as_me:$LINENO: result: yes" >&5
16464 $as_echo "yes" >&6; }
16465
16466 cat >>confdefs.h <<\_ACEOF
16467 #define HAVE_MONOTONIC_CLOCK 1
16468 _ACEOF
16469
16470 fi
16471 else
16472 { $as_echo "$as_me:$LINENO: result: yes" >&5
16473 $as_echo "yes" >&6; }
16474
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE_MONOTONIC_CLOCK 1
16477 _ACEOF
16478
16479 fi
16480
16481
16482
16483 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
16484 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
16485
16486
16487 cat >conftest.c <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493
16494
16495 #include <linux/fs.h>
16496 #include <linux/mutex.h>
16497
16498 int
16499 main (void)
16500 {
16501
16502 struct inode i;
16503 mutex_init(&i.i_mutex);
16504
16505 ;
16506 return 0;
16507 }
16508
16509 _ACEOF
16510
16511
16512 rm -Rf build && mkdir -p build
16513 echo "obj-m := conftest.o" >build/Makefile
16514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525
16526 { $as_echo "$as_me:$LINENO: result: yes" >&5
16527 $as_echo "yes" >&6; }
16528
16529 cat >>confdefs.h <<\_ACEOF
16530 #define HAVE_INODE_I_MUTEX 1
16531 _ACEOF
16532
16533
16534 else
16535 $as_echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538 { $as_echo "$as_me:$LINENO: result: no" >&5
16539 $as_echo "no" >&6; }
16540
16541
16542
16543 fi
16544
16545 rm -Rf build
16546
16547
16548
16549
16550 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
16551 $as_echo_n "checking whether struct mutex has owner... " >&6; }
16552
16553
16554 cat >conftest.c <<_ACEOF
16555 /* confdefs.h. */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560
16561
16562 #include <linux/mutex.h>
16563
16564 int
16565 main (void)
16566 {
16567
16568 struct mutex mtx;
16569 mtx.owner = NULL;
16570
16571 ;
16572 return 0;
16573 }
16574
16575 _ACEOF
16576
16577
16578 rm -Rf build && mkdir -p build
16579 echo "obj-m := conftest.o" >build/Makefile
16580 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
16591
16592 { $as_echo "$as_me:$LINENO: result: yes" >&5
16593 $as_echo "yes" >&6; }
16594
16595 cat >>confdefs.h <<\_ACEOF
16596 #define HAVE_MUTEX_OWNER 1
16597 _ACEOF
16598
16599
16600 else
16601 $as_echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16603
16604 { $as_echo "$as_me:$LINENO: result: no" >&5
16605 $as_echo "no" >&6; }
16606
16607
16608
16609 fi
16610
16611 rm -Rf build
16612
16613
16614
16615
16616 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
16617 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
16618
16619
16620 cat >conftest.c <<_ACEOF
16621 /* confdefs.h. */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626
16627
16628 #include <linux/mutex.h>
16629
16630 int
16631 main (void)
16632 {
16633
16634 struct mutex mutex;
16635 mutex_init(&mutex);
16636 mutex_lock_nested(&mutex, 0);
16637
16638 ;
16639 return 0;
16640 }
16641
16642 _ACEOF
16643
16644
16645 rm -Rf build && mkdir -p build
16646 echo "obj-m := conftest.o" >build/Makefile
16647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658
16659 { $as_echo "$as_me:$LINENO: result: yes" >&5
16660 $as_echo "yes" >&6; }
16661
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_MUTEX_LOCK_NESTED 1
16664 _ACEOF
16665
16666
16667 else
16668 $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671 { $as_echo "$as_me:$LINENO: result: no" >&5
16672 $as_echo "no" >&6; }
16673
16674
16675
16676 fi
16677
16678 rm -Rf build
16679
16680
16681
16682
16683 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
16684 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
16685 grep -q -E '[[:space:]]div64_64[[:space:]]' \
16686 $LINUX_OBJ/Module*.symvers 2>/dev/null
16687 rc=$?
16688 if test $rc -ne 0; then
16689 export=0
16690 for file in ; do
16691 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
16692 "$LINUX_OBJ/$file" 2>/dev/null
16693 rc=$?
16694 if test $rc -eq 0; then
16695 export=1
16696 break;
16697 fi
16698 done
16699 if test $export -eq 0; then
16700 { $as_echo "$as_me:$LINENO: result: no" >&5
16701 $as_echo "no" >&6; }
16702
16703 else
16704 { $as_echo "$as_me:$LINENO: result: yes" >&5
16705 $as_echo "yes" >&6; }
16706
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_DIV64_64 1
16709 _ACEOF
16710
16711 fi
16712 else
16713 { $as_echo "$as_me:$LINENO: result: yes" >&5
16714 $as_echo "yes" >&6; }
16715
16716 cat >>confdefs.h <<\_ACEOF
16717 #define HAVE_DIV64_64 1
16718 _ACEOF
16719
16720 fi
16721
16722
16723
16724 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
16725 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
16726 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
16727 $LINUX_OBJ/Module*.symvers 2>/dev/null
16728 rc=$?
16729 if test $rc -ne 0; then
16730 export=0
16731 for file in ; do
16732 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
16733 "$LINUX_OBJ/$file" 2>/dev/null
16734 rc=$?
16735 if test $rc -eq 0; then
16736 export=1
16737 break;
16738 fi
16739 done
16740 if test $export -eq 0; then
16741 { $as_echo "$as_me:$LINENO: result: no" >&5
16742 $as_echo "no" >&6; }
16743
16744 else
16745 { $as_echo "$as_me:$LINENO: result: yes" >&5
16746 $as_echo "yes" >&6; }
16747
16748 cat >>confdefs.h <<\_ACEOF
16749 #define HAVE_DIV64_U64 1
16750 _ACEOF
16751
16752 fi
16753 else
16754 { $as_echo "$as_me:$LINENO: result: yes" >&5
16755 $as_echo "yes" >&6; }
16756
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_DIV64_U64 1
16759 _ACEOF
16760
16761 fi
16762
16763
16764
16765 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
16766 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
16767
16768
16769 cat >conftest.c <<_ACEOF
16770 /* confdefs.h. */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775
16776
16777 #include <linux/smp.h>
16778
16779 int
16780 main (void)
16781 {
16782
16783 on_each_cpu(NULL, NULL, 0);
16784
16785 ;
16786 return 0;
16787 }
16788
16789 _ACEOF
16790
16791
16792 rm -Rf build && mkdir -p build
16793 echo "obj-m := conftest.o" >build/Makefile
16794 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805
16806 { $as_echo "$as_me:$LINENO: result: yes" >&5
16807 $as_echo "yes" >&6; }
16808
16809 cat >>confdefs.h <<\_ACEOF
16810 #define HAVE_3ARGS_ON_EACH_CPU 1
16811 _ACEOF
16812
16813
16814 else
16815 $as_echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16817
16818 { $as_echo "$as_me:$LINENO: result: no" >&5
16819 $as_echo "no" >&6; }
16820
16821
16822
16823 fi
16824
16825 rm -Rf build
16826
16827
16828
16829
16830 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
16831 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
16832 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
16833 $LINUX_OBJ/Module*.symvers 2>/dev/null
16834 rc=$?
16835 if test $rc -ne 0; then
16836 export=0
16837 for file in ; do
16838 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
16839 "$LINUX_OBJ/$file" 2>/dev/null
16840 rc=$?
16841 if test $rc -eq 0; then
16842 export=1
16843 break;
16844 fi
16845 done
16846 if test $export -eq 0; then
16847 { $as_echo "$as_me:$LINENO: result: no" >&5
16848 $as_echo "no" >&6; }
16849
16850 else
16851 { $as_echo "$as_me:$LINENO: result: yes" >&5
16852 $as_echo "yes" >&6; }
16853
16854 cat >>confdefs.h <<\_ACEOF
16855 #define HAVE_KALLSYMS_LOOKUP_NAME 1
16856 _ACEOF
16857
16858 fi
16859 else
16860 { $as_echo "$as_me:$LINENO: result: yes" >&5
16861 $as_echo "yes" >&6; }
16862
16863 cat >>confdefs.h <<\_ACEOF
16864 #define HAVE_KALLSYMS_LOOKUP_NAME 1
16865 _ACEOF
16866
16867 fi
16868
16869
16870
16871 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
16872 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
16873 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
16874 $LINUX_OBJ/Module*.symvers 2>/dev/null
16875 rc=$?
16876 if test $rc -ne 0; then
16877 export=0
16878 for file in ; do
16879 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
16880 "$LINUX_OBJ/$file" 2>/dev/null
16881 rc=$?
16882 if test $rc -eq 0; then
16883 export=1
16884 break;
16885 fi
16886 done
16887 if test $export -eq 0; then
16888 { $as_echo "$as_me:$LINENO: result: no" >&5
16889 $as_echo "no" >&6; }
16890
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_GET_VMALLOC_INFO 1
16897 _ACEOF
16898
16899 fi
16900 else
16901 { $as_echo "$as_me:$LINENO: result: yes" >&5
16902 $as_echo "yes" >&6; }
16903
16904 cat >>confdefs.h <<\_ACEOF
16905 #define HAVE_GET_VMALLOC_INFO 1
16906 _ACEOF
16907
16908 fi
16909
16910
16911
16912 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
16913 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
16914 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
16915 rc=$?
16916 if test $rc -eq 0; then
16917 { $as_echo "$as_me:$LINENO: result: yes" >&5
16918 $as_echo "yes" >&6; }
16919
16920 cat >>confdefs.h <<\_ACEOF
16921 #define HAVE_PGDAT_HELPERS 1
16922 _ACEOF
16923
16924 else
16925 { $as_echo "$as_me:$LINENO: result: no" >&5
16926 $as_echo "no" >&6; }
16927 fi
16928
16929
16930 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
16931 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
16932 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
16933 $LINUX_OBJ/Module*.symvers 2>/dev/null
16934 rc=$?
16935 if test $rc -ne 0; then
16936 export=0
16937 for file in ; do
16938 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
16939 "$LINUX_OBJ/$file" 2>/dev/null
16940 rc=$?
16941 if test $rc -eq 0; then
16942 export=1
16943 break;
16944 fi
16945 done
16946 if test $export -eq 0; then
16947 { $as_echo "$as_me:$LINENO: result: no" >&5
16948 $as_echo "no" >&6; }
16949
16950 else
16951 { $as_echo "$as_me:$LINENO: result: yes" >&5
16952 $as_echo "yes" >&6; }
16953
16954 cat >>confdefs.h <<\_ACEOF
16955 #define HAVE_FIRST_ONLINE_PGDAT 1
16956 _ACEOF
16957
16958 fi
16959 else
16960 { $as_echo "$as_me:$LINENO: result: yes" >&5
16961 $as_echo "yes" >&6; }
16962
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_FIRST_ONLINE_PGDAT 1
16965 _ACEOF
16966
16967 fi
16968
16969
16970
16971 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
16972 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
16973 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
16974 $LINUX_OBJ/Module*.symvers 2>/dev/null
16975 rc=$?
16976 if test $rc -ne 0; then
16977 export=0
16978 for file in ; do
16979 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
16980 "$LINUX_OBJ/$file" 2>/dev/null
16981 rc=$?
16982 if test $rc -eq 0; then
16983 export=1
16984 break;
16985 fi
16986 done
16987 if test $export -eq 0; then
16988 { $as_echo "$as_me:$LINENO: result: no" >&5
16989 $as_echo "no" >&6; }
16990
16991 else
16992 { $as_echo "$as_me:$LINENO: result: yes" >&5
16993 $as_echo "yes" >&6; }
16994
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_NEXT_ONLINE_PGDAT 1
16997 _ACEOF
16998
16999 fi
17000 else
17001 { $as_echo "$as_me:$LINENO: result: yes" >&5
17002 $as_echo "yes" >&6; }
17003
17004 cat >>confdefs.h <<\_ACEOF
17005 #define HAVE_NEXT_ONLINE_PGDAT 1
17006 _ACEOF
17007
17008 fi
17009
17010
17011
17012 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
17013 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
17014 grep -q -E '[[:space:]]next_zone[[:space:]]' \
17015 $LINUX_OBJ/Module*.symvers 2>/dev/null
17016 rc=$?
17017 if test $rc -ne 0; then
17018 export=0
17019 for file in ; do
17020 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
17021 "$LINUX_OBJ/$file" 2>/dev/null
17022 rc=$?
17023 if test $rc -eq 0; then
17024 export=1
17025 break;
17026 fi
17027 done
17028 if test $export -eq 0; then
17029 { $as_echo "$as_me:$LINENO: result: no" >&5
17030 $as_echo "no" >&6; }
17031
17032 else
17033 { $as_echo "$as_me:$LINENO: result: yes" >&5
17034 $as_echo "yes" >&6; }
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_NEXT_ZONE 1
17038 _ACEOF
17039
17040 fi
17041 else
17042 { $as_echo "$as_me:$LINENO: result: yes" >&5
17043 $as_echo "yes" >&6; }
17044
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_NEXT_ZONE 1
17047 _ACEOF
17048
17049 fi
17050
17051
17052
17053 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
17054 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
17055 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
17056 $LINUX_OBJ/Module*.symvers 2>/dev/null
17057 rc=$?
17058 if test $rc -ne 0; then
17059 export=0
17060 for file in ; do
17061 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
17062 "$LINUX_OBJ/$file" 2>/dev/null
17063 rc=$?
17064 if test $rc -eq 0; then
17065 export=1
17066 break;
17067 fi
17068 done
17069 if test $export -eq 0; then
17070 { $as_echo "$as_me:$LINENO: result: no" >&5
17071 $as_echo "no" >&6; }
17072
17073 else
17074 { $as_echo "$as_me:$LINENO: result: yes" >&5
17075 $as_echo "yes" >&6; }
17076
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_PGDAT_LIST 1
17079 _ACEOF
17080
17081 fi
17082 else
17083 { $as_echo "$as_me:$LINENO: result: yes" >&5
17084 $as_echo "yes" >&6; }
17085
17086 cat >>confdefs.h <<\_ACEOF
17087 #define HAVE_PGDAT_LIST 1
17088 _ACEOF
17089
17090 fi
17091
17092
17093
17094 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
17095 $as_echo_n "checking whether global_page_state() is available... " >&6; }
17096
17097
17098 cat >conftest.c <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104
17105
17106 #include <linux/mm.h>
17107
17108 int
17109 main (void)
17110 {
17111
17112 unsigned long state;
17113 state = global_page_state(0);
17114
17115 ;
17116 return 0;
17117 }
17118
17119 _ACEOF
17120
17121
17122 rm -Rf build && mkdir -p build
17123 echo "obj-m := conftest.o" >build/Makefile
17124 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135
17136 { $as_echo "$as_me:$LINENO: result: yes" >&5
17137 $as_echo "yes" >&6; }
17138
17139 cat >>confdefs.h <<\_ACEOF
17140 #define HAVE_GLOBAL_PAGE_STATE 1
17141 _ACEOF
17142
17143
17144 else
17145 $as_echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 { $as_echo "$as_me:$LINENO: result: no" >&5
17149 $as_echo "no" >&6; }
17150
17151
17152
17153 fi
17154
17155 rm -Rf build
17156
17157
17158
17159
17160 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
17161 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
17162
17163
17164 cat >conftest.c <<_ACEOF
17165 /* confdefs.h. */
17166 _ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17170
17171
17172 #include <linux/mm.h>
17173
17174 int
17175 main (void)
17176 {
17177
17178 enum zone_stat_item zsi;
17179 zsi = NR_FREE_PAGES;
17180
17181 ;
17182 return 0;
17183 }
17184
17185 _ACEOF
17186
17187
17188 rm -Rf build && mkdir -p build
17189 echo "obj-m := conftest.o" >build/Makefile
17190 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201
17202 { $as_echo "$as_me:$LINENO: result: yes" >&5
17203 $as_echo "yes" >&6; }
17204
17205 cat >>confdefs.h <<\_ACEOF
17206 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
17207 _ACEOF
17208
17209
17210 else
17211 $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 { $as_echo "$as_me:$LINENO: result: no" >&5
17215 $as_echo "no" >&6; }
17216
17217
17218
17219 fi
17220
17221 rm -Rf build
17222
17223
17224
17225
17226 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
17227 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
17228
17229
17230 cat >conftest.c <<_ACEOF
17231 /* confdefs.h. */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236
17237
17238 #include <linux/mm.h>
17239
17240 int
17241 main (void)
17242 {
17243
17244 enum zone_stat_item zsi;
17245 zsi = NR_INACTIVE;
17246
17247 ;
17248 return 0;
17249 }
17250
17251 _ACEOF
17252
17253
17254 rm -Rf build && mkdir -p build
17255 echo "obj-m := conftest.o" >build/Makefile
17256 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267
17268 { $as_echo "$as_me:$LINENO: result: yes" >&5
17269 $as_echo "yes" >&6; }
17270
17271 cat >>confdefs.h <<\_ACEOF
17272 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
17273 _ACEOF
17274
17275
17276 else
17277 $as_echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 { $as_echo "$as_me:$LINENO: result: no" >&5
17281 $as_echo "no" >&6; }
17282
17283
17284
17285 fi
17286
17287 rm -Rf build
17288
17289
17290
17291 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
17292 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
17293
17294
17295 cat >conftest.c <<_ACEOF
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301
17302
17303 #include <linux/mm.h>
17304
17305 int
17306 main (void)
17307 {
17308
17309 enum zone_stat_item zsi;
17310 zsi = NR_INACTIVE_ANON;
17311
17312 ;
17313 return 0;
17314 }
17315
17316 _ACEOF
17317
17318
17319 rm -Rf build && mkdir -p build
17320 echo "obj-m := conftest.o" >build/Makefile
17321 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332
17333 { $as_echo "$as_me:$LINENO: result: yes" >&5
17334 $as_echo "yes" >&6; }
17335
17336 cat >>confdefs.h <<\_ACEOF
17337 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
17338 _ACEOF
17339
17340
17341 else
17342 $as_echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345 { $as_echo "$as_me:$LINENO: result: no" >&5
17346 $as_echo "no" >&6; }
17347
17348
17349
17350 fi
17351
17352 rm -Rf build
17353
17354
17355
17356 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
17357 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
17358
17359
17360 cat >conftest.c <<_ACEOF
17361 /* confdefs.h. */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17366
17367
17368 #include <linux/mm.h>
17369
17370 int
17371 main (void)
17372 {
17373
17374 enum zone_stat_item zsi;
17375 zsi = NR_INACTIVE_FILE;
17376
17377 ;
17378 return 0;
17379 }
17380
17381 _ACEOF
17382
17383
17384 rm -Rf build && mkdir -p build
17385 echo "obj-m := conftest.o" >build/Makefile
17386 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17389 ac_status=$?
17390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17394 ac_status=$?
17395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397
17398 { $as_echo "$as_me:$LINENO: result: yes" >&5
17399 $as_echo "yes" >&6; }
17400
17401 cat >>confdefs.h <<\_ACEOF
17402 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
17403 _ACEOF
17404
17405
17406 else
17407 $as_echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410 { $as_echo "$as_me:$LINENO: result: no" >&5
17411 $as_echo "no" >&6; }
17412
17413
17414
17415 fi
17416
17417 rm -Rf build
17418
17419
17420
17421
17422 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
17423 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
17424
17425
17426 cat >conftest.c <<_ACEOF
17427 /* confdefs.h. */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432
17433
17434 #include <linux/mm.h>
17435
17436 int
17437 main (void)
17438 {
17439
17440 enum zone_stat_item zsi;
17441 zsi = NR_ACTIVE;
17442
17443 ;
17444 return 0;
17445 }
17446
17447 _ACEOF
17448
17449
17450 rm -Rf build && mkdir -p build
17451 echo "obj-m := conftest.o" >build/Makefile
17452 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463
17464 { $as_echo "$as_me:$LINENO: result: yes" >&5
17465 $as_echo "yes" >&6; }
17466
17467 cat >>confdefs.h <<\_ACEOF
17468 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
17469 _ACEOF
17470
17471
17472 else
17473 $as_echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 { $as_echo "$as_me:$LINENO: result: no" >&5
17477 $as_echo "no" >&6; }
17478
17479
17480
17481 fi
17482
17483 rm -Rf build
17484
17485
17486
17487 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
17488 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
17489
17490
17491 cat >conftest.c <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497
17498
17499 #include <linux/mm.h>
17500
17501 int
17502 main (void)
17503 {
17504
17505 enum zone_stat_item zsi;
17506 zsi = NR_ACTIVE_ANON;
17507
17508 ;
17509 return 0;
17510 }
17511
17512 _ACEOF
17513
17514
17515 rm -Rf build && mkdir -p build
17516 echo "obj-m := conftest.o" >build/Makefile
17517 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528
17529 { $as_echo "$as_me:$LINENO: result: yes" >&5
17530 $as_echo "yes" >&6; }
17531
17532 cat >>confdefs.h <<\_ACEOF
17533 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
17534 _ACEOF
17535
17536
17537 else
17538 $as_echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541 { $as_echo "$as_me:$LINENO: result: no" >&5
17542 $as_echo "no" >&6; }
17543
17544
17545
17546 fi
17547
17548 rm -Rf build
17549
17550
17551
17552 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
17553 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
17554
17555
17556 cat >conftest.c <<_ACEOF
17557 /* confdefs.h. */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562
17563
17564 #include <linux/mm.h>
17565
17566 int
17567 main (void)
17568 {
17569
17570 enum zone_stat_item zsi;
17571 zsi = NR_ACTIVE_FILE;
17572
17573 ;
17574 return 0;
17575 }
17576
17577 _ACEOF
17578
17579
17580 rm -Rf build && mkdir -p build
17581 echo "obj-m := conftest.o" >build/Makefile
17582 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593
17594 { $as_echo "$as_me:$LINENO: result: yes" >&5
17595 $as_echo "yes" >&6; }
17596
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
17599 _ACEOF
17600
17601
17602 else
17603 $as_echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 { $as_echo "$as_me:$LINENO: result: no" >&5
17607 $as_echo "no" >&6; }
17608
17609
17610
17611 fi
17612
17613 rm -Rf build
17614
17615
17616
17617
17618 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
17619 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
17620
17621
17622 cat >conftest.c <<_ACEOF
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628
17629
17630
17631 int
17632 main (void)
17633 {
17634
17635 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
17636 #error "global_page_state needs NR_FREE_PAGES"
17637 #endif
17638
17639 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
17640 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
17641 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
17642 #error "global_page_state needs NR_ACTIVE*"
17643 #endif
17644
17645 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
17646 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
17647 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
17648 #error "global_page_state needs NR_INACTIVE*"
17649 #endif
17650
17651 ;
17652 return 0;
17653 }
17654
17655 _ACEOF
17656
17657
17658 rm -Rf build && mkdir -p build
17659 echo "obj-m := conftest.o" >build/Makefile
17660 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671
17672 { $as_echo "$as_me:$LINENO: result: no" >&5
17673 $as_echo "no" >&6; }
17674
17675 else
17676 $as_echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 { $as_echo "$as_me:$LINENO: result: yes" >&5
17680 $as_echo "yes" >&6; }
17681
17682 cat >>confdefs.h <<\_ACEOF
17683 #define NEED_GET_ZONE_COUNTS 1
17684 _ACEOF
17685
17686
17687 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
17688 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
17689 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
17690 $LINUX_OBJ/Module*.symvers 2>/dev/null
17691 rc=$?
17692 if test $rc -ne 0; then
17693 export=0
17694 for file in ; do
17695 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
17696 "$LINUX_OBJ/$file" 2>/dev/null
17697 rc=$?
17698 if test $rc -eq 0; then
17699 export=1
17700 break;
17701 fi
17702 done
17703 if test $export -eq 0; then
17704 { $as_echo "$as_me:$LINENO: result: no" >&5
17705 $as_echo "no" >&6; }
17706
17707 else
17708 { $as_echo "$as_me:$LINENO: result: yes" >&5
17709 $as_echo "yes" >&6; }
17710
17711 cat >>confdefs.h <<\_ACEOF
17712 #define HAVE_GET_ZONE_COUNTS 1
17713 _ACEOF
17714
17715 fi
17716 else
17717 { $as_echo "$as_me:$LINENO: result: yes" >&5
17718 $as_echo "yes" >&6; }
17719
17720 cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_GET_ZONE_COUNTS 1
17722 _ACEOF
17723
17724 fi
17725
17726
17727
17728
17729 fi
17730
17731 rm -Rf build
17732
17733
17734
17735
17736 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
17737 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
17738 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
17739 $LINUX_OBJ/Module*.symvers 2>/dev/null
17740 rc=$?
17741 if test $rc -ne 0; then
17742 export=0
17743 for file in ; do
17744 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
17745 "$LINUX_OBJ/$file" 2>/dev/null
17746 rc=$?
17747 if test $rc -eq 0; then
17748 export=1
17749 break;
17750 fi
17751 done
17752 if test $export -eq 0; then
17753 { $as_echo "$as_me:$LINENO: result: no" >&5
17754 $as_echo "no" >&6; }
17755
17756 else
17757 { $as_echo "$as_me:$LINENO: result: yes" >&5
17758 $as_echo "yes" >&6; }
17759
17760 cat >>confdefs.h <<\_ACEOF
17761 #define HAVE_SET_FS_PWD 1
17762 _ACEOF
17763
17764 fi
17765 else
17766 { $as_echo "$as_me:$LINENO: result: yes" >&5
17767 $as_echo "yes" >&6; }
17768
17769 cat >>confdefs.h <<\_ACEOF
17770 #define HAVE_SET_FS_PWD 1
17771 _ACEOF
17772
17773 fi
17774
17775
17776 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
17777 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
17778
17779
17780 cat >conftest.c <<_ACEOF
17781 /* confdefs.h. */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786
17787
17788 #include <linux/sched.h>
17789 #include <linux/fs_struct.h>
17790
17791 int
17792 main (void)
17793 {
17794
17795 set_fs_pwd(NULL, NULL);
17796
17797 ;
17798 return 0;
17799 }
17800
17801 _ACEOF
17802
17803
17804 rm -Rf build && mkdir -p build
17805 echo "obj-m := conftest.o" >build/Makefile
17806 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817
17818 { $as_echo "$as_me:$LINENO: result: yes" >&5
17819 $as_echo "yes" >&6; }
17820
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_2ARGS_SET_FS_PWD 1
17823 _ACEOF
17824
17825
17826 else
17827 $as_echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830 { $as_echo "$as_me:$LINENO: result: no" >&5
17831 $as_echo "no" >&6; }
17832
17833
17834
17835 fi
17836
17837 rm -Rf build
17838
17839
17840
17841 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
17842 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
17843
17844
17845 cat >conftest.c <<_ACEOF
17846 /* confdefs.h. */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851
17852
17853 #include <linux/fs.h>
17854
17855 int
17856 main (void)
17857 {
17858
17859 vfs_unlink(NULL, NULL);
17860
17861 ;
17862 return 0;
17863 }
17864
17865 _ACEOF
17866
17867
17868 rm -Rf build && mkdir -p build
17869 echo "obj-m := conftest.o" >build/Makefile
17870 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881
17882 { $as_echo "$as_me:$LINENO: result: yes" >&5
17883 $as_echo "yes" >&6; }
17884
17885 cat >>confdefs.h <<\_ACEOF
17886 #define HAVE_2ARGS_VFS_UNLINK 1
17887 _ACEOF
17888
17889
17890 else
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17893
17894 { $as_echo "$as_me:$LINENO: result: no" >&5
17895 $as_echo "no" >&6; }
17896
17897
17898
17899 fi
17900
17901 rm -Rf build
17902
17903
17904
17905 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
17906 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
17907
17908
17909 cat >conftest.c <<_ACEOF
17910 /* confdefs.h. */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915
17916
17917 #include <linux/fs.h>
17918
17919 int
17920 main (void)
17921 {
17922
17923 vfs_rename(NULL, NULL, NULL, NULL);
17924
17925 ;
17926 return 0;
17927 }
17928
17929 _ACEOF
17930
17931
17932 rm -Rf build && mkdir -p build
17933 echo "obj-m := conftest.o" >build/Makefile
17934 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945
17946 { $as_echo "$as_me:$LINENO: result: yes" >&5
17947 $as_echo "yes" >&6; }
17948
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_4ARGS_VFS_RENAME 1
17951 _ACEOF
17952
17953
17954 else
17955 $as_echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17957
17958 { $as_echo "$as_me:$LINENO: result: no" >&5
17959 $as_echo "no" >&6; }
17960
17961
17962
17963 fi
17964
17965 rm -Rf build
17966
17967
17968
17969
17970 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
17971 $as_echo_n "checking whether struct cred exists... " >&6; }
17972
17973
17974 cat >conftest.c <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980
17981
17982 #include <linux/cred.h>
17983
17984 int
17985 main (void)
17986 {
17987
17988 struct cred *cr;
17989 cr = NULL;
17990
17991 ;
17992 return 0;
17993 }
17994
17995 _ACEOF
17996
17997
17998 rm -Rf build && mkdir -p build
17999 echo "obj-m := conftest.o" >build/Makefile
18000 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011
18012 { $as_echo "$as_me:$LINENO: result: yes" >&5
18013 $as_echo "yes" >&6; }
18014
18015 cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_CRED_STRUCT 1
18017 _ACEOF
18018
18019
18020 else
18021 $as_echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 { $as_echo "$as_me:$LINENO: result: no" >&5
18025 $as_echo "no" >&6; }
18026
18027
18028
18029 fi
18030
18031 rm -Rf build
18032
18033
18034
18035
18036 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
18037 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
18038 grep -q -E '[[:space:]]groups_search[[:space:]]' \
18039 $LINUX_OBJ/Module*.symvers 2>/dev/null
18040 rc=$?
18041 if test $rc -ne 0; then
18042 export=0
18043 for file in ; do
18044 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
18045 "$LINUX_OBJ/$file" 2>/dev/null
18046 rc=$?
18047 if test $rc -eq 0; then
18048 export=1
18049 break;
18050 fi
18051 done
18052 if test $export -eq 0; then
18053 { $as_echo "$as_me:$LINENO: result: no" >&5
18054 $as_echo "no" >&6; }
18055
18056 else
18057 { $as_echo "$as_me:$LINENO: result: yes" >&5
18058 $as_echo "yes" >&6; }
18059
18060 cat >>confdefs.h <<\_ACEOF
18061 #define HAVE_GROUPS_SEARCH 1
18062 _ACEOF
18063
18064 fi
18065 else
18066 { $as_echo "$as_me:$LINENO: result: yes" >&5
18067 $as_echo "yes" >&6; }
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_GROUPS_SEARCH 1
18071 _ACEOF
18072
18073 fi
18074
18075
18076
18077 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
18078 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
18079 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
18080 $LINUX_OBJ/Module*.symvers 2>/dev/null
18081 rc=$?
18082 if test $rc -ne 0; then
18083 export=0
18084 for file in ; do
18085 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
18086 "$LINUX_OBJ/$file" 2>/dev/null
18087 rc=$?
18088 if test $rc -eq 0; then
18089 export=1
18090 break;
18091 fi
18092 done
18093 if test $export -eq 0; then
18094 { $as_echo "$as_me:$LINENO: result: no" >&5
18095 $as_echo "no" >&6; }
18096
18097 else
18098 { $as_echo "$as_me:$LINENO: result: yes" >&5
18099 $as_echo "yes" >&6; }
18100
18101 cat >>confdefs.h <<\_ACEOF
18102 #define HAVE_PUT_TASK_STRUCT 1
18103 _ACEOF
18104
18105 fi
18106 else
18107 { $as_echo "$as_me:$LINENO: result: yes" >&5
18108 $as_echo "yes" >&6; }
18109
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE_PUT_TASK_STRUCT 1
18112 _ACEOF
18113
18114 fi
18115
18116
18117
18118 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
18119 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
18120
18121
18122 cat >conftest.c <<_ACEOF
18123 /* confdefs.h. */
18124 _ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128
18129
18130 #include <linux/sysctl.h>
18131
18132 int
18133 main (void)
18134 {
18135
18136 proc_dostring(NULL, 0, NULL, NULL, NULL);
18137
18138 ;
18139 return 0;
18140 }
18141
18142 _ACEOF
18143
18144
18145 rm -Rf build && mkdir -p build
18146 echo "obj-m := conftest.o" >build/Makefile
18147 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18150 ac_status=$?
18151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18158
18159 { $as_echo "$as_me:$LINENO: result: yes" >&5
18160 $as_echo "yes" >&6; }
18161
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_5ARGS_PROC_HANDLER 1
18164 _ACEOF
18165
18166
18167 else
18168 $as_echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 { $as_echo "$as_me:$LINENO: result: no" >&5
18172 $as_echo "no" >&6; }
18173
18174
18175
18176 fi
18177
18178 rm -Rf build
18179
18180
18181
18182
18183 ;;
18184 srpm) ;;
18185 *)
18186 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18187 $as_echo "Error!" >&6; }
18188 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18189 user kernel|user|all|srpm" >&5
18190 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18191 user kernel|user|all|srpm" >&2;}
18192 { (exit 1); exit 1; }; } ;;
18193 esac
18194
18195 if test "$SPL_CONFIG" = user ||
18196 test "$SPL_CONFIG" = all; then
18197 CONFIG_USER_TRUE=
18198 CONFIG_USER_FALSE='#'
18199 else
18200 CONFIG_USER_TRUE='#'
18201 CONFIG_USER_FALSE=
18202 fi
18203
18204 if test "$SPL_CONFIG" = kernel ||
18205 test "$SPL_CONFIG" = all; then
18206 CONFIG_KERNEL_TRUE=
18207 CONFIG_KERNEL_FALSE='#'
18208 else
18209 CONFIG_KERNEL_TRUE='#'
18210 CONFIG_KERNEL_FALSE=
18211 fi
18212
18213
18214
18215 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"
18216
18217
18218 cat >confcache <<\_ACEOF
18219 # This file is a shell script that caches the results of configure
18220 # tests run on this system so they can be shared between configure
18221 # scripts and configure runs, see configure's option --config-cache.
18222 # It is not useful on other systems. If it contains results you don't
18223 # want to keep, you may remove or edit it.
18224 #
18225 # config.status only pays attention to the cache file if you give it
18226 # the --recheck option to rerun configure.
18227 #
18228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18230 # following values.
18231
18232 _ACEOF
18233
18234 # The following way of writing the cache mishandles newlines in values,
18235 # but we know of no workaround that is simple, portable, and efficient.
18236 # So, we kill variables containing newlines.
18237 # Ultrix sh set writes to stderr and can't be redirected directly,
18238 # and sets the high bit in the cache file unless we assign to the vars.
18239 (
18240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18241 eval ac_val=\$$ac_var
18242 case $ac_val in #(
18243 *${as_nl}*)
18244 case $ac_var in #(
18245 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18247 esac
18248 case $ac_var in #(
18249 _ | IFS | as_nl) ;; #(
18250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18251 *) $as_unset $ac_var ;;
18252 esac ;;
18253 esac
18254 done
18255
18256 (set) 2>&1 |
18257 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18258 *${as_nl}ac_space=\ *)
18259 # `set' does not quote correctly, so add quotes (double-quote
18260 # substitution turns \\\\ into \\, and sed turns \\ into \).
18261 sed -n \
18262 "s/'/'\\\\''/g;
18263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18264 ;; #(
18265 *)
18266 # `set' quotes correctly as required by POSIX, so do not add quotes.
18267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18268 ;;
18269 esac |
18270 sort
18271 ) |
18272 sed '
18273 /^ac_cv_env_/b end
18274 t clear
18275 :clear
18276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18277 t end
18278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18279 :end' >>confcache
18280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18281 if test -w "$cache_file"; then
18282 test "x$cache_file" != "x/dev/null" &&
18283 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18284 $as_echo "$as_me: updating cache $cache_file" >&6;}
18285 cat confcache >$cache_file
18286 else
18287 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18288 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18289 fi
18290 fi
18291 rm -f confcache
18292
18293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18294 # Let make expand exec_prefix.
18295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18296
18297 DEFS=-DHAVE_CONFIG_H
18298
18299 ac_libobjs=
18300 ac_ltlibobjs=
18301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18302 # 1. Remove the extension, and $U if already installed.
18303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18304 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18306 # will be set to the directory where LIBOBJS objects are built.
18307 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18308 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18309 done
18310 LIBOBJS=$ac_libobjs
18311
18312 LTLIBOBJS=$ac_ltlibobjs
18313
18314
18315 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18316 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18317 Usually this means the macro was only invoked conditionally." >&5
18318 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18319 Usually this means the macro was only invoked conditionally." >&2;}
18320 { (exit 1); exit 1; }; }
18321 fi
18322 if test -n "$EXEEXT"; then
18323 am__EXEEXT_TRUE=
18324 am__EXEEXT_FALSE='#'
18325 else
18326 am__EXEEXT_TRUE='#'
18327 am__EXEEXT_FALSE=
18328 fi
18329
18330 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18331 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18332 Usually this means the macro was only invoked conditionally." >&5
18333 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18334 Usually this means the macro was only invoked conditionally." >&2;}
18335 { (exit 1); exit 1; }; }
18336 fi
18337 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18338 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18339 Usually this means the macro was only invoked conditionally." >&5
18340 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18341 Usually this means the macro was only invoked conditionally." >&2;}
18342 { (exit 1); exit 1; }; }
18343 fi
18344 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18345 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18346 Usually this means the macro was only invoked conditionally." >&5
18347 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18348 Usually this means the macro was only invoked conditionally." >&2;}
18349 { (exit 1); exit 1; }; }
18350 fi
18351 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18352 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18353 Usually this means the macro was only invoked conditionally." >&5
18354 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18355 Usually this means the macro was only invoked conditionally." >&2;}
18356 { (exit 1); exit 1; }; }
18357 fi
18358
18359 : ${CONFIG_STATUS=./config.status}
18360 ac_write_fail=0
18361 ac_clean_files_save=$ac_clean_files
18362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18363 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18364 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18365 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18366 #! $SHELL
18367 # Generated by $as_me.
18368 # Run this file to recreate the current configuration.
18369 # Compiler output produced by configure, useful for debugging
18370 # configure, is in config.log if it exists.
18371
18372 debug=false
18373 ac_cs_recheck=false
18374 ac_cs_silent=false
18375 SHELL=\${CONFIG_SHELL-$SHELL}
18376 _ACEOF
18377
18378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18379 ## --------------------- ##
18380 ## M4sh Initialization. ##
18381 ## --------------------- ##
18382
18383 # Be more Bourne compatible
18384 DUALCASE=1; export DUALCASE # for MKS sh
18385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18386 emulate sh
18387 NULLCMD=:
18388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18389 # is contrary to our usage. Disable this feature.
18390 alias -g '${1+"$@"}'='"$@"'
18391 setopt NO_GLOB_SUBST
18392 else
18393 case `(set -o) 2>/dev/null` in
18394 *posix*) set -o posix ;;
18395 esac
18396
18397 fi
18398
18399
18400
18401
18402 # PATH needs CR
18403 # Avoid depending upon Character Ranges.
18404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18407 as_cr_digits='0123456789'
18408 as_cr_alnum=$as_cr_Letters$as_cr_digits
18409
18410 as_nl='
18411 '
18412 export as_nl
18413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18417 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18418 as_echo='printf %s\n'
18419 as_echo_n='printf %s'
18420 else
18421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18422 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18423 as_echo_n='/usr/ucb/echo -n'
18424 else
18425 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18426 as_echo_n_body='eval
18427 arg=$1;
18428 case $arg in
18429 *"$as_nl"*)
18430 expr "X$arg" : "X\\(.*\\)$as_nl";
18431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18432 esac;
18433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18434 '
18435 export as_echo_n_body
18436 as_echo_n='sh -c $as_echo_n_body as_echo'
18437 fi
18438 export as_echo_body
18439 as_echo='sh -c $as_echo_body as_echo'
18440 fi
18441
18442 # The user is always right.
18443 if test "${PATH_SEPARATOR+set}" != set; then
18444 PATH_SEPARATOR=:
18445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18447 PATH_SEPARATOR=';'
18448 }
18449 fi
18450
18451 # Support unset when possible.
18452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18453 as_unset=unset
18454 else
18455 as_unset=false
18456 fi
18457
18458
18459 # IFS
18460 # We need space, tab and new line, in precisely that order. Quoting is
18461 # there to prevent editors from complaining about space-tab.
18462 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18463 # splitting by setting IFS to empty value.)
18464 IFS=" "" $as_nl"
18465
18466 # Find who we are. Look in the path if we contain no directory separator.
18467 case $0 in
18468 *[\\/]* ) as_myself=$0 ;;
18469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18470 for as_dir in $PATH
18471 do
18472 IFS=$as_save_IFS
18473 test -z "$as_dir" && as_dir=.
18474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18475 done
18476 IFS=$as_save_IFS
18477
18478 ;;
18479 esac
18480 # We did not find ourselves, most probably we were run as `sh COMMAND'
18481 # in which case we are not to be found in the path.
18482 if test "x$as_myself" = x; then
18483 as_myself=$0
18484 fi
18485 if test ! -f "$as_myself"; then
18486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18487 { (exit 1); exit 1; }
18488 fi
18489
18490 # Work around bugs in pre-3.0 UWIN ksh.
18491 for as_var in ENV MAIL MAILPATH
18492 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18493 done
18494 PS1='$ '
18495 PS2='> '
18496 PS4='+ '
18497
18498 # NLS nuisances.
18499 LC_ALL=C
18500 export LC_ALL
18501 LANGUAGE=C
18502 export LANGUAGE
18503
18504 # Required to use basename.
18505 if expr a : '\(a\)' >/dev/null 2>&1 &&
18506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18507 as_expr=expr
18508 else
18509 as_expr=false
18510 fi
18511
18512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18513 as_basename=basename
18514 else
18515 as_basename=false
18516 fi
18517
18518
18519 # Name of the executable.
18520 as_me=`$as_basename -- "$0" ||
18521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18522 X"$0" : 'X\(//\)$' \| \
18523 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18524 $as_echo X/"$0" |
18525 sed '/^.*\/\([^/][^/]*\)\/*$/{
18526 s//\1/
18527 q
18528 }
18529 /^X\/\(\/\/\)$/{
18530 s//\1/
18531 q
18532 }
18533 /^X\/\(\/\).*/{
18534 s//\1/
18535 q
18536 }
18537 s/.*/./; q'`
18538
18539 # CDPATH.
18540 $as_unset CDPATH
18541
18542
18543
18544 as_lineno_1=$LINENO
18545 as_lineno_2=$LINENO
18546 test "x$as_lineno_1" != "x$as_lineno_2" &&
18547 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18548
18549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18550 # uniformly replaced by the line number. The first 'sed' inserts a
18551 # line-number line after each line using $LINENO; the second 'sed'
18552 # does the real work. The second script uses 'N' to pair each
18553 # line-number line with the line containing $LINENO, and appends
18554 # trailing '-' during substitution so that $LINENO is not a special
18555 # case at line end.
18556 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18557 # scripts with optimization help from Paolo Bonzini. Blame Lee
18558 # E. McMahon (1931-1989) for sed's syntax. :-)
18559 sed -n '
18560 p
18561 /[$]LINENO/=
18562 ' <$as_myself |
18563 sed '
18564 s/[$]LINENO.*/&-/
18565 t lineno
18566 b
18567 :lineno
18568 N
18569 :loop
18570 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18571 t loop
18572 s/-\n.*//
18573 ' >$as_me.lineno &&
18574 chmod +x "$as_me.lineno" ||
18575 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18576 { (exit 1); exit 1; }; }
18577
18578 # Don't try to exec as it changes $[0], causing all sort of problems
18579 # (the dirname of $[0] is not the place where we might find the
18580 # original and so on. Autoconf is especially sensitive to this).
18581 . "./$as_me.lineno"
18582 # Exit status is that of the last command.
18583 exit
18584 }
18585
18586
18587 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18588 as_dirname=dirname
18589 else
18590 as_dirname=false
18591 fi
18592
18593 ECHO_C= ECHO_N= ECHO_T=
18594 case `echo -n x` in
18595 -n*)
18596 case `echo 'x\c'` in
18597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18598 *) ECHO_C='\c';;
18599 esac;;
18600 *)
18601 ECHO_N='-n';;
18602 esac
18603 if expr a : '\(a\)' >/dev/null 2>&1 &&
18604 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18605 as_expr=expr
18606 else
18607 as_expr=false
18608 fi
18609
18610 rm -f conf$$ conf$$.exe conf$$.file
18611 if test -d conf$$.dir; then
18612 rm -f conf$$.dir/conf$$.file
18613 else
18614 rm -f conf$$.dir
18615 mkdir conf$$.dir 2>/dev/null
18616 fi
18617 if (echo >conf$$.file) 2>/dev/null; then
18618 if ln -s conf$$.file conf$$ 2>/dev/null; then
18619 as_ln_s='ln -s'
18620 # ... but there are two gotchas:
18621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18623 # In both cases, we have to default to `cp -p'.
18624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18625 as_ln_s='cp -p'
18626 elif ln conf$$.file conf$$ 2>/dev/null; then
18627 as_ln_s=ln
18628 else
18629 as_ln_s='cp -p'
18630 fi
18631 else
18632 as_ln_s='cp -p'
18633 fi
18634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18635 rmdir conf$$.dir 2>/dev/null
18636
18637 if mkdir -p . 2>/dev/null; then
18638 as_mkdir_p=:
18639 else
18640 test -d ./-p && rmdir ./-p
18641 as_mkdir_p=false
18642 fi
18643
18644 if test -x / >/dev/null 2>&1; then
18645 as_test_x='test -x'
18646 else
18647 if ls -dL / >/dev/null 2>&1; then
18648 as_ls_L_option=L
18649 else
18650 as_ls_L_option=
18651 fi
18652 as_test_x='
18653 eval sh -c '\''
18654 if test -d "$1"; then
18655 test -d "$1/.";
18656 else
18657 case $1 in
18658 -*)set "./$1";;
18659 esac;
18660 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18661 ???[sx]*):;;*)false;;esac;fi
18662 '\'' sh
18663 '
18664 fi
18665 as_executable_p=$as_test_x
18666
18667 # Sed expression to map a string onto a valid CPP name.
18668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18669
18670 # Sed expression to map a string onto a valid variable name.
18671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18672
18673
18674 exec 6>&1
18675
18676 # Save the log message, to keep $[0] and so on meaningful, and to
18677 # report actual input values of CONFIG_FILES etc. instead of their
18678 # values after options handling.
18679 ac_log="
18680 This file was extended by $as_me, which was
18681 generated by GNU Autoconf 2.63. Invocation command line was
18682
18683 CONFIG_FILES = $CONFIG_FILES
18684 CONFIG_HEADERS = $CONFIG_HEADERS
18685 CONFIG_LINKS = $CONFIG_LINKS
18686 CONFIG_COMMANDS = $CONFIG_COMMANDS
18687 $ $0 $@
18688
18689 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18690 "
18691
18692 _ACEOF
18693
18694 case $ac_config_files in *"
18695 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18696 esac
18697
18698 case $ac_config_headers in *"
18699 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18700 esac
18701
18702
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 # Files that config.status was made for.
18705 config_files="$ac_config_files"
18706 config_headers="$ac_config_headers"
18707 config_commands="$ac_config_commands"
18708
18709 _ACEOF
18710
18711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18712 ac_cs_usage="\
18713 \`$as_me' instantiates files from templates according to the
18714 current configuration.
18715
18716 Usage: $0 [OPTION]... [FILE]...
18717
18718 -h, --help print this help, then exit
18719 -V, --version print version number and configuration settings, then exit
18720 -q, --quiet, --silent
18721 do not print progress messages
18722 -d, --debug don't remove temporary files
18723 --recheck update $as_me by reconfiguring in the same conditions
18724 --file=FILE[:TEMPLATE]
18725 instantiate the configuration file FILE
18726 --header=FILE[:TEMPLATE]
18727 instantiate the configuration header FILE
18728
18729 Configuration files:
18730 $config_files
18731
18732 Configuration headers:
18733 $config_headers
18734
18735 Configuration commands:
18736 $config_commands
18737
18738 Report bugs to <bug-autoconf@gnu.org>."
18739
18740 _ACEOF
18741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18742 ac_cs_version="\\
18743 config.status
18744 configured by $0, generated by GNU Autoconf 2.63,
18745 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18746
18747 Copyright (C) 2008 Free Software Foundation, Inc.
18748 This config.status script is free software; the Free Software Foundation
18749 gives unlimited permission to copy, distribute and modify it."
18750
18751 ac_pwd='$ac_pwd'
18752 srcdir='$srcdir'
18753 INSTALL='$INSTALL'
18754 MKDIR_P='$MKDIR_P'
18755 AWK='$AWK'
18756 test -n "\$AWK" || AWK=awk
18757 _ACEOF
18758
18759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18760 # The default lists apply if the user does not specify any file.
18761 ac_need_defaults=:
18762 while test $# != 0
18763 do
18764 case $1 in
18765 --*=*)
18766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18767 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18768 ac_shift=:
18769 ;;
18770 *)
18771 ac_option=$1
18772 ac_optarg=$2
18773 ac_shift=shift
18774 ;;
18775 esac
18776
18777 case $ac_option in
18778 # Handling of the options.
18779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18780 ac_cs_recheck=: ;;
18781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18782 $as_echo "$ac_cs_version"; exit ;;
18783 --debug | --debu | --deb | --de | --d | -d )
18784 debug=: ;;
18785 --file | --fil | --fi | --f )
18786 $ac_shift
18787 case $ac_optarg in
18788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18789 esac
18790 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18791 ac_need_defaults=false;;
18792 --header | --heade | --head | --hea )
18793 $ac_shift
18794 case $ac_optarg in
18795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18796 esac
18797 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18798 ac_need_defaults=false;;
18799 --he | --h)
18800 # Conflict between --help and --header
18801 { $as_echo "$as_me: error: ambiguous option: $1
18802 Try \`$0 --help' for more information." >&2
18803 { (exit 1); exit 1; }; };;
18804 --help | --hel | -h )
18805 $as_echo "$ac_cs_usage"; exit ;;
18806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18808 ac_cs_silent=: ;;
18809
18810 # This is an error.
18811 -*) { $as_echo "$as_me: error: unrecognized option: $1
18812 Try \`$0 --help' for more information." >&2
18813 { (exit 1); exit 1; }; } ;;
18814
18815 *) ac_config_targets="$ac_config_targets $1"
18816 ac_need_defaults=false ;;
18817
18818 esac
18819 shift
18820 done
18821
18822 ac_configure_extra_args=
18823
18824 if $ac_cs_silent; then
18825 exec 6>/dev/null
18826 ac_configure_extra_args="$ac_configure_extra_args --silent"
18827 fi
18828
18829 _ACEOF
18830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18831 if \$ac_cs_recheck; then
18832 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18833 shift
18834 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18835 CONFIG_SHELL='$SHELL'
18836 export CONFIG_SHELL
18837 exec "\$@"
18838 fi
18839
18840 _ACEOF
18841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18842 exec 5>>config.log
18843 {
18844 echo
18845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18846 ## Running $as_me. ##
18847 _ASBOX
18848 $as_echo "$ac_log"
18849 } >&5
18850
18851 _ACEOF
18852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18853 #
18854 # INIT-COMMANDS
18855 #
18856 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18857
18858
18859 # The HP-UX ksh and POSIX shell print the target directory to stdout
18860 # if CDPATH is set.
18861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18862
18863 sed_quote_subst='$sed_quote_subst'
18864 double_quote_subst='$double_quote_subst'
18865 delay_variable_subst='$delay_variable_subst'
18866 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18867 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18868 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18869 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18870 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18871 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18872 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18873 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18874 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18875 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18876 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18877 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18878 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18879 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18880 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18881 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18882 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18883 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18884 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18885 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18886 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18887 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18888 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18889 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18890 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18891 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18892 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18893 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18894 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18895 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18896 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18897 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18898 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18899 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18900 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18901 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18902 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18903 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18904 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18905 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18906 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18907 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18908 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18909 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18910 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"`'
18911 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"`'
18912 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18913 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18914 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18915 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18916 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18917 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18918 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18919 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18920 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18921 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18922 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18923 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18924 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18925 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18926 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18927 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18928 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18929 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18930 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18931 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18932 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18933 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18934 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18935 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18936 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18937 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18938 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18939 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18940 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18941 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18942 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18943 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18944 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18945 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18946 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18947 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18948 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18949 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18950 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18951 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18952 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18953 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18954 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18955 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18956 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18957 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18958 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18959 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18960 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18961 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18962 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18963 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18964 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18965 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18966 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18967 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18968 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18969 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18970 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18971 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18972 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18973 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18974 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18975 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18976 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18977 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18978 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18979 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18980 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18981 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18982 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18983 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18984
18985 LTCC='$LTCC'
18986 LTCFLAGS='$LTCFLAGS'
18987 compiler='$compiler_DEFAULT'
18988
18989 # Quote evaled strings.
18990 for var in SED \
18991 GREP \
18992 EGREP \
18993 FGREP \
18994 LD \
18995 NM \
18996 LN_S \
18997 lt_SP2NL \
18998 lt_NL2SP \
18999 reload_flag \
19000 OBJDUMP \
19001 deplibs_check_method \
19002 file_magic_cmd \
19003 AR \
19004 AR_FLAGS \
19005 STRIP \
19006 RANLIB \
19007 CC \
19008 CFLAGS \
19009 compiler \
19010 lt_cv_sys_global_symbol_pipe \
19011 lt_cv_sys_global_symbol_to_cdecl \
19012 lt_cv_sys_global_symbol_to_c_name_address \
19013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19014 SHELL \
19015 ECHO \
19016 lt_prog_compiler_no_builtin_flag \
19017 lt_prog_compiler_wl \
19018 lt_prog_compiler_pic \
19019 lt_prog_compiler_static \
19020 lt_cv_prog_compiler_c_o \
19021 need_locks \
19022 DSYMUTIL \
19023 NMEDIT \
19024 LIPO \
19025 OTOOL \
19026 OTOOL64 \
19027 shrext_cmds \
19028 export_dynamic_flag_spec \
19029 whole_archive_flag_spec \
19030 compiler_needs_object \
19031 with_gnu_ld \
19032 allow_undefined_flag \
19033 no_undefined_flag \
19034 hardcode_libdir_flag_spec \
19035 hardcode_libdir_flag_spec_ld \
19036 hardcode_libdir_separator \
19037 fix_srcfile_path \
19038 exclude_expsyms \
19039 include_expsyms \
19040 file_list_spec \
19041 variables_saved_for_relink \
19042 libname_spec \
19043 library_names_spec \
19044 soname_spec \
19045 finish_eval \
19046 old_striplib \
19047 striplib; do
19048 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19049 *[\\\\\\\`\\"\\\$]*)
19050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19051 ;;
19052 *)
19053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19054 ;;
19055 esac
19056 done
19057
19058 # Double-quote double-evaled strings.
19059 for var in reload_cmds \
19060 old_postinstall_cmds \
19061 old_postuninstall_cmds \
19062 old_archive_cmds \
19063 extract_expsyms_cmds \
19064 old_archive_from_new_cmds \
19065 old_archive_from_expsyms_cmds \
19066 archive_cmds \
19067 archive_expsym_cmds \
19068 module_cmds \
19069 module_expsym_cmds \
19070 export_symbols_cmds \
19071 prelink_cmds \
19072 postinstall_cmds \
19073 postuninstall_cmds \
19074 finish_cmds \
19075 sys_lib_search_path_spec \
19076 sys_lib_dlsearch_path_spec; do
19077 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19078 *[\\\\\\\`\\"\\\$]*)
19079 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19080 ;;
19081 *)
19082 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19083 ;;
19084 esac
19085 done
19086
19087 # Fix-up fallback echo if it was mangled by the above quoting rules.
19088 case \$lt_ECHO in
19089 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19090 ;;
19091 esac
19092
19093 ac_aux_dir='$ac_aux_dir'
19094 xsi_shell='$xsi_shell'
19095 lt_shell_append='$lt_shell_append'
19096
19097 # See if we are running on zsh, and set the options which allow our
19098 # commands through without removal of \ escapes INIT.
19099 if test -n "\${ZSH_VERSION+set}" ; then
19100 setopt NO_GLOB_SUBST
19101 fi
19102
19103
19104 PACKAGE='$PACKAGE'
19105 VERSION='$VERSION'
19106 TIMESTAMP='$TIMESTAMP'
19107 RM='$RM'
19108 ofile='$ofile'
19109
19110
19111
19112
19113 _ACEOF
19114
19115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19116
19117 # Handling of arguments.
19118 for ac_config_target in $ac_config_targets
19119 do
19120 case $ac_config_target in
19121 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19125 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19126 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19127 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19128 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19129 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19130 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19131 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19132 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
19133 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
19134
19135 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19136 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19137 { (exit 1); exit 1; }; };;
19138 esac
19139 done
19140
19141
19142 # If the user did not use the arguments to specify the items to instantiate,
19143 # then the envvar interface is used. Set only those that are not.
19144 # We use the long form for the default assignment because of an extremely
19145 # bizarre bug on SunOS 4.1.3.
19146 if $ac_need_defaults; then
19147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19150 fi
19151
19152 # Have a temporary directory for convenience. Make it in the build tree
19153 # simply because there is no reason against having it here, and in addition,
19154 # creating and moving files from /tmp can sometimes cause problems.
19155 # Hook for its removal unless debugging.
19156 # Note that there is a small window in which the directory will not be cleaned:
19157 # after its creation but before its name has been assigned to `$tmp'.
19158 $debug ||
19159 {
19160 tmp=
19161 trap 'exit_status=$?
19162 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19163 ' 0
19164 trap '{ (exit 1); exit 1; }' 1 2 13 15
19165 }
19166 # Create a (secure) tmp directory for tmp files.
19167
19168 {
19169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19170 test -n "$tmp" && test -d "$tmp"
19171 } ||
19172 {
19173 tmp=./conf$$-$RANDOM
19174 (umask 077 && mkdir "$tmp")
19175 } ||
19176 {
19177 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19178 { (exit 1); exit 1; }
19179 }
19180
19181 # Set up the scripts for CONFIG_FILES section.
19182 # No need to generate them if there are no CONFIG_FILES.
19183 # This happens for instance with `./config.status config.h'.
19184 if test -n "$CONFIG_FILES"; then
19185
19186
19187 ac_cr=' '
19188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19190 ac_cs_awk_cr='\\r'
19191 else
19192 ac_cs_awk_cr=$ac_cr
19193 fi
19194
19195 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19196 _ACEOF
19197
19198
19199 {
19200 echo "cat >conf$$subs.awk <<_ACEOF" &&
19201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19202 echo "_ACEOF"
19203 } >conf$$subs.sh ||
19204 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19205 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19206 { (exit 1); exit 1; }; }
19207 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19208 ac_delim='%!_!# '
19209 for ac_last_try in false false false false false :; do
19210 . ./conf$$subs.sh ||
19211 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19212 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19213 { (exit 1); exit 1; }; }
19214
19215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19216 if test $ac_delim_n = $ac_delim_num; then
19217 break
19218 elif $ac_last_try; then
19219 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19220 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19221 { (exit 1); exit 1; }; }
19222 else
19223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19224 fi
19225 done
19226 rm -f conf$$subs.sh
19227
19228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19229 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19230 _ACEOF
19231 sed -n '
19232 h
19233 s/^/S["/; s/!.*/"]=/
19234 p
19235 g
19236 s/^[^!]*!//
19237 :repl
19238 t repl
19239 s/'"$ac_delim"'$//
19240 t delim
19241 :nl
19242 h
19243 s/\(.\{148\}\).*/\1/
19244 t more1
19245 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19246 p
19247 n
19248 b repl
19249 :more1
19250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19251 p
19252 g
19253 s/.\{148\}//
19254 t nl
19255 :delim
19256 h
19257 s/\(.\{148\}\).*/\1/
19258 t more2
19259 s/["\\]/\\&/g; s/^/"/; s/$/"/
19260 p
19261 b
19262 :more2
19263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19264 p
19265 g
19266 s/.\{148\}//
19267 t delim
19268 ' <conf$$subs.awk | sed '
19269 /^[^""]/{
19270 N
19271 s/\n//
19272 }
19273 ' >>$CONFIG_STATUS || ac_write_fail=1
19274 rm -f conf$$subs.awk
19275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19276 _ACAWK
19277 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19278 for (key in S) S_is_set[key] = 1
19279 FS = "\a"
19280
19281 }
19282 {
19283 line = $ 0
19284 nfields = split(line, field, "@")
19285 substed = 0
19286 len = length(field[1])
19287 for (i = 2; i < nfields; i++) {
19288 key = field[i]
19289 keylen = length(key)
19290 if (S_is_set[key]) {
19291 value = S[key]
19292 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19293 len += length(value) + length(field[++i])
19294 substed = 1
19295 } else
19296 len += 1 + keylen
19297 }
19298
19299 print line
19300 }
19301
19302 _ACAWK
19303 _ACEOF
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19306 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19307 else
19308 cat
19309 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19310 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19311 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19312 { (exit 1); exit 1; }; }
19313 _ACEOF
19314
19315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19317 # trailing colons and then remove the whole line if VPATH becomes empty
19318 # (actually we leave an empty line to preserve line numbers).
19319 if test "x$srcdir" = x.; then
19320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19321 s/:*\$(srcdir):*/:/
19322 s/:*\${srcdir}:*/:/
19323 s/:*@srcdir@:*/:/
19324 s/^\([^=]*=[ ]*\):*/\1/
19325 s/:*$//
19326 s/^[^=]*=[ ]*$//
19327 }'
19328 fi
19329
19330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19331 fi # test -n "$CONFIG_FILES"
19332
19333 # Set up the scripts for CONFIG_HEADERS section.
19334 # No need to generate them if there are no CONFIG_HEADERS.
19335 # This happens for instance with `./config.status Makefile'.
19336 if test -n "$CONFIG_HEADERS"; then
19337 cat >"$tmp/defines.awk" <<\_ACAWK ||
19338 BEGIN {
19339 _ACEOF
19340
19341 # Transform confdefs.h into an awk script `defines.awk', embedded as
19342 # here-document in config.status, that substitutes the proper values into
19343 # config.h.in to produce config.h.
19344
19345 # Create a delimiter string that does not exist in confdefs.h, to ease
19346 # handling of long lines.
19347 ac_delim='%!_!# '
19348 for ac_last_try in false false :; do
19349 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19350 if test -z "$ac_t"; then
19351 break
19352 elif $ac_last_try; then
19353 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19354 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19355 { (exit 1); exit 1; }; }
19356 else
19357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19358 fi
19359 done
19360
19361 # For the awk script, D is an array of macro values keyed by name,
19362 # likewise P contains macro parameters if any. Preserve backslash
19363 # newline sequences.
19364
19365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19366 sed -n '
19367 s/.\{148\}/&'"$ac_delim"'/g
19368 t rset
19369 :rset
19370 s/^[ ]*#[ ]*define[ ][ ]*/ /
19371 t def
19372 d
19373 :def
19374 s/\\$//
19375 t bsnl
19376 s/["\\]/\\&/g
19377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19378 D["\1"]=" \3"/p
19379 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19380 d
19381 :bsnl
19382 s/["\\]/\\&/g
19383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19384 D["\1"]=" \3\\\\\\n"\\/p
19385 t cont
19386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19387 t cont
19388 d
19389 :cont
19390 n
19391 s/.\{148\}/&'"$ac_delim"'/g
19392 t clear
19393 :clear
19394 s/\\$//
19395 t bsnlc
19396 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19397 d
19398 :bsnlc
19399 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19400 b cont
19401 ' <confdefs.h | sed '
19402 s/'"$ac_delim"'/"\\\
19403 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19404
19405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19406 for (key in D) D_is_set[key] = 1
19407 FS = "\a"
19408 }
19409 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19410 line = \$ 0
19411 split(line, arg, " ")
19412 if (arg[1] == "#") {
19413 defundef = arg[2]
19414 mac1 = arg[3]
19415 } else {
19416 defundef = substr(arg[1], 2)
19417 mac1 = arg[2]
19418 }
19419 split(mac1, mac2, "(") #)
19420 macro = mac2[1]
19421 prefix = substr(line, 1, index(line, defundef) - 1)
19422 if (D_is_set[macro]) {
19423 # Preserve the white space surrounding the "#".
19424 print prefix "define", macro P[macro] D[macro]
19425 next
19426 } else {
19427 # Replace #undef with comments. This is necessary, for example,
19428 # in the case of _POSIX_SOURCE, which is predefined and required
19429 # on some systems where configure will not decide to define it.
19430 if (defundef == "undef") {
19431 print "/*", prefix defundef, macro, "*/"
19432 next
19433 }
19434 }
19435 }
19436 { print }
19437 _ACAWK
19438 _ACEOF
19439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19440 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19441 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19442 { (exit 1); exit 1; }; }
19443 fi # test -n "$CONFIG_HEADERS"
19444
19445
19446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19447 shift
19448 for ac_tag
19449 do
19450 case $ac_tag in
19451 :[FHLC]) ac_mode=$ac_tag; continue;;
19452 esac
19453 case $ac_mode$ac_tag in
19454 :[FHL]*:*);;
19455 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19456 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19457 { (exit 1); exit 1; }; };;
19458 :[FH]-) ac_tag=-:-;;
19459 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19460 esac
19461 ac_save_IFS=$IFS
19462 IFS=:
19463 set x $ac_tag
19464 IFS=$ac_save_IFS
19465 shift
19466 ac_file=$1
19467 shift
19468
19469 case $ac_mode in
19470 :L) ac_source=$1;;
19471 :[FH])
19472 ac_file_inputs=
19473 for ac_f
19474 do
19475 case $ac_f in
19476 -) ac_f="$tmp/stdin";;
19477 *) # Look for the file first in the build tree, then in the source tree
19478 # (if the path is not absolute). The absolute path cannot be DOS-style,
19479 # because $ac_f cannot contain `:'.
19480 test -f "$ac_f" ||
19481 case $ac_f in
19482 [\\/$]*) false;;
19483 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19484 esac ||
19485 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19486 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19487 { (exit 1); exit 1; }; };;
19488 esac
19489 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19490 ac_file_inputs="$ac_file_inputs '$ac_f'"
19491 done
19492
19493 # Let's still pretend it is `configure' which instantiates (i.e., don't
19494 # use $as_me), people would be surprised to read:
19495 # /* config.h. Generated by config.status. */
19496 configure_input='Generated from '`
19497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19498 `' by configure.'
19499 if test x"$ac_file" != x-; then
19500 configure_input="$ac_file. $configure_input"
19501 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19502 $as_echo "$as_me: creating $ac_file" >&6;}
19503 fi
19504 # Neutralize special characters interpreted by sed in replacement strings.
19505 case $configure_input in #(
19506 *\&* | *\|* | *\\* )
19507 ac_sed_conf_input=`$as_echo "$configure_input" |
19508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19509 *) ac_sed_conf_input=$configure_input;;
19510 esac
19511
19512 case $ac_tag in
19513 *:-:* | *:-) cat >"$tmp/stdin" \
19514 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19516 { (exit 1); exit 1; }; } ;;
19517 esac
19518 ;;
19519 esac
19520
19521 ac_dir=`$as_dirname -- "$ac_file" ||
19522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19523 X"$ac_file" : 'X\(//\)[^/]' \| \
19524 X"$ac_file" : 'X\(//\)$' \| \
19525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19526 $as_echo X"$ac_file" |
19527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19528 s//\1/
19529 q
19530 }
19531 /^X\(\/\/\)[^/].*/{
19532 s//\1/
19533 q
19534 }
19535 /^X\(\/\/\)$/{
19536 s//\1/
19537 q
19538 }
19539 /^X\(\/\).*/{
19540 s//\1/
19541 q
19542 }
19543 s/.*/./; q'`
19544 { as_dir="$ac_dir"
19545 case $as_dir in #(
19546 -*) as_dir=./$as_dir;;
19547 esac
19548 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19549 as_dirs=
19550 while :; do
19551 case $as_dir in #(
19552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19553 *) as_qdir=$as_dir;;
19554 esac
19555 as_dirs="'$as_qdir' $as_dirs"
19556 as_dir=`$as_dirname -- "$as_dir" ||
19557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19558 X"$as_dir" : 'X\(//\)[^/]' \| \
19559 X"$as_dir" : 'X\(//\)$' \| \
19560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19561 $as_echo X"$as_dir" |
19562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19563 s//\1/
19564 q
19565 }
19566 /^X\(\/\/\)[^/].*/{
19567 s//\1/
19568 q
19569 }
19570 /^X\(\/\/\)$/{
19571 s//\1/
19572 q
19573 }
19574 /^X\(\/\).*/{
19575 s//\1/
19576 q
19577 }
19578 s/.*/./; q'`
19579 test -d "$as_dir" && break
19580 done
19581 test -z "$as_dirs" || eval "mkdir $as_dirs"
19582 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19583 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19584 { (exit 1); exit 1; }; }; }
19585 ac_builddir=.
19586
19587 case "$ac_dir" in
19588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19589 *)
19590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19591 # A ".." for each directory in $ac_dir_suffix.
19592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19593 case $ac_top_builddir_sub in
19594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19596 esac ;;
19597 esac
19598 ac_abs_top_builddir=$ac_pwd
19599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19600 # for backward compatibility:
19601 ac_top_builddir=$ac_top_build_prefix
19602
19603 case $srcdir in
19604 .) # We are building in place.
19605 ac_srcdir=.
19606 ac_top_srcdir=$ac_top_builddir_sub
19607 ac_abs_top_srcdir=$ac_pwd ;;
19608 [\\/]* | ?:[\\/]* ) # Absolute name.
19609 ac_srcdir=$srcdir$ac_dir_suffix;
19610 ac_top_srcdir=$srcdir
19611 ac_abs_top_srcdir=$srcdir ;;
19612 *) # Relative name.
19613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19614 ac_top_srcdir=$ac_top_build_prefix$srcdir
19615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19616 esac
19617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19618
19619
19620 case $ac_mode in
19621 :F)
19622 #
19623 # CONFIG_FILE
19624 #
19625
19626 case $INSTALL in
19627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19628 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19629 esac
19630 ac_MKDIR_P=$MKDIR_P
19631 case $MKDIR_P in
19632 [\\/$]* | ?:[\\/]* ) ;;
19633 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19634 esac
19635 _ACEOF
19636
19637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19638 # If the template does not know about datarootdir, expand it.
19639 # FIXME: This hack should be removed a few years after 2.60.
19640 ac_datarootdir_hack=; ac_datarootdir_seen=
19641
19642 ac_sed_dataroot='
19643 /datarootdir/ {
19644 p
19645 q
19646 }
19647 /@datadir@/p
19648 /@docdir@/p
19649 /@infodir@/p
19650 /@localedir@/p
19651 /@mandir@/p
19652 '
19653 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19654 *datarootdir*) ac_datarootdir_seen=yes;;
19655 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19656 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19657 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19658 _ACEOF
19659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19660 ac_datarootdir_hack='
19661 s&@datadir@&$datadir&g
19662 s&@docdir@&$docdir&g
19663 s&@infodir@&$infodir&g
19664 s&@localedir@&$localedir&g
19665 s&@mandir@&$mandir&g
19666 s&\\\${datarootdir}&$datarootdir&g' ;;
19667 esac
19668 _ACEOF
19669
19670 # Neutralize VPATH when `$srcdir' = `.'.
19671 # Shell code in configure.ac might set extrasub.
19672 # FIXME: do we really want to maintain this feature?
19673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19674 ac_sed_extra="$ac_vpsub
19675 $extrasub
19676 _ACEOF
19677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19678 :t
19679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19680 s|@configure_input@|$ac_sed_conf_input|;t t
19681 s&@top_builddir@&$ac_top_builddir_sub&;t t
19682 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19683 s&@srcdir@&$ac_srcdir&;t t
19684 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19685 s&@top_srcdir@&$ac_top_srcdir&;t t
19686 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19687 s&@builddir@&$ac_builddir&;t t
19688 s&@abs_builddir@&$ac_abs_builddir&;t t
19689 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19690 s&@INSTALL@&$ac_INSTALL&;t t
19691 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19692 $ac_datarootdir_hack
19693 "
19694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19695 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19696 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19697 { (exit 1); exit 1; }; }
19698
19699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19700 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19702 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19703 which seems to be undefined. Please make sure it is defined." >&5
19704 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19705 which seems to be undefined. Please make sure it is defined." >&2;}
19706
19707 rm -f "$tmp/stdin"
19708 case $ac_file in
19709 -) cat "$tmp/out" && rm -f "$tmp/out";;
19710 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19711 esac \
19712 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19713 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19714 { (exit 1); exit 1; }; }
19715 ;;
19716 :H)
19717 #
19718 # CONFIG_HEADER
19719 #
19720 if test x"$ac_file" != x-; then
19721 {
19722 $as_echo "/* $configure_input */" \
19723 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19724 } >"$tmp/config.h" \
19725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19727 { (exit 1); exit 1; }; }
19728 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19729 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19730 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19731 else
19732 rm -f "$ac_file"
19733 mv "$tmp/config.h" "$ac_file" \
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 fi
19738 else
19739 $as_echo "/* $configure_input */" \
19740 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19741 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19742 $as_echo "$as_me: error: could not create -" >&2;}
19743 { (exit 1); exit 1; }; }
19744 fi
19745 # Compute "$ac_file"'s index in $config_headers.
19746 _am_arg="$ac_file"
19747 _am_stamp_count=1
19748 for _am_header in $config_headers :; do
19749 case $_am_header in
19750 $_am_arg | $_am_arg:* )
19751 break ;;
19752 * )
19753 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19754 esac
19755 done
19756 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19757 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19758 X"$_am_arg" : 'X\(//\)[^/]' \| \
19759 X"$_am_arg" : 'X\(//\)$' \| \
19760 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19761 $as_echo X"$_am_arg" |
19762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19763 s//\1/
19764 q
19765 }
19766 /^X\(\/\/\)[^/].*/{
19767 s//\1/
19768 q
19769 }
19770 /^X\(\/\/\)$/{
19771 s//\1/
19772 q
19773 }
19774 /^X\(\/\).*/{
19775 s//\1/
19776 q
19777 }
19778 s/.*/./; q'`/stamp-h$_am_stamp_count
19779 ;;
19780
19781 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19782 $as_echo "$as_me: executing $ac_file commands" >&6;}
19783 ;;
19784 esac
19785
19786
19787 case $ac_file$ac_mode in
19788 "spl_config.h":H)
19789 (mv spl_config.h spl_config.h.tmp &&
19790 awk -f config/config.awk spl_config.h.tmp >spl_config.h &&
19791 rm spl_config.h.tmp) || exit 1 ;;
19792 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19793 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19794 # are listed without --file. Let's play safe and only enable the eval
19795 # if we detect the quoting.
19796 case $CONFIG_FILES in
19797 *\'*) eval set x "$CONFIG_FILES" ;;
19798 *) set x $CONFIG_FILES ;;
19799 esac
19800 shift
19801 for mf
19802 do
19803 # Strip MF so we end up with the name of the file.
19804 mf=`echo "$mf" | sed -e 's/:.*$//'`
19805 # Check whether this is an Automake generated Makefile or not.
19806 # We used to match only the files named `Makefile.in', but
19807 # some people rename them; so instead we look at the file content.
19808 # Grep'ing the first line is not enough: some people post-process
19809 # each Makefile.in and add a new line on top of each file to say so.
19810 # Grep'ing the whole file is not good either: AIX grep has a line
19811 # limit of 2048, but all sed's we know have understand at least 4000.
19812 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19813 dirpart=`$as_dirname -- "$mf" ||
19814 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19815 X"$mf" : 'X\(//\)[^/]' \| \
19816 X"$mf" : 'X\(//\)$' \| \
19817 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19818 $as_echo X"$mf" |
19819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19820 s//\1/
19821 q
19822 }
19823 /^X\(\/\/\)[^/].*/{
19824 s//\1/
19825 q
19826 }
19827 /^X\(\/\/\)$/{
19828 s//\1/
19829 q
19830 }
19831 /^X\(\/\).*/{
19832 s//\1/
19833 q
19834 }
19835 s/.*/./; q'`
19836 else
19837 continue
19838 fi
19839 # Extract the definition of DEPDIR, am__include, and am__quote
19840 # from the Makefile without running `make'.
19841 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19842 test -z "$DEPDIR" && continue
19843 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19844 test -z "am__include" && continue
19845 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19846 # When using ansi2knr, U may be empty or an underscore; expand it
19847 U=`sed -n 's/^U = //p' < "$mf"`
19848 # Find all dependency output files, they are included files with
19849 # $(DEPDIR) in their names. We invoke sed twice because it is the
19850 # simplest approach to changing $(DEPDIR) to its actual value in the
19851 # expansion.
19852 for file in `sed -n "
19853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19855 # Make sure the directory exists.
19856 test -f "$dirpart/$file" && continue
19857 fdir=`$as_dirname -- "$file" ||
19858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19859 X"$file" : 'X\(//\)[^/]' \| \
19860 X"$file" : 'X\(//\)$' \| \
19861 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19862 $as_echo X"$file" |
19863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19864 s//\1/
19865 q
19866 }
19867 /^X\(\/\/\)[^/].*/{
19868 s//\1/
19869 q
19870 }
19871 /^X\(\/\/\)$/{
19872 s//\1/
19873 q
19874 }
19875 /^X\(\/\).*/{
19876 s//\1/
19877 q
19878 }
19879 s/.*/./; q'`
19880 { as_dir=$dirpart/$fdir
19881 case $as_dir in #(
19882 -*) as_dir=./$as_dir;;
19883 esac
19884 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19885 as_dirs=
19886 while :; do
19887 case $as_dir in #(
19888 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19889 *) as_qdir=$as_dir;;
19890 esac
19891 as_dirs="'$as_qdir' $as_dirs"
19892 as_dir=`$as_dirname -- "$as_dir" ||
19893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19894 X"$as_dir" : 'X\(//\)[^/]' \| \
19895 X"$as_dir" : 'X\(//\)$' \| \
19896 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19897 $as_echo X"$as_dir" |
19898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19899 s//\1/
19900 q
19901 }
19902 /^X\(\/\/\)[^/].*/{
19903 s//\1/
19904 q
19905 }
19906 /^X\(\/\/\)$/{
19907 s//\1/
19908 q
19909 }
19910 /^X\(\/\).*/{
19911 s//\1/
19912 q
19913 }
19914 s/.*/./; q'`
19915 test -d "$as_dir" && break
19916 done
19917 test -z "$as_dirs" || eval "mkdir $as_dirs"
19918 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19919 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19920 { (exit 1); exit 1; }; }; }
19921 # echo "creating $dirpart/$file"
19922 echo '# dummy' > "$dirpart/$file"
19923 done
19924 done
19925 }
19926 ;;
19927 "libtool":C)
19928
19929 # See if we are running on zsh, and set the options which allow our
19930 # commands through without removal of \ escapes.
19931 if test -n "${ZSH_VERSION+set}" ; then
19932 setopt NO_GLOB_SUBST
19933 fi
19934
19935 cfgfile="${ofile}T"
19936 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19937 $RM "$cfgfile"
19938
19939 cat <<_LT_EOF >> "$cfgfile"
19940 #! $SHELL
19941
19942 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19943 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19945 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19946 #
19947 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19948 # 2006, 2007, 2008 Free Software Foundation, Inc.
19949 # Written by Gordon Matzigkeit, 1996
19950 #
19951 # This file is part of GNU Libtool.
19952 #
19953 # GNU Libtool is free software; you can redistribute it and/or
19954 # modify it under the terms of the GNU General Public License as
19955 # published by the Free Software Foundation; either version 2 of
19956 # the License, or (at your option) any later version.
19957 #
19958 # As a special exception to the GNU General Public License,
19959 # if you distribute this file as part of a program or library that
19960 # is built using GNU Libtool, you may include this file under the
19961 # same distribution terms that you use for the rest of that program.
19962 #
19963 # GNU Libtool is distributed in the hope that it will be useful,
19964 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19965 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19966 # GNU General Public License for more details.
19967 #
19968 # You should have received a copy of the GNU General Public License
19969 # along with GNU Libtool; see the file COPYING. If not, a copy
19970 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19971 # obtained by writing to the Free Software Foundation, Inc.,
19972 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19973
19974
19975 # The names of the tagged configurations supported by this script.
19976 available_tags=""
19977
19978 # ### BEGIN LIBTOOL CONFIG
19979
19980 # Which release of libtool.m4 was used?
19981 macro_version=$macro_version
19982 macro_revision=$macro_revision
19983
19984 # Whether or not to build shared libraries.
19985 build_libtool_libs=$enable_shared
19986
19987 # Whether or not to build static libraries.
19988 build_old_libs=$enable_static
19989
19990 # What type of objects to build.
19991 pic_mode=$pic_mode
19992
19993 # Whether or not to optimize for fast installation.
19994 fast_install=$enable_fast_install
19995
19996 # The host system.
19997 host_alias=$host_alias
19998 host=$host
19999 host_os=$host_os
20000
20001 # The build system.
20002 build_alias=$build_alias
20003 build=$build
20004 build_os=$build_os
20005
20006 # A sed program that does not truncate output.
20007 SED=$lt_SED
20008
20009 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20010 Xsed="\$SED -e 1s/^X//"
20011
20012 # A grep program that handles long lines.
20013 GREP=$lt_GREP
20014
20015 # An ERE matcher.
20016 EGREP=$lt_EGREP
20017
20018 # A literal string matcher.
20019 FGREP=$lt_FGREP
20020
20021 # A BSD- or MS-compatible name lister.
20022 NM=$lt_NM
20023
20024 # Whether we need soft or hard links.
20025 LN_S=$lt_LN_S
20026
20027 # What is the maximum length of a command?
20028 max_cmd_len=$max_cmd_len
20029
20030 # Object file suffix (normally "o").
20031 objext=$ac_objext
20032
20033 # Executable file suffix (normally "").
20034 exeext=$exeext
20035
20036 # whether the shell understands "unset".
20037 lt_unset=$lt_unset
20038
20039 # turn spaces into newlines.
20040 SP2NL=$lt_lt_SP2NL
20041
20042 # turn newlines into spaces.
20043 NL2SP=$lt_lt_NL2SP
20044
20045 # How to create reloadable object files.
20046 reload_flag=$lt_reload_flag
20047 reload_cmds=$lt_reload_cmds
20048
20049 # An object symbol dumper.
20050 OBJDUMP=$lt_OBJDUMP
20051
20052 # Method to check whether dependent libraries are shared objects.
20053 deplibs_check_method=$lt_deplibs_check_method
20054
20055 # Command to use when deplibs_check_method == "file_magic".
20056 file_magic_cmd=$lt_file_magic_cmd
20057
20058 # The archiver.
20059 AR=$lt_AR
20060 AR_FLAGS=$lt_AR_FLAGS
20061
20062 # A symbol stripping program.
20063 STRIP=$lt_STRIP
20064
20065 # Commands used to install an old-style archive.
20066 RANLIB=$lt_RANLIB
20067 old_postinstall_cmds=$lt_old_postinstall_cmds
20068 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20069
20070 # A C compiler.
20071 LTCC=$lt_CC
20072
20073 # LTCC compiler flags.
20074 LTCFLAGS=$lt_CFLAGS
20075
20076 # Take the output of nm and produce a listing of raw symbols and C names.
20077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20078
20079 # Transform the output of nm in a proper C declaration.
20080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20081
20082 # Transform the output of nm in a C name address pair.
20083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20084
20085 # Transform the output of nm in a C name address pair when lib prefix is needed.
20086 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20087
20088 # The name of the directory that contains temporary libtool files.
20089 objdir=$objdir
20090
20091 # Shell to use when invoking shell scripts.
20092 SHELL=$lt_SHELL
20093
20094 # An echo program that does not interpret backslashes.
20095 ECHO=$lt_ECHO
20096
20097 # Used to examine libraries when file_magic_cmd begins with "file".
20098 MAGIC_CMD=$MAGIC_CMD
20099
20100 # Must we lock files when doing compilation?
20101 need_locks=$lt_need_locks
20102
20103 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20104 DSYMUTIL=$lt_DSYMUTIL
20105
20106 # Tool to change global to local symbols on Mac OS X.
20107 NMEDIT=$lt_NMEDIT
20108
20109 # Tool to manipulate fat objects and archives on Mac OS X.
20110 LIPO=$lt_LIPO
20111
20112 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20113 OTOOL=$lt_OTOOL
20114
20115 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20116 OTOOL64=$lt_OTOOL64
20117
20118 # Old archive suffix (normally "a").
20119 libext=$libext
20120
20121 # Shared library suffix (normally ".so").
20122 shrext_cmds=$lt_shrext_cmds
20123
20124 # The commands to extract the exported symbol list from a shared archive.
20125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20126
20127 # Variables whose values should be saved in libtool wrapper scripts and
20128 # restored at link time.
20129 variables_saved_for_relink=$lt_variables_saved_for_relink
20130
20131 # Do we need the "lib" prefix for modules?
20132 need_lib_prefix=$need_lib_prefix
20133
20134 # Do we need a version for libraries?
20135 need_version=$need_version
20136
20137 # Library versioning type.
20138 version_type=$version_type
20139
20140 # Shared library runtime path variable.
20141 runpath_var=$runpath_var
20142
20143 # Shared library path variable.
20144 shlibpath_var=$shlibpath_var
20145
20146 # Is shlibpath searched before the hard-coded library search path?
20147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20148
20149 # Format of library name prefix.
20150 libname_spec=$lt_libname_spec
20151
20152 # List of archive names. First name is the real one, the rest are links.
20153 # The last name is the one that the linker finds with -lNAME
20154 library_names_spec=$lt_library_names_spec
20155
20156 # The coded name of the library, if different from the real name.
20157 soname_spec=$lt_soname_spec
20158
20159 # Command to use after installation of a shared archive.
20160 postinstall_cmds=$lt_postinstall_cmds
20161
20162 # Command to use after uninstallation of a shared archive.
20163 postuninstall_cmds=$lt_postuninstall_cmds
20164
20165 # Commands used to finish a libtool library installation in a directory.
20166 finish_cmds=$lt_finish_cmds
20167
20168 # As "finish_cmds", except a single script fragment to be evaled but
20169 # not shown.
20170 finish_eval=$lt_finish_eval
20171
20172 # Whether we should hardcode library paths into libraries.
20173 hardcode_into_libs=$hardcode_into_libs
20174
20175 # Compile-time system search path for libraries.
20176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20177
20178 # Run-time system search path for libraries.
20179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20180
20181 # Whether dlopen is supported.
20182 dlopen_support=$enable_dlopen
20183
20184 # Whether dlopen of programs is supported.
20185 dlopen_self=$enable_dlopen_self
20186
20187 # Whether dlopen of statically linked programs is supported.
20188 dlopen_self_static=$enable_dlopen_self_static
20189
20190 # Commands to strip libraries.
20191 old_striplib=$lt_old_striplib
20192 striplib=$lt_striplib
20193
20194
20195 # The linker used to build libraries.
20196 LD=$lt_LD
20197
20198 # Commands used to build an old-style archive.
20199 old_archive_cmds=$lt_old_archive_cmds
20200
20201 # A language specific compiler.
20202 CC=$lt_compiler
20203
20204 # Is the compiler the GNU compiler?
20205 with_gcc=$GCC
20206
20207 # Compiler flag to turn off builtin functions.
20208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20209
20210 # How to pass a linker flag through the compiler.
20211 wl=$lt_lt_prog_compiler_wl
20212
20213 # Additional compiler flags for building library objects.
20214 pic_flag=$lt_lt_prog_compiler_pic
20215
20216 # Compiler flag to prevent dynamic linking.
20217 link_static_flag=$lt_lt_prog_compiler_static
20218
20219 # Does compiler simultaneously support -c and -o options?
20220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20221
20222 # Whether or not to add -lc for building shared libraries.
20223 build_libtool_need_lc=$archive_cmds_need_lc
20224
20225 # Whether or not to disallow shared libs when runtime libs are static.
20226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20227
20228 # Compiler flag to allow reflexive dlopens.
20229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20230
20231 # Compiler flag to generate shared objects directly from archives.
20232 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20233
20234 # Whether the compiler copes with passing no objects directly.
20235 compiler_needs_object=$lt_compiler_needs_object
20236
20237 # Create an old-style archive from a shared archive.
20238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20239
20240 # Create a temporary old-style archive to link instead of a shared archive.
20241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20242
20243 # Commands used to build a shared archive.
20244 archive_cmds=$lt_archive_cmds
20245 archive_expsym_cmds=$lt_archive_expsym_cmds
20246
20247 # Commands used to build a loadable module if different from building
20248 # a shared archive.
20249 module_cmds=$lt_module_cmds
20250 module_expsym_cmds=$lt_module_expsym_cmds
20251
20252 # Whether we are building with GNU ld or not.
20253 with_gnu_ld=$lt_with_gnu_ld
20254
20255 # Flag that allows shared libraries with undefined symbols to be built.
20256 allow_undefined_flag=$lt_allow_undefined_flag
20257
20258 # Flag that enforces no undefined symbols.
20259 no_undefined_flag=$lt_no_undefined_flag
20260
20261 # Flag to hardcode \$libdir into a binary during linking.
20262 # This must work even if \$libdir does not exist
20263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20264
20265 # If ld is used when linking, flag to hardcode \$libdir into a binary
20266 # during linking. This must work even if \$libdir does not exist.
20267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20268
20269 # Whether we need a single "-rpath" flag with a separated argument.
20270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20271
20272 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20273 # DIR into the resulting binary.
20274 hardcode_direct=$hardcode_direct
20275
20276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20277 # DIR into the resulting binary and the resulting library dependency is
20278 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20279 # library is relocated.
20280 hardcode_direct_absolute=$hardcode_direct_absolute
20281
20282 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20283 # into the resulting binary.
20284 hardcode_minus_L=$hardcode_minus_L
20285
20286 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20287 # into the resulting binary.
20288 hardcode_shlibpath_var=$hardcode_shlibpath_var
20289
20290 # Set to "yes" if building a shared library automatically hardcodes DIR
20291 # into the library and all subsequent libraries and executables linked
20292 # against it.
20293 hardcode_automatic=$hardcode_automatic
20294
20295 # Set to yes if linker adds runtime paths of dependent libraries
20296 # to runtime path list.
20297 inherit_rpath=$inherit_rpath
20298
20299 # Whether libtool must link a program against all its dependency libraries.
20300 link_all_deplibs=$link_all_deplibs
20301
20302 # Fix the shell variable \$srcfile for the compiler.
20303 fix_srcfile_path=$lt_fix_srcfile_path
20304
20305 # Set to "yes" if exported symbols are required.
20306 always_export_symbols=$always_export_symbols
20307
20308 # The commands to list exported symbols.
20309 export_symbols_cmds=$lt_export_symbols_cmds
20310
20311 # Symbols that should not be listed in the preloaded symbols.
20312 exclude_expsyms=$lt_exclude_expsyms
20313
20314 # Symbols that must always be exported.
20315 include_expsyms=$lt_include_expsyms
20316
20317 # Commands necessary for linking programs (against libraries) with templates.
20318 prelink_cmds=$lt_prelink_cmds
20319
20320 # Specify filename containing input files.
20321 file_list_spec=$lt_file_list_spec
20322
20323 # How to hardcode a shared library path into an executable.
20324 hardcode_action=$hardcode_action
20325
20326 # ### END LIBTOOL CONFIG
20327
20328 _LT_EOF
20329
20330 case $host_os in
20331 aix3*)
20332 cat <<\_LT_EOF >> "$cfgfile"
20333 # AIX sometimes has problems with the GCC collect2 program. For some
20334 # reason, if we set the COLLECT_NAMES environment variable, the problems
20335 # vanish in a puff of smoke.
20336 if test "X${COLLECT_NAMES+set}" != Xset; then
20337 COLLECT_NAMES=
20338 export COLLECT_NAMES
20339 fi
20340 _LT_EOF
20341 ;;
20342 esac
20343
20344
20345 ltmain="$ac_aux_dir/ltmain.sh"
20346
20347
20348 # We use sed instead of cat because bash on DJGPP gets confused if
20349 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20350 # text mode, it properly converts lines to CR/LF. This bash problem
20351 # is reportedly fixed, but why not run on old versions too?
20352 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20353 || (rm -f "$cfgfile"; exit 1)
20354
20355 case $xsi_shell in
20356 yes)
20357 cat << \_LT_EOF >> "$cfgfile"
20358
20359 # func_dirname file append nondir_replacement
20360 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20361 # otherwise set result to NONDIR_REPLACEMENT.
20362 func_dirname ()
20363 {
20364 case ${1} in
20365 */*) func_dirname_result="${1%/*}${2}" ;;
20366 * ) func_dirname_result="${3}" ;;
20367 esac
20368 }
20369
20370 # func_basename file
20371 func_basename ()
20372 {
20373 func_basename_result="${1##*/}"
20374 }
20375
20376 # func_dirname_and_basename file append nondir_replacement
20377 # perform func_basename and func_dirname in a single function
20378 # call:
20379 # dirname: Compute the dirname of FILE. If nonempty,
20380 # add APPEND to the result, otherwise set result
20381 # to NONDIR_REPLACEMENT.
20382 # value returned in "$func_dirname_result"
20383 # basename: Compute filename of FILE.
20384 # value retuned in "$func_basename_result"
20385 # Implementation must be kept synchronized with func_dirname
20386 # and func_basename. For efficiency, we do not delegate to
20387 # those functions but instead duplicate the functionality here.
20388 func_dirname_and_basename ()
20389 {
20390 case ${1} in
20391 */*) func_dirname_result="${1%/*}${2}" ;;
20392 * ) func_dirname_result="${3}" ;;
20393 esac
20394 func_basename_result="${1##*/}"
20395 }
20396
20397 # func_stripname prefix suffix name
20398 # strip PREFIX and SUFFIX off of NAME.
20399 # PREFIX and SUFFIX must not contain globbing or regex special
20400 # characters, hashes, percent signs, but SUFFIX may contain a leading
20401 # dot (in which case that matches only a dot).
20402 func_stripname ()
20403 {
20404 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20405 # positional parameters, so assign one to ordinary parameter first.
20406 func_stripname_result=${3}
20407 func_stripname_result=${func_stripname_result#"${1}"}
20408 func_stripname_result=${func_stripname_result%"${2}"}
20409 }
20410
20411 # func_opt_split
20412 func_opt_split ()
20413 {
20414 func_opt_split_opt=${1%%=*}
20415 func_opt_split_arg=${1#*=}
20416 }
20417
20418 # func_lo2o object
20419 func_lo2o ()
20420 {
20421 case ${1} in
20422 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20423 *) func_lo2o_result=${1} ;;
20424 esac
20425 }
20426
20427 # func_xform libobj-or-source
20428 func_xform ()
20429 {
20430 func_xform_result=${1%.*}.lo
20431 }
20432
20433 # func_arith arithmetic-term...
20434 func_arith ()
20435 {
20436 func_arith_result=$(( $* ))
20437 }
20438
20439 # func_len string
20440 # STRING may not start with a hyphen.
20441 func_len ()
20442 {
20443 func_len_result=${#1}
20444 }
20445
20446 _LT_EOF
20447 ;;
20448 *) # Bourne compatible functions.
20449 cat << \_LT_EOF >> "$cfgfile"
20450
20451 # func_dirname file append nondir_replacement
20452 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20453 # otherwise set result to NONDIR_REPLACEMENT.
20454 func_dirname ()
20455 {
20456 # Extract subdirectory from the argument.
20457 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20458 if test "X$func_dirname_result" = "X${1}"; then
20459 func_dirname_result="${3}"
20460 else
20461 func_dirname_result="$func_dirname_result${2}"
20462 fi
20463 }
20464
20465 # func_basename file
20466 func_basename ()
20467 {
20468 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20469 }
20470
20471
20472 # func_stripname prefix suffix name
20473 # strip PREFIX and SUFFIX off of NAME.
20474 # PREFIX and SUFFIX must not contain globbing or regex special
20475 # characters, hashes, percent signs, but SUFFIX may contain a leading
20476 # dot (in which case that matches only a dot).
20477 # func_strip_suffix prefix name
20478 func_stripname ()
20479 {
20480 case ${2} in
20481 .*) func_stripname_result=`$ECHO "X${3}" \
20482 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20483 *) func_stripname_result=`$ECHO "X${3}" \
20484 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20485 esac
20486 }
20487
20488 # sed scripts:
20489 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20490 my_sed_long_arg='1s/^-[^=]*=//'
20491
20492 # func_opt_split
20493 func_opt_split ()
20494 {
20495 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20496 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20497 }
20498
20499 # func_lo2o object
20500 func_lo2o ()
20501 {
20502 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20503 }
20504
20505 # func_xform libobj-or-source
20506 func_xform ()
20507 {
20508 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20509 }
20510
20511 # func_arith arithmetic-term...
20512 func_arith ()
20513 {
20514 func_arith_result=`expr "$@"`
20515 }
20516
20517 # func_len string
20518 # STRING may not start with a hyphen.
20519 func_len ()
20520 {
20521 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20522 }
20523
20524 _LT_EOF
20525 esac
20526
20527 case $lt_shell_append in
20528 yes)
20529 cat << \_LT_EOF >> "$cfgfile"
20530
20531 # func_append var value
20532 # Append VALUE to the end of shell variable VAR.
20533 func_append ()
20534 {
20535 eval "$1+=\$2"
20536 }
20537 _LT_EOF
20538 ;;
20539 *)
20540 cat << \_LT_EOF >> "$cfgfile"
20541
20542 # func_append var value
20543 # Append VALUE to the end of shell variable VAR.
20544 func_append ()
20545 {
20546 eval "$1=\$$1\$2"
20547 }
20548
20549 _LT_EOF
20550 ;;
20551 esac
20552
20553
20554 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20555 || (rm -f "$cfgfile"; exit 1)
20556
20557 mv -f "$cfgfile" "$ofile" ||
20558 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20559 chmod +x "$ofile"
20560
20561 ;;
20562
20563 esac
20564 done # for ac_tag
20565
20566
20567 { (exit 0); exit 0; }
20568 _ACEOF
20569 chmod +x $CONFIG_STATUS
20570 ac_clean_files=$ac_clean_files_save
20571
20572 test $ac_write_fail = 0 ||
20573 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20574 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20575 { (exit 1); exit 1; }; }
20576
20577
20578 # configure is writing to config.log, and then calls config.status.
20579 # config.status does its own redirection, appending to config.log.
20580 # Unfortunately, on DOS this fails, as config.log is still kept open
20581 # by configure, so config.status won't be able to write to it; its
20582 # output is simply discarded. So we exec the FD to /dev/null,
20583 # effectively closing config.log, so it can be properly (re)opened and
20584 # appended to by config.status. When coming back to configure, we
20585 # need to make the FD available again.
20586 if test "$no_create" != yes; then
20587 ac_cs_success=:
20588 ac_config_status_args=
20589 test "$silent" = yes &&
20590 ac_config_status_args="$ac_config_status_args --quiet"
20591 exec 5>/dev/null
20592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20593 exec 5>>config.log
20594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20595 # would make configure fail if this is the last instruction.
20596 $ac_cs_success || { (exit 1); exit 1; }
20597 fi
20598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20599 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20601 fi
20602