]> git.proxmox.com Git - mirror_spl.git/blame - configure
Fix 2.6.35 shrinker callback API change
[mirror_spl.git] / configure
CommitLineData
bf9f3bac 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8934764e 3# Generated by GNU Autoconf 2.63.
bf9f3bac 4#
8934764e
BB
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 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
8934764e
BB
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
bf9f3bac 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
8934764e 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bf9f3bac 19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
8934764e
BB
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
bf9f3bac 79fi
bf9f3bac 80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
8934764e
BB
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.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
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.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if 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; }
118fi
119
bf9f3bac 120# Work around bugs in pre-3.0 UWIN ksh.
8934764e
BB
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
bf9f3bac 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8934764e
BB
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
bf9f3bac 133
134# Required to use basename.
8934764e
BB
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bf9f3bac 137 as_expr=expr
138else
139 as_expr=false
140fi
141
8934764e 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bf9f3bac 143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
8934764e 150as_me=`$as_basename -- "$0" ||
bf9f3bac 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
8934764e
BB
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'`
bf9f3bac 168
8934764e
BB
169# CDPATH.
170$as_unset CDPATH
bf9f3bac 171
bf9f3bac 172
8934764e
BB
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
bf9f3bac 178fi
179
8934764e
BB
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
bf9f3bac 196
8934764e
BB
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
bf9f3bac 204
8934764e
BB
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$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 :
238else
239 as_candidate_shells=
bf9f3bac 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
8934764e 245 case $as_dir in
bf9f3bac 246 /*)
8934764e
BB
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
251done
252IFS=$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
259if 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
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
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
280if 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
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
bf9f3bac 347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
bf9f3bac 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
8934764e
BB
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
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+"$@"}
367fi
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; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$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" || {
bf9f3bac 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
8934764e
BB
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.
bf9f3bac 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8934764e
BB
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 |
bf9f3bac 462 sed '
8934764e
BB
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
bf9f3bac 467 N
8934764e
BB
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bf9f3bac 470 t loop
8934764e 471 s/-\n.*//
bf9f3bac 472 ' >$as_me.lineno &&
8934764e
BB
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
bf9f3bac 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
8934764e
BB
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
bf9f3bac 481 # Exit status is that of the last command.
482 exit
483}
484
485
8934764e
BB
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
bf9f3bac 491
8934764e
BB
492ECHO_C= ECHO_N= ECHO_T=
493case `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';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bf9f3bac 504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
8934764e
BB
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
bf9f3bac 518 as_ln_s='ln -s'
8934764e
BB
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'
bf9f3bac 529 fi
bf9f3bac 530else
531 as_ln_s='cp -p'
532fi
8934764e
BB
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
bf9f3bac 535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
8934764e
BB
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
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 '
563fi
564as_executable_p=$as_test_x
bf9f3bac 565
566# Sed expression to map a string onto a valid CPP name.
567as_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.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
bf9f3bac 573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
8934764e 578case X$lt_ECHO in
bf9f3bac 579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
8934764e 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
bf9f3bac 582 ;;
583esac
584
8934764e 585ECHO=${lt_ECHO-echo}
bf9f3bac 586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
8934764e
BB
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
bf9f3bac 594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
8934764e 603 cat <<_LT_EOF
bf9f3bac 604$*
8934764e 605_LT_EOF
bf9f3bac 606 exit 0
607fi
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
8934764e
BB
613if 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
bf9f3bac 625
8934764e
BB
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.
bf9f3bac 636
8934764e
BB
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
bf9f3bac 648 IFS="$lt_save_ifs"
bf9f3bac 649
8934764e
BB
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+"$@"}
bf9f3bac 665 else
8934764e
BB
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=:
bf9f3bac 690
8934764e
BB
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
bf9f3bac 698
8934764e
BB
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
bf9f3bac 708 fi
709 fi
710 fi
711fi
bf9f3bac 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.
8934764e
BB
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
bf9f3bac 718fi
719
720
721
722
8934764e 723exec 7<&0 </dev/null 6>&1
bf9f3bac 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.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
bf9f3bac 730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
8934764e 734ac_clean_files=
bf9f3bac 735ac_config_libobj_dir=.
8934764e 736LIBOBJS=
bf9f3bac 737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
bf9f3bac 743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
8934764e 753#ifdef HAVE_SYS_TYPES_H
bf9f3bac 754# include <sys/types.h>
755#endif
8934764e 756#ifdef HAVE_SYS_STAT_H
bf9f3bac 757# include <sys/stat.h>
758#endif
8934764e 759#ifdef STDC_HEADERS
bf9f3bac 760# include <stdlib.h>
761# include <stddef.h>
762#else
8934764e 763# ifdef HAVE_STDLIB_H
bf9f3bac 764# include <stdlib.h>
765# endif
766#endif
8934764e
BB
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bf9f3bac 769# include <memory.h>
770# endif
771# include <string.h>
772#endif
8934764e 773#ifdef HAVE_STRINGS_H
bf9f3bac 774# include <strings.h>
775#endif
8934764e 776#ifdef HAVE_INTTYPES_H
bf9f3bac 777# include <inttypes.h>
bf9f3bac 778#endif
8934764e
BB
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
bf9f3bac 783# include <unistd.h>
784#endif"
785
8934764e
BB
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
790CONFIG_KERNEL_FALSE
791CONFIG_KERNEL_TRUE
792CONFIG_USER_FALSE
793CONFIG_USER_TRUE
c950d148 794DEBUG_CFLAGS
8934764e
BB
795KERNELCPPFLAGS
796KERNELMAKE_PARAMS
797LINUX_SYMBOLS
798LINUX_VERSION
799LINUX_OBJ
800LINUX
801SPL_CONFIG
287b2fb1 802DEFAULT_PACKAGE
73fc084e 803VENDOR
287b2fb1
BB
804ALIEN_VERSION
805ALIEN
806HAVE_ALIEN
807DPKGBUILD_VERSION
808DPKGBUILD
809HAVE_DPKGBUILD
810DPKG_VERSION
811DPKG
812HAVE_DPKG
813RPMBUILD_VERSION
814RPMBUILD
815HAVE_RPMBUILD
816RPM_VERSION
817RPM
818HAVE_RPM
8934764e
BB
819LICENSE
820CPP
821OTOOL64
822OTOOL
823LIPO
824NMEDIT
825DSYMUTIL
826lt_ECHO
827RANLIB
828AR
829OBJDUMP
830LN_S
831NM
832ac_ct_DUMPBIN
833DUMPBIN
834LD
835FGREP
836EGREP
837GREP
838SED
839LIBTOOL
840am__fastdepCC_FALSE
841am__fastdepCC_TRUE
842CCDEPMODE
843AMDEPBACKSLASH
844AMDEP_FALSE
845AMDEP_TRUE
846am__quote
847am__include
848DEPDIR
849OBJEXT
850EXEEXT
851ac_ct_CC
852CPPFLAGS
853LDFLAGS
854CFLAGS
855CC
856am__untar
857am__tar
858AMTAR
859am__leading_dot
860SET_MAKE
861AWK
862mkdir_p
863MKDIR_P
864INSTALL_STRIP_PROGRAM
865STRIP
866install_sh
867MAKEINFO
868AUTOHEADER
869AUTOMAKE
870AUTOCONF
871ACLOCAL
872VERSION
873PACKAGE
874CYGPATH_W
875am__isrc
876INSTALL_DATA
877INSTALL_SCRIPT
878INSTALL_PROGRAM
879AM_BACKSLASH
880AM_DEFAULT_VERBOSITY
881MAINT
882MAINTAINER_MODE_FALSE
883MAINTAINER_MODE_TRUE
884target_os
885target_vendor
886target_cpu
887target
888host_os
889host_vendor
890host_cpu
891host
892build_os
893build_vendor
894build_cpu
895build
896SPL_META_LT_AGE
897SPL_META_LT_REVISION
898SPL_META_LT_CURRENT
899SPL_META_AUTHOR
900SPL_META_DATA
901SPL_META_ALIAS
902SPL_META_RELEASE
903SPL_META_VERSION
904SPL_META_NAME
905target_alias
906host_alias
907build_alias
908LIBS
909ECHO_T
910ECHO_N
911ECHO_C
912DEFS
913mandir
914localedir
915libdir
916psdir
917pdfdir
918dvidir
919htmldir
920infodir
921docdir
922oldincludedir
923includedir
924localstatedir
925sharedstatedir
926sysconfdir
927datadir
928datarootdir
929libexecdir
930sbindir
931bindir
932program_transform_name
933prefix
934exec_prefix
935PACKAGE_BUGREPORT
936PACKAGE_STRING
937PACKAGE_VERSION
938PACKAGE_TARNAME
939PACKAGE_NAME
940PATH_SEPARATOR
941SHELL'
bf9f3bac 942ac_subst_files=''
8934764e
BB
943ac_user_opts='
944enable_option_checking
945enable_maintainer_mode
946enable_silent_rules
947enable_dependency_tracking
948enable_shared
949enable_static
950with_pic
951enable_fast_install
952with_gnu_ld
953enable_libtool_lock
954with_config
955with_linux
956with_linux_obj
957enable_debug
958enable_debug_kmem
959enable_debug_kmem_tracking
960enable_atomic_spinlocks
961'
962 ac_precious_vars='build_alias
963host_alias
964target_alias
965CC
966CFLAGS
967LDFLAGS
968LIBS
969CPPFLAGS
970CPP'
971
bf9f3bac 972
973# Initialize some variables set by options.
974ac_init_help=
975ac_init_version=false
8934764e
BB
976ac_unrecognized_opts=
977ac_unrecognized_sep=
bf9f3bac 978# The variables have the same names as the options, with
979# dashes changed to underlines.
980cache_file=/dev/null
981exec_prefix=NONE
982no_create=
983no_recursion=
984prefix=NONE
985program_prefix=NONE
986program_suffix=NONE
987program_transform_name=s,x,x,
988silent=
989site=
990srcdir=
991verbose=
992x_includes=NONE
993x_libraries=NONE
994
995# Installation directory options.
996# These are left unexpanded so users can "make install exec_prefix=/foo"
997# and all the variables that are supposed to be based on exec_prefix
998# by default will actually change.
999# Use braces instead of parens because sh, perl, etc. also accept them.
8934764e 1000# (The list follows the same order as the GNU Coding Standards.)
bf9f3bac 1001bindir='${exec_prefix}/bin'
1002sbindir='${exec_prefix}/sbin'
1003libexecdir='${exec_prefix}/libexec'
8934764e
BB
1004datarootdir='${prefix}/share'
1005datadir='${datarootdir}'
bf9f3bac 1006sysconfdir='${prefix}/etc'
1007sharedstatedir='${prefix}/com'
1008localstatedir='${prefix}/var'
bf9f3bac 1009includedir='${prefix}/include'
1010oldincludedir='/usr/include'
8934764e
BB
1011docdir='${datarootdir}/doc/${PACKAGE}'
1012infodir='${datarootdir}/info'
1013htmldir='${docdir}'
1014dvidir='${docdir}'
1015pdfdir='${docdir}'
1016psdir='${docdir}'
1017libdir='${exec_prefix}/lib'
1018localedir='${datarootdir}/locale'
1019mandir='${datarootdir}/man'
bf9f3bac 1020
1021ac_prev=
8934764e 1022ac_dashdash=
bf9f3bac 1023for ac_option
1024do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
8934764e 1027 eval $ac_prev=\$ac_option
bf9f3bac 1028 ac_prev=
1029 continue
1030 fi
1031
8934764e
BB
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
bf9f3bac 1036
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1038
8934764e
BB
1039 case $ac_dashdash$ac_option in
1040 --)
1041 ac_dashdash=yes ;;
bf9f3bac 1042
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1047
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1052
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1059
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1062
8934764e 1063 -datadir | --datadir | --datadi | --datad)
bf9f3bac 1064 ac_prev=datadir ;;
8934764e 1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bf9f3bac 1066 datadir=$ac_optarg ;;
1067
8934764e
BB
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1074
bf9f3bac 1075 -disable-* | --disable-*)
8934764e 1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bf9f3bac 1077 # Reject names that are not valid shell variable names.
8934764e
BB
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1080 { (exit 1); exit 1; }; }
8934764e
BB
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085"enable_$ac_useropt"
1086"*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1091
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1096
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
bf9f3bac 1101
1102 -enable-* | --enable-*)
8934764e 1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bf9f3bac 1104 # Reject names that are not valid shell variable names.
8934764e
BB
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1107 { (exit 1); exit 1; }; }
8934764e
BB
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112"enable_$ac_useropt"
1113"*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
bf9f3bac 1116 esac
8934764e 1117 eval enable_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1118
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1127
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1131
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1138
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1143
8934764e
BB
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1149
bf9f3bac 1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1156
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1161
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1166
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1173
8934764e
BB
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1178
bf9f3bac 1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
8934764e 1180 | --localstate | --localstat | --localsta | --localst | --locals)
bf9f3bac 1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8934764e 1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bf9f3bac 1184 localstatedir=$ac_optarg ;;
1185
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1190
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1194
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1198
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1202
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1211
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1216
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1223
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1230
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1247
8934764e
BB
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1252
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1257
bf9f3bac 1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1261
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 ac_prev=sbindir ;;
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1266 sbindir=$ac_optarg ;;
1267
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1277 sharedstatedir=$ac_optarg ;;
1278
1279 -site | --site | --sit)
1280 ac_prev=site ;;
1281 -site=* | --site=* | --sit=*)
1282 site=$ac_optarg ;;
1283
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 ac_prev=srcdir ;;
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1288
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1295
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1300
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302 verbose=yes ;;
1303
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1306
1307 -with-* | --with-*)
8934764e 1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bf9f3bac 1309 # Reject names that are not valid shell variable names.
8934764e
BB
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1312 { (exit 1); exit 1; }; }
8934764e
BB
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"with_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
bf9f3bac 1321 esac
8934764e 1322 eval with_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1323
1324 -without-* | --without-*)
8934764e 1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bf9f3bac 1326 # Reject names that are not valid shell variable names.
8934764e
BB
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1329 { (exit 1); exit 1; }; }
8934764e
BB
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334"with_$ac_useropt"
1335"*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
bf9f3bac 1340
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1344
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1351
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1358
8934764e 1359 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
bf9f3bac 1360Try \`$0 --help' for more information." >&2
1361 { (exit 1); exit 1; }; }
1362 ;;
1363
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8934764e 1368 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
bf9f3bac 1369 { (exit 1); exit 1; }; }
8934764e 1370 eval $ac_envvar=\$ac_optarg
bf9f3bac 1371 export $ac_envvar ;;
1372
1373 *)
1374 # FIXME: should be removed in autoconf 3.0.
8934764e 1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bf9f3bac 1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8934764e 1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bf9f3bac 1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1379 ;;
1380
1381 esac
1382done
1383
1384if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8934764e 1386 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
bf9f3bac 1387 { (exit 1); exit 1; }; }
1388fi
1389
8934764e
BB
1390if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1394 { (exit 1); exit 1; }; } ;;
1395 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bf9f3bac 1396 esac
8934764e 1397fi
bf9f3bac 1398
8934764e
BB
1399# Check all directory arguments for consistency.
1400for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401 datadir sysconfdir sharedstatedir localstatedir includedir \
1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403 libdir localedir mandir
bf9f3bac 1404do
8934764e
BB
1405 eval ac_val=\$$ac_var
1406 # Remove trailing slashes.
bf9f3bac 1407 case $ac_val in
8934764e
BB
1408 */ )
1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1410 eval $ac_var=\$ac_val;;
bf9f3bac 1411 esac
8934764e
BB
1412 # Be sure to have absolute directory names.
1413 case $ac_val in
1414 [\\/$]* | ?:[\\/]* ) continue;;
1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1416 esac
1417 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1418 { (exit 1); exit 1; }; }
bf9f3bac 1419done
1420
1421# There might be people who depend on the old broken behavior: `$host'
1422# used to hold the argument of --host etc.
1423# FIXME: To remove some day.
1424build=$build_alias
1425host=$host_alias
1426target=$target_alias
1427
1428# FIXME: To remove some day.
1429if test "x$host_alias" != x; then
1430 if test "x$build_alias" = x; then
1431 cross_compiling=maybe
8934764e 1432 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bf9f3bac 1433 If a cross compiler is detected then cross compile mode will be used." >&2
1434 elif test "x$build_alias" != "x$host_alias"; then
1435 cross_compiling=yes
1436 fi
1437fi
1438
1439ac_tool_prefix=
1440test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441
1442test "$silent" = yes && exec 6>/dev/null
1443
1444
8934764e
BB
1445ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446ac_ls_di=`ls -di .` &&
1447ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1449 { (exit 1); exit 1; }; }
1450test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1452 { (exit 1); exit 1; }; }
1453
1454
bf9f3bac 1455# Find the source files, if location was not specified.
1456if test -z "$srcdir"; then
1457 ac_srcdir_defaulted=yes
8934764e
BB
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir=`$as_dirname -- "$as_myself" ||
1460$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464$as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)[^/].*/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\/\)$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\).*/{
1478 s//\1/
1479 q
1480 }
1481 s/.*/./; q'`
bf9f3bac 1482 srcdir=$ac_confdir
8934764e 1483 if test ! -r "$srcdir/$ac_unique_file"; then
bf9f3bac 1484 srcdir=..
1485 fi
1486else
1487 ac_srcdir_defaulted=no
1488fi
8934764e
BB
1489if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1491 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bf9f3bac 1492 { (exit 1); exit 1; }; }
bf9f3bac 1493fi
8934764e
BB
1494ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1495ac_abs_confdir=`(
1496 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
bf9f3bac 1497 { (exit 1); exit 1; }; }
8934764e
BB
1498 pwd)`
1499# When building in place, set srcdir=.
1500if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 srcdir=.
1502fi
1503# Remove unnecessary trailing slashes from srcdir.
1504# Double slashes in file names in object file debugging info
1505# mess up M-x gdb in Emacs.
1506case $srcdir in
1507*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508esac
1509for ac_var in $ac_precious_vars; do
1510 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_${ac_var}_value=\$${ac_var}
1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514done
bf9f3bac 1515
1516#
1517# Report the --help message.
1518#
1519if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1522 cat <<_ACEOF
1523\`configure' configures this package to adapt to many kinds of systems.
1524
1525Usage: $0 [OPTION]... [VAR=VALUE]...
1526
1527To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528VAR=VALUE. See below for descriptions of some of the useful variables.
1529
1530Defaults for the options are specified in brackets.
1531
1532Configuration:
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1542
bf9f3bac 1543Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
8934764e 1545 [$ac_default_prefix]
bf9f3bac 1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8934764e 1547 [PREFIX]
bf9f3bac 1548
1549By default, \`make install' will install all the files in
1550\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552for instance \`--prefix=\$HOME'.
1553
1554For better control, use the options below.
1555
1556Fine tuning of the installation directories:
8934764e
BB
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --libdir=DIR object code libraries [EPREFIX/lib]
1564 --includedir=DIR C header files [PREFIX/include]
1565 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1566 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1567 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1568 --infodir=DIR info documentation [DATAROOTDIR/info]
1569 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1570 --mandir=DIR man documentation [DATAROOTDIR/man]
1571 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1572 --htmldir=DIR html documentation [DOCDIR]
1573 --dvidir=DIR dvi documentation [DOCDIR]
1574 --pdfdir=DIR pdf documentation [DOCDIR]
1575 --psdir=DIR ps documentation [DOCDIR]
bf9f3bac 1576_ACEOF
1577
1578 cat <<\_ACEOF
1579
1580Program names:
1581 --program-prefix=PREFIX prepend PREFIX to installed program names
1582 --program-suffix=SUFFIX append SUFFIX to installed program names
1583 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1584
1585System types:
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1588 --target=TARGET configure for building compilers for TARGET [HOST]
1589_ACEOF
1590fi
1591
1592if test -n "$ac_init_help"; then
1593
1594 cat <<\_ACEOF
1595
1596Optional Features:
8934764e 1597 --disable-option-checking ignore unrecognized --enable/--with options
bf9f3bac 1598 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1599 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1600 --enable-maintainer-mode enable make rules and dependencies not useful
1601 (and sometimes confusing) to the casual installer
8934764e
BB
1602 --enable-silent-rules less verbose build output (undo: `make V=1')
1603 --disable-silent-rules verbose build output (undo: `make V=0')
bf9f3bac 1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
8934764e
BB
1606 --enable-shared[=PKGS] build shared libraries [default=yes]
1607 --enable-static[=PKGS] build static libraries [default=yes]
bf9f3bac 1608 --enable-fast-install[=PKGS]
1609 optimize for fast installation [default=yes]
1610 --disable-libtool-lock avoid locking (might break parallel builds)
055ffd98
BB
1611 --enable-debug Enable generic debug support [default=no]
1612 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1613 --enable-debug-kmem-tracking
1614 Enable detailed kmem tracking [default=no]
5e9b5d83 1615 --enable-atomic-spinlocks
d04c8a56 1616 Atomic types use spinlocks [default=check]
bf9f3bac 1617
1618Optional Packages:
1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bf9f3bac 1621 --with-pic try to use only PIC/non-PIC objects [default=use
1622 both]
8934764e 1623 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
c1541dfe 1624 --with-config=CONFIG Config file 'kernel|user|all|srpm'
bf9f3bac 1625 --with-linux=PATH Path to kernel source
1626 --with-linux-obj=PATH Path to kernel build objects
1627
1628Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
8934764e
BB
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
bf9f3bac 1636 CPP C preprocessor
bf9f3bac 1637
1638Use these variables to override the choices made by `configure' or to help
1639it to find libraries and programs with nonstandard names/locations.
1640
1641_ACEOF
8934764e 1642ac_status=$?
bf9f3bac 1643fi
1644
1645if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
bf9f3bac 1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8934764e
BB
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
bf9f3bac 1651 ac_builddir=.
1652
8934764e
BB
1653case "$ac_dir" in
1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655*)
1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663esac
1664ac_abs_top_builddir=$ac_pwd
1665ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666# for backward compatibility:
1667ac_top_builddir=$ac_top_build_prefix
bf9f3bac 1668
1669case $srcdir in
8934764e 1670 .) # We are building in place.
bf9f3bac 1671 ac_srcdir=.
8934764e
BB
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
bf9f3bac 1675 ac_srcdir=$srcdir$ac_dir_suffix;
8934764e
BB
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bf9f3bac 1682esac
8934764e
BB
1683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
bf9f3bac 1693 else
8934764e
BB
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
bf9f3bac 1697 done
1698fi
1699
8934764e 1700test -n "$ac_init_help" && exit $ac_status
bf9f3bac 1701if $ac_init_version; then
1702 cat <<\_ACEOF
8934764e
BB
1703configure
1704generated by GNU Autoconf 2.63
bf9f3bac 1705
8934764e
BB
1706Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17072002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 1708This configure script is free software; the Free Software Foundation
1709gives unlimited permission to copy, distribute and modify it.
1710_ACEOF
8934764e 1711 exit
bf9f3bac 1712fi
8934764e 1713cat >config.log <<_ACEOF
bf9f3bac 1714This file contains any messages produced by compilers while
1715running configure, to aid debugging if configure makes a mistake.
1716
1717It was created by $as_me, which was
8934764e 1718generated by GNU Autoconf 2.63. Invocation command line was
bf9f3bac 1719
1720 $ $0 $@
1721
1722_ACEOF
8934764e 1723exec 5>>config.log
bf9f3bac 1724{
1725cat <<_ASUNAME
1726## --------- ##
1727## Platform. ##
1728## --------- ##
1729
1730hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735
1736/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738
1739/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1740/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1741/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
8934764e 1742/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
bf9f3bac 1743/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1744/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1745/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746
1747_ASUNAME
1748
1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
8934764e 1754 $as_echo "PATH: $as_dir"
bf9f3bac 1755done
8934764e 1756IFS=$as_save_IFS
bf9f3bac 1757
1758} >&5
1759
1760cat >&5 <<_ACEOF
1761
1762
1763## ----------- ##
1764## Core tests. ##
1765## ----------- ##
1766
1767_ACEOF
1768
1769
1770# Keep a trace of the command line.
1771# Strip out --no-create and --no-recursion so they do not pile up.
1772# Strip out --silent because we don't want to record it for future runs.
1773# Also quote any args containing shell meta-characters.
1774# Make two passes to allow for proper duplicate-argument suppression.
1775ac_configure_args=
1776ac_configure_args0=
1777ac_configure_args1=
bf9f3bac 1778ac_must_keep_next=false
1779for ac_pass in 1 2
1780do
1781 for ac_arg
1782 do
1783 case $ac_arg in
1784 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786 | -silent | --silent | --silen | --sile | --sil)
1787 continue ;;
8934764e
BB
1788 *\'*)
1789 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 1790 esac
1791 case $ac_pass in
1792 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793 2)
1794 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1795 if test $ac_must_keep_next = true; then
1796 ac_must_keep_next=false # Got value, back to normal.
1797 else
1798 case $ac_arg in
1799 *=* | --config-cache | -C | -disable-* | --disable-* \
1800 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1801 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1802 | -with-* | --with-* | -without-* | --without-* | --x)
1803 case "$ac_configure_args0 " in
1804 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1805 esac
1806 ;;
1807 -* ) ac_must_keep_next=true ;;
1808 esac
1809 fi
8934764e 1810 ac_configure_args="$ac_configure_args '$ac_arg'"
bf9f3bac 1811 ;;
1812 esac
1813 done
1814done
1815$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1816$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817
1818# When interrupted or exit'd, cleanup temporary files, and complete
1819# config.log. We remove comments because anyway the quotes in there
1820# would cause problems or look ugly.
8934764e
BB
1821# WARNING: Use '\'' to represent an apostrophe within the trap.
1822# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bf9f3bac 1823trap 'exit_status=$?
1824 # Save into config.log some information that might help in debugging.
1825 {
1826 echo
1827
1828 cat <<\_ASBOX
1829## ---------------- ##
1830## Cache variables. ##
1831## ---------------- ##
1832_ASBOX
1833 echo
1834 # The following way of writing the cache mishandles newlines in values,
8934764e
BB
1835(
1836 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1837 eval ac_val=\$$ac_var
1838 case $ac_val in #(
1839 *${as_nl}*)
1840 case $ac_var in #(
1841 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1842$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1843 esac
1844 case $ac_var in #(
1845 _ | IFS | as_nl) ;; #(
1846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1847 *) $as_unset $ac_var ;;
1848 esac ;;
1849 esac
1850 done
bf9f3bac 1851 (set) 2>&1 |
8934764e
BB
1852 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1853 *${as_nl}ac_space=\ *)
bf9f3bac 1854 sed -n \
8934764e
BB
1855 "s/'\''/'\''\\\\'\'''\''/g;
1856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1857 ;; #(
bf9f3bac 1858 *)
8934764e 1859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bf9f3bac 1860 ;;
8934764e
BB
1861 esac |
1862 sort
1863)
bf9f3bac 1864 echo
1865
1866 cat <<\_ASBOX
1867## ----------------- ##
1868## Output variables. ##
1869## ----------------- ##
1870_ASBOX
1871 echo
1872 for ac_var in $ac_subst_vars
1873 do
8934764e
BB
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1879 done | sort
1880 echo
1881
1882 if test -n "$ac_subst_files"; then
1883 cat <<\_ASBOX
8934764e
BB
1884## ------------------- ##
1885## File substitutions. ##
1886## ------------------- ##
bf9f3bac 1887_ASBOX
1888 echo
1889 for ac_var in $ac_subst_files
1890 do
8934764e
BB
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
1893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 esac
1895 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1896 done | sort
1897 echo
1898 fi
1899
1900 if test -s confdefs.h; then
1901 cat <<\_ASBOX
1902## ----------- ##
1903## confdefs.h. ##
1904## ----------- ##
1905_ASBOX
1906 echo
8934764e 1907 cat confdefs.h
bf9f3bac 1908 echo
1909 fi
1910 test "$ac_signal" != 0 &&
8934764e
BB
1911 $as_echo "$as_me: caught signal $ac_signal"
1912 $as_echo "$as_me: exit $exit_status"
bf9f3bac 1913 } >&5
8934764e
BB
1914 rm -f core *.core core.conftest.* &&
1915 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bf9f3bac 1916 exit $exit_status
8934764e 1917' 0
bf9f3bac 1918for ac_signal in 1 2 13 15; do
1919 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1920done
1921ac_signal=0
1922
1923# confdefs.h avoids OS command line length limits that DEFS can exceed.
8934764e 1924rm -f -r conftest* confdefs.h
bf9f3bac 1925
1926# Predefined preprocessor variables.
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_NAME "$PACKAGE_NAME"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_VERSION "$PACKAGE_VERSION"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_STRING "$PACKAGE_STRING"
1945_ACEOF
1946
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1950_ACEOF
1951
1952
1953# Let the site file select an alternate cache file if it wants to.
8934764e
BB
1954# Prefer an explicitly selected file to automatically selected ones.
1955ac_site_file1=NONE
1956ac_site_file2=NONE
1957if test -n "$CONFIG_SITE"; then
1958 ac_site_file1=$CONFIG_SITE
1959elif test "x$prefix" != xNONE; then
1960 ac_site_file1=$prefix/share/config.site
1961 ac_site_file2=$prefix/etc/config.site
1962else
1963 ac_site_file1=$ac_default_prefix/share/config.site
1964 ac_site_file2=$ac_default_prefix/etc/config.site
1965fi
1966for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1967do
1968 test "x$ac_site_file" = xNONE && continue
bf9f3bac 1969 if test -r "$ac_site_file"; then
8934764e
BB
1970 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1971$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bf9f3bac 1972 sed 's/^/| /' "$ac_site_file" >&5
1973 . "$ac_site_file"
1974 fi
1975done
1976
1977if test -r "$cache_file"; then
1978 # Some versions of bash will fail to source /dev/null (special
1979 # files actually), so we avoid doing that.
1980 if test -f "$cache_file"; then
8934764e
BB
1981 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1982$as_echo "$as_me: loading cache $cache_file" >&6;}
bf9f3bac 1983 case $cache_file in
8934764e
BB
1984 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1985 *) . "./$cache_file";;
bf9f3bac 1986 esac
1987 fi
1988else
8934764e
BB
1989 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1990$as_echo "$as_me: creating cache $cache_file" >&6;}
bf9f3bac 1991 >$cache_file
1992fi
1993
1994# Check that the precious variables saved in the cache have kept the same
1995# value.
1996ac_cache_corrupted=false
8934764e 1997for ac_var in $ac_precious_vars; do
bf9f3bac 1998 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1999 eval ac_new_set=\$ac_env_${ac_var}_set
8934764e
BB
2000 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2001 eval ac_new_val=\$ac_env_${ac_var}_value
bf9f3bac 2002 case $ac_old_set,$ac_new_set in
2003 set,)
8934764e
BB
2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2005$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bf9f3bac 2006 ac_cache_corrupted=: ;;
2007 ,set)
8934764e
BB
2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2009$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bf9f3bac 2010 ac_cache_corrupted=: ;;
2011 ,);;
2012 *)
2013 if test "x$ac_old_val" != "x$ac_new_val"; then
8934764e
BB
2014 # differences in whitespace do not lead to failure.
2015 ac_old_val_w=`echo x $ac_old_val`
2016 ac_new_val_w=`echo x $ac_new_val`
2017 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2018 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2019$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2020 ac_cache_corrupted=:
2021 else
2022 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2023$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2024 eval $ac_var=\$ac_old_val
2025 fi
2026 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2027$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2028 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2029$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bf9f3bac 2030 fi;;
2031 esac
2032 # Pass precious variables to config.status.
2033 if test "$ac_new_set" = set; then
2034 case $ac_new_val in
8934764e 2035 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 2036 *) ac_arg=$ac_var=$ac_new_val ;;
2037 esac
2038 case " $ac_configure_args " in
2039 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2040 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2041 esac
2042 fi
2043done
2044if $ac_cache_corrupted; then
8934764e
BB
2045 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2047 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2048$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2049 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2050$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
bf9f3bac 2051 { (exit 1); exit 1; }; }
2052fi
2053
bf9f3bac 2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
8934764e
BB
2070ac_ext=c
2071ac_cpp='$CPP $CPPFLAGS'
2072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 2075
2076
0c617c9a
BB
2077ac_ext=c
2078ac_cpp='$CPP $CPPFLAGS'
2079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082
2083
8934764e
BB
2084 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2085$as_echo_n "checking metadata... " >&6; }
dd529a30 2086
2087 META="$srcdir/META"
2088 _spl_ac_meta_got_file=no
2089 if test -f "$META"; then
2090 _spl_ac_meta_got_file=yes
2091
abc3ca14 2092 SPL_META_NAME=`perl -n\
dd529a30 2093 -e "BEGIN { \\$key=shift @ARGV; }"\
2094 -e "next unless s/^\s*\\$key[:=]//i;"\
2095 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2096 -e "s/^\s+//;"\
2097 -e "s/\s+$//;"\
2098 -e "s/^(['\"])(.*)\1/\\$2/;"\
2099 -e "\\$val=\\$_;"\
2100 -e "END { print \\$val if defined \\$val; }"\
2101 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 2102 if test -n "$SPL_META_NAME"; then
dd529a30 2103
2104cat >>confdefs.h <<_ACEOF
abc3ca14 2105#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 2106_ACEOF
2107
2108
2109 fi
2110
abc3ca14 2111 SPL_META_VERSION=`perl -n\
dd529a30 2112 -e "BEGIN { \\$key=shift @ARGV; }"\
2113 -e "next unless s/^\s*\\$key[:=]//i;"\
2114 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2115 -e "s/^\s+//;"\
2116 -e "s/\s+$//;"\
2117 -e "s/^(['\"])(.*)\1/\\$2/;"\
2118 -e "\\$val=\\$_;"\
2119 -e "END { print \\$val if defined \\$val; }"\
2120 'VERSION' $META`;
abc3ca14 2121 if test -n "$SPL_META_VERSION"; then
dd529a30 2122
2123cat >>confdefs.h <<_ACEOF
abc3ca14 2124#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 2125_ACEOF
2126
2127
2128 fi
2129
abc3ca14 2130 SPL_META_RELEASE=`perl -n\
dd529a30 2131 -e "BEGIN { \\$key=shift @ARGV; }"\
2132 -e "next unless s/^\s*\\$key[:=]//i;"\
2133 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2134 -e "s/^\s+//;"\
2135 -e "s/\s+$//;"\
2136 -e "s/^(['\"])(.*)\1/\\$2/;"\
2137 -e "\\$val=\\$_;"\
2138 -e "END { print \\$val if defined \\$val; }"\
2139 'RELEASE' $META`;
abc3ca14 2140 if test -n "$SPL_META_RELEASE"; then
dd529a30 2141
2142cat >>confdefs.h <<_ACEOF
abc3ca14 2143#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 2144_ACEOF
2145
2146
2147 fi
2148
abc3ca14 2149 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 2150 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 2151 test -n "$SPL_META_RELEASE" &&
72e7de60 2152 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 2153
2154cat >>confdefs.h <<_ACEOF
72e7de60 2155#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 2156_ACEOF
2157
2158
2159 fi
2160
abc3ca14 2161 SPL_META_DATA=`perl -n\
dd529a30 2162 -e "BEGIN { \\$key=shift @ARGV; }"\
2163 -e "next unless s/^\s*\\$key[:=]//i;"\
2164 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2165 -e "s/^\s+//;"\
2166 -e "s/\s+$//;"\
2167 -e "s/^(['\"])(.*)\1/\\$2/;"\
2168 -e "\\$val=\\$_;"\
2169 -e "END { print \\$val if defined \\$val; }"\
2170 'DATE' $META`;
abc3ca14 2171 if test -n "$SPL_META_DATA"; then
dd529a30 2172
2173cat >>confdefs.h <<_ACEOF
abc3ca14 2174#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 2175_ACEOF
2176
2177
2178 fi
2179
abc3ca14 2180 SPL_META_AUTHOR=`perl -n\
dd529a30 2181 -e "BEGIN { \\$key=shift @ARGV; }"\
2182 -e "next unless s/^\s*\\$key[:=]//i;"\
2183 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2184 -e "s/^\s+//;"\
2185 -e "s/\s+$//;"\
2186 -e "s/^(['\"])(.*)\1/\\$2/;"\
2187 -e "\\$val=\\$_;"\
2188 -e "END { print \\$val if defined \\$val; }"\
2189 'AUTHOR' $META`;
abc3ca14 2190 if test -n "$SPL_META_AUTHOR"; then
dd529a30 2191
2192cat >>confdefs.h <<_ACEOF
abc3ca14 2193#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 2194_ACEOF
2195
2196
2197 fi
2198
2199
abc3ca14 2200 SPL_META_LT_CURRENT=`perl -n\
dd529a30 2201 -e "BEGIN { \\$key=shift @ARGV; }"\
2202 -e "next unless s/^\s*\\$key[:=]//i;"\
2203 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2204 -e "s/^\s+//;"\
2205 -e "s/\s+$//;"\
2206 -e "s/^(['\"])(.*)\1/\\$2/;"\
2207 -e "\\$val=\\$_;"\
2208 -e "END { print \\$val if defined \\$val; }"\
2209 'LT_CURRENT' $META`;
abc3ca14 2210 SPL_META_LT_REVISION=`perl -n\
dd529a30 2211 -e "BEGIN { \\$key=shift @ARGV; }"\
2212 -e "next unless s/^\s*\\$key[:=]//i;"\
2213 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2214 -e "s/^\s+//;"\
2215 -e "s/\s+$//;"\
2216 -e "s/^(['\"])(.*)\1/\\$2/;"\
2217 -e "\\$val=\\$_;"\
2218 -e "END { print \\$val if defined \\$val; }"\
2219 'LT_REVISION' $META`;
abc3ca14 2220 SPL_META_LT_AGE=`perl -n\
dd529a30 2221 -e "BEGIN { \\$key=shift @ARGV; }"\
2222 -e "next unless s/^\s*\\$key[:=]//i;"\
2223 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2224 -e "s/^\s+//;"\
2225 -e "s/\s+$//;"\
2226 -e "s/^(['\"])(.*)\1/\\$2/;"\
2227 -e "\\$val=\\$_;"\
2228 -e "END { print \\$val if defined \\$val; }"\
2229 'LT_AGE' $META`;
abc3ca14
BB
2230 if test -n "$SPL_META_LT_CURRENT" \
2231 -o -n "$SPL_META_LT_REVISION" \
2232 -o -n "$SPL_META_LT_AGE"; then
2233 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2234 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2235 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 2236
2237cat >>confdefs.h <<_ACEOF
abc3ca14 2238#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 2239_ACEOF
2240
2241
2242cat >>confdefs.h <<_ACEOF
abc3ca14 2243#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 2244_ACEOF
2245
2246
2247cat >>confdefs.h <<_ACEOF
abc3ca14 2248#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 2249_ACEOF
2250
2251
2252
2253
2254 fi
2255 fi
2256
8934764e
BB
2257 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2258$as_echo "$_spl_ac_meta_got_file" >&6; }
dd529a30 2259
2260
bf9f3bac 2261ac_aux_dir=
8934764e
BB
2262for ac_dir in config "$srcdir"/config; do
2263 if test -f "$ac_dir/install-sh"; then
bf9f3bac 2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/install-sh -c"
2266 break
8934764e 2267 elif test -f "$ac_dir/install.sh"; then
bf9f3bac 2268 ac_aux_dir=$ac_dir
2269 ac_install_sh="$ac_aux_dir/install.sh -c"
2270 break
8934764e 2271 elif test -f "$ac_dir/shtool"; then
bf9f3bac 2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/shtool install -c"
2274 break
2275 fi
2276done
2277if test -z "$ac_aux_dir"; then
8934764e
BB
2278 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2279$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
bf9f3bac 2280 { (exit 1); exit 1; }; }
2281fi
8934764e
BB
2282
2283# These three variables are undocumented and unsupported,
2284# and are intended to be withdrawn in a future Autoconf release.
2285# They can cause serious problems if a builder's source tree is in a directory
2286# whose full name contains unusual characters.
2287ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290
bf9f3bac 2291
2292# Make sure we can run config.sub.
8934764e
BB
2293$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2294 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2295$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
bf9f3bac 2296 { (exit 1); exit 1; }; }
2297
8934764e
BB
2298{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2299$as_echo_n "checking build system type... " >&6; }
bf9f3bac 2300if test "${ac_cv_build+set}" = set; then
8934764e
BB
2301 $as_echo_n "(cached) " >&6
2302else
2303 ac_build_alias=$build_alias
2304test "x$ac_build_alias" = x &&
2305 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2306test "x$ac_build_alias" = x &&
2307 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2308$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
bf9f3bac 2309 { (exit 1); exit 1; }; }
8934764e
BB
2310ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2312$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
bf9f3bac 2313 { (exit 1); exit 1; }; }
2314
2315fi
8934764e
BB
2316{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2317$as_echo "$ac_cv_build" >&6; }
2318case $ac_cv_build in
2319*-*-*) ;;
2320*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2321$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2322 { (exit 1); exit 1; }; };;
2323esac
bf9f3bac 2324build=$ac_cv_build
8934764e
BB
2325ac_save_IFS=$IFS; IFS='-'
2326set x $ac_cv_build
2327shift
2328build_cpu=$1
2329build_vendor=$2
2330shift; shift
2331# Remember, the first character of IFS is used to create $*,
2332# except with old shells:
2333build_os=$*
2334IFS=$ac_save_IFS
2335case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2336
2337
2338{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2339$as_echo_n "checking host system type... " >&6; }
bf9f3bac 2340if test "${ac_cv_host+set}" = set; then
8934764e
BB
2341 $as_echo_n "(cached) " >&6
2342else
2343 if test "x$host_alias" = x; then
2344 ac_cv_host=$ac_cv_build
2345else
2346 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2347 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2348$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
bf9f3bac 2349 { (exit 1); exit 1; }; }
8934764e 2350fi
bf9f3bac 2351
2352fi
8934764e
BB
2353{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2354$as_echo "$ac_cv_host" >&6; }
2355case $ac_cv_host in
2356*-*-*) ;;
2357*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2358$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2359 { (exit 1); exit 1; }; };;
2360esac
bf9f3bac 2361host=$ac_cv_host
8934764e
BB
2362ac_save_IFS=$IFS; IFS='-'
2363set x $ac_cv_host
2364shift
2365host_cpu=$1
2366host_vendor=$2
2367shift; shift
2368# Remember, the first character of IFS is used to create $*,
2369# except with old shells:
2370host_os=$*
2371IFS=$ac_save_IFS
2372case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2373
2374
2375{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2376$as_echo_n "checking target system type... " >&6; }
bf9f3bac 2377if test "${ac_cv_target+set}" = set; then
8934764e
BB
2378 $as_echo_n "(cached) " >&6
2379else
2380 if test "x$target_alias" = x; then
2381 ac_cv_target=$ac_cv_host
2382else
2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2385$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
bf9f3bac 2386 { (exit 1); exit 1; }; }
8934764e 2387fi
bf9f3bac 2388
2389fi
8934764e
BB
2390{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2391$as_echo "$ac_cv_target" >&6; }
2392case $ac_cv_target in
2393*-*-*) ;;
2394*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2395$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2396 { (exit 1); exit 1; }; };;
2397esac
bf9f3bac 2398target=$ac_cv_target
8934764e
BB
2399ac_save_IFS=$IFS; IFS='-'
2400set x $ac_cv_target
2401shift
2402target_cpu=$1
2403target_vendor=$2
2404shift; shift
2405# Remember, the first character of IFS is used to create $*,
2406# except with old shells:
2407target_os=$*
2408IFS=$ac_save_IFS
2409case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
bf9f3bac 2410
2411
2412# The aliases save the names the user supplied, while $host etc.
2413# will get canonicalized.
2414test -n "$target_alias" &&
2415 test "$program_prefix$program_suffix$program_transform_name" = \
2416 NONENONEs,x,x, &&
2417 program_prefix=${target_alias}-
8934764e
BB
2418
2419{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2420$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2421 # Check whether --enable-maintainer-mode was given.
16b719f0 2422if test "${enable_maintainer_mode+set}" = set; then
8934764e 2423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16b719f0
BB
2424else
2425 USE_MAINTAINER_MODE=no
8934764e 2426fi
16b719f0 2427
8934764e
BB
2428 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2429$as_echo "$USE_MAINTAINER_MODE" >&6; }
2430 if test $USE_MAINTAINER_MODE = yes; then
16b719f0
BB
2431 MAINTAINER_MODE_TRUE=
2432 MAINTAINER_MODE_FALSE='#'
2433else
2434 MAINTAINER_MODE_TRUE='#'
2435 MAINTAINER_MODE_FALSE=
2436fi
2437
2438 MAINT=$MAINTAINER_MODE_TRUE
2439
2440
8934764e
BB
2441# Check whether --enable-silent-rules was given.
2442if test "${enable_silent_rules+set}" = set; then
2443 enableval=$enable_silent_rules;
2444fi
2445
2446case $enable_silent_rules in
2447yes) AM_DEFAULT_VERBOSITY=0;;
2448no) AM_DEFAULT_VERBOSITY=1;;
2449*) AM_DEFAULT_VERBOSITY=1;;
2450esac
2451AM_BACKSLASH='\'
2452
2453am__api_version='1.11'
2454
bf9f3bac 2455# Find a good install program. We prefer a C program (faster),
2456# so one script is as good as another. But avoid the broken or
2457# incompatible versions:
2458# SysV /etc/install, /usr/sbin/install
2459# SunOS /usr/etc/install
2460# IRIX /sbin/install
2461# AIX /bin/install
2462# AmigaOS /C/install, which installs bootblocks on floppy discs
2463# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2464# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2465# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2466# OS/2's system install, which has a completely different semantic
2467# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2468# Reject install programs that cannot install multiple files.
2469{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2470$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2471if test -z "$INSTALL"; then
2472if test "${ac_cv_path_install+set}" = set; then
8934764e 2473 $as_echo_n "(cached) " >&6
bf9f3bac 2474else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 # Account for people who put trailing slashes in PATH elements.
2481case $as_dir/ in
2482 ./ | .// | /cC/* | \
2483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2485 /usr/ucb/* ) ;;
2486 *)
2487 # OSF1 and SCO ODT 3.0 have their own names for install.
2488 # Don't use installbsd from OSF since it installs stuff as root
2489 # by default.
2490 for ac_prog in ginstall scoinst install; do
2491 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2492 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2493 if test $ac_prog = install &&
2494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # AIX install. It has an incompatible calling convention.
2496 :
2497 elif test $ac_prog = install &&
2498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # program-specific install script used by HP pwplus--don't use.
2500 :
2501 else
8934764e
BB
2502 rm -rf conftest.one conftest.two conftest.dir
2503 echo one > conftest.one
2504 echo two > conftest.two
2505 mkdir conftest.dir
2506 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2507 test -s conftest.one && test -s conftest.two &&
2508 test -s conftest.dir/conftest.one &&
2509 test -s conftest.dir/conftest.two
2510 then
2511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2512 break 3
2513 fi
bf9f3bac 2514 fi
2515 fi
2516 done
2517 done
2518 ;;
2519esac
8934764e 2520
bf9f3bac 2521done
8934764e 2522IFS=$as_save_IFS
bf9f3bac 2523
8934764e 2524rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 2525
2526fi
2527 if test "${ac_cv_path_install+set}" = set; then
2528 INSTALL=$ac_cv_path_install
2529 else
8934764e
BB
2530 # As a last resort, use the slow shell script. Don't cache a
2531 # value for INSTALL within a source directory, because that will
bf9f3bac 2532 # break other packages using the cache if that directory is
8934764e 2533 # removed, or if the value is a relative name.
bf9f3bac 2534 INSTALL=$ac_install_sh
2535 fi
2536fi
8934764e
BB
2537{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2538$as_echo "$INSTALL" >&6; }
bf9f3bac 2539
2540# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2541# It thinks the first close brace ends the variable substitution.
2542test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2543
2544test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2545
2546test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2547
8934764e
BB
2548{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2549$as_echo_n "checking whether build environment is sane... " >&6; }
bf9f3bac 2550# Just in case
2551sleep 1
2552echo timestamp > conftest.file
8934764e
BB
2553# Reject unsafe characters in $srcdir or the absolute working directory
2554# name. Accept space and tab only in the latter.
2555am_lf='
2556'
2557case `pwd` in
2558 *[\\\"\#\$\&\'\`$am_lf]*)
2559 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2560$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2561 { (exit 1); exit 1; }; };;
2562esac
2563case $srcdir in
2564 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2565 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2566$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2567 { (exit 1); exit 1; }; };;
2568esac
2569
bf9f3bac 2570# Do `set' in a subshell so we don't clobber the current shell's
2571# arguments. Must try -L first in case configure is actually a
2572# symlink; some systems play weird games with the mod time of symlinks
2573# (eg FreeBSD returns the mod time of the symlink's containing
2574# directory).
2575if (
8934764e 2576 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
bf9f3bac 2577 if test "$*" = "X"; then
2578 # -L didn't work.
8934764e 2579 set X `ls -t "$srcdir/configure" conftest.file`
bf9f3bac 2580 fi
2581 rm -f conftest.file
2582 if test "$*" != "X $srcdir/configure conftest.file" \
2583 && test "$*" != "X conftest.file $srcdir/configure"; then
2584
2585 # If neither matched, then we have a broken ls. This can happen
2586 # if, for instance, CONFIG_SHELL is bash and it inherits a
2587 # broken ls alias from the environment. This has actually
2588 # happened. Such a system could not be considered "sane".
8934764e 2589 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2590alias in your environment" >&5
8934764e 2591$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2592alias in your environment" >&2;}
2593 { (exit 1); exit 1; }; }
2594 fi
2595
2596 test "$2" = conftest.file
2597 )
2598then
2599 # Ok.
2600 :
2601else
8934764e 2602 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
bf9f3bac 2603Check your system clock" >&5
8934764e 2604$as_echo "$as_me: error: newly created file is older than distributed files!
bf9f3bac 2605Check your system clock" >&2;}
2606 { (exit 1); exit 1; }; }
2607fi
8934764e
BB
2608{ $as_echo "$as_me:$LINENO: result: yes" >&5
2609$as_echo "yes" >&6; }
bf9f3bac 2610test "$program_prefix" != NONE &&
8934764e 2611 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bf9f3bac 2612# Use a double $ so make ignores it.
2613test "$program_suffix" != NONE &&
8934764e
BB
2614 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2615# Double any \ or $.
bf9f3bac 2616# By default was `s,x,x', remove it if useless.
8934764e
BB
2617ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2618program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bf9f3bac 2619
2620# expand $ac_aux_dir to an absolute path
2621am_aux_dir=`cd $ac_aux_dir && pwd`
2622
8934764e
BB
2623if test x"${MISSING+set}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2627 *)
2628 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2629 esac
2630fi
bf9f3bac 2631# Use eval to expand $SHELL
2632if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634else
2635 am_missing_run=
8934764e
BB
2636 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638fi
2639
2640if test x"${install_sh}" != xset; then
2641 case $am_aux_dir in
2642 *\ * | *\ *)
2643 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2644 *)
2645 install_sh="\${SHELL} $am_aux_dir/install-sh"
2646 esac
2647fi
2648
2649# Installed binaries are usually stripped using `strip' when the user
2650# run `make install-strip'. However `strip' might not be the right
2651# tool to use in cross-compilation environments, therefore Automake
2652# will honor the `STRIP' environment variable to overrule this program.
2653if test "$cross_compiling" != no; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656set dummy ${ac_tool_prefix}strip; ac_word=$2
2657{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
2659if test "${ac_cv_prog_STRIP+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661else
2662 if test -n "$STRIP"; then
2663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676done
2677done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682STRIP=$ac_cv_prog_STRIP
2683if test -n "$STRIP"; then
2684 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2685$as_echo "$STRIP" >&6; }
2686else
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688$as_echo "no" >&6; }
2689fi
2690
2691
2692fi
2693if test -z "$ac_cv_prog_STRIP"; then
2694 ac_ct_STRIP=$STRIP
2695 # Extract the first word of "strip", so it can be a program name with args.
2696set dummy strip; ac_word=$2
2697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701else
2702 if test -n "$ac_ct_STRIP"; then
2703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_ac_ct_STRIP="strip"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716done
2717done
2718IFS=$as_save_IFS
2719
2720fi
2721fi
2722ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723if test -n "$ac_ct_STRIP"; then
2724 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2725$as_echo "$ac_ct_STRIP" >&6; }
2726else
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731 if test "x$ac_ct_STRIP" = x; then
2732 STRIP=":"
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735yes:)
2736{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738ac_tool_warned=yes ;;
2739esac
2740 STRIP=$ac_ct_STRIP
2741 fi
2742else
2743 STRIP="$ac_cv_prog_STRIP"
2744fi
2745
2746fi
2747INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2748
2749{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2750$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2751if test -z "$MKDIR_P"; then
2752 if test "${ac_cv_path_mkdir+set}" = set; then
2753 $as_echo_n "(cached) " >&6
2754else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2757do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_prog in mkdir gmkdir; do
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2763 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2764 'mkdir (GNU coreutils) '* | \
2765 'mkdir (coreutils) '* | \
2766 'mkdir (fileutils) '4.1*)
2767 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2768 break 3;;
2769 esac
2770 done
2771 done
2772done
2773IFS=$as_save_IFS
2774
2775fi
2776
2777 if test "${ac_cv_path_mkdir+set}" = set; then
2778 MKDIR_P="$ac_cv_path_mkdir -p"
bf9f3bac 2779 else
8934764e
BB
2780 # As a last resort, use the slow shell script. Don't cache a
2781 # value for MKDIR_P within a source directory, because that will
2782 # break other packages using the cache if that directory is
2783 # removed, or if the value is a relative name.
2784 test -d ./--version && rmdir ./--version
2785 MKDIR_P="$ac_install_sh -d"
bf9f3bac 2786 fi
2787fi
8934764e
BB
2788{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2789$as_echo "$MKDIR_P" >&6; }
2790
2791mkdir_p="$MKDIR_P"
2792case $mkdir_p in
2793 [\\/$]* | ?:[\\/]*) ;;
2794 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2795esac
bf9f3bac 2796
2797for ac_prog in gawk mawk nawk awk
2798do
2799 # Extract the first word of "$ac_prog", so it can be a program name with args.
2800set dummy $ac_prog; ac_word=$2
8934764e
BB
2801{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2802$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 2803if test "${ac_cv_prog_AWK+set}" = set; then
8934764e 2804 $as_echo_n "(cached) " >&6
bf9f3bac 2805else
2806 if test -n "$AWK"; then
2807 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2808else
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 2816 ac_cv_prog_AWK="$ac_prog"
8934764e 2817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 2818 break 2
2819 fi
2820done
2821done
8934764e 2822IFS=$as_save_IFS
bf9f3bac 2823
2824fi
2825fi
2826AWK=$ac_cv_prog_AWK
2827if test -n "$AWK"; then
8934764e
BB
2828 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2829$as_echo "$AWK" >&6; }
bf9f3bac 2830else
8934764e
BB
2831 { $as_echo "$as_me:$LINENO: result: no" >&5
2832$as_echo "no" >&6; }
bf9f3bac 2833fi
2834
8934764e 2835
bf9f3bac 2836 test -n "$AWK" && break
2837done
2838
8934764e
BB
2839{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2840$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2841set x ${MAKE-make}
2842ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2843if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2844 $as_echo_n "(cached) " >&6
bf9f3bac 2845else
2846 cat >conftest.make <<\_ACEOF
8934764e 2847SHELL = /bin/sh
bf9f3bac 2848all:
8934764e 2849 @echo '@@@%%%=$(MAKE)=@@@%%%'
bf9f3bac 2850_ACEOF
2851# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8934764e
BB
2852case `${MAKE-make} -f conftest.make 2>/dev/null` in
2853 *@@@%%%=?*=@@@%%%*)
2854 eval ac_cv_prog_make_${ac_make}_set=yes;;
2855 *)
2856 eval ac_cv_prog_make_${ac_make}_set=no;;
2857esac
bf9f3bac 2858rm -f conftest.make
2859fi
8934764e
BB
2860if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2861 { $as_echo "$as_me:$LINENO: result: yes" >&5
2862$as_echo "yes" >&6; }
bf9f3bac 2863 SET_MAKE=
2864else
8934764e
BB
2865 { $as_echo "$as_me:$LINENO: result: no" >&5
2866$as_echo "no" >&6; }
bf9f3bac 2867 SET_MAKE="MAKE=${MAKE-make}"
2868fi
2869
2870rm -rf .tst 2>/dev/null
2871mkdir .tst 2>/dev/null
2872if test -d .tst; then
2873 am__leading_dot=.
2874else
2875 am__leading_dot=_
2876fi
2877rmdir .tst 2>/dev/null
2878
8934764e
BB
2879if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881 # is not polluted with repeated "-I."
2882 am__isrc=' -I$(srcdir)'
2883 # test to see if srcdir already configured
2884 if test -f $srcdir/config.status; then
2885 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2886$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
bf9f3bac 2887 { (exit 1); exit 1; }; }
8934764e 2888 fi
bf9f3bac 2889fi
2890
2891# test whether we have cygpath
2892if test -z "$CYGPATH_W"; then
2893 if (cygpath --version) >/dev/null 2>/dev/null; then
2894 CYGPATH_W='cygpath -w'
2895 else
2896 CYGPATH_W=echo
2897 fi
2898fi
2899
2900
2901# Define the identity of the package.
abc3ca14
BB
2902 PACKAGE=$SPL_META_NAME
2903 VERSION=$SPL_META_VERSION
bf9f3bac 2904
2905
2906cat >>confdefs.h <<_ACEOF
2907#define PACKAGE "$PACKAGE"
2908_ACEOF
2909
2910
2911cat >>confdefs.h <<_ACEOF
2912#define VERSION "$VERSION"
2913_ACEOF
2914
2915# Some tools Automake needs.
2916
2917ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2918
2919
2920AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2921
2922
2923AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2924
2925
2926AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2927
2928
2929MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2930
bf9f3bac 2931# We need awk for the "check" target. The system "awk" is bad on
2932# some platforms.
2933# Always define AMTAR for backward compatibility.
2934
2935AMTAR=${AMTAR-"${am_missing_run}tar"}
2936
2937am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2938
2939
2940
2941
2942
8934764e 2943ac_config_headers="$ac_config_headers spl_config.h"
bf9f3bac 2944
0cbaeb11 2945
bf9f3bac 2946# Find a good install program. We prefer a C program (faster),
2947# so one script is as good as another. But avoid the broken or
2948# incompatible versions:
2949# SysV /etc/install, /usr/sbin/install
2950# SunOS /usr/etc/install
2951# IRIX /sbin/install
2952# AIX /bin/install
2953# AmigaOS /C/install, which installs bootblocks on floppy discs
2954# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957# OS/2's system install, which has a completely different semantic
2958# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2959# Reject install programs that cannot install multiple files.
2960{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2961$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2962if test -z "$INSTALL"; then
2963if test "${ac_cv_path_install+set}" = set; then
8934764e 2964 $as_echo_n "(cached) " >&6
bf9f3bac 2965else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 # Account for people who put trailing slashes in PATH elements.
2972case $as_dir/ in
2973 ./ | .// | /cC/* | \
2974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2975 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2976 /usr/ucb/* ) ;;
2977 *)
2978 # OSF1 and SCO ODT 3.0 have their own names for install.
2979 # Don't use installbsd from OSF since it installs stuff as root
2980 # by default.
2981 for ac_prog in ginstall scoinst install; do
2982 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2984 if test $ac_prog = install &&
2985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # AIX install. It has an incompatible calling convention.
2987 :
2988 elif test $ac_prog = install &&
2989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # program-specific install script used by HP pwplus--don't use.
2991 :
2992 else
8934764e
BB
2993 rm -rf conftest.one conftest.two conftest.dir
2994 echo one > conftest.one
2995 echo two > conftest.two
2996 mkdir conftest.dir
2997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2998 test -s conftest.one && test -s conftest.two &&
2999 test -s conftest.dir/conftest.one &&
3000 test -s conftest.dir/conftest.two
3001 then
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003 break 3
3004 fi
bf9f3bac 3005 fi
3006 fi
3007 done
3008 done
3009 ;;
3010esac
8934764e 3011
bf9f3bac 3012done
8934764e 3013IFS=$as_save_IFS
bf9f3bac 3014
8934764e 3015rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 3016
3017fi
3018 if test "${ac_cv_path_install+set}" = set; then
3019 INSTALL=$ac_cv_path_install
3020 else
8934764e
BB
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for INSTALL within a source directory, because that will
bf9f3bac 3023 # break other packages using the cache if that directory is
8934764e 3024 # removed, or if the value is a relative name.
bf9f3bac 3025 INSTALL=$ac_install_sh
3026 fi
3027fi
8934764e
BB
3028{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3029$as_echo "$INSTALL" >&6; }
bf9f3bac 3030
3031# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3032# It thinks the first close brace ends the variable substitution.
3033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3034
3035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3036
3037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3038
3039ac_ext=c
3040ac_cpp='$CPP $CPPFLAGS'
3041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3046set dummy ${ac_tool_prefix}gcc; ac_word=$2
8934764e
BB
3047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3049if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3050 $as_echo_n "(cached) " >&6
bf9f3bac 3051else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8934764e 3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3064 break 2
3065 fi
3066done
3067done
8934764e 3068IFS=$as_save_IFS
bf9f3bac 3069
3070fi
3071fi
3072CC=$ac_cv_prog_CC
3073if test -n "$CC"; then
8934764e
BB
3074 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3075$as_echo "$CC" >&6; }
bf9f3bac 3076else
8934764e
BB
3077 { $as_echo "$as_me:$LINENO: result: no" >&5
3078$as_echo "no" >&6; }
bf9f3bac 3079fi
3080
8934764e 3081
bf9f3bac 3082fi
3083if test -z "$ac_cv_prog_CC"; then
3084 ac_ct_CC=$CC
3085 # Extract the first word of "gcc", so it can be a program name with args.
3086set dummy gcc; ac_word=$2
8934764e
BB
3087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3090 $as_echo_n "(cached) " >&6
bf9f3bac 3091else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3102 ac_cv_prog_ac_ct_CC="gcc"
8934764e 3103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3104 break 2
3105 fi
3106done
3107done
8934764e 3108IFS=$as_save_IFS
bf9f3bac 3109
3110fi
3111fi
3112ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113if test -n "$ac_ct_CC"; then
8934764e
BB
3114 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3115$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3116else
8934764e
BB
3117 { $as_echo "$as_me:$LINENO: result: no" >&5
3118$as_echo "no" >&6; }
bf9f3bac 3119fi
3120
8934764e
BB
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125yes:)
3126{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128ac_tool_warned=yes ;;
3129esac
3130 CC=$ac_ct_CC
3131 fi
bf9f3bac 3132else
3133 CC="$ac_cv_prog_CC"
3134fi
3135
3136if test -z "$CC"; then
8934764e
BB
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bf9f3bac 3139set dummy ${ac_tool_prefix}cc; ac_word=$2
8934764e
BB
3140{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3142if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3143 $as_echo_n "(cached) " >&6
bf9f3bac 3144else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3155 ac_cv_prog_CC="${ac_tool_prefix}cc"
8934764e 3156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3157 break 2
3158 fi
3159done
3160done
8934764e 3161IFS=$as_save_IFS
bf9f3bac 3162
3163fi
3164fi
3165CC=$ac_cv_prog_CC
3166if test -n "$CC"; then
8934764e
BB
3167 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3168$as_echo "$CC" >&6; }
bf9f3bac 3169else
8934764e
BB
3170 { $as_echo "$as_me:$LINENO: result: no" >&5
3171$as_echo "no" >&6; }
bf9f3bac 3172fi
3173
bf9f3bac 3174
8934764e 3175 fi
bf9f3bac 3176fi
3177if test -z "$CC"; then
3178 # Extract the first word of "cc", so it can be a program name with args.
3179set dummy cc; ac_word=$2
8934764e
BB
3180{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3182if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3183 $as_echo_n "(cached) " >&6
bf9f3bac 3184else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187else
3188 ac_prog_rejected=no
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3197 ac_prog_rejected=yes
3198 continue
3199 fi
3200 ac_cv_prog_CC="cc"
8934764e 3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3202 break 2
3203 fi
3204done
3205done
8934764e 3206IFS=$as_save_IFS
bf9f3bac 3207
3208if test $ac_prog_rejected = yes; then
3209 # We found a bogon in the path, so make sure we never use it.
3210 set dummy $ac_cv_prog_CC
3211 shift
3212 if test $# != 0; then
3213 # We chose a different compiler from the bogus one.
3214 # However, it has the same basename, so the bogon will be chosen
3215 # first if we set CC to just the basename; use the full file name.
3216 shift
3217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3218 fi
3219fi
3220fi
3221fi
3222CC=$ac_cv_prog_CC
3223if test -n "$CC"; then
8934764e
BB
3224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3225$as_echo "$CC" >&6; }
bf9f3bac 3226else
8934764e
BB
3227 { $as_echo "$as_me:$LINENO: result: no" >&5
3228$as_echo "no" >&6; }
bf9f3bac 3229fi
3230
8934764e 3231
bf9f3bac 3232fi
3233if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
8934764e 3235 for ac_prog in cl.exe
bf9f3bac 3236 do
3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3238set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8934764e
BB
3239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3241if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3242 $as_echo_n "(cached) " >&6
bf9f3bac 3243else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8934764e 3255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3256 break 2
3257 fi
3258done
3259done
8934764e 3260IFS=$as_save_IFS
bf9f3bac 3261
3262fi
3263fi
3264CC=$ac_cv_prog_CC
3265if test -n "$CC"; then
8934764e
BB
3266 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3267$as_echo "$CC" >&6; }
bf9f3bac 3268else
8934764e
BB
3269 { $as_echo "$as_me:$LINENO: result: no" >&5
3270$as_echo "no" >&6; }
bf9f3bac 3271fi
3272
8934764e 3273
bf9f3bac 3274 test -n "$CC" && break
3275 done
3276fi
3277if test -z "$CC"; then
3278 ac_ct_CC=$CC
8934764e 3279 for ac_prog in cl.exe
bf9f3bac 3280do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282set dummy $ac_prog; ac_word=$2
8934764e
BB
3283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3285if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3286 $as_echo_n "(cached) " >&6
bf9f3bac 3287else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3298 ac_cv_prog_ac_ct_CC="$ac_prog"
8934764e 3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3300 break 2
3301 fi
3302done
3303done
8934764e 3304IFS=$as_save_IFS
bf9f3bac 3305
3306fi
3307fi
3308ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309if test -n "$ac_ct_CC"; then
8934764e
BB
3310 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3311$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3312else
8934764e
BB
3313 { $as_echo "$as_me:$LINENO: result: no" >&5
3314$as_echo "no" >&6; }
bf9f3bac 3315fi
3316
8934764e 3317
bf9f3bac 3318 test -n "$ac_ct_CC" && break
3319done
3320
8934764e
BB
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325yes:)
3326{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328ac_tool_warned=yes ;;
3329esac
3330 CC=$ac_ct_CC
3331 fi
bf9f3bac 3332fi
3333
3334fi
3335
3336
8934764e
BB
3337test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bf9f3bac 3340See \`config.log' for more details." >&5
8934764e 3341$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
bf9f3bac 3342See \`config.log' for more details." >&2;}
8934764e 3343 { (exit 1); exit 1; }; }; }
bf9f3bac 3344
3345# Provide some information about the compiler.
8934764e
BB
3346$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3347set X $ac_compile
3348ac_compiler=$2
3349{ (ac_try="$ac_compiler --version >&5"
3350case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3355$as_echo "$ac_try_echo") >&5
3356 (eval "$ac_compiler --version >&5") 2>&5
bf9f3bac 3357 ac_status=$?
8934764e 3358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3359 (exit $ac_status); }
8934764e
BB
3360{ (ac_try="$ac_compiler -v >&5"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366$as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compiler -v >&5") 2>&5
bf9f3bac 3368 ac_status=$?
8934764e 3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3370 (exit $ac_status); }
8934764e
BB
3371{ (ac_try="$ac_compiler -V >&5"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3377$as_echo "$ac_try_echo") >&5
3378 (eval "$ac_compiler -V >&5") 2>&5
bf9f3bac 3379 ac_status=$?
8934764e 3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3381 (exit $ac_status); }
3382
3383cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h. */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h. */
3389
3390int
3391main ()
3392{
3393
3394 ;
3395 return 0;
3396}
3397_ACEOF
3398ac_clean_files_save=$ac_clean_files
8934764e 3399ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
bf9f3bac 3400# Try to create an executable without -o first, disregard a.out.
3401# It will help us diagnose broken compilers, and finding out an intuition
3402# of exeext.
8934764e
BB
3403{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3404$as_echo_n "checking for C compiler default output file name... " >&6; }
3405ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3406
3407# The possible output files:
3408ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3409
3410ac_rmfiles=
3411for ac_file in $ac_files
3412do
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3416 esac
3417done
3418rm -f $ac_rmfiles
3419
3420if { (ac_try="$ac_link_default"
3421case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3426$as_echo "$ac_try_echo") >&5
3427 (eval "$ac_link_default") 2>&5
bf9f3bac 3428 ac_status=$?
8934764e 3429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3430 (exit $ac_status); }; then
8934764e
BB
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433# in a Makefile. We should not override ac_cv_exeext if it was cached,
3434# so that the user can short-circuit this test for compilers unknown to
3435# Autoconf.
3436for ac_file in $ac_files ''
bf9f3bac 3437do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
8934764e 3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bf9f3bac 3441 ;;
3442 [ab].out )
3443 # We found the default executable, but exeext='' is most
3444 # certainly right.
3445 break;;
3446 *.* )
8934764e
BB
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3448 then :; else
3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 fi
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3455 # actually working.
bf9f3bac 3456 break;;
3457 * )
3458 break;;
3459 esac
3460done
8934764e
BB
3461test "$ac_cv_exeext" = no && ac_cv_exeext=
3462
bf9f3bac 3463else
8934764e
BB
3464 ac_file=''
3465fi
3466
3467{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3468$as_echo "$ac_file" >&6; }
3469if test -z "$ac_file"; then
3470 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3471sed 's/^/| /' conftest.$ac_ext >&5
3472
8934764e
BB
3473{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
bf9f3bac 3476See \`config.log' for more details." >&5
8934764e 3477$as_echo "$as_me: error: C compiler cannot create executables
bf9f3bac 3478See \`config.log' for more details." >&2;}
8934764e 3479 { (exit 77); exit 77; }; }; }
bf9f3bac 3480fi
3481
3482ac_exeext=$ac_cv_exeext
bf9f3bac 3483
8934764e 3484# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3485# the compiler is broken, or we cross compile.
8934764e
BB
3486{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3487$as_echo_n "checking whether the C compiler works... " >&6; }
bf9f3bac 3488# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3489# If not cross compiling, check that we can run a simple program.
3490if test "$cross_compiling" != yes; then
3491 if { ac_try='./$ac_file'
8934764e
BB
3492 { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495esac
3496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497$as_echo "$ac_try_echo") >&5
3498 (eval "$ac_try") 2>&5
bf9f3bac 3499 ac_status=$?
8934764e 3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3501 (exit $ac_status); }; }; then
3502 cross_compiling=no
3503 else
3504 if test "$cross_compiling" = maybe; then
3505 cross_compiling=yes
3506 else
8934764e
BB
3507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
bf9f3bac 3510If you meant to cross compile, use \`--host'.
3511See \`config.log' for more details." >&5
8934764e 3512$as_echo "$as_me: error: cannot run C compiled programs.
bf9f3bac 3513If you meant to cross compile, use \`--host'.
3514See \`config.log' for more details." >&2;}
8934764e 3515 { (exit 1); exit 1; }; }; }
bf9f3bac 3516 fi
3517 fi
3518fi
8934764e
BB
3519{ $as_echo "$as_me:$LINENO: result: yes" >&5
3520$as_echo "yes" >&6; }
bf9f3bac 3521
8934764e 3522rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
bf9f3bac 3523ac_clean_files=$ac_clean_files_save
8934764e 3524# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3525# the compiler is broken, or we cross compile.
8934764e
BB
3526{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3527$as_echo_n "checking whether we are cross compiling... " >&6; }
3528{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3529$as_echo "$cross_compiling" >&6; }
3530
3531{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3532$as_echo_n "checking for suffix of executables... " >&6; }
3533if { (ac_try="$ac_link"
3534case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3539$as_echo "$ac_try_echo") >&5
3540 (eval "$ac_link") 2>&5
bf9f3bac 3541 ac_status=$?
8934764e 3542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3543 (exit $ac_status); }; then
3544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3545# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3546# work properly (i.e., refer to `conftest.exe'), while it won't with
3547# `rm'.
3548for ac_file in conftest.exe conftest conftest.*; do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
8934764e 3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bf9f3bac 3552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bf9f3bac 3553 break;;
3554 * ) break;;
3555 esac
3556done
3557else
8934764e
BB
3558 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3561See \`config.log' for more details." >&5
8934764e 3562$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3563See \`config.log' for more details." >&2;}
8934764e 3564 { (exit 1); exit 1; }; }; }
bf9f3bac 3565fi
3566
3567rm -f conftest$ac_cv_exeext
8934764e
BB
3568{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3569$as_echo "$ac_cv_exeext" >&6; }
bf9f3bac 3570
3571rm -f conftest.$ac_ext
3572EXEEXT=$ac_cv_exeext
3573ac_exeext=$EXEEXT
8934764e
BB
3574{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3575$as_echo_n "checking for suffix of object files... " >&6; }
bf9f3bac 3576if test "${ac_cv_objext+set}" = set; then
8934764e 3577 $as_echo_n "(cached) " >&6
bf9f3bac 3578else
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585
3586int
3587main ()
3588{
3589
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.o conftest.obj
8934764e
BB
3595if { (ac_try="$ac_compile"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601$as_echo "$ac_try_echo") >&5
3602 (eval "$ac_compile") 2>&5
bf9f3bac 3603 ac_status=$?
8934764e 3604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3605 (exit $ac_status); }; then
8934764e
BB
3606 for ac_file in conftest.o conftest.obj conftest.*; do
3607 test -f "$ac_file" || continue;
bf9f3bac 3608 case $ac_file in
8934764e 3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bf9f3bac 3610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3611 break;;
3612 esac
3613done
3614else
8934764e 3615 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3616sed 's/^/| /' conftest.$ac_ext >&5
3617
8934764e
BB
3618{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3621See \`config.log' for more details." >&5
8934764e 3622$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3623See \`config.log' for more details." >&2;}
8934764e 3624 { (exit 1); exit 1; }; }; }
bf9f3bac 3625fi
3626
3627rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628fi
8934764e
BB
3629{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3630$as_echo "$ac_cv_objext" >&6; }
bf9f3bac 3631OBJEXT=$ac_cv_objext
3632ac_objext=$OBJEXT
8934764e
BB
3633{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3634$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
bf9f3bac 3635if test "${ac_cv_c_compiler_gnu+set}" = set; then
8934764e 3636 $as_echo_n "(cached) " >&6
bf9f3bac 3637else
3638 cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
3644
3645int
3646main ()
3647{
3648#ifndef __GNUC__
3649 choke me
3650#endif
3651
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext
8934764e
BB
3657if { (ac_try="$ac_compile"
3658case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663$as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
3668 cat conftest.err >&5
8934764e
BB
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && {
3671 test -z "$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 } && test -s conftest.$ac_objext; then
bf9f3bac 3674 ac_compiler_gnu=yes
3675else
8934764e 3676 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3677sed 's/^/| /' conftest.$ac_ext >&5
3678
8934764e 3679 ac_compiler_gnu=no
bf9f3bac 3680fi
8934764e
BB
3681
3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3683ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684
3685fi
8934764e
BB
3686{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3687$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688if test $ac_compiler_gnu = yes; then
3689 GCC=yes
3690else
3691 GCC=
3692fi
bf9f3bac 3693ac_test_CFLAGS=${CFLAGS+set}
3694ac_save_CFLAGS=$CFLAGS
8934764e
BB
3695{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3696$as_echo_n "checking whether $CC accepts -g... " >&6; }
bf9f3bac 3697if test "${ac_cv_prog_cc_g+set}" = set; then
8934764e 3698 $as_echo_n "(cached) " >&6
bf9f3bac 3699else
8934764e
BB
3700 ac_save_c_werror_flag=$ac_c_werror_flag
3701 ac_c_werror_flag=yes
3702 ac_cv_prog_cc_g=no
3703 CFLAGS="-g"
3704 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 3705/* confdefs.h. */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */
3710
3711int
3712main ()
3713{
3714
3715 ;
3716 return 0;
3717}
3718_ACEOF
3719rm -f conftest.$ac_objext
8934764e
BB
3720if { (ac_try="$ac_compile"
3721case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724esac
3725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3726$as_echo "$ac_try_echo") >&5
3727 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
8934764e
BB
3732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } && {
3734 test -z "$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3736 } && test -s conftest.$ac_objext; then
3737 ac_cv_prog_cc_g=yes
3738else
3739 $as_echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 CFLAGS=""
3743 cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
3749
3750int
3751main ()
3752{
3753
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758rm -f conftest.$ac_objext
3759if { (ac_try="$ac_compile"
3760case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763esac
3764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3765$as_echo "$ac_try_echo") >&5
3766 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3767 ac_status=$?
8934764e
BB
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest.$ac_objext; then
3776 :
3777else
3778 $as_echo "$as_me: failed program was:" >&5
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 ac_c_werror_flag=$ac_save_c_werror_flag
3782 CFLAGS="-g"
3783 cat >conftest.$ac_ext <<_ACEOF
3784/* confdefs.h. */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
3798rm -f conftest.$ac_objext
3799if { (ac_try="$ac_compile"
3800case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803esac
3804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3805$as_echo "$ac_try_echo") >&5
3806 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3807 ac_status=$?
8934764e
BB
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
bf9f3bac 3816 ac_cv_prog_cc_g=yes
3817else
8934764e 3818 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3819sed 's/^/| /' conftest.$ac_ext >&5
3820
8934764e
BB
3821
3822fi
3823
3824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825fi
3826
3827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3828fi
8934764e
BB
3829
3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_c_werror_flag=$ac_save_c_werror_flag
bf9f3bac 3832fi
8934764e
BB
3833{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3834$as_echo "$ac_cv_prog_cc_g" >&6; }
bf9f3bac 3835if test "$ac_test_CFLAGS" = set; then
3836 CFLAGS=$ac_save_CFLAGS
3837elif test $ac_cv_prog_cc_g = yes; then
3838 if test "$GCC" = yes; then
3839 CFLAGS="-g -O2"
3840 else
3841 CFLAGS="-g"
3842 fi
3843else
3844 if test "$GCC" = yes; then
3845 CFLAGS="-O2"
3846 else
3847 CFLAGS=
3848 fi
3849fi
8934764e
BB
3850{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3851$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3852if test "${ac_cv_prog_cc_c89+set}" = set; then
3853 $as_echo_n "(cached) " >&6
bf9f3bac 3854else
8934764e 3855 ac_cv_prog_cc_c89=no
bf9f3bac 3856ac_save_CC=$CC
3857cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h. */
3863#include <stdarg.h>
3864#include <stdio.h>
3865#include <sys/types.h>
3866#include <sys/stat.h>
3867/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868struct buf { int x; };
3869FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870static char *e (p, i)
3871 char **p;
3872 int i;
3873{
3874 return p[i];
3875}
3876static char *f (char * (*g) (char **, int), char **p, ...)
3877{
3878 char *s;
3879 va_list v;
3880 va_start (v,p);
3881 s = g (p, va_arg (v,int));
3882 va_end (v);
3883 return s;
3884}
3885
3886/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
8934764e 3889 as 'x'. The following induces an error, until -std is added to get
bf9f3bac 3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
8934764e 3892 that's true only with -std. */
bf9f3bac 3893int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894
8934764e
BB
3895/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3897#define FOO(x) 'x'
3898int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899
bf9f3bac 3900int test (int i, double x);
3901struct s1 {int (*f) (int a);};
3902struct s2 {int (*f) (double a);};
3903int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904int argc;
3905char **argv;
3906int
3907main ()
3908{
3909return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3910 ;
3911 return 0;
3912}
3913_ACEOF
8934764e
BB
3914for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bf9f3bac 3916do
3917 CC="$ac_save_CC $ac_arg"
3918 rm -f conftest.$ac_objext
8934764e
BB
3919if { (ac_try="$ac_compile"
3920case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3925$as_echo "$ac_try_echo") >&5
3926 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
8934764e
BB
3931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 ac_cv_prog_cc_c89=$ac_arg
3937else
3938 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3939sed 's/^/| /' conftest.$ac_ext >&5
3940
8934764e 3941
bf9f3bac 3942fi
8934764e
BB
3943
3944rm -f core conftest.err conftest.$ac_objext
3945 test "x$ac_cv_prog_cc_c89" != "xno" && break
bf9f3bac 3946done
8934764e 3947rm -f conftest.$ac_ext
bf9f3bac 3948CC=$ac_save_CC
3949
3950fi
8934764e
BB
3951# AC_CACHE_VAL
3952case "x$ac_cv_prog_cc_c89" in
3953 x)
3954 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3955$as_echo "none needed" >&6; } ;;
3956 xno)
3957 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3958$as_echo "unsupported" >&6; } ;;
bf9f3bac 3959 *)
8934764e
BB
3960 CC="$CC $ac_cv_prog_cc_c89"
3961 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3962$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bf9f3bac 3963esac
3964
bf9f3bac 3965
bf9f3bac 3966ac_ext=c
3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971DEPDIR="${am__leading_dot}deps"
3972
8934764e 3973ac_config_commands="$ac_config_commands depfiles"
bf9f3bac 3974
3975
3976am_make=${MAKE-make}
3977cat > confinc << 'END'
3978am__doit:
8934764e 3979 @echo this is the am__doit target
bf9f3bac 3980.PHONY: am__doit
3981END
3982# If we don't find an include directive, just comment out the code.
8934764e
BB
3983{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3984$as_echo_n "checking for style of include used by $am_make... " >&6; }
bf9f3bac 3985am__include="#"
3986am__quote=
3987_am_result=none
3988# First try GNU make style include.
3989echo "include confinc" > confmf
8934764e
BB
3990# Ignore all kinds of additional output from `make'.
3991case `$am_make -s -f confmf 2> /dev/null` in #(
3992*the\ am__doit\ target*)
3993 am__include=include
3994 am__quote=
3995 _am_result=GNU
3996 ;;
3997esac
bf9f3bac 3998# Now try BSD make style include.
3999if test "$am__include" = "#"; then
4000 echo '.include "confinc"' > confmf
8934764e
BB
4001 case `$am_make -s -f confmf 2> /dev/null` in #(
4002 *the\ am__doit\ target*)
4003 am__include=.include
4004 am__quote="\""
4005 _am_result=BSD
4006 ;;
4007 esac
bf9f3bac 4008fi
4009
4010
8934764e
BB
4011{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4012$as_echo "$_am_result" >&6; }
bf9f3bac 4013rm -f confinc confmf
4014
8934764e 4015# Check whether --enable-dependency-tracking was given.
bf9f3bac 4016if test "${enable_dependency_tracking+set}" = set; then
8934764e
BB
4017 enableval=$enable_dependency_tracking;
4018fi
bf9f3bac 4019
bf9f3bac 4020if test "x$enable_dependency_tracking" != xno; then
4021 am_depcomp="$ac_aux_dir/depcomp"
4022 AMDEPBACKSLASH='\'
4023fi
8934764e 4024 if test "x$enable_dependency_tracking" != xno; then
bf9f3bac 4025 AMDEP_TRUE=
4026 AMDEP_FALSE='#'
4027else
4028 AMDEP_TRUE='#'
4029 AMDEP_FALSE=
4030fi
4031
4032
4033
bf9f3bac 4034depcc="$CC" am_compiler_list=
4035
8934764e
BB
4036{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4037$as_echo_n "checking dependency style of $depcc... " >&6; }
bf9f3bac 4038if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8934764e 4039 $as_echo_n "(cached) " >&6
bf9f3bac 4040else
4041 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4042 # We make a subdir and do the tests there. Otherwise we can end up
4043 # making bogus files that we don't know about and never remove. For
4044 # instance it was reported that on HP-UX the gcc test will end up
4045 # making a dummy file named `D' -- because `-MD' means `put the output
4046 # in D'.
4047 mkdir conftest.dir
4048 # Copy depcomp to subdir because otherwise we won't find it if we're
4049 # using a relative directory.
4050 cp "$am_depcomp" conftest.dir
4051 cd conftest.dir
4052 # We will build objects and dependencies in a subdirectory because
4053 # it helps to detect inapplicable dependency modes. For instance
4054 # both Tru64's cc and ICC support -MD to output dependencies as a
4055 # side effect of compilation, but ICC will put the dependencies in
4056 # the current directory while Tru64 will put them in the object
4057 # directory.
4058 mkdir sub
4059
4060 am_cv_CC_dependencies_compiler_type=none
4061 if test "$am_compiler_list" = ""; then
4062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4063 fi
8934764e
BB
4064 am__universal=false
4065 case " $depcc " in #(
4066 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4067 esac
4068
bf9f3bac 4069 for depmode in $am_compiler_list; do
4070 # Setup a source with many dependencies, because some compilers
4071 # like to wrap large dependency lists on column 80 (with \), and
4072 # we should not choose a depcomp mode which is confused by this.
4073 #
4074 # We need to recreate these files for each test, as the compiler may
4075 # overwrite some of them when testing with obscure command lines.
4076 # This happens at least with the AIX C compiler.
4077 : > sub/conftest.c
4078 for i in 1 2 3 4 5 6; do
4079 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4080 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4081 # Solaris 8's {/usr,}/bin/sh.
4082 touch sub/conftst$i.h
4083 done
4084 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4085
8934764e
BB
4086 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4087 # mode. It turns out that the SunPro C++ compiler does not properly
4088 # handle `-M -o', and we need to detect this. Also, some Intel
4089 # versions had trouble with output in subdirs
4090 am__obj=sub/conftest.${OBJEXT-o}
4091 am__minus_obj="-o $am__obj"
bf9f3bac 4092 case $depmode in
8934764e
BB
4093 gcc)
4094 # This depmode causes a compiler race in universal mode.
4095 test "$am__universal" = false || continue
4096 ;;
bf9f3bac 4097 nosideeffect)
4098 # after this tag, mechanisms are not by side-effect, so they'll
4099 # only be used when explicitly requested
4100 if test "x$enable_dependency_tracking" = xyes; then
4101 continue
4102 else
4103 break
4104 fi
4105 ;;
8934764e
BB
4106 msvisualcpp | msvcmsys)
4107 # This compiler won't grok `-c -o', but also, the minuso test has
4108 # not run yet. These depmodes are late enough in the game, and
4109 # so weak that their functioning should not be impacted.
4110 am__obj=conftest.${OBJEXT-o}
4111 am__minus_obj=
4112 ;;
bf9f3bac 4113 none) break ;;
4114 esac
bf9f3bac 4115 if depmode=$depmode \
8934764e 4116 source=sub/conftest.c object=$am__obj \
bf9f3bac 4117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8934764e 4118 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9f3bac 4119 >/dev/null 2>conftest.err &&
8934764e 4120 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4121 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8934764e 4122 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4123 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4124 # icc doesn't choke on unknown options, it will just issue warnings
4125 # or remarks (even with -Werror). So we grep stderr for any message
4126 # that says an option was ignored or not supported.
4127 # When given -MP, icc 7.0 and 7.1 complain thusly:
4128 # icc: Command line warning: ignoring option '-M'; no argument required
4129 # The diagnosis changed in icc 8.0:
4130 # icc: Command line remark: option '-MP' not supported
4131 if (grep 'ignoring option' conftest.err ||
4132 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4133 am_cv_CC_dependencies_compiler_type=$depmode
4134 break
4135 fi
4136 fi
4137 done
4138
4139 cd ..
4140 rm -rf conftest.dir
4141else
4142 am_cv_CC_dependencies_compiler_type=none
4143fi
4144
4145fi
8934764e
BB
4146{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4147$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
bf9f3bac 4148CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4149
8934764e 4150 if
bf9f3bac 4151 test "x$enable_dependency_tracking" != xno \
4152 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4153 am__fastdepCC_TRUE=
4154 am__fastdepCC_FALSE='#'
4155else
4156 am__fastdepCC_TRUE='#'
4157 am__fastdepCC_FALSE=
4158fi
4159
4160
8934764e
BB
4161case `pwd` in
4162 *\ * | *\ *)
4163 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4164$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4165esac
bf9f3bac 4166
bf9f3bac 4167
bf9f3bac 4168
8934764e
BB
4169macro_version='2.2.6'
4170macro_revision='1.3012'
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184ltmain="$ac_aux_dir/ltmain.sh"
4185
4186{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4187$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4188if test "${ac_cv_path_SED+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4190else
4191 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4192 for ac_i in 1 2 3 4 5 6 7; do
4193 ac_script="$ac_script$as_nl$ac_script"
4194 done
4195 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4196 $as_unset ac_script || ac_script=
4197 if test -z "$SED"; then
4198 ac_path_SED_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
bf9f3bac 4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
8934764e 4205 for ac_prog in sed gsed; do
bf9f3bac 4206 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
4207 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4208 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4209# Check for GNU ac_path_SED and select it if it is found.
4210 # Check for GNU $ac_path_SED
4211case `"$ac_path_SED" --version 2>&1` in
4212*GNU*)
4213 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4214*)
4215 ac_count=0
4216 $as_echo_n 0123456789 >"conftest.in"
4217 while :
4218 do
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo '' >> "conftest.nl"
4223 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 ac_count=`expr $ac_count + 1`
4226 if test $ac_count -gt ${ac_path_SED_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_SED="$ac_path_SED"
4229 ac_path_SED_max=$ac_count
4230 fi
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4233 done
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235esac
4236
4237 $ac_path_SED_found && break 3
bf9f3bac 4238 done
4239 done
4240done
4241IFS=$as_save_IFS
8934764e
BB
4242 if test -z "$ac_cv_path_SED"; then
4243 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4244$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4245 { (exit 1); exit 1; }; }
bf9f3bac 4246 fi
8934764e
BB
4247else
4248 ac_cv_path_SED=$SED
4249fi
bf9f3bac 4250
4251fi
8934764e
BB
4252{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4253$as_echo "$ac_cv_path_SED" >&6; }
4254 SED="$ac_cv_path_SED"
4255 rm -f conftest.sed
4256
4257test -z "$SED" && SED=sed
4258Xsed="$SED -e 1s/^X//"
4259
4260
bf9f3bac 4261
bf9f3bac 4262
bf9f3bac 4263
8934764e
BB
4264
4265
4266
4267
4268
4269
4270{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4271$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272if test "${ac_cv_path_GREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
bf9f3bac 4274else
8934764e
BB
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in grep ggrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4287# Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289case `"$ac_path_GREP" --version 2>&1` in
4290*GNU*)
4291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4292*)
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 ac_count=`expr $ac_count + 1`
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP="$ac_path_GREP"
4307 ac_path_GREP_max=$ac_count
bf9f3bac 4308 fi
8934764e
BB
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313esac
4314
4315 $ac_path_GREP_found && break 3
4316 done
4317 done
4318done
4319IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_GREP"; then
4321 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4322$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4323 { (exit 1); exit 1; }; }
4324 fi
4325else
4326 ac_cv_path_GREP=$GREP
bf9f3bac 4327fi
bf9f3bac 4328
8934764e
BB
4329fi
4330{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4331$as_echo "$ac_cv_path_GREP" >&6; }
4332 GREP="$ac_cv_path_GREP"
bf9f3bac 4333
4334
8934764e
BB
4335{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4336$as_echo_n "checking for egrep... " >&6; }
4337if test "${ac_cv_path_EGREP+set}" = set; then
4338 $as_echo_n "(cached) " >&6
bf9f3bac 4339else
8934764e
BB
4340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4341 then ac_cv_path_EGREP="$GREP -E"
4342 else
4343 if test -z "$EGREP"; then
4344 ac_path_EGREP_found=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_prog in egrep; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4355# Check for GNU ac_path_EGREP and select it if it is found.
4356 # Check for GNU $ac_path_EGREP
4357case `"$ac_path_EGREP" --version 2>&1` in
4358*GNU*)
4359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4360*)
4361 ac_count=0
4362 $as_echo_n 0123456789 >"conftest.in"
4363 while :
4364 do
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'EGREP' >> "conftest.nl"
4369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371 ac_count=`expr $ac_count + 1`
4372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_EGREP="$ac_path_EGREP"
4375 ac_path_EGREP_max=$ac_count
4376 fi
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4379 done
4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381esac
4382
4383 $ac_path_EGREP_found && break 3
4384 done
4385 done
4386done
4387IFS=$as_save_IFS
4388 if test -z "$ac_cv_path_EGREP"; then
4389 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4390$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4391 { (exit 1); exit 1; }; }
4392 fi
bf9f3bac 4393else
8934764e
BB
4394 ac_cv_path_EGREP=$EGREP
4395fi
4396
4397 fi
4398fi
4399{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4400$as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP="$ac_cv_path_EGREP"
4402
4403
4404{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4405$as_echo_n "checking for fgrep... " >&6; }
4406if test "${ac_cv_path_FGREP+set}" = set; then
4407 $as_echo_n "(cached) " >&6
4408else
4409 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4410 then ac_cv_path_FGREP="$GREP -F"
4411 else
4412 if test -z "$FGREP"; then
4413 ac_path_FGREP_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_prog in fgrep; do
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4423 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4424# Check for GNU ac_path_FGREP and select it if it is found.
4425 # Check for GNU $ac_path_FGREP
4426case `"$ac_path_FGREP" --version 2>&1` in
4427*GNU*)
4428 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4429*)
4430 ac_count=0
4431 $as_echo_n 0123456789 >"conftest.in"
4432 while :
4433 do
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo 'FGREP' >> "conftest.nl"
4438 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 ac_count=`expr $ac_count + 1`
4441 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_FGREP="$ac_path_FGREP"
4444 ac_path_FGREP_max=$ac_count
4445 fi
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4448 done
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450esac
4451
4452 $ac_path_FGREP_found && break 3
4453 done
4454 done
4455done
4456IFS=$as_save_IFS
4457 if test -z "$ac_cv_path_FGREP"; then
4458 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4459$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4460 { (exit 1); exit 1; }; }
4461 fi
4462else
4463 ac_cv_path_FGREP=$FGREP
4464fi
4465
4466 fi
4467fi
4468{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4469$as_echo "$ac_cv_path_FGREP" >&6; }
4470 FGREP="$ac_cv_path_FGREP"
4471
4472
4473test -z "$GREP" && GREP=grep
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493# Check whether --with-gnu-ld was given.
4494if test "${with_gnu_ld+set}" = set; then
4495 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4496else
4497 with_gnu_ld=no
4498fi
4499
4500ac_prog=ld
4501if test "$GCC" = yes; then
4502 # Check if gcc -print-prog-name=ld gives a path.
4503 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4504$as_echo_n "checking for ld used by $CC... " >&6; }
4505 case $host in
4506 *-*-mingw*)
4507 # gcc leaves a trailing carriage return which upsets mingw
4508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4509 *)
4510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4511 esac
4512 case $ac_prog in
4513 # Accept absolute paths.
4514 [\\/]* | ?:[\\/]*)
4515 re_direlt='/[^/][^/]*/\.\./'
4516 # Canonicalize the pathname of ld
4517 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4518 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4519 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4520 done
4521 test -z "$LD" && LD="$ac_prog"
4522 ;;
4523 "")
4524 # If it fails, then pretend we aren't using GCC.
4525 ac_prog=ld
4526 ;;
4527 *)
4528 # If it is relative, then search for the first ld in PATH.
4529 with_gnu_ld=unknown
4530 ;;
4531 esac
4532elif test "$with_gnu_ld" = yes; then
4533 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4534$as_echo_n "checking for GNU ld... " >&6; }
4535else
4536 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4537$as_echo_n "checking for non-GNU ld... " >&6; }
bf9f3bac 4538fi
4539if test "${lt_cv_path_LD+set}" = set; then
8934764e 4540 $as_echo_n "(cached) " >&6
bf9f3bac 4541else
4542 if test -z "$LD"; then
4543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4544 for ac_dir in $PATH; do
4545 IFS="$lt_save_ifs"
4546 test -z "$ac_dir" && ac_dir=.
4547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4548 lt_cv_path_LD="$ac_dir/$ac_prog"
4549 # Check to see if the program is GNU ld. I'd rather use --version,
4550 # but apparently some variants of GNU ld only accept -v.
4551 # Break only if it was the GNU/non-GNU ld that we prefer.
4552 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4553 *GNU* | *'with BFD'*)
4554 test "$with_gnu_ld" != no && break
4555 ;;
4556 *)
4557 test "$with_gnu_ld" != yes && break
4558 ;;
4559 esac
4560 fi
4561 done
4562 IFS="$lt_save_ifs"
4563else
4564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4565fi
4566fi
4567
4568LD="$lt_cv_path_LD"
4569if test -n "$LD"; then
8934764e
BB
4570 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4571$as_echo "$LD" >&6; }
bf9f3bac 4572else
8934764e
BB
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574$as_echo "no" >&6; }
bf9f3bac 4575fi
8934764e
BB
4576test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4577$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
bf9f3bac 4578 { (exit 1); exit 1; }; }
8934764e
BB
4579{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4580$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
bf9f3bac 4581if test "${lt_cv_prog_gnu_ld+set}" = set; then
8934764e 4582 $as_echo_n "(cached) " >&6
bf9f3bac 4583else
4584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4585case `$LD -v 2>&1 </dev/null` in
4586*GNU* | *'with BFD'*)
4587 lt_cv_prog_gnu_ld=yes
4588 ;;
4589*)
4590 lt_cv_prog_gnu_ld=no
4591 ;;
4592esac
4593fi
8934764e
BB
4594{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4595$as_echo "$lt_cv_prog_gnu_ld" >&6; }
bf9f3bac 4596with_gnu_ld=$lt_cv_prog_gnu_ld
4597
4598
bf9f3bac 4599
8934764e
BB
4600
4601
4602
4603
4604
4605
4606{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4607$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
bf9f3bac 4608if test "${lt_cv_path_NM+set}" = set; then
8934764e 4609 $as_echo_n "(cached) " >&6
bf9f3bac 4610else
4611 if test -n "$NM"; then
4612 # Let the user override the test.
4613 lt_cv_path_NM="$NM"
4614else
4615 lt_nm_to_check="${ac_tool_prefix}nm"
4616 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4617 lt_nm_to_check="$lt_nm_to_check nm"
4618 fi
4619 for lt_tmp_nm in $lt_nm_to_check; do
4620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4621 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4622 IFS="$lt_save_ifs"
4623 test -z "$ac_dir" && ac_dir=.
4624 tmp_nm="$ac_dir/$lt_tmp_nm"
4625 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4626 # Check to see if the nm accepts a BSD-compat flag.
4627 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4628 # nm: unknown option "B" ignored
4629 # Tru64's nm complains that /dev/null is an invalid object file
4630 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4631 */dev/null* | *'Invalid file or object type'*)
4632 lt_cv_path_NM="$tmp_nm -B"
4633 break
4634 ;;
4635 *)
4636 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4637 */dev/null*)
4638 lt_cv_path_NM="$tmp_nm -p"
4639 break
4640 ;;
4641 *)
4642 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4643 continue # so that we can try to find one that supports BSD flags
4644 ;;
4645 esac
4646 ;;
4647 esac
4648 fi
4649 done
4650 IFS="$lt_save_ifs"
4651 done
8934764e 4652 : ${lt_cv_path_NM=no}
bf9f3bac 4653fi
4654fi
8934764e
BB
4655{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4656$as_echo "$lt_cv_path_NM" >&6; }
4657if test "$lt_cv_path_NM" != "no"; then
4658 NM="$lt_cv_path_NM"
4659else
4660 # Didn't find any BSD compatible name lister, look for dumpbin.
4661 if test -n "$ac_tool_prefix"; then
4662 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4663 do
4664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667$as_echo_n "checking for $ac_word... " >&6; }
4668if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4669 $as_echo_n "(cached) " >&6
4670else
4671 if test -n "$DUMPBIN"; then
4672 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4673else
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685done
4686done
4687IFS=$as_save_IFS
bf9f3bac 4688
8934764e
BB
4689fi
4690fi
4691DUMPBIN=$ac_cv_prog_DUMPBIN
4692if test -n "$DUMPBIN"; then
4693 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4694$as_echo "$DUMPBIN" >&6; }
bf9f3bac 4695else
8934764e
BB
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697$as_echo "no" >&6; }
bf9f3bac 4698fi
4699
bf9f3bac 4700
8934764e
BB
4701 test -n "$DUMPBIN" && break
4702 done
4703fi
4704if test -z "$DUMPBIN"; then
4705 ac_ct_DUMPBIN=$DUMPBIN
4706 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4707do
4708 # Extract the first word of "$ac_prog", so it can be a program name with args.
4709set dummy $ac_prog; ac_word=$2
4710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711$as_echo_n "checking for $ac_word... " >&6; }
4712if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4714else
4715 if test -n "$ac_ct_DUMPBIN"; then
4716 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729done
4730done
4731IFS=$as_save_IFS
bf9f3bac 4732
8934764e
BB
4733fi
4734fi
4735ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4736if test -n "$ac_ct_DUMPBIN"; then
4737 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4738$as_echo "$ac_ct_DUMPBIN" >&6; }
4739else
4740 { $as_echo "$as_me:$LINENO: result: no" >&5
4741$as_echo "no" >&6; }
4742fi
bf9f3bac 4743
bf9f3bac 4744
8934764e
BB
4745 test -n "$ac_ct_DUMPBIN" && break
4746done
bf9f3bac 4747
8934764e
BB
4748 if test "x$ac_ct_DUMPBIN" = x; then
4749 DUMPBIN=":"
4750 else
4751 case $cross_compiling:$ac_tool_warned in
4752yes:)
4753{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755ac_tool_warned=yes ;;
4756esac
4757 DUMPBIN=$ac_ct_DUMPBIN
4758 fi
4759fi
bf9f3bac 4760
bf9f3bac 4761
8934764e
BB
4762 if test "$DUMPBIN" != ":"; then
4763 NM="$DUMPBIN"
bf9f3bac 4764 fi
8934764e
BB
4765fi
4766test -z "$NM" && NM=nm
bf9f3bac 4767
bf9f3bac 4768
bf9f3bac 4769
bf9f3bac 4770
bf9f3bac 4771
bf9f3bac 4772
8934764e
BB
4773{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4774$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4775if test "${lt_cv_nm_interface+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777else
4778 lt_cv_nm_interface="BSD nm"
4779 echo "int some_variable = 0;" > conftest.$ac_ext
73fc084e 4780 (eval echo "\"\$as_me:4780: $ac_compile\"" >&5)
8934764e
BB
4781 (eval "$ac_compile" 2>conftest.err)
4782 cat conftest.err >&5
73fc084e 4783 (eval echo "\"\$as_me:4783: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8934764e
BB
4784 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4785 cat conftest.err >&5
73fc084e 4786 (eval echo "\"\$as_me:4786: output\"" >&5)
8934764e
BB
4787 cat conftest.out >&5
4788 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4789 lt_cv_nm_interface="MS dumpbin"
bf9f3bac 4790 fi
8934764e
BB
4791 rm -f conftest*
4792fi
4793{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4794$as_echo "$lt_cv_nm_interface" >&6; }
bf9f3bac 4795
8934764e
BB
4796{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4797$as_echo_n "checking whether ln -s works... " >&6; }
4798LN_S=$as_ln_s
4799if test "$LN_S" = "ln -s"; then
4800 { $as_echo "$as_me:$LINENO: result: yes" >&5
4801$as_echo "yes" >&6; }
4802else
4803 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4804$as_echo "no, using $LN_S" >&6; }
4805fi
bf9f3bac 4806
8934764e
BB
4807# find the maximum length of command line arguments
4808{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4809$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4810if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4811 $as_echo_n "(cached) " >&6
4812else
4813 i=0
4814 teststring="ABCD"
bf9f3bac 4815
8934764e
BB
4816 case $build_os in
4817 msdosdjgpp*)
4818 # On DJGPP, this test can blow up pretty badly due to problems in libc
4819 # (any single argument exceeding 2000 bytes causes a buffer overrun
4820 # during glob expansion). Even if it were fixed, the result of this
4821 # check would be larger than it should be.
4822 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4823 ;;
bf9f3bac 4824
8934764e
BB
4825 gnu*)
4826 # Under GNU Hurd, this test is not required because there is
4827 # no limit to the length of command line arguments.
4828 # Libtool will interpret -1 as no limit whatsoever
4829 lt_cv_sys_max_cmd_len=-1;
4830 ;;
bf9f3bac 4831
8934764e
BB
4832 cygwin* | mingw* | cegcc*)
4833 # On Win9x/ME, this test blows up -- it succeeds, but takes
4834 # about 5 minutes as the teststring grows exponentially.
4835 # Worse, since 9x/ME are not pre-emptively multitasking,
4836 # you end up with a "frozen" computer, even though with patience
4837 # the test eventually succeeds (with a max line length of 256k).
4838 # Instead, let's just punt: use the minimum linelength reported by
4839 # all of the supported platforms: 8192 (on NT/2K/XP).
4840 lt_cv_sys_max_cmd_len=8192;
4841 ;;
bf9f3bac 4842
8934764e
BB
4843 amigaos*)
4844 # On AmigaOS with pdksh, this test takes hours, literally.
4845 # So we just punt and use a minimum line length of 8192.
4846 lt_cv_sys_max_cmd_len=8192;
bf9f3bac 4847 ;;
8934764e
BB
4848
4849 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4850 # This has been around since 386BSD, at least. Likely further.
4851 if test -x /sbin/sysctl; then
4852 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4853 elif test -x /usr/sbin/sysctl; then
4854 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4855 else
4856 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4857 fi
4858 # And add a safety zone
4859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
bf9f3bac 4861 ;;
8934764e
BB
4862
4863 interix*)
4864 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4865 lt_cv_sys_max_cmd_len=196608
bf9f3bac 4866 ;;
8934764e
BB
4867
4868 osf*)
4869 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4870 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4871 # nice to cause kernel panics so lets avoid the loop below.
4872 # First set a reasonable default.
4873 lt_cv_sys_max_cmd_len=16384
4874 #
4875 if test -x /sbin/sysconfig; then
4876 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4877 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4878 esac
4879 fi
bf9f3bac 4880 ;;
8934764e
BB
4881 sco3.2v5*)
4882 lt_cv_sys_max_cmd_len=102400
bf9f3bac 4883 ;;
8934764e
BB
4884 sysv5* | sco5v6* | sysv4.2uw2*)
4885 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4886 if test -n "$kargmax"; then
4887 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4888 else
4889 lt_cv_sys_max_cmd_len=32768
4890 fi
4891 ;;
4892 *)
4893 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4894 if test -n "$lt_cv_sys_max_cmd_len"; then
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4897 else
4898 # Make teststring a little bigger before we do anything with it.
4899 # a 1K string should be a reasonable start.
4900 for i in 1 2 3 4 5 6 7 8 ; do
4901 teststring=$teststring$teststring
4902 done
4903 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4904 # If test is not a shell built-in, we'll probably end up computing a
4905 # maximum length that is only half of the actual maximum length, but
4906 # we can't tell.
4907 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4908 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4909 test $i != 17 # 1/2 MB should be enough
4910 do
4911 i=`expr $i + 1`
4912 teststring=$teststring$teststring
4913 done
4914 # Only check the string length outside the loop.
4915 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4916 teststring=
4917 # Add a significant safety factor because C++ compilers can tack on
4918 # massive amounts of additional arguments before passing them to the
4919 # linker. It appears as though 1/2 is a usable value.
4920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4921 fi
bf9f3bac 4922 ;;
4923 esac
bf9f3bac 4924
8934764e 4925fi
bf9f3bac 4926
8934764e
BB
4927if test -n $lt_cv_sys_max_cmd_len ; then
4928 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4929$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4930else
4931 { $as_echo "$as_me:$LINENO: result: none" >&5
4932$as_echo "none" >&6; }
bf9f3bac 4933fi
8934764e 4934max_cmd_len=$lt_cv_sys_max_cmd_len
bf9f3bac 4935
4936
4937
4938
bf9f3bac 4939
bf9f3bac 4940
8934764e
BB
4941: ${CP="cp -f"}
4942: ${MV="mv -f"}
4943: ${RM="rm -f"}
bf9f3bac 4944
8934764e
BB
4945{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4946$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4947# Try some XSI features
4948xsi_shell=no
4949( _lt_dummy="a/b/c"
4950 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4951 = c,a/b,, \
4952 && eval 'test $(( 1 + 1 )) -eq 2 \
4953 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4954 && xsi_shell=yes
4955{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4956$as_echo "$xsi_shell" >&6; }
bf9f3bac 4957
bf9f3bac 4958
8934764e
BB
4959{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4960$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4961lt_shell_append=no
4962( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4963 >/dev/null 2>&1 \
4964 && lt_shell_append=yes
4965{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4966$as_echo "$lt_shell_append" >&6; }
bf9f3bac 4967
8934764e
BB
4968
4969if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4970 lt_unset=unset
4971else
4972 lt_unset=false
4973fi
4974
4975
4976
4977
4978
4979# test EBCDIC or ASCII
4980case `echo X|tr X '\101'` in
4981 A) # ASCII based system
4982 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4983 lt_SP2NL='tr \040 \012'
4984 lt_NL2SP='tr \015\012 \040\040'
bf9f3bac 4985 ;;
8934764e
BB
4986 *) # EBCDIC based system
4987 lt_SP2NL='tr \100 \n'
4988 lt_NL2SP='tr \r\n \100\100'
bf9f3bac 4989 ;;
8934764e
BB
4990esac
4991
bf9f3bac 4992
bf9f3bac 4993
bf9f3bac 4994
bf9f3bac 4995
bf9f3bac 4996
bf9f3bac 4997
bf9f3bac 4998
8934764e
BB
4999
5000{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5001$as_echo_n "checking for $LD option to reload object files... " >&6; }
5002if test "${lt_cv_ld_reload_flag+set}" = set; then
5003 $as_echo_n "(cached) " >&6
5004else
5005 lt_cv_ld_reload_flag='-r'
bf9f3bac 5006fi
8934764e
BB
5007{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5008$as_echo "$lt_cv_ld_reload_flag" >&6; }
5009reload_flag=$lt_cv_ld_reload_flag
5010case $reload_flag in
5011"" | " "*) ;;
5012*) reload_flag=" $reload_flag" ;;
5013esac
5014reload_cmds='$LD$reload_flag -o $output$reload_objs'
5015case $host_os in
5016 darwin*)
5017 if test "$GCC" = yes; then
5018 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5019 else
5020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 fi
5022 ;;
5023esac
bf9f3bac 5024
5025
bf9f3bac 5026
bf9f3bac 5027
5028
8934764e
BB
5029
5030
5031
5032
5033if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5035set dummy ${ac_tool_prefix}objdump; ac_word=$2
5036{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5037$as_echo_n "checking for $ac_word... " >&6; }
5038if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5039 $as_echo_n "(cached) " >&6
bf9f3bac 5040else
8934764e
BB
5041 if test -n "$OBJDUMP"; then
5042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5043else
5044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045for as_dir in $PATH
bf9f3bac 5046do
8934764e
BB
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
bf9f3bac 5054 fi
8934764e
BB
5055done
5056done
5057IFS=$as_save_IFS
bf9f3bac 5058
bf9f3bac 5059fi
bf9f3bac 5060fi
8934764e
BB
5061OBJDUMP=$ac_cv_prog_OBJDUMP
5062if test -n "$OBJDUMP"; then
5063 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5064$as_echo "$OBJDUMP" >&6; }
bf9f3bac 5065else
8934764e
BB
5066 { $as_echo "$as_me:$LINENO: result: no" >&5
5067$as_echo "no" >&6; }
bf9f3bac 5068fi
5069
bf9f3bac 5070
5071fi
8934764e
BB
5072if test -z "$ac_cv_prog_OBJDUMP"; then
5073 ac_ct_OBJDUMP=$OBJDUMP
5074 # Extract the first word of "objdump", so it can be a program name with args.
5075set dummy objdump; ac_word=$2
5076{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5079 $as_echo_n "(cached) " >&6
bf9f3bac 5080else
8934764e
BB
5081 if test -n "$ac_ct_OBJDUMP"; then
5082 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5083else
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
bf9f3bac 5086do
8934764e
BB
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
bf9f3bac 5094 fi
8934764e
BB
5095done
5096done
5097IFS=$as_save_IFS
5098
bf9f3bac 5099fi
8934764e
BB
5100fi
5101ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5102if test -n "$ac_ct_OBJDUMP"; then
5103 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5104$as_echo "$ac_ct_OBJDUMP" >&6; }
bf9f3bac 5105else
8934764e
BB
5106 { $as_echo "$as_me:$LINENO: result: no" >&5
5107$as_echo "no" >&6; }
bf9f3bac 5108fi
bf9f3bac 5109
8934764e
BB
5110 if test "x$ac_ct_OBJDUMP" = x; then
5111 OBJDUMP="false"
bf9f3bac 5112 else
8934764e
BB
5113 case $cross_compiling:$ac_tool_warned in
5114yes:)
5115{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117ac_tool_warned=yes ;;
5118esac
5119 OBJDUMP=$ac_ct_OBJDUMP
bf9f3bac 5120 fi
5121else
8934764e 5122 OBJDUMP="$ac_cv_prog_OBJDUMP"
bf9f3bac 5123fi
bf9f3bac 5124
8934764e 5125test -z "$OBJDUMP" && OBJDUMP=objdump
bf9f3bac 5126
bf9f3bac 5127
bf9f3bac 5128
5129
bf9f3bac 5130
bf9f3bac 5131
bf9f3bac 5132
bf9f3bac 5133
bf9f3bac 5134
8934764e
BB
5135{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5136$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5137if test "${lt_cv_deplibs_check_method+set}" = set; then
5138 $as_echo_n "(cached) " >&6
bf9f3bac 5139else
8934764e
BB
5140 lt_cv_file_magic_cmd='$MAGIC_CMD'
5141lt_cv_file_magic_test_file=
5142lt_cv_deplibs_check_method='unknown'
5143# Need to set the preceding variable on all platforms that support
5144# interlibrary dependencies.
5145# 'none' -- dependencies not supported.
5146# `unknown' -- same as none, but documents that we really don't know.
5147# 'pass_all' -- all dependencies passed with no checks.
5148# 'test_compile' -- check by making test program.
5149# 'file_magic [[regex]]' -- check by looking for files in library path
5150# which responds to the $file_magic_cmd with a given extended regex.
5151# If you have `file' or equivalent on your system and you're not sure
5152# whether `pass_all' will *always* work, you probably want this one.
bf9f3bac 5153
8934764e
BB
5154case $host_os in
5155aix[4-9]*)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
bf9f3bac 5158
8934764e
BB
5159beos*)
5160 lt_cv_deplibs_check_method=pass_all
5161 ;;
bf9f3bac 5162
8934764e
BB
5163bsdi[45]*)
5164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5165 lt_cv_file_magic_cmd='/usr/bin/file -L'
5166 lt_cv_file_magic_test_file=/shlib/libc.so
5167 ;;
bf9f3bac 5168
8934764e
BB
5169cygwin*)
5170 # func_win32_libid is a shell function defined in ltmain.sh
5171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5172 lt_cv_file_magic_cmd='func_win32_libid'
5173 ;;
bf9f3bac 5174
8934764e
BB
5175mingw* | pw32*)
5176 # Base MSYS/MinGW do not provide the 'file' command needed by
5177 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5178 # unless we find 'file', for example because we are cross-compiling.
5179 if ( file / ) >/dev/null 2>&1; then
5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181 lt_cv_file_magic_cmd='func_win32_libid'
5182 else
5183 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5184 lt_cv_file_magic_cmd='$OBJDUMP -f'
5185 fi
5186 ;;
bf9f3bac 5187
8934764e
BB
5188cegcc)
5189 # use the weaker test based on 'objdump'. See mingw*.
5190 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5191 lt_cv_file_magic_cmd='$OBJDUMP -f'
5192 ;;
bf9f3bac 5193
8934764e
BB
5194darwin* | rhapsody*)
5195 lt_cv_deplibs_check_method=pass_all
5196 ;;
bf9f3bac 5197
8934764e
BB
5198freebsd* | dragonfly*)
5199 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5200 case $host_cpu in
5201 i*86 )
5202 # Not sure whether the presence of OpenBSD here was a mistake.
5203 # Let's accept both of them until this is cleared up.
5204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5207 ;;
5208 esac
5209 else
5210 lt_cv_deplibs_check_method=pass_all
5211 fi
5212 ;;
bf9f3bac 5213
8934764e
BB
5214gnu*)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
bf9f3bac 5217
8934764e
BB
5218hpux10.20* | hpux11*)
5219 lt_cv_file_magic_cmd=/usr/bin/file
5220 case $host_cpu in
5221 ia64*)
5222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5223 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5224 ;;
5225 hppa*64*)
5226 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]'
5227 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5228 ;;
5229 *)
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5231 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5232 ;;
5233 esac
5234 ;;
bf9f3bac 5235
8934764e
BB
5236interix[3-9]*)
5237 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5239 ;;
bf9f3bac 5240
8934764e
BB
5241irix5* | irix6* | nonstopux*)
5242 case $LD in
5243 *-32|*"-32 ") libmagic=32-bit;;
5244 *-n32|*"-n32 ") libmagic=N32;;
5245 *-64|*"-64 ") libmagic=64-bit;;
5246 *) libmagic=never-match;;
5247 esac
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
bf9f3bac 5250
8934764e
BB
5251# This must be Linux ELF.
5252linux* | k*bsd*-gnu)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
bf9f3bac 5255
8934764e
BB
5256netbsd*)
5257 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5259 else
5260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5261 fi
5262 ;;
bf9f3bac 5263
8934764e
BB
5264newos6*)
5265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5266 lt_cv_file_magic_cmd=/usr/bin/file
5267 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5268 ;;
bf9f3bac 5269
8934764e
BB
5270*nto* | *qnx*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
bf9f3bac 5273
8934764e
BB
5274openbsd*)
5275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5277 else
5278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5279 fi
5280 ;;
bf9f3bac 5281
8934764e
BB
5282osf3* | osf4* | osf5*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
bf9f3bac 5285
8934764e
BB
5286rdos*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
bf9f3bac 5289
8934764e
BB
5290solaris*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
bf9f3bac 5293
8934764e
BB
5294sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
bf9f3bac 5297
8934764e
BB
5298sysv4 | sysv4.3*)
5299 case $host_vendor in
5300 motorola)
5301 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]'
5302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
bf9f3bac 5303 ;;
8934764e
BB
5304 ncr)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307 sequent)
5308 lt_cv_file_magic_cmd='/bin/file'
5309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5310 ;;
5311 sni)
5312 lt_cv_file_magic_cmd='/bin/file'
5313 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5314 lt_cv_file_magic_test_file=/lib/libc.so
5315 ;;
5316 siemens)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319 pc)
5320 lt_cv_deplibs_check_method=pass_all
bf9f3bac 5321 ;;
8934764e
BB
5322 esac
5323 ;;
5324
5325tpf*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
bf9f3bac 5328esac
bf9f3bac 5329
5330fi
8934764e
BB
5331{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5332$as_echo "$lt_cv_deplibs_check_method" >&6; }
5333file_magic_cmd=$lt_cv_file_magic_cmd
5334deplibs_check_method=$lt_cv_deplibs_check_method
5335test -z "$deplibs_check_method" && deplibs_check_method=unknown
5336
5337
5338
5339
5340
5341
5342
5343
5344
bf9f3bac 5345
bf9f3bac 5346
bf9f3bac 5347
bf9f3bac 5348if test -n "$ac_tool_prefix"; then
8934764e
BB
5349 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5350set dummy ${ac_tool_prefix}ar; ac_word=$2
5351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5352$as_echo_n "checking for $ac_word... " >&6; }
5353if test "${ac_cv_prog_AR+set}" = set; then
5354 $as_echo_n "(cached) " >&6
bf9f3bac 5355else
8934764e
BB
5356 if test -n "$AR"; then
5357 ac_cv_prog_AR="$AR" # Let the user override the test.
bf9f3bac 5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_AR="${ac_tool_prefix}ar"
5367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5368 break 2
5369 fi
5370done
5371done
8934764e 5372IFS=$as_save_IFS
bf9f3bac 5373
5374fi
5375fi
8934764e
BB
5376AR=$ac_cv_prog_AR
5377if test -n "$AR"; then
5378 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5379$as_echo "$AR" >&6; }
bf9f3bac 5380else
8934764e
BB
5381 { $as_echo "$as_me:$LINENO: result: no" >&5
5382$as_echo "no" >&6; }
bf9f3bac 5383fi
5384
8934764e 5385
bf9f3bac 5386fi
8934764e
BB
5387if test -z "$ac_cv_prog_AR"; then
5388 ac_ct_AR=$AR
5389 # Extract the first word of "ar", so it can be a program name with args.
5390set dummy ar; ac_word=$2
5391{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5392$as_echo_n "checking for $ac_word... " >&6; }
5393if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5394 $as_echo_n "(cached) " >&6
bf9f3bac 5395else
8934764e
BB
5396 if test -n "$ac_ct_AR"; then
5397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
bf9f3bac 5398else
5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_ac_ct_AR="ar"
5407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5408 break 2
5409 fi
5410done
5411done
8934764e 5412IFS=$as_save_IFS
bf9f3bac 5413
5414fi
5415fi
8934764e
BB
5416ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417if test -n "$ac_ct_AR"; then
5418 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5419$as_echo "$ac_ct_AR" >&6; }
bf9f3bac 5420else
8934764e
BB
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422$as_echo "no" >&6; }
bf9f3bac 5423fi
5424
8934764e
BB
5425 if test "x$ac_ct_AR" = x; then
5426 AR="false"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429yes:)
5430{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432ac_tool_warned=yes ;;
5433esac
5434 AR=$ac_ct_AR
5435 fi
5436else
5437 AR="$ac_cv_prog_AR"
bf9f3bac 5438fi
5439
8934764e
BB
5440test -z "$AR" && AR=ar
5441test -z "$AR_FLAGS" && AR_FLAGS=cru
bf9f3bac 5442
bf9f3bac 5443
bf9f3bac 5444
bf9f3bac 5445
8934764e
BB
5446
5447
5448
5449
5450
5451
5452
5453if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5455set dummy ${ac_tool_prefix}strip; ac_word=$2
5456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457$as_echo_n "checking for $ac_word... " >&6; }
5458if test "${ac_cv_prog_STRIP+set}" = set; then
5459 $as_echo_n "(cached) " >&6
bf9f3bac 5460else
8934764e
BB
5461 if test -n "$STRIP"; then
5462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476done
5477IFS=$as_save_IFS
bf9f3bac 5478
bf9f3bac 5479fi
bf9f3bac 5480fi
8934764e
BB
5481STRIP=$ac_cv_prog_STRIP
5482if test -n "$STRIP"; then
5483 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5484$as_echo "$STRIP" >&6; }
bf9f3bac 5485else
8934764e
BB
5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
bf9f3bac 5489
bf9f3bac 5490
8934764e
BB
5491fi
5492if test -z "$ac_cv_prog_STRIP"; then
5493 ac_ct_STRIP=$STRIP
5494 # Extract the first word of "strip", so it can be a program name with args.
5495set dummy strip; ac_word=$2
5496{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
5498if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5499 $as_echo_n "(cached) " >&6
bf9f3bac 5500else
8934764e
BB
5501 if test -n "$ac_ct_STRIP"; then
5502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_ac_ct_STRIP="strip"
5512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515done
5516done
5517IFS=$as_save_IFS
bf9f3bac 5518
bf9f3bac 5519fi
bf9f3bac 5520fi
8934764e
BB
5521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5522if test -n "$ac_ct_STRIP"; then
5523 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5524$as_echo "$ac_ct_STRIP" >&6; }
bf9f3bac 5525else
8934764e
BB
5526 { $as_echo "$as_me:$LINENO: result: no" >&5
5527$as_echo "no" >&6; }
5528fi
5529
5530 if test "x$ac_ct_STRIP" = x; then
5531 STRIP=":"
bf9f3bac 5532 else
8934764e
BB
5533 case $cross_compiling:$ac_tool_warned in
5534yes:)
5535{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537ac_tool_warned=yes ;;
5538esac
5539 STRIP=$ac_ct_STRIP
bf9f3bac 5540 fi
8934764e
BB
5541else
5542 STRIP="$ac_cv_prog_STRIP"
bf9f3bac 5543fi
bf9f3bac 5544
8934764e 5545test -z "$STRIP" && STRIP=:
bf9f3bac 5546
bf9f3bac 5547
bf9f3bac 5548
bf9f3bac 5549
bf9f3bac 5550
bf9f3bac 5551
8934764e
BB
5552if test -n "$ac_tool_prefix"; then
5553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5554set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; }
5557if test "${ac_cv_prog_RANLIB+set}" = set; then
5558 $as_echo_n "(cached) " >&6
bf9f3bac 5559else
8934764e
BB
5560 if test -n "$RANLIB"; then
5561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5562else
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574done
5575done
5576IFS=$as_save_IFS
bf9f3bac 5577
5578fi
8934764e
BB
5579fi
5580RANLIB=$ac_cv_prog_RANLIB
5581if test -n "$RANLIB"; then
5582 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5583$as_echo "$RANLIB" >&6; }
bf9f3bac 5584else
8934764e
BB
5585 { $as_echo "$as_me:$LINENO: result: no" >&5
5586$as_echo "no" >&6; }
bf9f3bac 5587fi
5588
5589
8934764e
BB
5590fi
5591if test -z "$ac_cv_prog_RANLIB"; then
5592 ac_ct_RANLIB=$RANLIB
5593 # Extract the first word of "ranlib", so it can be a program name with args.
5594set dummy ranlib; ac_word=$2
5595{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5596$as_echo_n "checking for $ac_word... " >&6; }
5597if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5598 $as_echo_n "(cached) " >&6
bf9f3bac 5599else
8934764e
BB
5600 if test -n "$ac_ct_RANLIB"; then
5601 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5602else
5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604for as_dir in $PATH
bf9f3bac 5605do
8934764e
BB
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_prog_ac_ct_RANLIB="ranlib"
5611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
bf9f3bac 5613 fi
8934764e
BB
5614done
5615done
5616IFS=$as_save_IFS
5617
bf9f3bac 5618fi
8934764e
BB
5619fi
5620ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5621if test -n "$ac_ct_RANLIB"; then
5622 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5623$as_echo "$ac_ct_RANLIB" >&6; }
bf9f3bac 5624else
8934764e
BB
5625 { $as_echo "$as_me:$LINENO: result: no" >&5
5626$as_echo "no" >&6; }
bf9f3bac 5627fi
bf9f3bac 5628
8934764e
BB
5629 if test "x$ac_ct_RANLIB" = x; then
5630 RANLIB=":"
bf9f3bac 5631 else
8934764e
BB
5632 case $cross_compiling:$ac_tool_warned in
5633yes:)
5634{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5636ac_tool_warned=yes ;;
5637esac
5638 RANLIB=$ac_ct_RANLIB
bf9f3bac 5639 fi
5640else
8934764e 5641 RANLIB="$ac_cv_prog_RANLIB"
bf9f3bac 5642fi
bf9f3bac 5643
8934764e 5644test -z "$RANLIB" && RANLIB=:
bf9f3bac 5645
bf9f3bac 5646
bf9f3bac 5647
bf9f3bac 5648
bf9f3bac 5649
bf9f3bac 5650
8934764e
BB
5651# Determine commands to create old-style static archives.
5652old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5653old_postinstall_cmds='chmod 644 $oldlib'
5654old_postuninstall_cmds=
bf9f3bac 5655
8934764e
BB
5656if test -n "$RANLIB"; then
5657 case $host_os in
5658 openbsd*)
5659 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5660 ;;
5661 *)
5662 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5663 ;;
5664 esac
5665 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
bf9f3bac 5666fi
5667
bf9f3bac 5668
bf9f3bac 5669
5670
bf9f3bac 5671
bf9f3bac 5672
bf9f3bac 5673
bf9f3bac 5674
bf9f3bac 5675
bf9f3bac 5676
5677
bf9f3bac 5678
bf9f3bac 5679
bf9f3bac 5680
bf9f3bac 5681
bf9f3bac 5682
bf9f3bac 5683
bf9f3bac 5684
bf9f3bac 5685
bf9f3bac 5686
5687
5688
bf9f3bac 5689
bf9f3bac 5690
bf9f3bac 5691
bf9f3bac 5692
bf9f3bac 5693
bf9f3bac 5694
bf9f3bac 5695
bf9f3bac 5696
bf9f3bac 5697
bf9f3bac 5698
bf9f3bac 5699
5700
8934764e
BB
5701# If no C compiler was specified, use CC.
5702LTCC=${LTCC-"$CC"}
5703
5704# If no C compiler flags were specified, use CFLAGS.
5705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5706
5707# Allow CC to be a program name with arguments.
5708compiler=$CC
bf9f3bac 5709
5710
5711# Check for command to grab the raw symbol name followed by C symbol from nm.
8934764e
BB
5712{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5713$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
bf9f3bac 5714if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8934764e 5715 $as_echo_n "(cached) " >&6
bf9f3bac 5716else
5717
5718# These are sane defaults that work on at least a few old systems.
5719# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5720
5721# Character class describing NM global symbol codes.
5722symcode='[BCDEGRST]'
5723
5724# Regexp to match symbols that can be accessed directly from C.
5725sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5726
bf9f3bac 5727# Define system-specific variables.
5728case $host_os in
5729aix*)
5730 symcode='[BCDT]'
5731 ;;
8934764e 5732cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 5733 symcode='[ABCDGISTW]'
5734 ;;
8934764e 5735hpux*)
bf9f3bac 5736 if test "$host_cpu" = ia64; then
5737 symcode='[ABCDEGRST]'
5738 fi
bf9f3bac 5739 ;;
5740irix* | nonstopux*)
5741 symcode='[BCDEGRST]'
5742 ;;
5743osf*)
5744 symcode='[BCDEGQRST]'
5745 ;;
5746solaris*)
5747 symcode='[BDRT]'
5748 ;;
5749sco3.2v5*)
5750 symcode='[DT]'
5751 ;;
5752sysv4.2uw2*)
5753 symcode='[DT]'
5754 ;;
5755sysv5* | sco5v6* | unixware* | OpenUNIX*)
5756 symcode='[ABDT]'
5757 ;;
5758sysv4)
5759 symcode='[DFNSTU]'
5760 ;;
5761esac
5762
8934764e
BB
5763# If we're using GNU nm, then use its standard symbol codes.
5764case `$NM -V 2>&1` in
5765*GNU* | *'with BFD'*)
5766 symcode='[ABCDGIRSTW]' ;;
5767esac
5768
5769# Transform an extracted symbol line into a proper C declaration.
5770# Some systems (esp. on ia64) link data and code symbols differently,
5771# so use this general approach.
5772lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5773
5774# Transform an extracted symbol line into symbol name and symbol address
5775lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5776lt_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'"
5777
bf9f3bac 5778# Handle CRLF in mingw tool chain
5779opt_cr=
5780case $build_os in
5781mingw*)
8934764e 5782 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
bf9f3bac 5783 ;;
5784esac
5785
8934764e 5786# Try without a prefix underscore, then with it.
bf9f3bac 5787for ac_symprfx in "" "_"; do
5788
5789 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5790 symxfrm="\\1 $ac_symprfx\\2 \\2"
5791
5792 # Write the raw and C identifiers.
8934764e
BB
5793 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5794 # Fake it for dumpbin and say T for any non-static function
5795 # and D for any global variable.
5796 # Also find C++ and __fastcall symbols from MSVC++,
5797 # which start with @ or ?.
5798 lt_cv_sys_global_symbol_pipe="$AWK '"\
5799" {last_section=section; section=\$ 3};"\
5800" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5801" \$ 0!~/External *\|/{next};"\
5802" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5803" {if(hide[section]) next};"\
5804" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5805" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5806" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5807" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5808" ' prfx=^$ac_symprfx"
5809 else
5810 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5811 fi
bf9f3bac 5812
5813 # Check to see that the pipe works correctly.
5814 pipe_works=no
5815
5816 rm -f conftest*
8934764e 5817 cat > conftest.$ac_ext <<_LT_EOF
bf9f3bac 5818#ifdef __cplusplus
5819extern "C" {
5820#endif
5821char nm_test_var;
8934764e
BB
5822void nm_test_func(void);
5823void nm_test_func(void){}
bf9f3bac 5824#ifdef __cplusplus
5825}
5826#endif
5827int main(){nm_test_var='a';nm_test_func();return(0);}
8934764e 5828_LT_EOF
bf9f3bac 5829
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5832 ac_status=$?
8934764e 5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5834 (exit $ac_status); }; then
5835 # Now try to grab the symbols.
5836 nlist=conftest.nm
5837 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5838 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5839 ac_status=$?
8934764e 5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5841 (exit $ac_status); } && test -s "$nlist"; then
5842 # Try sorting and uniquifying the output.
5843 if sort "$nlist" | uniq > "$nlist"T; then
5844 mv -f "$nlist"T "$nlist"
5845 else
5846 rm -f "$nlist"T
5847 fi
5848
5849 # Make sure that we snagged all the symbols we need.
8934764e
BB
5850 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5851 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5852 cat <<_LT_EOF > conftest.$ac_ext
bf9f3bac 5853#ifdef __cplusplus
5854extern "C" {
5855#endif
5856
8934764e 5857_LT_EOF
bf9f3bac 5858 # Now generate the symbol file.
8934764e 5859 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
bf9f3bac 5860
8934764e 5861 cat <<_LT_EOF >> conftest.$ac_ext
bf9f3bac 5862
8934764e 5863/* The mapping between symbol names and symbols. */
bf9f3bac 5864const struct {
5865 const char *name;
8934764e 5866 void *address;
bf9f3bac 5867}
8934764e 5868lt__PROGRAM__LTX_preloaded_symbols[] =
bf9f3bac 5869{
8934764e
BB
5870 { "@PROGRAM@", (void *) 0 },
5871_LT_EOF
5872 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5873 cat <<\_LT_EOF >> conftest.$ac_ext
5874 {0, (void *) 0}
bf9f3bac 5875};
5876
8934764e
BB
5877/* This works around a problem in FreeBSD linker */
5878#ifdef FREEBSD_WORKAROUND
5879static const void *lt_preloaded_setup() {
5880 return lt__PROGRAM__LTX_preloaded_symbols;
5881}
5882#endif
5883
bf9f3bac 5884#ifdef __cplusplus
5885}
5886#endif
8934764e 5887_LT_EOF
bf9f3bac 5888 # Now try linking the two files.
5889 mv conftest.$ac_objext conftstm.$ac_objext
5890 lt_save_LIBS="$LIBS"
5891 lt_save_CFLAGS="$CFLAGS"
5892 LIBS="conftstm.$ac_objext"
5893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895 (eval $ac_link) 2>&5
5896 ac_status=$?
8934764e 5897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5898 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5899 pipe_works=yes
5900 fi
5901 LIBS="$lt_save_LIBS"
5902 CFLAGS="$lt_save_CFLAGS"
5903 else
5904 echo "cannot find nm_test_func in $nlist" >&5
5905 fi
5906 else
5907 echo "cannot find nm_test_var in $nlist" >&5
5908 fi
5909 else
5910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5911 fi
5912 else
5913 echo "$progname: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 fi
8934764e 5916 rm -rf conftest* conftst*
bf9f3bac 5917
5918 # Do not use the global_symbol_pipe unless it works.
5919 if test "$pipe_works" = yes; then
5920 break
5921 else
5922 lt_cv_sys_global_symbol_pipe=
5923 fi
5924done
5925
5926fi
5927
5928if test -z "$lt_cv_sys_global_symbol_pipe"; then
5929 lt_cv_sys_global_symbol_to_cdecl=
5930fi
5931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8934764e
BB
5932 { $as_echo "$as_me:$LINENO: result: failed" >&5
5933$as_echo "failed" >&6; }
bf9f3bac 5934else
8934764e
BB
5935 { $as_echo "$as_me:$LINENO: result: ok" >&5
5936$as_echo "ok" >&6; }
bf9f3bac 5937fi
5938
bf9f3bac 5939
5940
5941
5942
5943
8934764e
BB
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961# Check whether --enable-libtool-lock was given.
5962if test "${enable_libtool_lock+set}" = set; then
5963 enableval=$enable_libtool_lock;
5964fi
5965
5966test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5967
5968# Some flags need to be propagated to the compiler or linker for good
5969# libtool support.
5970case $host in
5971ia64-*-hpux*)
5972 # Find out which ABI we are using.
5973 echo 'int i;' > conftest.$ac_ext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>&5
5976 ac_status=$?
5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; then
5979 case `/usr/bin/file conftest.$ac_objext` in
5980 *ELF-32*)
5981 HPUX_IA64_MODE="32"
5982 ;;
5983 *ELF-64*)
5984 HPUX_IA64_MODE="64"
5985 ;;
5986 esac
bf9f3bac 5987 fi
8934764e
BB
5988 rm -rf conftest*
5989 ;;
5990*-*-irix6*)
5991 # Find out which ABI we are using.
73fc084e 5992 echo '#line 5992 "configure"' > conftest.$ac_ext
8934764e
BB
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>&5
5995 ac_status=$?
5996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; then
5998 if test "$lt_cv_prog_gnu_ld" = yes; then
5999 case `/usr/bin/file conftest.$ac_objext` in
6000 *32-bit*)
6001 LD="${LD-ld} -melf32bsmip"
6002 ;;
6003 *N32*)
6004 LD="${LD-ld} -melf32bmipn32"
6005 ;;
6006 *64-bit*)
6007 LD="${LD-ld} -melf64bmip"
6008 ;;
6009 esac
6010 else
6011 case `/usr/bin/file conftest.$ac_objext` in
6012 *32-bit*)
6013 LD="${LD-ld} -32"
6014 ;;
6015 *N32*)
6016 LD="${LD-ld} -n32"
6017 ;;
6018 *64-bit*)
6019 LD="${LD-ld} -64"
6020 ;;
6021 esac
6022 fi
6023 fi
6024 rm -rf conftest*
bf9f3bac 6025 ;;
bf9f3bac 6026
8934764e
BB
6027x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6028s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6029 # Find out which ABI we are using.
6030 echo 'int i;' > conftest.$ac_ext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>&5
6033 ac_status=$?
6034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; then
6036 case `/usr/bin/file conftest.o` in
6037 *32-bit*)
6038 case $host in
6039 x86_64-*kfreebsd*-gnu)
6040 LD="${LD-ld} -m elf_i386_fbsd"
6041 ;;
6042 x86_64-*linux*)
6043 LD="${LD-ld} -m elf_i386"
6044 ;;
6045 ppc64-*linux*|powerpc64-*linux*)
6046 LD="${LD-ld} -m elf32ppclinux"
6047 ;;
6048 s390x-*linux*)
6049 LD="${LD-ld} -m elf_s390"
6050 ;;
6051 sparc64-*linux*)
6052 LD="${LD-ld} -m elf32_sparc"
6053 ;;
6054 esac
6055 ;;
6056 *64-bit*)
6057 case $host in
6058 x86_64-*kfreebsd*-gnu)
6059 LD="${LD-ld} -m elf_x86_64_fbsd"
6060 ;;
6061 x86_64-*linux*)
6062 LD="${LD-ld} -m elf_x86_64"
6063 ;;
6064 ppc*-*linux*|powerpc*-*linux*)
6065 LD="${LD-ld} -m elf64ppc"
6066 ;;
6067 s390*-*linux*|s390*-*tpf*)
6068 LD="${LD-ld} -m elf64_s390"
6069 ;;
6070 sparc*-*linux*)
6071 LD="${LD-ld} -m elf64_sparc"
6072 ;;
6073 esac
6074 ;;
6075 esac
6076 fi
6077 rm -rf conftest*
6078 ;;
bf9f3bac 6079
8934764e
BB
6080*-*-sco3.2v5*)
6081 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6082 SAVE_CFLAGS="$CFLAGS"
6083 CFLAGS="$CFLAGS -belf"
6084 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6085$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6086if test "${lt_cv_cc_needs_belf+set}" = set; then
6087 $as_echo_n "(cached) " >&6
6088else
6089 ac_ext=c
6090ac_cpp='$CPP $CPPFLAGS'
6091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6094
8934764e
BB
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
bf9f3bac 6101
8934764e
BB
6102int
6103main ()
6104{
6105
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext
6111if { (ac_try="$ac_link"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6117$as_echo "$ac_try_echo") >&5
6118 (eval "$ac_link") 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest$ac_exeext && {
6128 test "$cross_compiling" = yes ||
6129 $as_test_x conftest$ac_exeext
6130 }; then
6131 lt_cv_cc_needs_belf=yes
6132else
6133 $as_echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6135
8934764e
BB
6136 lt_cv_cc_needs_belf=no
6137fi
bf9f3bac 6138
8934764e
BB
6139rm -rf conftest.dSYM
6140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142 ac_ext=c
6143ac_cpp='$CPP $CPPFLAGS'
6144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6147
8934764e
BB
6148fi
6149{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6150$as_echo "$lt_cv_cc_needs_belf" >&6; }
6151 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6152 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6153 CFLAGS="$SAVE_CFLAGS"
6154 fi
6155 ;;
6156sparc*-*solaris*)
6157 # Find out which ABI we are using.
6158 echo 'int i;' > conftest.$ac_ext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; then
6164 case `/usr/bin/file conftest.o` in
6165 *64-bit*)
6166 case $lt_cv_prog_gnu_ld in
6167 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6168 *)
6169 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6170 LD="${LD-ld} -64"
6171 fi
6172 ;;
6173 esac
6174 ;;
6175 esac
6176 fi
6177 rm -rf conftest*
6178 ;;
6179esac
bf9f3bac 6180
8934764e
BB
6181need_locks="$enable_libtool_lock"
6182
6183
6184 case $host_os in
6185 rhapsody* | darwin*)
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6188set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6189{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193else
6194 if test -n "$DSYMUTIL"; then
6195 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
bf9f3bac 6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6206 break 2
6207 fi
6208done
6209done
8934764e 6210IFS=$as_save_IFS
bf9f3bac 6211
6212fi
6213fi
8934764e
BB
6214DSYMUTIL=$ac_cv_prog_DSYMUTIL
6215if test -n "$DSYMUTIL"; then
6216 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6217$as_echo "$DSYMUTIL" >&6; }
bf9f3bac 6218else
8934764e
BB
6219 { $as_echo "$as_me:$LINENO: result: no" >&5
6220$as_echo "no" >&6; }
bf9f3bac 6221fi
6222
8934764e 6223
bf9f3bac 6224fi
8934764e
BB
6225if test -z "$ac_cv_prog_DSYMUTIL"; then
6226 ac_ct_DSYMUTIL=$DSYMUTIL
6227 # Extract the first word of "dsymutil", so it can be a program name with args.
6228set dummy dsymutil; ac_word=$2
6229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6232 $as_echo_n "(cached) " >&6
bf9f3bac 6233else
8934764e
BB
6234 if test -n "$ac_ct_DSYMUTIL"; then
6235 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
bf9f3bac 6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6246 break 2
6247 fi
6248done
6249done
8934764e 6250IFS=$as_save_IFS
bf9f3bac 6251
bf9f3bac 6252fi
6253fi
8934764e
BB
6254ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6255if test -n "$ac_ct_DSYMUTIL"; then
6256 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6257$as_echo "$ac_ct_DSYMUTIL" >&6; }
bf9f3bac 6258else
8934764e
BB
6259 { $as_echo "$as_me:$LINENO: result: no" >&5
6260$as_echo "no" >&6; }
bf9f3bac 6261fi
6262
8934764e
BB
6263 if test "x$ac_ct_DSYMUTIL" = x; then
6264 DSYMUTIL=":"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267yes:)
6268{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270ac_tool_warned=yes ;;
6271esac
6272 DSYMUTIL=$ac_ct_DSYMUTIL
6273 fi
bf9f3bac 6274else
8934764e 6275 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
bf9f3bac 6276fi
6277
8934764e
BB
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6280set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if test "${ac_cv_prog_NMEDIT+set}" = set; then
6284 $as_echo_n "(cached) " >&6
bf9f3bac 6285else
8934764e
BB
6286 if test -n "$NMEDIT"; then
6287 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
bf9f3bac 6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6298 break 2
6299 fi
6300done
6301done
8934764e 6302IFS=$as_save_IFS
bf9f3bac 6303
6304fi
6305fi
8934764e
BB
6306NMEDIT=$ac_cv_prog_NMEDIT
6307if test -n "$NMEDIT"; then
6308 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6309$as_echo "$NMEDIT" >&6; }
bf9f3bac 6310else
8934764e
BB
6311 { $as_echo "$as_me:$LINENO: result: no" >&5
6312$as_echo "no" >&6; }
bf9f3bac 6313fi
6314
8934764e 6315
bf9f3bac 6316fi
8934764e
BB
6317if test -z "$ac_cv_prog_NMEDIT"; then
6318 ac_ct_NMEDIT=$NMEDIT
6319 # Extract the first word of "nmedit", so it can be a program name with args.
6320set dummy nmedit; ac_word=$2
6321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6324 $as_echo_n "(cached) " >&6
bf9f3bac 6325else
8934764e
BB
6326 if test -n "$ac_ct_NMEDIT"; then
6327 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
bf9f3bac 6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6338 break 2
6339 fi
6340done
6341done
8934764e 6342IFS=$as_save_IFS
bf9f3bac 6343
bf9f3bac 6344fi
6345fi
8934764e
BB
6346ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6347if test -n "$ac_ct_NMEDIT"; then
6348 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6349$as_echo "$ac_ct_NMEDIT" >&6; }
bf9f3bac 6350else
8934764e
BB
6351 { $as_echo "$as_me:$LINENO: result: no" >&5
6352$as_echo "no" >&6; }
bf9f3bac 6353fi
6354
8934764e
BB
6355 if test "x$ac_ct_NMEDIT" = x; then
6356 NMEDIT=":"
6357 else
6358 case $cross_compiling:$ac_tool_warned in
6359yes:)
6360{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362ac_tool_warned=yes ;;
6363esac
6364 NMEDIT=$ac_ct_NMEDIT
6365 fi
bf9f3bac 6366else
8934764e 6367 NMEDIT="$ac_cv_prog_NMEDIT"
bf9f3bac 6368fi
6369
8934764e
BB
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6372set dummy ${ac_tool_prefix}lipo; ac_word=$2
6373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if test "${ac_cv_prog_LIPO+set}" = set; then
6376 $as_echo_n "(cached) " >&6
bf9f3bac 6377else
8934764e
BB
6378 if test -n "$LIPO"; then
6379 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
bf9f3bac 6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6390 break 2
6391 fi
6392done
6393done
8934764e 6394IFS=$as_save_IFS
bf9f3bac 6395
6396fi
6397fi
8934764e
BB
6398LIPO=$ac_cv_prog_LIPO
6399if test -n "$LIPO"; then
6400 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6401$as_echo "$LIPO" >&6; }
bf9f3bac 6402else
8934764e
BB
6403 { $as_echo "$as_me:$LINENO: result: no" >&5
6404$as_echo "no" >&6; }
bf9f3bac 6405fi
6406
8934764e 6407
bf9f3bac 6408fi
8934764e
BB
6409if test -z "$ac_cv_prog_LIPO"; then
6410 ac_ct_LIPO=$LIPO
6411 # Extract the first word of "lipo", so it can be a program name with args.
6412set dummy lipo; ac_word=$2
6413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6414$as_echo_n "checking for $ac_word... " >&6; }
6415if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6416 $as_echo_n "(cached) " >&6
bf9f3bac 6417else
8934764e
BB
6418 if test -n "$ac_ct_LIPO"; then
6419 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
bf9f3bac 6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_LIPO="lipo"
6429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6430 break 2
6431 fi
6432done
6433done
8934764e 6434IFS=$as_save_IFS
bf9f3bac 6435
bf9f3bac 6436fi
6437fi
8934764e
BB
6438ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6439if test -n "$ac_ct_LIPO"; then
6440 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6441$as_echo "$ac_ct_LIPO" >&6; }
bf9f3bac 6442else
8934764e
BB
6443 { $as_echo "$as_me:$LINENO: result: no" >&5
6444$as_echo "no" >&6; }
bf9f3bac 6445fi
6446
8934764e
BB
6447 if test "x$ac_ct_LIPO" = x; then
6448 LIPO=":"
6449 else
6450 case $cross_compiling:$ac_tool_warned in
6451yes:)
6452{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454ac_tool_warned=yes ;;
6455esac
6456 LIPO=$ac_ct_LIPO
6457 fi
bf9f3bac 6458else
8934764e 6459 LIPO="$ac_cv_prog_LIPO"
bf9f3bac 6460fi
6461
8934764e
BB
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6464set dummy ${ac_tool_prefix}otool; ac_word=$2
6465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if test "${ac_cv_prog_OTOOL+set}" = set; then
6468 $as_echo_n "(cached) " >&6
6469else
6470 if test -n "$OTOOL"; then
6471 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
bf9f3bac 6484done
8934764e
BB
6485done
6486IFS=$as_save_IFS
bf9f3bac 6487
8934764e
BB
6488fi
6489fi
6490OTOOL=$ac_cv_prog_OTOOL
6491if test -n "$OTOOL"; then
6492 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6493$as_echo "$OTOOL" >&6; }
bf9f3bac 6494else
8934764e
BB
6495 { $as_echo "$as_me:$LINENO: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
bf9f3bac 6498
bf9f3bac 6499
bf9f3bac 6500fi
8934764e
BB
6501if test -z "$ac_cv_prog_OTOOL"; then
6502 ac_ct_OTOOL=$OTOOL
6503 # Extract the first word of "otool", so it can be a program name with args.
6504set dummy otool; ac_word=$2
6505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
6507if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6508 $as_echo_n "(cached) " >&6
bf9f3bac 6509else
8934764e
BB
6510 if test -n "$ac_ct_OTOOL"; then
6511 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
bf9f3bac 6512else
8934764e
BB
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_ac_ct_OTOOL="otool"
6521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524done
6525done
6526IFS=$as_save_IFS
bf9f3bac 6527
bf9f3bac 6528fi
8934764e
BB
6529fi
6530ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6531if test -n "$ac_ct_OTOOL"; then
6532 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6533$as_echo "$ac_ct_OTOOL" >&6; }
bf9f3bac 6534else
8934764e
BB
6535 { $as_echo "$as_me:$LINENO: result: no" >&5
6536$as_echo "no" >&6; }
bf9f3bac 6537fi
6538
8934764e
BB
6539 if test "x$ac_ct_OTOOL" = x; then
6540 OTOOL=":"
bf9f3bac 6541 else
8934764e
BB
6542 case $cross_compiling:$ac_tool_warned in
6543yes:)
6544{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546ac_tool_warned=yes ;;
6547esac
6548 OTOOL=$ac_ct_OTOOL
bf9f3bac 6549 fi
8934764e
BB
6550else
6551 OTOOL="$ac_cv_prog_OTOOL"
bf9f3bac 6552fi
6553
8934764e
BB
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6556set dummy ${ac_tool_prefix}otool64; ac_word=$2
6557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if test "${ac_cv_prog_OTOOL64+set}" = set; then
6560 $as_echo_n "(cached) " >&6
6561else
6562 if test -n "$OTOOL64"; then
6563 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
bf9f3bac 6575 fi
8934764e
BB
6576done
6577done
6578IFS=$as_save_IFS
bf9f3bac 6579
8934764e
BB
6580fi
6581fi
6582OTOOL64=$ac_cv_prog_OTOOL64
6583if test -n "$OTOOL64"; then
6584 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6585$as_echo "$OTOOL64" >&6; }
6586else
6587 { $as_echo "$as_me:$LINENO: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
bf9f3bac 6590
bf9f3bac 6591
8934764e
BB
6592fi
6593if test -z "$ac_cv_prog_OTOOL64"; then
6594 ac_ct_OTOOL64=$OTOOL64
6595 # Extract the first word of "otool64", so it can be a program name with args.
6596set dummy otool64; ac_word=$2
6597{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6598$as_echo_n "checking for $ac_word... " >&6; }
6599if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6600 $as_echo_n "(cached) " >&6
6601else
6602 if test -n "$ac_ct_OTOOL64"; then
6603 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_OTOOL64="otool64"
6613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616done
6617done
6618IFS=$as_save_IFS
bf9f3bac 6619
8934764e
BB
6620fi
6621fi
6622ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6623if test -n "$ac_ct_OTOOL64"; then
6624 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6625$as_echo "$ac_ct_OTOOL64" >&6; }
6626else
6627 { $as_echo "$as_me:$LINENO: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
bf9f3bac 6630
8934764e
BB
6631 if test "x$ac_ct_OTOOL64" = x; then
6632 OTOOL64=":"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635yes:)
6636{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638ac_tool_warned=yes ;;
6639esac
6640 OTOOL64=$ac_ct_OTOOL64
6641 fi
bf9f3bac 6642else
8934764e
BB
6643 OTOOL64="$ac_cv_prog_OTOOL64"
6644fi
bf9f3bac 6645
bf9f3bac 6646
6647
bf9f3bac 6648
bf9f3bac 6649
bf9f3bac 6650
bf9f3bac 6651
6652
bf9f3bac 6653
bf9f3bac 6654
bf9f3bac 6655
6656
bf9f3bac 6657
bf9f3bac 6658
6659
6660
bf9f3bac 6661
bf9f3bac 6662
6663
bf9f3bac 6664
bf9f3bac 6665
8934764e
BB
6666
6667
6668
6669
6670
6671
6672 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6673$as_echo_n "checking for -single_module linker flag... " >&6; }
6674if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6675 $as_echo_n "(cached) " >&6
bf9f3bac 6676else
8934764e
BB
6677 lt_cv_apple_cc_single_mod=no
6678 if test -z "${LT_MULTI_MODULE}"; then
6679 # By default we will add the -single_module flag. You can override
6680 # by either setting the environment variable LT_MULTI_MODULE
6681 # non-empty at configure time, or by adding -multi_module to the
6682 # link flags.
6683 rm -rf libconftest.dylib*
6684 echo "int foo(void){return 1;}" > conftest.c
6685 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6686-dynamiclib -Wl,-single_module conftest.c" >&5
6687 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6688 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6689 _lt_result=$?
6690 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6691 lt_cv_apple_cc_single_mod=yes
6692 else
6693 cat conftest.err >&5
6694 fi
6695 rm -rf libconftest.dylib*
6696 rm -f conftest.*
6697 fi
bf9f3bac 6698fi
8934764e
BB
6699{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6700$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6701 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6702$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6703if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6704 $as_echo_n "(cached) " >&6
6705else
6706 lt_cv_ld_exported_symbols_list=no
6707 save_LDFLAGS=$LDFLAGS
6708 echo "_main" > conftest.sym
6709 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6710 cat >conftest.$ac_ext <<_ACEOF
6711/* confdefs.h. */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h. */
bf9f3bac 6716
8934764e
BB
6717int
6718main ()
6719{
bf9f3bac 6720
8934764e
BB
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725rm -f conftest.$ac_objext conftest$ac_exeext
6726if { (ac_try="$ac_link"
6727case "(($ac_try" in
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6730esac
6731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6732$as_echo "$ac_try_echo") >&5
6733 (eval "$ac_link") 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest$ac_exeext && {
6743 test "$cross_compiling" = yes ||
6744 $as_test_x conftest$ac_exeext
6745 }; then
6746 lt_cv_ld_exported_symbols_list=yes
6747else
6748 $as_echo "$as_me: failed program was:" >&5
6749sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6750
8934764e
BB
6751 lt_cv_ld_exported_symbols_list=no
6752fi
bf9f3bac 6753
8934764e
BB
6754rm -rf conftest.dSYM
6755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6756 conftest$ac_exeext conftest.$ac_ext
6757 LDFLAGS="$save_LDFLAGS"
bf9f3bac 6758
8934764e
BB
6759fi
6760{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6761$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
bf9f3bac 6762 case $host_os in
8934764e
BB
6763 rhapsody* | darwin1.[012])
6764 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6765 darwin1.*)
6766 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6767 darwin*) # darwin 5.x on
6768 # if running on 10.5 or later, the deployment target defaults
6769 # to the OS version, if on x86, and 10.4, the deployment
6770 # target defaults to 10.4. Don't you love it?
6771 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6772 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6773 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6774 10.[012]*)
6775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6776 10.*)
6777 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6778 esac
6779 ;;
6780 esac
6781 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6782 _lt_dar_single_mod='$single_module'
6783 fi
6784 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6785 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6786 else
6787 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6788 fi
6789 if test "$DSYMUTIL" != ":"; then
6790 _lt_dsymutil='~$DSYMUTIL $lib || :'
6791 else
6792 _lt_dsymutil=
6793 fi
6794 ;;
6795 esac
bf9f3bac 6796
8934764e
BB
6797ac_ext=c
6798ac_cpp='$CPP $CPPFLAGS'
6799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6803$as_echo_n "checking how to run the C preprocessor... " >&6; }
6804# On Suns, sometimes $CPP names a directory.
6805if test -n "$CPP" && test -d "$CPP"; then
6806 CPP=
6807fi
6808if test -z "$CPP"; then
6809 if test "${ac_cv_prog_CPP+set}" = set; then
6810 $as_echo_n "(cached) " >&6
6811else
6812 # Double quotes because CPP needs to be expanded
6813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6814 do
6815 ac_preproc_ok=false
6816for ac_c_preproc_warn_flag in '' yes
6817do
6818 # Use a header file that comes with gcc, so configuring glibc
6819 # with a fresh cross-compiler works.
6820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6821 # <limits.h> exists even on freestanding compilers.
6822 # On the NeXT, cc -E runs the code through the compiler's parser,
6823 # not just through cpp. "Syntax error" is here to catch this case.
6824 cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h. */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h. */
6830#ifdef __STDC__
6831# include <limits.h>
6832#else
6833# include <assert.h>
6834#endif
6835 Syntax error
6836_ACEOF
6837if { (ac_try="$ac_cpp conftest.$ac_ext"
6838case "(($ac_try" in
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6841esac
6842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6843$as_echo "$ac_try_echo") >&5
6844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } >/dev/null && {
6851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 }; then
6854 :
6855else
6856 $as_echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6858
8934764e
BB
6859 # Broken: fails on valid input.
6860continue
6861fi
bf9f3bac 6862
8934764e 6863rm -f conftest.err conftest.$ac_ext
bf9f3bac 6864
8934764e
BB
6865 # OK, works on sane cases. Now check whether nonexistent headers
6866 # can be detected and how.
6867 cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h. */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h. */
6873#include <ac_nonexistent.h>
6874_ACEOF
6875if { (ac_try="$ac_cpp conftest.$ac_ext"
6876case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879esac
6880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881$as_echo "$ac_try_echo") >&5
6882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } >/dev/null && {
6889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 }; then
6892 # Broken: success on invalid input.
6893continue
6894else
6895 $as_echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6897
8934764e
BB
6898 # Passes both tests.
6899ac_preproc_ok=:
6900break
6901fi
bf9f3bac 6902
8934764e 6903rm -f conftest.err conftest.$ac_ext
bf9f3bac 6904
8934764e
BB
6905done
6906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6907rm -f conftest.err conftest.$ac_ext
6908if $ac_preproc_ok; then
6909 break
6910fi
bf9f3bac 6911
8934764e
BB
6912 done
6913 ac_cv_prog_CPP=$CPP
bf9f3bac 6914
8934764e
BB
6915fi
6916 CPP=$ac_cv_prog_CPP
6917else
6918 ac_cv_prog_CPP=$CPP
6919fi
6920{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6921$as_echo "$CPP" >&6; }
6922ac_preproc_ok=false
6923for ac_c_preproc_warn_flag in '' yes
6924do
6925 # Use a header file that comes with gcc, so configuring glibc
6926 # with a fresh cross-compiler works.
6927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6928 # <limits.h> exists even on freestanding compilers.
6929 # On the NeXT, cc -E runs the code through the compiler's parser,
6930 # not just through cpp. "Syntax error" is here to catch this case.
6931 cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
6937#ifdef __STDC__
6938# include <limits.h>
6939#else
6940# include <assert.h>
6941#endif
6942 Syntax error
6943_ACEOF
6944if { (ac_try="$ac_cpp conftest.$ac_ext"
6945case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948esac
6949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6950$as_echo "$ac_try_echo") >&5
6951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } >/dev/null && {
6958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 }; then
6961 :
6962else
6963 $as_echo "$as_me: failed program was:" >&5
6964sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6965
8934764e
BB
6966 # Broken: fails on valid input.
6967continue
6968fi
bf9f3bac 6969
8934764e 6970rm -f conftest.err conftest.$ac_ext
bf9f3bac 6971
8934764e
BB
6972 # OK, works on sane cases. Now check whether nonexistent headers
6973 # can be detected and how.
6974 cat >conftest.$ac_ext <<_ACEOF
6975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
6980#include <ac_nonexistent.h>
6981_ACEOF
6982if { (ac_try="$ac_cpp conftest.$ac_ext"
6983case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986esac
6987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988$as_echo "$ac_try_echo") >&5
6989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } >/dev/null && {
6996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 }; then
6999 # Broken: success on invalid input.
7000continue
7001else
7002 $as_echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7004
8934764e
BB
7005 # Passes both tests.
7006ac_preproc_ok=:
7007break
7008fi
bf9f3bac 7009
8934764e 7010rm -f conftest.err conftest.$ac_ext
bf9f3bac 7011
8934764e
BB
7012done
7013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7014rm -f conftest.err conftest.$ac_ext
7015if $ac_preproc_ok; then
7016 :
7017else
7018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7020{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7021See \`config.log' for more details." >&5
7022$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7023See \`config.log' for more details." >&2;}
7024 { (exit 1); exit 1; }; }; }
7025fi
bf9f3bac 7026
8934764e
BB
7027ac_ext=c
7028ac_cpp='$CPP $CPPFLAGS'
7029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 7032
bf9f3bac 7033
8934764e
BB
7034{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7035$as_echo_n "checking for ANSI C header files... " >&6; }
7036if test "${ac_cv_header_stdc+set}" = set; then
7037 $as_echo_n "(cached) " >&6
7038else
7039 cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
7045#include <stdlib.h>
7046#include <stdarg.h>
7047#include <string.h>
7048#include <float.h>
bf9f3bac 7049
8934764e
BB
7050int
7051main ()
7052{
bf9f3bac 7053
8934764e
BB
7054 ;
7055 return 0;
7056}
7057_ACEOF
7058rm -f conftest.$ac_objext
7059if { (ac_try="$ac_compile"
7060case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063esac
7064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7065$as_echo "$ac_try_echo") >&5
7066 (eval "$ac_compile") 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest.$ac_objext; then
7076 ac_cv_header_stdc=yes
bf9f3bac 7077else
8934764e
BB
7078 $as_echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7080
8934764e 7081 ac_cv_header_stdc=no
bf9f3bac 7082fi
bf9f3bac 7083
8934764e 7084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7085
8934764e
BB
7086if test $ac_cv_header_stdc = yes; then
7087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7088 cat >conftest.$ac_ext <<_ACEOF
7089/* confdefs.h. */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h. */
7094#include <string.h>
bf9f3bac 7095
8934764e
BB
7096_ACEOF
7097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "memchr" >/dev/null 2>&1; then
7099 :
bf9f3bac 7100else
8934764e
BB
7101 ac_cv_header_stdc=no
7102fi
7103rm -f conftest*
bf9f3bac 7104
7105fi
bf9f3bac 7106
8934764e
BB
7107if test $ac_cv_header_stdc = yes; then
7108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7109 cat >conftest.$ac_ext <<_ACEOF
7110/* confdefs.h. */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h. */
7115#include <stdlib.h>
7116
7117_ACEOF
7118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119 $EGREP "free" >/dev/null 2>&1; then
7120 :
bf9f3bac 7121else
8934764e 7122 ac_cv_header_stdc=no
bf9f3bac 7123fi
8934764e 7124rm -f conftest*
bf9f3bac 7125
8934764e 7126fi
bf9f3bac 7127
8934764e
BB
7128if test $ac_cv_header_stdc = yes; then
7129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7130 if test "$cross_compiling" = yes; then
7131 :
bf9f3bac 7132else
8934764e
BB
7133 cat >conftest.$ac_ext <<_ACEOF
7134/* confdefs.h. */
7135_ACEOF
7136cat confdefs.h >>conftest.$ac_ext
7137cat >>conftest.$ac_ext <<_ACEOF
7138/* end confdefs.h. */
7139#include <ctype.h>
7140#include <stdlib.h>
7141#if ((' ' & 0x0FF) == 0x020)
7142# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7143# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7144#else
7145# define ISLOWER(c) \
7146 (('a' <= (c) && (c) <= 'i') \
7147 || ('j' <= (c) && (c) <= 'r') \
7148 || ('s' <= (c) && (c) <= 'z'))
7149# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7150#endif
bf9f3bac 7151
8934764e
BB
7152#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7153int
7154main ()
7155{
7156 int i;
7157 for (i = 0; i < 256; i++)
7158 if (XOR (islower (i), ISLOWER (i))
7159 || toupper (i) != TOUPPER (i))
7160 return 2;
7161 return 0;
7162}
7163_ACEOF
7164rm -f conftest$ac_exeext
7165if { (ac_try="$ac_link"
7166case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169esac
7170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171$as_echo "$ac_try_echo") >&5
7172 (eval "$ac_link") 2>&5
7173 ac_status=$?
7174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7176 { (case "(($ac_try" in
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7179esac
7180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7181$as_echo "$ac_try_echo") >&5
7182 (eval "$ac_try") 2>&5
7183 ac_status=$?
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 :
7187else
7188 $as_echo "$as_me: program exited with status $ac_status" >&5
7189$as_echo "$as_me: failed program was:" >&5
7190sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7191
8934764e
BB
7192( exit $ac_status )
7193ac_cv_header_stdc=no
7194fi
7195rm -rf conftest.dSYM
7196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7197fi
bf9f3bac 7198
7199
bf9f3bac 7200fi
8934764e
BB
7201fi
7202{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7203$as_echo "$ac_cv_header_stdc" >&6; }
7204if test $ac_cv_header_stdc = yes; then
bf9f3bac 7205
8934764e
BB
7206cat >>confdefs.h <<\_ACEOF
7207#define STDC_HEADERS 1
7208_ACEOF
bf9f3bac 7209
8934764e 7210fi
bf9f3bac 7211
8934764e 7212# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bf9f3bac 7213
bf9f3bac 7214
bf9f3bac 7215
bf9f3bac 7216
bf9f3bac 7217
bf9f3bac 7218
bf9f3bac 7219
bf9f3bac 7220
bf9f3bac 7221
8934764e
BB
7222for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7223 inttypes.h stdint.h unistd.h
7224do
7225as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7226{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7227$as_echo_n "checking for $ac_header... " >&6; }
7228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7229 $as_echo_n "(cached) " >&6
7230else
7231 cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h. */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
7236/* end confdefs.h. */
7237$ac_includes_default
bf9f3bac 7238
8934764e
BB
7239#include <$ac_header>
7240_ACEOF
7241rm -f conftest.$ac_objext
7242if { (ac_try="$ac_compile"
7243case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246esac
7247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248$as_echo "$ac_try_echo") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 eval "$as_ac_Header=yes"
7260else
7261 $as_echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7263
8934764e
BB
7264 eval "$as_ac_Header=no"
7265fi
bf9f3bac 7266
8934764e
BB
7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268fi
7269ac_res=`eval 'as_val=${'$as_ac_Header'}
7270 $as_echo "$as_val"'`
7271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7272$as_echo "$ac_res" >&6; }
7273as_val=`eval 'as_val=${'$as_ac_Header'}
7274 $as_echo "$as_val"'`
7275 if test "x$as_val" = x""yes; then
7276 cat >>confdefs.h <<_ACEOF
7277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278_ACEOF
bf9f3bac 7279
8934764e 7280fi
bf9f3bac 7281
8934764e 7282done
bf9f3bac 7283
bf9f3bac 7284
bf9f3bac 7285
8934764e
BB
7286for ac_header in dlfcn.h
7287do
7288as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7290$as_echo_n "checking for $ac_header... " >&6; }
7291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7292 $as_echo_n "(cached) " >&6
7293else
7294 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
8934764e 7300$ac_includes_default
bf9f3bac 7301
8934764e 7302#include <$ac_header>
bf9f3bac 7303_ACEOF
8934764e
BB
7304rm -f conftest.$ac_objext
7305if { (ac_try="$ac_compile"
7306case "(($ac_try" in
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7309esac
7310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7311$as_echo "$ac_try_echo") >&5
7312 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 7313 ac_status=$?
7314 grep -v '^ *+' conftest.er1 >conftest.err
7315 rm -f conftest.er1
7316 cat conftest.err >&5
8934764e
BB
7317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && {
7319 test -z "$ac_c_werror_flag" ||
7320 test ! -s conftest.err
7321 } && test -s conftest.$ac_objext; then
7322 eval "$as_ac_Header=yes"
bf9f3bac 7323else
8934764e 7324 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 7325sed 's/^/| /' conftest.$ac_ext >&5
7326
8934764e 7327 eval "$as_ac_Header=no"
bf9f3bac 7328fi
bf9f3bac 7329
8934764e
BB
7330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331fi
7332ac_res=`eval 'as_val=${'$as_ac_Header'}
7333 $as_echo "$as_val"'`
7334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7335$as_echo "$ac_res" >&6; }
7336as_val=`eval 'as_val=${'$as_ac_Header'}
7337 $as_echo "$as_val"'`
7338 if test "x$as_val" = x""yes; then
7339 cat >>confdefs.h <<_ACEOF
7340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bf9f3bac 7341_ACEOF
bf9f3bac 7342
7343fi
bf9f3bac 7344
8934764e 7345done
bf9f3bac 7346
bf9f3bac 7347
bf9f3bac 7348
8934764e 7349# Set options
bf9f3bac 7350
bf9f3bac 7351
bf9f3bac 7352
8934764e 7353 enable_dlopen=no
bf9f3bac 7354
bf9f3bac 7355
8934764e 7356 enable_win32_dll=no
bf9f3bac 7357
bf9f3bac 7358
8934764e
BB
7359 # Check whether --enable-shared was given.
7360if test "${enable_shared+set}" = set; then
7361 enableval=$enable_shared; p=${PACKAGE-default}
7362 case $enableval in
7363 yes) enable_shared=yes ;;
7364 no) enable_shared=no ;;
7365 *)
7366 enable_shared=no
7367 # Look at the argument we got. We use all the common list separators.
7368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7369 for pkg in $enableval; do
7370 IFS="$lt_save_ifs"
7371 if test "X$pkg" = "X$p"; then
7372 enable_shared=yes
7373 fi
7374 done
7375 IFS="$lt_save_ifs"
bf9f3bac 7376 ;;
8934764e
BB
7377 esac
7378else
7379 enable_shared=yes
7380fi
bf9f3bac 7381
bf9f3bac 7382
bf9f3bac 7383
bf9f3bac 7384
bf9f3bac 7385
bf9f3bac 7386
bf9f3bac 7387
8934764e
BB
7388
7389
7390 # Check whether --enable-static was given.
7391if test "${enable_static+set}" = set; then
7392 enableval=$enable_static; p=${PACKAGE-default}
7393 case $enableval in
7394 yes) enable_static=yes ;;
7395 no) enable_static=no ;;
7396 *)
7397 enable_static=no
7398 # Look at the argument we got. We use all the common list separators.
7399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7400 for pkg in $enableval; do
7401 IFS="$lt_save_ifs"
7402 if test "X$pkg" = "X$p"; then
7403 enable_static=yes
7404 fi
7405 done
7406 IFS="$lt_save_ifs"
7407 ;;
7408 esac
bf9f3bac 7409else
8934764e 7410 enable_static=yes
bf9f3bac 7411fi
bf9f3bac 7412
8934764e
BB
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422# Check whether --with-pic was given.
7423if test "${with_pic+set}" = set; then
7424 withval=$with_pic; pic_mode="$withval"
7425else
7426 pic_mode=default
bf9f3bac 7427fi
7428
7429
8934764e
BB
7430test -z "$pic_mode" && pic_mode=default
7431
7432
7433
7434
7435
7436
7437
7438 # Check whether --enable-fast-install was given.
7439if test "${enable_fast_install+set}" = set; then
7440 enableval=$enable_fast_install; p=${PACKAGE-default}
7441 case $enableval in
7442 yes) enable_fast_install=yes ;;
7443 no) enable_fast_install=no ;;
bf9f3bac 7444 *)
8934764e
BB
7445 enable_fast_install=no
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448 for pkg in $enableval; do
7449 IFS="$lt_save_ifs"
7450 if test "X$pkg" = "X$p"; then
7451 enable_fast_install=yes
7452 fi
7453 done
7454 IFS="$lt_save_ifs"
bf9f3bac 7455 ;;
7456 esac
8934764e
BB
7457else
7458 enable_fast_install=yes
7459fi
bf9f3bac 7460
bf9f3bac 7461
bf9f3bac 7462
bf9f3bac 7463
bf9f3bac 7464
bf9f3bac 7465
bf9f3bac 7466
bf9f3bac 7467
bf9f3bac 7468
bf9f3bac 7469
bf9f3bac 7470
8934764e
BB
7471# This can be used to rebuild libtool when needed
7472LIBTOOL_DEPS="$ltmain"
bf9f3bac 7473
8934764e
BB
7474# Always use our own libtool.
7475LIBTOOL='$(SHELL) $(top_builddir)/libtool'
bf9f3bac 7476
bf9f3bac 7477
bf9f3bac 7478
bf9f3bac 7479
bf9f3bac 7480
bf9f3bac 7481
bf9f3bac 7482
bf9f3bac 7483
bf9f3bac 7484
bf9f3bac 7485
bf9f3bac 7486
bf9f3bac 7487
bf9f3bac 7488
bf9f3bac 7489
bf9f3bac 7490
bf9f3bac 7491
bf9f3bac 7492
bf9f3bac 7493
bf9f3bac 7494
bf9f3bac 7495
bf9f3bac 7496
bf9f3bac 7497
bf9f3bac 7498
bf9f3bac 7499
bf9f3bac 7500
8934764e 7501test -z "$LN_S" && LN_S="ln -s"
bf9f3bac 7502
bf9f3bac 7503
bf9f3bac 7504
bf9f3bac 7505
bf9f3bac 7506
bf9f3bac 7507
bf9f3bac 7508
bf9f3bac 7509
bf9f3bac 7510
bf9f3bac 7511
bf9f3bac 7512
bf9f3bac 7513
bf9f3bac 7514
bf9f3bac 7515
8934764e
BB
7516if test -n "${ZSH_VERSION+set}" ; then
7517 setopt NO_GLOB_SUBST
7518fi
bf9f3bac 7519
8934764e
BB
7520{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7521$as_echo_n "checking for objdir... " >&6; }
7522if test "${lt_cv_objdir+set}" = set; then
7523 $as_echo_n "(cached) " >&6
7524else
7525 rm -f .libs 2>/dev/null
7526mkdir .libs 2>/dev/null
7527if test -d .libs; then
7528 lt_cv_objdir=.libs
7529else
7530 # MS-DOS does not allow filenames that begin with a dot.
7531 lt_cv_objdir=_libs
7532fi
7533rmdir .libs 2>/dev/null
7534fi
7535{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7536$as_echo "$lt_cv_objdir" >&6; }
7537objdir=$lt_cv_objdir
bf9f3bac 7538
bf9f3bac 7539
bf9f3bac 7540
bf9f3bac 7541
bf9f3bac 7542
8934764e
BB
7543cat >>confdefs.h <<_ACEOF
7544#define LT_OBJDIR "$lt_cv_objdir/"
7545_ACEOF
bf9f3bac 7546
bf9f3bac 7547
bf9f3bac 7548
bf9f3bac 7549
bf9f3bac 7550
bf9f3bac 7551
bf9f3bac 7552
bf9f3bac 7553
bf9f3bac 7554
bf9f3bac 7555
bf9f3bac 7556
bf9f3bac 7557
bf9f3bac 7558
bf9f3bac 7559
bf9f3bac 7560
bf9f3bac 7561
bf9f3bac 7562
8934764e
BB
7563case $host_os in
7564aix3*)
7565 # AIX sometimes has problems with the GCC collect2 program. For some
7566 # reason, if we set the COLLECT_NAMES environment variable, the problems
7567 # vanish in a puff of smoke.
7568 if test "X${COLLECT_NAMES+set}" != Xset; then
7569 COLLECT_NAMES=
7570 export COLLECT_NAMES
7571 fi
7572 ;;
7573esac
bf9f3bac 7574
8934764e
BB
7575# Sed substitution that helps us do robust quoting. It backslashifies
7576# metacharacters that are still active within double-quoted strings.
7577sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
bf9f3bac 7578
8934764e
BB
7579# Same as above, but do not quote variable references.
7580double_quote_subst='s/\(["`\\]\)/\\\1/g'
bf9f3bac 7581
8934764e
BB
7582# Sed substitution to delay expansion of an escaped shell variable in a
7583# double_quote_subst'ed string.
7584delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
bf9f3bac 7585
8934764e
BB
7586# Sed substitution to delay expansion of an escaped single quote.
7587delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
bf9f3bac 7588
8934764e
BB
7589# Sed substitution to avoid accidental globbing in evaled expressions
7590no_glob_subst='s/\*/\\\*/g'
bf9f3bac 7591
8934764e
BB
7592# Global variables:
7593ofile=libtool
7594can_build_shared=yes
bf9f3bac 7595
8934764e
BB
7596# All known linkers require a `.a' archive for static linking (except MSVC,
7597# which needs '.lib').
7598libext=a
bf9f3bac 7599
8934764e 7600with_gnu_ld="$lt_cv_prog_gnu_ld"
bf9f3bac 7601
8934764e
BB
7602old_CC="$CC"
7603old_CFLAGS="$CFLAGS"
bf9f3bac 7604
8934764e
BB
7605# Set sane defaults for various variables
7606test -z "$CC" && CC=cc
7607test -z "$LTCC" && LTCC=$CC
7608test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7609test -z "$LD" && LD=ld
7610test -z "$ac_objext" && ac_objext=o
bf9f3bac 7611
8934764e
BB
7612for cc_temp in $compiler""; do
7613 case $cc_temp in
7614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7616 \-*) ;;
7617 *) break;;
7618 esac
7619done
7620cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
bf9f3bac 7621
bf9f3bac 7622
8934764e
BB
7623# Only perform the check for file, if the check method requires it
7624test -z "$MAGIC_CMD" && MAGIC_CMD=file
7625case $deplibs_check_method in
7626file_magic*)
7627 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7628 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7629$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7630if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7631 $as_echo_n "(cached) " >&6
7632else
7633 case $MAGIC_CMD in
7634[\\/*] | ?:[\\/]*)
7635 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7636 ;;
7637*)
7638 lt_save_MAGIC_CMD="$MAGIC_CMD"
7639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7641 for ac_dir in $ac_dummy; do
7642 IFS="$lt_save_ifs"
7643 test -z "$ac_dir" && ac_dir=.
7644 if test -f $ac_dir/${ac_tool_prefix}file; then
7645 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7646 if test -n "$file_magic_test_file"; then
7647 case $deplibs_check_method in
7648 "file_magic "*)
7649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7652 $EGREP "$file_magic_regex" > /dev/null; then
7653 :
7654 else
7655 cat <<_LT_EOF 1>&2
bf9f3bac 7656
8934764e
BB
7657*** Warning: the command libtool uses to detect shared libraries,
7658*** $file_magic_cmd, produces output that libtool cannot recognize.
7659*** The result is that libtool may fail to recognize shared libraries
7660*** as such. This will affect the creation of libtool libraries that
7661*** depend on shared libraries, but programs linked with such libtool
7662*** libraries will work regardless of this problem. Nevertheless, you
7663*** may want to report the problem to your system manager and/or to
7664*** bug-libtool@gnu.org
bf9f3bac 7665
8934764e
BB
7666_LT_EOF
7667 fi ;;
7668 esac
7669 fi
7670 break
7671 fi
7672 done
7673 IFS="$lt_save_ifs"
7674 MAGIC_CMD="$lt_save_MAGIC_CMD"
7675 ;;
7676esac
7677fi
bf9f3bac 7678
8934764e
BB
7679MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7680if test -n "$MAGIC_CMD"; then
7681 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7682$as_echo "$MAGIC_CMD" >&6; }
7683else
7684 { $as_echo "$as_me:$LINENO: result: no" >&5
7685$as_echo "no" >&6; }
7686fi
bf9f3bac 7687
bf9f3bac 7688
bf9f3bac 7689
bf9f3bac 7690
bf9f3bac 7691
8934764e
BB
7692if test -z "$lt_cv_path_MAGIC_CMD"; then
7693 if test -n "$ac_tool_prefix"; then
7694 { $as_echo "$as_me:$LINENO: checking for file" >&5
7695$as_echo_n "checking for file... " >&6; }
7696if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7698else
7699 case $MAGIC_CMD in
7700[\\/*] | ?:[\\/]*)
7701 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7702 ;;
7703*)
7704 lt_save_MAGIC_CMD="$MAGIC_CMD"
7705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7707 for ac_dir in $ac_dummy; do
7708 IFS="$lt_save_ifs"
7709 test -z "$ac_dir" && ac_dir=.
7710 if test -f $ac_dir/file; then
7711 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7712 if test -n "$file_magic_test_file"; then
7713 case $deplibs_check_method in
7714 "file_magic "*)
7715 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7718 $EGREP "$file_magic_regex" > /dev/null; then
7719 :
7720 else
7721 cat <<_LT_EOF 1>&2
7722
7723*** Warning: the command libtool uses to detect shared libraries,
7724*** $file_magic_cmd, produces output that libtool cannot recognize.
7725*** The result is that libtool may fail to recognize shared libraries
7726*** as such. This will affect the creation of libtool libraries that
7727*** depend on shared libraries, but programs linked with such libtool
7728*** libraries will work regardless of this problem. Nevertheless, you
7729*** may want to report the problem to your system manager and/or to
7730*** bug-libtool@gnu.org
bf9f3bac 7731
8934764e
BB
7732_LT_EOF
7733 fi ;;
7734 esac
7735 fi
7736 break
7737 fi
7738 done
7739 IFS="$lt_save_ifs"
7740 MAGIC_CMD="$lt_save_MAGIC_CMD"
7741 ;;
7742esac
7743fi
bf9f3bac 7744
8934764e
BB
7745MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746if test -n "$MAGIC_CMD"; then
7747 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7748$as_echo "$MAGIC_CMD" >&6; }
7749else
7750 { $as_echo "$as_me:$LINENO: result: no" >&5
7751$as_echo "no" >&6; }
7752fi
bf9f3bac 7753
7754
8934764e
BB
7755 else
7756 MAGIC_CMD=:
bf9f3bac 7757 fi
7758fi
7759
8934764e
BB
7760 fi
7761 ;;
7762esac
7763
7764# Use C for the default configuration in the libtool script
bf9f3bac 7765
8934764e 7766lt_save_CC="$CC"
bf9f3bac 7767ac_ext=c
7768ac_cpp='$CPP $CPPFLAGS'
7769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772
bf9f3bac 7773
8934764e
BB
7774# Source file extension for C test sources.
7775ac_ext=c
bf9f3bac 7776
8934764e
BB
7777# Object file extension for compiled C test sources.
7778objext=o
7779objext=$objext
bf9f3bac 7780
8934764e
BB
7781# Code to be used in simple compile tests
7782lt_simple_compile_test_code="int some_variable = 0;"
7783
7784# Code to be used in simple link tests
7785lt_simple_link_test_code='int main(){return(0);}'
bf9f3bac 7786
7787
bf9f3bac 7788
bf9f3bac 7789
bf9f3bac 7790
bf9f3bac 7791
bf9f3bac 7792
7793# If no C compiler was specified, use CC.
7794LTCC=${LTCC-"$CC"}
7795
7796# If no C compiler flags were specified, use CFLAGS.
7797LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7798
7799# Allow CC to be a program name with arguments.
7800compiler=$CC
7801
8934764e
BB
7802# Save the default compiler, since it gets overwritten when the other
7803# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7804compiler_DEFAULT=$CC
bf9f3bac 7805
7806# save warnings/boilerplate of simple test code
7807ac_outfile=conftest.$ac_objext
8934764e 7808echo "$lt_simple_compile_test_code" >conftest.$ac_ext
bf9f3bac 7809eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7810_lt_compiler_boilerplate=`cat conftest.err`
8934764e 7811$RM conftest*
bf9f3bac 7812
7813ac_outfile=conftest.$ac_objext
8934764e 7814echo "$lt_simple_link_test_code" >conftest.$ac_ext
bf9f3bac 7815eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7816_lt_linker_boilerplate=`cat conftest.err`
8934764e 7817$RM -r conftest*
bf9f3bac 7818
bf9f3bac 7819
8934764e 7820if test -n "$compiler"; then
bf9f3bac 7821
8934764e 7822lt_prog_compiler_no_builtin_flag=
bf9f3bac 7823
7824if test "$GCC" = yes; then
8934764e 7825 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
bf9f3bac 7826
8934764e
BB
7827 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7828$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
bf9f3bac 7829if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8934764e 7830 $as_echo_n "(cached) " >&6
bf9f3bac 7831else
7832 lt_cv_prog_compiler_rtti_exceptions=no
8934764e
BB
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 7835 lt_compiler_flag="-fno-rtti -fno-exceptions"
7836 # Insert the option either (1) after the last *FLAGS variable, or
7837 # (2) before a word containing "conftest.", or (3) at the end.
7838 # Note that $ac_compile itself does not contain backslashes and begins
7839 # with a dollar sign (not a hyphen), so the echo should work correctly.
7840 # The option is referenced via a variable to avoid confusing sed.
7841 lt_compile=`echo "$ac_compile" | $SED \
7842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844 -e 's:$: $lt_compiler_flag:'`
73fc084e 7845 (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
bf9f3bac 7846 (eval "$lt_compile" 2>conftest.err)
7847 ac_status=$?
7848 cat conftest.err >&5
73fc084e 7849 echo "$as_me:7849: \$? = $ac_status" >&5
bf9f3bac 7850 if (exit $ac_status) && test -s "$ac_outfile"; then
7851 # The compiler can only warn and ignore the option if not recognized
7852 # So say no if there are warnings other than the usual output.
8934764e 7853 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 7854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856 lt_cv_prog_compiler_rtti_exceptions=yes
7857 fi
7858 fi
8934764e 7859 $RM conftest*
bf9f3bac 7860
7861fi
8934764e
BB
7862{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7863$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
bf9f3bac 7864
7865if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8934764e 7866 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
bf9f3bac 7867else
7868 :
7869fi
7870
7871fi
7872
bf9f3bac 7873
8934764e
BB
7874
7875
7876
7877
7878 lt_prog_compiler_wl=
7879lt_prog_compiler_pic=
7880lt_prog_compiler_static=
7881
7882{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7883$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
bf9f3bac 7884
7885 if test "$GCC" = yes; then
8934764e
BB
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_static='-static'
bf9f3bac 7888
7889 case $host_os in
7890 aix*)
7891 # All AIX code is PIC.
7892 if test "$host_cpu" = ia64; then
7893 # AIX 5 now supports IA64 processor
8934764e 7894 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7895 fi
7896 ;;
7897
7898 amigaos*)
8934764e
BB
7899 case $host_cpu in
7900 powerpc)
7901 # see comment about AmigaOS4 .so support
7902 lt_prog_compiler_pic='-fPIC'
7903 ;;
7904 m68k)
7905 # FIXME: we need at least 68020 code to build shared libraries, but
7906 # adding the `-m68020' flag to GCC prevents building anything better,
7907 # like `-m68040'.
7908 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7909 ;;
7910 esac
bf9f3bac 7911 ;;
7912
8934764e 7913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
bf9f3bac 7914 # PIC is the default for these OSes.
7915 ;;
7916
8934764e 7917 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7918 # This hack is so that the source file can tell whether it is being
7919 # built for inclusion in a dll (and should export symbols for example).
8934764e
BB
7920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921 # (--disable-auto-import) libraries
7922 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7923 ;;
7924
7925 darwin* | rhapsody*)
7926 # PIC is the default on this platform
7927 # Common symbols not allowed in MH_DYLIB files
8934764e
BB
7928 lt_prog_compiler_pic='-fno-common'
7929 ;;
7930
7931 hpux*)
7932 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7933 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7934 # sets the default TLS model and affects inlining.
7935 case $host_cpu in
7936 hppa*64*)
7937 # +Z the default
7938 ;;
7939 *)
7940 lt_prog_compiler_pic='-fPIC'
7941 ;;
7942 esac
bf9f3bac 7943 ;;
7944
8934764e 7945 interix[3-9]*)
bf9f3bac 7946 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7947 # Instead, we relocate shared libraries at runtime.
7948 ;;
7949
7950 msdosdjgpp*)
7951 # Just because we use GCC doesn't mean we suddenly get shared libraries
7952 # on systems that don't support them.
8934764e 7953 lt_prog_compiler_can_build_shared=no
bf9f3bac 7954 enable_shared=no
7955 ;;
7956
8934764e
BB
7957 *nto* | *qnx*)
7958 # QNX uses GNU C++, but need to define -shared option too, otherwise
7959 # it will coredump.
7960 lt_prog_compiler_pic='-fPIC -shared'
7961 ;;
7962
bf9f3bac 7963 sysv4*MP*)
7964 if test -d /usr/nec; then
8934764e 7965 lt_prog_compiler_pic=-Kconform_pic
bf9f3bac 7966 fi
7967 ;;
7968
bf9f3bac 7969 *)
8934764e 7970 lt_prog_compiler_pic='-fPIC'
bf9f3bac 7971 ;;
7972 esac
7973 else
7974 # PORTME Check for flag to pass linker flags through the system compiler.
7975 case $host_os in
7976 aix*)
8934764e 7977 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7978 if test "$host_cpu" = ia64; then
7979 # AIX 5 now supports IA64 processor
8934764e 7980 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7981 else
8934764e 7982 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
bf9f3bac 7983 fi
7984 ;;
bf9f3bac 7985
8934764e 7986 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7987 # This hack is so that the source file can tell whether it is being
7988 # built for inclusion in a dll (and should export symbols for example).
8934764e 7989 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7990 ;;
7991
7992 hpux9* | hpux10* | hpux11*)
8934764e 7993 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7995 # not for PA HP-UX.
7996 case $host_cpu in
7997 hppa*64*|ia64*)
7998 # +Z the default
7999 ;;
8000 *)
8934764e 8001 lt_prog_compiler_pic='+Z'
bf9f3bac 8002 ;;
8003 esac
8004 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8934764e 8005 lt_prog_compiler_static='${wl}-a ${wl}archive'
bf9f3bac 8006 ;;
8007
8008 irix5* | irix6* | nonstopux*)
8934764e 8009 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8010 # PIC (with -KPIC) is the default.
8934764e 8011 lt_prog_compiler_static='-non_shared'
bf9f3bac 8012 ;;
8013
8934764e 8014 linux* | k*bsd*-gnu)
bf9f3bac 8015 case $cc_basename in
8934764e
BB
8016 # old Intel for x86_64 which still supported -KPIC.
8017 ecc*)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-static'
8021 ;;
8022 # icc used to be incompatible with GCC.
8023 # ICC 10 doesn't accept -KPIC any more.
8024 icc* | ifort*)
8025 lt_prog_compiler_wl='-Wl,'
8026 lt_prog_compiler_pic='-fPIC'
8027 lt_prog_compiler_static='-static'
bf9f3bac 8028 ;;
8934764e
BB
8029 # Lahey Fortran 8.1.
8030 lf95*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='--shared'
8033 lt_prog_compiler_static='--static'
8034 ;;
bf9f3bac 8035 pgcc* | pgf77* | pgf90* | pgf95*)
8036 # Portland Group compilers (*not* the Pentium gcc compiler,
8037 # which looks to be a dead project)
8934764e
BB
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-fpic'
8040 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8041 ;;
8042 ccc*)
8934764e 8043 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8044 # All Alpha code is PIC.
8934764e 8045 lt_prog_compiler_static='-non_shared'
bf9f3bac 8046 ;;
8934764e
BB
8047 xl*)
8048 # IBM XL C 8.0/Fortran 10.1 on PPC
8049 lt_prog_compiler_wl='-Wl,'
8050 lt_prog_compiler_pic='-qpic'
8051 lt_prog_compiler_static='-qstaticlink'
8052 ;;
8053 *)
8054 case `$CC -V 2>&1 | sed 5q` in
8055 *Sun\ C*)
8056 # Sun C 5.9
8057 lt_prog_compiler_pic='-KPIC'
8058 lt_prog_compiler_static='-Bstatic'
8059 lt_prog_compiler_wl='-Wl,'
8060 ;;
8061 *Sun\ F*)
8062 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 lt_prog_compiler_wl=''
8066 ;;
8067 esac
8068 ;;
bf9f3bac 8069 esac
8070 ;;
8071
8934764e
BB
8072 newsos6)
8073 lt_prog_compiler_pic='-KPIC'
8074 lt_prog_compiler_static='-Bstatic'
8075 ;;
8076
8077 *nto* | *qnx*)
8078 # QNX uses GNU C++, but need to define -shared option too, otherwise
8079 # it will coredump.
8080 lt_prog_compiler_pic='-fPIC -shared'
8081 ;;
8082
bf9f3bac 8083 osf3* | osf4* | osf5*)
8934764e 8084 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8085 # All OSF/1 code is PIC.
8934764e
BB
8086 lt_prog_compiler_static='-non_shared'
8087 ;;
8088
8089 rdos*)
8090 lt_prog_compiler_static='-non_shared'
bf9f3bac 8091 ;;
8092
8093 solaris*)
8934764e
BB
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8096 case $cc_basename in
8097 f77* | f90* | f95*)
8934764e 8098 lt_prog_compiler_wl='-Qoption ld ';;
bf9f3bac 8099 *)
8934764e 8100 lt_prog_compiler_wl='-Wl,';;
bf9f3bac 8101 esac
8102 ;;
8103
8104 sunos4*)
8934764e
BB
8105 lt_prog_compiler_wl='-Qoption ld '
8106 lt_prog_compiler_pic='-PIC'
8107 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8108 ;;
8109
8110 sysv4 | sysv4.2uw2* | sysv4.3*)
8934764e
BB
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='-KPIC'
8113 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8114 ;;
8115
8116 sysv4*MP*)
8117 if test -d /usr/nec ;then
8934764e
BB
8118 lt_prog_compiler_pic='-Kconform_pic'
8119 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8120 fi
8121 ;;
8122
8123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934764e
BB
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8127 ;;
8128
8129 unicos*)
8934764e
BB
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_can_build_shared=no
bf9f3bac 8132 ;;
8133
8134 uts4*)
8934764e
BB
8135 lt_prog_compiler_pic='-pic'
8136 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8137 ;;
8138
8139 *)
8934764e 8140 lt_prog_compiler_can_build_shared=no
bf9f3bac 8141 ;;
8142 esac
8143 fi
8144
8934764e
BB
8145case $host_os in
8146 # For platforms which do not support PIC, -DPIC is meaningless:
8147 *djgpp*)
8148 lt_prog_compiler_pic=
8149 ;;
8150 *)
8151 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8152 ;;
8153esac
8154{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8155$as_echo "$lt_prog_compiler_pic" >&6; }
8156
8157
8158
8159
8160
bf9f3bac 8161
8162#
8163# Check to make sure the PIC flag actually works.
8164#
8934764e
BB
8165if test -n "$lt_prog_compiler_pic"; then
8166 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8167$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8168if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8169 $as_echo_n "(cached) " >&6
8170else
8171 lt_cv_prog_compiler_pic_works=no
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
bf9f3bac 8175 # Insert the option either (1) after the last *FLAGS variable, or
8176 # (2) before a word containing "conftest.", or (3) at the end.
8177 # Note that $ac_compile itself does not contain backslashes and begins
8178 # with a dollar sign (not a hyphen), so the echo should work correctly.
8179 # The option is referenced via a variable to avoid confusing sed.
8180 lt_compile=`echo "$ac_compile" | $SED \
8181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8183 -e 's:$: $lt_compiler_flag:'`
73fc084e 8184 (eval echo "\"\$as_me:8184: $lt_compile\"" >&5)
bf9f3bac 8185 (eval "$lt_compile" 2>conftest.err)
8186 ac_status=$?
8187 cat conftest.err >&5
73fc084e 8188 echo "$as_me:8188: \$? = $ac_status" >&5
bf9f3bac 8189 if (exit $ac_status) && test -s "$ac_outfile"; then
8190 # The compiler can only warn and ignore the option if not recognized
8191 # So say no if there are warnings other than the usual output.
8934764e 8192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 8193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8195 lt_cv_prog_compiler_pic_works=yes
bf9f3bac 8196 fi
8197 fi
8934764e 8198 $RM conftest*
bf9f3bac 8199
8200fi
8934764e
BB
8201{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8202$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
bf9f3bac 8203
8934764e
BB
8204if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8205 case $lt_prog_compiler_pic in
bf9f3bac 8206 "" | " "*) ;;
8934764e 8207 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
bf9f3bac 8208 esac
8209else
8934764e
BB
8210 lt_prog_compiler_pic=
8211 lt_prog_compiler_can_build_shared=no
bf9f3bac 8212fi
8213
8214fi
8934764e
BB
8215
8216
8217
8218
8219
bf9f3bac 8220
8221#
8222# Check to make sure the static flag actually works.
8223#
8934764e
BB
8224wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8225{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8226$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8227if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8228 $as_echo_n "(cached) " >&6
bf9f3bac 8229else
8934764e 8230 lt_cv_prog_compiler_static_works=no
bf9f3bac 8231 save_LDFLAGS="$LDFLAGS"
8232 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8934764e 8233 echo "$lt_simple_link_test_code" > conftest.$ac_ext
bf9f3bac 8234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8235 # The linker can only warn and ignore the option if not recognized
8236 # So say no if there are warnings
8237 if test -s conftest.err; then
8238 # Append any errors to the config.log.
8239 cat conftest.err 1>&5
8934764e 8240 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
bf9f3bac 8241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242 if diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8243 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8244 fi
8245 else
8934764e 8246 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8247 fi
8248 fi
8934764e 8249 $RM -r conftest*
bf9f3bac 8250 LDFLAGS="$save_LDFLAGS"
8251
8252fi
8934764e
BB
8253{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8254$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
bf9f3bac 8255
8934764e 8256if test x"$lt_cv_prog_compiler_static_works" = xyes; then
bf9f3bac 8257 :
8258else
8934764e
BB
8259 lt_prog_compiler_static=
8260fi
8261
8262
8263
8264
8265
8266
8267
8268 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8269$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8270if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8271 $as_echo_n "(cached) " >&6
8272else
8273 lt_cv_prog_compiler_c_o=no
8274 $RM -r conftest 2>/dev/null
8275 mkdir conftest
8276 cd conftest
8277 mkdir out
8278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8279
8280 lt_compiler_flag="-o out/conftest2.$ac_objext"
8281 # Insert the option either (1) after the last *FLAGS variable, or
8282 # (2) before a word containing "conftest.", or (3) at the end.
8283 # Note that $ac_compile itself does not contain backslashes and begins
8284 # with a dollar sign (not a hyphen), so the echo should work correctly.
8285 lt_compile=`echo "$ac_compile" | $SED \
8286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8288 -e 's:$: $lt_compiler_flag:'`
73fc084e 8289 (eval echo "\"\$as_me:8289: $lt_compile\"" >&5)
8934764e
BB
8290 (eval "$lt_compile" 2>out/conftest.err)
8291 ac_status=$?
8292 cat out/conftest.err >&5
73fc084e 8293 echo "$as_me:8293: \$? = $ac_status" >&5
8934764e
BB
8294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8295 then
8296 # The compiler can only warn and ignore the option if not recognized
8297 # So say no if there are warnings
8298 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8301 lt_cv_prog_compiler_c_o=yes
8302 fi
8303 fi
8304 chmod u+w . 2>&5
8305 $RM conftest*
8306 # SGI C++ compiler will create directory out/ii_files/ for
8307 # template instantiation
8308 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8309 $RM out/* && rmdir out
8310 cd ..
8311 $RM -r conftest
8312 $RM conftest*
8313
bf9f3bac 8314fi
8934764e
BB
8315{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8316$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8317
8318
bf9f3bac 8319
8320
8934764e
BB
8321
8322
8323 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8324$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8325if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8326 $as_echo_n "(cached) " >&6
bf9f3bac 8327else
8934764e
BB
8328 lt_cv_prog_compiler_c_o=no
8329 $RM -r conftest 2>/dev/null
bf9f3bac 8330 mkdir conftest
8331 cd conftest
8332 mkdir out
8934764e 8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 8334
8335 lt_compiler_flag="-o out/conftest2.$ac_objext"
8336 # Insert the option either (1) after the last *FLAGS variable, or
8337 # (2) before a word containing "conftest.", or (3) at the end.
8338 # Note that $ac_compile itself does not contain backslashes and begins
8339 # with a dollar sign (not a hyphen), so the echo should work correctly.
8340 lt_compile=`echo "$ac_compile" | $SED \
8341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8343 -e 's:$: $lt_compiler_flag:'`
73fc084e 8344 (eval echo "\"\$as_me:8344: $lt_compile\"" >&5)
bf9f3bac 8345 (eval "$lt_compile" 2>out/conftest.err)
8346 ac_status=$?
8347 cat out/conftest.err >&5
73fc084e 8348 echo "$as_me:8348: \$? = $ac_status" >&5
bf9f3bac 8349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8350 then
8351 # The compiler can only warn and ignore the option if not recognized
8352 # So say no if there are warnings
8934764e 8353 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
bf9f3bac 8354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8934764e 8356 lt_cv_prog_compiler_c_o=yes
bf9f3bac 8357 fi
8358 fi
8359 chmod u+w . 2>&5
8934764e 8360 $RM conftest*
bf9f3bac 8361 # SGI C++ compiler will create directory out/ii_files/ for
8362 # template instantiation
8934764e
BB
8363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8364 $RM out/* && rmdir out
bf9f3bac 8365 cd ..
8934764e
BB
8366 $RM -r conftest
8367 $RM conftest*
bf9f3bac 8368
8369fi
8934764e
BB
8370{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8371$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8372
8373
bf9f3bac 8374
8375
8376hard_links="nottested"
8934764e 8377if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
bf9f3bac 8378 # do not overwrite the value of need_locks provided by the user
8934764e
BB
8379 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8380$as_echo_n "checking if we can lock with hard links... " >&6; }
bf9f3bac 8381 hard_links=yes
8934764e 8382 $RM conftest*
bf9f3bac 8383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8384 touch conftest.a
8385 ln conftest.a conftest.b 2>&5 || hard_links=no
8386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934764e
BB
8387 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8388$as_echo "$hard_links" >&6; }
bf9f3bac 8389 if test "$hard_links" = no; then
8934764e
BB
8390 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8391$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
bf9f3bac 8392 need_locks=warn
8393 fi
8394else
8395 need_locks=no
8396fi
8397
8934764e
BB
8398
8399
8400
8401
8402
8403 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8404$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
bf9f3bac 8405
8406 runpath_var=
8934764e
BB
8407 allow_undefined_flag=
8408 always_export_symbols=no
8409 archive_cmds=
8410 archive_expsym_cmds=
8411 compiler_needs_object=no
8412 enable_shared_with_static_runtimes=no
8413 export_dynamic_flag_spec=
8414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8415 hardcode_automatic=no
8416 hardcode_direct=no
8417 hardcode_direct_absolute=no
8418 hardcode_libdir_flag_spec=
8419 hardcode_libdir_flag_spec_ld=
8420 hardcode_libdir_separator=
8421 hardcode_minus_L=no
8422 hardcode_shlibpath_var=unsupported
8423 inherit_rpath=no
8424 link_all_deplibs=unknown
8425 module_cmds=
8426 module_expsym_cmds=
8427 old_archive_from_new_cmds=
8428 old_archive_from_expsyms_cmds=
8429 thread_safe_flag_spec=
8430 whole_archive_flag_spec=
bf9f3bac 8431 # include_expsyms should be a list of space-separated symbols to be *always*
8432 # included in the symbol list
8934764e 8433 include_expsyms=
bf9f3bac 8434 # exclude_expsyms can be an extended regexp of symbols to exclude
8435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8437 # as well as any symbol that contains `d'.
8934764e 8438 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
bf9f3bac 8439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8440 # platforms (ab)use it in PIC code, but their linkers get confused if
8441 # the symbol is explicitly referenced. Since portable code cannot
8442 # rely on this symbol name, it's probably fine to never include it in
8443 # preloaded symbol tables.
8934764e 8444 # Exclude shared library initialization/finalization symbols.
bf9f3bac 8445 extract_expsyms_cmds=
bf9f3bac 8446
8447 case $host_os in
8934764e 8448 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 8449 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8450 # When not using gcc, we currently assume that we are using
8451 # Microsoft Visual C++.
8452 if test "$GCC" != yes; then
8453 with_gnu_ld=no
8454 fi
8455 ;;
8456 interix*)
8457 # we just hope/assume this is gcc and not c89 (= MSVC++)
8458 with_gnu_ld=yes
8459 ;;
8460 openbsd*)
8461 with_gnu_ld=no
8462 ;;
8463 esac
8464
8934764e 8465 ld_shlibs=yes
bf9f3bac 8466 if test "$with_gnu_ld" = yes; then
8467 # If archive_cmds runs LD, not CC, wlarc should be empty
8468 wlarc='${wl}'
8469
8470 # Set some defaults for GNU ld with shared library support. These
8471 # are reset later if shared libraries are not supported. Putting them
8472 # here allows them to be overridden if necessary.
8473 runpath_var=LD_RUN_PATH
8934764e
BB
8474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8475 export_dynamic_flag_spec='${wl}--export-dynamic'
bf9f3bac 8476 # ancient GNU ld didn't support --whole-archive et. al.
8934764e
BB
8477 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8478 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8479 else
8480 whole_archive_flag_spec=
bf9f3bac 8481 fi
8482 supports_anon_versioning=no
8934764e 8483 case `$LD -v 2>&1` in
bf9f3bac 8484 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8485 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8486 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8487 *\ 2.11.*) ;; # other 2.11 versions
8488 *) supports_anon_versioning=yes ;;
8489 esac
8490
8491 # See if GNU ld supports shared libraries.
8492 case $host_os in
8934764e 8493 aix[3-9]*)
bf9f3bac 8494 # On AIX/PPC, the GNU linker is very broken
8495 if test "$host_cpu" != ia64; then
8934764e
BB
8496 ld_shlibs=no
8497 cat <<_LT_EOF 1>&2
bf9f3bac 8498
8499*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8500*** to be unable to reliably create shared libraries on AIX.
8501*** Therefore, libtool is disabling shared libraries support. If you
8502*** really care for shared libraries, you may want to modify your PATH
8503*** so that a non-GNU linker is found, and then restart.
8504
8934764e 8505_LT_EOF
bf9f3bac 8506 fi
8507 ;;
8508
8509 amigaos*)
8934764e
BB
8510 case $host_cpu in
8511 powerpc)
8512 # see comment about AmigaOS4 .so support
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 archive_expsym_cmds=''
8515 ;;
8516 m68k)
8517 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)'
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 hardcode_minus_L=yes
8520 ;;
8521 esac
bf9f3bac 8522 ;;
8523
8524 beos*)
8934764e
BB
8525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8526 allow_undefined_flag=unsupported
bf9f3bac 8527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8528 # support --undefined. This deserves some investigation. FIXME
8934764e 8529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8530 else
8934764e 8531 ld_shlibs=no
bf9f3bac 8532 fi
8533 ;;
8534
8934764e
BB
8535 cygwin* | mingw* | pw32* | cegcc*)
8536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
bf9f3bac 8537 # as there is no search path for DLLs.
8934764e
BB
8538 hardcode_libdir_flag_spec='-L$libdir'
8539 allow_undefined_flag=unsupported
8540 always_export_symbols=no
8541 enable_shared_with_static_runtimes=yes
8542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8543
8544 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
bf9f3bac 8546 # If the export-symbols file already is a .def file (1st line
8547 # is EXPORTS), use it as is; otherwise, prepend...
8934764e 8548 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
bf9f3bac 8549 cp $export_symbols $output_objdir/$soname.def;
8550 else
8551 echo EXPORTS > $output_objdir/$soname.def;
8552 cat $export_symbols >> $output_objdir/$soname.def;
8553 fi~
8554 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8555 else
8934764e 8556 ld_shlibs=no
bf9f3bac 8557 fi
8558 ;;
8559
8934764e
BB
8560 interix[3-9]*)
8561 hardcode_direct=no
8562 hardcode_shlibpath_var=no
8563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8564 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 8565 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8566 # Instead, shared libraries are loaded at an image base (0x10000000 by
8567 # default) and relocated if they conflict, which is a slow very memory
8568 # consuming and fragmenting process. To avoid this, we pick a random,
8569 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8570 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8934764e
BB
8571 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8572 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'
bf9f3bac 8573 ;;
8574
8934764e
BB
8575 gnu* | linux* | tpf* | k*bsd*-gnu)
8576 tmp_diet=no
8577 if test "$host_os" = linux-dietlibc; then
8578 case $cc_basename in
8579 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8580 esac
8581 fi
8582 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8583 && test "$tmp_diet" = no
8584 then
bf9f3bac 8585 tmp_addflag=
8934764e 8586 tmp_sharedflag='-shared'
bf9f3bac 8587 case $cc_basename,$host_cpu in
8934764e
BB
8588 pgcc*) # Portland Group C compiler
8589 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'
bf9f3bac 8590 tmp_addflag=' $pic_flag'
8591 ;;
8592 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8934764e 8593 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'
bf9f3bac 8594 tmp_addflag=' $pic_flag -Mnomain' ;;
8934764e 8595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
bf9f3bac 8596 tmp_addflag=' -i_dynamic' ;;
8597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8598 tmp_addflag=' -i_dynamic -nofor_main' ;;
8599 ifc* | ifort*) # Intel Fortran compiler
8600 tmp_addflag=' -nofor_main' ;;
8934764e
BB
8601 lf95*) # Lahey Fortran 8.1
8602 whole_archive_flag_spec=
8603 tmp_sharedflag='--shared' ;;
8604 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8605 tmp_sharedflag='-qmkshrobj'
8606 tmp_addflag= ;;
8607 esac
8608 case `$CC -V 2>&1 | sed 5q` in
8609 *Sun\ C*) # Sun C 5.9
8610 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'
8611 compiler_needs_object=yes
8612 tmp_sharedflag='-G' ;;
8613 *Sun\ F*) # Sun Fortran 8.3
8614 tmp_sharedflag='-G' ;;
bf9f3bac 8615 esac
8934764e 8616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8617
8934764e
BB
8618 if test "x$supports_anon_versioning" = xyes; then
8619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8621 echo "local: *; };" >> $output_objdir/$libname.ver~
8622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8623 fi
8624
8625 case $cc_basename in
8626 xlf*)
8627 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8628 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8629 hardcode_libdir_flag_spec=
8630 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8631 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8632 if test "x$supports_anon_versioning" = xyes; then
8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635 echo "local: *; };" >> $output_objdir/$libname.ver~
8636 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8637 fi
8638 ;;
8639 esac
bf9f3bac 8640 else
8934764e 8641 ld_shlibs=no
bf9f3bac 8642 fi
8643 ;;
8644
8645 netbsd*)
8934764e
BB
8646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8647 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
bf9f3bac 8648 wlarc=
8649 else
8934764e
BB
8650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8652 fi
8653 ;;
8654
8655 solaris*)
8934764e
BB
8656 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8657 ld_shlibs=no
8658 cat <<_LT_EOF 1>&2
bf9f3bac 8659
8660*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8661*** create shared libraries on Solaris systems. Therefore, libtool
8662*** is disabling shared libraries support. We urge you to upgrade GNU
8663*** binutils to release 2.9.1 or newer. Another option is to modify
8664*** your PATH or compiler configuration so that the native linker is
8665*** used, and then restart.
8666
8934764e
BB
8667_LT_EOF
8668 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8671 else
8934764e 8672 ld_shlibs=no
bf9f3bac 8673 fi
8674 ;;
8675
8676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8677 case `$LD -v 2>&1` in
8678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8934764e 8679 ld_shlibs=no
bf9f3bac 8680 cat <<_LT_EOF 1>&2
8681
8682*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8683*** reliably create shared libraries on SCO systems. Therefore, libtool
8684*** is disabling shared libraries support. We urge you to upgrade GNU
8685*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8686*** your PATH or compiler configuration so that the native linker is
8687*** used, and then restart.
8688
8689_LT_EOF
8690 ;;
8691 *)
8934764e
BB
8692 # For security reasons, it is highly recommended that you always
8693 # use absolute paths for naming shared libraries, and exclude the
8694 # DT_RUNPATH tag from executables and libraries. But doing so
8695 # requires that you compile everything twice, which is a pain.
8696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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'
bf9f3bac 8700 else
8934764e 8701 ld_shlibs=no
bf9f3bac 8702 fi
8703 ;;
8704 esac
8705 ;;
8706
8707 sunos4*)
8934764e 8708 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 8709 wlarc=
8934764e
BB
8710 hardcode_direct=yes
8711 hardcode_shlibpath_var=no
bf9f3bac 8712 ;;
8713
8714 *)
8934764e
BB
8715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8718 else
8934764e 8719 ld_shlibs=no
bf9f3bac 8720 fi
8721 ;;
8722 esac
8723
8934764e 8724 if test "$ld_shlibs" = no; then
bf9f3bac 8725 runpath_var=
8934764e
BB
8726 hardcode_libdir_flag_spec=
8727 export_dynamic_flag_spec=
8728 whole_archive_flag_spec=
bf9f3bac 8729 fi
8730 else
8731 # PORTME fill in a description of your system's linker (not GNU ld)
8732 case $host_os in
8733 aix3*)
8934764e
BB
8734 allow_undefined_flag=unsupported
8735 always_export_symbols=yes
8736 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'
bf9f3bac 8737 # Note: this linker hardcodes the directories in LIBPATH if there
8738 # are no directories specified by -L.
8934764e 8739 hardcode_minus_L=yes
bf9f3bac 8740 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8741 # Neither direct hardcoding nor static linking is supported with a
8742 # broken collect2.
8934764e 8743 hardcode_direct=unsupported
bf9f3bac 8744 fi
8745 ;;
8746
8934764e 8747 aix[4-9]*)
bf9f3bac 8748 if test "$host_cpu" = ia64; then
8749 # On IA64, the linker does run time linking by default, so we don't
8750 # have to do anything special.
8751 aix_use_runtimelinking=no
8752 exp_sym_flag='-Bexport'
8753 no_entry_flag=""
8754 else
8755 # If we're using GNU nm, then we don't want the "-C" option.
8756 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8934764e
BB
8757 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8758 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'
bf9f3bac 8759 else
8934764e 8760 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'
bf9f3bac 8761 fi
8762 aix_use_runtimelinking=no
8763
8764 # Test if we are trying to use run time linking or normal
8765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8766 # need to do runtime linking.
8934764e 8767 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
bf9f3bac 8768 for ld_flag in $LDFLAGS; do
8934764e
BB
8769 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8770 aix_use_runtimelinking=yes
8771 break
8772 fi
bf9f3bac 8773 done
8774 ;;
8775 esac
8776
8777 exp_sym_flag='-bexport'
8778 no_entry_flag='-bnoentry'
8779 fi
8780
8781 # When large executables or shared objects are built, AIX ld can
8782 # have problems creating the table of contents. If linking a library
8783 # or program results in "error TOC overflow" add -mminimal-toc to
8784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8786
8934764e
BB
8787 archive_cmds=''
8788 hardcode_direct=yes
8789 hardcode_direct_absolute=yes
8790 hardcode_libdir_separator=':'
8791 link_all_deplibs=yes
8792 file_list_spec='${wl}-f,'
bf9f3bac 8793
8794 if test "$GCC" = yes; then
8795 case $host_os in aix4.[012]|aix4.[012].*)
8796 # We only want to do this on AIX 4.2 and lower, the check
8797 # below for broken collect2 doesn't work under 4.3+
8798 collect2name=`${CC} -print-prog-name=collect2`
8934764e
BB
8799 if test -f "$collect2name" &&
8800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
bf9f3bac 8801 then
8934764e
BB
8802 # We have reworked collect2
8803 :
bf9f3bac 8804 else
8934764e
BB
8805 # We have old collect2
8806 hardcode_direct=unsupported
8807 # It fails to find uninstalled libraries when the uninstalled
8808 # path is not listed in the libpath. Setting hardcode_minus_L
8809 # to unsupported forces relinking
8810 hardcode_minus_L=yes
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_libdir_separator=
bf9f3bac 8813 fi
8814 ;;
8815 esac
8816 shared_flag='-shared'
8817 if test "$aix_use_runtimelinking" = yes; then
8818 shared_flag="$shared_flag "'${wl}-G'
8819 fi
8820 else
8821 # not using gcc
8822 if test "$host_cpu" = ia64; then
8934764e
BB
8823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8824 # chokes on -Wl,-G. The following line is correct:
bf9f3bac 8825 shared_flag='-G'
8826 else
8827 if test "$aix_use_runtimelinking" = yes; then
8828 shared_flag='${wl}-G'
8829 else
8830 shared_flag='${wl}-bM:SRE'
8831 fi
8832 fi
8833 fi
8834
8934764e 8835 export_dynamic_flag_spec='${wl}-bexpall'
bf9f3bac 8836 # It seems that -bexpall does not export symbols beginning with
8837 # underscore (_), so it is better to generate a list of symbols to export.
8934764e 8838 always_export_symbols=yes
bf9f3bac 8839 if test "$aix_use_runtimelinking" = yes; then
8840 # Warning - without using the other runtime loading flags (-brtl),
8841 # -berok will link without error, but may produce a broken library.
8934764e
BB
8842 allow_undefined_flag='-berok'
8843 # Determine the default libpath from the value encoded in an
8844 # empty executable.
8845 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 8846/* confdefs.h. */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h. */
8851
8852int
8853main ()
8854{
8855
8856 ;
8857 return 0;
8858}
8859_ACEOF
8860rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8861if { (ac_try="$ac_link"
8862case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8865esac
8866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867$as_echo "$ac_try_echo") >&5
8868 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8934764e
BB
8873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest$ac_exeext && {
8878 test "$cross_compiling" = yes ||
8879 $as_test_x conftest$ac_exeext
8880 }; then
8881
8882lt_aix_libpath_sed='
8883 /Import File Strings/,/^$/ {
8884 /^0/ {
8885 s/^0 *\(.*\)$/\1/
8886 p
8887 }
8888 }'
8889aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8890# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8891if test -z "$aix_libpath"; then
8892 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8893fi
bf9f3bac 8894else
8934764e 8895 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8896sed 's/^/| /' conftest.$ac_ext >&5
8897
8934764e 8898
bf9f3bac 8899fi
8934764e
BB
8900
8901rm -rf conftest.dSYM
8902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8903 conftest$ac_exeext conftest.$ac_ext
8904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8905
8934764e
BB
8906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8907 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"
8908 else
bf9f3bac 8909 if test "$host_cpu" = ia64; then
8934764e
BB
8910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8911 allow_undefined_flag="-z nodefs"
8912 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"
bf9f3bac 8913 else
8934764e
BB
8914 # Determine the default libpath from the value encoded in an
8915 # empty executable.
bf9f3bac 8916 cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h. */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h. */
8922
8923int
8924main ()
8925{
8926
8927 ;
8928 return 0;
8929}
8930_ACEOF
8931rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8932if { (ac_try="$ac_link"
8933case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936esac
8937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8938$as_echo "$ac_try_echo") >&5
8939 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8934764e
BB
8944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && {
8946 test -z "$ac_c_werror_flag" ||
8947 test ! -s conftest.err
8948 } && test -s conftest$ac_exeext && {
8949 test "$cross_compiling" = yes ||
8950 $as_test_x conftest$ac_exeext
8951 }; then
8952
8953lt_aix_libpath_sed='
8954 /Import File Strings/,/^$/ {
8955 /^0/ {
8956 s/^0 *\(.*\)$/\1/
8957 p
8958 }
8959 }'
8960aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8961# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8962if test -z "$aix_libpath"; then
8963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8964fi
bf9f3bac 8965else
8934764e 8966 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8967sed 's/^/| /' conftest.$ac_ext >&5
8968
8934764e 8969
bf9f3bac 8970fi
8934764e
BB
8971
8972rm -rf conftest.dSYM
8973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8974 conftest$ac_exeext conftest.$ac_ext
8975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8976
8934764e 8977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
bf9f3bac 8978 # Warning - without using the other run time loading flags,
8979 # -berok will link without error, but may produce a broken library.
8934764e
BB
8980 no_undefined_flag=' ${wl}-bernotok'
8981 allow_undefined_flag=' ${wl}-berok'
bf9f3bac 8982 # Exported symbols can be pulled into shared objects from archives
8934764e
BB
8983 whole_archive_flag_spec='$convenience'
8984 archive_cmds_need_lc=yes
bf9f3bac 8985 # This is similar to how AIX traditionally builds its shared libraries.
8934764e 8986 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'
bf9f3bac 8987 fi
8988 fi
8989 ;;
8990
8991 amigaos*)
8934764e
BB
8992 case $host_cpu in
8993 powerpc)
8994 # see comment about AmigaOS4 .so support
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 archive_expsym_cmds=''
8997 ;;
8998 m68k)
8999 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)'
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_minus_L=yes
9002 ;;
9003 esac
bf9f3bac 9004 ;;
9005
9006 bsdi[45]*)
8934764e 9007 export_dynamic_flag_spec=-rdynamic
bf9f3bac 9008 ;;
9009
8934764e 9010 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9011 # When not using gcc, we currently assume that we are using
9012 # Microsoft Visual C++.
9013 # hardcode_libdir_flag_spec is actually meaningless, as there is
9014 # no search path for DLLs.
8934764e
BB
9015 hardcode_libdir_flag_spec=' '
9016 allow_undefined_flag=unsupported
bf9f3bac 9017 # Tell ltmain to make .lib files, not .a files.
9018 libext=lib
9019 # Tell ltmain to make .dll files, not .so files.
9020 shrext_cmds=".dll"
9021 # FIXME: Setting linknames here is a bad hack.
8934764e 9022 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
bf9f3bac 9023 # The linker will automatically build a .lib file if we build a DLL.
8934764e 9024 old_archive_from_new_cmds='true'
bf9f3bac 9025 # FIXME: Should let the user specify the lib program.
8934764e
BB
9026 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9027 fix_srcfile_path='`cygpath -w "$srcfile"`'
9028 enable_shared_with_static_runtimes=yes
bf9f3bac 9029 ;;
9030
9031 darwin* | rhapsody*)
8934764e
BB
9032
9033
9034 archive_cmds_need_lc=no
9035 hardcode_direct=no
9036 hardcode_automatic=yes
9037 hardcode_shlibpath_var=unsupported
9038 whole_archive_flag_spec=''
9039 link_all_deplibs=yes
9040 allow_undefined_flag="$_lt_dar_allow_undefined"
9041 case $cc_basename in
9042 ifort*) _lt_dar_can_shared=yes ;;
9043 *) _lt_dar_can_shared=$GCC ;;
9044 esac
9045 if test "$_lt_dar_can_shared" = "yes"; then
9046 output_verbose_link_cmd=echo
9047 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9048 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9049 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}"
9050 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}"
9051
9052 else
9053 ld_shlibs=no
9054 fi
9055
bf9f3bac 9056 ;;
9057
9058 dgux*)
8934764e
BB
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_shlibpath_var=no
bf9f3bac 9062 ;;
9063
9064 freebsd1*)
8934764e 9065 ld_shlibs=no
bf9f3bac 9066 ;;
9067
9068 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9069 # support. Future versions do this automatically, but an explicit c++rt0.o
9070 # does not break anything, and helps significantly (at the cost of a little
9071 # extra space).
9072 freebsd2.2*)
8934764e
BB
9073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9074 hardcode_libdir_flag_spec='-R$libdir'
9075 hardcode_direct=yes
9076 hardcode_shlibpath_var=no
bf9f3bac 9077 ;;
9078
9079 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9080 freebsd2*)
8934764e
BB
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_direct=yes
9083 hardcode_minus_L=yes
9084 hardcode_shlibpath_var=no
bf9f3bac 9085 ;;
9086
9087 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8934764e
BB
9088 freebsd* | dragonfly*)
9089 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9090 hardcode_libdir_flag_spec='-R$libdir'
9091 hardcode_direct=yes
9092 hardcode_shlibpath_var=no
bf9f3bac 9093 ;;
9094
9095 hpux9*)
9096 if test "$GCC" = yes; then
8934764e 9097 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'
bf9f3bac 9098 else
8934764e 9099 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'
bf9f3bac 9100 fi
8934764e
BB
9101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102 hardcode_libdir_separator=:
9103 hardcode_direct=yes
bf9f3bac 9104
9105 # hardcode_minus_L: Not really in the search PATH,
9106 # but as the default location of the library.
8934764e
BB
9107 hardcode_minus_L=yes
9108 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9109 ;;
9110
9111 hpux10*)
9112 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8934764e 9113 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9114 else
8934764e 9115 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9116 fi
9117 if test "$with_gnu_ld" = no; then
8934764e
BB
9118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9119 hardcode_libdir_flag_spec_ld='+b $libdir'
9120 hardcode_libdir_separator=:
9121 hardcode_direct=yes
9122 hardcode_direct_absolute=yes
9123 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9124 # hardcode_minus_L: Not really in the search PATH,
9125 # but as the default location of the library.
8934764e 9126 hardcode_minus_L=yes
bf9f3bac 9127 fi
9128 ;;
9129
9130 hpux11*)
9131 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9132 case $host_cpu in
9133 hppa*64*)
8934764e 9134 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9135 ;;
9136 ia64*)
8934764e 9137 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9138 ;;
9139 *)
8934764e 9140 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9141 ;;
9142 esac
9143 else
9144 case $host_cpu in
9145 hppa*64*)
8934764e 9146 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9147 ;;
9148 ia64*)
8934764e 9149 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9150 ;;
9151 *)
8934764e 9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9153 ;;
9154 esac
9155 fi
9156 if test "$with_gnu_ld" = no; then
8934764e
BB
9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158 hardcode_libdir_separator=:
bf9f3bac 9159
9160 case $host_cpu in
9161 hppa*64*|ia64*)
8934764e
BB
9162 hardcode_direct=no
9163 hardcode_shlibpath_var=no
bf9f3bac 9164 ;;
9165 *)
8934764e
BB
9166 hardcode_direct=yes
9167 hardcode_direct_absolute=yes
9168 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9169
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
8934764e 9172 hardcode_minus_L=yes
bf9f3bac 9173 ;;
9174 esac
9175 fi
9176 ;;
9177
9178 irix5* | irix6* | nonstopux*)
9179 if test "$GCC" = yes; then
8934764e
BB
9180 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'
9181 # Try to use the -exported_symbol ld option, if it does not
9182 # work, assume that -exports_file does not work either and
9183 # implicitly export all symbols.
9184 save_LDFLAGS="$LDFLAGS"
9185 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9186 cat >conftest.$ac_ext <<_ACEOF
9187int foo(void) {}
9188_ACEOF
9189rm -f conftest.$ac_objext conftest$ac_exeext
9190if { (ac_try="$ac_link"
9191case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194esac
9195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9196$as_echo "$ac_try_echo") >&5
9197 (eval "$ac_link") 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest$ac_exeext && {
9207 test "$cross_compiling" = yes ||
9208 $as_test_x conftest$ac_exeext
9209 }; then
9210 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'
9211
9212else
9213 $as_echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
9216
9217fi
9218
9219rm -rf conftest.dSYM
9220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221 conftest$ac_exeext conftest.$ac_ext
9222 LDFLAGS="$save_LDFLAGS"
bf9f3bac 9223 else
8934764e
BB
9224 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'
9225 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'
bf9f3bac 9226 fi
8934764e
BB
9227 archive_cmds_need_lc='no'
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 inherit_rpath=yes
9231 link_all_deplibs=yes
bf9f3bac 9232 ;;
9233
9234 netbsd*)
8934764e
BB
9235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
bf9f3bac 9237 else
8934764e 9238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
bf9f3bac 9239 fi
8934764e
BB
9240 hardcode_libdir_flag_spec='-R$libdir'
9241 hardcode_direct=yes
9242 hardcode_shlibpath_var=no
bf9f3bac 9243 ;;
9244
9245 newsos6)
8934764e
BB
9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247 hardcode_direct=yes
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 hardcode_libdir_separator=:
9250 hardcode_shlibpath_var=no
9251 ;;
9252
9253 *nto* | *qnx*)
bf9f3bac 9254 ;;
9255
9256 openbsd*)
8934764e
BB
9257 if test -f /usr/libexec/ld.so; then
9258 hardcode_direct=yes
9259 hardcode_shlibpath_var=no
9260 hardcode_direct_absolute=yes
9261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265 export_dynamic_flag_spec='${wl}-E'
9266 else
9267 case $host_os in
9268 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_libdir_flag_spec='-R$libdir'
9271 ;;
9272 *)
9273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9275 ;;
9276 esac
9277 fi
bf9f3bac 9278 else
8934764e 9279 ld_shlibs=no
bf9f3bac 9280 fi
9281 ;;
9282
9283 os2*)
8934764e
BB
9284 hardcode_libdir_flag_spec='-L$libdir'
9285 hardcode_minus_L=yes
9286 allow_undefined_flag=unsupported
9287 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'
9288 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
bf9f3bac 9289 ;;
9290
9291 osf3*)
9292 if test "$GCC" = yes; then
8934764e
BB
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294 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'
bf9f3bac 9295 else
8934764e
BB
9296 allow_undefined_flag=' -expect_unresolved \*'
9297 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'
bf9f3bac 9298 fi
8934764e
BB
9299 archive_cmds_need_lc='no'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 hardcode_libdir_separator=:
bf9f3bac 9302 ;;
9303
9304 osf4* | osf5*) # as osf3* with the addition of -msym flag
9305 if test "$GCC" = yes; then
8934764e
BB
9306 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9307 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'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
bf9f3bac 9309 else
8934764e
BB
9310 allow_undefined_flag=' -expect_unresolved \*'
9311 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'
9312 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~
9313 $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'
bf9f3bac 9314
9315 # Both c and cxx compiler support -rpath directly
8934764e 9316 hardcode_libdir_flag_spec='-rpath $libdir'
bf9f3bac 9317 fi
8934764e
BB
9318 archive_cmds_need_lc='no'
9319 hardcode_libdir_separator=:
bf9f3bac 9320 ;;
9321
9322 solaris*)
8934764e 9323 no_undefined_flag=' -z defs'
bf9f3bac 9324 if test "$GCC" = yes; then
9325 wlarc='${wl}'
8934764e
BB
9326 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
bf9f3bac 9329 else
8934764e
BB
9330 case `$CC -V 2>&1` in
9331 *"Compilers 5.0"*)
9332 wlarc=''
9333 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9336 ;;
9337 *)
9338 wlarc='${wl}'
9339 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9342 ;;
9343 esac
bf9f3bac 9344 fi
8934764e
BB
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_shlibpath_var=no
bf9f3bac 9347 case $host_os in
9348 solaris2.[0-5] | solaris2.[0-5].*) ;;
9349 *)
8934764e
BB
9350 # The compiler driver will combine and reorder linker options,
9351 # but understands `-z linker_flag'. GCC discards it without `$wl',
9352 # but is careful enough not to reorder.
9353 # Supported since Solaris 2.6 (maybe 2.5.1?)
9354 if test "$GCC" = yes; then
9355 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9356 else
9357 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9358 fi
9359 ;;
bf9f3bac 9360 esac
8934764e 9361 link_all_deplibs=yes
bf9f3bac 9362 ;;
9363
9364 sunos4*)
9365 if test "x$host_vendor" = xsequent; then
9366 # Use $CC to link under sequent, because it throws in some extra .o
9367 # files that make .init and .fini sections work.
8934764e 9368 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9369 else
8934764e 9370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9371 fi
8934764e
BB
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_direct=yes
9374 hardcode_minus_L=yes
9375 hardcode_shlibpath_var=no
bf9f3bac 9376 ;;
9377
9378 sysv4)
9379 case $host_vendor in
9380 sni)
8934764e
BB
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_direct=yes # is this really true???
bf9f3bac 9383 ;;
9384 siemens)
9385 ## LD is ld it makes a PLAMLIB
9386 ## CC just makes a GrossModule.
8934764e
BB
9387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9388 reload_cmds='$CC -r -o $output$reload_objs'
9389 hardcode_direct=no
bf9f3bac 9390 ;;
9391 motorola)
8934764e
BB
9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
bf9f3bac 9394 ;;
9395 esac
9396 runpath_var='LD_RUN_PATH'
8934764e 9397 hardcode_shlibpath_var=no
bf9f3bac 9398 ;;
9399
9400 sysv4.3*)
8934764e
BB
9401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_shlibpath_var=no
9403 export_dynamic_flag_spec='-Bexport'
bf9f3bac 9404 ;;
9405
9406 sysv4*MP*)
9407 if test -d /usr/nec; then
8934764e
BB
9408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_shlibpath_var=no
bf9f3bac 9410 runpath_var=LD_RUN_PATH
9411 hardcode_runpath_var=yes
8934764e 9412 ld_shlibs=yes
bf9f3bac 9413 fi
9414 ;;
9415
8934764e
BB
9416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9417 no_undefined_flag='${wl}-z,text'
9418 archive_cmds_need_lc=no
9419 hardcode_shlibpath_var=no
bf9f3bac 9420 runpath_var='LD_RUN_PATH'
9421
9422 if test "$GCC" = yes; then
8934764e
BB
9423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9425 else
8934764e
BB
9426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9428 fi
9429 ;;
9430
9431 sysv5* | sco3.2v5* | sco5v6*)
9432 # Note: We can NOT use -z defs as we might desire, because we do not
9433 # link with -lc, and that would cause any symbols used from libc to
9434 # always be unresolved, which means just about no library would
9435 # ever link correctly. If we're not using GNU ld we use -z text
9436 # though, which does catch some bad symbols but isn't as heavy-handed
9437 # as -z defs.
8934764e
BB
9438 no_undefined_flag='${wl}-z,text'
9439 allow_undefined_flag='${wl}-z,nodefs'
9440 archive_cmds_need_lc=no
9441 hardcode_shlibpath_var=no
9442 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9443 hardcode_libdir_separator=':'
9444 link_all_deplibs=yes
9445 export_dynamic_flag_spec='${wl}-Bexport'
bf9f3bac 9446 runpath_var='LD_RUN_PATH'
9447
9448 if test "$GCC" = yes; then
8934764e
BB
9449 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9451 else
8934764e
BB
9452 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9454 fi
9455 ;;
9456
9457 uts4*)
8934764e
BB
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_shlibpath_var=no
bf9f3bac 9461 ;;
9462
9463 *)
8934764e 9464 ld_shlibs=no
bf9f3bac 9465 ;;
9466 esac
8934764e
BB
9467
9468 if test x$host_vendor = xsni; then
9469 case $host in
9470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9471 export_dynamic_flag_spec='${wl}-Blargedynsym'
9472 ;;
9473 esac
9474 fi
bf9f3bac 9475 fi
9476
8934764e
BB
9477{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9478$as_echo "$ld_shlibs" >&6; }
9479test "$ld_shlibs" = no && can_build_shared=no
9480
9481with_gnu_ld=$with_gnu_ld
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
bf9f3bac 9496
9497#
9498# Do we need to explicitly link libc?
9499#
8934764e 9500case "x$archive_cmds_need_lc" in
bf9f3bac 9501x|xyes)
9502 # Assume -lc should be added
8934764e 9503 archive_cmds_need_lc=yes
bf9f3bac 9504
9505 if test "$enable_shared" = yes && test "$GCC" = yes; then
8934764e 9506 case $archive_cmds in
bf9f3bac 9507 *'~'*)
9508 # FIXME: we may have to deal with multi-command sequences.
9509 ;;
9510 '$CC '*)
9511 # Test whether the compiler implicitly links with -lc since on some
9512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9513 # to ld, don't add -lc before -lgcc.
8934764e
BB
9514 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9515$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9516 $RM conftest*
9517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 9518
9519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520 (eval $ac_compile) 2>&5
9521 ac_status=$?
8934764e 9522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9523 (exit $ac_status); } 2>conftest.err; then
9524 soname=conftest
9525 lib=conftest
9526 libobjs=conftest.$ac_objext
9527 deplibs=
8934764e
BB
9528 wl=$lt_prog_compiler_wl
9529 pic_flag=$lt_prog_compiler_pic
bf9f3bac 9530 compiler_flags=-v
9531 linker_flags=-v
9532 verstring=
9533 output_objdir=.
9534 libname=conftest
8934764e
BB
9535 lt_save_allow_undefined_flag=$allow_undefined_flag
9536 allow_undefined_flag=
9537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9538 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
bf9f3bac 9539 ac_status=$?
8934764e 9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9541 (exit $ac_status); }
9542 then
8934764e 9543 archive_cmds_need_lc=no
bf9f3bac 9544 else
8934764e 9545 archive_cmds_need_lc=yes
bf9f3bac 9546 fi
8934764e 9547 allow_undefined_flag=$lt_save_allow_undefined_flag
bf9f3bac 9548 else
9549 cat conftest.err 1>&5
9550 fi
8934764e
BB
9551 $RM conftest*
9552 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9553$as_echo "$archive_cmds_need_lc" >&6; }
bf9f3bac 9554 ;;
9555 esac
9556 fi
9557 ;;
9558esac
9559
8934764e
BB
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9717$as_echo_n "checking dynamic linker characteristics... " >&6; }
9718
9719if test "$GCC" = yes; then
9720 case $host_os in
9721 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9722 *) lt_awk_arg="/^libraries:/" ;;
9723 esac
9724 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9725 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9726 # if the path contains ";" then we assume it to be the separator
9727 # otherwise default to the standard path separator (i.e. ":") - it is
9728 # assumed that no part of a normal pathname contains ";" but that should
9729 # okay in the real world where ";" in dirpaths is itself problematic.
9730 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9731 else
9732 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9733 fi
9734 # Ok, now we have the path, separated by spaces, we can step through it
9735 # and add multilib dir if necessary.
9736 lt_tmp_lt_search_path_spec=
9737 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9738 for lt_sys_path in $lt_search_path_spec; do
9739 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9740 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9741 else
9742 test -d "$lt_sys_path" && \
9743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9744 fi
9745 done
9746 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9747BEGIN {RS=" "; FS="/|\n";} {
9748 lt_foo="";
9749 lt_count=0;
9750 for (lt_i = NF; lt_i > 0; lt_i--) {
9751 if ($lt_i != "" && $lt_i != ".") {
9752 if ($lt_i == "..") {
9753 lt_count++;
9754 } else {
9755 if (lt_count == 0) {
9756 lt_foo="/" $lt_i lt_foo;
9757 } else {
9758 lt_count--;
9759 }
9760 }
9761 }
9762 }
9763 if (lt_foo != "") { lt_freq[lt_foo]++; }
9764 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9765}'`
9766 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9767else
9768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9769fi
bf9f3bac 9770library_names_spec=
9771libname_spec='lib$name'
9772soname_spec=
9773shrext_cmds=".so"
9774postinstall_cmds=
9775postuninstall_cmds=
9776finish_cmds=
9777finish_eval=
9778shlibpath_var=
9779shlibpath_overrides_runpath=unknown
9780version_type=none
9781dynamic_linker="$host_os ld.so"
9782sys_lib_dlsearch_path_spec="/lib /usr/lib"
bf9f3bac 9783need_lib_prefix=unknown
9784hardcode_into_libs=no
9785
9786# when you set need_version to no, make sure it does not cause -set_version
9787# flags to be left without arguments
9788need_version=unknown
9789
9790case $host_os in
9791aix3*)
9792 version_type=linux
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9794 shlibpath_var=LIBPATH
9795
9796 # AIX 3 has no versioning support, so we append a major version to the name.
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 ;;
9799
8934764e 9800aix[4-9]*)
bf9f3bac 9801 version_type=linux
9802 need_lib_prefix=no
9803 need_version=no
9804 hardcode_into_libs=yes
9805 if test "$host_cpu" = ia64; then
9806 # AIX 5 supports IA64
9807 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 else
9810 # With GCC up to 2.95.x, collect2 would create an import file
9811 # for dependence libraries. The import file would start with
9812 # the line `#! .'. This would cause the generated library to
9813 # depend on `.', always an invalid library. This was fixed in
9814 # development snapshots of GCC prior to 3.0.
9815 case $host_os in
9816 aix4 | aix4.[01] | aix4.[01].*)
9817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9818 echo ' yes '
8934764e 9819 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
bf9f3bac 9820 :
9821 else
9822 can_build_shared=no
9823 fi
9824 ;;
9825 esac
9826 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9827 # soname into executable. Probably we can add versioning support to
9828 # collect2, so additional links can be useful in future.
9829 if test "$aix_use_runtimelinking" = yes; then
9830 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9831 # instead of lib<name>.a to let people know that these are not
9832 # typical AIX shared libraries.
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 else
9835 # We preserve .a as extension for shared libraries through AIX4.2
9836 # and later when we are not doing run time linking.
9837 library_names_spec='${libname}${release}.a $libname.a'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 fi
9840 shlibpath_var=LIBPATH
9841 fi
9842 ;;
9843
9844amigaos*)
8934764e
BB
9845 case $host_cpu in
9846 powerpc)
9847 # Since July 2007 AmigaOS4 officially supports .so libraries.
9848 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 ;;
9851 m68k)
9852 library_names_spec='$libname.ixlibrary $libname.a'
9853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9854 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'
9855 ;;
9856 esac
bf9f3bac 9857 ;;
9858
9859beos*)
9860 library_names_spec='${libname}${shared_ext}'
9861 dynamic_linker="$host_os ld.so"
9862 shlibpath_var=LIBRARY_PATH
9863 ;;
9864
9865bsdi[45]*)
9866 version_type=linux
9867 need_version=no
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9874 # the default ld.so.conf also contains /usr/contrib/lib and
9875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9876 # libtool to hard-code these into programs
9877 ;;
9878
8934764e 9879cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9880 version_type=windows
9881 shrext_cmds=".dll"
9882 need_version=no
9883 need_lib_prefix=no
9884
9885 case $GCC,$host_os in
8934764e 9886 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
bf9f3bac 9887 library_names_spec='$libname.dll.a'
9888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9889 postinstall_cmds='base_file=`basename \${file}`~
8934764e 9890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
bf9f3bac 9891 dldir=$destdir/`dirname \$dlpath`~
9892 test -d \$dldir || mkdir -p \$dldir~
9893 $install_prog $dir/$dlname \$dldir/$dlname~
8934764e
BB
9894 chmod a+x \$dldir/$dlname~
9895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9897 fi'
bf9f3bac 9898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9899 dlpath=$dir/\$dldll~
8934764e 9900 $RM \$dlpath'
bf9f3bac 9901 shlibpath_overrides_runpath=yes
9902
9903 case $host_os in
9904 cygwin*)
9905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9907 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9908 ;;
8934764e 9909 mingw* | cegcc*)
bf9f3bac 9910 # MinGW DLLs use traditional 'lib' prefix
9911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934764e
BB
9912 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9913 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
bf9f3bac 9914 # It is most probably a Windows format PATH printed by
9915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9916 # path with ; separators, and with drive letters. We can handle the
9917 # drive letters (cygwin fileutils understands them), so leave them,
9918 # especially as we might pass files found there to a mingw objdump,
9919 # which wouldn't understand a cygwinified path. Ahh.
8934764e 9920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
bf9f3bac 9921 else
8934764e 9922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
bf9f3bac 9923 fi
9924 ;;
9925 pw32*)
9926 # pw32 DLLs use 'pw' prefix rather than 'lib'
9927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 ;;
9929 esac
9930 ;;
9931
9932 *)
9933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9934 ;;
9935 esac
9936 dynamic_linker='Win32 ld.exe'
9937 # FIXME: first we should search . and the directory the executable is in
9938 shlibpath_var=PATH
9939 ;;
9940
9941darwin* | rhapsody*)
9942 dynamic_linker="$host_os dyld"
9943 version_type=darwin
9944 need_lib_prefix=no
9945 need_version=no
8934764e 9946 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
bf9f3bac 9947 soname_spec='${libname}${release}${major}$shared_ext'
9948 shlibpath_overrides_runpath=yes
9949 shlibpath_var=DYLD_LIBRARY_PATH
9950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8934764e
BB
9951
9952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
bf9f3bac 9953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9954 ;;
9955
9956dgux*)
9957 version_type=linux
9958 need_lib_prefix=no
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 ;;
9964
9965freebsd1*)
9966 dynamic_linker=no
9967 ;;
9968
bf9f3bac 9969freebsd* | dragonfly*)
9970 # DragonFly does not have aout. When/if they implement a new
9971 # versioning mechanism, adjust this.
9972 if test -x /usr/bin/objformat; then
9973 objformat=`/usr/bin/objformat`
9974 else
9975 case $host_os in
9976 freebsd[123]*) objformat=aout ;;
9977 *) objformat=elf ;;
9978 esac
9979 fi
9980 version_type=freebsd-$objformat
9981 case $version_type in
9982 freebsd-elf*)
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984 need_version=no
9985 need_lib_prefix=no
9986 ;;
9987 freebsd-*)
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9989 need_version=yes
9990 ;;
9991 esac
9992 shlibpath_var=LD_LIBRARY_PATH
9993 case $host_os in
9994 freebsd2*)
9995 shlibpath_overrides_runpath=yes
9996 ;;
9997 freebsd3.[01]* | freebsdelf3.[01]*)
9998 shlibpath_overrides_runpath=yes
9999 hardcode_into_libs=yes
10000 ;;
10001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10003 shlibpath_overrides_runpath=no
10004 hardcode_into_libs=yes
10005 ;;
8934764e 10006 *) # from 4.6 on, and DragonFly
bf9f3bac 10007 shlibpath_overrides_runpath=yes
10008 hardcode_into_libs=yes
10009 ;;
10010 esac
10011 ;;
10012
10013gnu*)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 hardcode_into_libs=yes
10021 ;;
10022
10023hpux9* | hpux10* | hpux11*)
10024 # Give a soname corresponding to the major version so that dld.sl refuses to
10025 # link against other versions.
10026 version_type=sunos
10027 need_lib_prefix=no
10028 need_version=no
10029 case $host_cpu in
10030 ia64*)
10031 shrext_cmds='.so'
10032 hardcode_into_libs=yes
10033 dynamic_linker="$host_os dld.so"
10034 shlibpath_var=LD_LIBRARY_PATH
10035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 if test "X$HPUX_IA64_MODE" = X32; then
10039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10040 else
10041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10042 fi
10043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10044 ;;
8934764e
BB
10045 hppa*64*)
10046 shrext_cmds='.sl'
10047 hardcode_into_libs=yes
10048 dynamic_linker="$host_os dld.sl"
10049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055 ;;
10056 *)
bf9f3bac 10057 shrext_cmds='.sl'
10058 dynamic_linker="$host_os dld.sl"
10059 shlibpath_var=SHLIB_PATH
10060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 ;;
10064 esac
10065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10066 postinstall_cmds='chmod 555 $lib'
10067 ;;
10068
8934764e 10069interix[3-9]*)
bf9f3bac 10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 ;;
10080
10081irix5* | irix6* | nonstopux*)
10082 case $host_os in
10083 nonstopux*) version_type=nonstopux ;;
10084 *)
10085 if test "$lt_cv_prog_gnu_ld" = yes; then
10086 version_type=linux
10087 else
10088 version_type=irix
10089 fi ;;
10090 esac
10091 need_lib_prefix=no
10092 need_version=no
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10095 case $host_os in
10096 irix5* | nonstopux*)
10097 libsuff= shlibsuff=
10098 ;;
10099 *)
10100 case $LD in # libtool.m4 will add one of these switches to LD
10101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10102 libsuff= shlibsuff= libmagic=32-bit;;
10103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10104 libsuff=32 shlibsuff=N32 libmagic=N32;;
10105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10107 *) libsuff= shlibsuff= libmagic=never-match;;
10108 esac
10109 ;;
10110 esac
10111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10112 shlibpath_overrides_runpath=no
10113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10115 hardcode_into_libs=yes
10116 ;;
10117
10118# No shared lib support for Linux oldld, aout, or coff.
10119linux*oldld* | linux*aout* | linux*coff*)
10120 dynamic_linker=no
10121 ;;
10122
10123# This must be Linux ELF.
8934764e 10124linux* | k*bsd*-gnu)
bf9f3bac 10125 version_type=linux
10126 need_lib_prefix=no
10127 need_version=no
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=no
8934764e
BB
10133 # Some binutils ld are patched to set DT_RUNPATH
10134 save_LDFLAGS=$LDFLAGS
10135 save_libdir=$libdir
10136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10138 cat >conftest.$ac_ext <<_ACEOF
10139/* confdefs.h. */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
10143/* end confdefs.h. */
10144
10145int
10146main ()
10147{
10148
10149 ;
10150 return 0;
10151}
10152_ACEOF
10153rm -f conftest.$ac_objext conftest$ac_exeext
10154if { (ac_try="$ac_link"
10155case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10158esac
10159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10160$as_echo "$ac_try_echo") >&5
10161 (eval "$ac_link") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest$ac_exeext && {
10171 test "$cross_compiling" = yes ||
10172 $as_test_x conftest$ac_exeext
10173 }; then
10174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10175 shlibpath_overrides_runpath=yes
10176fi
10177
10178else
10179 $as_echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182
10183fi
10184
10185rm -rf conftest.dSYM
10186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LDFLAGS=$save_LDFLAGS
10189 libdir=$save_libdir
10190
bf9f3bac 10191 # This implies no fast_install, which is unacceptable.
10192 # Some rework will be needed to allow for fast_install
10193 # before this can be enabled.
10194 hardcode_into_libs=yes
10195
8934764e
BB
10196 # Add ABI-specific directories to the system library path.
10197 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
bf9f3bac 10198
10199 # Append ld.so.conf contents to the search path
10200 if test -f /etc/ld.so.conf; then
8934764e
BB
10201 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' ' '`
10202 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
bf9f3bac 10203 fi
10204
10205 # We used to test for /lib/ld.so.1 and disable shared libraries on
10206 # powerpc, because MkLinux only supported shared libraries with the
10207 # GNU dynamic linker. Since this was broken with cross compilers,
10208 # most powerpc-linux boxes support dynamic linking these days and
10209 # people can always --disable-shared, the test was removed, and we
10210 # assume the GNU/Linux dynamic linker is in use.
10211 dynamic_linker='GNU/Linux ld.so'
10212 ;;
10213
bf9f3bac 10214netbsd*)
10215 version_type=sunos
10216 need_lib_prefix=no
10217 need_version=no
8934764e 10218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
bf9f3bac 10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10221 dynamic_linker='NetBSD (a.out) ld.so'
10222 else
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 dynamic_linker='NetBSD ld.elf_so'
10226 fi
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10229 hardcode_into_libs=yes
10230 ;;
10231
10232newsos6)
10233 version_type=linux
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 ;;
10238
8934764e
BB
10239*nto* | *qnx*)
10240 version_type=qnx
bf9f3bac 10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
8934764e
BB
10246 shlibpath_overrides_runpath=no
10247 hardcode_into_libs=yes
10248 dynamic_linker='ldqnx.so'
bf9f3bac 10249 ;;
10250
10251openbsd*)
10252 version_type=sunos
10253 sys_lib_dlsearch_path_spec="/usr/lib"
10254 need_lib_prefix=no
10255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10256 case $host_os in
8934764e
BB
10257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10258 *) need_version=no ;;
bf9f3bac 10259 esac
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
8934764e 10263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
bf9f3bac 10264 case $host_os in
10265 openbsd2.[89] | openbsd2.[89].*)
10266 shlibpath_overrides_runpath=no
10267 ;;
10268 *)
10269 shlibpath_overrides_runpath=yes
10270 ;;
10271 esac
10272 else
10273 shlibpath_overrides_runpath=yes
10274 fi
10275 ;;
10276
10277os2*)
10278 libname_spec='$name'
10279 shrext_cmds=".dll"
10280 need_lib_prefix=no
10281 library_names_spec='$libname${shared_ext} $libname.a'
10282 dynamic_linker='OS/2 ld.exe'
10283 shlibpath_var=LIBPATH
10284 ;;
10285
10286osf3* | osf4* | osf5*)
10287 version_type=osf
10288 need_lib_prefix=no
10289 need_version=no
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10295 ;;
10296
8934764e
BB
10297rdos*)
10298 dynamic_linker=no
10299 ;;
10300
bf9f3bac 10301solaris*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10310 # ldd complains unless libraries are executable
10311 postinstall_cmds='chmod +x $lib'
10312 ;;
10313
10314sunos4*)
10315 version_type=sunos
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 if test "$with_gnu_ld" = yes; then
10321 need_lib_prefix=no
10322 fi
10323 need_version=yes
10324 ;;
10325
10326sysv4 | sysv4.3*)
10327 version_type=linux
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 case $host_vendor in
10332 sni)
10333 shlibpath_overrides_runpath=no
10334 need_lib_prefix=no
bf9f3bac 10335 runpath_var=LD_RUN_PATH
10336 ;;
10337 siemens)
10338 need_lib_prefix=no
10339 ;;
10340 motorola)
10341 need_lib_prefix=no
10342 need_version=no
10343 shlibpath_overrides_runpath=no
10344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10345 ;;
10346 esac
10347 ;;
10348
10349sysv4*MP*)
10350 if test -d /usr/nec ;then
10351 version_type=linux
10352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10353 soname_spec='$libname${shared_ext}.$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 fi
10356 ;;
10357
10358sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10359 version_type=freebsd-elf
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
8934764e 10365 shlibpath_overrides_runpath=yes
bf9f3bac 10366 hardcode_into_libs=yes
10367 if test "$with_gnu_ld" = yes; then
10368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
bf9f3bac 10369 else
10370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
bf9f3bac 10371 case $host_os in
10372 sco3.2v5*)
10373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10374 ;;
10375 esac
10376 fi
10377 sys_lib_dlsearch_path_spec='/usr/lib'
10378 ;;
10379
8934764e
BB
10380tpf*)
10381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10382 version_type=linux
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=no
10388 hardcode_into_libs=yes
10389 ;;
10390
bf9f3bac 10391uts4*)
10392 version_type=linux
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 ;;
10397
10398*)
10399 dynamic_linker=no
10400 ;;
10401esac
8934764e
BB
10402{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10403$as_echo "$dynamic_linker" >&6; }
bf9f3bac 10404test "$dynamic_linker" = no && can_build_shared=no
10405
10406variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10407if test "$GCC" = yes; then
10408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10409fi
10410
8934764e
BB
10411if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10412 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
bf9f3bac 10413fi
8934764e
BB
10414if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10415 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
bf9f3bac 10416fi
10417
10418
bf9f3bac 10419
bf9f3bac 10420
bf9f3bac 10421
bf9f3bac 10422
bf9f3bac 10423
bf9f3bac 10424
bf9f3bac 10425
bf9f3bac 10426
bf9f3bac 10427
bf9f3bac 10428
bf9f3bac 10429
bf9f3bac 10430
bf9f3bac 10431
bf9f3bac 10432
bf9f3bac 10433
bf9f3bac 10434
bf9f3bac 10435
bf9f3bac 10436
bf9f3bac 10437
bf9f3bac 10438
bf9f3bac 10439
bf9f3bac 10440
bf9f3bac 10441
bf9f3bac 10442
bf9f3bac 10443
bf9f3bac 10444
bf9f3bac 10445
bf9f3bac 10446
bf9f3bac 10447
bf9f3bac 10448
bf9f3bac 10449
bf9f3bac 10450
bf9f3bac 10451
bf9f3bac 10452
bf9f3bac 10453
bf9f3bac 10454
bf9f3bac 10455
bf9f3bac 10456
bf9f3bac 10457
bf9f3bac 10458
bf9f3bac 10459
bf9f3bac 10460
bf9f3bac 10461
bf9f3bac 10462
bf9f3bac 10463
bf9f3bac 10464
bf9f3bac 10465
bf9f3bac 10466
bf9f3bac 10467
bf9f3bac 10468
bf9f3bac 10469
bf9f3bac 10470
bf9f3bac 10471
bf9f3bac 10472
bf9f3bac 10473
bf9f3bac 10474
bf9f3bac 10475
bf9f3bac 10476
bf9f3bac 10477
bf9f3bac 10478
bf9f3bac 10479
bf9f3bac 10480
bf9f3bac 10481
bf9f3bac 10482
bf9f3bac 10483
bf9f3bac 10484
bf9f3bac 10485
bf9f3bac 10486
bf9f3bac 10487
bf9f3bac 10488
bf9f3bac 10489
bf9f3bac 10490
bf9f3bac 10491
bf9f3bac 10492
bf9f3bac 10493
bf9f3bac 10494
bf9f3bac 10495
bf9f3bac 10496
bf9f3bac 10497
bf9f3bac 10498
bf9f3bac 10499
bf9f3bac 10500
bf9f3bac 10501
bf9f3bac 10502
bf9f3bac 10503
8934764e
BB
10504 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10505$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10506hardcode_action=
10507if test -n "$hardcode_libdir_flag_spec" ||
10508 test -n "$runpath_var" ||
10509 test "X$hardcode_automatic" = "Xyes" ; then
bf9f3bac 10510
8934764e
BB
10511 # We can hardcode non-existent directories.
10512 if test "$hardcode_direct" != no &&
10513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10514 # have to relink, otherwise we might link with an installed library
10515 # when we should be linking with a yet-to-be-installed one
10516 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10517 test "$hardcode_minus_L" != no; then
10518 # Linking always hardcodes the temporary library directory.
10519 hardcode_action=relink
10520 else
10521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10522 hardcode_action=immediate
bf9f3bac 10523 fi
8934764e
BB
10524else
10525 # We cannot hardcode anything, or else we can only hardcode existing
10526 # directories.
10527 hardcode_action=unsupported
bf9f3bac 10528fi
8934764e
BB
10529{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10530$as_echo "$hardcode_action" >&6; }
bf9f3bac 10531
8934764e
BB
10532if test "$hardcode_action" = relink ||
10533 test "$inherit_rpath" = yes; then
10534 # Fast installation is not supported
10535 enable_fast_install=no
10536elif test "$shlibpath_overrides_runpath" = yes ||
10537 test "$enable_shared" = no; then
10538 # Fast installation is not necessary
10539 enable_fast_install=needless
10540fi
bf9f3bac 10541
bf9f3bac 10542
bf9f3bac 10543
bf9f3bac 10544
bf9f3bac 10545
10546
8934764e
BB
10547 if test "x$enable_dlopen" != xyes; then
10548 enable_dlopen=unknown
10549 enable_dlopen_self=unknown
10550 enable_dlopen_self_static=unknown
10551else
10552 lt_cv_dlopen=no
10553 lt_cv_dlopen_libs=
bf9f3bac 10554
8934764e
BB
10555 case $host_os in
10556 beos*)
10557 lt_cv_dlopen="load_add_on"
10558 lt_cv_dlopen_libs=
10559 lt_cv_dlopen_self=yes
10560 ;;
bf9f3bac 10561
8934764e
BB
10562 mingw* | pw32* | cegcc*)
10563 lt_cv_dlopen="LoadLibrary"
10564 lt_cv_dlopen_libs=
10565 ;;
bf9f3bac 10566
8934764e
BB
10567 cygwin*)
10568 lt_cv_dlopen="dlopen"
10569 lt_cv_dlopen_libs=
10570 ;;
bf9f3bac 10571
8934764e
BB
10572 darwin*)
10573 # if libdl is installed we need to link against it
10574 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10575$as_echo_n "checking for dlopen in -ldl... " >&6; }
10576if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10577 $as_echo_n "(cached) " >&6
10578else
10579 ac_check_lib_save_LIBS=$LIBS
10580LIBS="-ldl $LIBS"
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
bf9f3bac 10587
8934764e
BB
10588/* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10591#ifdef __cplusplus
10592extern "C"
10593#endif
10594char dlopen ();
10595int
10596main ()
10597{
10598return dlopen ();
10599 ;
10600 return 0;
10601}
10602_ACEOF
10603rm -f conftest.$ac_objext conftest$ac_exeext
10604if { (ac_try="$ac_link"
10605case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608esac
10609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10610$as_echo "$ac_try_echo") >&5
10611 (eval "$ac_link") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest$ac_exeext && {
10621 test "$cross_compiling" = yes ||
10622 $as_test_x conftest$ac_exeext
10623 }; then
10624 ac_cv_lib_dl_dlopen=yes
10625else
10626 $as_echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10628
8934764e
BB
10629 ac_cv_lib_dl_dlopen=no
10630fi
bf9f3bac 10631
8934764e
BB
10632rm -rf conftest.dSYM
10633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10635LIBS=$ac_check_lib_save_LIBS
10636fi
10637{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10638$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10639if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10641else
bf9f3bac 10642
8934764e
BB
10643 lt_cv_dlopen="dyld"
10644 lt_cv_dlopen_libs=
10645 lt_cv_dlopen_self=yes
bf9f3bac 10646
8934764e 10647fi
bf9f3bac 10648
8934764e 10649 ;;
bf9f3bac 10650
8934764e
BB
10651 *)
10652 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10653$as_echo_n "checking for shl_load... " >&6; }
10654if test "${ac_cv_func_shl_load+set}" = set; then
10655 $as_echo_n "(cached) " >&6
10656else
10657 cat >conftest.$ac_ext <<_ACEOF
10658/* confdefs.h. */
10659_ACEOF
10660cat confdefs.h >>conftest.$ac_ext
10661cat >>conftest.$ac_ext <<_ACEOF
10662/* end confdefs.h. */
10663/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10665#define shl_load innocuous_shl_load
bf9f3bac 10666
8934764e
BB
10667/* System header to define __stub macros and hopefully few prototypes,
10668 which can conflict with char shl_load (); below.
10669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10670 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10671
8934764e
BB
10672#ifdef __STDC__
10673# include <limits.h>
10674#else
10675# include <assert.h>
10676#endif
bf9f3bac 10677
8934764e 10678#undef shl_load
bf9f3bac 10679
8934764e
BB
10680/* Override any GCC internal prototype to avoid an error.
10681 Use char because int might match the return type of a GCC
10682 builtin and then its argument prototype would still apply. */
10683#ifdef __cplusplus
10684extern "C"
10685#endif
10686char shl_load ();
10687/* The GNU C library defines this for functions which it implements
10688 to always fail with ENOSYS. Some functions are actually named
10689 something starting with __ and the normal name is an alias. */
10690#if defined __stub_shl_load || defined __stub___shl_load
10691choke me
10692#endif
bf9f3bac 10693
8934764e
BB
10694int
10695main ()
10696{
10697return shl_load ();
10698 ;
10699 return 0;
10700}
10701_ACEOF
10702rm -f conftest.$ac_objext conftest$ac_exeext
10703if { (ac_try="$ac_link"
10704case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10709$as_echo "$ac_try_echo") >&5
10710 (eval "$ac_link") 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest$ac_exeext && {
10720 test "$cross_compiling" = yes ||
10721 $as_test_x conftest$ac_exeext
10722 }; then
10723 ac_cv_func_shl_load=yes
10724else
10725 $as_echo "$as_me: failed program was:" >&5
10726sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10727
8934764e
BB
10728 ac_cv_func_shl_load=no
10729fi
bf9f3bac 10730
8934764e
BB
10731rm -rf conftest.dSYM
10732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10733 conftest$ac_exeext conftest.$ac_ext
10734fi
10735{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10736$as_echo "$ac_cv_func_shl_load" >&6; }
10737if test "x$ac_cv_func_shl_load" = x""yes; then
10738 lt_cv_dlopen="shl_load"
10739else
10740 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10741$as_echo_n "checking for shl_load in -ldld... " >&6; }
10742if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10743 $as_echo_n "(cached) " >&6
10744else
10745 ac_check_lib_save_LIBS=$LIBS
10746LIBS="-ldld $LIBS"
10747cat >conftest.$ac_ext <<_ACEOF
10748/* confdefs.h. */
10749_ACEOF
10750cat confdefs.h >>conftest.$ac_ext
10751cat >>conftest.$ac_ext <<_ACEOF
10752/* end confdefs.h. */
bf9f3bac 10753
8934764e
BB
10754/* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757#ifdef __cplusplus
10758extern "C"
10759#endif
10760char shl_load ();
10761int
10762main ()
10763{
10764return shl_load ();
10765 ;
10766 return 0;
10767}
10768_ACEOF
10769rm -f conftest.$ac_objext conftest$ac_exeext
10770if { (ac_try="$ac_link"
10771case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774esac
10775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776$as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest$ac_exeext
10789 }; then
10790 ac_cv_lib_dld_shl_load=yes
10791else
10792 $as_echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10794
8934764e
BB
10795 ac_cv_lib_dld_shl_load=no
10796fi
bf9f3bac 10797
8934764e
BB
10798rm -rf conftest.dSYM
10799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801LIBS=$ac_check_lib_save_LIBS
10802fi
10803{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10804$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10805if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10806 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10807else
10808 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10809$as_echo_n "checking for dlopen... " >&6; }
10810if test "${ac_cv_func_dlopen+set}" = set; then
10811 $as_echo_n "(cached) " >&6
10812else
10813 cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10821#define dlopen innocuous_dlopen
bf9f3bac 10822
8934764e
BB
10823/* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char dlopen (); below.
10825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10826 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10827
8934764e
BB
10828#ifdef __STDC__
10829# include <limits.h>
10830#else
10831# include <assert.h>
10832#endif
bf9f3bac 10833
8934764e 10834#undef dlopen
bf9f3bac 10835
8934764e
BB
10836/* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839#ifdef __cplusplus
10840extern "C"
10841#endif
10842char dlopen ();
10843/* The GNU C library defines this for functions which it implements
10844 to always fail with ENOSYS. Some functions are actually named
10845 something starting with __ and the normal name is an alias. */
10846#if defined __stub_dlopen || defined __stub___dlopen
10847choke me
10848#endif
bf9f3bac 10849
8934764e
BB
10850int
10851main ()
10852{
10853return dlopen ();
10854 ;
10855 return 0;
10856}
10857_ACEOF
10858rm -f conftest.$ac_objext conftest$ac_exeext
10859if { (ac_try="$ac_link"
10860case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863esac
10864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10865$as_echo "$ac_try_echo") >&5
10866 (eval "$ac_link") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest$ac_exeext && {
10876 test "$cross_compiling" = yes ||
10877 $as_test_x conftest$ac_exeext
10878 }; then
10879 ac_cv_func_dlopen=yes
10880else
10881 $as_echo "$as_me: failed program was:" >&5
10882sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10883
8934764e
BB
10884 ac_cv_func_dlopen=no
10885fi
bf9f3bac 10886
8934764e
BB
10887rm -rf conftest.dSYM
10888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10889 conftest$ac_exeext conftest.$ac_ext
10890fi
10891{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10892$as_echo "$ac_cv_func_dlopen" >&6; }
10893if test "x$ac_cv_func_dlopen" = x""yes; then
10894 lt_cv_dlopen="dlopen"
10895else
10896 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10897$as_echo_n "checking for dlopen in -ldl... " >&6; }
10898if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10899 $as_echo_n "(cached) " >&6
10900else
10901 ac_check_lib_save_LIBS=$LIBS
10902LIBS="-ldl $LIBS"
10903cat >conftest.$ac_ext <<_ACEOF
10904/* confdefs.h. */
10905_ACEOF
10906cat confdefs.h >>conftest.$ac_ext
10907cat >>conftest.$ac_ext <<_ACEOF
10908/* end confdefs.h. */
bf9f3bac 10909
8934764e
BB
10910/* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913#ifdef __cplusplus
10914extern "C"
10915#endif
10916char dlopen ();
10917int
10918main ()
10919{
10920return dlopen ();
10921 ;
10922 return 0;
10923}
10924_ACEOF
10925rm -f conftest.$ac_objext conftest$ac_exeext
10926if { (ac_try="$ac_link"
10927case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930esac
10931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932$as_echo "$ac_try_echo") >&5
10933 (eval "$ac_link") 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } && {
10940 test -z "$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10942 } && test -s conftest$ac_exeext && {
10943 test "$cross_compiling" = yes ||
10944 $as_test_x conftest$ac_exeext
10945 }; then
10946 ac_cv_lib_dl_dlopen=yes
10947else
10948 $as_echo "$as_me: failed program was:" >&5
10949sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10950
8934764e
BB
10951 ac_cv_lib_dl_dlopen=no
10952fi
bf9f3bac 10953
8934764e
BB
10954rm -rf conftest.dSYM
10955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956 conftest$ac_exeext conftest.$ac_ext
10957LIBS=$ac_check_lib_save_LIBS
10958fi
10959{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10960$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10961if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10963else
10964 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10965$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10966if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10967 $as_echo_n "(cached) " >&6
10968else
10969 ac_check_lib_save_LIBS=$LIBS
10970LIBS="-lsvld $LIBS"
10971cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
bf9f3bac 10977
8934764e
BB
10978/* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981#ifdef __cplusplus
10982extern "C"
10983#endif
10984char dlopen ();
10985int
10986main ()
10987{
10988return dlopen ();
10989 ;
10990 return 0;
10991}
10992_ACEOF
10993rm -f conftest.$ac_objext conftest$ac_exeext
10994if { (ac_try="$ac_link"
10995case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000$as_echo "$ac_try_echo") >&5
11001 (eval "$ac_link") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest$ac_exeext && {
11011 test "$cross_compiling" = yes ||
11012 $as_test_x conftest$ac_exeext
11013 }; then
11014 ac_cv_lib_svld_dlopen=yes
11015else
11016 $as_echo "$as_me: failed program was:" >&5
11017sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11018
8934764e
BB
11019 ac_cv_lib_svld_dlopen=no
11020fi
bf9f3bac 11021
8934764e
BB
11022rm -rf conftest.dSYM
11023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11024 conftest$ac_exeext conftest.$ac_ext
11025LIBS=$ac_check_lib_save_LIBS
11026fi
11027{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11028$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11029if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11031else
11032 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11033$as_echo_n "checking for dld_link in -ldld... " >&6; }
11034if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11035 $as_echo_n "(cached) " >&6
11036else
11037 ac_check_lib_save_LIBS=$LIBS
11038LIBS="-ldld $LIBS"
11039cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
bf9f3bac 11045
8934764e
BB
11046/* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11049#ifdef __cplusplus
11050extern "C"
11051#endif
11052char dld_link ();
11053int
11054main ()
11055{
11056return dld_link ();
11057 ;
11058 return 0;
11059}
11060_ACEOF
11061rm -f conftest.$ac_objext conftest$ac_exeext
11062if { (ac_try="$ac_link"
11063case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11068$as_echo "$ac_try_echo") >&5
11069 (eval "$ac_link") 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && {
11076 test -z "$ac_c_werror_flag" ||
11077 test ! -s conftest.err
11078 } && test -s conftest$ac_exeext && {
11079 test "$cross_compiling" = yes ||
11080 $as_test_x conftest$ac_exeext
11081 }; then
11082 ac_cv_lib_dld_dld_link=yes
11083else
11084 $as_echo "$as_me: failed program was:" >&5
11085sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11086
8934764e
BB
11087 ac_cv_lib_dld_dld_link=no
11088fi
bf9f3bac 11089
8934764e
BB
11090rm -rf conftest.dSYM
11091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11093LIBS=$ac_check_lib_save_LIBS
11094fi
11095{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11096$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11097if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11098 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11099fi
bf9f3bac 11100
bf9f3bac 11101
8934764e 11102fi
bf9f3bac 11103
bf9f3bac 11104
8934764e 11105fi
bf9f3bac 11106
bf9f3bac 11107
8934764e 11108fi
bf9f3bac 11109
bf9f3bac 11110
8934764e 11111fi
bf9f3bac 11112
bf9f3bac 11113
8934764e 11114fi
bf9f3bac 11115
8934764e
BB
11116 ;;
11117 esac
bf9f3bac 11118
8934764e
BB
11119 if test "x$lt_cv_dlopen" != xno; then
11120 enable_dlopen=yes
11121 else
11122 enable_dlopen=no
11123 fi
bf9f3bac 11124
8934764e
BB
11125 case $lt_cv_dlopen in
11126 dlopen)
11127 save_CPPFLAGS="$CPPFLAGS"
11128 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
bf9f3bac 11129
8934764e
BB
11130 save_LDFLAGS="$LDFLAGS"
11131 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
bf9f3bac 11132
8934764e
BB
11133 save_LIBS="$LIBS"
11134 LIBS="$lt_cv_dlopen_libs $LIBS"
bf9f3bac 11135
8934764e
BB
11136 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11137$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11138if test "${lt_cv_dlopen_self+set}" = set; then
11139 $as_echo_n "(cached) " >&6
11140else
11141 if test "$cross_compiling" = yes; then :
11142 lt_cv_dlopen_self=cross
11143else
11144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11145 lt_status=$lt_dlunknown
11146 cat > conftest.$ac_ext <<_LT_EOF
73fc084e 11147#line 11147 "configure"
8934764e 11148#include "confdefs.h"
bf9f3bac 11149
8934764e
BB
11150#if HAVE_DLFCN_H
11151#include <dlfcn.h>
11152#endif
bf9f3bac 11153
8934764e 11154#include <stdio.h>
bf9f3bac 11155
8934764e
BB
11156#ifdef RTLD_GLOBAL
11157# define LT_DLGLOBAL RTLD_GLOBAL
11158#else
11159# ifdef DL_GLOBAL
11160# define LT_DLGLOBAL DL_GLOBAL
11161# else
11162# define LT_DLGLOBAL 0
11163# endif
11164#endif
bf9f3bac 11165
8934764e
BB
11166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167 find out it does not work in some platform. */
11168#ifndef LT_DLLAZY_OR_NOW
11169# ifdef RTLD_LAZY
11170# define LT_DLLAZY_OR_NOW RTLD_LAZY
11171# else
11172# ifdef DL_LAZY
11173# define LT_DLLAZY_OR_NOW DL_LAZY
11174# else
11175# ifdef RTLD_NOW
11176# define LT_DLLAZY_OR_NOW RTLD_NOW
11177# else
11178# ifdef DL_NOW
11179# define LT_DLLAZY_OR_NOW DL_NOW
11180# else
11181# define LT_DLLAZY_OR_NOW 0
11182# endif
11183# endif
11184# endif
11185# endif
11186#endif
bf9f3bac 11187
8934764e
BB
11188void fnord() { int i=42;}
11189int main ()
11190{
11191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11192 int status = $lt_dlunknown;
bf9f3bac 11193
8934764e
BB
11194 if (self)
11195 {
11196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11197 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11198 /* dlclose (self); */
11199 }
11200 else
11201 puts (dlerror ());
bf9f3bac 11202
8934764e
BB
11203 return status;
11204}
11205_LT_EOF
11206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11207 (eval $ac_link) 2>&5
11208 ac_status=$?
11209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11211 (./conftest; exit; ) >&5 2>/dev/null
11212 lt_status=$?
11213 case x$lt_status in
11214 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11215 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11216 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11217 esac
11218 else :
11219 # compilation failed
11220 lt_cv_dlopen_self=no
11221 fi
11222fi
11223rm -fr conftest*
bf9f3bac 11224
bf9f3bac 11225
8934764e
BB
11226fi
11227{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11228$as_echo "$lt_cv_dlopen_self" >&6; }
bf9f3bac 11229
8934764e
BB
11230 if test "x$lt_cv_dlopen_self" = xyes; then
11231 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11232 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11233$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11234if test "${lt_cv_dlopen_self_static+set}" = set; then
11235 $as_echo_n "(cached) " >&6
11236else
11237 if test "$cross_compiling" = yes; then :
11238 lt_cv_dlopen_self_static=cross
11239else
11240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11241 lt_status=$lt_dlunknown
11242 cat > conftest.$ac_ext <<_LT_EOF
73fc084e 11243#line 11243 "configure"
8934764e 11244#include "confdefs.h"
bf9f3bac 11245
8934764e
BB
11246#if HAVE_DLFCN_H
11247#include <dlfcn.h>
11248#endif
bf9f3bac 11249
8934764e 11250#include <stdio.h>
bf9f3bac 11251
8934764e
BB
11252#ifdef RTLD_GLOBAL
11253# define LT_DLGLOBAL RTLD_GLOBAL
11254#else
11255# ifdef DL_GLOBAL
11256# define LT_DLGLOBAL DL_GLOBAL
11257# else
11258# define LT_DLGLOBAL 0
11259# endif
11260#endif
bf9f3bac 11261
8934764e
BB
11262/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11263 find out it does not work in some platform. */
11264#ifndef LT_DLLAZY_OR_NOW
11265# ifdef RTLD_LAZY
11266# define LT_DLLAZY_OR_NOW RTLD_LAZY
11267# else
11268# ifdef DL_LAZY
11269# define LT_DLLAZY_OR_NOW DL_LAZY
11270# else
11271# ifdef RTLD_NOW
11272# define LT_DLLAZY_OR_NOW RTLD_NOW
11273# else
11274# ifdef DL_NOW
11275# define LT_DLLAZY_OR_NOW DL_NOW
11276# else
11277# define LT_DLLAZY_OR_NOW 0
11278# endif
11279# endif
11280# endif
11281# endif
11282#endif
bf9f3bac 11283
8934764e
BB
11284void fnord() { int i=42;}
11285int main ()
11286{
11287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11288 int status = $lt_dlunknown;
bf9f3bac 11289
8934764e
BB
11290 if (self)
11291 {
11292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11294 /* dlclose (self); */
11295 }
11296 else
11297 puts (dlerror ());
bf9f3bac 11298
8934764e
BB
11299 return status;
11300}
11301_LT_EOF
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>&5
11304 ac_status=$?
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11307 (./conftest; exit; ) >&5 2>/dev/null
11308 lt_status=$?
11309 case x$lt_status in
11310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11313 esac
11314 else :
11315 # compilation failed
11316 lt_cv_dlopen_self_static=no
11317 fi
11318fi
11319rm -fr conftest*
bf9f3bac 11320
bf9f3bac 11321
8934764e
BB
11322fi
11323{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11324$as_echo "$lt_cv_dlopen_self_static" >&6; }
11325 fi
bf9f3bac 11326
8934764e
BB
11327 CPPFLAGS="$save_CPPFLAGS"
11328 LDFLAGS="$save_LDFLAGS"
11329 LIBS="$save_LIBS"
11330 ;;
11331 esac
bf9f3bac 11332
8934764e
BB
11333 case $lt_cv_dlopen_self in
11334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11335 *) enable_dlopen_self=unknown ;;
11336 esac
bf9f3bac 11337
8934764e
BB
11338 case $lt_cv_dlopen_self_static in
11339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11340 *) enable_dlopen_self_static=unknown ;;
11341 esac
11342fi
bf9f3bac 11343
bf9f3bac 11344
bf9f3bac 11345
bf9f3bac 11346
bf9f3bac 11347
bf9f3bac 11348
bf9f3bac 11349
bf9f3bac 11350
bf9f3bac 11351
bf9f3bac 11352
bf9f3bac 11353
bf9f3bac 11354
bf9f3bac 11355
bf9f3bac 11356
bf9f3bac 11357
bf9f3bac 11358
bf9f3bac 11359
8934764e
BB
11360striplib=
11361old_striplib=
11362{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11363$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11364if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11366 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11367 { $as_echo "$as_me:$LINENO: result: yes" >&5
11368$as_echo "yes" >&6; }
11369else
11370# FIXME - insert some real tests, host_os isn't really good enough
11371 case $host_os in
11372 darwin*)
11373 if test -n "$STRIP" ; then
11374 striplib="$STRIP -x"
11375 old_striplib="$STRIP -S"
11376 { $as_echo "$as_me:$LINENO: result: yes" >&5
11377$as_echo "yes" >&6; }
11378 else
11379 { $as_echo "$as_me:$LINENO: result: no" >&5
11380$as_echo "no" >&6; }
11381 fi
11382 ;;
11383 *)
11384 { $as_echo "$as_me:$LINENO: result: no" >&5
11385$as_echo "no" >&6; }
11386 ;;
11387 esac
11388fi
bf9f3bac 11389
bf9f3bac 11390
bf9f3bac 11391
bf9f3bac 11392
bf9f3bac 11393
bf9f3bac 11394
bf9f3bac 11395
bf9f3bac 11396
bf9f3bac 11397
bf9f3bac 11398
bf9f3bac 11399
bf9f3bac 11400
8934764e
BB
11401 # Report which library types will actually be built
11402 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11403$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11404 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11405$as_echo "$can_build_shared" >&6; }
bf9f3bac 11406
8934764e
BB
11407 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11408$as_echo_n "checking whether to build shared libraries... " >&6; }
11409 test "$can_build_shared" = "no" && enable_shared=no
bf9f3bac 11410
8934764e
BB
11411 # On AIX, shared libraries and static libraries use the same namespace, and
11412 # are all built from PIC.
11413 case $host_os in
11414 aix3*)
11415 test "$enable_shared" = yes && enable_static=no
11416 if test -n "$RANLIB"; then
11417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11418 postinstall_cmds='$RANLIB $lib'
11419 fi
11420 ;;
bf9f3bac 11421
8934764e
BB
11422 aix[4-9]*)
11423 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11424 test "$enable_shared" = yes && enable_static=no
11425 fi
11426 ;;
11427 esac
11428 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11429$as_echo "$enable_shared" >&6; }
bf9f3bac 11430
8934764e
BB
11431 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11432$as_echo_n "checking whether to build static libraries... " >&6; }
11433 # Make sure either enable_shared or enable_static is yes.
11434 test "$enable_shared" = yes || enable_static=yes
11435 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11436$as_echo "$enable_static" >&6; }
bf9f3bac 11437
bf9f3bac 11438
bf9f3bac 11439
11440
bf9f3bac 11441fi
bf9f3bac 11442ac_ext=c
11443ac_cpp='$CPP $CPPFLAGS'
11444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11446ac_compiler_gnu=$ac_cv_c_compiler_gnu
11447
11448CC="$lt_save_CC"
11449
bf9f3bac 11450
bf9f3bac 11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
8934764e 11462 ac_config_commands="$ac_config_commands libtool"
bf9f3bac 11463
11464
11465
11466
8934764e 11467# Only expand once:
bf9f3bac 11468
11469
11470
11471
8934764e
BB
11472 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11473$as_echo_n "checking spl license... " >&6; }
86933a6e 11474 LICENSE=GPL
8934764e
BB
11475 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11476$as_echo "$LICENSE" >&6; }
86933a6e
BB
11477 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11478
11479
11480
287b2fb1
BB
11481
11482 RPM=rpm
11483 RPMBUILD=rpmbuild
11484
11485 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11486$as_echo_n "checking whether $RPM is available... " >&6; }
11487 if tmp=$($RPM --version 2>/dev/null); then
11488
11489 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11490 HAVE_RPM=yes
11491 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11492$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11493
11494else
11495
11496 HAVE_RPM=no
11497 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11498$as_echo "$HAVE_RPM" >&6; }
11499
11500fi
11501
11502
11503 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11504$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11505 if tmp=$($RPMBUILD --version 2>/dev/null); then
11506
11507 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11508 HAVE_RPMBUILD=yes
11509 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11510$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11511
11512else
11513
11514 HAVE_RPMBUILD=no
11515 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11516$as_echo "$HAVE_RPMBUILD" >&6; }
11517
11518fi
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530 DPKG=dpkg
11531 DPKGBUILD=dpkg-buildpackage
11532
11533 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11534$as_echo_n "checking whether $DPKG is available... " >&6; }
11535 if tmp=$($DPKG --version 2>/dev/null); then
11536
11537 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11538 HAVE_DPKG=yes
11539 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11540$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11541
11542else
11543
11544 HAVE_DPKG=no
11545 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11546$as_echo "$HAVE_DPKG" >&6; }
11547
11548fi
11549
11550
11551 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11552$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11553 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11554
11555 DPKGBUILD_VERSION=$(echo $tmp | \
11556 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11557 HAVE_DPKGBUILD=yes
11558 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11559$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11560
11561else
11562
11563 HAVE_DPKGBUILD=no
11564 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11565$as_echo "$HAVE_DPKGBUILD" >&6; }
11566
11567fi
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579 ALIEN=alien
11580
11581 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11582$as_echo_n "checking whether $ALIEN is available... " >&6; }
11583 if tmp=$($ALIEN --version 2>/dev/null); then
11584
11585 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11586 HAVE_ALIEN=yes
11587 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11588$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11589
11590else
11591
11592 HAVE_ALIEN=no
11593 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11594$as_echo "$HAVE_ALIEN" >&6; }
11595
11596fi
11597
11598
11599
11600
11601
11602
11603
73fc084e
BB
11604 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11605$as_echo_n "checking linux distribution... " >&6; }
11606 if test -f /etc/redhat-release ; then
11607 VENDOR=redhat ;
11608 elif test -f /etc/fedora-release ; then
11609 VENDOR=fedora ;
11610 elif test -f /etc/lsb-release ; then
11611 VENDOR=ubuntu ;
11612 elif test -f /etc/debian_version ; then
11613 VENDOR=debian ;
11614 elif test -f /etc/SuSE-release ; then
11615 VENDOR=sles ;
11616 elif test -f /etc/slackware-version ; then
11617 VENDOR=slackware ;
11618 elif test -f /etc/gentoo-release ; then
11619 VENDOR=gentoo ;
11620 else
11621 VENDOR= ;
11622 fi
11623 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11624$as_echo "$VENDOR" >&6; }
11625
287b2fb1
BB
11626
11627 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11628$as_echo_n "checking default package type... " >&6; }
11629 case "$VENDOR" in
11630 fedora) DEFAULT_PACKAGE=rpm ;;
11631 redhat) DEFAULT_PACKAGE=rpm ;;
11632 sles) DEFAULT_PACKAGE=rpm ;;
11633 ubuntu) DEFAULT_PACKAGE=deb ;;
11634 debian) DEFAULT_PACKAGE=deb ;;
11635 slackware) DEFAULT_PACKAGE=tgz ;;
11636 *) DEFAULT_PACKAGE=rpm ;;
11637 esac
11638
11639 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11640$as_echo "$DEFAULT_PACKAGE" >&6; }
11641
11642
11643
11644
86933a6e
BB
11645 SPL_CONFIG=all
11646
8934764e 11647# Check whether --with-config was given.
86933a6e 11648if test "${with_config+set}" = set; then
8934764e
BB
11649 withval=$with_config; SPL_CONFIG="$withval"
11650fi
86933a6e 11651
8934764e
BB
11652
11653 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11654$as_echo_n "checking spl config... " >&6; }
11655 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11656$as_echo "$SPL_CONFIG" >&6; };
86933a6e
BB
11657
11658
11659 case "$SPL_CONFIG" in
11660 kernel)
11661
11662
8934764e 11663# Check whether --with-linux was given.
86933a6e 11664if test "${with_linux+set}" = set; then
8934764e
BB
11665 withval=$with_linux; kernelsrc="$withval"
11666fi
86933a6e
BB
11667
11668
8934764e
BB
11669
11670# Check whether --with-linux-obj was given.
86933a6e 11671if test "${with_linux_obj+set}" = set; then
8934764e
BB
11672 withval=$with_linux_obj; kernelbuild="$withval"
11673fi
86933a6e 11674
8934764e
BB
11675
11676 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11677$as_echo_n "checking kernel source directory... " >&6; }
86933a6e 11678 if test -z "$kernelsrc"; then
534c4e38
BM
11679 headersdir="/lib/modules/$(uname -r)/build"
11680 if test -e "$headersdir"; then
11681 sourcelink=$(readlink -f "$headersdir")
11682 else
11683 sourcelink=$(ls -1d /usr/src/kernels/* \
11684 /usr/src/linux-* \
11685 2>/dev/null | grep -v obj | tail -1)
11686 fi
86933a6e 11687
8fd4e3af 11688 if test -n "$sourcelink" && test -e ${sourcelink}; then
86933a6e
BB
11689 kernelsrc=`readlink -f ${sourcelink}`
11690 else
8934764e
BB
11691 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11692$as_echo "Not found" >&6; }
11693 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
11694 *** Please make sure the kernel devel package for your distribution
11695 *** is installed then try again. If that fails you can specify the
11696 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 11697$as_echo "$as_me: error:
8fd4e3af
BB
11698 *** Please make sure the kernel devel package for your distribution
11699 *** is installed then try again. If that fails you can specify the
11700 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
86933a6e
BB
11701 { (exit 1); exit 1; }; }
11702 fi
11703 else
11704 if test "$kernelsrc" = "NONE"; then
11705 kernsrcver=NONE
11706 fi
11707 fi
11708
8934764e
BB
11709 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11710$as_echo "$kernelsrc" >&6; }
11711 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11712$as_echo_n "checking kernel build directory... " >&6; }
86933a6e 11713 if test -z "$kernelbuild"; then
e2d28a37
BB
11714 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11715 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11716 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11717 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11718 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11719 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
86933a6e
BB
11720 else
11721 kernelbuild=${kernelsrc}
11722 fi
11723 fi
8934764e
BB
11724 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11725$as_echo "$kernelbuild" >&6; }
86933a6e 11726
8934764e
BB
11727 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11728$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
11729 utsrelease1=$kernelbuild/include/linux/version.h
11730 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11731 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11732 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11733 utsrelease=linux/version.h
11734 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11735 utsrelease=linux/utsrelease.h
11736 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11737 utsrelease=generated/utsrelease.h
11738 fi
86933a6e 11739
fd921c2e
BB
11740 if test "$utsrelease"; then
11741 kernsrcver=`(echo "#include <$utsrelease>";
86933a6e
BB
11742 echo "kernsrcver=UTS_RELEASE") |
11743 cpp -I $kernelbuild/include |
11744 grep "^kernsrcver=" | cut -d \" -f 2`
86933a6e 11745
fd921c2e
BB
11746 if test -z "$kernsrcver"; then
11747 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11748$as_echo "Not found" >&6; }
11749 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11750$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11751 { (exit 1); exit 1; }; }
11752 fi
11753 else
8934764e
BB
11754 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11755$as_echo "Not found" >&6; }
fd921c2e
BB
11756 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11757$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
86933a6e
BB
11758 { (exit 1); exit 1; }; }
11759 fi
11760
8934764e
BB
11761 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11762$as_echo "$kernsrcver" >&6; }
86933a6e
BB
11763
11764 LINUX=${kernelsrc}
11765 LINUX_OBJ=${kernelbuild}
11766 LINUX_VERSION=${kernsrcver}
11767
11768
11769
11770
11771
11772
bb339d06 11773 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
11774 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11775$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
11776 if test -f "$modpost"; then
11777 if grep -q Modules.symvers $modpost; then
11778 LINUX_SYMBOLS=Modules.symvers
11779 else
11780 LINUX_SYMBOLS=Module.symvers
11781 fi
86933a6e 11782 else
bb339d06 11783 LINUX_SYMBOLS=NONE
86933a6e 11784 fi
8934764e
BB
11785 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11786$as_echo "$LINUX_SYMBOLS" >&6; }
86933a6e
BB
11787
11788
11789
11790
86933a6e
BB
11791 if test "${LINUX_OBJ}" != "${LINUX}"; then
11792 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11793 fi
11794
11795
a7958f7e 11796 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e
BB
11797
11798
11799
c950d148
BB
11800 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11801$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 11802 # Check whether --enable-debug was given.
86933a6e 11803if test "${enable_debug+set}" = set; then
8934764e 11804 enableval=$enable_debug;
055ffd98
BB
11805else
11806 enable_debug=no
8934764e
BB
11807fi
11808
055ffd98
BB
11809
11810 if test "x$enable_debug" = xyes; then
c950d148 11811
c950d148
BB
11812 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11813 DEBUG_CFLAGS="-DDEBUG -Werror"
11814
055ffd98 11815else
c950d148 11816
c950d148
BB
11817 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11818 DEBUG_CFLAGS="-DNDEBUG"
11819
055ffd98
BB
11820fi
11821
11822
c950d148 11823
8934764e
BB
11824 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11825$as_echo "$enable_debug" >&6; }
86933a6e
BB
11826
11827
8934764e 11828 # Check whether --enable-debug-kmem was given.
86933a6e 11829if test "${enable_debug_kmem+set}" = set; then
8934764e 11830 enableval=$enable_debug_kmem;
055ffd98
BB
11831else
11832 enable_debug_kmem=yes
8934764e
BB
11833fi
11834
055ffd98
BB
11835
11836 if test "x$enable_debug_kmem" = xyes; then
86933a6e
BB
11837
11838cat >>confdefs.h <<\_ACEOF
11839#define DEBUG_KMEM 1
11840_ACEOF
11841
11842 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 11843fi
86933a6e 11844
86933a6e 11845
8934764e
BB
11846 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11847$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11848 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11849$as_echo "$enable_debug_kmem" >&6; }
86933a6e
BB
11850
11851
8934764e 11852 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 11853if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 11854 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
11855else
11856 enable_debug_kmem_tracking=no
8934764e
BB
11857fi
11858
055ffd98
BB
11859
11860 if test "x$enable_debug_kmem_tracking" = xyes; then
86933a6e
BB
11861
11862cat >>confdefs.h <<\_ACEOF
055ffd98 11863#define DEBUG_KMEM_TRACKING 1
86933a6e
BB
11864_ACEOF
11865
055ffd98
BB
11866 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11867fi
11868
11869
8934764e
BB
11870 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11871$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11872 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11873$as_echo "$enable_debug_kmem_tracking" >&6; }
86933a6e 11874
5e9b5d83 11875
8934764e 11876 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 11877if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 11878 enableval=$enable_atomic_spinlocks;
5e9b5d83 11879else
d04c8a56 11880 enable_atomic_spinlocks=check
8934764e
BB
11881fi
11882
5e9b5d83 11883
86933a6e
BB
11884
11885
dbe561d8 11886cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
11887/* confdefs.h. */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h. */
11892
11893
d04c8a56 11894 #include <asm/atomic.h>
86933a6e
BB
11895
11896int
11897main (void)
11898{
11899
d04c8a56 11900 atomic64_t *ptr;
86933a6e
BB
11901
11902 ;
11903 return 0;
11904}
11905
11906_ACEOF
11907
11908
11909 rm -Rf build && mkdir -p build
11910 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 11911 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
8934764e 11915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
11916 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
8934764e 11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
11921 (exit $ac_status); }; }; then
11922
d04c8a56 11923 have_atomic64_t=yes
86933a6e
BB
11924
11925cat >>confdefs.h <<\_ACEOF
d04c8a56 11926#define HAVE_ATOMIC64_T 1
86933a6e
BB
11927_ACEOF
11928
11929
11930else
8934764e 11931 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
d04c8a56 11934 have_atomic64_t=no
86933a6e
BB
11935
11936
11937
11938fi
11939
11940 rm -Rf build
11941
11942
11943
d04c8a56
BB
11944 if test "x$enable_atomic_spinlocks" = xcheck; then
11945
11946 if test "x$have_atomic64_t" = xyes; then
11947
11948 enable_atomic_spinlocks=no
11949
11950else
11951
11952 enable_atomic_spinlocks=yes
11953
11954fi
11955
11956
11957fi
11958
11959
11960 if test "x$enable_atomic_spinlocks" = xyes; then
11961
11962
11963cat >>confdefs.h <<\_ACEOF
11964#define ATOMIC_SPINLOCK 1
11965_ACEOF
11966
11967
11968else
11969
11970 if test "x$have_atomic64_t" = xno; then
11971
8934764e
BB
11972 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11974{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 11975See \`config.log' for more details." >&5
8934764e 11976$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 11977See \`config.log' for more details." >&2;}
8934764e 11978 { (exit 1); exit 1; }; }; }
d04c8a56
BB
11979
11980fi
11981
11982
11983fi
11984
11985
8934764e
BB
11986 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
11987$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11988 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
11989$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 11990
8934764e
BB
11991 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
11992$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11993 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
11994$as_echo "$have_atomic64_t" >&6; }
d04c8a56 11995
8934764e
BB
11996 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
11997$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
86933a6e
BB
11998
11999
dbe561d8 12000cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
12006
12007
12008 #include <asm/atomic.h>
5ec44a37 12009 #include <asm/system.h>
86933a6e
BB
12010
12011int
12012main (void)
12013{
12014
d04c8a56 12015 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
86933a6e
BB
12016
12017 ;
12018 return 0;
12019}
12020
12021_ACEOF
12022
12023
12024 rm -Rf build && mkdir -p build
12025 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12026 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
8934764e 12030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12031 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
8934764e 12035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12036 (exit $ac_status); }; }; then
12037
8934764e
BB
12038 { $as_echo "$as_me:$LINENO: result: yes" >&5
12039$as_echo "yes" >&6; }
86933a6e
BB
12040
12041cat >>confdefs.h <<\_ACEOF
d04c8a56 12042#define HAVE_ATOMIC64_CMPXCHG 1
86933a6e
BB
12043_ACEOF
12044
12045
12046else
8934764e 12047 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
8934764e
BB
12050 { $as_echo "$as_me:$LINENO: result: no" >&5
12051$as_echo "no" >&6; }
86933a6e
BB
12052
12053
12054
302b88e6
BB
12055fi
12056
12057 rm -Rf build
12058
12059
12060
8934764e
BB
12061 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12062$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
12063
12064
dbe561d8 12065cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12066/* confdefs.h. */
12067_ACEOF
12068cat confdefs.h >>conftest.$ac_ext
12069cat >>conftest.$ac_ext <<_ACEOF
12070/* end confdefs.h. */
12071
12072
12073 #include <asm/atomic.h>
12074
12075int
12076main (void)
12077{
12078
d04c8a56 12079 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
12080
12081 ;
12082 return 0;
12083}
12084
12085_ACEOF
12086
12087
12088 rm -Rf build && mkdir -p build
12089 echo "obj-m := conftest.o" >build/Makefile
12090 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
8934764e 12094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12095 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12098 ac_status=$?
8934764e 12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12100 (exit $ac_status); }; }; then
12101
8934764e
BB
12102 { $as_echo "$as_me:$LINENO: result: yes" >&5
12103$as_echo "yes" >&6; }
302b88e6
BB
12104
12105cat >>confdefs.h <<\_ACEOF
d04c8a56 12106#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
12107_ACEOF
12108
12109
12110else
8934764e 12111 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12112sed 's/^/| /' conftest.$ac_ext >&5
12113
8934764e
BB
12114 { $as_echo "$as_me:$LINENO: result: no" >&5
12115$as_echo "no" >&6; }
302b88e6
BB
12116
12117
12118
12119fi
12120
12121 rm -Rf build
12122
12123
12124
8934764e
BB
12125 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12126$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
12127
12128
dbe561d8 12129cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135
12136
d04c8a56 12137 #include <linux/types.h>
302b88e6
BB
12138
12139int
12140main (void)
12141{
12142
d04c8a56 12143 uintptr_t *ptr;
302b88e6
BB
12144
12145 ;
12146 return 0;
12147}
12148
12149_ACEOF
12150
12151
12152 rm -Rf build && mkdir -p build
12153 echo "obj-m := conftest.o" >build/Makefile
12154 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
8934764e 12158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12159 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
8934764e 12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12164 (exit $ac_status); }; }; then
12165
8934764e
BB
12166 { $as_echo "$as_me:$LINENO: result: yes" >&5
12167$as_echo "yes" >&6; }
302b88e6
BB
12168
12169cat >>confdefs.h <<\_ACEOF
d04c8a56 12170#define HAVE_UINTPTR_T 1
302b88e6
BB
12171_ACEOF
12172
12173
12174else
8934764e 12175 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
8934764e
BB
12178 { $as_echo "$as_me:$LINENO: result: no" >&5
12179$as_echo "no" >&6; }
302b88e6
BB
12180
12181
12182
86933a6e
BB
12183fi
12184
12185 rm -Rf build
12186
12187
12188
8934764e
BB
12189 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12190$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
86933a6e
BB
12191
12192
dbe561d8 12193cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199
12200
12201 #include <linux/workqueue.h>
12202
12203int
12204main (void)
12205{
12206
12207 struct work_struct work;
12208 INIT_WORK(&work, NULL, NULL);
12209
12210 ;
12211 return 0;
12212}
12213
12214_ACEOF
12215
12216
12217 rm -Rf build && mkdir -p build
12218 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12219 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
8934764e 12223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12224 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
8934764e 12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12229 (exit $ac_status); }; }; then
12230
8934764e
BB
12231 { $as_echo "$as_me:$LINENO: result: yes" >&5
12232$as_echo "yes" >&6; }
86933a6e
BB
12233
12234cat >>confdefs.h <<\_ACEOF
12235#define HAVE_3ARGS_INIT_WORK 1
12236_ACEOF
12237
12238
12239else
8934764e 12240 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
8934764e
BB
12243 { $as_echo "$as_me:$LINENO: result: no" >&5
12244$as_echo "no" >&6; }
86933a6e
BB
12245
12246
12247
12248fi
12249
12250 rm -Rf build
12251
12252
12253
8934764e
BB
12254 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12255$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
86933a6e
BB
12256
12257
dbe561d8 12258cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264
12265
12266 #include <linux/sysctl.h>
12267
12268int
12269main (void)
12270{
12271
12272 return register_sysctl_table(NULL,0);
12273
12274 ;
12275 return 0;
12276}
12277
12278_ACEOF
12279
12280
12281 rm -Rf build && mkdir -p build
12282 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12283 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
8934764e 12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
8934764e 12292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12293 (exit $ac_status); }; }; then
12294
8934764e
BB
12295 { $as_echo "$as_me:$LINENO: result: yes" >&5
12296$as_echo "yes" >&6; }
86933a6e
BB
12297
12298cat >>confdefs.h <<\_ACEOF
12299#define HAVE_2ARGS_REGISTER_SYSCTL 1
12300_ACEOF
12301
12302
12303else
8934764e 12304 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12305sed 's/^/| /' conftest.$ac_ext >&5
12306
8934764e
BB
12307 { $as_echo "$as_me:$LINENO: result: no" >&5
12308$as_echo "no" >&6; }
86933a6e
BB
12309
12310
12311
12312fi
12313
12314 rm -Rf build
12315
12316
12317
12318
8934764e
BB
12319 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12320$as_echo_n "checking whether set_shrinker() available... " >&6; }
86933a6e
BB
12321
12322
dbe561d8 12323cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329
12330
12331 #include <linux/mm.h>
12332
12333int
12334main (void)
12335{
12336
12337 return set_shrinker(DEFAULT_SEEKS, NULL);
12338
12339 ;
12340 return 0;
12341}
12342
12343_ACEOF
12344
12345
12346 rm -Rf build && mkdir -p build
12347 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12348 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
8934764e 12352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12353 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
8934764e 12357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12358 (exit $ac_status); }; }; then
12359
8934764e
BB
12360 { $as_echo "$as_me:$LINENO: result: yes" >&5
12361$as_echo "yes" >&6; }
86933a6e
BB
12362
12363cat >>confdefs.h <<\_ACEOF
12364#define HAVE_SET_SHRINKER 1
12365_ACEOF
12366
12367
12368else
8934764e 12369 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12370sed 's/^/| /' conftest.$ac_ext >&5
12371
8934764e
BB
12372 { $as_echo "$as_me:$LINENO: result: no" >&5
12373$as_echo "no" >&6; }
86933a6e
BB
12374
12375
12376
12377fi
12378
12379 rm -Rf build
12380
12381
12382
23aa63cb
BB
12383 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12384$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12385 tmp_flags="$EXTRA_KCFLAGS"
12386 EXTRA_KCFLAGS="-Werror"
12387
12388
12389cat confdefs.h - <<_ACEOF >conftest.c
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395
12396
12397 #include <linux/mm.h>
12398
12399 int shrinker_cb(struct shrinker *, int, unsigned int);
12400
12401int
12402main (void)
12403{
12404
12405 struct shrinker cache_shrinker = {
12406 .shrink = shrinker_cb,
12407 .seeks = DEFAULT_SEEKS,
12408 };
12409 register_shrinker(&cache_shrinker);
12410
12411 ;
12412 return 0;
12413}
12414
12415_ACEOF
12416
12417
12418 rm -Rf build && mkdir -p build
12419 echo "obj-m := conftest.o" >build/Makefile
12420 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431
12432 { $as_echo "$as_me:$LINENO: result: yes" >&5
12433$as_echo "yes" >&6; }
12434
12435cat >>confdefs.h <<\_ACEOF
12436#define HAVE_3ARGS_SHRINKER_CALLBACK 1
12437_ACEOF
12438
12439
12440else
12441 $as_echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 { $as_echo "$as_me:$LINENO: result: no" >&5
12445$as_echo "no" >&6; }
12446
12447
12448
12449fi
12450
12451 rm -Rf build
12452
12453
12454 EXTRA_KCFLAGS="$tmp_flags"
12455
8934764e
BB
12456 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12457$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
86933a6e
BB
12458
12459
dbe561d8 12460cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
12465/* end confdefs.h. */
12466
12467
12468 #include <linux/namei.h>
12469
12470int
12471main (void)
12472{
12473
12474 struct nameidata nd;
12475
12476 nd.path.mnt = NULL;
12477 nd.path.dentry = NULL;
12478
12479 ;
12480 return 0;
12481}
12482
12483_ACEOF
12484
12485
12486 rm -Rf build && mkdir -p build
12487 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12488 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
8934764e 12492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12493 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
8934764e 12497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12498 (exit $ac_status); }; }; then
12499
8934764e
BB
12500 { $as_echo "$as_me:$LINENO: result: yes" >&5
12501$as_echo "yes" >&6; }
86933a6e
BB
12502
12503cat >>confdefs.h <<\_ACEOF
12504#define HAVE_PATH_IN_NAMEIDATA 1
12505_ACEOF
12506
12507
12508else
8934764e 12509 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
8934764e
BB
12512 { $as_echo "$as_me:$LINENO: result: no" >&5
12513$as_echo "no" >&6; }
86933a6e
BB
12514
12515
12516
12517fi
12518
12519 rm -Rf build
12520
12521
12522
12523
8934764e
BB
12524 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12525$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
86933a6e
BB
12526 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12527 $LINUX_OBJ/Module*.symvers 2>/dev/null
12528 rc=$?
12529 if test $rc -ne 0; then
12530 export=0
12531 for file in kernel/sched.c; do
12532 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12533 "$LINUX_OBJ/$file" 2>/dev/null
12534 rc=$?
12535 if test $rc -eq 0; then
12536 export=1
12537 break;
12538 fi
12539 done
12540 if test $export -eq 0; then
8934764e
BB
12541 { $as_echo "$as_me:$LINENO: result: no" >&5
12542$as_echo "no" >&6; }
86933a6e
BB
12543
12544 else
8934764e
BB
12545 { $as_echo "$as_me:$LINENO: result: yes" >&5
12546$as_echo "yes" >&6; }
86933a6e
BB
12547
12548cat >>confdefs.h <<\_ACEOF
12549#define HAVE_TASK_CURR 1
12550_ACEOF
12551
12552 fi
12553 else
8934764e
BB
12554 { $as_echo "$as_me:$LINENO: result: yes" >&5
12555$as_echo "yes" >&6; }
86933a6e
BB
12556
12557cat >>confdefs.h <<\_ACEOF
12558#define HAVE_TASK_CURR 1
12559_ACEOF
12560
12561 fi
12562
12563
8934764e
BB
12564 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12565$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
86933a6e
BB
12566
12567
dbe561d8 12568cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12569/* confdefs.h. */
12570_ACEOF
12571cat confdefs.h >>conftest.$ac_ext
12572cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h. */
12574
12575
12576 #include <linux/sysctl.h>
12577
12578int
12579main (void)
12580{
12581
12582 #ifndef CTL_UNNUMBERED
12583 #error CTL_UNNUMBERED undefined
12584 #endif
12585
12586 ;
12587 return 0;
12588}
12589
12590_ACEOF
12591
12592
12593 rm -Rf build && mkdir -p build
12594 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12595 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
8934764e 12599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12600 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
8934764e 12604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12605 (exit $ac_status); }; }; then
12606
8934764e
BB
12607 { $as_echo "$as_me:$LINENO: result: yes" >&5
12608$as_echo "yes" >&6; }
86933a6e
BB
12609
12610cat >>confdefs.h <<\_ACEOF
12611#define HAVE_CTL_UNNUMBERED 1
12612_ACEOF
12613
12614
12615else
8934764e 12616 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
8934764e
BB
12619 { $as_echo "$as_me:$LINENO: result: no" >&5
12620$as_echo "no" >&6; }
86933a6e
BB
12621
12622
12623
79a3bf13
BB
12624fi
12625
12626 rm -Rf build
12627
12628
12629
12630
12631 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12632$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12633
12634
dbe561d8 12635cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
12636/* confdefs.h. */
12637_ACEOF
12638cat confdefs.h >>conftest.$ac_ext
12639cat >>conftest.$ac_ext <<_ACEOF
12640/* end confdefs.h. */
12641
12642
12643 #include <linux/sysctl.h>
12644
12645int
12646main (void)
12647{
12648
12649 struct ctl_table ctl;
12650 ctl.ctl_name = 0;
12651
12652 ;
12653 return 0;
12654}
12655
12656_ACEOF
12657
12658
12659 rm -Rf build && mkdir -p build
12660 echo "obj-m := conftest.o" >build/Makefile
12661 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672
12673 { $as_echo "$as_me:$LINENO: result: yes" >&5
12674$as_echo "yes" >&6; }
12675
12676cat >>confdefs.h <<\_ACEOF
12677#define HAVE_CTL_NAME 1
12678_ACEOF
12679
12680
12681else
12682 $as_echo "$as_me: failed program was:" >&5
12683sed 's/^/| /' conftest.$ac_ext >&5
12684
12685 { $as_echo "$as_me:$LINENO: result: no" >&5
12686$as_echo "no" >&6; }
12687
12688
12689
86933a6e
BB
12690fi
12691
12692 rm -Rf build
12693
12694
12695
8934764e
BB
12696 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12697$as_echo_n "checking whether fls64() is available... " >&6; }
86933a6e
BB
12698
12699
dbe561d8 12700cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
12706
12707
12708 #include <linux/bitops.h>
12709
12710int
12711main (void)
12712{
12713
12714 return fls64(0);
12715
12716 ;
12717 return 0;
12718}
12719
12720_ACEOF
12721
12722
12723 rm -Rf build && mkdir -p build
12724 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12725 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
8934764e 12729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12730 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
8934764e 12734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12735 (exit $ac_status); }; }; then
12736
8934764e
BB
12737 { $as_echo "$as_me:$LINENO: result: yes" >&5
12738$as_echo "yes" >&6; }
86933a6e
BB
12739
12740cat >>confdefs.h <<\_ACEOF
12741#define HAVE_FLS64 1
12742_ACEOF
12743
12744
12745else
8934764e 12746 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12747sed 's/^/| /' conftest.$ac_ext >&5
12748
8934764e
BB
12749 { $as_echo "$as_me:$LINENO: result: no" >&5
12750$as_echo "no" >&6; }
86933a6e
BB
12751
12752
12753
12754fi
12755
12756 rm -Rf build
12757
12758
12759
12760
8934764e
BB
12761 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12762$as_echo_n "checking whether symbol device_create is exported... " >&6; }
86933a6e
BB
12763 grep -q -E '[[:space:]]device_create[[:space:]]' \
12764 $LINUX_OBJ/Module*.symvers 2>/dev/null
12765 rc=$?
12766 if test $rc -ne 0; then
12767 export=0
12768 for file in drivers/base/core.c; do
12769 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12770 "$LINUX_OBJ/$file" 2>/dev/null
12771 rc=$?
12772 if test $rc -eq 0; then
12773 export=1
12774 break;
12775 fi
12776 done
12777 if test $export -eq 0; then
8934764e
BB
12778 { $as_echo "$as_me:$LINENO: result: no" >&5
12779$as_echo "no" >&6; }
86933a6e
BB
12780
12781 else
8934764e
BB
12782 { $as_echo "$as_me:$LINENO: result: yes" >&5
12783$as_echo "yes" >&6; }
86933a6e
BB
12784
12785cat >>confdefs.h <<\_ACEOF
12786#define HAVE_DEVICE_CREATE 1
12787_ACEOF
12788
12789 fi
12790 else
8934764e
BB
12791 { $as_echo "$as_me:$LINENO: result: yes" >&5
12792$as_echo "yes" >&6; }
86933a6e
BB
12793
12794cat >>confdefs.h <<\_ACEOF
12795#define HAVE_DEVICE_CREATE 1
12796_ACEOF
12797
12798 fi
12799
12800
12801
8934764e
BB
12802 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12803$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
86933a6e
BB
12804 tmp_flags="$EXTRA_KCFLAGS"
12805 EXTRA_KCFLAGS="-Werror"
12806
12807
dbe561d8 12808cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814
12815
12816 #include <linux/device.h>
12817
12818int
12819main (void)
12820{
12821
12822 device_create(NULL, NULL, 0, NULL, "%d", 1);
12823
12824 ;
12825 return 0;
12826}
12827
12828_ACEOF
12829
12830
12831 rm -Rf build && mkdir -p build
12832 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12833 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
8934764e 12837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12838 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
8934764e 12842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12843 (exit $ac_status); }; }; then
12844
8934764e
BB
12845 { $as_echo "$as_me:$LINENO: result: yes" >&5
12846$as_echo "yes" >&6; }
86933a6e
BB
12847
12848cat >>confdefs.h <<\_ACEOF
12849#define HAVE_5ARGS_DEVICE_CREATE 1
12850_ACEOF
12851
12852
12853else
8934764e 12854 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12855sed 's/^/| /' conftest.$ac_ext >&5
12856
8934764e
BB
12857 { $as_echo "$as_me:$LINENO: result: no" >&5
12858$as_echo "no" >&6; }
86933a6e
BB
12859
12860
12861
12862fi
12863
12864 rm -Rf build
12865
12866
12867 EXTRA_KCFLAGS="$tmp_flags"
12868
12869
8934764e
BB
12870 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
12871$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
86933a6e
BB
12872 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12873 $LINUX_OBJ/Module*.symvers 2>/dev/null
12874 rc=$?
12875 if test $rc -ne 0; then
12876 export=0
12877 for file in drivers/base/class.c; do
12878 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12879 "$LINUX_OBJ/$file" 2>/dev/null
12880 rc=$?
12881 if test $rc -eq 0; then
12882 export=1
12883 break;
12884 fi
12885 done
12886 if test $export -eq 0; then
8934764e
BB
12887 { $as_echo "$as_me:$LINENO: result: no" >&5
12888$as_echo "no" >&6; }
86933a6e
BB
12889
12890 else
8934764e
BB
12891 { $as_echo "$as_me:$LINENO: result: yes" >&5
12892$as_echo "yes" >&6; }
86933a6e
BB
12893
12894cat >>confdefs.h <<\_ACEOF
12895#define HAVE_CLASS_DEVICE_CREATE 1
12896_ACEOF
12897
12898 fi
12899 else
8934764e
BB
12900 { $as_echo "$as_me:$LINENO: result: yes" >&5
12901$as_echo "yes" >&6; }
86933a6e
BB
12902
12903cat >>confdefs.h <<\_ACEOF
12904#define HAVE_CLASS_DEVICE_CREATE 1
12905_ACEOF
12906
12907 fi
12908
12909
12910
8934764e
BB
12911 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
12912$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
86933a6e
BB
12913 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12914 $LINUX_OBJ/Module*.symvers 2>/dev/null
12915 rc=$?
12916 if test $rc -ne 0; then
12917 export=0
12918 for file in kernel/time.c; do
12919 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12920 "$LINUX_OBJ/$file" 2>/dev/null
12921 rc=$?
12922 if test $rc -eq 0; then
12923 export=1
12924 break;
12925 fi
12926 done
12927 if test $export -eq 0; then
8934764e
BB
12928 { $as_echo "$as_me:$LINENO: result: no" >&5
12929$as_echo "no" >&6; }
86933a6e
BB
12930
12931 else
8934764e
BB
12932 { $as_echo "$as_me:$LINENO: result: yes" >&5
12933$as_echo "yes" >&6; }
86933a6e
BB
12934
12935cat >>confdefs.h <<\_ACEOF
12936#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12937_ACEOF
12938
12939 fi
12940 else
8934764e
BB
12941 { $as_echo "$as_me:$LINENO: result: yes" >&5
12942$as_echo "yes" >&6; }
86933a6e
BB
12943
12944cat >>confdefs.h <<\_ACEOF
12945#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12946_ACEOF
12947
12948 fi
12949
12950
12951
8934764e
BB
12952 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
12953$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
86933a6e
BB
12954
12955
dbe561d8 12956cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12957/* confdefs.h. */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h. */
12962
12963
12964 #include <linux/time.h>
12965 void set_normalized_timespec(struct timespec *ts,
12966 time_t sec, long nsec) { }
12967
12968int
12969main (void)
12970{
12971
12972 ;
12973 return 0;
12974}
12975
12976_ACEOF
12977
12978
12979 rm -Rf build && mkdir -p build
12980 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12981 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
8934764e 12985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12986 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
8934764e 12990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12991 (exit $ac_status); }; }; then
12992
8934764e
BB
12993 { $as_echo "$as_me:$LINENO: result: no" >&5
12994$as_echo "no" >&6; }
86933a6e
BB
12995
12996else
8934764e 12997 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
8934764e
BB
13000 { $as_echo "$as_me:$LINENO: result: yes" >&5
13001$as_echo "yes" >&6; }
86933a6e
BB
13002
13003cat >>confdefs.h <<\_ACEOF
13004#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13005_ACEOF
13006
13007
13008
13009
13010fi
13011
13012 rm -Rf build
13013
13014
13015
13016
8934764e
BB
13017 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13018$as_echo_n "checking whether timespec_sub() is available... " >&6; }
86933a6e
BB
13019
13020
dbe561d8 13021cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
13027
13028
13029 #include <linux/time.h>
13030
13031int
13032main (void)
13033{
13034
13035 struct timespec a, b, c = { 0 };
13036 c = timespec_sub(a, b);
13037
13038 ;
13039 return 0;
13040}
13041
13042_ACEOF
13043
13044
13045 rm -Rf build && mkdir -p build
13046 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13047 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
8934764e 13051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
8934764e 13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13057 (exit $ac_status); }; }; then
13058
8934764e
BB
13059 { $as_echo "$as_me:$LINENO: result: yes" >&5
13060$as_echo "yes" >&6; }
86933a6e
BB
13061
13062cat >>confdefs.h <<\_ACEOF
13063#define HAVE_TIMESPEC_SUB 1
13064_ACEOF
13065
13066
13067else
8934764e 13068 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13069sed 's/^/| /' conftest.$ac_ext >&5
13070
8934764e
BB
13071 { $as_echo "$as_me:$LINENO: result: no" >&5
13072$as_echo "no" >&6; }
86933a6e
BB
13073
13074
13075
13076fi
13077
13078 rm -Rf build
13079
13080
13081
13082
8934764e
BB
13083 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13084$as_echo_n "checking whether init_utsname() is available... " >&6; }
86933a6e
BB
13085
13086
dbe561d8 13087cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13088/* confdefs.h. */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
13092/* end confdefs.h. */
13093
13094
13095 #include <linux/utsname.h>
13096
13097int
13098main (void)
13099{
13100
13101 struct new_utsname *a = init_utsname();
13102
13103 ;
13104 return 0;
13105}
13106
13107_ACEOF
13108
13109
13110 rm -Rf build && mkdir -p build
13111 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13112 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
8934764e 13116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
8934764e 13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13122 (exit $ac_status); }; }; then
13123
8934764e
BB
13124 { $as_echo "$as_me:$LINENO: result: yes" >&5
13125$as_echo "yes" >&6; }
86933a6e
BB
13126
13127cat >>confdefs.h <<\_ACEOF
13128#define HAVE_INIT_UTSNAME 1
13129_ACEOF
13130
13131
13132else
8934764e 13133 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13134sed 's/^/| /' conftest.$ac_ext >&5
13135
8934764e
BB
13136 { $as_echo "$as_me:$LINENO: result: no" >&5
13137$as_echo "no" >&6; }
86933a6e
BB
13138
13139
13140
13141fi
13142
13143 rm -Rf build
13144
13145
13146
13147
8934764e
BB
13148 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13149$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
86933a6e
BB
13150
13151
dbe561d8 13152cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
13158
13159
13160 #include <linux/fdtable.h>
13161
13162int
13163main (void)
13164{
13165
13166 return 0;
13167
13168 ;
13169 return 0;
13170}
13171
13172_ACEOF
13173
13174
13175 rm -Rf build && mkdir -p build
13176 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13177 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
8934764e 13181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13185 ac_status=$?
8934764e 13186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13187 (exit $ac_status); }; }; then
13188
13189
13190cat >>confdefs.h <<\_ACEOF
13191#define HAVE_FDTABLE_HEADER 1
13192_ACEOF
13193
8934764e
BB
13194 { $as_echo "$as_me:$LINENO: result: yes" >&5
13195$as_echo "yes" >&6; }
86933a6e
BB
13196
13197
13198else
8934764e 13199 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
8934764e
BB
13202 { $as_echo "$as_me:$LINENO: result: no" >&5
13203$as_echo "no" >&6; }
86933a6e
BB
13204
13205
13206
13207
13208fi
13209
13210 rm -Rf build
13211
13212
13213
13214
13215
8934764e
BB
13216 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13217$as_echo_n "checking whether files_fdtable() is available... " >&6; }
86933a6e
BB
13218
13219
dbe561d8 13220cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226
13227
13228 #include <linux/sched.h>
13229 #include <linux/file.h>
13230 #ifdef HAVE_FDTABLE_HEADER
13231 #include <linux/fdtable.h>
13232 #endif
13233
13234int
13235main (void)
13236{
13237
13238 struct files_struct *files = current->files;
13239 struct fdtable *fdt = files_fdtable(files);
13240
13241 ;
13242 return 0;
13243}
13244
13245_ACEOF
13246
13247
13248 rm -Rf build && mkdir -p build
13249 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13250 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
8934764e 13254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
8934764e 13259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13260 (exit $ac_status); }; }; then
13261
8934764e
BB
13262 { $as_echo "$as_me:$LINENO: result: yes" >&5
13263$as_echo "yes" >&6; }
86933a6e
BB
13264
13265cat >>confdefs.h <<\_ACEOF
13266#define HAVE_FILES_FDTABLE 1
13267_ACEOF
13268
13269
13270else
8934764e 13271 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13272sed 's/^/| /' conftest.$ac_ext >&5
13273
8934764e
BB
13274 { $as_echo "$as_me:$LINENO: result: no" >&5
13275$as_echo "no" >&6; }
86933a6e
BB
13276
13277
13278
13279fi
13280
13281 rm -Rf build
13282
13283
13284
13285
8934764e
BB
13286 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13287$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
86933a6e
BB
13288
13289
dbe561d8 13290cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296
13297
13298 #include <linux/uaccess.h>
13299
13300int
13301main (void)
13302{
13303
13304 return 0;
13305
13306 ;
13307 return 0;
13308}
13309
13310_ACEOF
13311
13312
13313 rm -Rf build && mkdir -p build
13314 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13315 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
8934764e 13319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13320 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
8934764e 13324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13325 (exit $ac_status); }; }; then
13326
13327
13328cat >>confdefs.h <<\_ACEOF
13329#define HAVE_UACCESS_HEADER 1
13330_ACEOF
13331
8934764e
BB
13332 { $as_echo "$as_me:$LINENO: result: yes" >&5
13333$as_echo "yes" >&6; }
86933a6e
BB
13334
13335
13336else
8934764e 13337 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
8934764e
BB
13340 { $as_echo "$as_me:$LINENO: result: no" >&5
13341$as_echo "no" >&6; }
86933a6e
BB
13342
13343
13344
13345
13346fi
13347
13348 rm -Rf build
13349
13350
13351
13352
13353
8934764e
BB
13354 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13355$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
86933a6e
BB
13356
13357
dbe561d8 13358cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */
13364
13365
13366 #include <linux/slab.h>
13367
13368int
13369main (void)
13370{
13371
13372 void *a = kmalloc_node(1, GFP_KERNEL, 0);
13373
13374 ;
13375 return 0;
13376}
13377
13378_ACEOF
13379
13380
13381 rm -Rf build && mkdir -p build
13382 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13383 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
8934764e 13387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13388 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
8934764e 13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13393 (exit $ac_status); }; }; then
13394
8934764e
BB
13395 { $as_echo "$as_me:$LINENO: result: yes" >&5
13396$as_echo "yes" >&6; }
86933a6e
BB
13397
13398cat >>confdefs.h <<\_ACEOF
13399#define HAVE_KMALLOC_NODE 1
13400_ACEOF
13401
13402
13403else
8934764e 13404 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
8934764e
BB
13407 { $as_echo "$as_me:$LINENO: result: no" >&5
13408$as_echo "no" >&6; }
86933a6e
BB
13409
13410
13411
13412fi
13413
13414 rm -Rf build
13415
13416
13417
13418
8934764e
BB
13419 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13420$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
86933a6e
BB
13421 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13422 $LINUX_OBJ/Module*.symvers 2>/dev/null
13423 rc=$?
13424 if test $rc -ne 0; then
13425 export=0
13426 for file in ; do
13427 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13428 "$LINUX_OBJ/$file" 2>/dev/null
13429 rc=$?
13430 if test $rc -eq 0; then
13431 export=1
13432 break;
13433 fi
13434 done
13435 if test $export -eq 0; then
8934764e
BB
13436 { $as_echo "$as_me:$LINENO: result: no" >&5
13437$as_echo "no" >&6; }
86933a6e
BB
13438
13439 else
8934764e
BB
13440 { $as_echo "$as_me:$LINENO: result: yes" >&5
13441$as_echo "yes" >&6; }
86933a6e
BB
13442
13443cat >>confdefs.h <<\_ACEOF
13444#define HAVE_MONOTONIC_CLOCK 1
13445_ACEOF
13446
13447 fi
13448 else
8934764e
BB
13449 { $as_echo "$as_me:$LINENO: result: yes" >&5
13450$as_echo "yes" >&6; }
86933a6e
BB
13451
13452cat >>confdefs.h <<\_ACEOF
13453#define HAVE_MONOTONIC_CLOCK 1
13454_ACEOF
13455
13456 fi
13457
13458
13459
8934764e
BB
13460 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13461$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
86933a6e
BB
13462
13463
dbe561d8 13464cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13465/* confdefs.h. */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h. */
13470
13471
13472 #include <linux/fs.h>
13473 #include <linux/mutex.h>
13474
13475int
13476main (void)
13477{
13478
13479 struct inode i;
13480 mutex_init(&i.i_mutex);
13481
13482 ;
13483 return 0;
13484}
13485
13486_ACEOF
13487
13488
13489 rm -Rf build && mkdir -p build
13490 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13491 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
8934764e 13495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13496 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
8934764e 13500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13501 (exit $ac_status); }; }; then
13502
8934764e
BB
13503 { $as_echo "$as_me:$LINENO: result: yes" >&5
13504$as_echo "yes" >&6; }
86933a6e
BB
13505
13506cat >>confdefs.h <<\_ACEOF
13507#define HAVE_INODE_I_MUTEX 1
13508_ACEOF
13509
13510
13511else
8934764e 13512 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13513sed 's/^/| /' conftest.$ac_ext >&5
13514
8934764e
BB
13515 { $as_echo "$as_me:$LINENO: result: no" >&5
13516$as_echo "no" >&6; }
86933a6e
BB
13517
13518
13519
13520fi
13521
13522 rm -Rf build
13523
13524
13525
13526
8934764e
BB
13527 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13528$as_echo_n "checking whether struct mutex has owner... " >&6; }
4d54fdee
BB
13529
13530
dbe561d8 13531cat confdefs.h - <<_ACEOF >conftest.c
4d54fdee
BB
13532/* confdefs.h. */
13533_ACEOF
13534cat confdefs.h >>conftest.$ac_ext
13535cat >>conftest.$ac_ext <<_ACEOF
13536/* end confdefs.h. */
13537
13538
13539 #include <linux/mutex.h>
13540
13541int
13542main (void)
13543{
13544
13545 struct mutex mtx;
13546 mtx.owner = NULL;
13547
13548 ;
13549 return 0;
13550}
13551
13552_ACEOF
13553
13554
13555 rm -Rf build && mkdir -p build
13556 echo "obj-m := conftest.o" >build/Makefile
13557 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
8934764e 13561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
8934764e 13566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13567 (exit $ac_status); }; }; then
13568
8934764e
BB
13569 { $as_echo "$as_me:$LINENO: result: yes" >&5
13570$as_echo "yes" >&6; }
4d54fdee
BB
13571
13572cat >>confdefs.h <<\_ACEOF
13573#define HAVE_MUTEX_OWNER 1
13574_ACEOF
13575
13576
13577else
8934764e 13578 $as_echo "$as_me: failed program was:" >&5
4d54fdee
BB
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
8934764e
BB
13581 { $as_echo "$as_me:$LINENO: result: no" >&5
13582$as_echo "no" >&6; }
4d54fdee
BB
13583
13584
13585
13586fi
13587
13588 rm -Rf build
13589
13590
13591
13592
8934764e
BB
13593 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13594$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
86933a6e
BB
13595
13596
dbe561d8 13597cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13598/* confdefs.h. */
13599_ACEOF
13600cat confdefs.h >>conftest.$ac_ext
13601cat >>conftest.$ac_ext <<_ACEOF
13602/* end confdefs.h. */
13603
13604
13605 #include <linux/mutex.h>
13606
13607int
13608main (void)
13609{
13610
13611 struct mutex mutex;
13612 mutex_init(&mutex);
13613 mutex_lock_nested(&mutex, 0);
13614
13615 ;
13616 return 0;
13617}
13618
13619_ACEOF
13620
13621
13622 rm -Rf build && mkdir -p build
13623 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13624 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
8934764e 13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13629 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
8934764e 13633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13634 (exit $ac_status); }; }; then
13635
8934764e
BB
13636 { $as_echo "$as_me:$LINENO: result: yes" >&5
13637$as_echo "yes" >&6; }
86933a6e
BB
13638
13639cat >>confdefs.h <<\_ACEOF
13640#define HAVE_MUTEX_LOCK_NESTED 1
13641_ACEOF
13642
13643
13644else
8934764e 13645 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
8934764e
BB
13648 { $as_echo "$as_me:$LINENO: result: no" >&5
13649$as_echo "no" >&6; }
86933a6e
BB
13650
13651
13652
13653fi
13654
13655 rm -Rf build
13656
13657
13658
13659
8934764e
BB
13660 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13661$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
86933a6e
BB
13662
13663
dbe561d8 13664cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13665/* confdefs.h. */
13666_ACEOF
13667cat confdefs.h >>conftest.$ac_ext
13668cat >>conftest.$ac_ext <<_ACEOF
13669/* end confdefs.h. */
13670
13671
13672 #include <linux/smp.h>
13673
13674int
13675main (void)
13676{
13677
13678 on_each_cpu(NULL, NULL, 0);
13679
13680 ;
13681 return 0;
13682}
13683
13684_ACEOF
13685
13686
13687 rm -Rf build && mkdir -p build
13688 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13689 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
8934764e 13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13694 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
8934764e 13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13699 (exit $ac_status); }; }; then
13700
8934764e
BB
13701 { $as_echo "$as_me:$LINENO: result: yes" >&5
13702$as_echo "yes" >&6; }
86933a6e
BB
13703
13704cat >>confdefs.h <<\_ACEOF
13705#define HAVE_3ARGS_ON_EACH_CPU 1
13706_ACEOF
13707
13708
13709else
8934764e 13710 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
8934764e
BB
13713 { $as_echo "$as_me:$LINENO: result: no" >&5
13714$as_echo "no" >&6; }
86933a6e
BB
13715
13716
13717
13718fi
13719
13720 rm -Rf build
13721
13722
13723
13724
8934764e
BB
13725 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13726$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
86933a6e
BB
13727 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13728 $LINUX_OBJ/Module*.symvers 2>/dev/null
13729 rc=$?
13730 if test $rc -ne 0; then
13731 export=0
13732 for file in ; do
13733 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13734 "$LINUX_OBJ/$file" 2>/dev/null
13735 rc=$?
13736 if test $rc -eq 0; then
13737 export=1
13738 break;
13739 fi
13740 done
13741 if test $export -eq 0; then
8934764e
BB
13742 { $as_echo "$as_me:$LINENO: result: no" >&5
13743$as_echo "no" >&6; }
86933a6e
BB
13744
13745 else
8934764e
BB
13746 { $as_echo "$as_me:$LINENO: result: yes" >&5
13747$as_echo "yes" >&6; }
86933a6e
BB
13748
13749cat >>confdefs.h <<\_ACEOF
13750#define HAVE_KALLSYMS_LOOKUP_NAME 1
13751_ACEOF
13752
13753 fi
13754 else
8934764e
BB
13755 { $as_echo "$as_me:$LINENO: result: yes" >&5
13756$as_echo "yes" >&6; }
86933a6e
BB
13757
13758cat >>confdefs.h <<\_ACEOF
13759#define HAVE_KALLSYMS_LOOKUP_NAME 1
13760_ACEOF
13761
13762 fi
13763
13764
13765
8934764e
BB
13766 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13767$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
86933a6e
BB
13768 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13769 $LINUX_OBJ/Module*.symvers 2>/dev/null
13770 rc=$?
13771 if test $rc -ne 0; then
13772 export=0
13773 for file in ; do
13774 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13775 "$LINUX_OBJ/$file" 2>/dev/null
13776 rc=$?
13777 if test $rc -eq 0; then
13778 export=1
13779 break;
13780 fi
13781 done
13782 if test $export -eq 0; then
8934764e
BB
13783 { $as_echo "$as_me:$LINENO: result: no" >&5
13784$as_echo "no" >&6; }
86933a6e
BB
13785
13786 else
8934764e
BB
13787 { $as_echo "$as_me:$LINENO: result: yes" >&5
13788$as_echo "yes" >&6; }
86933a6e
BB
13789
13790cat >>confdefs.h <<\_ACEOF
13791#define HAVE_GET_VMALLOC_INFO 1
13792_ACEOF
13793
13794 fi
13795 else
8934764e
BB
13796 { $as_echo "$as_me:$LINENO: result: yes" >&5
13797$as_echo "yes" >&6; }
86933a6e
BB
13798
13799cat >>confdefs.h <<\_ACEOF
13800#define HAVE_GET_VMALLOC_INFO 1
13801_ACEOF
13802
13803 fi
13804
13805
13806
8934764e
BB
13807 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
13808$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
86933a6e
BB
13809 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13810 rc=$?
13811 if test $rc -eq 0; then
8934764e
BB
13812 { $as_echo "$as_me:$LINENO: result: yes" >&5
13813$as_echo "yes" >&6; }
86933a6e
BB
13814
13815cat >>confdefs.h <<\_ACEOF
13816#define HAVE_PGDAT_HELPERS 1
13817_ACEOF
13818
13819 else
8934764e
BB
13820 { $as_echo "$as_me:$LINENO: result: no" >&5
13821$as_echo "no" >&6; }
86933a6e
BB
13822 fi
13823
13824
8934764e
BB
13825 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
13826$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
86933a6e
BB
13827 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13828 $LINUX_OBJ/Module*.symvers 2>/dev/null
13829 rc=$?
13830 if test $rc -ne 0; then
13831 export=0
13832 for file in ; do
13833 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13834 "$LINUX_OBJ/$file" 2>/dev/null
13835 rc=$?
13836 if test $rc -eq 0; then
13837 export=1
13838 break;
13839 fi
13840 done
13841 if test $export -eq 0; then
8934764e
BB
13842 { $as_echo "$as_me:$LINENO: result: no" >&5
13843$as_echo "no" >&6; }
86933a6e
BB
13844
13845 else
8934764e
BB
13846 { $as_echo "$as_me:$LINENO: result: yes" >&5
13847$as_echo "yes" >&6; }
86933a6e
BB
13848
13849cat >>confdefs.h <<\_ACEOF
13850#define HAVE_FIRST_ONLINE_PGDAT 1
13851_ACEOF
13852
13853 fi
13854 else
8934764e
BB
13855 { $as_echo "$as_me:$LINENO: result: yes" >&5
13856$as_echo "yes" >&6; }
86933a6e
BB
13857
13858cat >>confdefs.h <<\_ACEOF
13859#define HAVE_FIRST_ONLINE_PGDAT 1
13860_ACEOF
13861
13862 fi
13863
13864
13865
8934764e
BB
13866 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
13867$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
86933a6e
BB
13868 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13869 $LINUX_OBJ/Module*.symvers 2>/dev/null
13870 rc=$?
13871 if test $rc -ne 0; then
13872 export=0
13873 for file in ; do
13874 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13875 "$LINUX_OBJ/$file" 2>/dev/null
13876 rc=$?
13877 if test $rc -eq 0; then
13878 export=1
13879 break;
13880 fi
13881 done
13882 if test $export -eq 0; then
8934764e
BB
13883 { $as_echo "$as_me:$LINENO: result: no" >&5
13884$as_echo "no" >&6; }
86933a6e
BB
13885
13886 else
8934764e
BB
13887 { $as_echo "$as_me:$LINENO: result: yes" >&5
13888$as_echo "yes" >&6; }
86933a6e
BB
13889
13890cat >>confdefs.h <<\_ACEOF
13891#define HAVE_NEXT_ONLINE_PGDAT 1
13892_ACEOF
13893
13894 fi
13895 else
8934764e
BB
13896 { $as_echo "$as_me:$LINENO: result: yes" >&5
13897$as_echo "yes" >&6; }
86933a6e
BB
13898
13899cat >>confdefs.h <<\_ACEOF
13900#define HAVE_NEXT_ONLINE_PGDAT 1
13901_ACEOF
13902
13903 fi
13904
13905
13906
8934764e
BB
13907 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
13908$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
86933a6e
BB
13909 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13910 $LINUX_OBJ/Module*.symvers 2>/dev/null
13911 rc=$?
13912 if test $rc -ne 0; then
13913 export=0
13914 for file in ; do
13915 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13916 "$LINUX_OBJ/$file" 2>/dev/null
13917 rc=$?
13918 if test $rc -eq 0; then
13919 export=1
13920 break;
13921 fi
13922 done
13923 if test $export -eq 0; then
8934764e
BB
13924 { $as_echo "$as_me:$LINENO: result: no" >&5
13925$as_echo "no" >&6; }
86933a6e
BB
13926
13927 else
8934764e
BB
13928 { $as_echo "$as_me:$LINENO: result: yes" >&5
13929$as_echo "yes" >&6; }
86933a6e
BB
13930
13931cat >>confdefs.h <<\_ACEOF
13932#define HAVE_NEXT_ZONE 1
13933_ACEOF
13934
13935 fi
13936 else
8934764e
BB
13937 { $as_echo "$as_me:$LINENO: result: yes" >&5
13938$as_echo "yes" >&6; }
86933a6e
BB
13939
13940cat >>confdefs.h <<\_ACEOF
13941#define HAVE_NEXT_ZONE 1
13942_ACEOF
13943
13944 fi
13945
13946
13947
8934764e
BB
13948 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
13949$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
86933a6e
BB
13950 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13951 $LINUX_OBJ/Module*.symvers 2>/dev/null
13952 rc=$?
13953 if test $rc -ne 0; then
13954 export=0
13955 for file in ; do
13956 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13957 "$LINUX_OBJ/$file" 2>/dev/null
13958 rc=$?
13959 if test $rc -eq 0; then
13960 export=1
13961 break;
13962 fi
13963 done
13964 if test $export -eq 0; then
8934764e
BB
13965 { $as_echo "$as_me:$LINENO: result: no" >&5
13966$as_echo "no" >&6; }
86933a6e
BB
13967
13968 else
8934764e
BB
13969 { $as_echo "$as_me:$LINENO: result: yes" >&5
13970$as_echo "yes" >&6; }
86933a6e
BB
13971
13972cat >>confdefs.h <<\_ACEOF
13973#define HAVE_PGDAT_LIST 1
13974_ACEOF
13975
13976 fi
13977 else
8934764e
BB
13978 { $as_echo "$as_me:$LINENO: result: yes" >&5
13979$as_echo "yes" >&6; }
86933a6e
BB
13980
13981cat >>confdefs.h <<\_ACEOF
13982#define HAVE_PGDAT_LIST 1
13983_ACEOF
13984
13985 fi
13986
13987
13988
8934764e
BB
13989 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
13990$as_echo_n "checking whether global_page_state() is available... " >&6; }
86933a6e 13991
86933a6e 13992
dbe561d8 13993cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 13994/* confdefs.h. */
86933a6e 13995_ACEOF
6ae7fef5
BB
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
13999
14000
14001 #include <linux/mm.h>
14002
14003int
14004main (void)
14005{
14006
14007 unsigned long state;
14008 state = global_page_state(0);
14009
14010 ;
14011 return 0;
14012}
14013
14014_ACEOF
14015
14016
14017 rm -Rf build && mkdir -p build
14018 echo "obj-m := conftest.o" >build/Makefile
14019 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
8934764e 14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
8934764e 14028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 14029 (exit $ac_status); }; }; then
86933a6e 14030
8934764e
BB
14031 { $as_echo "$as_me:$LINENO: result: yes" >&5
14032$as_echo "yes" >&6; }
86933a6e
BB
14033
14034cat >>confdefs.h <<\_ACEOF
6ae7fef5 14035#define HAVE_GLOBAL_PAGE_STATE 1
86933a6e
BB
14036_ACEOF
14037
6ae7fef5
BB
14038
14039else
8934764e 14040 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14041sed 's/^/| /' conftest.$ac_ext >&5
14042
8934764e
BB
14043 { $as_echo "$as_me:$LINENO: result: no" >&5
14044$as_echo "no" >&6; }
6ae7fef5
BB
14045
14046
14047
14048fi
14049
14050 rm -Rf build
86933a6e
BB
14051
14052
14053
6ae7fef5 14054
8934764e
BB
14055 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14056$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
86933a6e
BB
14057
14058
dbe561d8 14059cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
14065
14066
6ae7fef5 14067 #include <linux/mm.h>
86933a6e
BB
14068
14069int
14070main (void)
14071{
14072
6ae7fef5
BB
14073 enum zone_stat_item zsi;
14074 zsi = NR_FREE_PAGES;
86933a6e
BB
14075
14076 ;
14077 return 0;
14078}
14079
14080_ACEOF
14081
14082
14083 rm -Rf build && mkdir -p build
14084 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14085 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
8934764e 14089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
8934764e 14094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14095 (exit $ac_status); }; }; then
14096
8934764e
BB
14097 { $as_echo "$as_me:$LINENO: result: yes" >&5
14098$as_echo "yes" >&6; }
86933a6e
BB
14099
14100cat >>confdefs.h <<\_ACEOF
6ae7fef5 14101#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
86933a6e
BB
14102_ACEOF
14103
14104
14105else
8934764e 14106 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
8934764e
BB
14109 { $as_echo "$as_me:$LINENO: result: no" >&5
14110$as_echo "no" >&6; }
86933a6e
BB
14111
14112
14113
14114fi
14115
14116 rm -Rf build
14117
14118
14119
14120
8934764e
BB
14121 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14122$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
86933a6e
BB
14123
14124
dbe561d8 14125cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14126/* confdefs.h. */
14127_ACEOF
14128cat confdefs.h >>conftest.$ac_ext
14129cat >>conftest.$ac_ext <<_ACEOF
14130/* end confdefs.h. */
14131
14132
6ae7fef5 14133 #include <linux/mm.h>
86933a6e
BB
14134
14135int
14136main (void)
14137{
14138
6ae7fef5
BB
14139 enum zone_stat_item zsi;
14140 zsi = NR_INACTIVE;
86933a6e
BB
14141
14142 ;
14143 return 0;
14144}
14145
14146_ACEOF
14147
14148
14149 rm -Rf build && mkdir -p build
14150 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14151 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14154 ac_status=$?
8934764e 14155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14156 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
8934764e 14160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14161 (exit $ac_status); }; }; then
14162
8934764e
BB
14163 { $as_echo "$as_me:$LINENO: result: yes" >&5
14164$as_echo "yes" >&6; }
86933a6e
BB
14165
14166cat >>confdefs.h <<\_ACEOF
6ae7fef5 14167#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
86933a6e
BB
14168_ACEOF
14169
14170
14171else
8934764e 14172 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
8934764e
BB
14175 { $as_echo "$as_me:$LINENO: result: no" >&5
14176$as_echo "no" >&6; }
86933a6e
BB
14177
14178
14179
14180fi
14181
14182 rm -Rf build
14183
14184
14185
8934764e
BB
14186 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14187$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
86933a6e
BB
14188
14189
dbe561d8 14190cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h. */
14196
14197
6ae7fef5 14198 #include <linux/mm.h>
86933a6e
BB
14199
14200int
14201main (void)
14202{
14203
6ae7fef5
BB
14204 enum zone_stat_item zsi;
14205 zsi = NR_INACTIVE_ANON;
86933a6e
BB
14206
14207 ;
14208 return 0;
14209}
14210
14211_ACEOF
14212
14213
14214 rm -Rf build && mkdir -p build
14215 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14216 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
8934764e 14220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14221 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
8934764e 14225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14226 (exit $ac_status); }; }; then
14227
8934764e
BB
14228 { $as_echo "$as_me:$LINENO: result: yes" >&5
14229$as_echo "yes" >&6; }
86933a6e
BB
14230
14231cat >>confdefs.h <<\_ACEOF
6ae7fef5 14232#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
86933a6e
BB
14233_ACEOF
14234
14235
14236else
8934764e 14237 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14238sed 's/^/| /' conftest.$ac_ext >&5
14239
8934764e
BB
14240 { $as_echo "$as_me:$LINENO: result: no" >&5
14241$as_echo "no" >&6; }
86933a6e
BB
14242
14243
14244
14245fi
14246
14247 rm -Rf build
14248
14249
14250
8934764e
BB
14251 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14252$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
86933a6e
BB
14253
14254
dbe561d8 14255cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14256/* confdefs.h. */
14257_ACEOF
14258cat confdefs.h >>conftest.$ac_ext
14259cat >>conftest.$ac_ext <<_ACEOF
14260/* end confdefs.h. */
14261
14262
6ae7fef5 14263 #include <linux/mm.h>
86933a6e
BB
14264
14265int
14266main (void)
14267{
14268
6ae7fef5
BB
14269 enum zone_stat_item zsi;
14270 zsi = NR_INACTIVE_FILE;
86933a6e
BB
14271
14272 ;
14273 return 0;
14274}
14275
14276_ACEOF
14277
14278
14279 rm -Rf build && mkdir -p build
14280 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14281 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
8934764e 14285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
8934764e 14290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14291 (exit $ac_status); }; }; then
14292
8934764e
BB
14293 { $as_echo "$as_me:$LINENO: result: yes" >&5
14294$as_echo "yes" >&6; }
86933a6e
BB
14295
14296cat >>confdefs.h <<\_ACEOF
6ae7fef5 14297#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
86933a6e
BB
14298_ACEOF
14299
14300
14301else
8934764e 14302 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14303sed 's/^/| /' conftest.$ac_ext >&5
14304
8934764e
BB
14305 { $as_echo "$as_me:$LINENO: result: no" >&5
14306$as_echo "no" >&6; }
86933a6e
BB
14307
14308
14309
14310fi
14311
14312 rm -Rf build
14313
14314
14315
ec7d53e9 14316
8934764e
BB
14317 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14318$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
ec7d53e9
BB
14319
14320
dbe561d8 14321cat confdefs.h - <<_ACEOF >conftest.c
ec7d53e9
BB
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327
14328
6ae7fef5 14329 #include <linux/mm.h>
ec7d53e9
BB
14330
14331int
14332main (void)
14333{
14334
6ae7fef5
BB
14335 enum zone_stat_item zsi;
14336 zsi = NR_ACTIVE;
ec7d53e9
BB
14337
14338 ;
14339 return 0;
14340}
14341
14342_ACEOF
14343
14344
14345 rm -Rf build && mkdir -p build
14346 echo "obj-m := conftest.o" >build/Makefile
14347 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
8934764e 14351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
8934764e 14356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14357 (exit $ac_status); }; }; then
14358
8934764e
BB
14359 { $as_echo "$as_me:$LINENO: result: yes" >&5
14360$as_echo "yes" >&6; }
ec7d53e9
BB
14361
14362cat >>confdefs.h <<\_ACEOF
6ae7fef5 14363#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
ec7d53e9
BB
14364_ACEOF
14365
14366
14367else
8934764e 14368 $as_echo "$as_me: failed program was:" >&5
ec7d53e9
BB
14369sed 's/^/| /' conftest.$ac_ext >&5
14370
8934764e
BB
14371 { $as_echo "$as_me:$LINENO: result: no" >&5
14372$as_echo "no" >&6; }
ec7d53e9
BB
14373
14374
14375
14376fi
14377
14378 rm -Rf build
14379
14380
14381
8934764e
BB
14382 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14383$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
ec7d53e9 14384
ec7d53e9 14385
dbe561d8 14386cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392
14393
14394 #include <linux/mm.h>
14395
14396int
14397main (void)
14398{
14399
14400 enum zone_stat_item zsi;
14401 zsi = NR_ACTIVE_ANON;
14402
14403 ;
14404 return 0;
14405}
ec7d53e9 14406
ec7d53e9
BB
14407_ACEOF
14408
6ae7fef5
BB
14409
14410 rm -Rf build && mkdir -p build
14411 echo "obj-m := conftest.o" >build/Makefile
14412 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
8934764e 14416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
8934764e 14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14422 (exit $ac_status); }; }; then
14423
8934764e
BB
14424 { $as_echo "$as_me:$LINENO: result: yes" >&5
14425$as_echo "yes" >&6; }
ec7d53e9
BB
14426
14427cat >>confdefs.h <<\_ACEOF
6ae7fef5 14428#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
ec7d53e9
BB
14429_ACEOF
14430
ec7d53e9 14431
6ae7fef5 14432else
8934764e 14433 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 14434sed 's/^/| /' conftest.$ac_ext >&5
ec7d53e9 14435
8934764e
BB
14436 { $as_echo "$as_me:$LINENO: result: no" >&5
14437$as_echo "no" >&6; }
bf9f3bac 14438
bf9f3bac 14439
bf9f3bac 14440
6ae7fef5 14441fi
bf9f3bac 14442
6ae7fef5 14443 rm -Rf build
bf9f3bac 14444
bf9f3bac 14445
bf9f3bac 14446
8934764e
BB
14447 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14448$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 14449
bf9f3bac 14450
dbe561d8 14451cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14452/* confdefs.h. */
14453_ACEOF
14454cat confdefs.h >>conftest.$ac_ext
14455cat >>conftest.$ac_ext <<_ACEOF
14456/* end confdefs.h. */
bf9f3bac 14457
bf9f3bac 14458
6ae7fef5 14459 #include <linux/mm.h>
bf9f3bac 14460
6ae7fef5
BB
14461int
14462main (void)
14463{
14464
14465 enum zone_stat_item zsi;
14466 zsi = NR_ACTIVE_FILE;
14467
14468 ;
14469 return 0;
14470}
14471
14472_ACEOF
14473
14474
14475 rm -Rf build && mkdir -p build
14476 echo "obj-m := conftest.o" >build/Makefile
14477 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
8934764e 14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14482 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
8934764e 14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14487 (exit $ac_status); }; }; then
14488
8934764e
BB
14489 { $as_echo "$as_me:$LINENO: result: yes" >&5
14490$as_echo "yes" >&6; }
6ae7fef5
BB
14491
14492cat >>confdefs.h <<\_ACEOF
14493#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14494_ACEOF
14495
14496
14497else
8934764e 14498 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14499sed 's/^/| /' conftest.$ac_ext >&5
14500
8934764e
BB
14501 { $as_echo "$as_me:$LINENO: result: no" >&5
14502$as_echo "no" >&6; }
6ae7fef5
BB
14503
14504
14505
14506fi
14507
14508 rm -Rf build
14509
14510
14511
14512
8934764e
BB
14513 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14514$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
6ae7fef5
BB
14515
14516
dbe561d8 14517cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14518/* confdefs.h. */
14519_ACEOF
14520cat confdefs.h >>conftest.$ac_ext
14521cat >>conftest.$ac_ext <<_ACEOF
14522/* end confdefs.h. */
14523
14524
14525
14526int
14527main (void)
14528{
14529
14530 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14531 #error "global_page_state needs NR_FREE_PAGES"
14532 #endif
14533
14534 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14535 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14536 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14537 #error "global_page_state needs NR_ACTIVE*"
14538 #endif
14539
14540 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14541 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14542 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14543 #error "global_page_state needs NR_INACTIVE*"
14544 #endif
14545
14546 ;
14547 return 0;
14548}
14549
14550_ACEOF
14551
14552
14553 rm -Rf build && mkdir -p build
14554 echo "obj-m := conftest.o" >build/Makefile
14555 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
8934764e 14559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14560 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
8934764e 14564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14565 (exit $ac_status); }; }; then
14566
8934764e
BB
14567 { $as_echo "$as_me:$LINENO: result: no" >&5
14568$as_echo "no" >&6; }
6ae7fef5
BB
14569
14570else
8934764e 14571 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14572sed 's/^/| /' conftest.$ac_ext >&5
14573
8934764e
BB
14574 { $as_echo "$as_me:$LINENO: result: yes" >&5
14575$as_echo "yes" >&6; }
6ae7fef5
BB
14576
14577cat >>confdefs.h <<\_ACEOF
14578#define NEED_GET_ZONE_COUNTS 1
14579_ACEOF
14580
14581
8934764e
BB
14582 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14583$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
6ae7fef5
BB
14584 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14585 $LINUX_OBJ/Module*.symvers 2>/dev/null
14586 rc=$?
14587 if test $rc -ne 0; then
14588 export=0
14589 for file in ; do
14590 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14591 "$LINUX_OBJ/$file" 2>/dev/null
14592 rc=$?
14593 if test $rc -eq 0; then
14594 export=1
14595 break;
14596 fi
14597 done
14598 if test $export -eq 0; then
8934764e
BB
14599 { $as_echo "$as_me:$LINENO: result: no" >&5
14600$as_echo "no" >&6; }
6ae7fef5
BB
14601
14602 else
8934764e
BB
14603 { $as_echo "$as_me:$LINENO: result: yes" >&5
14604$as_echo "yes" >&6; }
6ae7fef5
BB
14605
14606cat >>confdefs.h <<\_ACEOF
14607#define HAVE_GET_ZONE_COUNTS 1
14608_ACEOF
14609
14610 fi
14611 else
8934764e
BB
14612 { $as_echo "$as_me:$LINENO: result: yes" >&5
14613$as_echo "yes" >&6; }
6ae7fef5
BB
14614
14615cat >>confdefs.h <<\_ACEOF
14616#define HAVE_GET_ZONE_COUNTS 1
14617_ACEOF
14618
14619 fi
14620
14621
14622
14623
51a727e9
BB
14624fi
14625
14626 rm -Rf build
14627
14628
14629
14630
7119bf70
BB
14631 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14632$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14633 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14634 $LINUX_OBJ/Module*.symvers 2>/dev/null
14635 rc=$?
14636 if test $rc -ne 0; then
14637 export=0
14638 for file in ; do
14639 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14640 "$LINUX_OBJ/$file" 2>/dev/null
14641 rc=$?
14642 if test $rc -eq 0; then
14643 export=1
14644 break;
14645 fi
14646 done
14647 if test $export -eq 0; then
14648 { $as_echo "$as_me:$LINENO: result: no" >&5
14649$as_echo "no" >&6; }
14650
14651 else
14652 { $as_echo "$as_me:$LINENO: result: yes" >&5
14653$as_echo "yes" >&6; }
14654
14655cat >>confdefs.h <<\_ACEOF
14656#define HAVE_USER_PATH_DIR 1
14657_ACEOF
14658
14659 fi
14660 else
14661 { $as_echo "$as_me:$LINENO: result: yes" >&5
14662$as_echo "yes" >&6; }
14663
14664cat >>confdefs.h <<\_ACEOF
14665#define HAVE_USER_PATH_DIR 1
14666_ACEOF
14667
14668 fi
14669
14670
14671
8934764e
BB
14672 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14673$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
51a727e9
BB
14674 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14675 $LINUX_OBJ/Module*.symvers 2>/dev/null
14676 rc=$?
14677 if test $rc -ne 0; then
14678 export=0
14679 for file in ; do
14680 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14681 "$LINUX_OBJ/$file" 2>/dev/null
14682 rc=$?
14683 if test $rc -eq 0; then
14684 export=1
14685 break;
14686 fi
14687 done
14688 if test $export -eq 0; then
8934764e
BB
14689 { $as_echo "$as_me:$LINENO: result: no" >&5
14690$as_echo "no" >&6; }
51a727e9
BB
14691
14692 else
8934764e
BB
14693 { $as_echo "$as_me:$LINENO: result: yes" >&5
14694$as_echo "yes" >&6; }
51a727e9
BB
14695
14696cat >>confdefs.h <<\_ACEOF
14697#define HAVE_SET_FS_PWD 1
14698_ACEOF
14699
14700 fi
14701 else
8934764e
BB
14702 { $as_echo "$as_me:$LINENO: result: yes" >&5
14703$as_echo "yes" >&6; }
51a727e9
BB
14704
14705cat >>confdefs.h <<\_ACEOF
14706#define HAVE_SET_FS_PWD 1
14707_ACEOF
14708
14709 fi
14710
14711
8934764e
BB
14712 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14713$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
51a727e9
BB
14714
14715
dbe561d8 14716cat confdefs.h - <<_ACEOF >conftest.c
51a727e9
BB
14717/* confdefs.h. */
14718_ACEOF
14719cat confdefs.h >>conftest.$ac_ext
14720cat >>conftest.$ac_ext <<_ACEOF
14721/* end confdefs.h. */
14722
14723
14724 #include <linux/sched.h>
baf2979e 14725 #include <linux/fs_struct.h>
51a727e9
BB
14726
14727int
14728main (void)
14729{
14730
14731 set_fs_pwd(NULL, NULL);
14732
14733 ;
14734 return 0;
14735}
14736
14737_ACEOF
14738
14739
14740 rm -Rf build && mkdir -p build
14741 echo "obj-m := conftest.o" >build/Makefile
14742 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
8934764e 14746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
14747 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
8934764e 14751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
14752 (exit $ac_status); }; }; then
14753
8934764e
BB
14754 { $as_echo "$as_me:$LINENO: result: yes" >&5
14755$as_echo "yes" >&6; }
51a727e9
BB
14756
14757cat >>confdefs.h <<\_ACEOF
14758#define HAVE_2ARGS_SET_FS_PWD 1
14759_ACEOF
14760
14761
14762else
8934764e 14763 $as_echo "$as_me: failed program was:" >&5
51a727e9
BB
14764sed 's/^/| /' conftest.$ac_ext >&5
14765
8934764e
BB
14766 { $as_echo "$as_me:$LINENO: result: no" >&5
14767$as_echo "no" >&6; }
51a727e9
BB
14768
14769
14770
6ae7fef5
BB
14771fi
14772
14773 rm -Rf build
14774
14775
14776
8934764e
BB
14777 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
14778$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
14779
14780
dbe561d8 14781cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787
14788
14789 #include <linux/fs.h>
14790
14791int
14792main (void)
14793{
14794
14795 vfs_unlink(NULL, NULL);
14796
14797 ;
14798 return 0;
14799}
14800
14801_ACEOF
14802
14803
14804 rm -Rf build && mkdir -p build
14805 echo "obj-m := conftest.o" >build/Makefile
14806 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
8934764e 14810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14811 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
8934764e 14815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14816 (exit $ac_status); }; }; then
14817
8934764e
BB
14818 { $as_echo "$as_me:$LINENO: result: yes" >&5
14819$as_echo "yes" >&6; }
6ae7fef5
BB
14820
14821cat >>confdefs.h <<\_ACEOF
14822#define HAVE_2ARGS_VFS_UNLINK 1
14823_ACEOF
14824
14825
14826else
8934764e 14827 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
8934764e
BB
14830 { $as_echo "$as_me:$LINENO: result: no" >&5
14831$as_echo "no" >&6; }
6ae7fef5
BB
14832
14833
14834
14835fi
14836
14837 rm -Rf build
14838
14839
14840
8934764e
BB
14841 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
14842$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
14843
14844
dbe561d8 14845cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851
14852
14853 #include <linux/fs.h>
14854
14855int
14856main (void)
14857{
14858
14859 vfs_rename(NULL, NULL, NULL, NULL);
14860
14861 ;
14862 return 0;
14863}
14864
14865_ACEOF
14866
14867
14868 rm -Rf build && mkdir -p build
14869 echo "obj-m := conftest.o" >build/Makefile
14870 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
8934764e 14874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14875 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
8934764e 14879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14880 (exit $ac_status); }; }; then
14881
8934764e
BB
14882 { $as_echo "$as_me:$LINENO: result: yes" >&5
14883$as_echo "yes" >&6; }
6ae7fef5
BB
14884
14885cat >>confdefs.h <<\_ACEOF
14886#define HAVE_4ARGS_VFS_RENAME 1
14887_ACEOF
14888
14889
14890else
8934764e 14891 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14892sed 's/^/| /' conftest.$ac_ext >&5
14893
8934764e
BB
14894 { $as_echo "$as_me:$LINENO: result: no" >&5
14895$as_echo "no" >&6; }
6ae7fef5
BB
14896
14897
14898
14899fi
14900
14901 rm -Rf build
14902
14903
14904
14905
8934764e
BB
14906 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
14907$as_echo_n "checking whether struct cred exists... " >&6; }
6ae7fef5
BB
14908
14909
dbe561d8 14910cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14911/* confdefs.h. */
14912_ACEOF
14913cat confdefs.h >>conftest.$ac_ext
14914cat >>conftest.$ac_ext <<_ACEOF
14915/* end confdefs.h. */
14916
14917
14918 #include <linux/cred.h>
14919
14920int
14921main (void)
14922{
14923
14924 struct cred *cr;
14925 cr = NULL;
14926
14927 ;
14928 return 0;
14929}
14930
14931_ACEOF
14932
14933
14934 rm -Rf build && mkdir -p build
14935 echo "obj-m := conftest.o" >build/Makefile
14936 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
8934764e 14940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
8934764e 14945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14946 (exit $ac_status); }; }; then
14947
8934764e
BB
14948 { $as_echo "$as_me:$LINENO: result: yes" >&5
14949$as_echo "yes" >&6; }
6ae7fef5
BB
14950
14951cat >>confdefs.h <<\_ACEOF
14952#define HAVE_CRED_STRUCT 1
14953_ACEOF
14954
14955
14956else
8934764e 14957 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
8934764e
BB
14960 { $as_echo "$as_me:$LINENO: result: no" >&5
14961$as_echo "no" >&6; }
6ae7fef5
BB
14962
14963
14964
14965fi
14966
14967 rm -Rf build
14968
14969
14970
14971
8934764e
BB
14972 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
14973$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
6ae7fef5
BB
14974 grep -q -E '[[:space:]]groups_search[[:space:]]' \
14975 $LINUX_OBJ/Module*.symvers 2>/dev/null
14976 rc=$?
14977 if test $rc -ne 0; then
14978 export=0
14979 for file in ; do
14980 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
14981 "$LINUX_OBJ/$file" 2>/dev/null
14982 rc=$?
14983 if test $rc -eq 0; then
14984 export=1
14985 break;
14986 fi
14987 done
14988 if test $export -eq 0; then
8934764e
BB
14989 { $as_echo "$as_me:$LINENO: result: no" >&5
14990$as_echo "no" >&6; }
6ae7fef5
BB
14991
14992 else
8934764e
BB
14993 { $as_echo "$as_me:$LINENO: result: yes" >&5
14994$as_echo "yes" >&6; }
6ae7fef5
BB
14995
14996cat >>confdefs.h <<\_ACEOF
14997#define HAVE_GROUPS_SEARCH 1
14998_ACEOF
14999
15000 fi
15001 else
8934764e
BB
15002 { $as_echo "$as_me:$LINENO: result: yes" >&5
15003$as_echo "yes" >&6; }
6ae7fef5
BB
15004
15005cat >>confdefs.h <<\_ACEOF
15006#define HAVE_GROUPS_SEARCH 1
15007_ACEOF
15008
15009 fi
15010
15011
e811949a 15012
8934764e
BB
15013 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15014$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
e811949a
BB
15015 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15016 $LINUX_OBJ/Module*.symvers 2>/dev/null
15017 rc=$?
15018 if test $rc -ne 0; then
15019 export=0
15020 for file in ; do
15021 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15022 "$LINUX_OBJ/$file" 2>/dev/null
15023 rc=$?
15024 if test $rc -eq 0; then
15025 export=1
15026 break;
15027 fi
15028 done
15029 if test $export -eq 0; then
8934764e
BB
15030 { $as_echo "$as_me:$LINENO: result: no" >&5
15031$as_echo "no" >&6; }
e811949a
BB
15032
15033 else
8934764e
BB
15034 { $as_echo "$as_me:$LINENO: result: yes" >&5
15035$as_echo "yes" >&6; }
e811949a
BB
15036
15037cat >>confdefs.h <<\_ACEOF
15038#define HAVE_PUT_TASK_STRUCT 1
15039_ACEOF
15040
15041 fi
15042 else
8934764e
BB
15043 { $as_echo "$as_me:$LINENO: result: yes" >&5
15044$as_echo "yes" >&6; }
e811949a
BB
15045
15046cat >>confdefs.h <<\_ACEOF
15047#define HAVE_PUT_TASK_STRUCT 1
15048_ACEOF
15049
15050 fi
15051
15052
3977f837 15053
8934764e
BB
15054 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15055$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
3977f837
BB
15056
15057
dbe561d8 15058cat confdefs.h - <<_ACEOF >conftest.c
3977f837
BB
15059/* confdefs.h. */
15060_ACEOF
15061cat confdefs.h >>conftest.$ac_ext
15062cat >>conftest.$ac_ext <<_ACEOF
15063/* end confdefs.h. */
15064
15065
15066 #include <linux/sysctl.h>
15067
15068int
15069main (void)
15070{
15071
15072 proc_dostring(NULL, 0, NULL, NULL, NULL);
15073
15074 ;
15075 return 0;
15076}
15077
15078_ACEOF
15079
15080
15081 rm -Rf build && mkdir -p build
15082 echo "obj-m := conftest.o" >build/Makefile
15083 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
8934764e 15087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15088 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
8934764e 15092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15093 (exit $ac_status); }; }; then
15094
8934764e
BB
15095 { $as_echo "$as_me:$LINENO: result: yes" >&5
15096$as_echo "yes" >&6; }
3977f837
BB
15097
15098cat >>confdefs.h <<\_ACEOF
15099#define HAVE_5ARGS_PROC_HANDLER 1
15100_ACEOF
15101
15102
15103else
8934764e 15104 $as_echo "$as_me: failed program was:" >&5
3977f837
BB
15105sed 's/^/| /' conftest.$ac_ext >&5
15106
8934764e
BB
15107 { $as_echo "$as_me:$LINENO: result: no" >&5
15108$as_echo "no" >&6; }
3977f837
BB
15109
15110
15111
15112fi
15113
15114 rm -Rf build
15115
15116
15117
b868e22f
BB
15118
15119 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15120$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15121 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15122 $LINUX_OBJ/Module*.symvers 2>/dev/null
15123 rc=$?
15124 if test $rc -ne 0; then
15125 export=0
15126 for file in ; do
15127 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15128 "$LINUX_OBJ/$file" 2>/dev/null
15129 rc=$?
15130 if test $rc -eq 0; then
15131 export=1
15132 break;
15133 fi
15134 done
15135 if test $export -eq 0; then
15136 { $as_echo "$as_me:$LINENO: result: no" >&5
15137$as_echo "no" >&6; }
15138
15139 else
15140 { $as_echo "$as_me:$LINENO: result: yes" >&5
15141$as_echo "yes" >&6; }
15142
15143cat >>confdefs.h <<\_ACEOF
15144#define HAVE_KVASPRINTF 1
15145_ACEOF
15146
15147 fi
15148 else
15149 { $as_echo "$as_me:$LINENO: result: yes" >&5
15150$as_echo "yes" >&6; }
15151
15152cat >>confdefs.h <<\_ACEOF
15153#define HAVE_KVASPRINTF 1
15154_ACEOF
15155
15156 fi
15157
15158
f0ff89fc
BB
15159
15160 { $as_echo "$as_me:$LINENO: checking whether file_fsync() wants 3 args" >&5
15161$as_echo_n "checking whether file_fsync() wants 3 args... " >&6; }
15162
15163
15164cat confdefs.h - <<_ACEOF >conftest.c
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
15170
15171
15172 #include <linux/buffer_head.h>
15173
15174int
15175main (void)
15176{
15177
15178 file_fsync(NULL, NULL, 0);
15179
15180 ;
15181 return 0;
15182}
15183
15184_ACEOF
15185
15186
15187 rm -Rf build && mkdir -p build
15188 echo "obj-m := conftest.o" >build/Makefile
15189 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; }; then
15200
15201 { $as_echo "$as_me:$LINENO: result: yes" >&5
15202$as_echo "yes" >&6; }
15203
15204cat >>confdefs.h <<\_ACEOF
15205#define HAVE_3ARGS_FILE_FSYNC 1
15206_ACEOF
15207
15208
15209else
15210 $as_echo "$as_me: failed program was:" >&5
15211sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 { $as_echo "$as_me:$LINENO: result: no" >&5
15214$as_echo "no" >&6; }
15215
15216
15217
15218fi
15219
15220 rm -Rf build
15221
15222
15223
46aa7b39
NB
15224
15225 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15226$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15227 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15228 $LINUX_OBJ/Module*.symvers 2>/dev/null
15229 rc=$?
15230 if test $rc -ne 0; then
15231 export=0
15232 for file in lib/rwsem-spinlock.c; do
15233 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15234 "$LINUX_OBJ/$file" 2>/dev/null
15235 rc=$?
15236 if test $rc -eq 0; then
15237 export=1
15238 break;
15239 fi
15240 done
15241 if test $export -eq 0; then
15242 { $as_echo "$as_me:$LINENO: result: no" >&5
15243$as_echo "no" >&6; }
15244
15245 else
15246 { $as_echo "$as_me:$LINENO: result: yes" >&5
15247$as_echo "yes" >&6; }
15248
15249cat >>confdefs.h <<\_ACEOF
15250#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15251_ACEOF
15252
15253 fi
15254 else
15255 { $as_echo "$as_me:$LINENO: result: yes" >&5
15256$as_echo "yes" >&6; }
15257
15258cat >>confdefs.h <<\_ACEOF
15259#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15260_ACEOF
15261
15262 fi
15263
15264
6ae7fef5 15265 ;;
18142514 15266 user)
287b2fb1
BB
15267
15268 if test "x$AWK" != xgawk; then
18142514
BB
15269
15270 { { $as_echo "$as_me:$LINENO: error:
15271 *** Required util gawk missing. Please install the required
15272 *** gawk package for your distribution and try again." >&5
15273$as_echo "$as_me: error:
15274 *** Required util gawk missing. Please install the required
15275 *** gawk package for your distribution and try again." >&2;}
15276 { (exit 1); exit 1; }; }
15277
15278fi
15279
287b2fb1 15280
18142514 15281 ;;
6ae7fef5
BB
15282 all)
15283
15284
8934764e 15285# Check whether --with-linux was given.
6ae7fef5 15286if test "${with_linux+set}" = set; then
8934764e
BB
15287 withval=$with_linux; kernelsrc="$withval"
15288fi
6ae7fef5
BB
15289
15290
8934764e
BB
15291
15292# Check whether --with-linux-obj was given.
6ae7fef5 15293if test "${with_linux_obj+set}" = set; then
8934764e
BB
15294 withval=$with_linux_obj; kernelbuild="$withval"
15295fi
6ae7fef5 15296
8934764e
BB
15297
15298 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15299$as_echo_n "checking kernel source directory... " >&6; }
6ae7fef5 15300 if test -z "$kernelsrc"; then
534c4e38
BM
15301 headersdir="/lib/modules/$(uname -r)/build"
15302 if test -e "$headersdir"; then
15303 sourcelink=$(readlink -f "$headersdir")
15304 else
15305 sourcelink=$(ls -1d /usr/src/kernels/* \
15306 /usr/src/linux-* \
15307 2>/dev/null | grep -v obj | tail -1)
15308 fi
6ae7fef5 15309
8fd4e3af 15310 if test -n "$sourcelink" && test -e ${sourcelink}; then
6ae7fef5
BB
15311 kernelsrc=`readlink -f ${sourcelink}`
15312 else
8934764e
BB
15313 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15314$as_echo "Not found" >&6; }
15315 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
15316 *** Please make sure the kernel devel package for your distribution
15317 *** is installed then try again. If that fails you can specify the
15318 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 15319$as_echo "$as_me: error:
8fd4e3af
BB
15320 *** Please make sure the kernel devel package for your distribution
15321 *** is installed then try again. If that fails you can specify the
15322 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
6ae7fef5
BB
15323 { (exit 1); exit 1; }; }
15324 fi
15325 else
15326 if test "$kernelsrc" = "NONE"; then
15327 kernsrcver=NONE
15328 fi
15329 fi
15330
8934764e
BB
15331 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15332$as_echo "$kernelsrc" >&6; }
15333 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15334$as_echo_n "checking kernel build directory... " >&6; }
6ae7fef5 15335 if test -z "$kernelbuild"; then
e2d28a37
BB
15336 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15337 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15338 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15339 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15340 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15341 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
6ae7fef5
BB
15342 else
15343 kernelbuild=${kernelsrc}
15344 fi
15345 fi
8934764e
BB
15346 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15347$as_echo "$kernelbuild" >&6; }
6ae7fef5 15348
8934764e
BB
15349 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15350$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
15351 utsrelease1=$kernelbuild/include/linux/version.h
15352 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15353 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15354 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15355 utsrelease=linux/version.h
15356 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15357 utsrelease=linux/utsrelease.h
15358 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15359 utsrelease=generated/utsrelease.h
15360 fi
6ae7fef5 15361
fd921c2e
BB
15362 if test "$utsrelease"; then
15363 kernsrcver=`(echo "#include <$utsrelease>";
6ae7fef5
BB
15364 echo "kernsrcver=UTS_RELEASE") |
15365 cpp -I $kernelbuild/include |
15366 grep "^kernsrcver=" | cut -d \" -f 2`
6ae7fef5 15367
fd921c2e
BB
15368 if test -z "$kernsrcver"; then
15369 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15370$as_echo "Not found" >&6; }
15371 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15372$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15373 { (exit 1); exit 1; }; }
15374 fi
15375 else
8934764e
BB
15376 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15377$as_echo "Not found" >&6; }
fd921c2e
BB
15378 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15379$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
bf9f3bac 15380 { (exit 1); exit 1; }; }
15381 fi
15382
8934764e
BB
15383 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15384$as_echo "$kernsrcver" >&6; }
bf9f3bac 15385
bf9f3bac 15386 LINUX=${kernelsrc}
15387 LINUX_OBJ=${kernelbuild}
c5f70460
BB
15388 LINUX_VERSION=${kernsrcver}
15389
bf9f3bac 15390
15391
15392
15393
15394
bb339d06 15395 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
15396 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15397$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
15398 if test -f "$modpost"; then
15399 if grep -q Modules.symvers $modpost; then
15400 LINUX_SYMBOLS=Modules.symvers
15401 else
15402 LINUX_SYMBOLS=Module.symvers
15403 fi
2e0e7e69 15404 else
bb339d06 15405 LINUX_SYMBOLS=NONE
2e0e7e69 15406 fi
8934764e
BB
15407 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15408$as_echo "$LINUX_SYMBOLS" >&6; }
2e0e7e69
BB
15409
15410
15411
86933a6e 15412
86933a6e
BB
15413 if test "${LINUX_OBJ}" != "${LINUX}"; then
15414 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15415 fi
15416
15417
a7958f7e 15418 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e 15419
bf9f3bac 15420
15421
c950d148
BB
15422 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15423$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 15424 # Check whether --enable-debug was given.
bf9f3bac 15425if test "${enable_debug+set}" = set; then
8934764e 15426 enableval=$enable_debug;
055ffd98
BB
15427else
15428 enable_debug=no
8934764e
BB
15429fi
15430
055ffd98
BB
15431
15432 if test "x$enable_debug" = xyes; then
c950d148 15433
c950d148
BB
15434 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15435 DEBUG_CFLAGS="-DDEBUG -Werror"
15436
055ffd98 15437else
c950d148 15438
c950d148
BB
15439 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15440 DEBUG_CFLAGS="-DNDEBUG"
15441
055ffd98
BB
15442fi
15443
15444
c950d148 15445
8934764e
BB
15446 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15447$as_echo "$enable_debug" >&6; }
bf9f3bac 15448
15449
8934764e 15450 # Check whether --enable-debug-kmem was given.
bf9f3bac 15451if test "${enable_debug_kmem+set}" = set; then
8934764e 15452 enableval=$enable_debug_kmem;
055ffd98
BB
15453else
15454 enable_debug_kmem=yes
8934764e
BB
15455fi
15456
055ffd98
BB
15457
15458 if test "x$enable_debug_kmem" = xyes; then
bf9f3bac 15459
15460cat >>confdefs.h <<\_ACEOF
15461#define DEBUG_KMEM 1
15462_ACEOF
15463
15464 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 15465fi
bf9f3bac 15466
bf9f3bac 15467
8934764e
BB
15468 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15469$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15470 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15471$as_echo "$enable_debug_kmem" >&6; }
bf9f3bac 15472
15473
8934764e 15474 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 15475if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 15476 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
15477else
15478 enable_debug_kmem_tracking=no
8934764e
BB
15479fi
15480
055ffd98
BB
15481
15482 if test "x$enable_debug_kmem_tracking" = xyes; then
bf9f3bac 15483
15484cat >>confdefs.h <<\_ACEOF
055ffd98 15485#define DEBUG_KMEM_TRACKING 1
bf9f3bac 15486_ACEOF
15487
055ffd98
BB
15488 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15489fi
15490
15491
8934764e
BB
15492 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15493$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15494 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15495$as_echo "$enable_debug_kmem_tracking" >&6; }
bf9f3bac 15496
5e9b5d83 15497
8934764e 15498 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 15499if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 15500 enableval=$enable_atomic_spinlocks;
5e9b5d83 15501else
d04c8a56 15502 enable_atomic_spinlocks=check
8934764e
BB
15503fi
15504
5e9b5d83 15505
bf9f3bac 15506
15507
dbe561d8 15508cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514
15515
d04c8a56 15516 #include <asm/atomic.h>
bf9f3bac 15517
15518int
15519main (void)
15520{
15521
d04c8a56 15522 atomic64_t *ptr;
bf9f3bac 15523
15524 ;
15525 return 0;
15526}
15527
15528_ACEOF
15529
c5f70460
BB
15530
15531 rm -Rf build && mkdir -p build
15532 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15533 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15536 ac_status=$?
8934764e 15537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
8934764e 15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15543 (exit $ac_status); }; }; then
15544
d04c8a56 15545 have_atomic64_t=yes
bf9f3bac 15546
15547cat >>confdefs.h <<\_ACEOF
d04c8a56 15548#define HAVE_ATOMIC64_T 1
bf9f3bac 15549_ACEOF
15550
15551
15552else
8934764e 15553 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15554sed 's/^/| /' conftest.$ac_ext >&5
15555
d04c8a56 15556 have_atomic64_t=no
bf9f3bac 15557
c5f70460
BB
15558
15559
bf9f3bac 15560fi
c5f70460
BB
15561
15562 rm -Rf build
15563
bf9f3bac 15564
15565
d04c8a56
BB
15566 if test "x$enable_atomic_spinlocks" = xcheck; then
15567
15568 if test "x$have_atomic64_t" = xyes; then
15569
15570 enable_atomic_spinlocks=no
15571
15572else
15573
15574 enable_atomic_spinlocks=yes
15575
15576fi
15577
15578
15579fi
15580
15581
15582 if test "x$enable_atomic_spinlocks" = xyes; then
15583
15584
15585cat >>confdefs.h <<\_ACEOF
15586#define ATOMIC_SPINLOCK 1
15587_ACEOF
15588
15589
15590else
15591
15592 if test "x$have_atomic64_t" = xno; then
15593
8934764e
BB
15594 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15596{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 15597See \`config.log' for more details." >&5
8934764e 15598$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 15599See \`config.log' for more details." >&2;}
8934764e 15600 { (exit 1); exit 1; }; }; }
d04c8a56
BB
15601
15602fi
15603
15604
15605fi
15606
15607
8934764e
BB
15608 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15609$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15610 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15611$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 15612
8934764e
BB
15613 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15614$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15615 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15616$as_echo "$have_atomic64_t" >&6; }
d04c8a56 15617
8934764e
BB
15618 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
15619$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
bf9f3bac 15620
15621
dbe561d8 15622cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15623/* confdefs.h. */
15624_ACEOF
15625cat confdefs.h >>conftest.$ac_ext
15626cat >>conftest.$ac_ext <<_ACEOF
15627/* end confdefs.h. */
15628
15629
15630 #include <asm/atomic.h>
5ec44a37 15631 #include <asm/system.h>
bf9f3bac 15632
15633int
15634main (void)
15635{
15636
d04c8a56 15637 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
bf9f3bac 15638
15639 ;
15640 return 0;
15641}
15642
15643_ACEOF
15644
c5f70460
BB
15645
15646 rm -Rf build && mkdir -p build
15647 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15648 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
8934764e 15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15653 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
8934764e 15657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15658 (exit $ac_status); }; }; then
15659
8934764e
BB
15660 { $as_echo "$as_me:$LINENO: result: yes" >&5
15661$as_echo "yes" >&6; }
bf9f3bac 15662
15663cat >>confdefs.h <<\_ACEOF
d04c8a56 15664#define HAVE_ATOMIC64_CMPXCHG 1
bf9f3bac 15665_ACEOF
15666
15667
302b88e6 15668else
8934764e 15669 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
15670sed 's/^/| /' conftest.$ac_ext >&5
15671
8934764e
BB
15672 { $as_echo "$as_me:$LINENO: result: no" >&5
15673$as_echo "no" >&6; }
302b88e6
BB
15674
15675
15676
15677fi
15678
15679 rm -Rf build
15680
15681
15682
8934764e
BB
15683 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
15684$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
15685
15686
dbe561d8 15687cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
15688/* confdefs.h. */
15689_ACEOF
15690cat confdefs.h >>conftest.$ac_ext
15691cat >>conftest.$ac_ext <<_ACEOF
15692/* end confdefs.h. */
15693
15694
15695 #include <asm/atomic.h>
15696
15697int
15698main (void)
15699{
15700
d04c8a56 15701 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
15702
15703 ;
15704 return 0;
15705}
15706
15707_ACEOF
15708
15709
15710 rm -Rf build && mkdir -p build
15711 echo "obj-m := conftest.o" >build/Makefile
15712 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
8934764e 15716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15717 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
8934764e 15721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15722 (exit $ac_status); }; }; then
15723
8934764e
BB
15724 { $as_echo "$as_me:$LINENO: result: yes" >&5
15725$as_echo "yes" >&6; }
302b88e6
BB
15726
15727cat >>confdefs.h <<\_ACEOF
d04c8a56 15728#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
15729_ACEOF
15730
15731
15732else
8934764e 15733 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
15734sed 's/^/| /' conftest.$ac_ext >&5
15735
8934764e
BB
15736 { $as_echo "$as_me:$LINENO: result: no" >&5
15737$as_echo "no" >&6; }
302b88e6
BB
15738
15739
15740
15741fi
15742
15743 rm -Rf build
15744
15745
15746
8934764e
BB
15747 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
15748$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
15749
15750
dbe561d8 15751cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
15752/* confdefs.h. */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h. */
15757
15758
d04c8a56 15759 #include <linux/types.h>
302b88e6
BB
15760
15761int
15762main (void)
15763{
15764
d04c8a56 15765 uintptr_t *ptr;
302b88e6
BB
15766
15767 ;
15768 return 0;
15769}
15770
15771_ACEOF
15772
15773
15774 rm -Rf build && mkdir -p build
15775 echo "obj-m := conftest.o" >build/Makefile
15776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
8934764e 15780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
8934764e 15785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15786 (exit $ac_status); }; }; then
15787
8934764e
BB
15788 { $as_echo "$as_me:$LINENO: result: yes" >&5
15789$as_echo "yes" >&6; }
302b88e6
BB
15790
15791cat >>confdefs.h <<\_ACEOF
d04c8a56 15792#define HAVE_UINTPTR_T 1
302b88e6
BB
15793_ACEOF
15794
15795
bf9f3bac 15796else
8934764e 15797 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15798sed 's/^/| /' conftest.$ac_ext >&5
15799
8934764e
BB
15800 { $as_echo "$as_me:$LINENO: result: no" >&5
15801$as_echo "no" >&6; }
bf9f3bac 15802
c5f70460
BB
15803
15804
bf9f3bac 15805fi
c5f70460
BB
15806
15807 rm -Rf build
15808
bf9f3bac 15809
15810
8934764e
BB
15811 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
15812$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
bf9f3bac 15813
15814
dbe561d8 15815cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15816/* confdefs.h. */
15817_ACEOF
15818cat confdefs.h >>conftest.$ac_ext
15819cat >>conftest.$ac_ext <<_ACEOF
15820/* end confdefs.h. */
15821
15822
15823 #include <linux/workqueue.h>
15824
15825int
15826main (void)
15827{
15828
15829 struct work_struct work;
15830 INIT_WORK(&work, NULL, NULL);
15831
15832 ;
15833 return 0;
15834}
15835
15836_ACEOF
15837
c5f70460
BB
15838
15839 rm -Rf build && mkdir -p build
15840 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15841 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
8934764e 15845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15846 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
8934764e 15850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15851 (exit $ac_status); }; }; then
15852
8934764e
BB
15853 { $as_echo "$as_me:$LINENO: result: yes" >&5
15854$as_echo "yes" >&6; }
bf9f3bac 15855
15856cat >>confdefs.h <<\_ACEOF
15857#define HAVE_3ARGS_INIT_WORK 1
15858_ACEOF
15859
15860
15861else
8934764e 15862 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15863sed 's/^/| /' conftest.$ac_ext >&5
15864
8934764e
BB
15865 { $as_echo "$as_me:$LINENO: result: no" >&5
15866$as_echo "no" >&6; }
bf9f3bac 15867
c5f70460
BB
15868
15869
bf9f3bac 15870fi
c5f70460
BB
15871
15872 rm -Rf build
15873
bf9f3bac 15874
15875
8934764e
BB
15876 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
15877$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
bf9f3bac 15878
15879
dbe561d8 15880cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15881/* confdefs.h. */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h. */
15886
15887
15888 #include <linux/sysctl.h>
15889
15890int
15891main (void)
15892{
15893
15894 return register_sysctl_table(NULL,0);
15895
15896 ;
15897 return 0;
15898}
15899
15900_ACEOF
15901
c5f70460
BB
15902
15903 rm -Rf build && mkdir -p build
15904 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15905 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
8934764e 15909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15910 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
8934764e 15914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15915 (exit $ac_status); }; }; then
15916
8934764e
BB
15917 { $as_echo "$as_me:$LINENO: result: yes" >&5
15918$as_echo "yes" >&6; }
bf9f3bac 15919
15920cat >>confdefs.h <<\_ACEOF
15921#define HAVE_2ARGS_REGISTER_SYSCTL 1
15922_ACEOF
15923
15924
15925else
8934764e 15926 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15927sed 's/^/| /' conftest.$ac_ext >&5
15928
8934764e
BB
15929 { $as_echo "$as_me:$LINENO: result: no" >&5
15930$as_echo "no" >&6; }
bf9f3bac 15931
c5f70460
BB
15932
15933
bf9f3bac 15934fi
c5f70460
BB
15935
15936 rm -Rf build
15937
bf9f3bac 15938
15939
15940
8934764e
BB
15941 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
15942$as_echo_n "checking whether set_shrinker() available... " >&6; }
bf9f3bac 15943
15944
dbe561d8 15945cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15946/* confdefs.h. */
15947_ACEOF
15948cat confdefs.h >>conftest.$ac_ext
15949cat >>conftest.$ac_ext <<_ACEOF
15950/* end confdefs.h. */
15951
15952
15953 #include <linux/mm.h>
15954
15955int
15956main (void)
15957{
15958
15959 return set_shrinker(DEFAULT_SEEKS, NULL);
15960
15961 ;
15962 return 0;
15963}
15964
15965_ACEOF
15966
c5f70460
BB
15967
15968 rm -Rf build && mkdir -p build
15969 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15970 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
8934764e 15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15975 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
8934764e 15979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15980 (exit $ac_status); }; }; then
15981
8934764e
BB
15982 { $as_echo "$as_me:$LINENO: result: yes" >&5
15983$as_echo "yes" >&6; }
bf9f3bac 15984
15985cat >>confdefs.h <<\_ACEOF
15986#define HAVE_SET_SHRINKER 1
15987_ACEOF
15988
15989
15990else
8934764e 15991 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15992sed 's/^/| /' conftest.$ac_ext >&5
15993
8934764e
BB
15994 { $as_echo "$as_me:$LINENO: result: no" >&5
15995$as_echo "no" >&6; }
bf9f3bac 15996
c5f70460
BB
15997
15998
bf9f3bac 15999fi
c5f70460
BB
16000
16001 rm -Rf build
16002
bf9f3bac 16003
16004
23aa63cb
BB
16005 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16006$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16007 tmp_flags="$EXTRA_KCFLAGS"
16008 EXTRA_KCFLAGS="-Werror"
16009
16010
16011cat confdefs.h - <<_ACEOF >conftest.c
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017
16018
16019 #include <linux/mm.h>
16020
16021 int shrinker_cb(struct shrinker *, int, unsigned int);
16022
16023int
16024main (void)
16025{
16026
16027 struct shrinker cache_shrinker = {
16028 .shrink = shrinker_cb,
16029 .seeks = DEFAULT_SEEKS,
16030 };
16031 register_shrinker(&cache_shrinker);
16032
16033 ;
16034 return 0;
16035}
16036
16037_ACEOF
16038
16039
16040 rm -Rf build && mkdir -p build
16041 echo "obj-m := conftest.o" >build/Makefile
16042 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16053
16054 { $as_echo "$as_me:$LINENO: result: yes" >&5
16055$as_echo "yes" >&6; }
16056
16057cat >>confdefs.h <<\_ACEOF
16058#define HAVE_3ARGS_SHRINKER_CALLBACK 1
16059_ACEOF
16060
16061
16062else
16063 $as_echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066 { $as_echo "$as_me:$LINENO: result: no" >&5
16067$as_echo "no" >&6; }
16068
16069
16070
16071fi
16072
16073 rm -Rf build
16074
16075
16076 EXTRA_KCFLAGS="$tmp_flags"
16077
8934764e
BB
16078 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
16079$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
bf9f3bac 16080
16081
dbe561d8 16082cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16083/* confdefs.h. */
16084_ACEOF
16085cat confdefs.h >>conftest.$ac_ext
16086cat >>conftest.$ac_ext <<_ACEOF
16087/* end confdefs.h. */
16088
16089
16090 #include <linux/namei.h>
16091
16092int
16093main (void)
16094{
16095
16096 struct nameidata nd;
16097
16098 nd.path.mnt = NULL;
16099 nd.path.dentry = NULL;
16100
16101 ;
16102 return 0;
16103}
16104
16105_ACEOF
16106
c5f70460
BB
16107
16108 rm -Rf build && mkdir -p build
16109 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16110 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16113 ac_status=$?
8934764e 16114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16115 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
8934764e 16119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16120 (exit $ac_status); }; }; then
16121
8934764e
BB
16122 { $as_echo "$as_me:$LINENO: result: yes" >&5
16123$as_echo "yes" >&6; }
bf9f3bac 16124
16125cat >>confdefs.h <<\_ACEOF
16126#define HAVE_PATH_IN_NAMEIDATA 1
16127_ACEOF
16128
16129
16130else
8934764e 16131 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16132sed 's/^/| /' conftest.$ac_ext >&5
16133
8934764e
BB
16134 { $as_echo "$as_me:$LINENO: result: no" >&5
16135$as_echo "no" >&6; }
bf9f3bac 16136
c5f70460
BB
16137
16138
bf9f3bac 16139fi
c5f70460
BB
16140
16141 rm -Rf build
16142
bf9f3bac 16143
16144
16145
8934764e
BB
16146 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
16147$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
2e0e7e69
BB
16148 grep -q -E '[[:space:]]task_curr[[:space:]]' \
16149 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16150 rc=$?
16151 if test $rc -ne 0; then
16152 export=0
16153 for file in kernel/sched.c; do
2e0e7e69
BB
16154 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
16155 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16156 rc=$?
16157 if test $rc -eq 0; then
16158 export=1
16159 break;
16160 fi
16161 done
16162 if test $export -eq 0; then
8934764e
BB
16163 { $as_echo "$as_me:$LINENO: result: no" >&5
16164$as_echo "no" >&6; }
bf9f3bac 16165
16166 else
8934764e
BB
16167 { $as_echo "$as_me:$LINENO: result: yes" >&5
16168$as_echo "yes" >&6; }
bf9f3bac 16169
16170cat >>confdefs.h <<\_ACEOF
16171#define HAVE_TASK_CURR 1
16172_ACEOF
16173
16174 fi
16175 else
8934764e
BB
16176 { $as_echo "$as_me:$LINENO: result: yes" >&5
16177$as_echo "yes" >&6; }
bf9f3bac 16178
16179cat >>confdefs.h <<\_ACEOF
16180#define HAVE_TASK_CURR 1
16181_ACEOF
16182
16183 fi
16184
16185
8934764e
BB
16186 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
16187$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
bf9f3bac 16188
16189
dbe561d8 16190cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196
16197
16198 #include <linux/sysctl.h>
16199
16200int
16201main (void)
16202{
16203
16204 #ifndef CTL_UNNUMBERED
16205 #error CTL_UNNUMBERED undefined
16206 #endif
16207
16208 ;
16209 return 0;
16210}
16211
16212_ACEOF
16213
c5f70460
BB
16214
16215 rm -Rf build && mkdir -p build
16216 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16217 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
8934764e 16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16222 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
8934764e 16226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16227 (exit $ac_status); }; }; then
16228
8934764e
BB
16229 { $as_echo "$as_me:$LINENO: result: yes" >&5
16230$as_echo "yes" >&6; }
bf9f3bac 16231
16232cat >>confdefs.h <<\_ACEOF
16233#define HAVE_CTL_UNNUMBERED 1
16234_ACEOF
16235
16236
79a3bf13
BB
16237else
16238 $as_echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241 { $as_echo "$as_me:$LINENO: result: no" >&5
16242$as_echo "no" >&6; }
16243
16244
16245
16246fi
16247
16248 rm -Rf build
16249
16250
16251
16252
16253 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
16254$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
16255
16256
dbe561d8 16257cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
16258/* confdefs.h. */
16259_ACEOF
16260cat confdefs.h >>conftest.$ac_ext
16261cat >>conftest.$ac_ext <<_ACEOF
16262/* end confdefs.h. */
16263
16264
16265 #include <linux/sysctl.h>
16266
16267int
16268main (void)
16269{
16270
16271 struct ctl_table ctl;
16272 ctl.ctl_name = 0;
16273
16274 ;
16275 return 0;
16276}
16277
16278_ACEOF
16279
16280
16281 rm -Rf build && mkdir -p build
16282 echo "obj-m := conftest.o" >build/Makefile
16283 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294
16295 { $as_echo "$as_me:$LINENO: result: yes" >&5
16296$as_echo "yes" >&6; }
16297
16298cat >>confdefs.h <<\_ACEOF
16299#define HAVE_CTL_NAME 1
16300_ACEOF
16301
16302
bf9f3bac 16303else
8934764e 16304 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16305sed 's/^/| /' conftest.$ac_ext >&5
16306
8934764e
BB
16307 { $as_echo "$as_me:$LINENO: result: no" >&5
16308$as_echo "no" >&6; }
bf9f3bac 16309
c5f70460
BB
16310
16311
bf9f3bac 16312fi
c5f70460
BB
16313
16314 rm -Rf build
16315
bf9f3bac 16316
16317
8934764e
BB
16318 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
16319$as_echo_n "checking whether fls64() is available... " >&6; }
bf9f3bac 16320
16321
dbe561d8 16322cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328
16329
16330 #include <linux/bitops.h>
16331
16332int
16333main (void)
16334{
16335
16336 return fls64(0);
16337
16338 ;
16339 return 0;
16340}
16341
16342_ACEOF
16343
c5f70460
BB
16344
16345 rm -Rf build && mkdir -p build
16346 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16347 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
8934764e 16351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
8934764e 16356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16357 (exit $ac_status); }; }; then
16358
8934764e
BB
16359 { $as_echo "$as_me:$LINENO: result: yes" >&5
16360$as_echo "yes" >&6; }
bf9f3bac 16361
16362cat >>confdefs.h <<\_ACEOF
16363#define HAVE_FLS64 1
16364_ACEOF
16365
16366
16367else
8934764e 16368 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16369sed 's/^/| /' conftest.$ac_ext >&5
16370
8934764e
BB
16371 { $as_echo "$as_me:$LINENO: result: no" >&5
16372$as_echo "no" >&6; }
bf9f3bac 16373
c5f70460
BB
16374
16375
bf9f3bac 16376fi
c5f70460
BB
16377
16378 rm -Rf build
16379
bf9f3bac 16380
16381
16382
8934764e
BB
16383 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
16384$as_echo_n "checking whether symbol device_create is exported... " >&6; }
2e0e7e69
BB
16385 grep -q -E '[[:space:]]device_create[[:space:]]' \
16386 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16387 rc=$?
16388 if test $rc -ne 0; then
16389 export=0
16390 for file in drivers/base/core.c; do
2e0e7e69
BB
16391 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
16392 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16393 rc=$?
16394 if test $rc -eq 0; then
16395 export=1
16396 break;
16397 fi
16398 done
16399 if test $export -eq 0; then
8934764e
BB
16400 { $as_echo "$as_me:$LINENO: result: no" >&5
16401$as_echo "no" >&6; }
bf9f3bac 16402
16403 else
8934764e
BB
16404 { $as_echo "$as_me:$LINENO: result: yes" >&5
16405$as_echo "yes" >&6; }
bf9f3bac 16406
16407cat >>confdefs.h <<\_ACEOF
16408#define HAVE_DEVICE_CREATE 1
16409_ACEOF
16410
16411 fi
16412 else
8934764e
BB
16413 { $as_echo "$as_me:$LINENO: result: yes" >&5
16414$as_echo "yes" >&6; }
bf9f3bac 16415
16416cat >>confdefs.h <<\_ACEOF
16417#define HAVE_DEVICE_CREATE 1
16418_ACEOF
16419
16420 fi
16421
16422
16423
8934764e
BB
16424 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
16425$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
8123ac4f
BB
16426 tmp_flags="$EXTRA_KCFLAGS"
16427 EXTRA_KCFLAGS="-Werror"
16428
16429
dbe561d8 16430cat confdefs.h - <<_ACEOF >conftest.c
8123ac4f
BB
16431/* confdefs.h. */
16432_ACEOF
16433cat confdefs.h >>conftest.$ac_ext
16434cat >>conftest.$ac_ext <<_ACEOF
16435/* end confdefs.h. */
16436
16437
16438 #include <linux/device.h>
16439
16440int
16441main (void)
16442{
16443
16444 device_create(NULL, NULL, 0, NULL, "%d", 1);
16445
16446 ;
16447 return 0;
16448}
16449
16450_ACEOF
16451
16452
16453 rm -Rf build && mkdir -p build
16454 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
8123ac4f
BB
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
8934764e 16459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
16460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
8934764e 16464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
16465 (exit $ac_status); }; }; then
16466
8934764e
BB
16467 { $as_echo "$as_me:$LINENO: result: yes" >&5
16468$as_echo "yes" >&6; }
8123ac4f
BB
16469
16470cat >>confdefs.h <<\_ACEOF
16471#define HAVE_5ARGS_DEVICE_CREATE 1
16472_ACEOF
16473
16474
16475else
8934764e 16476 $as_echo "$as_me: failed program was:" >&5
8123ac4f
BB
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
8934764e
BB
16479 { $as_echo "$as_me:$LINENO: result: no" >&5
16480$as_echo "no" >&6; }
8123ac4f
BB
16481
16482
16483
16484fi
16485
16486 rm -Rf build
16487
16488
16489 EXTRA_KCFLAGS="$tmp_flags"
16490
16491
8934764e
BB
16492 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
16493$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
2e0e7e69
BB
16494 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
16495 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16496 rc=$?
16497 if test $rc -ne 0; then
16498 export=0
16499 for file in drivers/base/class.c; do
2e0e7e69
BB
16500 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
16501 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16502 rc=$?
16503 if test $rc -eq 0; then
16504 export=1
16505 break;
16506 fi
16507 done
16508 if test $export -eq 0; then
8934764e
BB
16509 { $as_echo "$as_me:$LINENO: result: no" >&5
16510$as_echo "no" >&6; }
bf9f3bac 16511
16512 else
8934764e
BB
16513 { $as_echo "$as_me:$LINENO: result: yes" >&5
16514$as_echo "yes" >&6; }
bf9f3bac 16515
16516cat >>confdefs.h <<\_ACEOF
16517#define HAVE_CLASS_DEVICE_CREATE 1
16518_ACEOF
16519
16520 fi
16521 else
8934764e
BB
16522 { $as_echo "$as_me:$LINENO: result: yes" >&5
16523$as_echo "yes" >&6; }
bf9f3bac 16524
16525cat >>confdefs.h <<\_ACEOF
16526#define HAVE_CLASS_DEVICE_CREATE 1
16527_ACEOF
16528
16529 fi
16530
16531
16532
8934764e
BB
16533 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
16534$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
2e0e7e69
BB
16535 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
16536 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16537 rc=$?
16538 if test $rc -ne 0; then
16539 export=0
16540 for file in kernel/time.c; do
2e0e7e69
BB
16541 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
16542 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16543 rc=$?
16544 if test $rc -eq 0; then
16545 export=1
16546 break;
16547 fi
16548 done
16549 if test $export -eq 0; then
8934764e
BB
16550 { $as_echo "$as_me:$LINENO: result: no" >&5
16551$as_echo "no" >&6; }
bf9f3bac 16552
6ae7fef5 16553 else
8934764e
BB
16554 { $as_echo "$as_me:$LINENO: result: yes" >&5
16555$as_echo "yes" >&6; }
6ae7fef5
BB
16556
16557cat >>confdefs.h <<\_ACEOF
16558#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16559_ACEOF
16560
16561 fi
16562 else
8934764e
BB
16563 { $as_echo "$as_me:$LINENO: result: yes" >&5
16564$as_echo "yes" >&6; }
6ae7fef5
BB
16565
16566cat >>confdefs.h <<\_ACEOF
16567#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16568_ACEOF
16569
16570 fi
16571
16572
16573
8934764e
BB
16574 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
16575$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
6ae7fef5
BB
16576
16577
dbe561d8 16578cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
16584
16585
16586 #include <linux/time.h>
16587 void set_normalized_timespec(struct timespec *ts,
16588 time_t sec, long nsec) { }
16589
16590int
16591main (void)
16592{
16593
16594 ;
16595 return 0;
16596}
16597
16598_ACEOF
16599
16600
16601 rm -Rf build && mkdir -p build
16602 echo "obj-m := conftest.o" >build/Makefile
16603 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
8934764e 16607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16608 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
8934764e 16612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16613 (exit $ac_status); }; }; then
16614
8934764e
BB
16615 { $as_echo "$as_me:$LINENO: result: no" >&5
16616$as_echo "no" >&6; }
6ae7fef5
BB
16617
16618else
8934764e 16619 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
8934764e
BB
16622 { $as_echo "$as_me:$LINENO: result: yes" >&5
16623$as_echo "yes" >&6; }
6ae7fef5
BB
16624
16625cat >>confdefs.h <<\_ACEOF
16626#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
16627_ACEOF
16628
16629
16630
16631
16632fi
16633
16634 rm -Rf build
16635
16636
16637
16638
8934764e
BB
16639 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
16640$as_echo_n "checking whether timespec_sub() is available... " >&6; }
6ae7fef5
BB
16641
16642
dbe561d8 16643cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16644/* confdefs.h. */
16645_ACEOF
16646cat confdefs.h >>conftest.$ac_ext
16647cat >>conftest.$ac_ext <<_ACEOF
16648/* end confdefs.h. */
16649
16650
16651 #include <linux/time.h>
16652
16653int
16654main (void)
16655{
16656
16657 struct timespec a, b, c = { 0 };
16658 c = timespec_sub(a, b);
16659
16660 ;
16661 return 0;
16662}
16663
16664_ACEOF
16665
16666
16667 rm -Rf build && mkdir -p build
16668 echo "obj-m := conftest.o" >build/Makefile
16669 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
8934764e 16673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
8934764e 16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16679 (exit $ac_status); }; }; then
16680
8934764e
BB
16681 { $as_echo "$as_me:$LINENO: result: yes" >&5
16682$as_echo "yes" >&6; }
6ae7fef5
BB
16683
16684cat >>confdefs.h <<\_ACEOF
16685#define HAVE_TIMESPEC_SUB 1
16686_ACEOF
16687
16688
16689else
8934764e 16690 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16691sed 's/^/| /' conftest.$ac_ext >&5
16692
8934764e
BB
16693 { $as_echo "$as_me:$LINENO: result: no" >&5
16694$as_echo "no" >&6; }
6ae7fef5
BB
16695
16696
16697
16698fi
16699
16700 rm -Rf build
16701
16702
16703
16704
8934764e
BB
16705 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
16706$as_echo_n "checking whether init_utsname() is available... " >&6; }
6ae7fef5
BB
16707
16708
dbe561d8 16709cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715
16716
16717 #include <linux/utsname.h>
16718
16719int
16720main (void)
16721{
16722
16723 struct new_utsname *a = init_utsname();
16724
16725 ;
16726 return 0;
16727}
16728
16729_ACEOF
16730
16731
16732 rm -Rf build && mkdir -p build
16733 echo "obj-m := conftest.o" >build/Makefile
16734 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
8934764e 16738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16739 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
8934764e 16743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16744 (exit $ac_status); }; }; then
16745
8934764e
BB
16746 { $as_echo "$as_me:$LINENO: result: yes" >&5
16747$as_echo "yes" >&6; }
6ae7fef5
BB
16748
16749cat >>confdefs.h <<\_ACEOF
16750#define HAVE_INIT_UTSNAME 1
16751_ACEOF
16752
16753
16754else
8934764e 16755 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16756sed 's/^/| /' conftest.$ac_ext >&5
16757
8934764e
BB
16758 { $as_echo "$as_me:$LINENO: result: no" >&5
16759$as_echo "no" >&6; }
6ae7fef5
BB
16760
16761
16762
16763fi
16764
16765 rm -Rf build
16766
16767
16768
16769
8934764e
BB
16770 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
16771$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
6ae7fef5
BB
16772
16773
dbe561d8 16774cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780
16781
16782 #include <linux/fdtable.h>
16783
16784int
16785main (void)
16786{
16787
16788 return 0;
16789
16790 ;
16791 return 0;
16792}
16793
16794_ACEOF
16795
16796
16797 rm -Rf build && mkdir -p build
16798 echo "obj-m := conftest.o" >build/Makefile
16799 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
8934764e 16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16804 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
8934764e 16808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16809 (exit $ac_status); }; }; then
16810
bf9f3bac 16811
16812cat >>confdefs.h <<\_ACEOF
6ae7fef5 16813#define HAVE_FDTABLE_HEADER 1
bf9f3bac 16814_ACEOF
16815
8934764e
BB
16816 { $as_echo "$as_me:$LINENO: result: yes" >&5
16817$as_echo "yes" >&6; }
bf9f3bac 16818
bf9f3bac 16819
6ae7fef5 16820else
8934764e 16821 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16822sed 's/^/| /' conftest.$ac_ext >&5
16823
8934764e
BB
16824 { $as_echo "$as_me:$LINENO: result: no" >&5
16825$as_echo "no" >&6; }
bf9f3bac 16826
16827
16828
6ae7fef5
BB
16829
16830fi
16831
16832 rm -Rf build
16833
16834
16835
16836
16837
8934764e
BB
16838 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
16839$as_echo_n "checking whether files_fdtable() is available... " >&6; }
bf9f3bac 16840
16841
dbe561d8 16842cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848
16849
6ae7fef5
BB
16850 #include <linux/sched.h>
16851 #include <linux/file.h>
16852 #ifdef HAVE_FDTABLE_HEADER
16853 #include <linux/fdtable.h>
16854 #endif
bf9f3bac 16855
16856int
16857main (void)
16858{
16859
6ae7fef5
BB
16860 struct files_struct *files = current->files;
16861 struct fdtable *fdt = files_fdtable(files);
16862
bf9f3bac 16863 ;
16864 return 0;
16865}
16866
16867_ACEOF
16868
c5f70460
BB
16869
16870 rm -Rf build && mkdir -p build
16871 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16872 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
8934764e 16876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16877 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
8934764e 16881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16882 (exit $ac_status); }; }; then
16883
8934764e
BB
16884 { $as_echo "$as_me:$LINENO: result: yes" >&5
16885$as_echo "yes" >&6; }
bf9f3bac 16886
16887cat >>confdefs.h <<\_ACEOF
6ae7fef5 16888#define HAVE_FILES_FDTABLE 1
bf9f3bac 16889_ACEOF
16890
16891
6ae7fef5 16892else
8934764e 16893 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
8934764e
BB
16896 { $as_echo "$as_me:$LINENO: result: no" >&5
16897$as_echo "no" >&6; }
6ae7fef5 16898
c5f70460
BB
16899
16900
bf9f3bac 16901fi
c5f70460
BB
16902
16903 rm -Rf build
16904
bf9f3bac 16905
16906
16907
8934764e
BB
16908 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
16909$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
bf9f3bac 16910
16911
dbe561d8 16912cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16913/* confdefs.h. */
16914_ACEOF
16915cat confdefs.h >>conftest.$ac_ext
16916cat >>conftest.$ac_ext <<_ACEOF
16917/* end confdefs.h. */
16918
16919
6ae7fef5 16920 #include <linux/uaccess.h>
bf9f3bac 16921
16922int
16923main (void)
16924{
16925
6ae7fef5 16926 return 0;
bf9f3bac 16927
16928 ;
16929 return 0;
16930}
16931
16932_ACEOF
16933
c5f70460
BB
16934
16935 rm -Rf build && mkdir -p build
16936 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16937 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
8934764e 16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16942 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
8934764e 16946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16947 (exit $ac_status); }; }; then
16948
bf9f3bac 16949
16950cat >>confdefs.h <<\_ACEOF
6ae7fef5 16951#define HAVE_UACCESS_HEADER 1
bf9f3bac 16952_ACEOF
16953
8934764e
BB
16954 { $as_echo "$as_me:$LINENO: result: yes" >&5
16955$as_echo "yes" >&6; }
6ae7fef5 16956
bf9f3bac 16957
16958else
8934764e 16959 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16960sed 's/^/| /' conftest.$ac_ext >&5
16961
8934764e
BB
16962 { $as_echo "$as_me:$LINENO: result: no" >&5
16963$as_echo "no" >&6; }
bf9f3bac 16964
c5f70460
BB
16965
16966
6ae7fef5 16967
bf9f3bac 16968fi
c5f70460
BB
16969
16970 rm -Rf build
16971
bf9f3bac 16972
16973
16974
6ae7fef5 16975
8934764e
BB
16976 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
16977$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
bf9f3bac 16978
16979
dbe561d8 16980cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
16986
16987
6ae7fef5 16988 #include <linux/slab.h>
bf9f3bac 16989
16990int
16991main (void)
16992{
16993
6ae7fef5 16994 void *a = kmalloc_node(1, GFP_KERNEL, 0);
bf9f3bac 16995
16996 ;
16997 return 0;
16998}
16999
17000_ACEOF
17001
c5f70460
BB
17002
17003 rm -Rf build && mkdir -p build
17004 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
8934764e 17009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
8934764e 17014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17015 (exit $ac_status); }; }; then
17016
8934764e
BB
17017 { $as_echo "$as_me:$LINENO: result: yes" >&5
17018$as_echo "yes" >&6; }
bf9f3bac 17019
17020cat >>confdefs.h <<\_ACEOF
6ae7fef5 17021#define HAVE_KMALLOC_NODE 1
bf9f3bac 17022_ACEOF
17023
17024
17025else
8934764e
BB
17026 $as_echo "$as_me: failed program was:" >&5
17027sed 's/^/| /' conftest.$ac_ext >&5
17028
17029 { $as_echo "$as_me:$LINENO: result: no" >&5
17030$as_echo "no" >&6; }
17031
17032
17033
17034fi
17035
17036 rm -Rf build
17037
17038
17039
17040
17041 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
17042$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
17043 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
17044 $LINUX_OBJ/Module*.symvers 2>/dev/null
17045 rc=$?
17046 if test $rc -ne 0; then
17047 export=0
17048 for file in ; do
17049 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
17050 "$LINUX_OBJ/$file" 2>/dev/null
17051 rc=$?
17052 if test $rc -eq 0; then
17053 export=1
17054 break;
17055 fi
17056 done
17057 if test $export -eq 0; then
17058 { $as_echo "$as_me:$LINENO: result: no" >&5
17059$as_echo "no" >&6; }
17060
17061 else
17062 { $as_echo "$as_me:$LINENO: result: yes" >&5
17063$as_echo "yes" >&6; }
17064
17065cat >>confdefs.h <<\_ACEOF
17066#define HAVE_MONOTONIC_CLOCK 1
17067_ACEOF
17068
17069 fi
17070 else
17071 { $as_echo "$as_me:$LINENO: result: yes" >&5
17072$as_echo "yes" >&6; }
17073
17074cat >>confdefs.h <<\_ACEOF
17075#define HAVE_MONOTONIC_CLOCK 1
17076_ACEOF
17077
17078 fi
17079
17080
17081
17082 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
17083$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
17084
17085
dbe561d8 17086cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
17087/* confdefs.h. */
17088_ACEOF
17089cat confdefs.h >>conftest.$ac_ext
17090cat >>conftest.$ac_ext <<_ACEOF
17091/* end confdefs.h. */
17092
17093
17094 #include <linux/fs.h>
17095 #include <linux/mutex.h>
17096
17097int
17098main (void)
17099{
17100
17101 struct inode i;
17102 mutex_init(&i.i_mutex);
17103
17104 ;
17105 return 0;
17106}
17107
17108_ACEOF
17109
17110
17111 rm -Rf build && mkdir -p build
17112 echo "obj-m := conftest.o" >build/Makefile
17113 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124
17125 { $as_echo "$as_me:$LINENO: result: yes" >&5
17126$as_echo "yes" >&6; }
17127
17128cat >>confdefs.h <<\_ACEOF
17129#define HAVE_INODE_I_MUTEX 1
17130_ACEOF
17131
17132
17133else
17134 $as_echo "$as_me: failed program was:" >&5
17135sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 { $as_echo "$as_me:$LINENO: result: no" >&5
17138$as_echo "no" >&6; }
17139
17140
17141
17142fi
17143
17144 rm -Rf build
17145
17146
17147
17148
17149 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
17150$as_echo_n "checking whether struct mutex has owner... " >&6; }
17151
17152
dbe561d8 17153cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
17154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
17159
17160
17161 #include <linux/mutex.h>
17162
17163int
17164main (void)
17165{
17166
17167 struct mutex mtx;
17168 mtx.owner = NULL;
17169
17170 ;
17171 return 0;
17172}
17173
17174_ACEOF
17175
17176
17177 rm -Rf build && mkdir -p build
17178 echo "obj-m := conftest.o" >build/Makefile
17179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190
17191 { $as_echo "$as_me:$LINENO: result: yes" >&5
17192$as_echo "yes" >&6; }
17193
17194cat >>confdefs.h <<\_ACEOF
17195#define HAVE_MUTEX_OWNER 1
17196_ACEOF
17197
17198
17199else
17200 $as_echo "$as_me: failed program was:" >&5
17201sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 { $as_echo "$as_me:$LINENO: result: no" >&5
17204$as_echo "no" >&6; }
17205
17206
17207
17208fi
17209
17210 rm -Rf build
17211
17212
17213
17214
17215 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
17216$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
17217
17218
dbe561d8 17219cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225
17226
17227 #include <linux/mutex.h>
17228
17229int
17230main (void)
17231{
17232
17233 struct mutex mutex;
17234 mutex_init(&mutex);
17235 mutex_lock_nested(&mutex, 0);
17236
17237 ;
17238 return 0;
17239}
17240
17241_ACEOF
17242
17243
17244 rm -Rf build && mkdir -p build
17245 echo "obj-m := conftest.o" >build/Makefile
17246 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257
17258 { $as_echo "$as_me:$LINENO: result: yes" >&5
17259$as_echo "yes" >&6; }
17260
17261cat >>confdefs.h <<\_ACEOF
17262#define HAVE_MUTEX_LOCK_NESTED 1
17263_ACEOF
17264
17265
17266else
17267 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17268sed 's/^/| /' conftest.$ac_ext >&5
17269
8934764e
BB
17270 { $as_echo "$as_me:$LINENO: result: no" >&5
17271$as_echo "no" >&6; }
17272
17273
17274
17275fi
17276
17277 rm -Rf build
17278
17279
17280
17281
8934764e
BB
17282 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
17283$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
bf9f3bac 17284
17285
dbe561d8 17286cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17287/* confdefs.h. */
17288_ACEOF
17289cat confdefs.h >>conftest.$ac_ext
17290cat >>conftest.$ac_ext <<_ACEOF
17291/* end confdefs.h. */
17292
17293
8934764e 17294 #include <linux/smp.h>
bf9f3bac 17295
17296int
17297main (void)
17298{
17299
8934764e 17300 on_each_cpu(NULL, NULL, 0);
bf9f3bac 17301
17302 ;
17303 return 0;
17304}
17305
17306_ACEOF
17307
c5f70460
BB
17308
17309 rm -Rf build && mkdir -p build
17310 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17311 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
8934764e 17315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
8934764e 17320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17321 (exit $ac_status); }; }; then
17322
8934764e
BB
17323 { $as_echo "$as_me:$LINENO: result: yes" >&5
17324$as_echo "yes" >&6; }
bf9f3bac 17325
17326cat >>confdefs.h <<\_ACEOF
8934764e 17327#define HAVE_3ARGS_ON_EACH_CPU 1
bf9f3bac 17328_ACEOF
17329
bf9f3bac 17330
17331else
8934764e 17332 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17333sed 's/^/| /' conftest.$ac_ext >&5
17334
8934764e
BB
17335 { $as_echo "$as_me:$LINENO: result: no" >&5
17336$as_echo "no" >&6; }
bf9f3bac 17337
17338
c5f70460 17339
bf9f3bac 17340fi
c5f70460
BB
17341
17342 rm -Rf build
17343
bf9f3bac 17344
17345
17346
8934764e
BB
17347 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
17348$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
17349 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
17350 $LINUX_OBJ/Module*.symvers 2>/dev/null
17351 rc=$?
17352 if test $rc -ne 0; then
17353 export=0
17354 for file in ; do
17355 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
17356 "$LINUX_OBJ/$file" 2>/dev/null
17357 rc=$?
17358 if test $rc -eq 0; then
17359 export=1
17360 break;
17361 fi
17362 done
17363 if test $export -eq 0; then
17364 { $as_echo "$as_me:$LINENO: result: no" >&5
17365$as_echo "no" >&6; }
4d54fdee 17366
8934764e
BB
17367 else
17368 { $as_echo "$as_me:$LINENO: result: yes" >&5
17369$as_echo "yes" >&6; }
4d54fdee 17370
8934764e
BB
17371cat >>confdefs.h <<\_ACEOF
17372#define HAVE_KALLSYMS_LOOKUP_NAME 1
4d54fdee 17373_ACEOF
4d54fdee 17374
8934764e
BB
17375 fi
17376 else
17377 { $as_echo "$as_me:$LINENO: result: yes" >&5
17378$as_echo "yes" >&6; }
4d54fdee 17379
8934764e
BB
17380cat >>confdefs.h <<\_ACEOF
17381#define HAVE_KALLSYMS_LOOKUP_NAME 1
17382_ACEOF
4d54fdee 17383
8934764e 17384 fi
4d54fdee 17385
4d54fdee 17386
4d54fdee 17387
8934764e
BB
17388 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
17389$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
17390 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
17391 $LINUX_OBJ/Module*.symvers 2>/dev/null
17392 rc=$?
17393 if test $rc -ne 0; then
17394 export=0
17395 for file in ; do
17396 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
17397 "$LINUX_OBJ/$file" 2>/dev/null
17398 rc=$?
17399 if test $rc -eq 0; then
17400 export=1
17401 break;
17402 fi
17403 done
17404 if test $export -eq 0; then
17405 { $as_echo "$as_me:$LINENO: result: no" >&5
17406$as_echo "no" >&6; }
4d54fdee 17407
8934764e
BB
17408 else
17409 { $as_echo "$as_me:$LINENO: result: yes" >&5
17410$as_echo "yes" >&6; }
4d54fdee 17411
8934764e
BB
17412cat >>confdefs.h <<\_ACEOF
17413#define HAVE_GET_VMALLOC_INFO 1
17414_ACEOF
4d54fdee 17415
8934764e
BB
17416 fi
17417 else
17418 { $as_echo "$as_me:$LINENO: result: yes" >&5
17419$as_echo "yes" >&6; }
4d54fdee
BB
17420
17421cat >>confdefs.h <<\_ACEOF
8934764e 17422#define HAVE_GET_VMALLOC_INFO 1
4d54fdee
BB
17423_ACEOF
17424
8934764e 17425 fi
4d54fdee 17426
4d54fdee
BB
17427
17428
8934764e
BB
17429 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
17430$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
17431 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
17432 rc=$?
17433 if test $rc -eq 0; then
17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
17435$as_echo "yes" >&6; }
4d54fdee 17436
8934764e
BB
17437cat >>confdefs.h <<\_ACEOF
17438#define HAVE_PGDAT_HELPERS 1
17439_ACEOF
4d54fdee 17440
8934764e
BB
17441 else
17442 { $as_echo "$as_me:$LINENO: result: no" >&5
17443$as_echo "no" >&6; }
17444 fi
4d54fdee
BB
17445
17446
8934764e
BB
17447 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
17448$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
17449 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
17450 $LINUX_OBJ/Module*.symvers 2>/dev/null
17451 rc=$?
17452 if test $rc -ne 0; then
17453 export=0
17454 for file in ; do
17455 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
17456 "$LINUX_OBJ/$file" 2>/dev/null
17457 rc=$?
17458 if test $rc -eq 0; then
17459 export=1
17460 break;
17461 fi
17462 done
17463 if test $export -eq 0; then
17464 { $as_echo "$as_me:$LINENO: result: no" >&5
17465$as_echo "no" >&6; }
4d54fdee 17466
8934764e
BB
17467 else
17468 { $as_echo "$as_me:$LINENO: result: yes" >&5
17469$as_echo "yes" >&6; }
4d54fdee 17470
8934764e
BB
17471cat >>confdefs.h <<\_ACEOF
17472#define HAVE_FIRST_ONLINE_PGDAT 1
17473_ACEOF
bf9f3bac 17474
8934764e
BB
17475 fi
17476 else
17477 { $as_echo "$as_me:$LINENO: result: yes" >&5
17478$as_echo "yes" >&6; }
bf9f3bac 17479
8934764e
BB
17480cat >>confdefs.h <<\_ACEOF
17481#define HAVE_FIRST_ONLINE_PGDAT 1
bf9f3bac 17482_ACEOF
bf9f3bac 17483
8934764e 17484 fi
bf9f3bac 17485
bf9f3bac 17486
bf9f3bac 17487
8934764e
BB
17488 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
17489$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
17490 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
17491 $LINUX_OBJ/Module*.symvers 2>/dev/null
17492 rc=$?
17493 if test $rc -ne 0; then
17494 export=0
17495 for file in ; do
17496 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
17497 "$LINUX_OBJ/$file" 2>/dev/null
17498 rc=$?
17499 if test $rc -eq 0; then
17500 export=1
17501 break;
17502 fi
17503 done
17504 if test $export -eq 0; then
17505 { $as_echo "$as_me:$LINENO: result: no" >&5
17506$as_echo "no" >&6; }
bf9f3bac 17507
8934764e
BB
17508 else
17509 { $as_echo "$as_me:$LINENO: result: yes" >&5
17510$as_echo "yes" >&6; }
bf9f3bac 17511
8934764e
BB
17512cat >>confdefs.h <<\_ACEOF
17513#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 17514_ACEOF
17515
8934764e
BB
17516 fi
17517 else
17518 { $as_echo "$as_me:$LINENO: result: yes" >&5
17519$as_echo "yes" >&6; }
bf9f3bac 17520
17521cat >>confdefs.h <<\_ACEOF
8934764e 17522#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 17523_ACEOF
17524
8934764e 17525 fi
bf9f3bac 17526
17527
17528
8934764e
BB
17529 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
17530$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
17531 grep -q -E '[[:space:]]next_zone[[:space:]]' \
6ae7fef5
BB
17532 $LINUX_OBJ/Module*.symvers 2>/dev/null
17533 rc=$?
17534 if test $rc -ne 0; then
17535 export=0
17536 for file in ; do
8934764e 17537 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
6ae7fef5
BB
17538 "$LINUX_OBJ/$file" 2>/dev/null
17539 rc=$?
17540 if test $rc -eq 0; then
17541 export=1
17542 break;
17543 fi
17544 done
17545 if test $export -eq 0; then
8934764e
BB
17546 { $as_echo "$as_me:$LINENO: result: no" >&5
17547$as_echo "no" >&6; }
6ae7fef5
BB
17548
17549 else
8934764e
BB
17550 { $as_echo "$as_me:$LINENO: result: yes" >&5
17551$as_echo "yes" >&6; }
6ae7fef5
BB
17552
17553cat >>confdefs.h <<\_ACEOF
8934764e 17554#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
17555_ACEOF
17556
17557 fi
17558 else
8934764e
BB
17559 { $as_echo "$as_me:$LINENO: result: yes" >&5
17560$as_echo "yes" >&6; }
6ae7fef5
BB
17561
17562cat >>confdefs.h <<\_ACEOF
8934764e 17563#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
17564_ACEOF
17565
17566 fi
17567
17568
17569
8934764e
BB
17570 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
17571$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
17572 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
6ae7fef5
BB
17573 $LINUX_OBJ/Module*.symvers 2>/dev/null
17574 rc=$?
17575 if test $rc -ne 0; then
17576 export=0
17577 for file in ; do
8934764e 17578 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
6ae7fef5
BB
17579 "$LINUX_OBJ/$file" 2>/dev/null
17580 rc=$?
17581 if test $rc -eq 0; then
17582 export=1
17583 break;
17584 fi
17585 done
17586 if test $export -eq 0; then
8934764e
BB
17587 { $as_echo "$as_me:$LINENO: result: no" >&5
17588$as_echo "no" >&6; }
17589
17590 else
17591 { $as_echo "$as_me:$LINENO: result: yes" >&5
17592$as_echo "yes" >&6; }
17593
17594cat >>confdefs.h <<\_ACEOF
17595#define HAVE_PGDAT_LIST 1
17596_ACEOF
17597
17598 fi
17599 else
17600 { $as_echo "$as_me:$LINENO: result: yes" >&5
17601$as_echo "yes" >&6; }
17602
17603cat >>confdefs.h <<\_ACEOF
17604#define HAVE_PGDAT_LIST 1
17605_ACEOF
17606
17607 fi
17608
17609
17610
17611 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
17612$as_echo_n "checking whether global_page_state() is available... " >&6; }
17613
17614
dbe561d8 17615cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
17616/* confdefs.h. */
17617_ACEOF
17618cat confdefs.h >>conftest.$ac_ext
17619cat >>conftest.$ac_ext <<_ACEOF
17620/* end confdefs.h. */
17621
17622
17623 #include <linux/mm.h>
17624
17625int
17626main (void)
17627{
17628
17629 unsigned long state;
17630 state = global_page_state(0);
17631
17632 ;
17633 return 0;
17634}
17635
17636_ACEOF
17637
17638
17639 rm -Rf build && mkdir -p build
17640 echo "obj-m := conftest.o" >build/Makefile
17641 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
6ae7fef5 17652
8934764e
BB
17653 { $as_echo "$as_me:$LINENO: result: yes" >&5
17654$as_echo "yes" >&6; }
6ae7fef5
BB
17655
17656cat >>confdefs.h <<\_ACEOF
8934764e 17657#define HAVE_GLOBAL_PAGE_STATE 1
6ae7fef5
BB
17658_ACEOF
17659
6ae7fef5 17660
8934764e
BB
17661else
17662 $as_echo "$as_me: failed program was:" >&5
17663sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 { $as_echo "$as_me:$LINENO: result: no" >&5
17666$as_echo "no" >&6; }
17667
17668
17669
17670fi
17671
17672 rm -Rf build
6ae7fef5 17673
6ae7fef5
BB
17674
17675
17676
8934764e
BB
17677 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
17678$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
bf9f3bac 17679
17680
dbe561d8 17681cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
17687
17688
8934764e 17689 #include <linux/mm.h>
bf9f3bac 17690
17691int
17692main (void)
17693{
17694
8934764e
BB
17695 enum zone_stat_item zsi;
17696 zsi = NR_FREE_PAGES;
bf9f3bac 17697
17698 ;
17699 return 0;
17700}
17701
17702_ACEOF
17703
c5f70460
BB
17704
17705 rm -Rf build && mkdir -p build
17706 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17707 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17710 ac_status=$?
8934764e 17711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17712 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
8934764e 17716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17717 (exit $ac_status); }; }; then
17718
8934764e
BB
17719 { $as_echo "$as_me:$LINENO: result: yes" >&5
17720$as_echo "yes" >&6; }
bf9f3bac 17721
17722cat >>confdefs.h <<\_ACEOF
8934764e 17723#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
bf9f3bac 17724_ACEOF
17725
bf9f3bac 17726
17727else
8934764e 17728 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17729sed 's/^/| /' conftest.$ac_ext >&5
17730
8934764e
BB
17731 { $as_echo "$as_me:$LINENO: result: no" >&5
17732$as_echo "no" >&6; }
bf9f3bac 17733
17734
c5f70460 17735
bf9f3bac 17736fi
c5f70460
BB
17737
17738 rm -Rf build
17739
bf9f3bac 17740
17741
17742
8934764e
BB
17743 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
17744$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
bf9f3bac 17745
bf9f3bac 17746
dbe561d8 17747cat confdefs.h - <<_ACEOF >conftest.c
8934764e 17748/* confdefs.h. */
6ae7fef5 17749_ACEOF
8934764e
BB
17750cat confdefs.h >>conftest.$ac_ext
17751cat >>conftest.$ac_ext <<_ACEOF
17752/* end confdefs.h. */
bf9f3bac 17753
6ae7fef5 17754
8934764e 17755 #include <linux/mm.h>
bf9f3bac 17756
8934764e
BB
17757int
17758main (void)
17759{
bf9f3bac 17760
8934764e
BB
17761 enum zone_stat_item zsi;
17762 zsi = NR_INACTIVE;
bf9f3bac 17763
8934764e
BB
17764 ;
17765 return 0;
17766}
bf9f3bac 17767
8934764e 17768_ACEOF
bf9f3bac 17769
bf9f3bac 17770
8934764e
BB
17771 rm -Rf build && mkdir -p build
17772 echo "obj-m := conftest.o" >build/Makefile
17773 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
bf9f3bac 17784
8934764e
BB
17785 { $as_echo "$as_me:$LINENO: result: yes" >&5
17786$as_echo "yes" >&6; }
6ae7fef5
BB
17787
17788cat >>confdefs.h <<\_ACEOF
8934764e 17789#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
6ae7fef5
BB
17790_ACEOF
17791
6ae7fef5 17792
8934764e
BB
17793else
17794 $as_echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
c5f70460 17796
8934764e
BB
17797 { $as_echo "$as_me:$LINENO: result: no" >&5
17798$as_echo "no" >&6; }
bf9f3bac 17799
bf9f3bac 17800
8934764e
BB
17801
17802fi
17803
17804 rm -Rf build
17805
17806
17807
17808 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
17809$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
17810
17811
dbe561d8 17812cat confdefs.h - <<_ACEOF >conftest.c
8934764e 17813/* confdefs.h. */
bf9f3bac 17814_ACEOF
8934764e
BB
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
bf9f3bac 17818
17819
8934764e 17820 #include <linux/mm.h>
bf9f3bac 17821
8934764e
BB
17822int
17823main (void)
17824{
bf9f3bac 17825
8934764e
BB
17826 enum zone_stat_item zsi;
17827 zsi = NR_INACTIVE_ANON;
17828
17829 ;
17830 return 0;
17831}
c5f70460 17832
6ae7fef5 17833_ACEOF
c5f70460 17834
8934764e
BB
17835
17836 rm -Rf build && mkdir -p build
17837 echo "obj-m := conftest.o" >build/Makefile
17838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849
17850 { $as_echo "$as_me:$LINENO: result: yes" >&5
17851$as_echo "yes" >&6; }
c5f70460 17852
6ae7fef5 17853cat >>confdefs.h <<\_ACEOF
8934764e 17854#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
6ae7fef5 17855_ACEOF
c5f70460 17856
bf9f3bac 17857
8934764e
BB
17858else
17859 $as_echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 17861
8934764e
BB
17862 { $as_echo "$as_me:$LINENO: result: no" >&5
17863$as_echo "no" >&6; }
bf9f3bac 17864
bf9f3bac 17865
bf9f3bac 17866
8934764e 17867fi
bf9f3bac 17868
8934764e 17869 rm -Rf build
bf9f3bac 17870
8934764e
BB
17871
17872
17873 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
17874$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
17875
17876
dbe561d8 17877cat confdefs.h - <<_ACEOF >conftest.c
8934764e 17878/* confdefs.h. */
bf9f3bac 17879_ACEOF
8934764e
BB
17880cat confdefs.h >>conftest.$ac_ext
17881cat >>conftest.$ac_ext <<_ACEOF
17882/* end confdefs.h. */
bf9f3bac 17883
bf9f3bac 17884
8934764e 17885 #include <linux/mm.h>
bf9f3bac 17886
8934764e
BB
17887int
17888main (void)
17889{
bf9f3bac 17890
8934764e
BB
17891 enum zone_stat_item zsi;
17892 zsi = NR_INACTIVE_FILE;
6ae7fef5 17893
8934764e
BB
17894 ;
17895 return 0;
17896}
6ae7fef5 17897
6ae7fef5
BB
17898_ACEOF
17899
8934764e
BB
17900
17901 rm -Rf build && mkdir -p build
17902 echo "obj-m := conftest.o" >build/Makefile
17903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914
17915 { $as_echo "$as_me:$LINENO: result: yes" >&5
17916$as_echo "yes" >&6; }
6ae7fef5
BB
17917
17918cat >>confdefs.h <<\_ACEOF
8934764e 17919#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
6ae7fef5
BB
17920_ACEOF
17921
6ae7fef5 17922
8934764e
BB
17923else
17924 $as_echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
6ae7fef5 17926
8934764e
BB
17927 { $as_echo "$as_me:$LINENO: result: no" >&5
17928$as_echo "no" >&6; }
6ae7fef5 17929
6ae7fef5 17930
6ae7fef5 17931
8934764e 17932fi
6ae7fef5 17933
8934764e 17934 rm -Rf build
6ae7fef5 17935
6ae7fef5
BB
17936
17937
17938
8934764e
BB
17939 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
17940$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
bf9f3bac 17941
17942
dbe561d8 17943cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949
17950
6ae7fef5 17951 #include <linux/mm.h>
bf9f3bac 17952
17953int
17954main (void)
17955{
17956
8934764e
BB
17957 enum zone_stat_item zsi;
17958 zsi = NR_ACTIVE;
bf9f3bac 17959
17960 ;
17961 return 0;
17962}
17963
17964_ACEOF
17965
c5f70460
BB
17966
17967 rm -Rf build && mkdir -p build
17968 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17969 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
8934764e 17973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17974 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
8934764e 17978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17979 (exit $ac_status); }; }; then
17980
8934764e
BB
17981 { $as_echo "$as_me:$LINENO: result: yes" >&5
17982$as_echo "yes" >&6; }
bf9f3bac 17983
17984cat >>confdefs.h <<\_ACEOF
8934764e 17985#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
bf9f3bac 17986_ACEOF
17987
17988
17989else
8934764e 17990 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17991sed 's/^/| /' conftest.$ac_ext >&5
17992
8934764e
BB
17993 { $as_echo "$as_me:$LINENO: result: no" >&5
17994$as_echo "no" >&6; }
bf9f3bac 17995
c5f70460
BB
17996
17997
bf9f3bac 17998fi
c5f70460
BB
17999
18000 rm -Rf build
18001
bf9f3bac 18002
18003
8934764e
BB
18004 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
18005$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
6c9433c1
BB
18006
18007
dbe561d8 18008cat confdefs.h - <<_ACEOF >conftest.c
6c9433c1
BB
18009/* confdefs.h. */
18010_ACEOF
18011cat confdefs.h >>conftest.$ac_ext
18012cat >>conftest.$ac_ext <<_ACEOF
18013/* end confdefs.h. */
18014
18015
6ae7fef5 18016 #include <linux/mm.h>
6c9433c1
BB
18017
18018int
18019main (void)
18020{
18021
6ae7fef5 18022 enum zone_stat_item zsi;
8934764e 18023 zsi = NR_ACTIVE_ANON;
6c9433c1
BB
18024
18025 ;
18026 return 0;
18027}
18028
18029_ACEOF
18030
18031
18032 rm -Rf build && mkdir -p build
18033 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18034 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
6c9433c1
BB
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
8934764e 18038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
18039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18042 ac_status=$?
8934764e 18043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
18044 (exit $ac_status); }; }; then
18045
8934764e
BB
18046 { $as_echo "$as_me:$LINENO: result: yes" >&5
18047$as_echo "yes" >&6; }
6c9433c1
BB
18048
18049cat >>confdefs.h <<\_ACEOF
8934764e 18050#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
6c9433c1
BB
18051_ACEOF
18052
18053
18054else
8934764e 18055 $as_echo "$as_me: failed program was:" >&5
6c9433c1
BB
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
8934764e
BB
18058 { $as_echo "$as_me:$LINENO: result: no" >&5
18059$as_echo "no" >&6; }
6c9433c1
BB
18060
18061
18062
18063fi
18064
18065 rm -Rf build
18066
18067
18068
8934764e
BB
18069 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
18070$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 18071
bf9f3bac 18072
dbe561d8 18073cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18074/* confdefs.h. */
bf9f3bac 18075_ACEOF
6ae7fef5
BB
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
18078/* end confdefs.h. */
bf9f3bac 18079
bf9f3bac 18080
6ae7fef5 18081 #include <linux/mm.h>
bf9f3bac 18082
6ae7fef5
BB
18083int
18084main (void)
18085{
96dded38 18086
6ae7fef5 18087 enum zone_stat_item zsi;
8934764e 18088 zsi = NR_ACTIVE_FILE;
bf9f3bac 18089
6ae7fef5
BB
18090 ;
18091 return 0;
18092}
31a033ec 18093
6ae7fef5 18094_ACEOF
31a033ec 18095
c5f70460 18096
6ae7fef5
BB
18097 rm -Rf build && mkdir -p build
18098 echo "obj-m := conftest.o" >build/Makefile
18099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18102 ac_status=$?
8934764e 18103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
8934764e 18108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 18109 (exit $ac_status); }; }; then
c5f70460 18110
8934764e
BB
18111 { $as_echo "$as_me:$LINENO: result: yes" >&5
18112$as_echo "yes" >&6; }
c5f70460 18113
96dded38 18114cat >>confdefs.h <<\_ACEOF
8934764e 18115#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
96dded38 18116_ACEOF
c5f70460 18117
31a033ec 18118
6ae7fef5 18119else
8934764e 18120 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
18121sed 's/^/| /' conftest.$ac_ext >&5
18122
8934764e
BB
18123 { $as_echo "$as_me:$LINENO: result: no" >&5
18124$as_echo "no" >&6; }
6ae7fef5
BB
18125
18126
18127
18128fi
18129
18130 rm -Rf build
31a033ec
BB
18131
18132
6ae7fef5 18133
8934764e
BB
18134
18135 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
18136$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
31a033ec
BB
18137
18138
dbe561d8 18139cat confdefs.h - <<_ACEOF >conftest.c
31a033ec
BB
18140/* confdefs.h. */
18141_ACEOF
18142cat confdefs.h >>conftest.$ac_ext
18143cat >>conftest.$ac_ext <<_ACEOF
18144/* end confdefs.h. */
18145
18146
31a033ec
BB
18147
18148int
18149main (void)
18150{
18151
8934764e
BB
18152 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
18153 #error "global_page_state needs NR_FREE_PAGES"
18154 #endif
18155
18156 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
18157 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
18158 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
18159 #error "global_page_state needs NR_ACTIVE*"
18160 #endif
18161
18162 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
18163 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
18164 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
18165 #error "global_page_state needs NR_INACTIVE*"
18166 #endif
31a033ec
BB
18167
18168 ;
18169 return 0;
18170}
18171
18172_ACEOF
18173
c5f70460
BB
18174
18175 rm -Rf build && mkdir -p build
18176 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18177 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
31a033ec
BB
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
8934764e 18181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
18182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
8934764e 18186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
18187 (exit $ac_status); }; }; then
18188
8934764e
BB
18189 { $as_echo "$as_me:$LINENO: result: no" >&5
18190$as_echo "no" >&6; }
18191
18192else
18193 $as_echo "$as_me: failed program was:" >&5
18194sed 's/^/| /' conftest.$ac_ext >&5
18195
18196 { $as_echo "$as_me:$LINENO: result: yes" >&5
18197$as_echo "yes" >&6; }
31a033ec
BB
18198
18199cat >>confdefs.h <<\_ACEOF
8934764e 18200#define NEED_GET_ZONE_COUNTS 1
31a033ec
BB
18201_ACEOF
18202
18203
8934764e
BB
18204 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
18205$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
18206 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
18207 $LINUX_OBJ/Module*.symvers 2>/dev/null
18208 rc=$?
18209 if test $rc -ne 0; then
18210 export=0
18211 for file in ; do
18212 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
18213 "$LINUX_OBJ/$file" 2>/dev/null
18214 rc=$?
18215 if test $rc -eq 0; then
18216 export=1
18217 break;
18218 fi
18219 done
18220 if test $export -eq 0; then
18221 { $as_echo "$as_me:$LINENO: result: no" >&5
18222$as_echo "no" >&6; }
18223
18224 else
18225 { $as_echo "$as_me:$LINENO: result: yes" >&5
18226$as_echo "yes" >&6; }
18227
18228cat >>confdefs.h <<\_ACEOF
18229#define HAVE_GET_ZONE_COUNTS 1
18230_ACEOF
18231
18232 fi
18233 else
18234 { $as_echo "$as_me:$LINENO: result: yes" >&5
18235$as_echo "yes" >&6; }
18236
18237cat >>confdefs.h <<\_ACEOF
18238#define HAVE_GET_ZONE_COUNTS 1
18239_ACEOF
18240
18241 fi
bf9f3bac 18242
bf9f3bac 18243
c5f70460
BB
18244
18245
bf9f3bac 18246fi
c5f70460
BB
18247
18248 rm -Rf build
18249
bf9f3bac 18250
18251
8934764e 18252
7119bf70
BB
18253 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
18254$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
18255 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
18256 $LINUX_OBJ/Module*.symvers 2>/dev/null
18257 rc=$?
18258 if test $rc -ne 0; then
18259 export=0
18260 for file in ; do
18261 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
18262 "$LINUX_OBJ/$file" 2>/dev/null
18263 rc=$?
18264 if test $rc -eq 0; then
18265 export=1
18266 break;
18267 fi
18268 done
18269 if test $export -eq 0; then
18270 { $as_echo "$as_me:$LINENO: result: no" >&5
18271$as_echo "no" >&6; }
18272
18273 else
18274 { $as_echo "$as_me:$LINENO: result: yes" >&5
18275$as_echo "yes" >&6; }
18276
18277cat >>confdefs.h <<\_ACEOF
18278#define HAVE_USER_PATH_DIR 1
18279_ACEOF
18280
18281 fi
18282 else
18283 { $as_echo "$as_me:$LINENO: result: yes" >&5
18284$as_echo "yes" >&6; }
18285
18286cat >>confdefs.h <<\_ACEOF
18287#define HAVE_USER_PATH_DIR 1
18288_ACEOF
18289
18290 fi
18291
18292
18293
8934764e
BB
18294 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
18295$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
18296 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
18297 $LINUX_OBJ/Module*.symvers 2>/dev/null
18298 rc=$?
18299 if test $rc -ne 0; then
18300 export=0
18301 for file in ; do
18302 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
18303 "$LINUX_OBJ/$file" 2>/dev/null
18304 rc=$?
18305 if test $rc -eq 0; then
18306 export=1
18307 break;
18308 fi
18309 done
18310 if test $export -eq 0; then
18311 { $as_echo "$as_me:$LINENO: result: no" >&5
18312$as_echo "no" >&6; }
18313
18314 else
18315 { $as_echo "$as_me:$LINENO: result: yes" >&5
18316$as_echo "yes" >&6; }
18317
18318cat >>confdefs.h <<\_ACEOF
18319#define HAVE_SET_FS_PWD 1
18320_ACEOF
18321
18322 fi
18323 else
18324 { $as_echo "$as_me:$LINENO: result: yes" >&5
18325$as_echo "yes" >&6; }
18326
18327cat >>confdefs.h <<\_ACEOF
18328#define HAVE_SET_FS_PWD 1
18329_ACEOF
18330
18331 fi
18332
18333
18334 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
18335$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
bf9f3bac 18336
d1ff2312 18337
dbe561d8 18338cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18339/* confdefs.h. */
d1ff2312 18340_ACEOF
6ae7fef5
BB
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
d1ff2312 18344
d1ff2312 18345
8934764e
BB
18346 #include <linux/sched.h>
18347 #include <linux/fs_struct.h>
d1ff2312 18348
6ae7fef5
BB
18349int
18350main (void)
18351{
d1ff2312 18352
8934764e 18353 set_fs_pwd(NULL, NULL);
d1ff2312 18354
6ae7fef5
BB
18355 ;
18356 return 0;
18357}
d1ff2312 18358
6ae7fef5 18359_ACEOF
d1ff2312 18360
d1ff2312 18361
6ae7fef5
BB
18362 rm -Rf build && mkdir -p build
18363 echo "obj-m := conftest.o" >build/Makefile
18364 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
8934764e 18368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18369 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
8934764e 18373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 18374 (exit $ac_status); }; }; then
d1ff2312 18375
8934764e
BB
18376 { $as_echo "$as_me:$LINENO: result: yes" >&5
18377$as_echo "yes" >&6; }
d1ff2312
BB
18378
18379cat >>confdefs.h <<\_ACEOF
8934764e 18380#define HAVE_2ARGS_SET_FS_PWD 1
d1ff2312
BB
18381_ACEOF
18382
5232d256 18383
6ae7fef5 18384else
8934764e 18385 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 18386sed 's/^/| /' conftest.$ac_ext >&5
5232d256 18387
8934764e
BB
18388 { $as_echo "$as_me:$LINENO: result: no" >&5
18389$as_echo "no" >&6; }
5232d256
BB
18390
18391
36b313da 18392
6ae7fef5
BB
18393fi
18394
18395 rm -Rf build
18396
36b313da 18397
36b313da 18398
8934764e
BB
18399 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
18400$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
18401
18402
dbe561d8 18403cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18404/* confdefs.h. */
36b313da 18405_ACEOF
6ae7fef5
BB
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
36b313da 18409
36b313da 18410
8934764e 18411 #include <linux/fs.h>
36b313da 18412
6ae7fef5
BB
18413int
18414main (void)
18415{
36b313da 18416
8934764e 18417 vfs_unlink(NULL, NULL);
36b313da 18418
6ae7fef5
BB
18419 ;
18420 return 0;
18421}
36b313da 18422
36b313da
BB
18423_ACEOF
18424
6ae7fef5
BB
18425
18426 rm -Rf build && mkdir -p build
18427 echo "obj-m := conftest.o" >build/Makefile
18428 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
8934764e 18432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18433 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
8934764e 18437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18438 (exit $ac_status); }; }; then
18439
8934764e
BB
18440 { $as_echo "$as_me:$LINENO: result: yes" >&5
18441$as_echo "yes" >&6; }
36b313da
BB
18442
18443cat >>confdefs.h <<\_ACEOF
8934764e 18444#define HAVE_2ARGS_VFS_UNLINK 1
36b313da
BB
18445_ACEOF
18446
36b313da 18447
6ae7fef5 18448else
8934764e 18449 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 18450sed 's/^/| /' conftest.$ac_ext >&5
36b313da 18451
8934764e
BB
18452 { $as_echo "$as_me:$LINENO: result: no" >&5
18453$as_echo "no" >&6; }
36b313da 18454
36b313da 18455
36b313da 18456
6ae7fef5 18457fi
36b313da 18458
6ae7fef5
BB
18459 rm -Rf build
18460
18461
18462
8934764e
BB
18463 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
18464$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
18465
18466
dbe561d8 18467cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18468/* confdefs.h. */
36b313da 18469_ACEOF
6ae7fef5
BB
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
36b313da 18473
36b313da 18474
8934764e 18475 #include <linux/fs.h>
36b313da 18476
6ae7fef5
BB
18477int
18478main (void)
18479{
36b313da 18480
8934764e 18481 vfs_rename(NULL, NULL, NULL, NULL);
5232d256 18482
6ae7fef5
BB
18483 ;
18484 return 0;
18485}
5232d256 18486
5232d256
BB
18487_ACEOF
18488
6ae7fef5
BB
18489
18490 rm -Rf build && mkdir -p build
18491 echo "obj-m := conftest.o" >build/Makefile
18492 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
8934764e 18496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18497 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
8934764e 18501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18502 (exit $ac_status); }; }; then
18503
8934764e
BB
18504 { $as_echo "$as_me:$LINENO: result: yes" >&5
18505$as_echo "yes" >&6; }
5232d256
BB
18506
18507cat >>confdefs.h <<\_ACEOF
8934764e 18508#define HAVE_4ARGS_VFS_RENAME 1
5232d256
BB
18509_ACEOF
18510
5232d256 18511
6ae7fef5 18512else
8934764e 18513 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 18514sed 's/^/| /' conftest.$ac_ext >&5
5232d256 18515
8934764e
BB
18516 { $as_echo "$as_me:$LINENO: result: no" >&5
18517$as_echo "no" >&6; }
4ab13d3b 18518
4ab13d3b 18519
4ab13d3b 18520
6ae7fef5 18521fi
4ab13d3b 18522
6ae7fef5 18523 rm -Rf build
96dded38
BB
18524
18525
18526
8934764e
BB
18527
18528 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
18529$as_echo_n "checking whether struct cred exists... " >&6; }
96dded38
BB
18530
18531
dbe561d8 18532cat confdefs.h - <<_ACEOF >conftest.c
96dded38
BB
18533/* confdefs.h. */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
18537/* end confdefs.h. */
18538
18539
8934764e 18540 #include <linux/cred.h>
96dded38
BB
18541
18542int
18543main (void)
18544{
18545
8934764e
BB
18546 struct cred *cr;
18547 cr = NULL;
96dded38
BB
18548
18549 ;
18550 return 0;
18551}
18552
18553_ACEOF
18554
18555
18556 rm -Rf build && mkdir -p build
18557 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18558 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
96dded38
BB
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
8934764e 18562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
18563 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18566 ac_status=$?
8934764e 18567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
18568 (exit $ac_status); }; }; then
18569
8934764e
BB
18570 { $as_echo "$as_me:$LINENO: result: yes" >&5
18571$as_echo "yes" >&6; }
96dded38
BB
18572
18573cat >>confdefs.h <<\_ACEOF
8934764e 18574#define HAVE_CRED_STRUCT 1
96dded38
BB
18575_ACEOF
18576
18577
18578else
8934764e 18579 $as_echo "$as_me: failed program was:" >&5
96dded38
BB
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
8934764e
BB
18582 { $as_echo "$as_me:$LINENO: result: no" >&5
18583$as_echo "no" >&6; }
96dded38
BB
18584
18585
18586
18587fi
18588
18589 rm -Rf build
18590
4ab13d3b
BB
18591
18592
18593
8934764e
BB
18594 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
18595$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
18596 grep -q -E '[[:space:]]groups_search[[:space:]]' \
18597 $LINUX_OBJ/Module*.symvers 2>/dev/null
18598 rc=$?
18599 if test $rc -ne 0; then
18600 export=0
18601 for file in ; do
18602 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
18603 "$LINUX_OBJ/$file" 2>/dev/null
18604 rc=$?
18605 if test $rc -eq 0; then
18606 export=1
18607 break;
18608 fi
18609 done
18610 if test $export -eq 0; then
18611 { $as_echo "$as_me:$LINENO: result: no" >&5
18612$as_echo "no" >&6; }
18613
18614 else
18615 { $as_echo "$as_me:$LINENO: result: yes" >&5
18616$as_echo "yes" >&6; }
18617
18618cat >>confdefs.h <<\_ACEOF
18619#define HAVE_GROUPS_SEARCH 1
18620_ACEOF
18621
18622 fi
18623 else
18624 { $as_echo "$as_me:$LINENO: result: yes" >&5
18625$as_echo "yes" >&6; }
18626
18627cat >>confdefs.h <<\_ACEOF
18628#define HAVE_GROUPS_SEARCH 1
18629_ACEOF
18630
18631 fi
18632
18633
18634
18635 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
18636$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
18637 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
18638 $LINUX_OBJ/Module*.symvers 2>/dev/null
18639 rc=$?
18640 if test $rc -ne 0; then
18641 export=0
18642 for file in ; do
18643 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
18644 "$LINUX_OBJ/$file" 2>/dev/null
18645 rc=$?
18646 if test $rc -eq 0; then
18647 export=1
18648 break;
18649 fi
18650 done
18651 if test $export -eq 0; then
18652 { $as_echo "$as_me:$LINENO: result: no" >&5
18653$as_echo "no" >&6; }
18654
18655 else
18656 { $as_echo "$as_me:$LINENO: result: yes" >&5
18657$as_echo "yes" >&6; }
18658
18659cat >>confdefs.h <<\_ACEOF
18660#define HAVE_PUT_TASK_STRUCT 1
18661_ACEOF
18662
18663 fi
18664 else
18665 { $as_echo "$as_me:$LINENO: result: yes" >&5
18666$as_echo "yes" >&6; }
18667
18668cat >>confdefs.h <<\_ACEOF
18669#define HAVE_PUT_TASK_STRUCT 1
18670_ACEOF
18671
18672 fi
18673
18674
18675
18676 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
18677$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
e11d6c5f
BB
18678
18679
dbe561d8 18680cat confdefs.h - <<_ACEOF >conftest.c
e11d6c5f
BB
18681/* confdefs.h. */
18682_ACEOF
18683cat confdefs.h >>conftest.$ac_ext
18684cat >>conftest.$ac_ext <<_ACEOF
18685/* end confdefs.h. */
18686
18687
8934764e 18688 #include <linux/sysctl.h>
e11d6c5f 18689
8934764e
BB
18690int
18691main (void)
18692{
18693
18694 proc_dostring(NULL, 0, NULL, NULL, NULL);
e11d6c5f
BB
18695
18696 ;
18697 return 0;
18698}
18699
18700_ACEOF
18701
18702
18703 rm -Rf build && mkdir -p build
18704 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18705 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
e11d6c5f
BB
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
8934764e 18709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
18710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
8934764e 18714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
18715 (exit $ac_status); }; }; then
18716
8934764e
BB
18717 { $as_echo "$as_me:$LINENO: result: yes" >&5
18718$as_echo "yes" >&6; }
18719
18720cat >>confdefs.h <<\_ACEOF
18721#define HAVE_5ARGS_PROC_HANDLER 1
18722_ACEOF
18723
6ae7fef5
BB
18724
18725else
8934764e 18726 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
18727sed 's/^/| /' conftest.$ac_ext >&5
18728
8934764e
BB
18729 { $as_echo "$as_me:$LINENO: result: no" >&5
18730$as_echo "no" >&6; }
e11d6c5f 18731
e11d6c5f
BB
18732
18733
8934764e 18734fi
e11d6c5f 18735
8934764e
BB
18736 rm -Rf build
18737
18738
18739
18740
b868e22f
BB
18741 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
18742$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
18743 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
18744 $LINUX_OBJ/Module*.symvers 2>/dev/null
18745 rc=$?
18746 if test $rc -ne 0; then
18747 export=0
18748 for file in ; do
18749 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
18750 "$LINUX_OBJ/$file" 2>/dev/null
18751 rc=$?
18752 if test $rc -eq 0; then
18753 export=1
18754 break;
18755 fi
18756 done
18757 if test $export -eq 0; then
18758 { $as_echo "$as_me:$LINENO: result: no" >&5
18759$as_echo "no" >&6; }
18760
18761 else
18762 { $as_echo "$as_me:$LINENO: result: yes" >&5
18763$as_echo "yes" >&6; }
18764
18765cat >>confdefs.h <<\_ACEOF
18766#define HAVE_KVASPRINTF 1
18767_ACEOF
18768
18769 fi
18770 else
18771 { $as_echo "$as_me:$LINENO: result: yes" >&5
18772$as_echo "yes" >&6; }
18773
18774cat >>confdefs.h <<\_ACEOF
18775#define HAVE_KVASPRINTF 1
18776_ACEOF
18777
18778 fi
18779
18780
18781
f0ff89fc
BB
18782 { $as_echo "$as_me:$LINENO: checking whether file_fsync() wants 3 args" >&5
18783$as_echo_n "checking whether file_fsync() wants 3 args... " >&6; }
18784
18785
18786cat confdefs.h - <<_ACEOF >conftest.c
18787/* confdefs.h. */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h. */
18792
18793
18794 #include <linux/buffer_head.h>
18795
18796int
18797main (void)
18798{
18799
18800 file_fsync(NULL, NULL, 0);
18801
18802 ;
18803 return 0;
18804}
18805
18806_ACEOF
18807
18808
18809 rm -Rf build && mkdir -p build
18810 echo "obj-m := conftest.o" >build/Makefile
18811 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; }; then
18822
18823 { $as_echo "$as_me:$LINENO: result: yes" >&5
18824$as_echo "yes" >&6; }
18825
18826cat >>confdefs.h <<\_ACEOF
18827#define HAVE_3ARGS_FILE_FSYNC 1
18828_ACEOF
18829
18830
18831else
18832 $as_echo "$as_me: failed program was:" >&5
18833sed 's/^/| /' conftest.$ac_ext >&5
18834
18835 { $as_echo "$as_me:$LINENO: result: no" >&5
18836$as_echo "no" >&6; }
18837
18838
18839
18840fi
18841
18842 rm -Rf build
18843
18844
18845
18846
46aa7b39
NB
18847 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
18848$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
18849 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
18850 $LINUX_OBJ/Module*.symvers 2>/dev/null
18851 rc=$?
18852 if test $rc -ne 0; then
18853 export=0
18854 for file in lib/rwsem-spinlock.c; do
18855 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
18856 "$LINUX_OBJ/$file" 2>/dev/null
18857 rc=$?
18858 if test $rc -eq 0; then
18859 export=1
18860 break;
18861 fi
18862 done
18863 if test $export -eq 0; then
18864 { $as_echo "$as_me:$LINENO: result: no" >&5
18865$as_echo "no" >&6; }
18866
18867 else
18868 { $as_echo "$as_me:$LINENO: result: yes" >&5
18869$as_echo "yes" >&6; }
18870
18871cat >>confdefs.h <<\_ACEOF
18872#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
18873_ACEOF
18874
18875 fi
18876 else
18877 { $as_echo "$as_me:$LINENO: result: yes" >&5
18878$as_echo "yes" >&6; }
18879
18880cat >>confdefs.h <<\_ACEOF
18881#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
18882_ACEOF
18883
18884 fi
18885
18886
18887
18142514 18888
287b2fb1
BB
18889
18890 if test "x$AWK" != xgawk; then
18142514
BB
18891
18892 { { $as_echo "$as_me:$LINENO: error:
18893 *** Required util gawk missing. Please install the required
18894 *** gawk package for your distribution and try again." >&5
18895$as_echo "$as_me: error:
18896 *** Required util gawk missing. Please install the required
18897 *** gawk package for your distribution and try again." >&2;}
18898 { (exit 1); exit 1; }; }
18899
18900fi
18901
287b2fb1 18902
18142514 18903 ;;
8934764e
BB
18904 srpm) ;;
18905 *)
18906 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18907$as_echo "Error!" >&6; }
18908 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18909 user kernel|user|all|srpm" >&5
18910$as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18911 user kernel|user|all|srpm" >&2;}
18912 { (exit 1); exit 1; }; } ;;
18913 esac
18914
18915 if test "$SPL_CONFIG" = user ||
18916 test "$SPL_CONFIG" = all; then
18917 CONFIG_USER_TRUE=
18918 CONFIG_USER_FALSE='#'
18919else
18920 CONFIG_USER_TRUE='#'
18921 CONFIG_USER_FALSE=
18922fi
18923
18924 if test "$SPL_CONFIG" = kernel ||
18925 test "$SPL_CONFIG" = all; then
18926 CONFIG_KERNEL_TRUE=
18927 CONFIG_KERNEL_FALSE='#'
18928else
18929 CONFIG_KERNEL_TRUE='#'
18930 CONFIG_KERNEL_FALSE=
18931fi
18932
18933
18934
18935ac_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"
18936
18937
18938cat >confcache <<\_ACEOF
18939# This file is a shell script that caches the results of configure
18940# tests run on this system so they can be shared between configure
18941# scripts and configure runs, see configure's option --config-cache.
18942# It is not useful on other systems. If it contains results you don't
18943# want to keep, you may remove or edit it.
18944#
18945# config.status only pays attention to the cache file if you give it
18946# the --recheck option to rerun configure.
18947#
18948# `ac_cv_env_foo' variables (set or unset) will be overridden when
18949# loading this file, other *unset* `ac_cv_foo' will be assigned the
18950# following values.
6ae7fef5 18951
6ae7fef5
BB
18952_ACEOF
18953
8934764e
BB
18954# The following way of writing the cache mishandles newlines in values,
18955# but we know of no workaround that is simple, portable, and efficient.
18956# So, we kill variables containing newlines.
18957# Ultrix sh set writes to stderr and can't be redirected directly,
18958# and sets the high bit in the cache file unless we assign to the vars.
18959(
18960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18961 eval ac_val=\$$ac_var
18962 case $ac_val in #(
18963 *${as_nl}*)
18964 case $ac_var in #(
18965 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18966$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18967 esac
18968 case $ac_var in #(
18969 _ | IFS | as_nl) ;; #(
18970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18971 *) $as_unset $ac_var ;;
18972 esac ;;
18973 esac
18974 done
6ae7fef5 18975
8934764e
BB
18976 (set) 2>&1 |
18977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18978 *${as_nl}ac_space=\ *)
18979 # `set' does not quote correctly, so add quotes (double-quote
18980 # substitution turns \\\\ into \\, and sed turns \\ into \).
18981 sed -n \
18982 "s/'/'\\\\''/g;
18983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18984 ;; #(
18985 *)
18986 # `set' quotes correctly as required by POSIX, so do not add quotes.
18987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18988 ;;
18989 esac |
18990 sort
18991) |
18992 sed '
18993 /^ac_cv_env_/b end
18994 t clear
18995 :clear
18996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18997 t end
18998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18999 :end' >>confcache
19000if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19001 if test -w "$cache_file"; then
19002 test "x$cache_file" != "x/dev/null" &&
19003 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19004$as_echo "$as_me: updating cache $cache_file" >&6;}
19005 cat confcache >$cache_file
19006 else
19007 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19008$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19009 fi
19010fi
19011rm -f confcache
19012
19013test "x$prefix" = xNONE && prefix=$ac_default_prefix
19014# Let make expand exec_prefix.
19015test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19016
19017DEFS=-DHAVE_CONFIG_H
19018
19019ac_libobjs=
19020ac_ltlibobjs=
19021for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19022 # 1. Remove the extension, and $U if already installed.
19023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19024 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19026 # will be set to the directory where LIBOBJS objects are built.
19027 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19028 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19029done
19030LIBOBJS=$ac_libobjs
19031
19032LTLIBOBJS=$ac_ltlibobjs
19033
19034
19035if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19036 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19037Usually this means the macro was only invoked conditionally." >&5
19038$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19039Usually this means the macro was only invoked conditionally." >&2;}
19040 { (exit 1); exit 1; }; }
19041fi
19042 if test -n "$EXEEXT"; then
19043 am__EXEEXT_TRUE=
19044 am__EXEEXT_FALSE='#'
19045else
19046 am__EXEEXT_TRUE='#'
19047 am__EXEEXT_FALSE=
19048fi
19049
19050if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19051 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19052Usually this means the macro was only invoked conditionally." >&5
19053$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
19054Usually this means the macro was only invoked conditionally." >&2;}
19055 { (exit 1); exit 1; }; }
19056fi
19057if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19058 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19059Usually this means the macro was only invoked conditionally." >&5
19060$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19061Usually this means the macro was only invoked conditionally." >&2;}
19062 { (exit 1); exit 1; }; }
19063fi
19064if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
19065 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
19066Usually this means the macro was only invoked conditionally." >&5
19067$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
19068Usually this means the macro was only invoked conditionally." >&2;}
19069 { (exit 1); exit 1; }; }
19070fi
19071if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
19072 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
19073Usually this means the macro was only invoked conditionally." >&5
19074$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
19075Usually this means the macro was only invoked conditionally." >&2;}
19076 { (exit 1); exit 1; }; }
19077fi
19078
19079: ${CONFIG_STATUS=./config.status}
19080ac_write_fail=0
19081ac_clean_files_save=$ac_clean_files
19082ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19083{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19084$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19085cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19086#! $SHELL
19087# Generated by $as_me.
19088# Run this file to recreate the current configuration.
19089# Compiler output produced by configure, useful for debugging
19090# configure, is in config.log if it exists.
19091
19092debug=false
19093ac_cs_recheck=false
19094ac_cs_silent=false
19095SHELL=\${CONFIG_SHELL-$SHELL}
6ae7fef5
BB
19096_ACEOF
19097
8934764e
BB
19098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19099## --------------------- ##
19100## M4sh Initialization. ##
19101## --------------------- ##
19102
19103# Be more Bourne compatible
19104DUALCASE=1; export DUALCASE # for MKS sh
19105if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19106 emulate sh
19107 NULLCMD=:
19108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19109 # is contrary to our usage. Disable this feature.
19110 alias -g '${1+"$@"}'='"$@"'
19111 setopt NO_GLOB_SUBST
19112else
19113 case `(set -o) 2>/dev/null` in
19114 *posix*) set -o posix ;;
19115esac
19116
19117fi
19118
6ae7fef5
BB
19119
19120
e11d6c5f 19121
8934764e
BB
19122# PATH needs CR
19123# Avoid depending upon Character Ranges.
19124as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19125as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19126as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19127as_cr_digits='0123456789'
19128as_cr_alnum=$as_cr_Letters$as_cr_digits
e11d6c5f 19129
8934764e
BB
19130as_nl='
19131'
19132export as_nl
19133# Printing a long string crashes Solaris 7 /usr/bin/printf.
19134as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19137if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19138 as_echo='printf %s\n'
19139 as_echo_n='printf %s'
19140else
19141 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19142 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19143 as_echo_n='/usr/ucb/echo -n'
19144 else
19145 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19146 as_echo_n_body='eval
19147 arg=$1;
19148 case $arg in
19149 *"$as_nl"*)
19150 expr "X$arg" : "X\\(.*\\)$as_nl";
19151 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19152 esac;
19153 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19154 '
19155 export as_echo_n_body
19156 as_echo_n='sh -c $as_echo_n_body as_echo'
19157 fi
19158 export as_echo_body
19159 as_echo='sh -c $as_echo_body as_echo'
51a727e9
BB
19160fi
19161
8934764e
BB
19162# The user is always right.
19163if test "${PATH_SEPARATOR+set}" != set; then
19164 PATH_SEPARATOR=:
19165 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19166 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19167 PATH_SEPARATOR=';'
19168 }
19169fi
51a727e9 19170
8934764e
BB
19171# Support unset when possible.
19172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19173 as_unset=unset
19174else
19175 as_unset=false
19176fi
51a727e9
BB
19177
19178
8934764e
BB
19179# IFS
19180# We need space, tab and new line, in precisely that order. Quoting is
19181# there to prevent editors from complaining about space-tab.
19182# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19183# splitting by setting IFS to empty value.)
19184IFS=" "" $as_nl"
19185
19186# Find who we are. Look in the path if we contain no directory separator.
19187case $0 in
19188 *[\\/]* ) as_myself=$0 ;;
19189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190for as_dir in $PATH
19191do
19192 IFS=$as_save_IFS
19193 test -z "$as_dir" && as_dir=.
19194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19195done
19196IFS=$as_save_IFS
51a727e9 19197
8934764e
BB
19198 ;;
19199esac
19200# We did not find ourselves, most probably we were run as `sh COMMAND'
19201# in which case we are not to be found in the path.
19202if test "x$as_myself" = x; then
19203 as_myself=$0
19204fi
19205if test ! -f "$as_myself"; then
19206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19207 { (exit 1); exit 1; }
19208fi
51a727e9 19209
8934764e
BB
19210# Work around bugs in pre-3.0 UWIN ksh.
19211for as_var in ENV MAIL MAILPATH
19212do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19213done
19214PS1='$ '
19215PS2='> '
19216PS4='+ '
51a727e9 19217
8934764e
BB
19218# NLS nuisances.
19219LC_ALL=C
19220export LC_ALL
19221LANGUAGE=C
19222export LANGUAGE
51a727e9 19223
8934764e
BB
19224# Required to use basename.
19225if expr a : '\(a\)' >/dev/null 2>&1 &&
19226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19227 as_expr=expr
19228else
19229 as_expr=false
19230fi
51a727e9 19231
8934764e
BB
19232if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19233 as_basename=basename
19234else
19235 as_basename=false
19236fi
51a727e9 19237
51a727e9 19238
8934764e
BB
19239# Name of the executable.
19240as_me=`$as_basename -- "$0" ||
19241$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19242 X"$0" : 'X\(//\)$' \| \
19243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19244$as_echo X/"$0" |
19245 sed '/^.*\/\([^/][^/]*\)\/*$/{
19246 s//\1/
19247 q
19248 }
19249 /^X\/\(\/\/\)$/{
19250 s//\1/
19251 q
19252 }
19253 /^X\/\(\/\).*/{
19254 s//\1/
19255 q
19256 }
19257 s/.*/./; q'`
51a727e9 19258
8934764e
BB
19259# CDPATH.
19260$as_unset CDPATH
51a727e9
BB
19261
19262
51a727e9 19263
8934764e
BB
19264 as_lineno_1=$LINENO
19265 as_lineno_2=$LINENO
19266 test "x$as_lineno_1" != "x$as_lineno_2" &&
19267 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51a727e9 19268
8934764e
BB
19269 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19270 # uniformly replaced by the line number. The first 'sed' inserts a
19271 # line-number line after each line using $LINENO; the second 'sed'
19272 # does the real work. The second script uses 'N' to pair each
19273 # line-number line with the line containing $LINENO, and appends
19274 # trailing '-' during substitution so that $LINENO is not a special
19275 # case at line end.
19276 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19277 # scripts with optimization help from Paolo Bonzini. Blame Lee
19278 # E. McMahon (1931-1989) for sed's syntax. :-)
19279 sed -n '
19280 p
19281 /[$]LINENO/=
19282 ' <$as_myself |
19283 sed '
19284 s/[$]LINENO.*/&-/
19285 t lineno
19286 b
19287 :lineno
19288 N
19289 :loop
19290 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19291 t loop
19292 s/-\n.*//
19293 ' >$as_me.lineno &&
19294 chmod +x "$as_me.lineno" ||
19295 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19296 { (exit 1); exit 1; }; }
51a727e9 19297
8934764e
BB
19298 # Don't try to exec as it changes $[0], causing all sort of problems
19299 # (the dirname of $[0] is not the place where we might find the
19300 # original and so on. Autoconf is especially sensitive to this).
19301 . "./$as_me.lineno"
19302 # Exit status is that of the last command.
19303 exit
19304}
51a727e9 19305
51a727e9 19306
8934764e
BB
19307if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19308 as_dirname=dirname
19309else
19310 as_dirname=false
19311fi
51a727e9 19312
8934764e
BB
19313ECHO_C= ECHO_N= ECHO_T=
19314case `echo -n x` in
19315-n*)
19316 case `echo 'x\c'` in
19317 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19318 *) ECHO_C='\c';;
19319 esac;;
19320*)
19321 ECHO_N='-n';;
19322esac
19323if expr a : '\(a\)' >/dev/null 2>&1 &&
19324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19325 as_expr=expr
19326else
19327 as_expr=false
19328fi
51a727e9 19329
8934764e
BB
19330rm -f conf$$ conf$$.exe conf$$.file
19331if test -d conf$$.dir; then
19332 rm -f conf$$.dir/conf$$.file
19333else
19334 rm -f conf$$.dir
19335 mkdir conf$$.dir 2>/dev/null
19336fi
19337if (echo >conf$$.file) 2>/dev/null; then
19338 if ln -s conf$$.file conf$$ 2>/dev/null; then
19339 as_ln_s='ln -s'
19340 # ... but there are two gotchas:
19341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19343 # In both cases, we have to default to `cp -p'.
19344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19345 as_ln_s='cp -p'
19346 elif ln conf$$.file conf$$ 2>/dev/null; then
19347 as_ln_s=ln
19348 else
19349 as_ln_s='cp -p'
19350 fi
19351else
19352 as_ln_s='cp -p'
19353fi
19354rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19355rmdir conf$$.dir 2>/dev/null
51a727e9 19356
8934764e
BB
19357if mkdir -p . 2>/dev/null; then
19358 as_mkdir_p=:
19359else
19360 test -d ./-p && rmdir ./-p
19361 as_mkdir_p=false
19362fi
51a727e9 19363
8934764e
BB
19364if test -x / >/dev/null 2>&1; then
19365 as_test_x='test -x'
19366else
19367 if ls -dL / >/dev/null 2>&1; then
19368 as_ls_L_option=L
19369 else
19370 as_ls_L_option=
19371 fi
19372 as_test_x='
19373 eval sh -c '\''
19374 if test -d "$1"; then
19375 test -d "$1/.";
19376 else
19377 case $1 in
19378 -*)set "./$1";;
19379 esac;
19380 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19381 ???[sx]*):;;*)false;;esac;fi
19382 '\'' sh
19383 '
19384fi
19385as_executable_p=$as_test_x
51a727e9 19386
8934764e
BB
19387# Sed expression to map a string onto a valid CPP name.
19388as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 19389
8934764e
BB
19390# Sed expression to map a string onto a valid variable name.
19391as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 19392
51a727e9 19393
8934764e 19394exec 6>&1
51a727e9 19395
8934764e
BB
19396# Save the log message, to keep $[0] and so on meaningful, and to
19397# report actual input values of CONFIG_FILES etc. instead of their
19398# values after options handling.
19399ac_log="
19400This file was extended by $as_me, which was
19401generated by GNU Autoconf 2.63. Invocation command line was
51a727e9 19402
8934764e
BB
19403 CONFIG_FILES = $CONFIG_FILES
19404 CONFIG_HEADERS = $CONFIG_HEADERS
19405 CONFIG_LINKS = $CONFIG_LINKS
19406 CONFIG_COMMANDS = $CONFIG_COMMANDS
19407 $ $0 $@
51a727e9 19408
8934764e
BB
19409on `(hostname || uname -n) 2>/dev/null | sed 1q`
19410"
a093c6a4 19411
8934764e 19412_ACEOF
a093c6a4 19413
8934764e
BB
19414case $ac_config_files in *"
19415"*) set x $ac_config_files; shift; ac_config_files=$*;;
19416esac
a093c6a4 19417
8934764e
BB
19418case $ac_config_headers in *"
19419"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19420esac
a093c6a4 19421
a093c6a4 19422
8934764e
BB
19423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19424# Files that config.status was made for.
19425config_files="$ac_config_files"
19426config_headers="$ac_config_headers"
19427config_commands="$ac_config_commands"
a093c6a4 19428
a093c6a4 19429_ACEOF
a093c6a4 19430
8934764e
BB
19431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19432ac_cs_usage="\
19433\`$as_me' instantiates files from templates according to the
19434current configuration.
a093c6a4 19435
8934764e 19436Usage: $0 [OPTION]... [FILE]...
a093c6a4 19437
8934764e
BB
19438 -h, --help print this help, then exit
19439 -V, --version print version number and configuration settings, then exit
19440 -q, --quiet, --silent
19441 do not print progress messages
19442 -d, --debug don't remove temporary files
19443 --recheck update $as_me by reconfiguring in the same conditions
19444 --file=FILE[:TEMPLATE]
19445 instantiate the configuration file FILE
19446 --header=FILE[:TEMPLATE]
19447 instantiate the configuration header FILE
a093c6a4 19448
8934764e
BB
19449Configuration files:
19450$config_files
a093c6a4 19451
8934764e
BB
19452Configuration headers:
19453$config_headers
a093c6a4 19454
8934764e
BB
19455Configuration commands:
19456$config_commands
a093c6a4 19457
8934764e 19458Report bugs to <bug-autoconf@gnu.org>."
a093c6a4 19459
8934764e
BB
19460_ACEOF
19461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19462ac_cs_version="\\
19463config.status
19464configured by $0, generated by GNU Autoconf 2.63,
19465 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
a093c6a4 19466
8934764e
BB
19467Copyright (C) 2008 Free Software Foundation, Inc.
19468This config.status script is free software; the Free Software Foundation
19469gives unlimited permission to copy, distribute and modify it."
a093c6a4 19470
8934764e
BB
19471ac_pwd='$ac_pwd'
19472srcdir='$srcdir'
19473INSTALL='$INSTALL'
19474MKDIR_P='$MKDIR_P'
19475AWK='$AWK'
19476test -n "\$AWK" || AWK=awk
a093c6a4
BB
19477_ACEOF
19478
8934764e
BB
19479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19480# The default lists apply if the user does not specify any file.
19481ac_need_defaults=:
19482while test $# != 0
19483do
19484 case $1 in
19485 --*=*)
19486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19488 ac_shift=:
19489 ;;
19490 *)
19491 ac_option=$1
19492 ac_optarg=$2
19493 ac_shift=shift
19494 ;;
19495 esac
a093c6a4 19496
8934764e
BB
19497 case $ac_option in
19498 # Handling of the options.
19499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19500 ac_cs_recheck=: ;;
19501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19502 $as_echo "$ac_cs_version"; exit ;;
19503 --debug | --debu | --deb | --de | --d | -d )
19504 debug=: ;;
19505 --file | --fil | --fi | --f )
19506 $ac_shift
19507 case $ac_optarg in
19508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19509 esac
19510 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19511 ac_need_defaults=false;;
19512 --header | --heade | --head | --hea )
19513 $ac_shift
19514 case $ac_optarg in
19515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19516 esac
19517 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19518 ac_need_defaults=false;;
19519 --he | --h)
19520 # Conflict between --help and --header
19521 { $as_echo "$as_me: error: ambiguous option: $1
19522Try \`$0 --help' for more information." >&2
19523 { (exit 1); exit 1; }; };;
19524 --help | --hel | -h )
19525 $as_echo "$ac_cs_usage"; exit ;;
19526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19528 ac_cs_silent=: ;;
19529
19530 # This is an error.
19531 -*) { $as_echo "$as_me: error: unrecognized option: $1
19532Try \`$0 --help' for more information." >&2
19533 { (exit 1); exit 1; }; } ;;
a093c6a4 19534
8934764e
BB
19535 *) ac_config_targets="$ac_config_targets $1"
19536 ac_need_defaults=false ;;
a093c6a4 19537
8934764e
BB
19538 esac
19539 shift
19540done
a093c6a4 19541
8934764e 19542ac_configure_extra_args=
a093c6a4 19543
8934764e
BB
19544if $ac_cs_silent; then
19545 exec 6>/dev/null
19546 ac_configure_extra_args="$ac_configure_extra_args --silent"
a093c6a4
BB
19547fi
19548
8934764e
BB
19549_ACEOF
19550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19551if \$ac_cs_recheck; then
19552 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19553 shift
19554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19555 CONFIG_SHELL='$SHELL'
19556 export CONFIG_SHELL
19557 exec "\$@"
19558fi
a093c6a4 19559
8934764e
BB
19560_ACEOF
19561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562exec 5>>config.log
19563{
19564 echo
19565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19566## Running $as_me. ##
19567_ASBOX
19568 $as_echo "$ac_log"
19569} >&5
a093c6a4 19570
8934764e
BB
19571_ACEOF
19572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19573#
19574# INIT-COMMANDS
19575#
19576AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a093c6a4 19577
a093c6a4 19578
8934764e
BB
19579# The HP-UX ksh and POSIX shell print the target directory to stdout
19580# if CDPATH is set.
19581(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a093c6a4 19582
8934764e
BB
19583sed_quote_subst='$sed_quote_subst'
19584double_quote_subst='$double_quote_subst'
19585delay_variable_subst='$delay_variable_subst'
19586macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19587macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19588enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19589enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19590pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19591enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19592host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19593host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19594host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19595build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19596build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19597build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19598SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19599Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19600GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19601EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19602FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19603LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19604NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19605LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19606max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19607ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19608exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19609lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19610lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19611lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19612reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19613reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19614OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19615deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19616file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19617AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19618AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19619STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19620RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19621old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19622old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19623old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19624CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19625CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19626compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19627GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19628lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19629lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19630lt_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"`'
19631lt_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"`'
19632objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19633SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19634ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19635MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19636lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19637lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19638lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19639lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19640lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19641need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19642DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19643NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19644LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19645OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19646OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19647libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19648shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19649extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19650archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19651enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19652export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19653whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19654compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19655old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19656old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19657archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19658archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19659module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19660module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19661with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19662allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19663no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19664hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19665hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19666hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19667hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19668hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19669hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19670hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19671hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19672inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19673link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19674fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19675always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19676export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19677exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19678include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19679prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19680file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19681variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19682need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19683need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19684version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19685runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19686shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19687shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19688libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19689library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19690soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19691postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19692postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19693finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19694finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19695hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19696sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19697sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19698hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19699enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19700enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19701enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19702old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19703striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19704
19705LTCC='$LTCC'
19706LTCFLAGS='$LTCFLAGS'
19707compiler='$compiler_DEFAULT'
19708
19709# Quote evaled strings.
19710for var in SED \
19711GREP \
19712EGREP \
19713FGREP \
19714LD \
19715NM \
19716LN_S \
19717lt_SP2NL \
19718lt_NL2SP \
19719reload_flag \
19720OBJDUMP \
19721deplibs_check_method \
19722file_magic_cmd \
19723AR \
19724AR_FLAGS \
19725STRIP \
19726RANLIB \
19727CC \
19728CFLAGS \
19729compiler \
19730lt_cv_sys_global_symbol_pipe \
19731lt_cv_sys_global_symbol_to_cdecl \
19732lt_cv_sys_global_symbol_to_c_name_address \
19733lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19734SHELL \
19735ECHO \
19736lt_prog_compiler_no_builtin_flag \
19737lt_prog_compiler_wl \
19738lt_prog_compiler_pic \
19739lt_prog_compiler_static \
19740lt_cv_prog_compiler_c_o \
19741need_locks \
19742DSYMUTIL \
19743NMEDIT \
19744LIPO \
19745OTOOL \
19746OTOOL64 \
19747shrext_cmds \
19748export_dynamic_flag_spec \
19749whole_archive_flag_spec \
19750compiler_needs_object \
19751with_gnu_ld \
19752allow_undefined_flag \
19753no_undefined_flag \
19754hardcode_libdir_flag_spec \
19755hardcode_libdir_flag_spec_ld \
19756hardcode_libdir_separator \
19757fix_srcfile_path \
19758exclude_expsyms \
19759include_expsyms \
19760file_list_spec \
19761variables_saved_for_relink \
19762libname_spec \
19763library_names_spec \
19764soname_spec \
19765finish_eval \
19766old_striplib \
19767striplib; do
19768 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19769 *[\\\\\\\`\\"\\\$]*)
19770 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19771 ;;
19772 *)
19773 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19774 ;;
19775 esac
19776done
a093c6a4 19777
8934764e
BB
19778# Double-quote double-evaled strings.
19779for var in reload_cmds \
19780old_postinstall_cmds \
19781old_postuninstall_cmds \
19782old_archive_cmds \
19783extract_expsyms_cmds \
19784old_archive_from_new_cmds \
19785old_archive_from_expsyms_cmds \
19786archive_cmds \
19787archive_expsym_cmds \
19788module_cmds \
19789module_expsym_cmds \
19790export_symbols_cmds \
19791prelink_cmds \
19792postinstall_cmds \
19793postuninstall_cmds \
19794finish_cmds \
19795sys_lib_search_path_spec \
19796sys_lib_dlsearch_path_spec; do
19797 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19798 *[\\\\\\\`\\"\\\$]*)
19799 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19800 ;;
19801 *)
19802 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19803 ;;
19804 esac
19805done
a093c6a4 19806
8934764e
BB
19807# Fix-up fallback echo if it was mangled by the above quoting rules.
19808case \$lt_ECHO in
19809*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19810 ;;
19811esac
a093c6a4 19812
8934764e
BB
19813ac_aux_dir='$ac_aux_dir'
19814xsi_shell='$xsi_shell'
19815lt_shell_append='$lt_shell_append'
a093c6a4 19816
8934764e
BB
19817# See if we are running on zsh, and set the options which allow our
19818# commands through without removal of \ escapes INIT.
19819if test -n "\${ZSH_VERSION+set}" ; then
19820 setopt NO_GLOB_SUBST
19821fi
a093c6a4 19822
a093c6a4 19823
8934764e
BB
19824 PACKAGE='$PACKAGE'
19825 VERSION='$VERSION'
19826 TIMESTAMP='$TIMESTAMP'
19827 RM='$RM'
19828 ofile='$ofile'
a093c6a4
BB
19829
19830
a093c6a4 19831
a093c6a4 19832
a093c6a4
BB
19833_ACEOF
19834
8934764e 19835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a093c6a4 19836
8934764e
BB
19837# Handling of arguments.
19838for ac_config_target in $ac_config_targets
19839do
19840 case $ac_config_target in
19841 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19842 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19843 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19844 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19845 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19846 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19847 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19848 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19849 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19850 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19851 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19852 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
19853 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
19854
19855 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19856$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19857 { (exit 1); exit 1; }; };;
19858 esac
19859done
a093c6a4
BB
19860
19861
8934764e
BB
19862# If the user did not use the arguments to specify the items to instantiate,
19863# then the envvar interface is used. Set only those that are not.
19864# We use the long form for the default assignment because of an extremely
19865# bizarre bug on SunOS 4.1.3.
19866if $ac_need_defaults; then
19867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
e11d6c5f
BB
19870fi
19871
8934764e
BB
19872# Have a temporary directory for convenience. Make it in the build tree
19873# simply because there is no reason against having it here, and in addition,
19874# creating and moving files from /tmp can sometimes cause problems.
19875# Hook for its removal unless debugging.
19876# Note that there is a small window in which the directory will not be cleaned:
19877# after its creation but before its name has been assigned to `$tmp'.
19878$debug ||
19879{
19880 tmp=
19881 trap 'exit_status=$?
19882 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19883' 0
19884 trap '{ (exit 1); exit 1; }' 1 2 13 15
19885}
19886# Create a (secure) tmp directory for tmp files.
e11d6c5f 19887
8934764e
BB
19888{
19889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19890 test -n "$tmp" && test -d "$tmp"
19891} ||
19892{
19893 tmp=./conf$$-$RANDOM
19894 (umask 077 && mkdir "$tmp")
19895} ||
19896{
19897 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19898 { (exit 1); exit 1; }
19899}
e11d6c5f 19900
8934764e
BB
19901# Set up the scripts for CONFIG_FILES section.
19902# No need to generate them if there are no CONFIG_FILES.
19903# This happens for instance with `./config.status config.h'.
19904if test -n "$CONFIG_FILES"; then
e11d6c5f 19905
ec7d53e9 19906
8934764e
BB
19907ac_cr='\r'
19908ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19909if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19910 ac_cs_awk_cr='\\r'
19911else
19912 ac_cs_awk_cr=$ac_cr
19913fi
ec7d53e9 19914
8934764e 19915echo 'BEGIN {' >"$tmp/subs1.awk" &&
ec7d53e9 19916_ACEOF
ec7d53e9 19917
ec7d53e9 19918
ec7d53e9 19919{
8934764e
BB
19920 echo "cat >conf$$subs.awk <<_ACEOF" &&
19921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19922 echo "_ACEOF"
19923} >conf$$subs.sh ||
19924 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19925$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19926 { (exit 1); exit 1; }; }
19927ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19928ac_delim='%!_!# '
19929for ac_last_try in false false false false false :; do
19930 . ./conf$$subs.sh ||
19931 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19932$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19933 { (exit 1); exit 1; }; }
ec7d53e9 19934
8934764e
BB
19935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19936 if test $ac_delim_n = $ac_delim_num; then
19937 break
19938 elif $ac_last_try; then
19939 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19940$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19941 { (exit 1); exit 1; }; }
19942 else
19943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19944 fi
19945done
19946rm -f conf$$subs.sh
19947
19948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19949cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19950_ACEOF
19951sed -n '
19952h
19953s/^/S["/; s/!.*/"]=/
19954p
19955g
19956s/^[^!]*!//
19957:repl
19958t repl
19959s/'"$ac_delim"'$//
19960t delim
19961:nl
19962h
19963s/\(.\{148\}\).*/\1/
19964t more1
19965s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19966p
19967n
19968b repl
19969:more1
19970s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19971p
19972g
19973s/.\{148\}//
19974t nl
19975:delim
19976h
19977s/\(.\{148\}\).*/\1/
19978t more2
19979s/["\\]/\\&/g; s/^/"/; s/$/"/
19980p
19981b
19982:more2
19983s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19984p
19985g
19986s/.\{148\}//
19987t delim
19988' <conf$$subs.awk | sed '
19989/^[^""]/{
19990 N
19991 s/\n//
19992}
19993' >>$CONFIG_STATUS || ac_write_fail=1
19994rm -f conf$$subs.awk
19995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19996_ACAWK
19997cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19998 for (key in S) S_is_set[key] = 1
19999 FS = "\a"
ec7d53e9 20000
8934764e
BB
20001}
20002{
20003 line = $ 0
20004 nfields = split(line, field, "@")
20005 substed = 0
20006 len = length(field[1])
20007 for (i = 2; i < nfields; i++) {
20008 key = field[i]
20009 keylen = length(key)
20010 if (S_is_set[key]) {
20011 value = S[key]
20012 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20013 len += length(value) + length(field[++i])
20014 substed = 1
20015 } else
20016 len += 1 + keylen
20017 }
20018
20019 print line
ec7d53e9
BB
20020}
20021
8934764e
BB
20022_ACAWK
20023_ACEOF
20024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20025if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20027else
20028 cat
20029fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20030 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20031$as_echo "$as_me: error: could not setup config files machinery" >&2;}
20032 { (exit 1); exit 1; }; }
ec7d53e9
BB
20033_ACEOF
20034
8934764e
BB
20035# VPATH may cause trouble with some makes, so we remove $(srcdir),
20036# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20037# trailing colons and then remove the whole line if VPATH becomes empty
20038# (actually we leave an empty line to preserve line numbers).
20039if test "x$srcdir" = x.; then
20040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20041s/:*\$(srcdir):*/:/
20042s/:*\${srcdir}:*/:/
20043s/:*@srcdir@:*/:/
20044s/^\([^=]*=[ ]*\):*/\1/
20045s/:*$//
20046s/^[^=]*=[ ]*$//
20047}'
20048fi
ec7d53e9 20049
8934764e
BB
20050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20051fi # test -n "$CONFIG_FILES"
ec7d53e9 20052
8934764e
BB
20053# Set up the scripts for CONFIG_HEADERS section.
20054# No need to generate them if there are no CONFIG_HEADERS.
20055# This happens for instance with `./config.status Makefile'.
20056if test -n "$CONFIG_HEADERS"; then
20057cat >"$tmp/defines.awk" <<\_ACAWK ||
20058BEGIN {
ec7d53e9
BB
20059_ACEOF
20060
8934764e
BB
20061# Transform confdefs.h into an awk script `defines.awk', embedded as
20062# here-document in config.status, that substitutes the proper values into
20063# config.h.in to produce config.h.
ec7d53e9 20064
8934764e
BB
20065# Create a delimiter string that does not exist in confdefs.h, to ease
20066# handling of long lines.
20067ac_delim='%!_!# '
20068for ac_last_try in false false :; do
20069 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20070 if test -z "$ac_t"; then
20071 break
20072 elif $ac_last_try; then
20073 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20074$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20075 { (exit 1); exit 1; }; }
20076 else
20077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20078 fi
20079done
ec7d53e9 20080
8934764e
BB
20081# For the awk script, D is an array of macro values keyed by name,
20082# likewise P contains macro parameters if any. Preserve backslash
20083# newline sequences.
20084
20085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20086sed -n '
20087s/.\{148\}/&'"$ac_delim"'/g
20088t rset
20089:rset
20090s/^[ ]*#[ ]*define[ ][ ]*/ /
20091t def
20092d
20093:def
20094s/\\$//
20095t bsnl
20096s/["\\]/\\&/g
20097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20098D["\1"]=" \3"/p
20099s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20100d
20101:bsnl
20102s/["\\]/\\&/g
20103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20104D["\1"]=" \3\\\\\\n"\\/p
20105t cont
20106s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20107t cont
20108d
20109:cont
20110n
20111s/.\{148\}/&'"$ac_delim"'/g
20112t clear
20113:clear
20114s/\\$//
20115t bsnlc
20116s/["\\]/\\&/g; s/^/"/; s/$/"/p
20117d
20118:bsnlc
20119s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20120b cont
20121' <confdefs.h | sed '
20122s/'"$ac_delim"'/"\\\
20123"/g' >>$CONFIG_STATUS || ac_write_fail=1
20124
20125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20126 for (key in D) D_is_set[key] = 1
20127 FS = "\a"
20128}
20129/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20130 line = \$ 0
20131 split(line, arg, " ")
20132 if (arg[1] == "#") {
20133 defundef = arg[2]
20134 mac1 = arg[3]
20135 } else {
20136 defundef = substr(arg[1], 2)
20137 mac1 = arg[2]
20138 }
20139 split(mac1, mac2, "(") #)
20140 macro = mac2[1]
20141 prefix = substr(line, 1, index(line, defundef) - 1)
20142 if (D_is_set[macro]) {
20143 # Preserve the white space surrounding the "#".
20144 print prefix "define", macro P[macro] D[macro]
20145 next
20146 } else {
20147 # Replace #undef with comments. This is necessary, for example,
20148 # in the case of _POSIX_SOURCE, which is predefined and required
20149 # on some systems where configure will not decide to define it.
20150 if (defundef == "undef") {
20151 print "/*", prefix defundef, macro, "*/"
20152 next
20153 }
20154 }
20155}
20156{ print }
20157_ACAWK
20158_ACEOF
20159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
20161$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
20162 { (exit 1); exit 1; }; }
20163fi # test -n "$CONFIG_HEADERS"
ec7d53e9
BB
20164
20165
8934764e
BB
20166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20167shift
20168for ac_tag
20169do
20170 case $ac_tag in
20171 :[FHLC]) ac_mode=$ac_tag; continue;;
20172 esac
20173 case $ac_mode$ac_tag in
20174 :[FHL]*:*);;
20175 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20176$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20177 { (exit 1); exit 1; }; };;
20178 :[FH]-) ac_tag=-:-;;
20179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20180 esac
20181 ac_save_IFS=$IFS
20182 IFS=:
20183 set x $ac_tag
20184 IFS=$ac_save_IFS
20185 shift
20186 ac_file=$1
20187 shift
ec7d53e9 20188
8934764e
BB
20189 case $ac_mode in
20190 :L) ac_source=$1;;
20191 :[FH])
20192 ac_file_inputs=
20193 for ac_f
20194 do
20195 case $ac_f in
20196 -) ac_f="$tmp/stdin";;
20197 *) # Look for the file first in the build tree, then in the source tree
20198 # (if the path is not absolute). The absolute path cannot be DOS-style,
20199 # because $ac_f cannot contain `:'.
20200 test -f "$ac_f" ||
20201 case $ac_f in
20202 [\\/$]*) false;;
20203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20204 esac ||
20205 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20206$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20207 { (exit 1); exit 1; }; };;
20208 esac
20209 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20210 ac_file_inputs="$ac_file_inputs '$ac_f'"
20211 done
ec7d53e9 20212
8934764e
BB
20213 # Let's still pretend it is `configure' which instantiates (i.e., don't
20214 # use $as_me), people would be surprised to read:
20215 # /* config.h. Generated by config.status. */
20216 configure_input='Generated from '`
20217 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20218 `' by configure.'
20219 if test x"$ac_file" != x-; then
20220 configure_input="$ac_file. $configure_input"
20221 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
20222$as_echo "$as_me: creating $ac_file" >&6;}
20223 fi
20224 # Neutralize special characters interpreted by sed in replacement strings.
20225 case $configure_input in #(
20226 *\&* | *\|* | *\\* )
20227 ac_sed_conf_input=`$as_echo "$configure_input" |
20228 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20229 *) ac_sed_conf_input=$configure_input;;
20230 esac
ec7d53e9 20231
8934764e
BB
20232 case $ac_tag in
20233 *:-:* | *:-) cat >"$tmp/stdin" \
20234 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20235$as_echo "$as_me: error: could not create $ac_file" >&2;}
20236 { (exit 1); exit 1; }; } ;;
20237 esac
20238 ;;
20239 esac
ec7d53e9 20240
8934764e
BB
20241 ac_dir=`$as_dirname -- "$ac_file" ||
20242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20243 X"$ac_file" : 'X\(//\)[^/]' \| \
20244 X"$ac_file" : 'X\(//\)$' \| \
20245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20246$as_echo X"$ac_file" |
20247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20248 s//\1/
20249 q
20250 }
20251 /^X\(\/\/\)[^/].*/{
20252 s//\1/
20253 q
20254 }
20255 /^X\(\/\/\)$/{
20256 s//\1/
20257 q
20258 }
20259 /^X\(\/\).*/{
20260 s//\1/
20261 q
20262 }
20263 s/.*/./; q'`
20264 { as_dir="$ac_dir"
20265 case $as_dir in #(
20266 -*) as_dir=./$as_dir;;
20267 esac
20268 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20269 as_dirs=
20270 while :; do
20271 case $as_dir in #(
20272 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20273 *) as_qdir=$as_dir;;
20274 esac
20275 as_dirs="'$as_qdir' $as_dirs"
20276 as_dir=`$as_dirname -- "$as_dir" ||
20277$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20278 X"$as_dir" : 'X\(//\)[^/]' \| \
20279 X"$as_dir" : 'X\(//\)$' \| \
20280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20281$as_echo X"$as_dir" |
20282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20283 s//\1/
20284 q
20285 }
20286 /^X\(\/\/\)[^/].*/{
20287 s//\1/
20288 q
20289 }
20290 /^X\(\/\/\)$/{
20291 s//\1/
20292 q
20293 }
20294 /^X\(\/\).*/{
20295 s//\1/
20296 q
20297 }
20298 s/.*/./; q'`
20299 test -d "$as_dir" && break
20300 done
20301 test -z "$as_dirs" || eval "mkdir $as_dirs"
20302 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20303$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20304 { (exit 1); exit 1; }; }; }
20305 ac_builddir=.
ec7d53e9 20306
8934764e
BB
20307case "$ac_dir" in
20308.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20309*)
20310 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20311 # A ".." for each directory in $ac_dir_suffix.
20312 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20313 case $ac_top_builddir_sub in
20314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20316 esac ;;
20317esac
20318ac_abs_top_builddir=$ac_pwd
20319ac_abs_builddir=$ac_pwd$ac_dir_suffix
20320# for backward compatibility:
20321ac_top_builddir=$ac_top_build_prefix
ec7d53e9 20322
8934764e
BB
20323case $srcdir in
20324 .) # We are building in place.
20325 ac_srcdir=.
20326 ac_top_srcdir=$ac_top_builddir_sub
20327 ac_abs_top_srcdir=$ac_pwd ;;
20328 [\\/]* | ?:[\\/]* ) # Absolute name.
20329 ac_srcdir=$srcdir$ac_dir_suffix;
20330 ac_top_srcdir=$srcdir
20331 ac_abs_top_srcdir=$srcdir ;;
20332 *) # Relative name.
20333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20334 ac_top_srcdir=$ac_top_build_prefix$srcdir
20335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20336esac
20337ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ec7d53e9 20338
ec7d53e9 20339
8934764e
BB
20340 case $ac_mode in
20341 :F)
20342 #
20343 # CONFIG_FILE
20344 #
20345
20346 case $INSTALL in
20347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20348 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20349 esac
20350 ac_MKDIR_P=$MKDIR_P
20351 case $MKDIR_P in
20352 [\\/$]* | ?:[\\/]* ) ;;
20353 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20354 esac
ec7d53e9
BB
20355_ACEOF
20356
8934764e
BB
20357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20358# If the template does not know about datarootdir, expand it.
20359# FIXME: This hack should be removed a few years after 2.60.
20360ac_datarootdir_hack=; ac_datarootdir_seen=
ec7d53e9 20361
8934764e
BB
20362ac_sed_dataroot='
20363/datarootdir/ {
20364 p
20365 q
20366}
20367/@datadir@/p
20368/@docdir@/p
20369/@infodir@/p
20370/@localedir@/p
20371/@mandir@/p
20372'
20373case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20374*datarootdir*) ac_datarootdir_seen=yes;;
20375*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20376 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20377$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20378_ACEOF
20379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20380 ac_datarootdir_hack='
20381 s&@datadir@&$datadir&g
20382 s&@docdir@&$docdir&g
20383 s&@infodir@&$infodir&g
20384 s&@localedir@&$localedir&g
20385 s&@mandir@&$mandir&g
20386 s&\\\${datarootdir}&$datarootdir&g' ;;
20387esac
ec7d53e9
BB
20388_ACEOF
20389
8934764e
BB
20390# Neutralize VPATH when `$srcdir' = `.'.
20391# Shell code in configure.ac might set extrasub.
20392# FIXME: do we really want to maintain this feature?
20393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20394ac_sed_extra="$ac_vpsub
20395$extrasub
20396_ACEOF
20397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20398:t
20399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20400s|@configure_input@|$ac_sed_conf_input|;t t
20401s&@top_builddir@&$ac_top_builddir_sub&;t t
20402s&@top_build_prefix@&$ac_top_build_prefix&;t t
20403s&@srcdir@&$ac_srcdir&;t t
20404s&@abs_srcdir@&$ac_abs_srcdir&;t t
20405s&@top_srcdir@&$ac_top_srcdir&;t t
20406s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20407s&@builddir@&$ac_builddir&;t t
20408s&@abs_builddir@&$ac_abs_builddir&;t t
20409s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20410s&@INSTALL@&$ac_INSTALL&;t t
20411s&@MKDIR_P@&$ac_MKDIR_P&;t t
20412$ac_datarootdir_hack
20413"
20414eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20415 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20416$as_echo "$as_me: error: could not create $ac_file" >&2;}
20417 { (exit 1); exit 1; }; }
ec7d53e9 20418
8934764e
BB
20419test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20422 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20423which seems to be undefined. Please make sure it is defined." >&5
20424$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20425which seems to be undefined. Please make sure it is defined." >&2;}
ec7d53e9 20426
8934764e
BB
20427 rm -f "$tmp/stdin"
20428 case $ac_file in
20429 -) cat "$tmp/out" && rm -f "$tmp/out";;
20430 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20431 esac \
20432 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20433$as_echo "$as_me: error: could not create $ac_file" >&2;}
20434 { (exit 1); exit 1; }; }
20435 ;;
20436 :H)
20437 #
20438 # CONFIG_HEADER
20439 #
20440 if test x"$ac_file" != x-; then
20441 {
20442 $as_echo "/* $configure_input */" \
20443 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20444 } >"$tmp/config.h" \
20445 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20446$as_echo "$as_me: error: could not create $ac_file" >&2;}
20447 { (exit 1); exit 1; }; }
20448 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20449 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20450$as_echo "$as_me: $ac_file is unchanged" >&6;}
20451 else
20452 rm -f "$ac_file"
20453 mv "$tmp/config.h" "$ac_file" \
20454 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20455$as_echo "$as_me: error: could not create $ac_file" >&2;}
20456 { (exit 1); exit 1; }; }
20457 fi
20458 else
20459 $as_echo "/* $configure_input */" \
20460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20461 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20462$as_echo "$as_me: error: could not create -" >&2;}
20463 { (exit 1); exit 1; }; }
20464 fi
20465# Compute "$ac_file"'s index in $config_headers.
20466_am_arg="$ac_file"
20467_am_stamp_count=1
20468for _am_header in $config_headers :; do
20469 case $_am_header in
20470 $_am_arg | $_am_arg:* )
20471 break ;;
20472 * )
20473 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20474 esac
20475done
20476echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20477$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20478 X"$_am_arg" : 'X\(//\)[^/]' \| \
20479 X"$_am_arg" : 'X\(//\)$' \| \
20480 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20481$as_echo X"$_am_arg" |
20482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20483 s//\1/
20484 q
20485 }
20486 /^X\(\/\/\)[^/].*/{
20487 s//\1/
20488 q
20489 }
20490 /^X\(\/\/\)$/{
20491 s//\1/
20492 q
20493 }
20494 /^X\(\/\).*/{
20495 s//\1/
20496 q
20497 }
20498 s/.*/./; q'`/stamp-h$_am_stamp_count
20499 ;;
ec7d53e9 20500
8934764e
BB
20501 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20502$as_echo "$as_me: executing $ac_file commands" >&6;}
20503 ;;
20504 esac
e811949a 20505
e811949a 20506
8934764e
BB
20507 case $ac_file$ac_mode in
20508 "spl_config.h":H)
20509 (mv spl_config.h spl_config.h.tmp &&
a7958f7e 20510 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
8934764e
BB
20511 rm spl_config.h.tmp) || exit 1 ;;
20512 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20513 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20514 # are listed without --file. Let's play safe and only enable the eval
20515 # if we detect the quoting.
20516 case $CONFIG_FILES in
20517 *\'*) eval set x "$CONFIG_FILES" ;;
20518 *) set x $CONFIG_FILES ;;
20519 esac
20520 shift
20521 for mf
20522 do
20523 # Strip MF so we end up with the name of the file.
20524 mf=`echo "$mf" | sed -e 's/:.*$//'`
20525 # Check whether this is an Automake generated Makefile or not.
20526 # We used to match only the files named `Makefile.in', but
20527 # some people rename them; so instead we look at the file content.
20528 # Grep'ing the first line is not enough: some people post-process
20529 # each Makefile.in and add a new line on top of each file to say so.
20530 # Grep'ing the whole file is not good either: AIX grep has a line
20531 # limit of 2048, but all sed's we know have understand at least 4000.
20532 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20533 dirpart=`$as_dirname -- "$mf" ||
20534$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20535 X"$mf" : 'X\(//\)[^/]' \| \
20536 X"$mf" : 'X\(//\)$' \| \
20537 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20538$as_echo X"$mf" |
20539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20540 s//\1/
20541 q
20542 }
20543 /^X\(\/\/\)[^/].*/{
20544 s//\1/
20545 q
20546 }
20547 /^X\(\/\/\)$/{
20548 s//\1/
20549 q
20550 }
20551 /^X\(\/\).*/{
20552 s//\1/
20553 q
20554 }
20555 s/.*/./; q'`
20556 else
20557 continue
20558 fi
20559 # Extract the definition of DEPDIR, am__include, and am__quote
20560 # from the Makefile without running `make'.
20561 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20562 test -z "$DEPDIR" && continue
20563 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20564 test -z "am__include" && continue
20565 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20566 # When using ansi2knr, U may be empty or an underscore; expand it
20567 U=`sed -n 's/^U = //p' < "$mf"`
20568 # Find all dependency output files, they are included files with
20569 # $(DEPDIR) in their names. We invoke sed twice because it is the
20570 # simplest approach to changing $(DEPDIR) to its actual value in the
20571 # expansion.
20572 for file in `sed -n "
20573 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20574 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20575 # Make sure the directory exists.
20576 test -f "$dirpart/$file" && continue
20577 fdir=`$as_dirname -- "$file" ||
20578$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20579 X"$file" : 'X\(//\)[^/]' \| \
20580 X"$file" : 'X\(//\)$' \| \
20581 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20582$as_echo X"$file" |
20583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20584 s//\1/
20585 q
20586 }
20587 /^X\(\/\/\)[^/].*/{
20588 s//\1/
20589 q
20590 }
20591 /^X\(\/\/\)$/{
20592 s//\1/
20593 q
20594 }
20595 /^X\(\/\).*/{
20596 s//\1/
20597 q
20598 }
20599 s/.*/./; q'`
20600 { as_dir=$dirpart/$fdir
20601 case $as_dir in #(
20602 -*) as_dir=./$as_dir;;
20603 esac
20604 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20605 as_dirs=
20606 while :; do
20607 case $as_dir in #(
20608 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20609 *) as_qdir=$as_dir;;
20610 esac
20611 as_dirs="'$as_qdir' $as_dirs"
20612 as_dir=`$as_dirname -- "$as_dir" ||
20613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20614 X"$as_dir" : 'X\(//\)[^/]' \| \
20615 X"$as_dir" : 'X\(//\)$' \| \
20616 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20617$as_echo X"$as_dir" |
20618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20619 s//\1/
20620 q
20621 }
20622 /^X\(\/\/\)[^/].*/{
20623 s//\1/
20624 q
20625 }
20626 /^X\(\/\/\)$/{
20627 s//\1/
20628 q
20629 }
20630 /^X\(\/\).*/{
20631 s//\1/
20632 q
20633 }
20634 s/.*/./; q'`
20635 test -d "$as_dir" && break
20636 done
20637 test -z "$as_dirs" || eval "mkdir $as_dirs"
20638 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20639$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20640 { (exit 1); exit 1; }; }; }
20641 # echo "creating $dirpart/$file"
20642 echo '# dummy' > "$dirpart/$file"
20643 done
20644 done
20645}
20646 ;;
20647 "libtool":C)
20648
20649 # See if we are running on zsh, and set the options which allow our
20650 # commands through without removal of \ escapes.
20651 if test -n "${ZSH_VERSION+set}" ; then
20652 setopt NO_GLOB_SUBST
20653 fi
20654
20655 cfgfile="${ofile}T"
20656 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20657 $RM "$cfgfile"
20658
20659 cat <<_LT_EOF >> "$cfgfile"
20660#! $SHELL
20661
20662# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20663# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20664# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20665# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20666#
20667# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20668# 2006, 2007, 2008 Free Software Foundation, Inc.
20669# Written by Gordon Matzigkeit, 1996
20670#
20671# This file is part of GNU Libtool.
20672#
20673# GNU Libtool is free software; you can redistribute it and/or
20674# modify it under the terms of the GNU General Public License as
20675# published by the Free Software Foundation; either version 2 of
20676# the License, or (at your option) any later version.
20677#
20678# As a special exception to the GNU General Public License,
20679# if you distribute this file as part of a program or library that
20680# is built using GNU Libtool, you may include this file under the
20681# same distribution terms that you use for the rest of that program.
20682#
20683# GNU Libtool is distributed in the hope that it will be useful,
20684# but WITHOUT ANY WARRANTY; without even the implied warranty of
20685# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20686# GNU General Public License for more details.
20687#
20688# You should have received a copy of the GNU General Public License
20689# along with GNU Libtool; see the file COPYING. If not, a copy
20690# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20691# obtained by writing to the Free Software Foundation, Inc.,
20692# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20693
20694
20695# The names of the tagged configurations supported by this script.
20696available_tags=""
20697
20698# ### BEGIN LIBTOOL CONFIG
20699
20700# Which release of libtool.m4 was used?
20701macro_version=$macro_version
20702macro_revision=$macro_revision
e811949a 20703
8934764e
BB
20704# Whether or not to build shared libraries.
20705build_libtool_libs=$enable_shared
e811949a 20706
8934764e
BB
20707# Whether or not to build static libraries.
20708build_old_libs=$enable_static
e811949a 20709
8934764e
BB
20710# What type of objects to build.
20711pic_mode=$pic_mode
e811949a 20712
8934764e
BB
20713# Whether or not to optimize for fast installation.
20714fast_install=$enable_fast_install
e811949a 20715
8934764e
BB
20716# The host system.
20717host_alias=$host_alias
20718host=$host
20719host_os=$host_os
e811949a 20720
8934764e
BB
20721# The build system.
20722build_alias=$build_alias
20723build=$build
20724build_os=$build_os
3977f837 20725
8934764e
BB
20726# A sed program that does not truncate output.
20727SED=$lt_SED
3977f837 20728
8934764e
BB
20729# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20730Xsed="\$SED -e 1s/^X//"
3977f837 20731
8934764e
BB
20732# A grep program that handles long lines.
20733GREP=$lt_GREP
3977f837 20734
8934764e
BB
20735# An ERE matcher.
20736EGREP=$lt_EGREP
3977f837 20737
8934764e
BB
20738# A literal string matcher.
20739FGREP=$lt_FGREP
3977f837 20740
8934764e
BB
20741# A BSD- or MS-compatible name lister.
20742NM=$lt_NM
3977f837 20743
8934764e
BB
20744# Whether we need soft or hard links.
20745LN_S=$lt_LN_S
3977f837 20746
8934764e
BB
20747# What is the maximum length of a command?
20748max_cmd_len=$max_cmd_len
3977f837 20749
8934764e
BB
20750# Object file suffix (normally "o").
20751objext=$ac_objext
3977f837 20752
8934764e
BB
20753# Executable file suffix (normally "").
20754exeext=$exeext
3977f837 20755
8934764e
BB
20756# whether the shell understands "unset".
20757lt_unset=$lt_unset
3977f837 20758
8934764e
BB
20759# turn spaces into newlines.
20760SP2NL=$lt_lt_SP2NL
3977f837 20761
8934764e
BB
20762# turn newlines into spaces.
20763NL2SP=$lt_lt_NL2SP
3977f837 20764
8934764e
BB
20765# How to create reloadable object files.
20766reload_flag=$lt_reload_flag
20767reload_cmds=$lt_reload_cmds
3977f837 20768
8934764e
BB
20769# An object symbol dumper.
20770OBJDUMP=$lt_OBJDUMP
3977f837 20771
8934764e
BB
20772# Method to check whether dependent libraries are shared objects.
20773deplibs_check_method=$lt_deplibs_check_method
3977f837 20774
8934764e
BB
20775# Command to use when deplibs_check_method == "file_magic".
20776file_magic_cmd=$lt_file_magic_cmd
3977f837 20777
8934764e
BB
20778# The archiver.
20779AR=$lt_AR
20780AR_FLAGS=$lt_AR_FLAGS
3977f837 20781
8934764e
BB
20782# A symbol stripping program.
20783STRIP=$lt_STRIP
3977f837 20784
8934764e
BB
20785# Commands used to install an old-style archive.
20786RANLIB=$lt_RANLIB
20787old_postinstall_cmds=$lt_old_postinstall_cmds
20788old_postuninstall_cmds=$lt_old_postuninstall_cmds
3977f837 20789
8934764e
BB
20790# A C compiler.
20791LTCC=$lt_CC
3977f837 20792
8934764e
BB
20793# LTCC compiler flags.
20794LTCFLAGS=$lt_CFLAGS
3977f837 20795
8934764e
BB
20796# Take the output of nm and produce a listing of raw symbols and C names.
20797global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
86933a6e 20798
8934764e
BB
20799# Transform the output of nm in a proper C declaration.
20800global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
86933a6e 20801
8934764e
BB
20802# Transform the output of nm in a C name address pair.
20803global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
86933a6e 20804
8934764e
BB
20805# Transform the output of nm in a C name address pair when lib prefix is needed.
20806global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
86933a6e 20807
8934764e
BB
20808# The name of the directory that contains temporary libtool files.
20809objdir=$objdir
86933a6e 20810
8934764e
BB
20811# Shell to use when invoking shell scripts.
20812SHELL=$lt_SHELL
86933a6e 20813
8934764e
BB
20814# An echo program that does not interpret backslashes.
20815ECHO=$lt_ECHO
86933a6e 20816
8934764e
BB
20817# Used to examine libraries when file_magic_cmd begins with "file".
20818MAGIC_CMD=$MAGIC_CMD
86933a6e 20819
8934764e
BB
20820# Must we lock files when doing compilation?
20821need_locks=$lt_need_locks
86933a6e 20822
8934764e
BB
20823# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20824DSYMUTIL=$lt_DSYMUTIL
bf9f3bac 20825
8934764e
BB
20826# Tool to change global to local symbols on Mac OS X.
20827NMEDIT=$lt_NMEDIT
bf9f3bac 20828
8934764e
BB
20829# Tool to manipulate fat objects and archives on Mac OS X.
20830LIPO=$lt_LIPO
bf9f3bac 20831
8934764e
BB
20832# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20833OTOOL=$lt_OTOOL
bf9f3bac 20834
8934764e
BB
20835# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20836OTOOL64=$lt_OTOOL64
bf9f3bac 20837
8934764e
BB
20838# Old archive suffix (normally "a").
20839libext=$libext
bf9f3bac 20840
8934764e
BB
20841# Shared library suffix (normally ".so").
20842shrext_cmds=$lt_shrext_cmds
bf9f3bac 20843
8934764e
BB
20844# The commands to extract the exported symbol list from a shared archive.
20845extract_expsyms_cmds=$lt_extract_expsyms_cmds
bf9f3bac 20846
8934764e
BB
20847# Variables whose values should be saved in libtool wrapper scripts and
20848# restored at link time.
20849variables_saved_for_relink=$lt_variables_saved_for_relink
bf9f3bac 20850
8934764e
BB
20851# Do we need the "lib" prefix for modules?
20852need_lib_prefix=$need_lib_prefix
bf9f3bac 20853
8934764e
BB
20854# Do we need a version for libraries?
20855need_version=$need_version
bf9f3bac 20856
8934764e
BB
20857# Library versioning type.
20858version_type=$version_type
bf9f3bac 20859
8934764e
BB
20860# Shared library runtime path variable.
20861runpath_var=$runpath_var
bf9f3bac 20862
8934764e
BB
20863# Shared library path variable.
20864shlibpath_var=$shlibpath_var
bf9f3bac 20865
8934764e
BB
20866# Is shlibpath searched before the hard-coded library search path?
20867shlibpath_overrides_runpath=$shlibpath_overrides_runpath
bf9f3bac 20868
8934764e
BB
20869# Format of library name prefix.
20870libname_spec=$lt_libname_spec
bf9f3bac 20871
8934764e
BB
20872# List of archive names. First name is the real one, the rest are links.
20873# The last name is the one that the linker finds with -lNAME
20874library_names_spec=$lt_library_names_spec
bf9f3bac 20875
8934764e
BB
20876# The coded name of the library, if different from the real name.
20877soname_spec=$lt_soname_spec
bf9f3bac 20878
8934764e
BB
20879# Command to use after installation of a shared archive.
20880postinstall_cmds=$lt_postinstall_cmds
bf9f3bac 20881
8934764e
BB
20882# Command to use after uninstallation of a shared archive.
20883postuninstall_cmds=$lt_postuninstall_cmds
bf9f3bac 20884
8934764e
BB
20885# Commands used to finish a libtool library installation in a directory.
20886finish_cmds=$lt_finish_cmds
bf9f3bac 20887
8934764e
BB
20888# As "finish_cmds", except a single script fragment to be evaled but
20889# not shown.
20890finish_eval=$lt_finish_eval
bf9f3bac 20891
8934764e
BB
20892# Whether we should hardcode library paths into libraries.
20893hardcode_into_libs=$hardcode_into_libs
bf9f3bac 20894
8934764e
BB
20895# Compile-time system search path for libraries.
20896sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
bf9f3bac 20897
8934764e
BB
20898# Run-time system search path for libraries.
20899sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
bf9f3bac 20900
8934764e
BB
20901# Whether dlopen is supported.
20902dlopen_support=$enable_dlopen
bf9f3bac 20903
8934764e
BB
20904# Whether dlopen of programs is supported.
20905dlopen_self=$enable_dlopen_self
bf9f3bac 20906
8934764e
BB
20907# Whether dlopen of statically linked programs is supported.
20908dlopen_self_static=$enable_dlopen_self_static
bf9f3bac 20909
8934764e
BB
20910# Commands to strip libraries.
20911old_striplib=$lt_old_striplib
20912striplib=$lt_striplib
bf9f3bac 20913
bf9f3bac 20914
8934764e
BB
20915# The linker used to build libraries.
20916LD=$lt_LD
bf9f3bac 20917
8934764e
BB
20918# Commands used to build an old-style archive.
20919old_archive_cmds=$lt_old_archive_cmds
bf9f3bac 20920
8934764e
BB
20921# A language specific compiler.
20922CC=$lt_compiler
bf9f3bac 20923
8934764e
BB
20924# Is the compiler the GNU compiler?
20925with_gcc=$GCC
bf9f3bac 20926
8934764e
BB
20927# Compiler flag to turn off builtin functions.
20928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
bf9f3bac 20929
8934764e
BB
20930# How to pass a linker flag through the compiler.
20931wl=$lt_lt_prog_compiler_wl
bf9f3bac 20932
8934764e
BB
20933# Additional compiler flags for building library objects.
20934pic_flag=$lt_lt_prog_compiler_pic
bf9f3bac 20935
8934764e
BB
20936# Compiler flag to prevent dynamic linking.
20937link_static_flag=$lt_lt_prog_compiler_static
bf9f3bac 20938
8934764e
BB
20939# Does compiler simultaneously support -c and -o options?
20940compiler_c_o=$lt_lt_cv_prog_compiler_c_o
bf9f3bac 20941
8934764e
BB
20942# Whether or not to add -lc for building shared libraries.
20943build_libtool_need_lc=$archive_cmds_need_lc
bf9f3bac 20944
8934764e
BB
20945# Whether or not to disallow shared libs when runtime libs are static.
20946allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
bf9f3bac 20947
8934764e
BB
20948# Compiler flag to allow reflexive dlopens.
20949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
bf9f3bac 20950
8934764e
BB
20951# Compiler flag to generate shared objects directly from archives.
20952whole_archive_flag_spec=$lt_whole_archive_flag_spec
bf9f3bac 20953
8934764e
BB
20954# Whether the compiler copes with passing no objects directly.
20955compiler_needs_object=$lt_compiler_needs_object
bf9f3bac 20956
8934764e
BB
20957# Create an old-style archive from a shared archive.
20958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
bf9f3bac 20959
8934764e
BB
20960# Create a temporary old-style archive to link instead of a shared archive.
20961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
bf9f3bac 20962
8934764e
BB
20963# Commands used to build a shared archive.
20964archive_cmds=$lt_archive_cmds
20965archive_expsym_cmds=$lt_archive_expsym_cmds
bf9f3bac 20966
8934764e
BB
20967# Commands used to build a loadable module if different from building
20968# a shared archive.
20969module_cmds=$lt_module_cmds
20970module_expsym_cmds=$lt_module_expsym_cmds
bf9f3bac 20971
8934764e
BB
20972# Whether we are building with GNU ld or not.
20973with_gnu_ld=$lt_with_gnu_ld
bf9f3bac 20974
8934764e
BB
20975# Flag that allows shared libraries with undefined symbols to be built.
20976allow_undefined_flag=$lt_allow_undefined_flag
bf9f3bac 20977
8934764e
BB
20978# Flag that enforces no undefined symbols.
20979no_undefined_flag=$lt_no_undefined_flag
bf9f3bac 20980
8934764e
BB
20981# Flag to hardcode \$libdir into a binary during linking.
20982# This must work even if \$libdir does not exist
20983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
bf9f3bac 20984
8934764e
BB
20985# If ld is used when linking, flag to hardcode \$libdir into a binary
20986# during linking. This must work even if \$libdir does not exist.
20987hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
bf9f3bac 20988
8934764e
BB
20989# Whether we need a single "-rpath" flag with a separated argument.
20990hardcode_libdir_separator=$lt_hardcode_libdir_separator
bf9f3bac 20991
8934764e
BB
20992# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20993# DIR into the resulting binary.
20994hardcode_direct=$hardcode_direct
bf9f3bac 20995
8934764e
BB
20996# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20997# DIR into the resulting binary and the resulting library dependency is
20998# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20999# library is relocated.
21000hardcode_direct_absolute=$hardcode_direct_absolute
bf9f3bac 21001
8934764e
BB
21002# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21003# into the resulting binary.
21004hardcode_minus_L=$hardcode_minus_L
bf9f3bac 21005
8934764e
BB
21006# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21007# into the resulting binary.
21008hardcode_shlibpath_var=$hardcode_shlibpath_var
bf9f3bac 21009
8934764e
BB
21010# Set to "yes" if building a shared library automatically hardcodes DIR
21011# into the library and all subsequent libraries and executables linked
21012# against it.
21013hardcode_automatic=$hardcode_automatic
bf9f3bac 21014
8934764e
BB
21015# Set to yes if linker adds runtime paths of dependent libraries
21016# to runtime path list.
21017inherit_rpath=$inherit_rpath
bf9f3bac 21018
8934764e
BB
21019# Whether libtool must link a program against all its dependency libraries.
21020link_all_deplibs=$link_all_deplibs
bf9f3bac 21021
8934764e
BB
21022# Fix the shell variable \$srcfile for the compiler.
21023fix_srcfile_path=$lt_fix_srcfile_path
bf9f3bac 21024
8934764e
BB
21025# Set to "yes" if exported symbols are required.
21026always_export_symbols=$always_export_symbols
bf9f3bac 21027
8934764e
BB
21028# The commands to list exported symbols.
21029export_symbols_cmds=$lt_export_symbols_cmds
bf9f3bac 21030
8934764e
BB
21031# Symbols that should not be listed in the preloaded symbols.
21032exclude_expsyms=$lt_exclude_expsyms
bf9f3bac 21033
8934764e
BB
21034# Symbols that must always be exported.
21035include_expsyms=$lt_include_expsyms
bf9f3bac 21036
8934764e
BB
21037# Commands necessary for linking programs (against libraries) with templates.
21038prelink_cmds=$lt_prelink_cmds
bf9f3bac 21039
8934764e
BB
21040# Specify filename containing input files.
21041file_list_spec=$lt_file_list_spec
bf9f3bac 21042
8934764e
BB
21043# How to hardcode a shared library path into an executable.
21044hardcode_action=$hardcode_action
bf9f3bac 21045
8934764e
BB
21046# ### END LIBTOOL CONFIG
21047
21048_LT_EOF
21049
21050 case $host_os in
21051 aix3*)
21052 cat <<\_LT_EOF >> "$cfgfile"
21053# AIX sometimes has problems with the GCC collect2 program. For some
21054# reason, if we set the COLLECT_NAMES environment variable, the problems
21055# vanish in a puff of smoke.
21056if test "X${COLLECT_NAMES+set}" != Xset; then
21057 COLLECT_NAMES=
21058 export COLLECT_NAMES
bf9f3bac 21059fi
8934764e
BB
21060_LT_EOF
21061 ;;
21062 esac
bf9f3bac 21063
bf9f3bac 21064
8934764e 21065ltmain="$ac_aux_dir/ltmain.sh"
bf9f3bac 21066
bf9f3bac 21067
8934764e
BB
21068 # We use sed instead of cat because bash on DJGPP gets confused if
21069 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21070 # text mode, it properly converts lines to CR/LF. This bash problem
21071 # is reportedly fixed, but why not run on old versions too?
21072 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21073 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 21074
8934764e
BB
21075 case $xsi_shell in
21076 yes)
21077 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 21078
8934764e
BB
21079# func_dirname file append nondir_replacement
21080# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21081# otherwise set result to NONDIR_REPLACEMENT.
21082func_dirname ()
21083{
21084 case ${1} in
21085 */*) func_dirname_result="${1%/*}${2}" ;;
21086 * ) func_dirname_result="${3}" ;;
bf9f3bac 21087 esac
8934764e 21088}
bf9f3bac 21089
8934764e
BB
21090# func_basename file
21091func_basename ()
21092{
21093 func_basename_result="${1##*/}"
21094}
bf9f3bac 21095
8934764e
BB
21096# func_dirname_and_basename file append nondir_replacement
21097# perform func_basename and func_dirname in a single function
21098# call:
21099# dirname: Compute the dirname of FILE. If nonempty,
21100# add APPEND to the result, otherwise set result
21101# to NONDIR_REPLACEMENT.
21102# value returned in "$func_dirname_result"
21103# basename: Compute filename of FILE.
21104# value retuned in "$func_basename_result"
21105# Implementation must be kept synchronized with func_dirname
21106# and func_basename. For efficiency, we do not delegate to
21107# those functions but instead duplicate the functionality here.
21108func_dirname_and_basename ()
bf9f3bac 21109{
8934764e
BB
21110 case ${1} in
21111 */*) func_dirname_result="${1%/*}${2}" ;;
21112 * ) func_dirname_result="${3}" ;;
21113 esac
21114 func_basename_result="${1##*/}"
bf9f3bac 21115}
21116
8934764e
BB
21117# func_stripname prefix suffix name
21118# strip PREFIX and SUFFIX off of NAME.
21119# PREFIX and SUFFIX must not contain globbing or regex special
21120# characters, hashes, percent signs, but SUFFIX may contain a leading
21121# dot (in which case that matches only a dot).
21122func_stripname ()
21123{
21124 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21125 # positional parameters, so assign one to ordinary parameter first.
21126 func_stripname_result=${3}
21127 func_stripname_result=${func_stripname_result#"${1}"}
21128 func_stripname_result=${func_stripname_result%"${2}"}
21129}
bf9f3bac 21130
8934764e
BB
21131# func_opt_split
21132func_opt_split ()
bf9f3bac 21133{
8934764e
BB
21134 func_opt_split_opt=${1%%=*}
21135 func_opt_split_arg=${1#*=}
21136}
21137
21138# func_lo2o object
21139func_lo2o ()
bf9f3bac 21140{
8934764e
BB
21141 case ${1} in
21142 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21143 *) func_lo2o_result=${1} ;;
21144 esac
21145}
21146
21147# func_xform libobj-or-source
21148func_xform ()
bf9f3bac 21149{
8934764e 21150 func_xform_result=${1%.*}.lo
bf9f3bac 21151}
21152
8934764e
BB
21153# func_arith arithmetic-term...
21154func_arith ()
21155{
21156 func_arith_result=$(( $* ))
21157}
bf9f3bac 21158
8934764e
BB
21159# func_len string
21160# STRING may not start with a hyphen.
21161func_len ()
21162{
21163 func_len_result=${#1}
21164}
bf9f3bac 21165
8934764e
BB
21166_LT_EOF
21167 ;;
21168 *) # Bourne compatible functions.
21169 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 21170
8934764e
BB
21171# func_dirname file append nondir_replacement
21172# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21173# otherwise set result to NONDIR_REPLACEMENT.
21174func_dirname ()
21175{
21176 # Extract subdirectory from the argument.
21177 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21178 if test "X$func_dirname_result" = "X${1}"; then
21179 func_dirname_result="${3}"
21180 else
21181 func_dirname_result="$func_dirname_result${2}"
bf9f3bac 21182 fi
8934764e 21183}
bf9f3bac 21184
8934764e
BB
21185# func_basename file
21186func_basename ()
21187{
21188 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21189}
bf9f3bac 21190
bf9f3bac 21191
8934764e
BB
21192# func_stripname prefix suffix name
21193# strip PREFIX and SUFFIX off of NAME.
21194# PREFIX and SUFFIX must not contain globbing or regex special
21195# characters, hashes, percent signs, but SUFFIX may contain a leading
21196# dot (in which case that matches only a dot).
21197# func_strip_suffix prefix name
21198func_stripname ()
21199{
21200 case ${2} in
21201 .*) func_stripname_result=`$ECHO "X${3}" \
21202 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21203 *) func_stripname_result=`$ECHO "X${3}" \
21204 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21205 esac
21206}
bf9f3bac 21207
8934764e
BB
21208# sed scripts:
21209my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21210my_sed_long_arg='1s/^-[^=]*=//'
bf9f3bac 21211
8934764e
BB
21212# func_opt_split
21213func_opt_split ()
21214{
21215 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21216 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21217}
bf9f3bac 21218
8934764e
BB
21219# func_lo2o object
21220func_lo2o ()
21221{
21222 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21223}
bf9f3bac 21224
8934764e
BB
21225# func_xform libobj-or-source
21226func_xform ()
21227{
21228 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21229}
bf9f3bac 21230
8934764e
BB
21231# func_arith arithmetic-term...
21232func_arith ()
21233{
21234 func_arith_result=`expr "$@"`
21235}
bf9f3bac 21236
8934764e
BB
21237# func_len string
21238# STRING may not start with a hyphen.
21239func_len ()
21240{
21241 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21242}
bf9f3bac 21243
8934764e
BB
21244_LT_EOF
21245esac
bf9f3bac 21246
8934764e
BB
21247case $lt_shell_append in
21248 yes)
21249 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 21250
8934764e
BB
21251# func_append var value
21252# Append VALUE to the end of shell variable VAR.
21253func_append ()
21254{
21255 eval "$1+=\$2"
21256}
21257_LT_EOF
21258 ;;
21259 *)
21260 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 21261
8934764e
BB
21262# func_append var value
21263# Append VALUE to the end of shell variable VAR.
21264func_append ()
21265{
21266 eval "$1=\$$1\$2"
21267}
bf9f3bac 21268
8934764e
BB
21269_LT_EOF
21270 ;;
16b719f0 21271 esac
bf9f3bac 21272
bf9f3bac 21273
8934764e
BB
21274 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21275 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 21276
8934764e
BB
21277 mv -f "$cfgfile" "$ofile" ||
21278 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21279 chmod +x "$ofile"
bf9f3bac 21280
bf9f3bac 21281 ;;
8934764e 21282
bf9f3bac 21283 esac
8934764e 21284done # for ac_tag
bf9f3bac 21285
bf9f3bac 21286
21287{ (exit 0); exit 0; }
21288_ACEOF
21289chmod +x $CONFIG_STATUS
21290ac_clean_files=$ac_clean_files_save
21291
8934764e
BB
21292test $ac_write_fail = 0 ||
21293 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21294$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21295 { (exit 1); exit 1; }; }
21296
bf9f3bac 21297
21298# configure is writing to config.log, and then calls config.status.
21299# config.status does its own redirection, appending to config.log.
21300# Unfortunately, on DOS this fails, as config.log is still kept open
21301# by configure, so config.status won't be able to write to it; its
21302# output is simply discarded. So we exec the FD to /dev/null,
21303# effectively closing config.log, so it can be properly (re)opened and
21304# appended to by config.status. When coming back to configure, we
21305# need to make the FD available again.
21306if test "$no_create" != yes; then
21307 ac_cs_success=:
21308 ac_config_status_args=
21309 test "$silent" = yes &&
21310 ac_config_status_args="$ac_config_status_args --quiet"
21311 exec 5>/dev/null
21312 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21313 exec 5>>config.log
21314 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21315 # would make configure fail if this is the last instruction.
21316 $ac_cs_success || { (exit 1); exit 1; }
21317fi
8934764e
BB
21318if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21319 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21320$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21321fi
bf9f3bac 21322